@clicktap/ui 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +244 -244
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("react/jsx-runtime"),u=require("react"),_=require("styled-components"),Yt=require("react-dom");function p$(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 Le=p$(u);var b$=()=>F.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[F.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"}),F.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 h$(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=Le.createContext(void 0);o.displayName=r;function i(){var a;const s=Le.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 m$(e){return{UNSAFE_getDOMNode(){return e.current}}}function ks(e){const t=u.useRef(null);return u.useImperativeHandle(e,()=>t.current),t}var g$=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3);function vp(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=vp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function eo(...e){for(var t=0,n,r,o="";t<e.length;)(n=e[t++])&&(r=vp(n))&&(o&&(o+=" "),o+=r);return o}var Bc={};function v$(e,t,...n){var r;const i=`[Next UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!Bc[i]&&(Bc[i]=!0,((r=process==null?void 0:process.env)==null?void 0:r.NODE_ENV)!=="production"))return console.warn(i,n)}process.env.NODE_ENV;process.env.NODE_ENV;function y$(e){return typeof e=="function"}var St=e=>e?"true":void 0;function $$(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function x$(e,t){if(e!=null){if(y$(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function w$(...e){return t=>{e.forEach(n=>x$(n,t))}}var C$=Object.create,yp=Object.defineProperty,D$=Object.getOwnPropertyDescriptor,$p=Object.getOwnPropertyNames,E$=Object.getPrototypeOf,P$=Object.prototype.hasOwnProperty,Il=(e,t)=>function(){return t||(0,e[$p(e)[0]])((t={exports:{}}).exports,t),t.exports},S$=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of $p(t))!P$.call(e,o)&&o!==n&&yp(e,o,{get:()=>t[o],enumerable:!(r=D$(t,o))||r.enumerable});return e},T$=(e,t,n)=>(n=e!=null?C$(E$(e)):{},S$(t||!e||!e.__esModule?yp(n,"default",{value:e,enumerable:!0}):n,e)),A$=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"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;function b(D){return D===null||typeof D!="object"?null:(D=p&&D[p]||D["@@iterator"],typeof D=="function"?D:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function $(D,O,Y){this.props=D,this.context=O,this.refs=y,this.updater=Y||h}$.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 x(D,O,Y){this.props=D,this.context=O,this.refs=y,this.updater=Y||h}var E=x.prototype=new C;E.constructor=x,g(E,$.prototype),E.isPureReactComponent=!0;var P=Array.isArray,A=Object.prototype.hasOwnProperty,N={current:null},v={key:!0,ref:!0,__self:!0,__source:!0};function L(D,O,Y){var X,Q={},ne=null,z=null;if(O!=null)for(X in O.ref!==void 0&&(z=O.ref),O.key!==void 0&&(ne=""+O.key),O)A.call(O,X)&&!v.hasOwnProperty(X)&&(Q[X]=O[X]);var q=arguments.length-2;if(q===1)Q.children=Y;else if(1<q){for(var ee=Array(q),ae=0;ae<q;ae++)ee[ae]=arguments[ae+2];Q.children=ee}if(D&&D.defaultProps)for(X in q=D.defaultProps,q)Q[X]===void 0&&(Q[X]=q[X]);return{$$typeof:t,type:D,key:ne,ref:z,props:Q,_owner:N.current}}function R(D,O){return{$$typeof:t,type:D.type,key:O,ref:D.ref,props:D.props,_owner:D._owner}}function M(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function B(D){var O={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(Y){return O[Y]})}var T=/\/+/g;function I(D,O){return typeof D=="object"&&D!==null&&D.key!=null?B(""+D.key):O.toString(36)}function K(D,O,Y,X,Q){var ne=typeof D;(ne==="undefined"||ne==="boolean")&&(D=null);var z=!1;if(D===null)z=!0;else switch(ne){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=X===""?"."+I(z,0):X,P(Q)?(Y="",D!=null&&(Y=D.replace(T,"$&/")+"/"),K(Q,O,Y,"",function(ae){return ae})):Q!=null&&(M(Q)&&(Q=R(Q,Y+(!Q.key||z&&z.key===Q.key?"":(""+Q.key).replace(T,"$&/")+"/")+D)),O.push(Q)),1;if(z=0,X=X===""?".":X+":",P(D))for(var q=0;q<D.length;q++){ne=D[q];var ee=X+I(ne,q);z+=K(ne,O,Y,ee,Q)}else if(ee=b(D),typeof ee=="function")for(D=ee.call(D),q=0;!(ne=D.next()).done;)ne=ne.value,ee=X+I(ne,q++),z+=K(ne,O,Y,ee,Q);else if(ne==="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,Y){if(D==null)return D;var X=[],Q=0;return K(D,X,"","",function(ne){return O.call(Y,ne,Q++)}),X}function S(D){if(D._status===-1){var O=D._result;O=O(),O.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=O)}if(D._status===1)return D._result.default;throw D._result}var W={current:null},G={transition:null},U={ReactCurrentDispatcher:W,ReactCurrentBatchConfig:G,ReactCurrentOwner:N};e.Children={map:V,forEach:function(D,O,Y){V(D,function(){O.apply(this,arguments)},Y)},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(!M(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=x,e.StrictMode=o,e.Suspense=c,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,e.cloneElement=function(D,O,Y){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var X=g({},D.props),Q=D.key,ne=D.ref,z=D._owner;if(O!=null){if(O.ref!==void 0&&(ne=O.ref,z=N.current),O.key!==void 0&&(Q=""+O.key),D.type&&D.type.defaultProps)var q=D.type.defaultProps;for(ee in O)A.call(O,ee)&&!v.hasOwnProperty(ee)&&(X[ee]=O[ee]===void 0&&q!==void 0?q[ee]:O[ee])}var ee=arguments.length-2;if(ee===1)X.children=Y;else if(1<ee){q=Array(ee);for(var ae=0;ae<ee;ae++)q[ae]=arguments[ae+2];X.children=q}return{$$typeof:t,type:D.type,key:Q,ref:ne,props:X,_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=M,e.lazy=function(D){return{$$typeof:f,_payload:{_status:-1,_result:D},_init:S}},e.memo=function(D,O){return{$$typeof:d,type:D,compare:O===void 0?null:O}},e.startTransition=function(D){var O=G.transition;G.transition={};try{D()}finally{G.transition=O}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(D,O){return W.current.useCallback(D,O)},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,O){return W.current.useEffect(D,O)},e.useId=function(){return W.current.useId()},e.useImperativeHandle=function(D,O,Y){return W.current.useImperativeHandle(D,O,Y)},e.useInsertionEffect=function(D,O){return W.current.useInsertionEffect(D,O)},e.useLayoutEffect=function(D,O){return W.current.useLayoutEffect(D,O)},e.useMemo=function(D,O){return W.current.useMemo(D,O)},e.useReducer=function(D,O,Y){return W.current.useReducer(D,O,Y)},e.useRef=function(D){return W.current.useRef(D)},e.useState=function(D){return W.current.useState(D)},e.useSyncExternalStore=function(D,O,Y){return W.current.useSyncExternalStore(D,O,Y)},e.useTransition=function(){return W.current.useTransition()},e.version="18.2.0"}}),M$=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"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),h=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 k=y&&m[y]||m[$];return typeof k=="function"?k:null}var x={current:null},E={transition:null},P={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},A={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 k=N.getCurrentStack;return k&&(m+=k()||""),m};var R=!1,M=!1,B=!1,T=!1,I=!1,K={ReactCurrentDispatcher:x,ReactCurrentBatchConfig:E,ReactCurrentOwner:A};K.ReactDebugCurrentFrame=N,K.ReactCurrentActQueue=P;function V(m){{for(var k=arguments.length,j=new Array(k>1?k-1:0),H=1;H<k;H++)j[H-1]=arguments[H];W("warn",m,j)}}function S(m){{for(var k=arguments.length,j=new Array(k>1?k-1:0),H=1;H<k;H++)j[H-1]=arguments[H];W("error",m,j)}}function W(m,k,j){{var H=K.ReactDebugCurrentFrame,Z=H.getStackAddendum();Z!==""&&(k+="%s",j=j.concat([Z]));var oe=j.map(function(te){return String(te)});oe.unshift("Warning: "+k),Function.prototype.apply.call(console[m],console,oe)}}var G={};function U(m,k){{var j=m.constructor,H=j&&(j.displayName||j.name)||"ReactClass",Z=H+"."+k;if(G[Z])return;S("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.",k,H),G[Z]=!0}}var D={isMounted:function(m){return!1},enqueueForceUpdate:function(m,k,j){U(m,"forceUpdate")},enqueueReplaceState:function(m,k,j,H){U(m,"replaceState")},enqueueSetState:function(m,k,j,H){U(m,"setState")}},O=Object.assign,Y={};Object.freeze(Y);function X(m,k,j){this.props=m,this.context=k,this.refs=Y,this.updater=j||D}X.prototype.isReactComponent={},X.prototype.setState=function(m,k){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,k,"setState")},X.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)."]},ne=function(m,k){Object.defineProperty(X.prototype,m,{get:function(){V("%s(...) is deprecated in plain JavaScript React classes. %s",k[0],k[1])}})};for(var z in Q)Q.hasOwnProperty(z)&&ne(z,Q[z])}function q(){}q.prototype=X.prototype;function ee(m,k,j){this.props=m,this.context=k,this.refs=Y,this.updater=j||D}var ae=ee.prototype=new q;ae.constructor=ee,O(ae,X.prototype),ae.isPureReactComponent=!0;function re(){var m={current:null};return Object.seal(m),m}var Ie=Array.isArray;function He(m){return Ie(m)}function Ct(m){{var k=typeof Symbol=="function"&&Symbol.toStringTag,j=k&&m[Symbol.toStringTag]||m.constructor.name||"Object";return j}}function Kn(m){try{return Xt(m),!1}catch{return!0}}function Xt(m){return""+m}function Jt(m){if(Kn(m))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ct(m)),Xt(m)}function Cr(m,k,j){var H=m.displayName;if(H)return H;var Z=k.displayName||k.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"&&S("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 k=m;return ue(k)+".Consumer";case l:var j=m;return ue(j._context)+".Provider";case d:return Cr(m,m.render,"ForwardRef");case b:var H=m.displayName||null;return H!==null?H:fe(m.type)||"Memo";case h:{var Z=m,oe=Z._payload,te=Z._init;try{return fe(te(oe))}catch{return null}}}return null}var $e=Object.prototype.hasOwnProperty,Fo={key:!0,ref:!0,__self:!0,__source:!0},Dr,Er,pn;pn={};function Dt(m){if($e.call(m,"ref")){var k=Object.getOwnPropertyDescriptor(m,"ref").get;if(k&&k.isReactWarning)return!1}return m.ref!==void 0}function Pr(m){if($e.call(m,"key")){var k=Object.getOwnPropertyDescriptor(m,"key").get;if(k&&k.isReactWarning)return!1}return m.key!==void 0}function Bo(m,k){var j=function(){Dr||(Dr=!0,S("%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)",k))};j.isReactWarning=!0,Object.defineProperty(m,"key",{get:j,configurable:!0})}function ka(m,k){var j=function(){Er||(Er=!0,S("%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)",k))};j.isReactWarning=!0,Object.defineProperty(m,"ref",{get:j,configurable:!0})}function Ra(m){if(typeof m.ref=="string"&&A.current&&m.__self&&A.current.stateNode!==m.__self){var k=fe(A.current.type);pn[k]||(S('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',k,m.ref),pn[k]=!0)}}var je=function(m,k,j,H,Z,oe,te){var se={$$typeof:r,type:m,key:k,ref:j,props:te,_owner:oe};return se._store={},Object.defineProperty(se._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(se,"_self",{configurable:!1,enumerable:!1,writable:!1,value:H}),Object.defineProperty(se,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.freeze&&(Object.freeze(se.props),Object.freeze(se)),se};function Sr(m,k,j){var H,Z={},oe=null,te=null,se=null,pe=null;if(k!=null){Dt(k)&&(te=k.ref,Ra(k)),Pr(k)&&(Jt(k.key),oe=""+k.key),se=k.__self===void 0?null:k.__self,pe=k.__source===void 0?null:k.__source;for(H in k)$e.call(k,H)&&!Fo.hasOwnProperty(H)&&(Z[H]=k[H])}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 Ee=m.defaultProps;for(H in Ee)Z[H]===void 0&&(Z[H]=Ee[H])}if(oe||te){var Re=typeof m=="function"?m.displayName||m.name||"Unknown":m;oe&&Bo(Z,Re),te&&ka(Z,Re)}return je(m,oe,te,se,pe,A.current,Z)}function h1(m,k){var j=je(m.type,k,m.ref,m._self,m._source,m._owner,m.props);return j}function m1(m,k,j){if(m==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+m+".");var H,Z=O({},m.props),oe=m.key,te=m.ref,se=m._self,pe=m._source,ge=m._owner;if(k!=null){Dt(k)&&(te=k.ref,ge=A.current),Pr(k)&&(Jt(k.key),oe=""+k.key);var we;m.type&&m.type.defaultProps&&(we=m.type.defaultProps);for(H in k)$e.call(k,H)&&!Fo.hasOwnProperty(H)&&(k[H]===void 0&&we!==void 0?Z[H]=we[H]:Z[H]=k[H])}var Ce=arguments.length-2;if(Ce===1)Z.children=j;else if(Ce>1){for(var Ee=Array(Ce),Re=0;Re<Ce;Re++)Ee[Re]=arguments[Re+2];Z.children=Ee}return je(m.type,oe,te,se,pe,ge,Z)}function jn(m){return typeof m=="object"&&m!==null&&m.$$typeof===r}var ic=".",g1=":";function v1(m){var k=/[=:]/g,j={"=":"=0",":":"=2"},H=m.replace(k,function(Z){return j[Z]});return"$"+H}var ac=!1,y1=/\/+/g;function sc(m){return m.replace(y1,"$&/")}function Fa(m,k){return typeof m=="object"&&m!==null&&m.key!=null?(Jt(m.key),v1(""+m.key)):k.toString(36)}function Io(m,k,j,H,Z){var oe=typeof m;(oe==="undefined"||oe==="boolean")&&(m=null);var te=!1;if(m===null)te=!0;else switch(oe){case"string":case"number":te=!0;break;case"object":switch(m.$$typeof){case r:case o:te=!0}}if(te){var se=m,pe=Z(se),ge=H===""?ic+Fa(se,0):H;if(He(pe)){var we="";ge!=null&&(we=sc(ge)+"/"),Io(pe,k,we,"",function(f$){return f$})}else pe!=null&&(jn(pe)&&(pe.key&&(!se||se.key!==pe.key)&&Jt(pe.key),pe=h1(pe,j+(pe.key&&(!se||se.key!==pe.key)?sc(""+pe.key)+"/":"")+ge)),k.push(pe));return 1}var Ce,Ee,Re=0,_e=H===""?ic:H+g1;if(He(m))for(var zo=0;zo<m.length;zo++)Ce=m[zo],Ee=_e+Fa(Ce,zo),Re+=Io(Ce,k,j,Ee,Z);else{var _a=C(m);if(typeof _a=="function"){var kc=m;_a===kc.entries&&(ac||V("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ac=!0);for(var c$=_a.call(kc),Rc,d$=0;!(Rc=c$.next()).done;)Ce=Rc.value,Ee=_e+Fa(Ce,d$++),Re+=Io(Ce,k,j,Ee,Z)}else if(oe==="object"){var Fc=String(m);throw new Error("Objects are not valid as a React child (found: "+(Fc==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":Fc)+"). If you meant to render a collection of children, use an array instead.")}}return Re}function Lo(m,k,j){if(m==null)return m;var H=[],Z=0;return Io(m,H,"","",function(oe){return k.call(j,oe,Z++)}),H}function $1(m){var k=0;return Lo(m,function(){k++}),k}function x1(m,k,j){Lo(m,function(){k.apply(this,arguments)},j)}function w1(m){return Lo(m,function(k){return k})||[]}function C1(m){if(!jn(m))throw new Error("React.Children.only expected to receive a single React element child.");return m}function D1(m){var k={$$typeof:c,_currentValue:m,_currentValue2:m,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};k.Provider={$$typeof:l,_context:k};var j=!1,H=!1,Z=!1;{var oe={$$typeof:c,_context:k};Object.defineProperties(oe,{Provider:{get:function(){return H||(H=!0,S("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),k.Provider},set:function(te){k.Provider=te}},_currentValue:{get:function(){return k._currentValue},set:function(te){k._currentValue=te}},_currentValue2:{get:function(){return k._currentValue2},set:function(te){k._currentValue2=te}},_threadCount:{get:function(){return k._threadCount},set:function(te){k._threadCount=te}},Consumer:{get:function(){return j||(j=!0,S("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),k.Consumer}},displayName:{get:function(){return k.displayName},set:function(te){Z||(V("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",te),Z=!0)}}}),k.Consumer=oe}return k._currentRenderer=null,k._currentRenderer2=null,k}var Tr=-1,Ba=0,lc=1,E1=2;function P1(m){if(m._status===Tr){var k=m._result,j=k();if(j.then(function(oe){if(m._status===Ba||m._status===Tr){var te=m;te._status=lc,te._result=oe}},function(oe){if(m._status===Ba||m._status===Tr){var te=m;te._status=E1,te._result=oe}}),m._status===Tr){var H=m;H._status=Ba,H._result=j}}if(m._status===lc){var Z=m._result;return Z===void 0&&S(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react/jsx-runtime"),d=require("react"),me=require("styled-components"),ho=require("react-dom"),$p=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function m$(e){if(e&&typeof e=="object"&&"default"in e)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 A=m$(d),G=$p(me),mo=$p(ho);var g$=()=>B.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[B.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"}),B.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 v$(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=A.createContext(void 0);o.displayName=r;function a(){var i;const s=A.useContext(o);if(!s&&t){const l=new Error(n);throw l.name="ContextError",(i=Error.captureStackTrace)==null||i.call(Error,l,a),l}return s}return[o.Provider,a,o]}function y$(e){return{UNSAFE_getDOMNode(){return e.current}}}function Fs(e){const t=d.useRef(null);return d.useImperativeHandle(e,()=>t.current),t}var $$=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3);function xp(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=xp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function eo(...e){for(var t=0,n,r,o="";t<e.length;)(n=e[t++])&&(r=xp(n))&&(o&&(o+=" "),o+=r);return o}var Lc={};function x$(e,t,...n){var r;const a=`[Next UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!Lc[a]&&(Lc[a]=!0,((r=process==null?void 0:process.env)==null?void 0:r.NODE_ENV)!=="production"))return console.warn(a,n)}process.env.NODE_ENV;process.env.NODE_ENV;function w$(e){return typeof e=="function"}var Tt=e=>e?"true":void 0;function C$(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function D$(e,t){if(e!=null){if(w$(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function E$(...e){return t=>{e.forEach(n=>D$(n,t))}}var P$=Object.create,wp=Object.defineProperty,S$=Object.getOwnPropertyDescriptor,Cp=Object.getOwnPropertyNames,T$=Object.getPrototypeOf,A$=Object.prototype.hasOwnProperty,Vl=(e,t)=>function(){return t||(0,e[Cp(e)[0]])((t={exports:{}}).exports,t),t.exports},M$=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Cp(t))!A$.call(e,o)&&o!==n&&wp(e,o,{get:()=>t[o],enumerable:!(r=S$(t,o))||r.enumerable});return e},k$=(e,t,n)=>(n=e!=null?P$(T$(e)):{},M$(t||!e||!e.__esModule?wp(n,"default",{value:e,enumerable:!0}):n,e)),R$=Vl({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;function b(D){return D===null||typeof D!="object"?null:(D=p&&D[p]||D["@@iterator"],typeof D=="function"?D:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function $(D,N,q){this.props=D,this.context=N,this.refs=y,this.updater=q||h}$.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 x(D,N,q){this.props=D,this.context=N,this.refs=y,this.updater=q||h}var E=x.prototype=new C;E.constructor=x,g(E,$.prototype),E.isPureReactComponent=!0;var P=Array.isArray,M=Object.prototype.hasOwnProperty,K={current:null},v={key:!0,ref:!0,__self:!0,__source:!0};function V(D,N,q){var J,ee={},re=null,z=null;if(N!=null)for(J in N.ref!==void 0&&(z=N.ref),N.key!==void 0&&(re=""+N.key),N)M.call(N,J)&&!v.hasOwnProperty(J)&&(ee[J]=N[J]);var Z=arguments.length-2;if(Z===1)ee.children=q;else if(1<Z){for(var te=Array(Z),se=0;se<Z;se++)te[se]=arguments[se+2];ee.children=te}if(D&&D.defaultProps)for(J in Z=D.defaultProps,Z)ee[J]===void 0&&(ee[J]=Z[J]);return{$$typeof:t,type:D,key:re,ref:z,props:ee,_owner:K.current}}function F(D,N){return{$$typeof:t,type:D.type,key:N,ref:D.ref,props:D.props,_owner:D._owner}}function k(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function I(D){var N={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(q){return N[q]})}var T=/\/+/g;function L(D,N){return typeof D=="object"&&D!==null&&D.key!=null?I(""+D.key):N.toString(36)}function j(D,N,q,J,ee){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,ee=ee(z),D=J===""?"."+L(z,0):J,P(ee)?(q="",D!=null&&(q=D.replace(T,"$&/")+"/"),j(ee,N,q,"",function(se){return se})):ee!=null&&(k(ee)&&(ee=F(ee,q+(!ee.key||z&&z.key===ee.key?"":(""+ee.key).replace(T,"$&/")+"/")+D)),N.push(ee)),1;if(z=0,J=J===""?".":J+":",P(D))for(var Z=0;Z<D.length;Z++){re=D[Z];var te=J+L(re,Z);z+=j(re,N,q,te,ee)}else if(te=b(D),typeof te=="function")for(D=te.call(D),Z=0;!(re=D.next()).done;)re=re.value,te=J+L(re,Z++),z+=j(re,N,q,te,ee);else if(re==="object")throw N=String(D),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.");return z}function O(D,N,q){if(D==null)return D;var J=[],ee=0;return j(D,J,"","",function(re){return N.call(q,re,ee++)}),J}function S(D){if(D._status===-1){var N=D._result;N=N(),N.then(function(q){(D._status===0||D._status===-1)&&(D._status=1,D._result=q)},function(q){(D._status===0||D._status===-1)&&(D._status=2,D._result=q)}),D._status===-1&&(D._status=0,D._result=N)}if(D._status===1)return D._result.default;throw D._result}var W={current:null},Y={transition:null},U={ReactCurrentDispatcher:W,ReactCurrentBatchConfig:Y,ReactCurrentOwner:K};e.Children={map:O,forEach:function(D,N,q){O(D,function(){N.apply(this,arguments)},q)},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(!k(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},e.Component=$,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=o,e.Suspense=u,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,e.cloneElement=function(D,N,q){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var J=g({},D.props),ee=D.key,re=D.ref,z=D._owner;if(N!=null){if(N.ref!==void 0&&(re=N.ref,z=K.current),N.key!==void 0&&(ee=""+N.key),D.type&&D.type.defaultProps)var Z=D.type.defaultProps;for(te in N)M.call(N,te)&&!v.hasOwnProperty(te)&&(J[te]=N[te]===void 0&&Z!==void 0?Z[te]:N[te])}var te=arguments.length-2;if(te===1)J.children=q;else if(1<te){Z=Array(te);for(var se=0;se<te;se++)Z[se]=arguments[se+2];J.children=Z}return{$$typeof:t,type:D.type,key:ee,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:i,_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=k,e.lazy=function(D){return{$$typeof:f,_payload:{_status:-1,_result:D},_init:S}},e.memo=function(D,N){return{$$typeof:c,type:D,compare:N===void 0?null:N}},e.startTransition=function(D){var N=Y.transition;Y.transition={};try{D()}finally{Y.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,q){return W.current.useImperativeHandle(D,N,q)},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,q){return W.current.useReducer(D,N,q)},e.useRef=function(D){return W.current.useRef(D)},e.useState=function(D){return W.current.useState(D)},e.useSyncExternalStore=function(D,N,q){return W.current.useSyncExternalStore(D,N,q)},e.useTransition=function(){return W.current.useTransition()},e.version="18.2.0"}}),F$=Vl({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(e,t){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.2.0",r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),h=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 R=y&&m[y]||m[$];return typeof R=="function"?R:null}var x={current:null},E={transition:null},P={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},M={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 R=K.getCurrentStack;return R&&(m+=R()||""),m};var F=!1,k=!1,I=!1,T=!1,L=!1,j={ReactCurrentDispatcher:x,ReactCurrentBatchConfig:E,ReactCurrentOwner:M};j.ReactDebugCurrentFrame=K,j.ReactCurrentActQueue=P;function O(m){{for(var R=arguments.length,_=new Array(R>1?R-1:0),H=1;H<R;H++)_[H-1]=arguments[H];W("warn",m,_)}}function S(m){{for(var R=arguments.length,_=new Array(R>1?R-1:0),H=1;H<R;H++)_[H-1]=arguments[H];W("error",m,_)}}function W(m,R,_){{var H=j.ReactDebugCurrentFrame,X=H.getStackAddendum();X!==""&&(R+="%s",_=_.concat([X]));var ae=_.map(function(ne){return String(ne)});ae.unshift("Warning: "+R),Function.prototype.apply.call(console[m],console,ae)}}var Y={};function U(m,R){{var _=m.constructor,H=_&&(_.displayName||_.name)||"ReactClass",X=H+"."+R;if(Y[X])return;S("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.",R,H),Y[X]=!0}}var D={isMounted:function(m){return!1},enqueueForceUpdate:function(m,R,_){U(m,"forceUpdate")},enqueueReplaceState:function(m,R,_,H){U(m,"replaceState")},enqueueSetState:function(m,R,_,H){U(m,"setState")}},N=Object.assign,q={};Object.freeze(q);function J(m,R,_){this.props=m,this.context=R,this.refs=q,this.updater=_||D}J.prototype.isReactComponent={},J.prototype.setState=function(m,R){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,R,"setState")},J.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)."]},re=function(m,R){Object.defineProperty(J.prototype,m,{get:function(){O("%s(...) is deprecated in plain JavaScript React classes. %s",R[0],R[1])}})};for(var z in ee)ee.hasOwnProperty(z)&&re(z,ee[z])}function Z(){}Z.prototype=J.prototype;function te(m,R,_){this.props=m,this.context=R,this.refs=q,this.updater=_||D}var se=te.prototype=new Z;se.constructor=te,N(se,J.prototype),se.isPureReactComponent=!0;function oe(){var m={current:null};return Object.seal(m),m}var Ve=Array.isArray;function We(m){return Ve(m)}function Dt(m){{var R=typeof Symbol=="function"&&Symbol.toStringTag,_=R&&m[Symbol.toStringTag]||m.constructor.name||"Object";return _}}function Kn(m){try{return Xt(m),!1}catch{return!0}}function Xt(m){return""+m}function Jt(m){if(Kn(m))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Dt(m)),Xt(m)}function Cr(m,R,_){var H=m.displayName;if(H)return H;var X=R.displayName||R.name||"";return X!==""?_+"("+X+")":_}function ce(m){return m.displayName||"Context"}function pe(m){if(m==null)return null;if(typeof m.tag=="number"&&S("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 a:return"Fragment";case o:return"Portal";case s:return"Profiler";case i:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case u:var R=m;return ce(R)+".Consumer";case l:var _=m;return ce(_._context)+".Provider";case c:return Cr(m,m.render,"ForwardRef");case b:var H=m.displayName||null;return H!==null?H:pe(m.type)||"Memo";case h:{var X=m,ae=X._payload,ne=X._init;try{return pe(ne(ae))}catch{return null}}}return null}var we=Object.prototype.hasOwnProperty,Io={key:!0,ref:!0,__self:!0,__source:!0},Dr,Er,pn;pn={};function Et(m){if(we.call(m,"ref")){var R=Object.getOwnPropertyDescriptor(m,"ref").get;if(R&&R.isReactWarning)return!1}return m.ref!==void 0}function Pr(m){if(we.call(m,"key")){var R=Object.getOwnPropertyDescriptor(m,"key").get;if(R&&R.isReactWarning)return!1}return m.key!==void 0}function Lo(m,R){var _=function(){Dr||(Dr=!0,S("%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)",R))};_.isReactWarning=!0,Object.defineProperty(m,"key",{get:_,configurable:!0})}function Fi(m,R){var _=function(){Er||(Er=!0,S("%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)",R))};_.isReactWarning=!0,Object.defineProperty(m,"ref",{get:_,configurable:!0})}function Bi(m){if(typeof m.ref=="string"&&M.current&&m.__self&&M.current.stateNode!==m.__self){var R=pe(M.current.type);pn[R]||(S('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',R,m.ref),pn[R]=!0)}}var _e=function(m,R,_,H,X,ae,ne){var le={$$typeof:r,type:m,key:R,ref:_,props:ne,_owner:ae};return le._store={},Object.defineProperty(le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(le,"_self",{configurable:!1,enumerable:!1,writable:!1,value:H}),Object.defineProperty(le,"_source",{configurable:!1,enumerable:!1,writable:!1,value:X}),Object.freeze&&(Object.freeze(le.props),Object.freeze(le)),le};function Sr(m,R,_){var H,X={},ae=null,ne=null,le=null,be=null;if(R!=null){Et(R)&&(ne=R.ref,Bi(R)),Pr(R)&&(Jt(R.key),ae=""+R.key),le=R.__self===void 0?null:R.__self,be=R.__source===void 0?null:R.__source;for(H in R)we.call(R,H)&&!Io.hasOwnProperty(H)&&(X[H]=R[H])}var ye=arguments.length-2;if(ye===1)X.children=_;else if(ye>1){for(var De=Array(ye),Ee=0;Ee<ye;Ee++)De[Ee]=arguments[Ee+2];Object.freeze&&Object.freeze(De),X.children=De}if(m&&m.defaultProps){var Se=m.defaultProps;for(H in Se)X[H]===void 0&&(X[H]=Se[H])}if(ae||ne){var Be=typeof m=="function"?m.displayName||m.name||"Unknown":m;ae&&Lo(X,Be),ne&&Fi(X,Be)}return _e(m,ae,ne,le,be,M.current,X)}function v1(m,R){var _=_e(m.type,R,m.ref,m._self,m._source,m._owner,m.props);return _}function y1(m,R,_){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),ae=m.key,ne=m.ref,le=m._self,be=m._source,ye=m._owner;if(R!=null){Et(R)&&(ne=R.ref,ye=M.current),Pr(R)&&(Jt(R.key),ae=""+R.key);var De;m.type&&m.type.defaultProps&&(De=m.type.defaultProps);for(H in R)we.call(R,H)&&!Io.hasOwnProperty(H)&&(R[H]===void 0&&De!==void 0?X[H]=De[H]:X[H]=R[H])}var Ee=arguments.length-2;if(Ee===1)X.children=_;else if(Ee>1){for(var Se=Array(Ee),Be=0;Be<Ee;Be++)Se[Be]=arguments[Be+2];X.children=Se}return _e(m.type,ae,ne,le,be,ye,X)}function jn(m){return typeof m=="object"&&m!==null&&m.$$typeof===r}var sc=".",$1=":";function x1(m){var R=/[=:]/g,_={"=":"=0",":":"=2"},H=m.replace(R,function(X){return _[X]});return"$"+H}var lc=!1,w1=/\/+/g;function uc(m){return m.replace(w1,"$&/")}function Ii(m,R){return typeof m=="object"&&m!==null&&m.key!=null?(Jt(m.key),x1(""+m.key)):R.toString(36)}function Vo(m,R,_,H,X){var ae=typeof m;(ae==="undefined"||ae==="boolean")&&(m=null);var ne=!1;if(m===null)ne=!0;else switch(ae){case"string":case"number":ne=!0;break;case"object":switch(m.$$typeof){case r:case o:ne=!0}}if(ne){var le=m,be=X(le),ye=H===""?sc+Ii(le,0):H;if(We(be)){var De="";ye!=null&&(De=uc(ye)+"/"),Vo(be,R,De,"",function(h$){return h$})}else be!=null&&(jn(be)&&(be.key&&(!le||le.key!==be.key)&&Jt(be.key),be=v1(be,_+(be.key&&(!le||le.key!==be.key)?uc(""+be.key)+"/":"")+ye)),R.push(be));return 1}var Ee,Se,Be=0,ze=H===""?sc:H+$1;if(We(m))for(var Ho=0;Ho<m.length;Ho++)Ee=m[Ho],Se=ze+Ii(Ee,Ho),Be+=Vo(Ee,R,_,Se,X);else{var Ui=C(m);if(typeof Ui=="function"){var Fc=m;Ui===Fc.entries&&(lc||O("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),lc=!0);for(var p$=Ui.call(Fc),Bc,b$=0;!(Bc=p$.next()).done;)Ee=Bc.value,Se=ze+Ii(Ee,b$++),Be+=Vo(Ee,R,_,Se,X)}else if(ae==="object"){var Ic=String(m);throw new Error("Objects are not valid as a React child (found: "+(Ic==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":Ic)+"). If you meant to render a collection of children, use an array instead.")}}return Be}function Oo(m,R,_){if(m==null)return m;var H=[],X=0;return Vo(m,H,"","",function(ae){return R.call(_,ae,X++)}),H}function C1(m){var R=0;return Oo(m,function(){R++}),R}function D1(m,R,_){Oo(m,function(){R.apply(this,arguments)},_)}function E1(m){return Oo(m,function(R){return R})||[]}function P1(m){if(!jn(m))throw new Error("React.Children.only expected to receive a single React element child.");return m}function S1(m){var R={$$typeof:u,_currentValue:m,_currentValue2:m,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};R.Provider={$$typeof:l,_context:R};var _=!1,H=!1,X=!1;{var ae={$$typeof:u,_context:R};Object.defineProperties(ae,{Provider:{get:function(){return H||(H=!0,S("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),R.Provider},set:function(ne){R.Provider=ne}},_currentValue:{get:function(){return R._currentValue},set:function(ne){R._currentValue=ne}},_currentValue2:{get:function(){return R._currentValue2},set:function(ne){R._currentValue2=ne}},_threadCount:{get:function(){return R._threadCount},set:function(ne){R._threadCount=ne}},Consumer:{get:function(){return _||(_=!0,S("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),R.Consumer}},displayName:{get:function(){return R.displayName},set:function(ne){X||(O("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",ne),X=!0)}}}),R.Consumer=ae}return R._currentRenderer=null,R._currentRenderer2=null,R}var Tr=-1,Li=0,cc=1,T1=2;function A1(m){if(m._status===Tr){var R=m._result,_=R();if(_.then(function(ae){if(m._status===Li||m._status===Tr){var ne=m;ne._status=cc,ne._result=ae}},function(ae){if(m._status===Li||m._status===Tr){var ne=m;ne._status=T1,ne._result=ae}}),m._status===Tr){var H=m;H._status=Li,H._result=_}}if(m._status===cc){var X=m._result;return X===void 0&&S(`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?`,X),"default"in X||S(`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'))`,X),X.default}else throw m._result}function M1(m){var R={_status:Tr,_result:m},_={$$typeof:h,_payload:R,_init:A1};{var H,X;Object.defineProperties(_,{defaultProps:{configurable:!0,get:function(){return H},set:function(ae){S("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),H=ae,Object.defineProperty(_,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return X},set:function(ae){S("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),X=ae,Object.defineProperty(_,"propTypes",{enumerable:!0})}}})}return _}function k1(m){m!=null&&m.$$typeof===b?S("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof m!="function"?S("forwardRef requires a render function but was given %s.",m===null?"null":typeof m):m.length!==0&&m.length!==2&&S("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)&&S("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var R={$$typeof:c,render:m};{var _;Object.defineProperty(R,"displayName",{enumerable:!1,configurable:!0,get:function(){return _},set:function(H){_=H,!m.name&&!m.displayName&&(m.displayName=H)}})}return R}var dc;dc=Symbol.for("react.module.reference");function fc(m){return!!(typeof m=="string"||typeof m=="function"||m===a||m===s||L||m===i||m===f||m===p||T||m===g||F||k||I||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===b||m.$$typeof===l||m.$$typeof===u||m.$$typeof===c||m.$$typeof===dc||m.getModuleId!==void 0))}function R1(m,R){fc(m)||S("memo: The first argument must be a component. Instead received: %s",m===null?"null":typeof m);var _={$$typeof:b,type:m,compare:R===void 0?null:R};{var H;Object.defineProperty(_,"displayName",{enumerable:!1,configurable:!0,get:function(){return H},set:function(X){H=X,!m.name&&!m.displayName&&(m.displayName=X)}})}return _}function Ze(){var m=x.current;return m===null&&S(`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 F1(m){var R=Ze();if(m._context!==void 0){var _=m._context;_.Consumer===m?S("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):_.Provider===m&&S("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return R.useContext(m)}function B1(m){var R=Ze();return R.useState(m)}function I1(m,R,_){var H=Ze();return H.useReducer(m,R,_)}function L1(m){var R=Ze();return R.useRef(m)}function V1(m,R){var _=Ze();return _.useEffect(m,R)}function O1(m,R){var _=Ze();return _.useInsertionEffect(m,R)}function N1(m,R){var _=Ze();return _.useLayoutEffect(m,R)}function K1(m,R){var _=Ze();return _.useCallback(m,R)}function j1(m,R){var _=Ze();return _.useMemo(m,R)}function _1(m,R,_){var H=Ze();return H.useImperativeHandle(m,R,_)}function z1(m,R){{var _=Ze();return _.useDebugValue(m,R)}}function U1(){var m=Ze();return m.useTransition()}function H1(m){var R=Ze();return R.useDeferredValue(m)}function W1(){var m=Ze();return m.useId()}function G1(m,R,_){var H=Ze();return H.useSyncExternalStore(m,R,_)}var Ar=0,pc,bc,hc,mc,gc,vc,yc;function $c(){}$c.__reactDisabledLog=!0;function Y1(){{if(Ar===0){pc=console.log,bc=console.info,hc=console.warn,mc=console.error,gc=console.group,vc=console.groupCollapsed,yc=console.groupEnd;var m={configurable:!0,enumerable:!0,value:$c,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}Ar++}}function q1(){{if(Ar--,Ar===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},m,{value:pc}),info:N({},m,{value:bc}),warn:N({},m,{value:hc}),error:N({},m,{value:mc}),group:N({},m,{value:gc}),groupCollapsed:N({},m,{value:vc}),groupEnd:N({},m,{value:yc})})}Ar<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Vi=j.ReactCurrentDispatcher,Oi;function No(m,R,_){{if(Oi===void 0)try{throw Error()}catch(X){var H=X.stack.trim().match(/\n( *(at )?)/);Oi=H&&H[1]||""}return`
|
|
14
|
+
`+Oi+m}}var Ni=!1,Ko;{var Z1=typeof WeakMap=="function"?WeakMap:Map;Ko=new Z1}function xc(m,R){if(!m||Ni)return"";{var _=Ko.get(m);if(_!==void 0)return _}var H;Ni=!0;var X=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=Vi.current,Vi.current=null,Y1();try{if(R){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(ze){H=ze}Reflect.construct(m,[],ne)}else{try{ne.call()}catch(ze){H=ze}m.call(ne.prototype)}}else{try{throw Error()}catch(ze){H=ze}m()}}catch(ze){if(ze&&H&&typeof ze.stack=="string"){for(var le=ze.stack.split(`
|
|
15
|
+
`),be=H.stack.split(`
|
|
16
|
+
`),ye=le.length-1,De=be.length-1;ye>=1&&De>=0&&le[ye]!==be[De];)De--;for(;ye>=1&&De>=0;ye--,De--)if(le[ye]!==be[De]){if(ye!==1||De!==1)do if(ye--,De--,De<0||le[ye]!==be[De]){var Ee=`
|
|
17
|
+
`+le[ye].replace(" at new "," at ");return m.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",m.displayName)),typeof m=="function"&&Ko.set(m,Ee),Ee}while(ye>=1&&De>=0);break}}}finally{Ni=!1,Vi.current=ae,q1(),Error.prepareStackTrace=X}var Se=m?m.displayName||m.name:"",Be=Se?No(Se):"";return typeof m=="function"&&Ko.set(m,Be),Be}function X1(m,R,_){return xc(m,!1)}function J1(m){var R=m.prototype;return!!(R&&R.isReactComponent)}function jo(m,R,_){if(m==null)return"";if(typeof m=="function")return xc(m,J1(m));if(typeof m=="string")return No(m);switch(m){case f:return No("Suspense");case p:return No("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case c:return X1(m.render);case b:return jo(m.type,R,_);case h:{var H=m,X=H._payload,ae=H._init;try{return jo(ae(X),R,_)}catch{}}}return""}var wc={},Cc=j.ReactDebugCurrentFrame;function _o(m){if(m){var R=m._owner,_=jo(m.type,m._source,R?R.type:null);Cc.setExtraStackFrame(_)}else Cc.setExtraStackFrame(null)}function Q1(m,R,_,H,X){{var ae=Function.call.bind(we);for(var ne in m)if(ae(m,ne)){var le=void 0;try{if(typeof m[ne]!="function"){var be=Error((H||"React class")+": "+_+" type `"+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[ne]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw be.name="Invariant Violation",be}le=m[ne](R,ne,H,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ye){le=ye}le&&!(le instanceof Error)&&(_o(X),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",H||"React class",_,ne,typeof le),_o(null)),le instanceof Error&&!(le.message in wc)&&(wc[le.message]=!0,_o(X),S("Failed %s type: %s",_,le.message),_o(null))}}}function _n(m){if(m){var R=m._owner,_=jo(m.type,m._source,R?R.type:null);V(_)}else V(null)}var Ki;Ki=!1;function Dc(){if(M.current){var m=pe(M.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 e$(m){if(m!==void 0){var R=m.fileName.replace(/^.*[\\\/]/,""),_=m.lineNumber;return`
|
|
20
20
|
|
|
21
|
-
Check your code at `+
|
|
21
|
+
Check your code at `+R+":"+_+"."}return""}function t$(m){return m!=null?e$(m.__source):""}var Ec={};function n$(m){var R=Dc();if(!R){var _=typeof m=="string"?m:m.displayName||m.name;_&&(R=`
|
|
22
22
|
|
|
23
|
-
Check the top-level render call using <`+
|
|
23
|
+
Check the top-level render call using <`+_+">.")}return R}function Pc(m,R){if(!(!m._store||m._store.validated||m.key!=null)){m._store.validated=!0;var _=n$(R);if(!Ec[_]){Ec[_]=!0;var H="";m&&m._owner&&m._owner!==M.current&&(H=" It was passed a child from "+pe(m._owner.type)+"."),_n(m),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_,H),_n(null)}}}function Sc(m,R){if(typeof m=="object"){if(We(m))for(var _=0;_<m.length;_++){var H=m[_];jn(H)&&Pc(H,R)}else if(jn(m))m._store&&(m._store.validated=!0);else if(m){var X=C(m);if(typeof X=="function"&&X!==m.entries)for(var ae=X.call(m),ne;!(ne=ae.next()).done;)jn(ne.value)&&Pc(ne.value,R)}}}function Tc(m){{var R=m.type;if(R==null||typeof R=="string")return;var _;if(typeof R=="function")_=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===c||R.$$typeof===b))_=R.propTypes;else return;if(_){var H=pe(R);Q1(_,m.props,"prop",H,m)}else if(R.PropTypes!==void 0&&!Ki){Ki=!0;var X=pe(R);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",X||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function r$(m){{for(var R=Object.keys(m.props),_=0;_<R.length;_++){var H=R[_];if(H!=="children"&&H!=="key"){_n(m),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",H),_n(null);break}}m.ref!==null&&(_n(m),S("Invalid attribute `ref` supplied to `React.Fragment`."),_n(null))}}function Ac(m,R,_){var H=fc(m);if(!H){var X="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(X+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ae=t$(R);ae?X+=ae:X+=Dc();var ne;m===null?ne="null":We(m)?ne="array":m!==void 0&&m.$$typeof===r?(ne="<"+(pe(m.type)||"Unknown")+" />",X=" Did you accidentally export a JSX literal instead of a component?"):ne=typeof m,S("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ne,X)}var le=Sr.apply(this,arguments);if(le==null)return le;if(H)for(var be=2;be<arguments.length;be++)Sc(arguments[be],m);return m===a?r$(le):Tc(le),le}var Mc=!1;function o$(m){var R=Ac.bind(null,m);return R.type=m,Mc||(Mc=!0,O("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(R,"type",{enumerable:!1,get:function(){return O("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:m}),m}}),R}function a$(m,R,_){for(var H=y1.apply(this,arguments),X=2;X<arguments.length;X++)Sc(arguments[X],H.type);return Tc(H),H}function i$(m,R){var _=E.transition;E.transition={};var H=E.transition;E.transition._updatedFibers=new Set;try{m()}finally{if(E.transition=_,_===null&&H._updatedFibers){var X=H._updatedFibers.size;X>10&&O("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),H._updatedFibers.clear()}}}var kc=!1,zo=null;function s$(m){if(zo===null)try{var R=("require"+Math.random()).slice(0,7),_=t&&t[R];zo=_.call(t,"timers").setImmediate}catch{zo=function(X){kc===!1&&(kc=!0,typeof MessageChannel>"u"&&S("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 ae=new MessageChannel;ae.port1.onmessage=X,ae.port2.postMessage(void 0)}}return zo(m)}var zn=0,Rc=!1;function l$(m){{var R=zn;zn++,P.current===null&&(P.current=[]);var _=P.isBatchingLegacy,H;try{if(P.isBatchingLegacy=!0,H=m(),!_&&P.didScheduleLegacyUpdate){var X=P.current;X!==null&&(P.didScheduleLegacyUpdate=!1,zi(X))}}catch(Se){throw Uo(R),Se}finally{P.isBatchingLegacy=_}if(H!==null&&typeof H=="object"&&typeof H.then=="function"){var ae=H,ne=!1,le={then:function(Se,Be){ne=!0,ae.then(function(ze){Uo(R),zn===0?ji(ze,Se,Be):Se(ze)},function(ze){Uo(R),Be(ze)})}};return!Rc&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){ne||(Rc=!0,S("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 () => ...);"))}),le}else{var be=H;if(Uo(R),zn===0){var ye=P.current;ye!==null&&(zi(ye),P.current=null);var De={then:function(Se,Be){P.current===null?(P.current=[],ji(be,Se,Be)):Se(be)}};return De}else{var Ee={then:function(Se,Be){Se(be)}};return Ee}}}}function Uo(m){m!==zn-1&&S("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 ji(m,R,_){{var H=P.current;if(H!==null)try{zi(H),s$(function(){H.length===0?(P.current=null,R(m)):ji(m,R,_)})}catch(X){_(X)}else R(m)}}var _i=!1;function zi(m){if(!_i){_i=!0;var R=0;try{for(;R<m.length;R++){var _=m[R];do _=_(!0);while(_!==null)}m.length=0}catch(H){throw m=m.slice(R+1),H}finally{_i=!1}}}var u$=Ac,c$=a$,d$=o$,f$={map:Oo,forEach:D1,count:C1,toArray:E1,only:P1};e.Children=f$,e.Component=J,e.Fragment=a,e.Profiler=s,e.PureComponent=te,e.StrictMode=i,e.Suspense=f,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,e.cloneElement=c$,e.createContext=S1,e.createElement=u$,e.createFactory=d$,e.createRef=oe,e.forwardRef=k1,e.isValidElement=jn,e.lazy=M1,e.memo=R1,e.startTransition=i$,e.unstable_act=l$,e.useCallback=K1,e.useContext=F1,e.useDebugValue=z1,e.useDeferredValue=H1,e.useEffect=V1,e.useId=W1,e.useImperativeHandle=_1,e.useInsertionEffect=O1,e.useLayoutEffect=N1,e.useMemo=j1,e.useReducer=I1,e.useRef=L1,e.useState=B1,e.useSyncExternalStore=G1,e.useTransition=U1,e.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),B$=Vl({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){process.env.NODE_ENV==="production"?t.exports=R$():t.exports=F$()}});/**
|
|
24
24
|
* @license React
|
|
25
25
|
* react.development.js
|
|
26
26
|
*
|
|
@@ -36,7 +36,7 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){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 Ic=T$(k$());function R$(e){return Ic.Children.toArray(e).filter(t=>(0,Ic.isValidElement)(t))}var[F$,xp]=h$({name:"AvatarGroupContext",strict:!1}),B$=["0","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl","1","2","3","3.5","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],za=B$.map(e=>`unit-${e}`),Lc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,nt=e=>!e||typeof e!="object"||Object.keys(e).length===0,I$=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function wp(e,t){e.forEach(function(n){Array.isArray(n)?wp(n,t):t.push(n)})}function Cp(e){let t=[];return wp(e,t),t}var Dp=(...e)=>Cp(e).filter(Boolean),Ep=(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]=Ep(a,s):Array.isArray(a)||Array.isArray(s)?n[i]=Dp(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},Vc=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function L$(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=Pp(t))&&(r&&(r+=" "),r+=n);return r}function Pp(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=Pp(e[r]))&&(n&&(n+=" "),n+=t);return n}var Ll="-";function V$(e){var t=N$(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(),Sp(l,t)||O$(s)}function a(s,l){var c=n[s]||[];return l&&o[s]?[].concat(c,o[s]):c}return{getClassGroupId:i,getConflictingClassGroupIds:a}}function Sp(e,t){var a;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?Sp(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 Oc=/^\[(.+)\]$/;function O$(e){if(Oc.test(e)){var t=Oc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function N$(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=j$(Object.entries(e.classGroups),n);return o.forEach(function(i){var a=i[0],s=i[1];Rs(s,r,a,t)}),r}function Rs(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var i=o===""?t:Nc(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(K$(o)){Rs(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(a){var s=a[0],l=a[1];Rs(l,Nc(t,s),n,r)})})}function Nc(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 K$(e){return e.isThemeGetter}function j$(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 _$(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 Tp="!";function z$(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,d,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==="/"){d=f;continue}}p==="["?l++:p==="]"&&l--}var b=s.length===0?a:a.substring(c),h=b.startsWith(Tp),g=h?b.substring(1):b,y=d&&d>c?d-c:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:y}}}function U$(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 H$(e){return{cache:_$(e.cacheSize),splitModifiers:z$(e),...V$(e)}}var W$=/\s+/;function G$(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(W$).map(function(a){var s=n(a),l=s.modifiers,c=s.hasImportantModifier,d=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?d.substring(0,f):d),b=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:a};if(p=r(d),!p)return{isTailwindClass:!1,originalClassName:a};b=!1}var h=U$(l).join(":"),g=c?h+Tp:h;return{isTailwindClass:!0,modifierId:g,classGroupId:p,originalClassName:a,hasPostfixModifier:b}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var s=a.modifierId,l=a.classGroupId,c=a.hasPostfixModifier,d=s+l;return i.has(d)?!1:(i.add(d),o(l,c).forEach(function(f){return i.add(s+f)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function Fs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,i,a=s;function s(c){var d=t[0],f=t.slice(1),p=f.reduce(function(b,h){return h(b)},d());return r=H$(p),o=r.cache.get,i=r.cache.set,a=l,l(c)}function l(c){var d=o(c);if(d)return d;var f=G$(c,r);return i(c,f),f}return function(){return a(L$.apply(null,arguments))}}function xe(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var Ap=/^\[(?:([a-z-]+):)?(.+)\]$/i,Y$=/^\d+\/\d+$/,q$=new Set(["px","full","screen"]),Z$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,X$=/\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$/,J$=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function yt(e){return wn(e)||q$.has(e)||Y$.test(e)||Bs(e)}function Bs(e){return Fn(e,"length",o3)}function Q$(e){return Fn(e,"size",Mp)}function e3(e){return Fn(e,"position",Mp)}function t3(e){return Fn(e,"url",i3)}function Uo(e){return Fn(e,"number",wn)}function wn(e){return!Number.isNaN(Number(e))}function n3(e){return e.endsWith("%")&&wn(e.slice(0,-1))}function Mr(e){return Kc(e)||Fn(e,"number",Kc)}function ce(e){return Ap.test(e)}function kr(){return!0}function Qt(e){return Z$.test(e)}function r3(e){return Fn(e,"",a3)}function Fn(e,t,n){var r=Ap.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function o3(e){return X$.test(e)}function Mp(){return!1}function i3(e){return e.startsWith("url(")}function Kc(e){return Number.isInteger(Number(e))}function a3(e){return J$.test(e)}function Is(){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"),c=xe("grayscale"),d=xe("hueRotate"),f=xe("invert"),p=xe("gap"),b=xe("gradientColorStops"),h=xe("gradientColorStopPositions"),g=xe("inset"),y=xe("margin"),$=xe("opacity"),C=xe("padding"),x=xe("saturate"),E=xe("scale"),P=xe("sepia"),A=xe("skew"),N=xe("space"),v=xe("translate"),L=function(){return["auto","contain","none"]},R=function(){return["auto","hidden","clip","visible","scroll"]},M=function(){return["auto",ce,t]},B=function(){return[ce,t]},T=function(){return["",yt]},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"]},S=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"]},G=function(){return["","0",ce]},U=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:[kr],spacing:[yt],blur:["none","",Qt,ce],brightness:D(),borderColor:[e],borderRadius:["none","","full",Qt,ce],borderSpacing:B(),borderWidth:T(),contrast:D(),grayscale:G(),hueRotate:O(),invert:G(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[n3,Bs],inset:M(),margin:M(),opacity:D(),padding:B(),saturate:D(),scale:D(),sepia:G(),skew:O(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",ce]}],container:["container"],columns:[{columns:[Qt]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"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:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],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",Mr]}],basis:[{basis:M()}],"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:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",Mr]}],"grid-cols":[{"grid-cols":[kr]}],"col-start-end":[{col:["auto",{span:["full",Mr]},ce]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[kr]}],"row-start-end":[{row:["auto",{span:[Mr]},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(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":[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,yt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Qt]},Qt,ce]}],h:[{h:[ce,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ce,yt]}],"max-h":[{"max-h":[ce,t,"min","max","fit"]}],"font-size":[{text:["base",Qt,Bs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Uo]}],"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",ce]}],"line-clamp":[{"line-clamp":["none",wn,Uo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ce,yt]}],"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",yt]}],"underline-offset":[{"underline-offset":["auto",ce,yt]}],"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(),[e3])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Q$]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},t3]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],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,yt]}],"outline-w":[{outline:[yt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[$]}],"ring-offset-w":[{"ring-offset":[yt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Qt,r3]}],"shadow-color":[{shadow:[kr]}],opacity:[{opacity:[$]}],"mix-blend":[{"mix-blend":S()}],"bg-blend":[{"bg-blend":S()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Qt,ce]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],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":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[$]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"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:[Mr,ce]}],"translate-x":[{"translate-x":[v]}],"translate-y":[{"translate-y":[v]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"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:[yt,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 s3(e,t){for(var n in t)kp(e,n,t[n]);return e}var l3=Object.prototype.hasOwnProperty,u3=new Set(["string","number","boolean"]);function kp(e,t,n){if(!l3.call(e,t)||u3.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 c3(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return typeof e=="function"?Fs.apply(void 0,[Is,e].concat(n)):Fs.apply(void 0,[function(){return s3(Is(),e)}].concat(n))}var d3=Fs(Is),f3={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Rp=e=>e||void 0,to=(...e)=>Rp(Cp(e).filter(Boolean).join(" ")),Ua=null,wi={},Ls=!1,Rr=(...e)=>t=>t.twMerge?((!Ua||Ls)&&(Ls=!1,Ua=nt(wi)?d3:c3(wi)),Rp(Ua(to(e)))):to(e),jc=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=to(e[n],t[n]):e[n]=t[n];return e},p3=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:a=[],defaultVariants:s={}}=e,l={...f3,...t},c=n!=null&&n.base?to(n.base,e==null?void 0:e.base):e==null?void 0:e.base,d=n!=null&&n.variants&&!nt(n.variants)?Ep(o,n.variants):o,f=n!=null&&n.defaultVariants&&!nt(n.defaultVariants)?{...n.defaultVariants,...s}:s;!nt(l.twMergeConfig)&&!I$(l.twMergeConfig,wi)&&(Ls=!0,wi=l.twMergeConfig);let p=nt(n==null?void 0:n.slots),b=nt(r)?{}:{base:to(e==null?void 0:e.base,p&&(n==null?void 0:n.base)),...r},h=p?b:jc({...n==null?void 0:n.slots},nt(b)?{base:e==null?void 0:e.base}:b),g=$=>{if(nt(d)&&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=(B,T,I=[],K)=>{let V=I;if(typeof T=="string")V=V.concat(Vc(T).split(" ").map(S=>`${B}:${S}`));else if(Array.isArray(T))V=V.concat(T.reduce((S,W)=>S.concat(`${B}:${W}`),[]));else if(typeof T=="object"&&typeof K=="string"){for(let S in T)if(T.hasOwnProperty(S)&&S===K){let W=T[S];if(W&&typeof W=="string"){let G=Vc(W);V[K]?V[K]=V[K].concat(G.split(" ").map(U=>`${B}:${U}`)):V[K]=G.split(" ").map(U=>`${B}:${U}`)}else Array.isArray(W)&&W.length>0&&(V[K]=W.reduce((G,U)=>G.concat(`${B}:${U}`),[]))}}return V},x=(B,T=d,I=null,K=null)=>{var V;let S=T[B];if(!S||nt(S))return null;let W=(V=K==null?void 0:K[B])!=null?V:$==null?void 0:$[B];if(W===null)return null;let G=Lc(W),U=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,D=f==null?void 0:f[B],O=[];if(typeof G=="object"&&U)for(let[X,Q]of Object.entries(G)){let ne=S[Q];if(X==="initial"){D=Q;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(X)||(O=C(X,ne,O,I))}let Y=S[G]||S[Lc(D)];return typeof O=="object"&&typeof I=="string"&&O[I]?jc(O,Y):O.length>0?(O.push(Y),O):Y},E=()=>d?Object.keys(d).map(B=>x(B,d)):null,P=(B,T)=>{if(!d||typeof d!="object")return null;let I=new Array;for(let K in d){let V=x(K,d,B,T),S=B==="base"&&typeof V=="string"?V:V&&V[B];S&&(I[I.length]=S)}return I},A={};for(let B in $)$[B]!==void 0&&(A[B]=$[B]);let N=(B,T)=>{var I;let K=typeof($==null?void 0:$[B])=="object"?{[B]:(I=$[B])==null?void 0:I.initial}:{};return{...f,...A,...K,...T}},v=(B=[],T)=>{let I=[];for(let{class:K,className:V,...S}of B){let W=!0;for(let[G,U]of Object.entries(S)){let D=N(G,T);if(Array.isArray(U)){if(!U.includes(D[G])){W=!1;break}}else if(D[G]!==U){W=!1;break}}W&&(K&&I.push(K),V&&I.push(V))}return I},L=B=>{let T=v(i,B),I=v(n==null?void 0:n.compoundVariants,B);return Dp(I,T)},R=B=>{let T=L(B);if(!Array.isArray(T))return T;let I={};for(let K of T)if(typeof K=="string"&&(I.base=Rr(I.base,K)(l)),typeof K=="object")for(let[V,S]of Object.entries(K))I[V]=Rr(I[V],S)(l);return I},M=B=>{if(a.length<1)return null;let T={};for(let{slots:I=[],class:K,className:V,...S}of a){if(!nt(S)){let W=!0;for(let G of Object.keys(S)){let U=N(G,B)[G];if(U===void 0||(Array.isArray(S[G])?!S[G].includes(U):S[G]!==U)){W=!1;break}}if(!W)continue}for(let W of I)T[W]=T[W]||[],T[W].push([K,V])}return T};if(!nt(r)||!p){let B={};if(typeof h=="object"&&!nt(h))for(let T of Object.keys(h))B[T]=I=>{var K,V;return Rr(h[T],P(T,I),((K=R(I))!=null?K:[])[T],((V=M(I))!=null?V:[])[T],I==null?void 0:I.class,I==null?void 0:I.className)(l)};return B}return Rr(c,E(),L(),$==null?void 0:$.class,$==null?void 0:$.className)(l)},y=()=>{if(!(!d||typeof d!="object"))return Object.keys(d)};return g.variantKeys=y(),g.extend=n,g.base=c,g.slots=h,g.variants=d,g.defaultVariants=f,g.compoundSlots=a,g.compoundVariants=i,g},Ho=["small","medium","large"],ta=(e,t)=>{var n,r,o;return p3(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","unit",...za],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"],"min-w":[{"min-w":["unit",...za]}],"min-h":[{"min-h":["unit",...za]}]}}})},Fp=["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"],Ha=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],b3={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"},h3={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"},m3={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"},g3={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"},v3={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"},y3={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"},$3={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:b3,shadow:h3,bordered:m3,flat:g3,faded:v3,light:y3,ghost:$3},_c=ta({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",...Fp],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"}}},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"}}]}),x3=ta({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...Fp],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...Ha,"flex","items-center","justify-center"],name:[...Ha,"font-normal","text-center","text-inherit"],icon:[...Ha,"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 transition-transform","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"}}]}),w3=ta({base:"flex items-center justify-center h-auto w-max-content",variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}}),zc=ta({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 gt(e,t,n){let[r,o]=u.useState(e||t),i=u.useRef(e!==void 0),a=e!==void 0;u.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=u.useCallback((c,...d)=>{let f=(p,...b)=>{n&&(Object.is(s,p)||n(p,...b)),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((b,...h)=>{let g=c(a?s:b,...h);return f(g,...d),a?b:g})):(a||o(c),f(c,...d))},[a,s,n]);return[s,l]}function bt(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 c=Math.pow(10,l);i=Math.round(i*c)/c}return i}const Ci={prefix:String(Math.round(Math.random()*1e10)),current:0},Bp=u.createContext(Ci),C3=u.createContext(!1);let D3=!!(typeof window<"u"&&window.document&&window.document.createElement),Wa=new WeakMap;function E3(e=!1){let t=u.useContext(Bp),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=Wa.get(i);a==null?Wa.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,Wa.delete(i))}n.current=++t.current}return n.current}function P3(e){let t=u.useContext(Bp);t===Ci&&!D3&&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=E3(!!e),r=t===Ci&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function S3(e){let t=u.useId(),[n]=u.useState(Mt()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ci.prefix}`;return e||`${r}-${t}`}const T3=typeof u.useId=="function"?S3:P3;function A3(){return!1}function M3(){return!0}function k3(e){return()=>{}}function Mt(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(k3,A3,M3):u.useContext(C3)}function Ip(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=Ip(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function R3(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ip(e))&&(r&&(r+=" "),r+=t);return r}const he=typeof document<"u"?u.useLayoutEffect:()=>{};function Se(e){const t=u.useRef(null);return he(()=>{t.current=e},[e]),u.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function F3(e){let[t,n]=u.useState(e),r=u.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)});he(()=>{r.current&&o()});let i=Se(a=>{r.current=a(t),o()});return[t,i]}let B3=!!(typeof window<"u"&&window.document&&window.document.createElement),Di=new Map;function Ue(e){let[t,n]=u.useState(e),r=u.useRef(null),o=T3(t),i=u.useCallback(a=>{r.current=a},[]);return B3&&Di.set(o,i),he(()=>{let a=o;return()=>{Di.delete(a)}},[o]),u.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),o}function I3(e,t){if(e===t)return e;let n=Di.get(e);if(n)return n(t),t;let r=Di.get(t);return r?(r(e),e):t}function on(e=[]){let t=Ue(),[n,r]=F3(t),o=u.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return he(o,[t,o,...e]),n}function sn(...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},pt=e=>e&&"window"in e&&e.window===e?e:ye(e).defaultView||window;function J(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],a=r[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=sn(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=R3(i,a):o==="id"&&i&&a?t.id=I3(i,a):t[o]=a!==void 0?a:i}}return t}function na(...e){return e.length===1?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const L3=new Set(["id"]),V3=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),O3=new Set(["href","target","rel","download","ping","referrerPolicy"]),N3=/^(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)&&(L3.has(a)||n&&V3.has(a)||r&&O3.has(a)||o!=null&&o.has(a)||N3.test(a))&&(i[a]=e[a]);return i}function Tt(e){if(K3())e.focus({preventScroll:!0});else{let t=j3(e);e.focus(),_3(t)}}let Wo=null;function K3(){if(Wo==null){Wo=!1;try{document.createElement("div").focus({get preventScroll(){return Wo=!0,!0}})}catch{}}return Wo}function j3(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 _3(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function ra(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 Lp(){return Vl(/^iPhone/i)}function Vp(){return Vl(/^iPad/i)||Ut()&&navigator.maxTouchPoints>1}function pr(){return Lp()||Vp()}function di(){return Ut()||pr()}function Ol(){return ra(/AppleWebKit/i)&&!z3()}function z3(){return ra(/Chrome/i)}function Nl(){return ra(/Android/i)}function U3(){return ra(/Firefox/i)}const H3=u.createContext({isNative:!0,open:Y3});function ho(){return u.useContext(H3)}function W3(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;U3()&&(!((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 c=Ol()&&Ut()&&!Vp()?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,Tt(e),e.dispatchEvent(c),Sn.isOpening=!1}Sn.isOpening=!1;function G3(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 Y3(e,t){G3(e,n=>Sn(n,t))}let Yn=new Map,Vs=new Set;function Uc(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=Yn.get(r.target);o||(o=new Set,Yn.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=Yn.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Yn.delete(r.target)),Yn.size===0)){for(let i of Vs)i();Vs.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Uc():document.addEventListener("DOMContentLoaded",Uc));function Op(e){requestAnimationFrame(()=>{Yn.size===0?e():Vs.add(e)})}function br(){let e=u.useRef(new Map),t=u.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=u.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=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 Tn(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=Ue(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function vt(e){const t=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 q3(){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(q3()){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){he(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function no(e,t){let n=e;for(Ei(n,t)&&(n=n.parentElement);n&&!Ei(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Ei(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}let ut=typeof document<"u"&&window.visualViewport;function Z3(){let e=Mt(),[t,n]=u.useState(()=>e?{width:0,height:0}:Hc());return u.useEffect(()=>{let r=()=>{n(o=>{let i=Hc();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 Hc(){return{width:ut&&(ut==null?void 0:ut.width)||window.innerWidth,height:ut&&(ut==null?void 0:ut.height)||window.innerHeight}}let X3=0;const Ga=new Map;function Np(e){let[t,n]=u.useState();return he(()=>{if(!e)return;let r=Ga.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${X3++}`;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},Ga.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Ga.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Pi(e,t,n,r){let o=Se(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 Kp(e,t){let n=Wc(e,t,"left"),r=Wc(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c}=getComputedStyle(e),d=e.scrollLeft+parseInt(c,10),f=e.scrollTop+parseInt(l,10),p=d+e.clientWidth,b=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>b&&(s+=r+i-b),e.scrollLeft=a,e.scrollTop=s}function Wc(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Os(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=no(e);for(;e&&l&&e!==a&&l!==a;)Kp(l,e),e=l,l=no(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:d,top:f}=e.getBoundingClientRect();if(Math.abs(l-d)>1||Math.abs(c-f)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function Ns(e){return e.mozInputSource===0&&e.isTrusted?!0:Nl()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function J3(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 Q3(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=Se(()=>{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 ex(e,t){return t.get?t.get.call(e):t.value}function jp(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function tx(e,t){var n=jp(e,t,"get");return ex(e,n)}function nx(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function go(e,t,n){nx(e,t),t.set(e,n)}function rx(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 Gc(e,t,n){var r=jp(e,t,"set");return rx(e,r,n),n}let Xn="default",Ks="",fi=new WeakMap;function js(e){if(pr()){if(Xn==="default"){const t=ye(e);Ks=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Xn="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(fi.set(e,e.style.userSelect),e.style.userSelect="none")}function jr(e){if(pr()){if(Xn!=="disabled")return;Xn="restoring",setTimeout(()=>{Op(()=>{if(Xn==="restoring"){const t=ye(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Ks||""),Ks="",Xn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&fi.has(e)){let t=fi.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),fi.delete(e)}}const ro=u.createContext({register:()=>{}});ro.displayName="PressResponderContext";function ox(e){let t=u.useContext(ro);if(t){let{register:n,...r}=t;e=J(r,e),n()}return jl(t,e.ref),e}var Go=new WeakMap;class Yo{continuePropagation(){Gc(this,Go,!1)}get shouldStopPropagation(){return tx(this,Go)}constructor(t,n,r){go(this,Go,{writable:!0,value:void 0}),Gc(this,Go,!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 Yc=Symbol("linkClicked");function ln(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=ox(e),[b,h]=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:$}=br(),C=Se((v,L)=>{let R=g.current;if(a||R.didFirePressStart)return!1;let M=!0;if(R.isTriggeringEvent=!0,r){let B=new Yo("pressstart",L,v);r(B),M=B.shouldStopPropagation}return n&&n(!0),R.isTriggeringEvent=!1,R.didFirePressStart=!0,h(!0),M}),x=Se((v,L,R=!0)=>{let M=g.current;if(!M.didFirePressStart)return!1;M.ignoreClickAfterPress=!0,M.didFirePressStart=!1,M.isTriggeringEvent=!0;let B=!0;if(o){let T=new Yo("pressend",L,v);o(T),B=T.shouldStopPropagation}if(n&&n(!1),h(!1),t&&R&&!a){let T=new Yo("press",L,v);t(T),B&&(B=T.shouldStopPropagation)}return M.isTriggeringEvent=!1,B}),E=Se((v,L)=>{let R=g.current;if(a)return!1;if(i){R.isTriggeringEvent=!0;let M=new Yo("pressup",L,v);return i(M),R.isTriggeringEvent=!1,M.shouldStopPropagation}return!0}),P=Se(v=>{let L=g.current;L.isPressed&&L.target&&(L.isOverTarget&&L.pointerType!=null&&x(Rt(L.target,v),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,$(),d||jr(L.target))}),A=Se(v=>{c&&P(v)}),N=u.useMemo(()=>{let v=g.current,L={onKeyDown(M){if(Ya(M.nativeEvent,M.currentTarget)&&M.currentTarget.contains(M.target)){var B;Zc(M.target,M.key)&&M.preventDefault();let T=!0;if(!v.isPressed&&!M.repeat){v.target=M.currentTarget,v.isPressed=!0,T=C(M,"keyboard");let I=M.currentTarget,K=V=>{Ya(V,I)&&!V.repeat&&I.contains(V.target)&&v.target&&E(Rt(v.target,V),"keyboard")};y(ye(M.currentTarget),"keyup",sn(K,R),!0)}T&&M.stopPropagation(),M.metaKey&&Ut()&&((B=v.metaKeyEvents)===null||B===void 0||B.set(M.key,M.nativeEvent))}else M.key==="Meta"&&(v.metaKeyEvents=new Map)},onClick(M){if(!(M&&!M.currentTarget.contains(M.target))&&M&&M.button===0&&!v.isTriggeringEvent&&!Sn.isOpening){let B=!0;if(a&&M.preventDefault(),!v.ignoreClickAfterPress&&!v.ignoreEmulatedMouseEvents&&!v.isPressed&&(v.pointerType==="virtual"||Ns(M.nativeEvent))){!a&&!l&&Tt(M.currentTarget);let T=C(M,"virtual"),I=E(M,"virtual"),K=x(M,"virtual");B=T&&I&&K}v.ignoreEmulatedMouseEvents=!1,v.ignoreClickAfterPress=!1,B&&M.stopPropagation()}}},R=M=>{var B;if(v.isPressed&&v.target&&Ya(M,v.target)){var T;Zc(M.target,M.key)&&M.preventDefault();let K=M.target;x(Rt(v.target,M),"keyboard",v.target.contains(K)),$(),M.key!=="Enter"&&_l(v.target)&&v.target.contains(K)&&!M[Yc]&&(M[Yc]=!0,Sn(v.target,M,!1)),v.isPressed=!1,(T=v.metaKeyEvents)===null||T===void 0||T.delete(M.key)}else if(M.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(J3(I.nativeEvent)){v.pointerType="virtual";return}qa(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&&Tt(I.currentTarget),d||js(v.target),K=C(I,v.pointerType),y(ye(I.currentTarget),"pointermove",M,!1),y(ye(I.currentTarget),"pointerup",B,!1),y(ye(I.currentTarget),"pointercancel",T,!1)),K&&I.stopPropagation()},L.onMouseDown=I=>{I.currentTarget.contains(I.target)&&I.button===0&&(qa(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 M=I=>{I.pointerId===v.activePointerId&&(v.target&&Un(I,v.target)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,C(Rt(v.target,I),v.pointerType)):v.target&&v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,x(Rt(v.target,I),v.pointerType,!1),A(I)))},B=I=>{I.pointerId===v.activePointerId&&v.isPressed&&I.button===0&&v.target&&(Un(I,v.target)&&v.pointerType!=null?x(Rt(v.target,I),v.pointerType):v.isOverTarget&&v.pointerType!=null&&x(Rt(v.target,I),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,$(),d||jr(v.target))},T=I=>{P(I)};L.onDragStart=I=>{I.currentTarget.contains(I.target)&&P(I)}}else{L.onMouseDown=T=>{if(T.button!==0||!T.currentTarget.contains(T.target))return;if(qa(T.currentTarget)&&T.preventDefault(),v.ignoreEmulatedMouseEvents){T.stopPropagation();return}v.isPressed=!0,v.isOverTarget=!0,v.target=T.currentTarget,v.pointerType=Ns(T.nativeEvent)?"virtual":"mouse",!a&&!l&&Tt(T.currentTarget),C(T,v.pointerType)&&T.stopPropagation(),y(ye(T.currentTarget),"mouseup",M,!1)},L.onMouseEnter=T=>{if(!T.currentTarget.contains(T.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!0,I=C(T,v.pointerType)),I&&T.stopPropagation()},L.onMouseLeave=T=>{if(!T.currentTarget.contains(T.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!1,I=x(T,v.pointerType,!1),A(T)),I&&T.stopPropagation()},L.onMouseUp=T=>{T.currentTarget.contains(T.target)&&!v.ignoreEmulatedMouseEvents&&T.button===0&&E(T,v.pointerType||"mouse")};let M=T=>{if(T.button===0){if(v.isPressed=!1,$(),v.ignoreEmulatedMouseEvents){v.ignoreEmulatedMouseEvents=!1;return}v.target&&Un(T,v.target)&&v.pointerType!=null?x(Rt(v.target,T),v.pointerType):v.target&&v.isOverTarget&&v.pointerType!=null&&x(Rt(v.target,T),v.pointerType,!1),v.isOverTarget=!1}};L.onTouchStart=T=>{if(!T.currentTarget.contains(T.target))return;let I=ix(T.nativeEvent);if(!I)return;v.activePointerId=I.identifier,v.ignoreEmulatedMouseEvents=!0,v.isOverTarget=!0,v.isPressed=!0,v.target=T.currentTarget,v.pointerType="touch",!a&&!l&&Tt(T.currentTarget),d||js(v.target),C(T,v.pointerType)&&T.stopPropagation(),y(pt(T.currentTarget),"scroll",B,!0)},L.onTouchMove=T=>{if(!T.currentTarget.contains(T.target))return;if(!v.isPressed){T.stopPropagation();return}let I=qc(T.nativeEvent,v.activePointerId),K=!0;I&&Un(I,T.currentTarget)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,K=C(T,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,K=x(T,v.pointerType,!1),A(T)),K&&T.stopPropagation()},L.onTouchEnd=T=>{if(!T.currentTarget.contains(T.target))return;if(!v.isPressed){T.stopPropagation();return}let I=qc(T.nativeEvent,v.activePointerId),K=!0;I&&Un(I,T.currentTarget)&&v.pointerType!=null?(E(T,v.pointerType),K=x(T,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(K=x(T,v.pointerType,!1)),K&&T.stopPropagation(),v.isPressed=!1,v.activePointerId=null,v.isOverTarget=!1,v.ignoreEmulatedMouseEvents=!0,v.target&&!d&&jr(v.target),$()},L.onTouchCancel=T=>{T.currentTarget.contains(T.target)&&(T.stopPropagation(),v.isPressed&&P(T))};let B=T=>{v.isPressed&&T.target.contains(v.target)&&P({currentTarget:v.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=T=>{T.currentTarget.contains(T.target)&&P(T)}}return L},[y,a,l,$,d,P,A,x,C,E]);return u.useEffect(()=>()=>{var v;d||jr((v=g.current.target)!==null&&v!==void 0?v:void 0)},[d]),{isPressed:s||b,pressProps:J(p,N)}}function _l(e){return e.tagName==="A"&&e.hasAttribute("href")}function Ya(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&&!_p(o,n)||o instanceof pt(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&_l(o))&&n!=="Enter")}function ix(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function qc(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 ax(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 sx(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=ax(e);return sx(n,r)}function qa(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Zc(e,t){return e instanceof HTMLInputElement?!_p(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!_l(e)}const lx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function _p(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":lx.has(e.type)}const ux=u.forwardRef(({children:e,...t},n)=>{let r=u.useRef(!1),o=u.useContext(ro);n=vt(n||(o==null?void 0:o.ref));let i=J(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(ro.Provider,{value:i},e)});function cx({children:e}){let t=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(ro.Provider,{value:t},e)}class dx{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 zp(e){let t=u.useRef({isFocused:!1,observer:null});he(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Se(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 dx("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 oa(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=zp(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,oo=new Set,Wr=new Map,An=!1,_s=!1;const fx={Tab:!0,Escape:!0};function ia(e,t){for(let n of oo)n(e,t)}function px(e){return!(e.metaKey||!Ut()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Si(e){An=!0,px(e)&&(Ht="keyboard",ia("keyboard",e))}function dt(e){Ht="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(An=!0,ia("pointer",e))}function Up(e){Ns(e)&&(An=!0,Ht="virtual")}function Hp(e){e.target===window||e.target===document||(!An&&!_s&&(Ht="virtual",ia("virtual",e)),An=!1,_s=!1)}function Wp(){An=!1,_s=!0}function Ti(e){if(typeof window>"u"||Wr.get(pt(e)))return;const t=pt(e),n=ye(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){An=!0,r.apply(this,arguments)},n.addEventListener("keydown",Si,!0),n.addEventListener("keyup",Si,!0),n.addEventListener("click",Up,!0),t.addEventListener("focus",Hp,!0),t.addEventListener("blur",Wp,!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",()=>{Gp(e)},{once:!0}),Wr.set(t,{focus:r})}const Gp=(e,t)=>{const n=pt(e),r=ye(e);t&&r.removeEventListener("DOMContentLoaded",t),Wr.has(n)&&(n.HTMLElement.prototype.focus=Wr.get(n).focus,r.removeEventListener("keydown",Si,!0),r.removeEventListener("keyup",Si,!0),r.removeEventListener("click",Up,!0),n.removeEventListener("focus",Hp,!0),n.removeEventListener("blur",Wp,!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)),Wr.delete(n))};function bx(e){const t=ye(e);let n;return t.readyState!=="loading"?Ti(e):(n=()=>{Ti(e)},t.addEventListener("DOMContentLoaded",n)),()=>Gp(e,n)}typeof document<"u"&&bx();function sr(){return Ht!=="pointer"}function Ai(){return Ht}function Yp(e){Ht=e,ia(e,null)}function hx(){Ti();let[e,t]=u.useState(Ht);return u.useEffect(()=>{let n=()=>{t(Ht)};return oo.add(n),()=>{oo.delete(n)}},[]),Mt()?null:e}const mx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function gx(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&&!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&&!fx[n.key])}function vx(e,t,n){Ti(),u.useEffect(()=>{let r=(o,i)=>{gx(!!(n!=null&&n.isTextInput),o,i)&&e(sr())};return oo.add(r),()=>{oo.delete(r)}},t)}function hr(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=u.useRef({isFocusWithin:!1}),a=u.useCallback(c=>{i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(c),o&&o(!1))},[n,o,i]),s=zp(a),l=u.useCallback(c=>{!i.current.isFocusWithin&&document.activeElement===c.target&&(r&&r(c),o&&o(!0),i.current.isFocusWithin=!0,s(c))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}let Mi=!1,Za=0;function zs(){Mi=!0,setTimeout(()=>{Mi=!1},50)}function Xc(e){e.pointerType==="touch"&&zs()}function yx(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Xc):document.addEventListener("touchend",zs),Za++,()=>{Za--,!(Za>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Xc):document.removeEventListener("touchend",zs))}}function Ve(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(yx,[]);let{hoverProps:l,triggerHoverEnd:c}=u.useMemo(()=>{let d=(b,h)=>{if(s.pointerType=h,o||h==="touch"||s.isHovered||!b.currentTarget.contains(b.target))return;s.isHovered=!0;let g=b.currentTarget;s.target=g,t&&t({type:"hoverstart",target:g,pointerType:h}),n&&n(!0),a(!0)},f=(b,h)=>{if(s.pointerType="",s.target=null,h==="touch"||!s.isHovered)return;s.isHovered=!1;let g=b.currentTarget;r&&r({type:"hoverend",target:g,pointerType:h}),n&&n(!1),a(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=b=>{Mi&&b.pointerType==="mouse"||d(b,b.pointerType)},p.onPointerLeave=b=>{!o&&b.currentTarget.contains(b.target)&&f(b,b.pointerType)}):(p.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=b=>{!s.ignoreEmulatedMouseEvents&&!Mi&&d(b,"mouse"),s.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=b=>{!o&&b.currentTarget.contains(b.target)&&f(b,"mouse")}),{hoverProps:p,triggerHoverEnd:f}},[t,n,r,o,s]);return u.useEffect(()=>{o&&c({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:l,isHovered:i}}function qp(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Se(l=>{n&&qo(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=Se(l=>{n&&n(l)});u.useEffect(()=>{let l=i.current;if(r)return;const c=t.current,d=ye(c);if(typeof PointerEvent<"u"){let f=p=>{l.isPointerDown&&qo(p,t)&&s(p),l.isPointerDown=!1};return d.addEventListener("pointerdown",a,!0),d.addEventListener("pointerup",f,!0),()=>{d.removeEventListener("pointerdown",a,!0),d.removeEventListener("pointerup",f,!0)}}else{let f=b=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&qo(b,t)&&s(b),l.isPointerDown=!1},p=b=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&qo(b,t)&&s(b),l.isPointerDown=!1};return d.addEventListener("mousedown",a,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",a,!0),d.addEventListener("touchend",p,!0),()=>{d.removeEventListener("mousedown",a,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",a,!0),d.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 Jc(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:Jc(e.onKeyDown),onKeyUp:Jc(e.onKeyUp)}}}function Zp(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=u.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:a}=br(),s=Se((d,f,p,b)=>{p===0&&b===0||(o.current.didMove||(o.current.didMove=!0,t==null||t({type:"movestart",pointerType:f,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey})),n==null||n({type:"move",pointerType:f,deltaX:p,deltaY:b,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}))}),l=Se((d,f)=>{jr(),o.current.didMove&&(r==null||r({type:"moveend",pointerType:f,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}))});return{moveProps:u.useMemo(()=>{let d={},f=()=>{js(),o.current.didMove=!1};if(typeof PointerEvent>"u"){let b=$=>{if($.button===0){var C,x,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=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageY)!==null&&P!==void 0?P:0)),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},h=$=>{$.button===0&&(l($,"mouse"),a(window,"mousemove",b,!1),a(window,"mouseup",h,!1))};d.onMouseDown=$=>{$.button===0&&(f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i(window,"mousemove",b,!1),i(window,"mouseup",h,!1))};let g=$=>{let C=[...$.changedTouches].findIndex(({identifier:N})=>N===o.current.id);if(C>=0){var x,E;let{pageX:N,pageY:v}=$.changedTouches[C];var P,A;s($,"touch",N-((P=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageX)!==null&&P!==void 0?P:0),v-((A=(E=o.current.lastPosition)===null||E===void 0?void 0:E.pageY)!==null&&A!==void 0?A:0)),o.current.lastPosition={pageX:N,pageY:v}}},y=$=>{[...$.changedTouches].findIndex(({identifier:x})=>x===o.current.id)>=0&&(l($,"touch"),o.current.id=null,a(window,"touchmove",g),a(window,"touchend",y),a(window,"touchcancel",y))};d.onTouchStart=$=>{if($.changedTouches.length===0||o.current.id!=null)return;let{pageX:C,pageY:x,identifier:E}=$.changedTouches[0];f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:C,pageY:x},o.current.id=E,i(window,"touchmove",g,!1),i(window,"touchend",y,!1),i(window,"touchcancel",y,!1)}}else{let b=g=>{if(g.pointerId===o.current.id){var y,$;let E=g.pointerType||"mouse";var C,x;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-((x=($=o.current.lastPosition)===null||$===void 0?void 0:$.pageY)!==null&&x!==void 0?x:0)),o.current.lastPosition={pageX:g.pageX,pageY:g.pageY}}},h=g=>{if(g.pointerId===o.current.id){let y=g.pointerType||"mouse";l(g,y),o.current.id=null,a(window,"pointermove",b,!1),a(window,"pointerup",h,!1),a(window,"pointercancel",h,!1)}};d.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",b,!1),i(window,"pointerup",h,!1),i(window,"pointercancel",h,!1))}}let p=(b,h,g)=>{f(),s(b,"keyboard",h,g),l(b,"keyboard")};return d.onKeyDown=b=>{switch(b.key){case"Left":case"ArrowLeft":b.preventDefault(),b.stopPropagation(),p(b,-1,0);break;case"Right":case"ArrowRight":b.preventDefault(),b.stopPropagation(),p(b,1,0);break;case"Up":case"ArrowUp":b.preventDefault(),b.stopPropagation(),p(b,0,-1);break;case"Down":case"ArrowDown":b.preventDefault(),b.stopPropagation(),p(b,0,1);break}},d},[o,i,a,s,l])}}function $x(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]);Pi(t,"wheel",r?void 0:o)}const xx=500;function Xp(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=xx,accessibilityDescription:a}=e;const s=u.useRef();let{addGlobalListener:l,removeGlobalListener:c}=br(),{pressProps:d}=ln({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...p,type:"longpress"}),s.current=void 0},i),p.pointerType==="touch")){let b=h=>{h.preventDefault()};l(p.target,"contextmenu",b,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Np(o&&!t?a:void 0);return{longPressProps:J(d,f)}}function Mn(e){const t=ye(e);if(Ai()==="virtual"){let n=t.activeElement;Op(()=>{t.activeElement===n&&e.isConnected&&Tt(e)})}else Tt(e)}function wx(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 Cx(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Jp(e,t){return e.nodeName!=="#comment"&&wx(e)&&Cx(e,t)&&(!e.parentElement||Jp(e.parentElement,e))}const Qc=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(Qc)||{},c=u.useMemo(()=>new Us({scopeRef:s}),[s]);he(()=>{let p=l||Fe.root;if(Fe.getTreeNode(p.scopeRef)&&ve&&!Ri(ve,p.scopeRef)){let b=Fe.getTreeNode(ve);b&&(p=b)}p.addChild(c),Fe.addNode(c)},[c,l]),he(()=>{let p=Fe.getTreeNode(s);p&&(p.contain=!!n)},[n]),he(()=>{var p;let b=(p=i.current)===null||p===void 0?void 0:p.nextSibling,h=[];for(;b&&b!==a.current;)h.push(b),b=b.nextSibling;s.current=h},[t]),Mx(s,r,n),Sx(s,n),Rx(s,r,n),Ax(s,o),u.useEffect(()=>{const p=ye(s.current?s.current[0]:void 0).activeElement;let b=null;if(Ge(p,s.current)){for(let h of Fe.traverse())h.scopeRef&&Ge(p,h.scopeRef.current)&&(b=h);b===Fe.getTreeNode(s)&&(ve=b.scopeRef)}},[s]),he(()=>()=>{var p,b,h;let g=(h=(b=Fe.getTreeNode(s))===null||b===void 0||(p=b.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&h!==void 0?h:null;(s===ve||Ri(s,ve))&&(!g||Fe.getTreeNode(g))&&(ve=g),Fe.removeTreeNode(s)},[s]);let d=u.useMemo(()=>Dx(s),[]),f=u.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return u.createElement(Qc.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 Dx(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,c=Cn(n),d=Ze(c,{tabbable:o,accept:a},n);d.currentNode=Ge(s,n)?s:l;let f=d.nextNode();return!f&&i&&(d.currentNode=l,f=d.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,c=Cn(n),d=Ze(c,{tabbable:o,accept:a},n);d.currentNode=Ge(s,n)?s:l;let f=d.previousNode();return!f&&i&&(d.currentNode=l,f=d.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]"],Ex=Hl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Hl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Px=Hl.join(':not([hidden]):not([tabindex="-1"]),');function Cn(e){return e[0].parentElement}function _r(e){let t=Fe.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Sx(e,t){let n=u.useRef(),r=u.useRef();he(()=>{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=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!_r(e))return;let d=i.activeElement,f=e.current;if(!f||!Ge(d,f))return;let p=Cn(f),b=Ze(p,{tabbable:!0},f);if(!d)return;b.currentNode=d;let h=c.shiftKey?b.previousNode():b.nextNode();h||(b.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,h=c.shiftKey?b.previousNode():b.nextNode()),c.preventDefault(),h&&et(h,!0)},s=c=>{(!ve||Ri(ve,e))&&Ge(c.target,e.current)?(ve=e,n.current=c.target):_r(e)&&!ki(c.target,e)?n.current?n.current.focus():ve&&ve.current&&Fi(ve.current):_r(e)&&(n.current=c.target)},l=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(i.activeElement&&_r(e)&&!ki(i.activeElement,e))if(ve=e,i.body.contains(c.target)){var d;n.current=c.target,(d=n.current)===null||d===void 0||d.focus()}else ve.current&&Fi(ve.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]),he(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Qp(e){return ki(e)}function Ge(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function ki(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Fe.traverse(Fe.getTreeNode(t)))if(n&&Ge(e,n.current))return!0;return!1}function Tx(e){return ki(e,ve)}function Ri(e,t){var n;let r=(n=Fe.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function et(e,t=!1){if(e!=null&&!t)try{Mn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Fi(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 Ax(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&&Fi(e.current)}n.current=!1},[e])}function Mx(e,t,n){he(()=>{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:Qp(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 kx(e){let t=Fe.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Rx(e,t,n){const r=u.useRef(typeof document<"u"?ye(e.current?e.current[0]:void 0).activeElement:null);he(()=>{let o=e.current;const i=ye(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!ve||Ri(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]),he(()=>{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=Fe.getTreeNode(e);if(!l)return;let c=l.nodeToRestore,d=Ze(o.body,{tabbable:!0});d.currentNode=s;let f=a.shiftKey?d.previousNode():d.nextNode();if((!c||!o.body.contains(c)||c===o.body)&&(c=void 0,l.nodeToRestore=void 0),(!f||!Ge(f,e.current))&&c){d.currentNode=c;do f=a.shiftKey?d.previousNode():d.nextNode();while(Ge(f,e.current));a.preventDefault(),a.stopPropagation(),f?et(f,!0):Qp(c)?et(c,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),he(()=>{const o=ye(e.current?e.current[0]:void 0);if(!t)return;let i=Fe.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let s=Fe.getTreeNode(e);if(!s)return;let l=s.nodeToRestore;if(t&&l&&(Ge(o.activeElement,e.current)||o.activeElement===o.body&&kx(e))){let c=Fe.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=c.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){et(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&Fe.getTreeNode(d.scopeRef)){Fi(d.scopeRef.current,!0);return}d=d.parent}}})}}}},[e,t])}function Ze(e,t,n){let r=t!=null&&t.tabbable?Px:Ex,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)&&Jp(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 e0(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,c=Ze(r,{tabbable:i,accept:s});r.contains(l)&&(c.currentNode=l);let d=c.nextNode();return!d&&a&&(c.currentNode=r,d=c.nextNode()),d&&et(d,!0),d},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,c=Ze(r,{tabbable:i,accept:s});if(r.contains(l))c.currentNode=l;else{let f=Xa(c);return f&&et(f,!0),f??null}let d=c.previousNode();if(!d&&a){c.currentNode=r;let f=Xa(c);if(!f)return null;d=f}return d&&et(d,!0),d??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=Xa(a);return s&&et(s,!0),s??null}}}function Xa(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 Us({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&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 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 Us({scopeRef:null}),this.fastMap.set(null,this.root)}}class Us{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Fe=new Wl;function Ye(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=u.useRef({isFocused:!1,isFocusVisible:t||sr()}),[i,a]=u.useState(!1),[s,l]=u.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=u.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),d=u.useCallback(b=>{o.current.isFocused=b,a(b),c()},[c]);vx(b=>{o.current.isFocusVisible=b,c()},[],{isTextInput:n});let{focusProps:f}=oa({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=hr({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:s,focusProps:r?p:f}}let Fx=u.createContext(null);function Bx(e){let t=u.useContext(Fx)||{};jl(t,e);let{ref:n,...r}=t;return r}function mr(e,t){let{focusProps:n}=oa(e),{keyboardProps:r}=zl(e),o=J(n,r),i=Bx(t),a=e.isDisabled?{}:i,s=u.useRef(e.autoFocus);return u.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 Ix(e,t){let n=t==null?void 0:t.isDisabled,[r,o]=u.useState(!1);return he(()=>{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 t0=globalThis!=null&&globalThis.document?u.useLayoutEffect:u.useEffect;function Lx(e={}){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[c,d]=u.useState("pending");u.useEffect(()=>{d(n?"loading":"pending")},[n]);const f=u.useRef(),p=u.useCallback(()=>{if(!n)return;b();const h=new Image;h.src=n,a&&(h.crossOrigin=a),r&&(h.srcset=r),s&&(h.sizes=s),t&&(h.loading=t),h.onload=g=>{b(),d("loaded"),o==null||o(g)},h.onerror=g=>{b(),d("failed"),i==null||i(g)},f.current=h},[n,a,r,s,o,i,t]),b=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return t0(()=>{if(!l)return c==="loading"&&p(),()=>{b()}},[c,p,l]),l?"loaded":c}function Vx(e={}){var t,n,r,o,i;const a=xp(),s=!!a,{as:l,ref:c,src:d,name:f,icon:p,classNames:b,fallback:h,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:x=(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:A=!1,getInitials:N=g$,ignoreFallback:v=!1,showFallback:L=!1,ImgComponent:R="img",imgProps:M,className:B,onError:T,...I}=e,K=l||"span",V=ks(c),S=ks(y),{isFocusVisible:W,isFocused:G,focusProps:U}=Ye(),{isHovered:D,hoverProps:O}=Ve({isDisabled:P}),X=Lx({src:d,onError:T,ignoreFallback:v})==="loaded",Q=(!d||!X)&&L,ne=u.useMemo(()=>{var re;return x3({color:$,radius:C,size:x,isBordered:E,isDisabled:P,isInGroup:s,isInGridGroup:(re=a==null?void 0:a.isGrid)!=null?re:!1})},[$,C,x,E,P,s,a==null?void 0:a.isGrid]),z=eo(b==null?void 0:b.base,B),q=u.useMemo(()=>A||l==="button",[A,l]),ee=u.useCallback((re={})=>({ref:V,tabIndex:q?0:-1,"data-hover":St(D),"data-focus":St(G),"data-focus-visible":St(W),className:ne.base({class:eo(z,re==null?void 0:re.className)}),...J(I,O,q?U:{})}),[q,ne,z,U,I]),ae=u.useCallback((re={})=>({ref:S,src:d,"data-loaded":St(X),className:ne.img({class:b==null?void 0:b.img}),...J(M,re)}),[ne,X,M,d,S]);return{Component:K,ImgComponent:R,src:d,alt:g,icon:p,name:f,imgRef:S,slots:ne,classNames:b,fallback:h,isImgLoaded:X,showFallback:Q,ignoreFallback:v,getInitials:N,getAvatarProps:ee,getImageProps:ae}}const Ox=Symbol.for("react-aria.i18n.locale"),Nx=Symbol.for("react-aria.i18n.strings");let Hn;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=Kx(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[Ox];if(Hn===void 0){let o=window[Nx];if(!o)return null;Hn={};for(let i in o)Hn[i]=new Bn({[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 Kx(e,t,n="en-US"){if(t[e])return t[e];let r=jx(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function jx(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const ed=new Map,td=new Map;class n0{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=ed.get(i);a||(a=new Intl.PluralRules(this.locale,{type:r}),ed.set(i,a));let s=a.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=td.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),td.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 r0=1721426;function Dn(e,t,n,r){t=vo(e,t);let o=t-1,i=-2;return n<=2?i=0:rn(t)&&(i=-1),r0-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+i+r)}function rn(e){return e%4===0&&(e%100!==0||e%400===0)}function vo(e,t){return e==="BC"?1-t:t}function aa(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const _x={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-r0,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),d=Math.floor(c/365),f=o*400+a*100+l*4+d+(a!==4&&d!==4?1:0),[p,b]=aa(f),h=n-Dn(p,b,1,1),g=2;n<Dn(p,b,3,1)?g=0:rn(b)&&(g=1);let y=Math.floor(((h+g)*12+373)/367),$=n-Dn(p,b,y,1)+1;return new Be(p,b,y,$)}toJulianDay(t){return Dn(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return _x[rn(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return rn(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}function o0(e){return Vt(Date.now(),e)}function zx(e){return c0(o0(e))}function i0(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function a0(e,t){return nd(e)-nd(t)}function nd(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Ja=null;function Gl(){return Ja==null&&(Ja=new Intl.DateTimeFormat().resolvedOptions().timeZone),Ja}function Ux(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function Hx(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function lr(e){e=Xe(e,new rt);let t=vo(e.era,e.year);return s0(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function s0(e,t,n,r,o,i,a){let s=new Date;return s.setUTCHours(r,o,i,a),s.setUTCFullYear(e,t-1,n),s.getTime()}function Hs(e,t){if(t==="UTC")return 0;if(e>0&&t===Gl())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:i,minute:a,second:s}=l0(e,t);return s0(n,r,o,i,a,s,0)-Math.floor(e/1e3)*1e3}const rd=new Map;function l0(e,t){let n=rd.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"}),rd.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 od=864e5;function Wx(e,t,n,r){return(n===r?[n]:[n,r]).filter(i=>Gx(e,t,i))}function Gx(e,t,n){let r=l0(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=un(e);if(t==="UTC")return lr(r);if(t===Gl()&&n==="compatible"){r=Xe(r,new rt);let l=new Date,c=vo(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=Hs(o-od,t),a=Hs(o+od,t),s=Wx(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 u0(e,t,n="compatible"){return new Date(Lt(e,t,n))}function Vt(e,t){let n=Hs(e,t),r=new Date(e+n),o=r.getUTCFullYear(),i=r.getUTCMonth()+1,a=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),c=r.getUTCSeconds(),d=r.getUTCMilliseconds();return new ao(o,i,a,t,n,s,l,c,d)}function c0(e){return new Be(e.calendar,e.era,e.year,e.month,e.day)}function un(e,t){let n=0,r=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:i}=t),new Bi(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function id(e){return new la(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,kn(r),r}function d0(e,t,n){if(e instanceof ao)return e.timeZone===t?e:qx(e,t);let r=Lt(e,t,n);return Vt(r,t)}function Yx(e){let t=lr(e)-e.offset;return new Date(t)}function qx(e,t){let n=lr(e)-e.offset;return Xe(Vt(n,t),e.calendar)}const Fr=36e5;function sa(e,t){let n=e.copy(),r="hour"in n?h0(n,t):0;Ws(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Gs(n),f0(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,Zx(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 Ws(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;)Ws(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Ws(e,1)}function Zx(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 f0(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)),f0(e)}function Yl(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function p0(e,t){return sa(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),kn(n),n}function io(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),b0(n),n}function Xx(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 b0(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 h0(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Xx(e)}function m0(e,t){let n=e.copy();return h0(n,t),n}function Jx(e,t){return m0(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=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 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=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 g0(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=sa(un(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 Xe(r,e.calendar)}function Qx(e,t){return g0(e,Yl(t))}function e5(e,t,n,r){switch(t){case"hour":{let o=0,i=23;if((r==null?void 0:r.hourCycle)===12){let h=e.hour>=12;o=h?12:0,i=h?23:11}let a=un(e),s=Xe(io(a,{hour:o}),new rt),l=[Lt(s,e.timeZone,"earlier"),Lt(s,e.timeZone,"later")].filter(h=>Vt(h,e.timeZone).day===s.day)[0],c=Xe(io(a,{hour:i}),new rt),d=[Lt(c,e.timeZone,"earlier"),Lt(c,e.timeZone,"later")].filter(h=>Vt(h,e.timeZone).day===c.day).pop(),f=lr(e)-e.offset,p=Math.floor(f/Fr),b=f%Fr;return f=Ot(p,n,Math.floor(l/Fr),Math.floor(d/Fr),r==null?void 0:r.round)*Fr+b,Xe(Vt(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(un(e),t,n,r),i=Lt(o,e.timeZone);return Xe(Vt(i,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function t5(e,t,n){let r=un(e),o=io(ql(r,t),t);if(o.compare(r)===0)return e;let i=Lt(o,e.timeZone,n);return Xe(Vt(i,e.timeZone),e.calendar)}function v0(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 y0(e){let t=Xe(e,new rt);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function $0(e){return`${y0(e)}T${v0(e)}`}function n5(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 r5(e){return`${$0(e)}${n5(e.offset)}[${e.timeZone}]`}function Jl(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 o5=new WeakMap;class Be{copy(){return this.era?new Be(this.calendar,this.era,this.year,this.month,this.day):new Be(this.calendar,this.year,this.month,this.day)}add(t){return sa(this,t)}subtract(t){return p0(this,t)}set(t){return ql(this,t)}cycle(t,n,r){return Zl(this,t,n,r)}toDate(t){return u0(this,t)}toString(){return y0(this)}compare(t){return i0(this,t)}constructor(...t){go(this,o5,{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,kn(this)}}var i5=new WeakMap;class la{copy(){return new la(this.hour,this.minute,this.second,this.millisecond)}add(t){return m0(this,t)}subtract(t){return Jx(this,t)}set(t){return io(this,t)}cycle(t,n,r){return Xl(this,t,n,r)}toString(){return v0(this)}compare(t){return a0(this,t)}constructor(t=0,n=0,r=0,o=0){go(this,i5,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=o,b0(this)}}var a5=new WeakMap;class Bi{copy(){return this.era?new Bi(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Bi(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return sa(this,t)}subtract(t){return p0(this,t)}set(t){return ql(io(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 u0(this,t,n)}toString(){return $0(this)}compare(t){let n=i0(this,t);return n===0?a0(this,un(t)):n}constructor(...t){go(this,a5,{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,kn(this)}}var s5=new WeakMap;class ao{copy(){return this.era?new ao(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new ao(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return g0(this,t)}subtract(t){return Qx(this,t)}set(t,n){return t5(this,t,n)}cycle(t,n,r){return e5(this,t,n,r)}toDate(){return Yx(this)}toString(){return r5(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-d0(t,this.timeZone).toDate().getTime()}constructor(...t){go(this,s5,{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,kn(this)}}const or=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],l5=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],pi=[1867,1911,1925,1988,2018],tn=["meiji","taisho","showa","heisei","reiwa"];function ad(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 Qa(e){let t=pi[tn.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Be(e.year+t,e.month,e.day)}class u5 extends rt{fromJulianDay(t){let n=super.fromJulianDay(t),r=ad(n);return new Be(this,tn[r],n.year-pi[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Qa(t))}balanceDate(t){let n=Qa(t),r=ad(n);tn[r]!==t.era&&(t.era=tn[r],t.year=n.year-pi[r]),this.constrainDate(t)}constrainDate(t){let n=tn.indexOf(t.era),r=l5[n];if(r!=null){let[o,i,a]=r,s=o-pi[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(i,t.month),t.month===i&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,o,i]=or[n];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(i,t.day))}}getEras(){return tn}getYearsInEra(t){let n=tn.indexOf(t.era),r=or[n],o=or[n+1];if(o==null)return 9999-r[0]+1;let i=o[0]-r[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&i++,i}getDaysInMonth(t){return super.getDaysInMonth(Qa(t))}getMinimumMonthInYear(t){let n=sd(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=sd(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function sd(e){if(e.year===1){let t=tn.indexOf(e.era);return or[t]}}const x0=-543;class c5 extends rt{fromJulianDay(t){let n=super.fromJulianDay(t),r=vo(n.era,n.year);return new Be(this,r-x0,n.month,n.day)}toJulianDay(t){return super.toJulianDay(ld(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(ld(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function ld(e){let[t,n]=aa(e.year+x0);return new Be(t,n,e.month,e.day)}const Ii=1911;function w0(e){return e.era==="minguo"?e.year+Ii:1-e.year+Ii}function ud(e){let t=e-Ii;return t>0?["minguo",t]:["before_minguo",1-t]}class d5 extends rt{fromJulianDay(t){let n=super.fromJulianDay(t),r=vo(n.era,n.year),[o,i]=ud(r);return new Be(this,o,i,n.month,n.day)}toJulianDay(t){return super.toJulianDay(cd(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=ud(w0(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(cd(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Ii}constructor(...t){super(...t),this.identifier="roc"}}function cd(e){let[t,n]=aa(w0(e));return new Be(t,n,e.month,e.day)}const f5=1948321;function p5(e){let t=e>0?e-474:e-473,n=Kt(t,2820)+474;return Kt((n+38)*31,128)<31}function Xo(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 f5-1+1029983*Math.floor(r/2820)+365*(o-1)+Math.floor((31*o-5)/128)+i+n}class b5{fromJulianDay(t){let n=t-Xo(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-Xo(a,1,1)+1,l=s<=186?Math.ceil(s/31):Math.ceil((s-6)/31),c=t-Xo(a,l,1)+1;return new Be(this,a,l,c)}toJulianDay(t){return Xo(t.year,t.month,t.day)}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||p5(t.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const es=78,dd=80;class h5 extends rt{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-es,o=t-Dn(n.era,n.year,1,1),i;o<dd?(r--,i=rn(n.year-1)?31:30,o+=i+155+90+10):(i=rn(n.year)?31:30,o-=dd);let a,s;if(o<i)a=1,s=o+1;else{let l=o-i;l<155?(a=Math.floor(l/31)+2,s=l%31+1):(l-=155,a=Math.floor(l/30)+7,s=l%30+1)}return new Be(this,r,a,s)}toJulianDay(t){let n=t.year+es,[r,o]=aa(n),i,a;return rn(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&&rn(t.year+es)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Li=1948440,fd=1948439,ct=1300,Wn=1600,m5=460322;function Vi(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function C0(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+Vi(t,r,1,1)))/29.5)+1),i=n-Vi(t,r,o,1)+1;return new Be(e,r,o,i)}function pd(e){return(14+11*e)%30<11}class Ql{fromJulianDay(t){return C0(this,Li,t)}toJulianDay(t){return Vi(Li,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&pd(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return pd(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class g5 extends Ql{fromJulianDay(t){return C0(this,fd,t)}toJulianDay(t){return Vi(fd,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const v5="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Ys,ir;function bi(e){return m5+ir[e-ct]}function zr(e,t){let n=e-ct,r=1<<11-(t-1);return Ys[n]&r?30:29}function bd(e,t){let n=bi(e);for(let r=1;r<t;r++)n+=zr(e,r);return n}function hd(e){return ir[e+1-ct]-ir[e-ct]}class y5 extends Ql{fromJulianDay(t){let n=t-Li,r=bi(ct),o=bi(Wn);if(n<r||n>o)return super.fromJulianDay(t);{let i=ct-1,a=1,s=1;for(;s>0;){i++,s=n-bi(i)+1;let l=hd(i);if(s===l){a=12;break}else if(s<l){let c=zr(i,a);for(a=1;s>c;)s-=c,a++,c=zr(i,a);break}}return new Be(this,i,a,n-bd(i,a)+1)}}toJulianDay(t){return t.year<ct||t.year>Wn?super.toJulianDay(t):Li+bd(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ct||t.year>Wn?super.getDaysInMonth(t):zr(t.year,t.month)}getDaysInYear(t){return t.year<ct||t.year>Wn?super.getDaysInYear(t):hd(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Ys||(Ys=new Uint16Array(Uint8Array.from(atob(v5),t=>t.charCodeAt(0)).buffer)),!ir){ir=new Uint32Array(Wn-ct+1);let t=0;for(let n=ct;n<=Wn;n++){ir[n-ct]=t;for(let r=1;r<=12;r++)t+=zr(n,r)}}}}const md=347997,D0=1080,E0=24*D0,$5=29,x5=12*D0+793,w5=$5*E0+x5;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 C5(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)+C5(e)}function P0(e){return Gr(e+1)-Gr(e)}function D5(e){let t=P0(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=D5(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?$n(e)?30:0:30}class E5{fromJulianDay(t){let n=t-md,r=n*E0/w5,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+=Jo(o,s),s++;s--,l-=Jo(o,s);let c=a-l;return new Be(this,o,s,c)}toJulianDay(t){let n=Gr(t.year);for(let r=1;r<t.month;r++)n+=Jo(t.year,r);return n+t.day+md}getDaysInMonth(t){return Jo(t.year,t.month)}getMonthsInYear(t){return $n(t.year)?13:12}getDaysInYear(t){return P0(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 qs=1723856,gd=1824665,Zs=5500;function Oi(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-Oi(e,n,1,1))/30),o=t+1-Oi(e,n,r,1);return[n,r,o]}function S0(e){return Math.floor(e%4/3)}function T0(e,t){return t%13!==0?30:S0(e)+5}class tu{fromJulianDay(t){let[n,r,o]=eu(qs,t),i="AM";return n<=0&&(i="AA",n+=Zs),new Be(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Zs),Oi(qs,n,t.month,t.day)}getDaysInMonth(t){return T0(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+S0(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class P5 extends tu{fromJulianDay(t){let[n,r,o]=eu(qs,t);return n+=Zs,new Be(this,"AA",n,r,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class S5 extends tu{fromJulianDay(t){let[n,r,o]=eu(gd,t),i="CE";return n<=0&&(i="BCE",n=1-n),new Be(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Oi(gd,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),T0(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 A0(e){switch(e){case"buddhist":return new c5;case"ethiopic":return new tu;case"ethioaa":return new P5;case"coptic":return new S5;case"hebrew":return new E5;case"indian":return new h5;case"islamic-civil":return new Ql;case"islamic-tbla":return new g5;case"islamic-umalqura":return new y5;case"japanese":return new u5;case"persian":return new b5;case"roc":return new d5;case"gregory":default:return new rt}}let ts=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 M5()&&(this.resolvedHourCycle||(this.resolvedHourCycle=k5(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=M0(t,n),this.options=n}}const T5={true:{ja:"h11"},false:{}};function M0(e,t={}){if(typeof t.hour12=="boolean"&&A5()){t={...t};let o=T5[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(ts.has(n))return ts.get(n);let r=new Intl.DateTimeFormat(e,t);return ts.set(n,r),r}let ns=null;function A5(){return ns==null&&(ns=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),ns}let rs=null;function M5(){return rs==null&&(rs=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),rs}function k5(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=M0(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 os=new Map,Xs=!1;try{Xs=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Ni=!1;try{Ni=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const k0={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Ki{format(t){let n="";if(!Xs&&this.options.signDisplay!=null?n=F5(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Ni){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return n;let s=(r=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!Xs&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Ni&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=R5(t,n),this.options=n}}function R5(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Ni){var r;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=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(os.has(o))return os.get(o);let i=new Intl.NumberFormat(e,t);return os.set(o,i),i}function F5(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 B5=new RegExp("^.*\\(.*\\).*$"),I5=["latn","arab","hanidec"];class nu{parse(t){return is(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return is(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return is(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const vd=new Map;function is(e,t,n){let r=yd(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of I5)if(o!==r.options.numberingSystem){let i=yd(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function yd(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),r=vd.get(n);return r||(r=new L5(e,t),vd.set(n,r)),r}class L5{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 Ki(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&B5.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=O5(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 $d=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),V5=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function O5(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),d=l.formatToParts(10000.111),f=V5.map(R=>l.formatToParts(R));var p;let b=(p=(o=c.find(R=>R.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&p!==void 0?p:"-",h=(i=d.find(R=>R.type==="plusSign"))===null||i===void 0?void 0:i.value;!h&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(h="+");let y=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(R=>R.type==="decimal"))===null||a===void 0?void 0:a.value,$=(s=c.find(R=>R.type==="group"))===null||s===void 0?void 0:s.value,C=c.filter(R=>!$d.has(R.type)).map(R=>xd(R.value)),x=f.flatMap(R=>R.filter(M=>!$d.has(M.type)).map(M=>xd(M.value))),E=[...new Set([...C,...x])].sort((R,M)=>M.length-R.length),P=E.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${E.join("|")}|[\\p{White_Space}]`,"gu"),A=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),N=new Map(A.map((R,M)=>[R,M])),v=new RegExp(`[${A.join("")}]`,"g");return{minusSign:b,plusSign:h,decimal:y,group:$,literals:P,numeral:v,index:R=>String(N.get(R))}}function Qo(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function xd(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const N5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),K5=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function j5(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 N5.has(n.script)}let t=e.split("-")[0];return K5.has(t)}const _5=Symbol.for("react-aria.i18n.locale");function R0(){let e=typeof window<"u"&&window[_5]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:j5(e)?"rtl":"ltr"}}let Js=R0(),Ur=new Set;function wd(){Js=R0();for(let e of Ur)e(Js)}function z5(){let e=Mt(),[t,n]=u.useState(Js);return u.useEffect(()=>(Ur.size===0&&window.addEventListener("languagechange",wd),Ur.add(n),()=>{Ur.delete(n),Ur.size===0&&window.removeEventListener("languagechange",wd)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const U5=u.createContext(null);function Ne(){let e=z5();return u.useContext(U5)||e}const Cd=new WeakMap;function H5(e){let t=Cd.get(e);return t||(t=new Bn(e),Cd.set(e,t)),t}function F0(e,t){return t&&Bn.getGlobalDictionaryForPackage(t)||H5(e)}function gr(e,t){let{locale:n}=Ne(),r=F0(e,t);return u.useMemo(()=>new n0(n,r),[n,r])}function ei(e){e=Q3(e??{},W5);let{locale:t}=Ne();return u.useMemo(()=>new Yr(t,e),[t,e])}function W5(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o of n)if(t[o]!==e[o])return!1;return!0}function ji(e={}){let{locale:t}=Ne();return u.useMemo(()=>new Ki(t,e),[t,e])}let as=new Map;function ru(e){let{locale:t}=Ne(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(as.has(n))return as.get(n);let r=new Intl.Collator(t,e);return as.set(n,r),r}function B0(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 c=i.slice(s,s+l);if(t.compare(a,c)===0)return!0}return!1},[t]);return u.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}var I0={};I0={dismiss:"تجاهل"};var L0={};L0={dismiss:"Отхвърляне"};var V0={};V0={dismiss:"Odstranit"};var O0={};O0={dismiss:"Luk"};var N0={};N0={dismiss:"Schließen"};var K0={};K0={dismiss:"Απόρριψη"};var j0={};j0={dismiss:"Dismiss"};var _0={};_0={dismiss:"Descartar"};var z0={};z0={dismiss:"Lõpeta"};var U0={};U0={dismiss:"Hylkää"};var H0={};H0={dismiss:"Rejeter"};var W0={};W0={dismiss:"התעלם"};var G0={};G0={dismiss:"Odbaci"};var Y0={};Y0={dismiss:"Elutasítás"};var q0={};q0={dismiss:"Ignora"};var Z0={};Z0={dismiss:"閉じる"};var X0={};X0={dismiss:"무시"};var J0={};J0={dismiss:"Atmesti"};var Q0={};Q0={dismiss:"Nerādīt"};var eb={};eb={dismiss:"Lukk"};var tb={};tb={dismiss:"Negeren"};var nb={};nb={dismiss:"Zignoruj"};var rb={};rb={dismiss:"Descartar"};var ob={};ob={dismiss:"Dispensar"};var ib={};ib={dismiss:"Revocare"};var ab={};ab={dismiss:"Пропустить"};var sb={};sb={dismiss:"Zrušiť"};var lb={};lb={dismiss:"Opusti"};var ub={};ub={dismiss:"Odbaci"};var cb={};cb={dismiss:"Avvisa"};var db={};db={dismiss:"Kapat"};var fb={};fb={dismiss:"Скасувати"};var pb={};pb={dismiss:"取消"};var bb={};bb={dismiss:"關閉"};const Dd={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 G5(e={}){let{style:t,isFocusable:n}=e,[r,o]=u.useState(!1),{focusWithinProps:i}=hr({isDisabled:!n,onFocusWithinChange:s=>o(s)}),a=u.useMemo(()=>r?t:t?{...Dd,...t}:Dd,[r]);return{visuallyHiddenProps:{...i,style:a}}}function ua(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=G5(e);return u.createElement(n,J(i,a),t)}function Y5(e){return e&&e.__esModule?e.default:e}const Jn={top:"top",bottom:"top",left:"left",right:"left"},_i={top:"bottom",bottom:"top",left:"right",right:"left"},q5={top:"left",left:"top"},Qs={top:"height",left:"width"},hb={width:"totalWidth",height:"totalHeight"},ti={};let Je=typeof document<"u"&&window.visualViewport;function Ed(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 c;t=(c=Je==null?void 0:Je.width)!==null&&c!==void 0?c:r;var d;n=(d=Je==null?void 0:Je.height)!==null&&d!==void 0?d: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 Z5(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Pd(e,t,n,r,o,i,a){let s=o.scroll[e],l=r[Qs[e]],c=r.scroll[Jn[e]]+i,d=l+r.scroll[Jn[e]]-i,f=t-s+a[e]-r[Jn[e]],p=t-s+n+a[e]-r[Jn[e]];return f<c?c-f:p>d?Math.max(d-p,c-f):0}function X5(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 Sd(e){if(ti[e])return ti[e];let[t,n]=e.split(" "),r=Jn[t]||"right",o=q5[r];Jn[n]||(n="center");let i=Qs[r],a=Qs[o];return ti[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},ti[e]}function ss(e,t,n,r,o,i,a,s,l,c){let{placement:d,crossPlacement:f,axis:p,crossAxis:b,size:h,crossSize:g}=r,y={};y[b]=e[b],f==="center"?y[b]+=(e[g]-n[g])/2:f!==b&&(y[b]+=e[g]-n[g]),y[b]+=i;const $=e[b]-n[g]+l+c,C=e[b]+e[g]-l-c;if(y[b]=bt(y[b],$,C),d===p){const x=s?a[h]:t[hb[h]];y[_i[p]]=Math.floor(x-e[p]+o)}else y[p]=Math.floor(e[p]+e[h]+o);return y}function J5(e,t,n,r,o,i,a,s){const l=r?n.height:t[hb.height];let c=e.top!=null?n.top+e.top:n.top+(l-e.bottom-a),d=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,d)}function Td(e,t,n,r,o,i){let{placement:a,axis:s,size:l}=i;return a===s?Math.max(0,n[s]-e[s]-e.scroll[s]+t[s]-r[s]-r[_i[s]]-o):Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-r[s]-r[_i[s]]-o)}function Q5(e,t,n,r,o,i,a,s,l,c,d,f,p,b,h,g){let y=Sd(e),{size:$,crossAxis:C,crossSize:x,placement:E,crossPlacement:P}=y,A=ss(t,s,n,y,d,f,c,p,h,g),N=d,v=Td(s,c,t,o,i+d,y);if(a&&r[$]>v){let G=Sd(`${_i[E]} ${P}`),U=ss(t,s,n,G,d,f,c,p,h,g);Td(s,c,t,o,i+d,G)>v&&(y=G,A=U,N=d)}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 R=Pd(C,A[C],n[x],s,l,i,c);A[C]+=R;let M=J5(A,s,c,p,o,i,n.height,L);b&&b<M&&(M=b),n.height=Math.min(n.height,M),A=ss(t,s,n,y,N,f,c,p,h,g),R=Pd(C,A[C],n[x],s,l,i,c),A[C]+=R;let B={},T=t[C]+.5*t[x]-n[C];const I=h/2+g,K=n[x]-h/2-g,V=t[C]-n[C]+h/2,S=t[C]+t[x]-n[C]-h/2,W=bt(T,V,S);return B[C]=bt(W,I,K),{position:A,maxHeight:M,arrowOffsetLeft:B.left,arrowOffsetTop:B.top,placement:y.placement}}function e2(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:c,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:p=0}=e,b=r instanceof HTMLElement?t2(r):document.documentElement,h=b===document.documentElement;const g=window.getComputedStyle(b).position;let y=!!g&&g!=="static",$=h?ar(n):Ad(n,b);if(!h){let{marginTop:v,marginLeft:L}=window.getComputedStyle(n);$.top+=parseInt(v,10)||0,$.left+=parseInt(L,10)||0}let C=ar(r),x=X5(r);C.width+=x.left+x.right,C.height+=x.top+x.bottom;let E=Z5(o),P=Ed(s),A=Ed(b),N=s.tagName==="BODY"?ar(b):Ad(b,s);return b.tagName==="HTML"&&s.tagName==="BODY"&&(A.scroll.top=0,A.scroll.left=0),Q5(t,$,C,E,x,i,a,P,A,N,l,c,y,d,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 Ad(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 t2(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Md(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Md(t);)t=t.parentElement;return t||document.documentElement}function Md(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 mb=new WeakMap;function n2(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||mb.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 gb(e){let{direction:t}=Ne(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:a="bottom",containerPadding:s=12,shouldFlip:l=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:b=!0,onClose:h,maxHeight:g,arrowBoundaryOffset:y=0}=e,[$,C]=u.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),x=[p,a,o.current,r.current,i.current,s,l,c,d,f,b,t,g,y,n],E=u.useRef(Ae==null?void 0:Ae.scale);u.useEffect(()=>{b&&(E.current=Ae==null?void 0:Ae.scale)},[b]);let P=u.useCallback(()=>{if(p===!1||!b||!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=e2({placement:o2(a,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:s,shouldFlip:l,boundaryElement:c,offset:d,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)},x);he(P,x),r2(P),Kl({ref:o,onResize:P});let A=u.useRef(!1);he(()=>{let v,L=()=>{A.current=!0,clearTimeout(v),v=setTimeout(()=>{A.current=!1},500),P()},R=()=>{A.current&&L()};return Ae==null||Ae.addEventListener("resize",L),Ae==null||Ae.addEventListener("scroll",R),()=>{Ae==null||Ae.removeEventListener("resize",L),Ae==null||Ae.removeEventListener("scroll",R)}},[P]);let N=u.useCallback(()=>{A.current||h()},[h,A]);return n2({triggerRef:r,isOpen:b,onClose:h&&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 r2(e){he(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function o2(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Ft=[];function ou(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;u.useEffect(()=>(o&&Ft.push(t),()=>{let h=Ft.indexOf(t);h>=0&&Ft.splice(h,1)}),[o,t]);let l=()=>{Ft[Ft.length-1]===t&&n&&n()},c=h=>{(!s||s(h.target))&&Ft[Ft.length-1]===t&&(h.stopPropagation(),h.preventDefault())},d=h=>{(!s||s(h.target))&&(Ft[Ft.length-1]===t&&(h.stopPropagation(),h.preventDefault()),l())},f=h=>{h.key==="Escape"&&!a&&(h.stopPropagation(),h.preventDefault(),l())};qp({ref:t,onInteractOutside:i&&o?d:null,onInteractOutsideStart:c});let{focusWithinProps:p}=hr({isDisabled:!r,onBlurWithin:h=>{!h.relatedTarget||Tx(h.relatedTarget)||(!s||s(h.relatedTarget))&&n()}}),b=h=>{h.target===h.currentTarget&&h.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:b}}}function i2(e,t,n){let{type:r}=e,{isOpen:o}=t;u.useEffect(()=>{n&&n.current&&mb.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let a=Ue();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:null,onPress:t.toggle},overlayProps:{id:a}}}const ls=typeof document<"u"&&window.visualViewport,a2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ni=0,us;function vb(e={}){let{isDisabled:t}=e;he(()=>{if(!t)return ni++,ni===1&&(pr()?us=l2():us=s2()),()=>{ni--,ni===0&&us()}},[t])}function s2(){return sn(Qn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qn(document.documentElement,"overflow","hidden"))}function l2(){let e,t,n=c=>{e=no(c.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Qn(e,"overscrollBehavior","contain"))},r=c=>{if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&c.preventDefault()},o=c=>{let d=c.target;Rd(d)&&d!==document.activeElement&&(c.preventDefault(),s(),d.style.transform="translateY(-2000px)",d.focus(),requestAnimationFrame(()=>{d.style.transform=""})),t&&t()},i=c=>{let d=c.target;Rd(d)&&(s(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",ls&&(ls.height<window.innerHeight?requestAnimationFrame(()=>{kd(d)}):ls.addEventListener("resize",()=>kd(d),{once:!0}))}))},a=null,s=()=>{if(a)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;a=sn(Br(window,"scroll",c),Qn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qn(document.documentElement,"overflow","hidden"),Qn(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},l=sn(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 Qn(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 kd(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=no(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 Rd(e){return e instanceof HTMLInputElement&&!a2.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const el=u.createContext(null);function u2(e){let{children:t}=e,n=u.useContext(el),[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(el.Provider,{value:i},t)}function c2(){let e=u.useContext(el);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function d2(e){let{modalProviderProps:t}=c2();return u.createElement("div",{"data-overlay-container":!0,...e,...t})}function f2(e){return u.createElement(u2,null,u.createElement(d2,e))}function Fd(e){let t=Mt(),{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(f2,r);return Yt.createPortal(o,n)}var yb={};yb={"ar-AE":I0,"bg-BG":L0,"cs-CZ":V0,"da-DK":O0,"de-DE":N0,"el-GR":K0,"en-US":j0,"es-ES":_0,"et-EE":z0,"fi-FI":U0,"fr-FR":H0,"he-IL":W0,"hr-HR":G0,"hu-HU":Y0,"it-IT":q0,"ja-JP":Z0,"ko-KR":X0,"lt-LT":J0,"lv-LV":Q0,"nb-NO":eb,"nl-NL":tb,"pl-PL":nb,"pt-BR":rb,"pt-PT":ob,"ro-RO":ib,"ru-RU":ab,"sk-SK":sb,"sl-SI":lb,"sr-SP":ub,"sv-SE":cb,"tr-TR":db,"uk-UA":fb,"zh-CN":pb,"zh-TW":bb};function tl(e){let{onDismiss:t,...n}=e,r=gr(Y5(yb),"@react-aria/overlays"),o=Tn(n,r.format("dismiss")),i=()=>{t&&t()};return u.createElement(ua,null,u.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let Ir=new WeakMap,it=[];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 c=p=>{if(n.has(p)||r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let b of n)if(p.contains(b))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),f=c(l);if(f===NodeFilter.FILTER_ACCEPT&&i(l),f!==NodeFilter.FILTER_REJECT){let p=d.nextNode();for(;p!=null;)i(p),p=d.nextNode()}},i=l=>{var c;let d=(c=Ir.get(l))!==null&&c!==void 0?c:0;l.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&l.setAttribute("aria-hidden","true"),r.add(l),Ir.set(l,d+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(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&o(d)}});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 p2(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a,...s}=e,{overlayProps:l,underlayProps:c}=ou({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a},r),{overlayProps:d,arrowProps:f,placement:p}=gb({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return vb({isDisabled:o||!t.isOpen}),he(()=>{if(t.isOpen&&!o&&r.current)return iu([r.current])},[o,t.isOpen,r]),{popoverProps:J(l,d),arrowProps:f,underlayProps:c,placement:p}}const $b=u.createContext(null);function xb(e){let t=Mt(),{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($b.Provider,{value:a},u.createElement(cx,null,s)),Yt.createPortal(s,n)}function wb(){let e=u.useContext($b),t=e==null?void 0:e.setContain;he(()=>{t==null||t(!0)},[t])}function b2(e,t,n){let{overlayProps:r,underlayProps:o}=ou({...e,isOpen:t.isOpen,onClose:t.close},n);return vb({isDisabled:!t.isOpen}),wb(),u.useEffect(()=>{if(t.isOpen)return iu([n.current])},[t.isOpen,n]),{modalProps:J(r),underlayProps:o}}function ca(e){return u.forwardRef(e)}var Cb=(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]},Db=ca((e,t)=>{const{Component:n,ImgComponent:r,src:o,icon:i=F.jsx(b$,{}),alt:a,classNames:s,slots:l,name:c,showFallback:d,fallback:f,getInitials:p,getAvatarProps:b,getImageProps:h}=Vx({...e,ref:t}),g=u.useMemo(()=>!d&&o?null:f?F.jsx("div",{"aria-label":a,className:l.fallback({class:s==null?void 0:s.fallback}),role:"img",children:f}):c?F.jsx("span",{"aria-label":a,className:l.name({class:s==null?void 0:s.name}),role:"img",children:p(c)}):F.jsx("span",{"aria-label":a,className:l.icon({class:s==null?void 0:s.icon}),role:"img",children:i}),[d,o,f,c,s]);return F.jsxs(n,{...b(),children:[o&&F.jsx(r,{...h(),alt:a}),g]})});Db.displayName="NextUI.Avatar";var Eb=Db;function h2(e={}){const{as:t,ref:n,max:r=5,total:o,size:i,color:a,radius:s,children:l,isBordered:c,isDisabled:d,isGrid:f,renderCount:p,className:b,...h}=e,g=ks(n),y=t||"div",$=u.useMemo(()=>({size:i,color:a,radius:s,isGrid:f,isBordered:c,isDisabled:d}),[i,a,s,f,c,d]),C=u.useMemo(()=>w3({className:b,isGrid:f}),[b,f]),x=R$(l),E=r?x.slice(0,r):x,P=o||(r!=null?x.length-r:-1),A=E.map((v,L)=>{const R=L===0,M=L===E.length-1,B={className:eo(R?"ms-0":f?"":"-ms-2",M&&P<1?"hover:-translate-x-0":"")};return u.cloneElement(v,$$(B))});return{Component:y,context:$,remainingCount:P,clones:A,renderCount:p,getAvatarGroupProps:()=>({ref:g,className:C,role:"group",...h})}}var Pb=ca((e,t)=>{const{Component:n,clones:r,context:o,remainingCount:i,renderCount:a=l=>F.jsx(Eb,{className:"hover:-translate-x-0",name:`+${l}`}),getAvatarGroupProps:s}=h2({...e,ref:t});return F.jsx(n,{...s(),children:F.jsxs(F$,{value:o,children:[r,i>0&&a(i)]})})});Pb.displayName="NextUI.AvatarGroup";var m2=Pb;const w={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 Sb(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]=Sb(n[r],o)):n[r]=o}),n}const g2=_.div`
|
|
39
|
+
*/var Vc=k$(B$());function I$(e){return Vc.Children.toArray(e).filter(t=>(0,Vc.isValidElement)(t))}var[L$,Dp]=v$({name:"AvatarGroupContext",strict:!1}),V$=["0","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl","1","2","3","3.5","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],Hi=V$.map(e=>`unit-${e}`),Oc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rt=e=>!e||typeof e!="object"||Object.keys(e).length===0,O$=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Ep(e,t){e.forEach(function(n){Array.isArray(n)?Ep(n,t):t.push(n)})}function Pp(e){let t=[];return Ep(e,t),t}var Sp=(...e)=>Pp(e).filter(Boolean),Tp=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let a of r)if(o.includes(a)){let i=e[a],s=t[a];typeof i=="object"&&typeof s=="object"?n[a]=Tp(i,s):Array.isArray(i)||Array.isArray(s)?n[a]=Sp(s,i):n[a]=s+" "+i}else n[a]=e[a];for(let a of o)r.includes(a)||(n[a]=t[a]);return n},Nc=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function N$(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=Ap(t))&&(r&&(r+=" "),r+=n);return r}function Ap(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=Ap(e[r]))&&(n&&(n+=" "),n+=t);return n}var Ol="-";function K$(e){var t=_$(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function a(s){var l=s.split(Ol);return l[0]===""&&l.length!==1&&l.shift(),Mp(l,t)||j$(s)}function i(s,l){var u=n[s]||[];return l&&o[s]?[].concat(u,o[s]):u}return{getClassGroupId:a,getConflictingClassGroupIds:i}}function Mp(e,t){var i;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?Mp(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var a=e.join(Ol);return(i=t.validators.find(function(s){var l=s.validator;return l(a)}))==null?void 0:i.classGroupId}}var Kc=/^\[(.+)\]$/;function j$(e){if(Kc.test(e)){var t=Kc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function _$(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=U$(Object.entries(e.classGroups),n);return o.forEach(function(a){var i=a[0],s=a[1];Bs(s,r,i,t)}),r}function Bs(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var a=o===""?t:jc(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(z$(o)){Bs(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(i){var s=i[0],l=i[1];Bs(l,jc(t,s),n,r)})})}function jc(e,t){var n=e;return t.split(Ol).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function z$(e){return e.isThemeGetter}function U$(e,t){return t?e.map(function(n){var r=n[0],o=n[1],a=o.map(function(i){return typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(s){var l=s[0],u=s[1];return[t+l,u]})):i});return[r,a]}):e}function H$(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(a,i){n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(i){var s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set:function(i,s){n.has(i)?n.set(i,s):o(i,s)}}}var kp="!";function W$(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var s=[],l=0,u=0,c,f=0;f<i.length;f++){var p=i[f];if(l===0){if(p===r&&(n||i.slice(f,f+o)===t)){s.push(i.slice(u,f)),u=f+o;continue}if(p==="/"){c=f;continue}}p==="["?l++:p==="]"&&l--}var b=s.length===0?i:i.substring(u),h=b.startsWith(kp),g=h?b.substring(1):b,y=c&&c>u?c-u:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:y}}}function G$(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 Y$(e){return{cache:H$(e.cacheSize),splitModifiers:W$(e),...K$(e)}}var q$=/\s+/;function Z$(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(q$).map(function(i){var s=n(i),l=s.modifiers,u=s.hasImportantModifier,c=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?c.substring(0,f):c),b=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:i};if(p=r(c),!p)return{isTailwindClass:!1,originalClassName:i};b=!1}var h=G$(l).join(":"),g=u?h+kp:h;return{isTailwindClass:!0,modifierId:g,classGroupId:p,originalClassName:i,hasPostfixModifier:b}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var s=i.modifierId,l=i.classGroupId,u=i.hasPostfixModifier,c=s+l;return a.has(c)?!1:(a.add(c),o(l,u).forEach(function(f){return a.add(s+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function Is(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,a,i=s;function s(u){var c=t[0],f=t.slice(1),p=f.reduce(function(b,h){return h(b)},c());return r=Y$(p),o=r.cache.get,a=r.cache.set,i=l,l(u)}function l(u){var c=o(u);if(c)return c;var f=Z$(u,r);return a(u,f),f}return function(){return i(N$.apply(null,arguments))}}function Ce(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var Rp=/^\[(?:([a-z-]+):)?(.+)\]$/i,X$=/^\d+\/\d+$/,J$=new Set(["px","full","screen"]),Q$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,e3=/\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$/,t3=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function $t(e){return wn(e)||J$.has(e)||X$.test(e)||Ls(e)}function Ls(e){return Fn(e,"length",s3)}function n3(e){return Fn(e,"size",Fp)}function r3(e){return Fn(e,"position",Fp)}function o3(e){return Fn(e,"url",l3)}function Wo(e){return Fn(e,"number",wn)}function wn(e){return!Number.isNaN(Number(e))}function a3(e){return e.endsWith("%")&&wn(e.slice(0,-1))}function Mr(e){return _c(e)||Fn(e,"number",_c)}function de(e){return Rp.test(e)}function kr(){return!0}function Qt(e){return Q$.test(e)}function i3(e){return Fn(e,"",u3)}function Fn(e,t,n){var r=Rp.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function s3(e){return e3.test(e)}function Fp(){return!1}function l3(e){return e.startsWith("url(")}function _c(e){return Number.isInteger(Number(e))}function u3(e){return t3.test(e)}function Vs(){var e=Ce("colors"),t=Ce("spacing"),n=Ce("blur"),r=Ce("brightness"),o=Ce("borderColor"),a=Ce("borderRadius"),i=Ce("borderSpacing"),s=Ce("borderWidth"),l=Ce("contrast"),u=Ce("grayscale"),c=Ce("hueRotate"),f=Ce("invert"),p=Ce("gap"),b=Ce("gradientColorStops"),h=Ce("gradientColorStopPositions"),g=Ce("inset"),y=Ce("margin"),$=Ce("opacity"),C=Ce("padding"),x=Ce("saturate"),E=Ce("scale"),P=Ce("sepia"),M=Ce("skew"),K=Ce("space"),v=Ce("translate"),V=function(){return["auto","contain","none"]},F=function(){return["auto","hidden","clip","visible","scroll"]},k=function(){return["auto",de,t]},I=function(){return[de,t]},T=function(){return["",$t]},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"]},S=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"]},Y=function(){return["","0",de]},U=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},D=function(){return[wn,Wo]},N=function(){return[wn,de]};return{cacheSize:500,theme:{colors:[kr],spacing:[$t],blur:["none","",Qt,de],brightness:D(),borderColor:[e],borderRadius:["none","","full",Qt,de],borderSpacing:I(),borderWidth:T(),contrast:D(),grayscale:Y(),hueRotate:N(),invert:Y(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[a3,Ls],inset:k(),margin:k(),opacity:D(),padding:I(),saturate:D(),scale:D(),sepia:Y(),skew:N(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",de]}],container:["container"],columns:[{columns:[Qt]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"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:k()}],"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:Y()}],shrink:[{shrink:Y()}],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,$t]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Qt]},Qt,de]}],h:[{h:[de,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",de,$t]}],"max-h":[{"max-h":[de,t,"min","max","fit"]}],"font-size":[{text:["base",Qt,Ls]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Wo]}],"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,Wo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",de,$t]}],"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",$t]}],"underline-offset":[{"underline-offset":["auto",de,$t]}],"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(),[r3])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",n3]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},o3]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"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,$t]}],"outline-w":[{outline:[$t]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[$]}],"ring-offset-w":[{"ring-offset":[$t]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Qt,i3]}],"shadow-color":[{shadow:[kr]}],opacity:[{opacity:[$]}],"mix-blend":[{"mix-blend":S()}],"bg-blend":[{"bg-blend":S()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Qt,de]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],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":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[$]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"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":[M]}],"skew-y":[{"skew-y":[M]}],"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:[$t,Wo]}],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 c3(e,t){for(var n in t)Bp(e,n,t[n]);return e}var d3=Object.prototype.hasOwnProperty,f3=new Set(["string","number","boolean"]);function Bp(e,t,n){if(!d3.call(e,t)||f3.has(typeof n)||n===null){e[t]=n;return}if(Array.isArray(n)&&Array.isArray(e[t])){e[t]=e[t].concat(n);return}if(typeof n=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=n;return}for(var r in n)Bp(e[t],r,n[r])}}function p3(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"?Is.apply(void 0,[Vs,e].concat(n)):Is.apply(void 0,[function(){return c3(Vs(),e)}].concat(n))}var b3=Is(Vs),h3={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Ip=e=>e||void 0,to=(...e)=>Ip(Pp(e).filter(Boolean).join(" ")),Wi=null,Da={},Os=!1,Rr=(...e)=>t=>t.twMerge?((!Wi||Os)&&(Os=!1,Wi=rt(Da)?b3:p3(Da)),Ip(Wi(to(e)))):to(e),zc=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=to(e[n],t[n]):e[n]=t[n];return e},m3=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:a=[],compoundSlots:i=[],defaultVariants:s={}}=e,l={...h3,...t},u=n!=null&&n.base?to(n.base,e==null?void 0:e.base):e==null?void 0:e.base,c=n!=null&&n.variants&&!rt(n.variants)?Tp(o,n.variants):o,f=n!=null&&n.defaultVariants&&!rt(n.defaultVariants)?{...n.defaultVariants,...s}:s;!rt(l.twMergeConfig)&&!O$(l.twMergeConfig,Da)&&(Os=!0,Da=l.twMergeConfig);let p=rt(n==null?void 0:n.slots),b=rt(r)?{}:{base:to(e==null?void 0:e.base,p&&(n==null?void 0:n.base)),...r},h=p?b:zc({...n==null?void 0:n.slots},rt(b)?{base:e==null?void 0:e.base}:b),g=$=>{if(rt(c)&&rt(r)&&p)return Rr(u,$==null?void 0:$.class,$==null?void 0:$.className)(l);if(a&&!Array.isArray(a))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof a}`);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof i}`);let C=(I,T,L=[],j)=>{let O=L;if(typeof T=="string")O=O.concat(Nc(T).split(" ").map(S=>`${I}:${S}`));else if(Array.isArray(T))O=O.concat(T.reduce((S,W)=>S.concat(`${I}:${W}`),[]));else if(typeof T=="object"&&typeof j=="string"){for(let S in T)if(T.hasOwnProperty(S)&&S===j){let W=T[S];if(W&&typeof W=="string"){let Y=Nc(W);O[j]?O[j]=O[j].concat(Y.split(" ").map(U=>`${I}:${U}`)):O[j]=Y.split(" ").map(U=>`${I}:${U}`)}else Array.isArray(W)&&W.length>0&&(O[j]=W.reduce((Y,U)=>Y.concat(`${I}:${U}`),[]))}}return O},x=(I,T=c,L=null,j=null)=>{var O;let S=T[I];if(!S||rt(S))return null;let W=(O=j==null?void 0:j[I])!=null?O:$==null?void 0:$[I];if(W===null)return null;let Y=Oc(W),U=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,D=f==null?void 0:f[I],N=[];if(typeof Y=="object"&&U)for(let[J,ee]of Object.entries(Y)){let re=S[ee];if(J==="initial"){D=ee;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(J)||(N=C(J,re,N,L))}let q=S[Y]||S[Oc(D)];return typeof N=="object"&&typeof L=="string"&&N[L]?zc(N,q):N.length>0?(N.push(q),N):q},E=()=>c?Object.keys(c).map(I=>x(I,c)):null,P=(I,T)=>{if(!c||typeof c!="object")return null;let L=new Array;for(let j in c){let O=x(j,c,I,T),S=I==="base"&&typeof O=="string"?O:O&&O[I];S&&(L[L.length]=S)}return L},M={};for(let I in $)$[I]!==void 0&&(M[I]=$[I]);let K=(I,T)=>{var L;let j=typeof($==null?void 0:$[I])=="object"?{[I]:(L=$[I])==null?void 0:L.initial}:{};return{...f,...M,...j,...T}},v=(I=[],T)=>{let L=[];for(let{class:j,className:O,...S}of I){let W=!0;for(let[Y,U]of Object.entries(S)){let D=K(Y,T);if(Array.isArray(U)){if(!U.includes(D[Y])){W=!1;break}}else if(D[Y]!==U){W=!1;break}}W&&(j&&L.push(j),O&&L.push(O))}return L},V=I=>{let T=v(a,I),L=v(n==null?void 0:n.compoundVariants,I);return Sp(L,T)},F=I=>{let T=V(I);if(!Array.isArray(T))return T;let L={};for(let j of T)if(typeof j=="string"&&(L.base=Rr(L.base,j)(l)),typeof j=="object")for(let[O,S]of Object.entries(j))L[O]=Rr(L[O],S)(l);return L},k=I=>{if(i.length<1)return null;let T={};for(let{slots:L=[],class:j,className:O,...S}of i){if(!rt(S)){let W=!0;for(let Y of Object.keys(S)){let U=K(Y,I)[Y];if(U===void 0||(Array.isArray(S[Y])?!S[Y].includes(U):S[Y]!==U)){W=!1;break}}if(!W)continue}for(let W of L)T[W]=T[W]||[],T[W].push([j,O])}return T};if(!rt(r)||!p){let I={};if(typeof h=="object"&&!rt(h))for(let T of Object.keys(h))I[T]=L=>{var j,O;return Rr(h[T],P(T,L),((j=F(L))!=null?j:[])[T],((O=k(L))!=null?O:[])[T],L==null?void 0:L.class,L==null?void 0:L.className)(l)};return I}return Rr(u,E(),V(),$==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=u,g.slots=h,g.variants=c,g.defaultVariants=f,g.compoundSlots=i,g.compoundVariants=a,g},Go=["small","medium","large"],ri=(e,t)=>{var n,r,o;return m3(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","unit",...Hi],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"],"min-w":[{"min-w":["unit",...Hi]}],"min-h":[{"min-h":["unit",...Hi]}]}}})},Lp=["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"],Gi=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],g3={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"},v3={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"},y3={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"},$3={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"},x3={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"},w3={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"},C3={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:g3,shadow:v3,bordered:y3,flat:$3,faded:x3,light:w3,ghost:C3},Uc=ri({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",...Lp],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"}}},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"}}]}),D3=ri({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...Lp],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...Gi,"flex","items-center","justify-center"],name:[...Gi,"font-normal","text-center","text-inherit"],icon:[...Gi,"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 transition-transform","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"}}]}),E3=ri({base:"flex items-center justify-center h-auto w-max-content",variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}}),Hc=ri({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 vt(e,t,n){let[r,o]=d.useState(e||t),a=d.useRef(e!==void 0),i=e!==void 0;d.useEffect(()=>{let u=a.current;u!==i&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}.`),a.current=i},[i]);let s=i?e:r,l=d.useCallback((u,...c)=>{let f=(p,...b)=>{n&&(Object.is(s,p)||n(p,...b)),i||(s=p)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((b,...h)=>{let g=u(i?s:b,...h);return f(g,...c),i?b:g})):(i||o(u),f(u,...c))},[i,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,a=Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o;isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(n/r)*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor((n-t)/r)*r);let i=r.toString(),s=i.indexOf("."),l=s>=0?i.length-s:0;if(l>0){let u=Math.pow(10,l);a=Math.round(a*u)/u}return a}const Ea={prefix:String(Math.round(Math.random()*1e10)),current:0},Vp=A.default.createContext(Ea),P3=A.default.createContext(!1);let S3=!!(typeof window<"u"&&window.document&&window.document.createElement),Yi=new WeakMap;function T3(e=!1){let t=d.useContext(Vp),n=d.useRef(null);if(n.current===null&&!e){var r,o;let a=(o=A.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(a){let i=Yi.get(a);i==null?Yi.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,Yi.delete(a))}n.current=++t.current}return n.current}function A3(e){let t=d.useContext(Vp);t===Ea&&!S3&&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=T3(!!e),r=t===Ea&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function M3(e){let t=A.default.useId(),[n]=d.useState(kt()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ea.prefix}`;return e||`${r}-${t}`}const k3=typeof A.default.useId=="function"?M3:A3;function R3(){return!1}function F3(){return!0}function B3(e){return()=>{}}function kt(){return typeof A.default.useSyncExternalStore=="function"?A.default.useSyncExternalStore(B3,R3,F3):d.useContext(P3)}function Op(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=Op(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function I3(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Op(e))&&(r&&(r+=" "),r+=t);return r}const ge=typeof document<"u"?A.default.useLayoutEffect:()=>{};function Ae(e){const t=d.useRef(null);return ge(()=>{t.current=e},[e]),d.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function L3(e){let[t,n]=d.useState(e),r=d.useRef(null),o=Ae(()=>{if(!r.current)return;let i=r.current.next();if(i.done){r.current=null;return}t===i.value?o():n(i.value)});ge(()=>{r.current&&o()});let a=Ae(i=>{r.current=i(t),o()});return[t,a]}let V3=!!(typeof window<"u"&&window.document&&window.document.createElement),Pa=new Map;function He(e){let[t,n]=d.useState(e),r=d.useRef(null),o=k3(t),a=d.useCallback(i=>{r.current=i},[]);return V3&&Pa.set(o,a),ge(()=>{let i=o;return()=>{Pa.delete(i)}},[o]),d.useEffect(()=>{let i=r.current;i&&(r.current=null,n(i))}),o}function O3(e,t){if(e===t)return e;let n=Pa.get(e);if(n)return n(t),t;let r=Pa.get(t);return r?(r(e),e):t}function on(e=[]){let t=He(),[n,r]=L3(t),o=d.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return ge(o,[t,o,...e]),n}function sn(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const xe=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},bt=e=>e&&"window"in e&&e.window===e?e:xe(e).defaultView||window;function Q(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let a=t[o],i=r[o];typeof a=="function"&&typeof i=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=sn(a,i):(o==="className"||o==="UNSAFE_className")&&typeof a=="string"&&typeof i=="string"?t[o]=I3(a,i):o==="id"&&a&&i?t.id=O3(a,i):t[o]=i!==void 0?i:a}}return t}function oi(...e){return e.length===1?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const N3=new Set(["id"]),K3=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),j3=new Set(["href","target","rel","download","ping","referrerPolicy"]),_3=/^(data-.*)$/;function ue(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,a={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(N3.has(i)||n&&K3.has(i)||r&&j3.has(i)||o!=null&&o.has(i)||_3.test(i))&&(a[i]=e[i]);return a}function At(e){if(z3())e.focus({preventScroll:!0});else{let t=U3(e);e.focus(),H3(t)}}let Yo=null;function z3(){if(Yo==null){Yo=!1;try{document.createElement("div").focus({get preventScroll(){return Yo=!0,!0}})}catch{}}return Yo}function U3(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 H3(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function ai(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Nl(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ht(){return Nl(/^Mac/i)}function Np(){return Nl(/^iPhone/i)}function Kp(){return Nl(/^iPad/i)||Ht()&&navigator.maxTouchPoints>1}function pr(){return Np()||Kp()}function pa(){return Ht()||pr()}function Kl(){return ai(/AppleWebKit/i)&&!W3()}function W3(){return ai(/Chrome/i)}function jl(){return ai(/Android/i)}function G3(){return ai(/Firefox/i)}const Y3=d.createContext({isNative:!0,open:X3});function go(){return d.useContext(Y3)}function q3(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:a,ctrlKey:i,altKey:s,shiftKey:l}=t;G3()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Ht()?a=!0:i=!0);let u=Kl()&&Ht()&&!Kp()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:i,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:i,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Sn.isOpening=n,At(e),e.dispatchEvent(u),Sn.isOpening=!1}Sn.isOpening=!1;function Z3(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 X3(e,t){Z3(e,n=>Sn(n,t))}let Yn=new Map,Ns=new Set;function Wc(){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 a of Ns)a();Ns.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Wc():document.addEventListener("DOMContentLoaded",Wc));function jp(e){requestAnimationFrame(()=>{Yn.size===0?e():Ns.add(e)})}function br(){let e=d.useRef(new Map),t=d.useCallback((o,a,i,s)=>{let l=s!=null&&s.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:a,eventTarget:o,fn:l,options:s}),o.addEventListener(a,i,s)},[]),n=d.useCallback((o,a,i,s)=>{var l;let u=((l=e.current.get(i))===null||l===void 0?void 0:l.fn)||i;o.removeEventListener(a,u,s),e.current.delete(i)},[]),r=d.useCallback(()=>{e.current.forEach((o,a)=>{n(o.eventTarget,o.type,a,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=He(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 yt(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 J3(){return typeof window.ResizeObserver<"u"}function _l(e){const{ref:t,onResize:n}=e;d.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(J3()){const o=new window.ResizeObserver(a=>{a.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function zl(e,t){ge(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function no(e,t){let n=e;for(Sa(n,t)&&(n=n.parentElement);n&&!Sa(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Sa(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}let ct=typeof document<"u"&&window.visualViewport;function Q3(){let e=kt(),[t,n]=d.useState(()=>e?{width:0,height:0}:Gc());return d.useEffect(()=>{let r=()=>{n(o=>{let a=Gc();return a.width===o.width&&a.height===o.height?o:a})};return ct?ct.addEventListener("resize",r):window.addEventListener("resize",r),()=>{ct?ct.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function Gc(){return{width:ct&&(ct==null?void 0:ct.width)||window.innerWidth,height:ct&&(ct==null?void 0:ct.height)||window.innerHeight}}let ex=0;const qi=new Map;function _p(e){let[t,n]=d.useState();return ge(()=>{if(!e)return;let r=qi.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${ex++}`;n(o);let a=document.createElement("div");a.id=o,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},qi.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),qi.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Ta(e,t,n,r){let o=Ae(n),a=n==null;d.useEffect(()=>{if(a||!e.current)return;let i=e.current;return i.addEventListener(t,o,r),()=>{i.removeEventListener(t,o,r)}},[e,t,r,a,o])}function zp(e,t){let n=Yc(e,t,"left"),r=Yc(e,t,"top"),o=t.offsetWidth,a=t.offsetHeight,i=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),f=e.scrollTop+parseInt(l,10),p=c+e.clientWidth,b=f+e.clientHeight;n<=i?i=n-parseInt(u,10):n+o>p&&(i+=n+o-p),r<=f?s=r-parseInt(l,10):r+a>b&&(s+=r+a-b),e.scrollLeft=i,e.scrollTop=s}function Yc(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 Ks(e,t){if(document.contains(e)){let i=document.scrollingElement||document.documentElement;if(window.getComputedStyle(i).overflow==="hidden"){let l=no(e);for(;e&&l&&e!==i&&l!==i;)zp(l,e),e=l,l=no(e)}else{var n;let{left:l,top:u}=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(u-f)>1){var r,o,a;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function js(e){return e.mozInputSource===0&&e.isTrusted?!0:jl()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function tx(e){return!jl()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function nx(e,t){let n=d.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function vo(e,t,n){let r=d.useRef(t),o=Ae(()=>{n&&n(r.current)});d.useEffect(()=>{var a;let i=e==null||(a=e.current)===null||a===void 0?void 0:a.form;return i==null||i.addEventListener("reset",o),()=>{i==null||i.removeEventListener("reset",o)}},[e,o])}function rx(e,t){return t.get?t.get.call(e):t.value}function Up(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function ox(e,t){var n=Up(e,t,"get");return rx(e,n)}function ax(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function yo(e,t,n){ax(e,t),t.set(e,n)}function ix(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 qc(e,t,n){var r=Up(e,t,"set");return ix(e,r,n),n}let Xn="default",_s="",ba=new WeakMap;function zs(e){if(pr()){if(Xn==="default"){const t=xe(e);_s=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Xn="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(ba.set(e,e.style.userSelect),e.style.userSelect="none")}function jr(e){if(pr()){if(Xn!=="disabled")return;Xn="restoring",setTimeout(()=>{jp(()=>{if(Xn==="restoring"){const t=xe(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=_s||""),_s="",Xn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ba.has(e)){let t=ba.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ba.delete(e)}}const ro=A.default.createContext({register:()=>{}});ro.displayName="PressResponderContext";function sx(e){let t=d.useContext(ro);if(t){let{register:n,...r}=t;e=Q(r,e),n()}return zl(t,e.ref),e}var qo=new WeakMap;class Zo{continuePropagation(){qc(this,qo,!1)}get shouldStopPropagation(){return ox(this,qo)}constructor(t,n,r){yo(this,qo,{writable:!0,value:void 0}),qc(this,qo,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const Zc=Symbol("linkClicked");function ln(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:a,isDisabled:i,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:f,...p}=sx(e),[b,h]=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:$}=br(),C=Ae((v,V)=>{let F=g.current;if(i||F.didFirePressStart)return!1;let k=!0;if(F.isTriggeringEvent=!0,r){let I=new Zo("pressstart",V,v);r(I),k=I.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,h(!0),k}),x=Ae((v,V,F=!0)=>{let k=g.current;if(!k.didFirePressStart)return!1;k.ignoreClickAfterPress=!0,k.didFirePressStart=!1,k.isTriggeringEvent=!0;let I=!0;if(o){let T=new Zo("pressend",V,v);o(T),I=T.shouldStopPropagation}if(n&&n(!1),h(!1),t&&F&&!i){let T=new Zo("press",V,v);t(T),I&&(I=T.shouldStopPropagation)}return k.isTriggeringEvent=!1,I}),E=Ae((v,V)=>{let F=g.current;if(i)return!1;if(a){F.isTriggeringEvent=!0;let k=new Zo("pressup",V,v);return a(k),F.isTriggeringEvent=!1,k.shouldStopPropagation}return!0}),P=Ae(v=>{let V=g.current;V.isPressed&&V.target&&(V.isOverTarget&&V.pointerType!=null&&x(Ft(V.target,v),V.pointerType,!1),V.isPressed=!1,V.isOverTarget=!1,V.activePointerId=null,V.pointerType=null,$(),c||jr(V.target))}),M=Ae(v=>{u&&P(v)}),K=d.useMemo(()=>{let v=g.current,V={onKeyDown(k){if(Zi(k.nativeEvent,k.currentTarget)&&k.currentTarget.contains(k.target)){var I;Jc(k.target,k.key)&&k.preventDefault();let T=!0;if(!v.isPressed&&!k.repeat){v.target=k.currentTarget,v.isPressed=!0,T=C(k,"keyboard");let L=k.currentTarget,j=O=>{Zi(O,L)&&!O.repeat&&L.contains(O.target)&&v.target&&E(Ft(v.target,O),"keyboard")};y(xe(k.currentTarget),"keyup",sn(j,F),!0)}T&&k.stopPropagation(),k.metaKey&&Ht()&&((I=v.metaKeyEvents)===null||I===void 0||I.set(k.key,k.nativeEvent))}else k.key==="Meta"&&(v.metaKeyEvents=new Map)},onClick(k){if(!(k&&!k.currentTarget.contains(k.target))&&k&&k.button===0&&!v.isTriggeringEvent&&!Sn.isOpening){let I=!0;if(i&&k.preventDefault(),!v.ignoreClickAfterPress&&!v.ignoreEmulatedMouseEvents&&!v.isPressed&&(v.pointerType==="virtual"||js(k.nativeEvent))){!i&&!l&&At(k.currentTarget);let T=C(k,"virtual"),L=E(k,"virtual"),j=x(k,"virtual");I=T&&L&&j}v.ignoreEmulatedMouseEvents=!1,v.ignoreClickAfterPress=!1,I&&k.stopPropagation()}}},F=k=>{var I;if(v.isPressed&&v.target&&Zi(k,v.target)){var T;Jc(k.target,k.key)&&k.preventDefault();let j=k.target;x(Ft(v.target,k),"keyboard",v.target.contains(j)),$(),k.key!=="Enter"&&Ul(v.target)&&v.target.contains(j)&&!k[Zc]&&(k[Zc]=!0,Sn(v.target,k,!1)),v.isPressed=!1,(T=v.metaKeyEvents)===null||T===void 0||T.delete(k.key)}else if(k.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(tx(L.nativeEvent)){v.pointerType="virtual";return}Xi(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,!i&&!l&&At(L.currentTarget),c||zs(v.target),j=C(L,v.pointerType),y(xe(L.currentTarget),"pointermove",k,!1),y(xe(L.currentTarget),"pointerup",I,!1),y(xe(L.currentTarget),"pointercancel",T,!1)),j&&L.stopPropagation()},V.onMouseDown=L=>{L.currentTarget.contains(L.target)&&L.button===0&&(Xi(L.currentTarget)&&L.preventDefault(),L.stopPropagation())},V.onPointerUp=L=>{!L.currentTarget.contains(L.target)||v.pointerType==="virtual"||L.button===0&&Un(L,L.currentTarget)&&E(L,v.pointerType||L.pointerType)};let k=L=>{L.pointerId===v.activePointerId&&(v.target&&Un(L,v.target)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,C(Ft(v.target,L),v.pointerType)):v.target&&v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,x(Ft(v.target,L),v.pointerType,!1),M(L)))},I=L=>{L.pointerId===v.activePointerId&&v.isPressed&&L.button===0&&v.target&&(Un(L,v.target)&&v.pointerType!=null?x(Ft(v.target,L),v.pointerType):v.isOverTarget&&v.pointerType!=null&&x(Ft(v.target,L),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,$(),c||jr(v.target))},T=L=>{P(L)};V.onDragStart=L=>{L.currentTarget.contains(L.target)&&P(L)}}else{V.onMouseDown=T=>{if(T.button!==0||!T.currentTarget.contains(T.target))return;if(Xi(T.currentTarget)&&T.preventDefault(),v.ignoreEmulatedMouseEvents){T.stopPropagation();return}v.isPressed=!0,v.isOverTarget=!0,v.target=T.currentTarget,v.pointerType=js(T.nativeEvent)?"virtual":"mouse",!i&&!l&&At(T.currentTarget),C(T,v.pointerType)&&T.stopPropagation(),y(xe(T.currentTarget),"mouseup",k,!1)},V.onMouseEnter=T=>{if(!T.currentTarget.contains(T.target))return;let L=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!0,L=C(T,v.pointerType)),L&&T.stopPropagation()},V.onMouseLeave=T=>{if(!T.currentTarget.contains(T.target))return;let L=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!1,L=x(T,v.pointerType,!1),M(T)),L&&T.stopPropagation()},V.onMouseUp=T=>{T.currentTarget.contains(T.target)&&!v.ignoreEmulatedMouseEvents&&T.button===0&&E(T,v.pointerType||"mouse")};let k=T=>{if(T.button===0){if(v.isPressed=!1,$(),v.ignoreEmulatedMouseEvents){v.ignoreEmulatedMouseEvents=!1;return}v.target&&Un(T,v.target)&&v.pointerType!=null?x(Ft(v.target,T),v.pointerType):v.target&&v.isOverTarget&&v.pointerType!=null&&x(Ft(v.target,T),v.pointerType,!1),v.isOverTarget=!1}};V.onTouchStart=T=>{if(!T.currentTarget.contains(T.target))return;let L=lx(T.nativeEvent);if(!L)return;v.activePointerId=L.identifier,v.ignoreEmulatedMouseEvents=!0,v.isOverTarget=!0,v.isPressed=!0,v.target=T.currentTarget,v.pointerType="touch",!i&&!l&&At(T.currentTarget),c||zs(v.target),C(T,v.pointerType)&&T.stopPropagation(),y(bt(T.currentTarget),"scroll",I,!0)},V.onTouchMove=T=>{if(!T.currentTarget.contains(T.target))return;if(!v.isPressed){T.stopPropagation();return}let L=Xc(T.nativeEvent,v.activePointerId),j=!0;L&&Un(L,T.currentTarget)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,j=C(T,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,j=x(T,v.pointerType,!1),M(T)),j&&T.stopPropagation()},V.onTouchEnd=T=>{if(!T.currentTarget.contains(T.target))return;if(!v.isPressed){T.stopPropagation();return}let L=Xc(T.nativeEvent,v.activePointerId),j=!0;L&&Un(L,T.currentTarget)&&v.pointerType!=null?(E(T,v.pointerType),j=x(T,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(j=x(T,v.pointerType,!1)),j&&T.stopPropagation(),v.isPressed=!1,v.activePointerId=null,v.isOverTarget=!1,v.ignoreEmulatedMouseEvents=!0,v.target&&!c&&jr(v.target),$()},V.onTouchCancel=T=>{T.currentTarget.contains(T.target)&&(T.stopPropagation(),v.isPressed&&P(T))};let I=T=>{v.isPressed&&T.target.contains(v.target)&&P({currentTarget:v.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};V.onDragStart=T=>{T.currentTarget.contains(T.target)&&P(T)}}return V},[y,i,l,$,c,P,M,x,C,E]);return d.useEffect(()=>()=>{var v;c||jr((v=g.current.target)!==null&&v!==void 0?v:void 0)},[c]),{isPressed:s||b,pressProps:Q(p,K)}}function Ul(e){return e.tagName==="A"&&e.hasAttribute("href")}function Zi(e,t){const{key:n,code:r}=e,o=t,a=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof bt(o).HTMLInputElement&&!Hp(o,n)||o instanceof bt(o).HTMLTextAreaElement||o.isContentEditable)&&!((a==="link"||!a&&Ul(o))&&n!=="Enter")}function lx(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Xc(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===t)return o}return null}function Ft(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function ux(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 Un(e,t){let n=t.getBoundingClientRect(),r=ux(e);return cx(n,r)}function Xi(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Jc(e,t){return e instanceof HTMLInputElement?!Hp(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Ul(e)}const dx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Hp(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":dx.has(e.type)}const fx=A.default.forwardRef(({children:e,...t},n)=>{let r=d.useRef(!1),o=d.useContext(ro);n=yt(n||(o==null?void 0:o.ref));let a=Q(o||{},{...t,ref:n,register(){r.current=!0,o&&o.register()}});return zl(o,n),d.useEffect(()=>{r.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),A.default.createElement(ro.Provider,{value:a},e)});function px({children:e}){let t=d.useMemo(()=>({register:()=>{}}),[]);return A.default.createElement(ro.Provider,{value:t},e)}class bx{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 Wp(e){let t=d.useRef({isFocused:!1,observer:null});ge(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Ae(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,a=i=>{t.current.isFocused=!1,o.disabled&&n(new bx("blur",i)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var i;(i=t.current.observer)===null||i===void 0||i.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 ii(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const a=d.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),i=Wp(a),s=d.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(n&&n(l),o&&o(!0),i(l))},[o,n,i]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?a:void 0}}}let Wt=null,oo=new Set,Wr=new Map,An=!1,Us=!1;const hx={Tab:!0,Escape:!0};function si(e,t){for(let n of oo)n(e,t)}function mx(e){return!(e.metaKey||!Ht()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Aa(e){An=!0,mx(e)&&(Wt="keyboard",si("keyboard",e))}function ft(e){Wt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(An=!0,si("pointer",e))}function Gp(e){js(e)&&(An=!0,Wt="virtual")}function Yp(e){e.target===window||e.target===document||(!An&&!Us&&(Wt="virtual",si("virtual",e)),An=!1,Us=!1)}function qp(){An=!1,Us=!0}function Ma(e){if(typeof window>"u"||Wr.get(bt(e)))return;const t=bt(e),n=xe(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){An=!0,r.apply(this,arguments)},n.addEventListener("keydown",Aa,!0),n.addEventListener("keyup",Aa,!0),n.addEventListener("click",Gp,!0),t.addEventListener("focus",Yp,!0),t.addEventListener("blur",qp,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ft,!0),n.addEventListener("pointermove",ft,!0),n.addEventListener("pointerup",ft,!0)):(n.addEventListener("mousedown",ft,!0),n.addEventListener("mousemove",ft,!0),n.addEventListener("mouseup",ft,!0)),t.addEventListener("beforeunload",()=>{Zp(e)},{once:!0}),Wr.set(t,{focus:r})}const Zp=(e,t)=>{const n=bt(e),r=xe(e);t&&r.removeEventListener("DOMContentLoaded",t),Wr.has(n)&&(n.HTMLElement.prototype.focus=Wr.get(n).focus,r.removeEventListener("keydown",Aa,!0),r.removeEventListener("keyup",Aa,!0),r.removeEventListener("click",Gp,!0),n.removeEventListener("focus",Yp,!0),n.removeEventListener("blur",qp,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ft,!0),r.removeEventListener("pointermove",ft,!0),r.removeEventListener("pointerup",ft,!0)):(r.removeEventListener("mousedown",ft,!0),r.removeEventListener("mousemove",ft,!0),r.removeEventListener("mouseup",ft,!0)),Wr.delete(n))};function gx(e){const t=xe(e);let n;return t.readyState!=="loading"?Ma(e):(n=()=>{Ma(e)},t.addEventListener("DOMContentLoaded",n)),()=>Zp(e,n)}typeof document<"u"&&gx();function sr(){return Wt!=="pointer"}function ka(){return Wt}function Xp(e){Wt=e,si(e,null)}function vx(){Ma();let[e,t]=d.useState(Wt);return d.useEffect(()=>{let n=()=>{t(Wt)};return oo.add(n),()=>{oo.delete(n)}},[]),kt()?null:e}const yx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function $x(e,t,n){var r;const o=typeof window<"u"?bt(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?bt(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?bt(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?bt(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!yx.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof a||(n==null?void 0:n.target)instanceof i&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!hx[n.key])}function xx(e,t,n){Ma(),d.useEffect(()=>{let r=(o,a)=>{$x(!!(n!=null&&n.isTextInput),o,a)&&e(sr())};return oo.add(r),()=>{oo.delete(r)}},t)}function hr(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,a=d.useRef({isFocusWithin:!1}),i=d.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,a]),s=Wp(i),l=d.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),a.current.isFocusWithin=!0,s(u))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:i}}}let Ra=!1,Ji=0;function Hs(){Ra=!0,setTimeout(()=>{Ra=!1},50)}function Qc(e){e.pointerType==="touch"&&Hs()}function wx(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Qc):document.addEventListener("touchend",Hs),Ji++,()=>{Ji--,!(Ji>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Qc):document.removeEventListener("touchend",Hs))}}function Oe(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[a,i]=d.useState(!1),s=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(wx,[]);let{hoverProps:l,triggerHoverEnd:u}=d.useMemo(()=>{let c=(b,h)=>{if(s.pointerType=h,o||h==="touch"||s.isHovered||!b.currentTarget.contains(b.target))return;s.isHovered=!0;let g=b.currentTarget;s.target=g,t&&t({type:"hoverstart",target:g,pointerType:h}),n&&n(!0),i(!0)},f=(b,h)=>{if(s.pointerType="",s.target=null,h==="touch"||!s.isHovered)return;s.isHovered=!1;let g=b.currentTarget;r&&r({type:"hoverend",target:g,pointerType:h}),n&&n(!1),i(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=b=>{Ra&&b.pointerType==="mouse"||c(b,b.pointerType)},p.onPointerLeave=b=>{!o&&b.currentTarget.contains(b.target)&&f(b,b.pointerType)}):(p.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=b=>{!s.ignoreEmulatedMouseEvents&&!Ra&&c(b,"mouse"),s.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=b=>{!o&&b.currentTarget.contains(b.target)&&f(b,"mouse")}),{hoverProps:p,triggerHoverEnd:f}},[t,n,r,o,s]);return d.useEffect(()=>{o&&u({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:l,isHovered:a}}function Jp(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,a=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=Ae(l=>{n&&Xo(l,t)&&(o&&o(l),a.current.isPointerDown=!0)}),s=Ae(l=>{n&&n(l)});d.useEffect(()=>{let l=a.current;if(r)return;const u=t.current,c=xe(u);if(typeof PointerEvent<"u"){let f=p=>{l.isPointerDown&&Xo(p,t)&&s(p),l.isPointerDown=!1};return c.addEventListener("pointerdown",i,!0),c.addEventListener("pointerup",f,!0),()=>{c.removeEventListener("pointerdown",i,!0),c.removeEventListener("pointerup",f,!0)}}else{let f=b=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Xo(b,t)&&s(b),l.isPointerDown=!1},p=b=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Xo(b,t)&&s(b),l.isPointerDown=!1};return c.addEventListener("mousedown",i,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",i,!0),c.addEventListener("touchend",p,!0),()=>{c.removeEventListener("mousedown",i,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",i,!0),c.removeEventListener("touchend",p,!0)}}},[t,r,i,s])}function Xo(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function ed(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function Hl(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ed(e.onKeyDown),onKeyUp:ed(e.onKeyUp)}}}function Qp(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=d.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:i}=br(),s=Ae((c,f,p,b)=>{p===0&&b===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:b,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))}),l=Ae((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:d.useMemo(()=>{let c={},f=()=>{zs(),o.current.didMove=!1};if(typeof PointerEvent>"u"){let b=$=>{if($.button===0){var C,x,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=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageY)!==null&&P!==void 0?P:0)),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},h=$=>{$.button===0&&(l($,"mouse"),i(window,"mousemove",b,!1),i(window,"mouseup",h,!1))};c.onMouseDown=$=>{$.button===0&&(f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY},a(window,"mousemove",b,!1),a(window,"mouseup",h,!1))};let g=$=>{let C=[...$.changedTouches].findIndex(({identifier:K})=>K===o.current.id);if(C>=0){var x,E;let{pageX:K,pageY:v}=$.changedTouches[C];var P,M;s($,"touch",K-((P=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageX)!==null&&P!==void 0?P:0),v-((M=(E=o.current.lastPosition)===null||E===void 0?void 0:E.pageY)!==null&&M!==void 0?M:0)),o.current.lastPosition={pageX:K,pageY:v}}},y=$=>{[...$.changedTouches].findIndex(({identifier:x})=>x===o.current.id)>=0&&(l($,"touch"),o.current.id=null,i(window,"touchmove",g),i(window,"touchend",y),i(window,"touchcancel",y))};c.onTouchStart=$=>{if($.changedTouches.length===0||o.current.id!=null)return;let{pageX:C,pageY:x,identifier:E}=$.changedTouches[0];f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:C,pageY:x},o.current.id=E,a(window,"touchmove",g,!1),a(window,"touchend",y,!1),a(window,"touchcancel",y,!1)}}else{let b=g=>{if(g.pointerId===o.current.id){var y,$;let E=g.pointerType||"mouse";var C,x;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-((x=($=o.current.lastPosition)===null||$===void 0?void 0:$.pageY)!==null&&x!==void 0?x:0)),o.current.lastPosition={pageX:g.pageX,pageY:g.pageY}}},h=g=>{if(g.pointerId===o.current.id){let y=g.pointerType||"mouse";l(g,y),o.current.id=null,i(window,"pointermove",b,!1),i(window,"pointerup",h,!1),i(window,"pointercancel",h,!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,a(window,"pointermove",b,!1),a(window,"pointerup",h,!1),a(window,"pointercancel",h,!1))}}let p=(b,h,g)=>{f(),s(b,"keyboard",h,g),l(b,"keyboard")};return c.onKeyDown=b=>{switch(b.key){case"Left":case"ArrowLeft":b.preventDefault(),b.stopPropagation(),p(b,-1,0);break;case"Right":case"ArrowRight":b.preventDefault(),b.stopPropagation(),p(b,1,0);break;case"Up":case"ArrowUp":b.preventDefault(),b.stopPropagation(),p(b,0,-1);break;case"Down":case"ArrowDown":b.preventDefault(),b.stopPropagation(),p(b,0,1);break}},c},[o,a,i,s,l])}}function Cx(e,t){let{onScroll:n,isDisabled:r}=e,o=d.useCallback(a=>{a.ctrlKey||(a.preventDefault(),a.stopPropagation(),n&&n({deltaX:a.deltaX,deltaY:a.deltaY}))},[n]);Ta(t,"wheel",r?void 0:o)}const Dx=500;function e0(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:a=Dx,accessibilityDescription:i}=e;const s=d.useRef();let{addGlobalListener:l,removeGlobalListener:u}=br(),{pressProps:c}=ln({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...p,type:"longpress"}),s.current=void 0},a),p.pointerType==="touch")){let b=h=>{h.preventDefault()};l(p.target,"contextmenu",b,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=_p(o&&!t?i:void 0);return{longPressProps:Q(c,f)}}function Mn(e){const t=xe(e);if(ka()==="virtual"){let n=t.activeElement;jp(()=>{t.activeElement===n&&e.isConnected&&At(e)})}else At(e)}function Ex(e){const t=bt(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:a}=e.ownerDocument.defaultView;let{display:i,visibility:s}=a(e);o=i!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function Px(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function t0(e,t){return e.nodeName!=="#comment"&&Ex(e)&&Px(e,t)&&(!e.parentElement||t0(e.parentElement,e))}const td=A.default.createContext(null);let $e=null;function Wl(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,a=d.useRef(null),i=d.useRef(null),s=d.useRef([]),{parentNode:l}=d.useContext(td)||{},u=d.useMemo(()=>new Ws({scopeRef:s}),[s]);ge(()=>{let p=l||Ie.root;if(Ie.getTreeNode(p.scopeRef)&&$e&&!Ba($e,p.scopeRef)){let b=Ie.getTreeNode($e);b&&(p=b)}p.addChild(u),Ie.addNode(u)},[u,l]),ge(()=>{let p=Ie.getTreeNode(s);p&&(p.contain=!!n)},[n]),ge(()=>{var p;let b=(p=a.current)===null||p===void 0?void 0:p.nextSibling,h=[];for(;b&&b!==i.current;)h.push(b),b=b.nextSibling;s.current=h},[t]),Fx(s,r,n),Mx(s,n),Ix(s,r,n),Rx(s,o),d.useEffect(()=>{const p=xe(s.current?s.current[0]:void 0).activeElement;let b=null;if(Ye(p,s.current)){for(let h of Ie.traverse())h.scopeRef&&Ye(p,h.scopeRef.current)&&(b=h);b===Ie.getTreeNode(s)&&($e=b.scopeRef)}},[s]),ge(()=>()=>{var p,b,h;let g=(h=(b=Ie.getTreeNode(s))===null||b===void 0||(p=b.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&h!==void 0?h:null;(s===$e||Ba(s,$e))&&(!g||Ie.getTreeNode(g))&&($e=g),Ie.removeTreeNode(s)},[s]);let c=d.useMemo(()=>Sx(s),[]),f=d.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return A.default.createElement(td.Provider,{value:f},A.default.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,A.default.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function Sx(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:a,accept:i}=t,s=r||xe(n[0]).activeElement,l=n[0].previousElementSibling,u=Cn(n),c=Xe(u,{tabbable:o,accept:i},n);c.currentNode=Ye(s,n)?s:l;let f=c.nextNode();return!f&&a&&(c.currentNode=l,f=c.nextNode()),f&&tt(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:a,accept:i}=t,s=r||xe(n[0]).activeElement,l=n[n.length-1].nextElementSibling,u=Cn(n),c=Xe(u,{tabbable:o,accept:i},n);c.currentNode=Ye(s,n)?s:l;let f=c.previousNode();return!f&&a&&(c.currentNode=l,f=c.previousNode()),f&&tt(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,a=Cn(n),i=Xe(a,{tabbable:r,accept:o},n);i.currentNode=n[0].previousElementSibling;let s=i.nextNode();return s&&tt(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,a=Cn(n),i=Xe(a,{tabbable:r,accept:o},n);i.currentNode=n[n.length-1].nextElementSibling;let s=i.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]"],Tx=Gl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Gl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Ax=Gl.join(':not([hidden]):not([tabindex="-1"]),');function Cn(e){return e[0].parentElement}function _r(e){let t=Ie.getTreeNode($e);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Mx(e,t){let n=d.useRef(),r=d.useRef();ge(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=xe(o?o[0]:void 0);let i=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!_r(e))return;let c=a.activeElement,f=e.current;if(!f||!Ye(c,f))return;let p=Cn(f),b=Xe(p,{tabbable:!0},f);if(!c)return;b.currentNode=c;let h=u.shiftKey?b.previousNode():b.nextNode();h||(b.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,h=u.shiftKey?b.previousNode():b.nextNode()),u.preventDefault(),h&&tt(h,!0)},s=u=>{(!$e||Ba($e,e))&&Ye(u.target,e.current)?($e=e,n.current=u.target):_r(e)&&!Fa(u.target,e)?n.current?n.current.focus():$e&&$e.current&&Ia($e.current):_r(e)&&(n.current=u.target)},l=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(a.activeElement&&_r(e)&&!Fa(a.activeElement,e))if($e=e,a.body.contains(u.target)){var c;n.current=u.target,(c=n.current)===null||c===void 0||c.focus()}else $e.current&&Ia($e.current)})};return a.addEventListener("keydown",i,!1),a.addEventListener("focusin",s,!1),o==null||o.forEach(u=>u.addEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.addEventListener("focusout",l,!1)),()=>{a.removeEventListener("keydown",i,!1),a.removeEventListener("focusin",s,!1),o==null||o.forEach(u=>u.removeEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.removeEventListener("focusout",l,!1))}},[e,t]),ge(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function n0(e){return Fa(e)}function Ye(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Fa(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ie.traverse(Ie.getTreeNode(t)))if(n&&Ye(e,n.current))return!0;return!1}function kx(e){return Fa(e,$e)}function Ba(e,t){var n;let r=(n=Ie.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 Ia(e,t=!0){let n=e[0].previousElementSibling,r=Cn(e),o=Xe(r,{tabbable:t},e);o.currentNode=n;let a=o.nextNode();t&&!a&&(r=Cn(e),o=Xe(r,{tabbable:!1},e),o.currentNode=n,a=o.nextNode()),tt(a)}function Rx(e,t){const n=A.default.useRef(t);d.useEffect(()=>{if(n.current){$e=e;const r=xe(e.current?e.current[0]:void 0);!Ye(r.activeElement,$e.current)&&e.current&&Ia(e.current)}n.current=!1},[e])}function Fx(e,t,n){ge(()=>{if(t||n)return;let r=e.current;const o=xe(r?r[0]:void 0);let a=i=>{let s=i.target;Ye(s,e.current)?$e=e:n0(s)||($e=null)};return o.addEventListener("focusin",a,!1),r==null||r.forEach(i=>i.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),r==null||r.forEach(i=>i.removeEventListener("focusin",a,!1))}},[e,t,n])}function Bx(e){let t=Ie.getTreeNode($e);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Ix(e,t,n){const r=d.useRef(typeof document<"u"?xe(e.current?e.current[0]:void 0).activeElement:null);ge(()=>{let o=e.current;const a=xe(o?o[0]:void 0);if(!t||n)return;let i=()=>{(!$e||Ba($e,e))&&Ye(a.activeElement,e.current)&&($e=e)};return a.addEventListener("focusin",i,!1),o==null||o.forEach(s=>s.addEventListener("focusin",i,!1)),()=>{a.removeEventListener("focusin",i,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",i,!1))}},[e,n]),ge(()=>{const o=xe(e.current?e.current[0]:void 0);if(!t)return;let a=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!_r(e))return;let s=o.activeElement;if(!Ye(s,e.current))return;let l=Ie.getTreeNode(e);if(!l)return;let u=l.nodeToRestore,c=Xe(o.body,{tabbable:!0});c.currentNode=s;let f=i.shiftKey?c.previousNode():c.nextNode();if((!u||!o.body.contains(u)||u===o.body)&&(u=void 0,l.nodeToRestore=void 0),(!f||!Ye(f,e.current))&&u){c.currentNode=u;do f=i.shiftKey?c.previousNode():c.nextNode();while(Ye(f,e.current));i.preventDefault(),i.stopPropagation(),f?tt(f,!0):n0(u)?tt(u,!0):s.blur()}};return n||o.addEventListener("keydown",a,!0),()=>{n||o.removeEventListener("keydown",a,!0)}},[e,t,n]),ge(()=>{const o=xe(e.current?e.current[0]:void 0);if(!t)return;let a=Ie.getTreeNode(e);if(a){var i;return a.nodeToRestore=(i=r.current)!==null&&i!==void 0?i:void 0,()=>{let s=Ie.getTreeNode(e);if(!s)return;let l=s.nodeToRestore;if(t&&l&&(Ye(o.activeElement,e.current)||o.activeElement===o.body&&Bx(e))){let u=Ie.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=u.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){tt(c.nodeToRestore);return}c=c.parent}for(c=u.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Ie.getTreeNode(c.scopeRef)){Ia(c.scopeRef.current,!0);return}c=c.parent}}})}}}},[e,t])}function Xe(e,t,n){let r=t!=null&&t.tabbable?Ax:Tx,o=xe(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var i;return!(t==null||(i=t.from)===null||i===void 0)&&i.contains(a)?NodeFilter.FILTER_REJECT:a.matches(r)&&t0(a)&&(!n||Ye(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function r0(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:o,tabbable:a=t.tabbable,wrap:i=t.wrap,accept:s=t.accept}=n,l=o||xe(r).activeElement,u=Xe(r,{tabbable:a,accept:s});r.contains(l)&&(u.currentNode=l);let c=u.nextNode();return!c&&i&&(u.currentNode=r,c=u.nextNode()),c&&tt(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:o,tabbable:a=t.tabbable,wrap:i=t.wrap,accept:s=t.accept}=n,l=o||xe(r).activeElement,u=Xe(r,{tabbable:a,accept:s});if(r.contains(l))u.currentNode=l;else{let f=Qi(u);return f&&tt(f,!0),f??null}let c=u.previousNode();if(!c&&i){u.currentNode=r;let f=Qi(u);if(!f)return null;c=f}return c&&tt(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:a=t.accept}=n,s=Xe(r,{tabbable:o,accept:a}).nextNode();return s&&tt(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:a=t.accept}=n,i=Xe(r,{tabbable:o,accept:a}),s=Qi(i);return s&&tt(s,!0),s??null}}}function Qi(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Yl{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let a=new Ws({scopeRef:t});o.addChild(a),a.parent=o,this.fastMap.set(t,a),r&&(a.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 a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ye(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Yl;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Ws({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ws{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 Ie=new Yl;function qe(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=d.useRef({isFocused:!1,isFocusVisible:t||sr()}),[a,i]=d.useState(!1),[s,l]=d.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=d.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=d.useCallback(b=>{o.current.isFocused=b,i(b),u()},[u]);xx(b=>{o.current.isFocusVisible=b,u()},[],{isTextInput:n});let{focusProps:f}=ii({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=hr({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:s,focusProps:r?p:f}}let Lx=A.default.createContext(null);function Vx(e){let t=d.useContext(Lx)||{};zl(t,e);let{ref:n,...r}=t;return r}function mr(e,t){let{focusProps:n}=ii(e),{keyboardProps:r}=Hl(e),o=Q(n,r),a=Vx(t),i=e.isDisabled?{}:a,s=d.useRef(e.autoFocus);return d.useEffect(()=>{s.current&&t.current&&Mn(t.current),s.current=!1},[t]),{focusableProps:Q({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},i)}}function Ox(e,t){let n=t==null?void 0:t.isDisabled,[r,o]=d.useState(!1);return ge(()=>{if(e!=null&&e.current&&!n){let a=()=>{if(e.current){let s=Xe(e.current,{tabbable:!0});o(!!s.nextNode())}};a();let i=new MutationObserver(a);return i.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{i.disconnect()}}}),n?!1:r}var o0=globalThis!=null&&globalThis.document?d.useLayoutEffect:d.useEffect;function Nx(e={}){const{loading:t,src:n,srcSet:r,onLoad:o,onError:a,crossOrigin:i,sizes:s,ignoreFallback:l}=e,[u,c]=d.useState("pending");d.useEffect(()=>{c(n?"loading":"pending")},[n]);const f=d.useRef(),p=d.useCallback(()=>{if(!n)return;b();const h=new Image;h.src=n,i&&(h.crossOrigin=i),r&&(h.srcset=r),s&&(h.sizes=s),t&&(h.loading=t),h.onload=g=>{b(),c("loaded"),o==null||o(g)},h.onerror=g=>{b(),c("failed"),a==null||a(g)},f.current=h},[n,i,r,s,o,a,t]),b=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return o0(()=>{if(!l)return u==="loading"&&p(),()=>{b()}},[u,p,l]),l?"loaded":u}function Kx(e={}){var t,n,r,o,a;const i=Dp(),s=!!i,{as:l,ref:u,src:c,name:f,icon:p,classNames:b,fallback:h,alt:g=f||"avatar",imgRef:y,color:$=(t=i==null?void 0:i.color)!=null?t:"default",radius:C=(n=i==null?void 0:i.radius)!=null?n:"full",size:x=(r=i==null?void 0:i.size)!=null?r:"md",isBordered:E=(o=i==null?void 0:i.isBordered)!=null?o:!1,isDisabled:P=(a=i==null?void 0:i.isDisabled)!=null?a:!1,isFocusable:M=!1,getInitials:K=$$,ignoreFallback:v=!1,showFallback:V=!1,ImgComponent:F="img",imgProps:k,className:I,onError:T,...L}=e,j=l||"span",O=Fs(u),S=Fs(y),{isFocusVisible:W,isFocused:Y,focusProps:U}=qe(),{isHovered:D,hoverProps:N}=Oe({isDisabled:P}),J=Nx({src:c,onError:T,ignoreFallback:v})==="loaded",ee=(!c||!J)&&V,re=d.useMemo(()=>{var oe;return D3({color:$,radius:C,size:x,isBordered:E,isDisabled:P,isInGroup:s,isInGridGroup:(oe=i==null?void 0:i.isGrid)!=null?oe:!1})},[$,C,x,E,P,s,i==null?void 0:i.isGrid]),z=eo(b==null?void 0:b.base,I),Z=d.useMemo(()=>M||l==="button",[M,l]),te=d.useCallback((oe={})=>({ref:O,tabIndex:Z?0:-1,"data-hover":Tt(D),"data-focus":Tt(Y),"data-focus-visible":Tt(W),className:re.base({class:eo(z,oe==null?void 0:oe.className)}),...Q(L,N,Z?U:{})}),[Z,re,z,U,L]),se=d.useCallback((oe={})=>({ref:S,src:c,"data-loaded":Tt(J),className:re.img({class:b==null?void 0:b.img}),...Q(k,oe)}),[re,J,k,c,S]);return{Component:j,ImgComponent:F,src:c,alt:g,icon:p,name:f,imgRef:S,slots:re,classNames:b,fallback:h,isImgLoaded:J,showFallback:ee,ignoreFallback:v,getInitials:K,getAvatarProps:te,getImageProps:se}}const jx=Symbol.for("react-aria.i18n.locale"),_x=Symbol.for("react-aria.i18n.strings");let Hn;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=zx(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[_x];if(!o)return null;Hn={};for(let a in o)Hn[a]=new Bn({[n]:o[a]},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 zx(e,t,n="en-US"){if(t[e])return t[e];let r=Ux(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function Ux(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const nd=new Map,rd=new Map;class a0{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 a=this.locale+":"+r,i=nd.get(a);i||(i=new Intl.PluralRules(this.locale,{type:r}),nd.set(a,i));let s=i.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=rd.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),rd.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}function jt(e,t){return e-t*Math.floor(e/t)}const i0=1721426;function Dn(e,t,n,r){t=$o(e,t);let o=t-1,a=-2;return n<=2?a=0:rn(t)&&(a=-1),i0-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+a+r)}function rn(e){return e%4===0&&(e%100!==0||e%400===0)}function $o(e,t){return e==="BC"?1-t:t}function li(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const Hx={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class ot{fromJulianDay(t){let n=t,r=n-i0,o=Math.floor(r/146097),a=jt(r,146097),i=Math.floor(a/36524),s=jt(a,36524),l=Math.floor(s/1461),u=jt(s,1461),c=Math.floor(u/365),f=o*400+i*100+l*4+c+(i!==4&&c!==4?1:0),[p,b]=li(f),h=n-Dn(p,b,1,1),g=2;n<Dn(p,b,3,1)?g=0:rn(b)&&(g=1);let y=Math.floor(((h+g)*12+373)/367),$=n-Dn(p,b,y,1)+1;return new Le(p,b,y,$)}toJulianDay(t){return Dn(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return Hx[rn(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return rn(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}function s0(e){return Ot(Date.now(),e)}function Wx(e){return p0(s0(e))}function l0(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function u0(e,t){return od(e)-od(t)}function od(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let es=null;function ql(){return es==null&&(es=new Intl.DateTimeFormat().resolvedOptions().timeZone),es}function Gx(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function Yx(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function lr(e){e=Je(e,new ot);let t=$o(e.era,e.year);return c0(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function c0(e,t,n,r,o,a,i){let s=new Date;return s.setUTCHours(r,o,a,i),s.setUTCFullYear(e,t-1,n),s.getTime()}function Gs(e,t){if(t==="UTC")return 0;if(e>0&&t===ql())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:a,minute:i,second:s}=d0(e,t);return c0(n,r,o,a,i,s,0)-Math.floor(e/1e3)*1e3}const ad=new Map;function d0(e,t){let n=ad.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"}),ad.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let a of r)a.type!=="literal"&&(o[a.type]=a.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 id=864e5;function qx(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>Zx(e,t,a))}function Zx(e,t,n){let r=d0(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Vt(e,t,n="compatible"){let r=un(e);if(t==="UTC")return lr(r);if(t===ql()&&n==="compatible"){r=Je(r,new ot);let l=new Date,u=$o(r.era,r.year);return l.setFullYear(u,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let o=lr(r),a=Gs(o-id,t),i=Gs(o+id,t),s=qx(r,t,o-a,o-i);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-a,o-i);case"compatible":case"later":return Math.max(o-a,o-i);case"reject":throw new RangeError("No such absolute time found")}}function f0(e,t,n="compatible"){return new Date(Vt(e,t,n))}function Ot(e,t){let n=Gs(e,t),r=new Date(e+n),o=r.getUTCFullYear(),a=r.getUTCMonth()+1,i=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new io(o,a,i,t,n,s,l,u,c)}function p0(e){return new Le(e.calendar,e.era,e.year,e.month,e.day)}function un(e,t){let n=0,r=0,o=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:a}=t),new La(e.calendar,e.era,e.year,e.month,e.day,n,r,o,a)}function sd(e){return new ci(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 b0(e,t,n){if(e instanceof io)return e.timeZone===t?e:Jx(e,t);let r=Vt(e,t,n);return Ot(r,t)}function Xx(e){let t=lr(e)-e.offset;return new Date(t)}function Jx(e,t){let n=lr(e)-e.offset;return Je(Ot(n,t),e.calendar)}const Fr=36e5;function ui(e,t){let n=e.copy(),r="hour"in n?v0(n,t):0;Ys(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,qs(n),h0(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,Qx(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 a,i;let l=(a=(i=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(i,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 Ys(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function qs(e){for(;e.month<1;)Ys(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Ys(e,1)}function Qx(e){for(;e.day<1;)e.month--,qs(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,qs(e)}function h0(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)),h0(e)}function Zl(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function m0(e,t){return ui(e,Zl(t))}function Xl(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),kn(n),n}function ao(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),g0(n),n}function e5(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Jo(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Jo(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Jo(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Jo(e.hour,24),t}function g0(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Jo(e,t){let n=e%t;return n<0&&(n+=t),n}function v0(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,e5(e)}function y0(e,t){let n=e.copy();return v0(n,t),n}function t5(e,t){return y0(e,Zl(t))}function Jl(e,t,n,r){let o=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Nt(l,n,0,s.length-1,r==null?void 0:r.round),o.era=s[l],kn(o);break}case"year":var a,i;!((a=(i=o.calendar).isInverseEra)===null||a===void 0)&&a.call(i,o)&&(n=-n),o.year=Nt(e.year,n,-1/0,9999,r==null?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=Nt(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":o.day=Nt(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),kn(o),o}function Ql(e,t,n,r){let o=e.copy();switch(t){case"hour":{let a=e.hour,i=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;i=l?12:0,s=l?23:11}o.hour=Nt(a,n,i,s,r==null?void 0:r.round);break}case"minute":o.minute=Nt(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":o.second=Nt(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":o.millisecond=Nt(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function Nt(e,t,n,r,o=!1){if(o){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function $0(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=ui(un(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Vt(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=Ot(n,e.timeZone);return Je(r,e.calendar)}function n5(e,t){return $0(e,Zl(t))}function r5(e,t,n,r){switch(t){case"hour":{let o=0,a=23;if((r==null?void 0:r.hourCycle)===12){let h=e.hour>=12;o=h?12:0,a=h?23:11}let i=un(e),s=Je(ao(i,{hour:o}),new ot),l=[Vt(s,e.timeZone,"earlier"),Vt(s,e.timeZone,"later")].filter(h=>Ot(h,e.timeZone).day===s.day)[0],u=Je(ao(i,{hour:a}),new ot),c=[Vt(u,e.timeZone,"earlier"),Vt(u,e.timeZone,"later")].filter(h=>Ot(h,e.timeZone).day===u.day).pop(),f=lr(e)-e.offset,p=Math.floor(f/Fr),b=f%Fr;return f=Nt(p,n,Math.floor(l/Fr),Math.floor(c/Fr),r==null?void 0:r.round)*Fr+b,Je(Ot(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Ql(e,t,n,r);case"era":case"year":case"month":case"day":{let o=Jl(un(e),t,n,r),a=Vt(o,e.timeZone);return Je(Ot(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function o5(e,t,n){let r=un(e),o=ao(Xl(r,t),t);if(o.compare(r)===0)return e;let a=Vt(o,e.timeZone,n);return Je(Ot(a,e.timeZone),e.calendar)}function x0(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 w0(e){let t=Je(e,new ot);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function C0(e){return`${w0(e)}T${x0(e)}`}function a5(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 i5(e){return`${C0(e)}${a5(e.offset)}[${e.timeZone}]`}function eu(e){let t=typeof e[0]=="object"?e.shift():new ot,n;if(typeof e[0]=="string")n=e.shift();else{let i=t.getEras();n=i[i.length-1]}let r=e.shift(),o=e.shift(),a=e.shift();return[t,n,r,o,a]}var s5=new WeakMap;class Le{copy(){return this.era?new Le(this.calendar,this.era,this.year,this.month,this.day):new Le(this.calendar,this.year,this.month,this.day)}add(t){return ui(this,t)}subtract(t){return m0(this,t)}set(t){return Xl(this,t)}cycle(t,n,r){return Jl(this,t,n,r)}toDate(t){return f0(this,t)}toString(){return w0(this)}compare(t){return l0(this,t)}constructor(...t){yo(this,s5,{writable:!0,value:void 0});let[n,r,o,a,i]=eu(t);this.calendar=n,this.era=r,this.year=o,this.month=a,this.day=i,kn(this)}}var l5=new WeakMap;class ci{copy(){return new ci(this.hour,this.minute,this.second,this.millisecond)}add(t){return y0(this,t)}subtract(t){return t5(this,t)}set(t){return ao(this,t)}cycle(t,n,r){return Ql(this,t,n,r)}toString(){return x0(this)}compare(t){return u0(this,t)}constructor(t=0,n=0,r=0,o=0){yo(this,l5,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=o,g0(this)}}var u5=new WeakMap;class La{copy(){return this.era?new La(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new La(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return ui(this,t)}subtract(t){return m0(this,t)}set(t){return Xl(ao(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Jl(this,t,n,r);default:return Ql(this,t,n,r)}}toDate(t,n){return f0(this,t,n)}toString(){return C0(this)}compare(t){let n=l0(this,t);return n===0?u0(this,un(t)):n}constructor(...t){yo(this,u5,{writable:!0,value:void 0});let[n,r,o,a,i]=eu(t);this.calendar=n,this.era=r,this.year=o,this.month=a,this.day=i,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 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 $0(this,t)}subtract(t){return n5(this,t)}set(t,n){return o5(this,t,n)}cycle(t,n,r){return r5(this,t,n,r)}toDate(){return Xx(this)}toString(){return i5(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-b0(t,this.timeZone).toDate().getTime()}constructor(...t){yo(this,c5,{writable:!0,value:void 0});let[n,r,o,a,i]=eu(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=o,this.month=a,this.day=i,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 or=[[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]],ha=[1867,1911,1925,1988,2018],tn=["meiji","taisho","showa","heisei","reiwa"];function ld(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 ts(e){let t=ha[tn.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Le(e.year+t,e.month,e.day)}class f5 extends ot{fromJulianDay(t){let n=super.fromJulianDay(t),r=ld(n);return new Le(this,tn[r],n.year-ha[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(ts(t))}balanceDate(t){let n=ts(t),r=ld(n);tn[r]!==t.era&&(t.era=tn[r],t.year=n.year-ha[r]),this.constrainDate(t)}constrainDate(t){let n=tn.indexOf(t.era),r=d5[n];if(r!=null){let[o,a,i]=r,s=o-ha[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(i,t.day)))}if(t.year===1&&n>=0){let[,o,a]=or[n];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(a,t.day))}}getEras(){return tn}getYearsInEra(t){let n=tn.indexOf(t.era),r=or[n],o=or[n+1];if(o==null)return 9999-r[0]+1;let a=o[0]-r[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(ts(t))}getMinimumMonthInYear(t){let n=ud(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=ud(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function ud(e){if(e.year===1){let t=tn.indexOf(e.era);return or[t]}}const D0=-543;class p5 extends ot{fromJulianDay(t){let n=super.fromJulianDay(t),r=$o(n.era,n.year);return new Le(this,r-D0,n.month,n.day)}toJulianDay(t){return super.toJulianDay(cd(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(cd(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function cd(e){let[t,n]=li(e.year+D0);return new Le(t,n,e.month,e.day)}const Va=1911;function E0(e){return e.era==="minguo"?e.year+Va:1-e.year+Va}function dd(e){let t=e-Va;return t>0?["minguo",t]:["before_minguo",1-t]}class b5 extends ot{fromJulianDay(t){let n=super.fromJulianDay(t),r=$o(n.era,n.year),[o,a]=dd(r);return new Le(this,o,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(fd(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=dd(E0(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(fd(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Va}constructor(...t){super(...t),this.identifier="roc"}}function fd(e){let[t,n]=li(E0(e));return new Le(t,n,e.month,e.day)}const h5=1948321;function m5(e){let t=e>0?e-474:e-473,n=jt(t,2820)+474;return jt((n+38)*31,128)<31}function Qo(e,t,n){let r=e>0?e-474:e-473,o=jt(r,2820)+474,a=t<=7?31*(t-1):30*(t-1)+6;return h5-1+1029983*Math.floor(r/2820)+365*(o-1)+Math.floor((31*o-5)/128)+a+n}class g5{fromJulianDay(t){let n=t-Qo(475,1,1),r=Math.floor(n/1029983),o=jt(n,1029983),a=o===1029982?2820:Math.floor((128*o+46878)/46751),i=474+2820*r+a;i<=0&&i--;let s=t-Qo(i,1,1)+1,l=s<=186?Math.ceil(s/31):Math.ceil((s-6)/31),u=t-Qo(i,l,1)+1;return new Le(this,i,l,u)}toJulianDay(t){return Qo(t.year,t.month,t.day)}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||m5(t.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const ns=78,pd=80;class v5 extends ot{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-ns,o=t-Dn(n.era,n.year,1,1),a;o<pd?(r--,a=rn(n.year-1)?31:30,o+=a+155+90+10):(a=rn(n.year)?31:30,o-=pd);let i,s;if(o<a)i=1,s=o+1;else{let l=o-a;l<155?(i=Math.floor(l/31)+2,s=l%31+1):(l-=155,i=Math.floor(l/30)+7,s=l%30+1)}return new Le(this,r,i,s)}toJulianDay(t){let n=t.year+ns,[r,o]=li(n),a,i;return rn(o)?(a=31,i=Dn(r,o,3,21)):(a=30,i=Dn(r,o,3,22)),t.month===1?i+t.day-1:(i+=a+Math.min(t.month-2,5)*31,t.month>=8&&(i+=(t.month-7)*30),i+=t.day-1,i)}getDaysInMonth(t){return t.month===1&&rn(t.year+ns)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Oa=1948440,bd=1948439,dt=1300,Wn=1600,y5=460322;function Na(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function P0(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+Na(t,r,1,1)))/29.5)+1),a=n-Na(t,r,o,1)+1;return new Le(e,r,o,a)}function hd(e){return(14+11*e)%30<11}class tu{fromJulianDay(t){return P0(this,Oa,t)}toJulianDay(t){return Na(Oa,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&hd(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return hd(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class $5 extends tu{fromJulianDay(t){return P0(this,bd,t)}toJulianDay(t){return Na(bd,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const x5="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Zs,ar;function ma(e){return y5+ar[e-dt]}function zr(e,t){let n=e-dt,r=1<<11-(t-1);return Zs[n]&r?30:29}function md(e,t){let n=ma(e);for(let r=1;r<t;r++)n+=zr(e,r);return n}function gd(e){return ar[e+1-dt]-ar[e-dt]}class w5 extends tu{fromJulianDay(t){let n=t-Oa,r=ma(dt),o=ma(Wn);if(n<r||n>o)return super.fromJulianDay(t);{let a=dt-1,i=1,s=1;for(;s>0;){a++,s=n-ma(a)+1;let l=gd(a);if(s===l){i=12;break}else if(s<l){let u=zr(a,i);for(i=1;s>u;)s-=u,i++,u=zr(a,i);break}}return new Le(this,a,i,n-md(a,i)+1)}}toJulianDay(t){return t.year<dt||t.year>Wn?super.toJulianDay(t):Oa+md(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<dt||t.year>Wn?super.getDaysInMonth(t):zr(t.year,t.month)}getDaysInYear(t){return t.year<dt||t.year>Wn?super.getDaysInYear(t):gd(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Zs||(Zs=new Uint16Array(Uint8Array.from(atob(x5),t=>t.charCodeAt(0)).buffer)),!ar){ar=new Uint32Array(Wn-dt+1);let t=0;for(let n=dt;n<=Wn;n++){ar[n-dt]=t;for(let r=1;r<=12;r++)t+=zr(n,r)}}}}const vd=347997,S0=1080,T0=24*S0,C5=29,D5=12*S0+793,E5=C5*T0+D5;function $n(e){return jt(e*7+1,19)<7}function ga(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return jt(3*(r+1),7)<3&&(r+=1),r}function P5(e){let t=ga(e-1),n=ga(e);return ga(e+1)-n===356?2:n-t===382?1:0}function Gr(e){return ga(e)+P5(e)}function A0(e){return Gr(e+1)-Gr(e)}function S5(e){let t=A0(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function ea(e,t){if(t>=6&&!$n(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=S5(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?$n(e)?30:0:30}class T5{fromJulianDay(t){let n=t-vd,r=n*T0/E5,o=Math.floor((19*r+234)/235)+1,a=Gr(o),i=Math.floor(n-a);for(;i<1;)o--,a=Gr(o),i=Math.floor(n-a);let s=1,l=0;for(;l<i;)l+=ea(o,s),s++;s--,l-=ea(o,s);let u=i-l;return new Le(this,o,s,u)}toJulianDay(t){let n=Gr(t.year);for(let r=1;r<t.month;r++)n+=ea(t.year,r);return n+t.day+vd}getDaysInMonth(t){return ea(t.year,t.month)}getMonthsInYear(t){return $n(t.year)?13:12}getDaysInYear(t){return A0(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 Xs=1723856,yd=1824665,Js=5500;function Ka(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function nu(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Ka(e,n,1,1))/30),o=t+1-Ka(e,n,r,1);return[n,r,o]}function M0(e){return Math.floor(e%4/3)}function k0(e,t){return t%13!==0?30:M0(e)+5}class ru{fromJulianDay(t){let[n,r,o]=nu(Xs,t),a="AM";return n<=0&&(a="AA",n+=Js),new Le(this,a,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Js),Ka(Xs,n,t.month,t.day)}getDaysInMonth(t){return k0(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+M0(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class A5 extends ru{fromJulianDay(t){let[n,r,o]=nu(Xs,t);return n+=Js,new Le(this,"AA",n,r,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class M5 extends ru{fromJulianDay(t){let[n,r,o]=nu(yd,t),a="CE";return n<=0&&(a="BCE",n=1-n),new Le(this,a,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Ka(yd,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),k0(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function R0(e){switch(e){case"buddhist":return new p5;case"ethiopic":return new ru;case"ethioaa":return new A5;case"coptic":return new M5;case"hebrew":return new T5;case"indian":return new v5;case"islamic-civil":return new tu;case"islamic-tbla":return new $5;case"islamic-umalqura":return new w5;case"japanese":return new f5;case"persian":return new g5;case"roc":return new b5;case"gregory":default:return new ot}}let rs=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(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return F5()&&(this.resolvedHourCycle||(this.resolvedHourCycle=B5(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=F0(t,n),this.options=n}}const k5={true:{ja:"h11"},false:{}};function F0(e,t={}){if(typeof t.hour12=="boolean"&&R5()){t={...t};let o=k5[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=o??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((o,a)=>o[0]<a[0]?-1:1).join():"");if(rs.has(n))return rs.get(n);let r=new Intl.DateTimeFormat(e,t);return rs.set(n,r),r}let os=null;function R5(){return os==null&&(os=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),os}let as=null;function F5(){return as==null&&(as=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),as}function B5(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=F0(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.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 is=new Map,Qs=!1;try{Qs=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ja=!1;try{ja=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const B0={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class _a{format(t){let n="";if(!Qs&&this.options.signDisplay!=null?n=L5(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ja){var r;let{unit:o,unitDisplay:a="short",locale:i}=this.resolvedOptions();if(!o)return n;let s=(r=B0[o])===null||r===void 0?void 0:r[a];n+=s[i]||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(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Qs&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ja&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=I5(t,n),this.options=n}}function I5(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ja){var r;let{unit:i,unitDisplay:s="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=B0[i])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((i,s)=>i[0]<s[0]?-1:1).join():"");if(is.has(o))return is.get(o);let a=new Intl.NumberFormat(e,t);return is.set(o,a),a}function L5(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),a=e.format(n),i=o.replace(a,"").replace(/\u200e|\u061C/,"");return[...i].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(a,"!!!").replace(i,"+").replace("!!!",a)}else return e.format(n)}}const V5=new RegExp("^.*\\(.*\\).*$"),O5=["latn","arab","hanidec"];class ou{parse(t){return ss(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return ss(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return ss(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const $d=new Map;function ss(e,t,n){let r=xd(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of O5)if(o!==r.options.numberingSystem){let a=xd(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(a.isValidPartialNumber(n))return a}}return r}function xd(e,t){let n=e+(t?Object.entries(t).sort((o,a)=>o[0]<a[0]?-1:1).join():""),r=$d.get(n);return r||(r=new N5(e,t),$d.set(n,r)),r}class N5{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=ta(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 a=n.indexOf(".");a===-1&&(a=n.length),n=n.replace(".",""),a-2===0?n=`0.${n}`:a-2===-1?n=`0.0${n}`:a-2===-2?n="0.00":n=`${n.slice(0,a-2)}.${n.slice(a-2)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(this.options.minimumFractionDigits+2,20),maximumFractionDigits:Math.min(this.options.maximumFractionDigits+2,20)};return new ou(this.locale,o).parse(new _a(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&V5.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=ta(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=ta(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=ta(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 wd=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),K5=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function j5(e,t,n,r){var o,a,i,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),u=l.formatToParts(-10000.111),c=l.formatToParts(10000.111),f=K5.map(F=>l.formatToParts(F));var p;let b=(p=(o=u.find(F=>F.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&p!==void 0?p:"-",h=(a=c.find(F=>F.type==="plusSign"))===null||a===void 0?void 0:a.value;!h&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(h="+");let y=(i=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(F=>F.type==="decimal"))===null||i===void 0?void 0:i.value,$=(s=u.find(F=>F.type==="group"))===null||s===void 0?void 0:s.value,C=u.filter(F=>!wd.has(F.type)).map(F=>Cd(F.value)),x=f.flatMap(F=>F.filter(k=>!wd.has(k.type)).map(k=>Cd(k.value))),E=[...new Set([...C,...x])].sort((F,k)=>k.length-F.length),P=E.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${E.join("|")}|[\\p{White_Space}]`,"gu"),M=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),K=new Map(M.map((F,k)=>[F,k])),v=new RegExp(`[${M.join("")}]`,"g");return{minusSign:b,plusSign:h,decimal:y,group:$,literals:P,numeral:v,index:F=>String(K.get(F))}}function ta(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Cd(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const _5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),z5=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function U5(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 _5.has(n.script)}let t=e.split("-")[0];return z5.has(t)}const H5=Symbol.for("react-aria.i18n.locale");function I0(){let e=typeof window<"u"&&window[H5]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:U5(e)?"rtl":"ltr"}}let el=I0(),Ur=new Set;function Dd(){el=I0();for(let e of Ur)e(el)}function W5(){let e=kt(),[t,n]=d.useState(el);return d.useEffect(()=>(Ur.size===0&&window.addEventListener("languagechange",Dd),Ur.add(n),()=>{Ur.delete(n),Ur.size===0&&window.removeEventListener("languagechange",Dd)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const G5=A.default.createContext(null);function Ke(){let e=W5();return d.useContext(G5)||e}const Ed=new WeakMap;function Y5(e){let t=Ed.get(e);return t||(t=new Bn(e),Ed.set(e,t)),t}function L0(e,t){return t&&Bn.getGlobalDictionaryForPackage(t)||Y5(e)}function gr(e,t){let{locale:n}=Ke(),r=L0(e,t);return d.useMemo(()=>new a0(n,r),[n,r])}function na(e){e=nx(e??{},q5);let{locale:t}=Ke();return d.useMemo(()=>new Yr(t,e),[t,e])}function q5(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 za(e={}){let{locale:t}=Ke();return d.useMemo(()=>new _a(t,e),[t,e])}let ls=new Map;function au(e){let{locale:t}=Ke(),n=t+(e?Object.entries(e).sort((o,a)=>o[0]<a[0]?-1:1).join():"");if(ls.has(n))return ls.get(n);let r=new Intl.Collator(t,e);return ls.set(n,r),r}function V0(e){let t=au({usage:"search",...e}),n=d.useCallback((a,i)=>i.length===0?!0:(a=a.normalize("NFC"),i=i.normalize("NFC"),t.compare(a.slice(0,i.length),i)===0),[t]),r=d.useCallback((a,i)=>i.length===0?!0:(a=a.normalize("NFC"),i=i.normalize("NFC"),t.compare(a.slice(-i.length),i)===0),[t]),o=d.useCallback((a,i)=>{if(i.length===0)return!0;a=a.normalize("NFC"),i=i.normalize("NFC");let s=0,l=i.length;for(;s+l<=a.length;s++){let u=a.slice(s,s+l);if(t.compare(i,u)===0)return!0}return!1},[t]);return d.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}var O0={};O0={dismiss:"تجاهل"};var N0={};N0={dismiss:"Отхвърляне"};var K0={};K0={dismiss:"Odstranit"};var j0={};j0={dismiss:"Luk"};var _0={};_0={dismiss:"Schließen"};var z0={};z0={dismiss:"Απόρριψη"};var U0={};U0={dismiss:"Dismiss"};var H0={};H0={dismiss:"Descartar"};var W0={};W0={dismiss:"Lõpeta"};var G0={};G0={dismiss:"Hylkää"};var Y0={};Y0={dismiss:"Rejeter"};var q0={};q0={dismiss:"התעלם"};var Z0={};Z0={dismiss:"Odbaci"};var X0={};X0={dismiss:"Elutasítás"};var J0={};J0={dismiss:"Ignora"};var Q0={};Q0={dismiss:"閉じる"};var eb={};eb={dismiss:"무시"};var tb={};tb={dismiss:"Atmesti"};var nb={};nb={dismiss:"Nerādīt"};var rb={};rb={dismiss:"Lukk"};var ob={};ob={dismiss:"Negeren"};var ab={};ab={dismiss:"Zignoruj"};var ib={};ib={dismiss:"Descartar"};var sb={};sb={dismiss:"Dispensar"};var lb={};lb={dismiss:"Revocare"};var ub={};ub={dismiss:"Пропустить"};var cb={};cb={dismiss:"Zrušiť"};var db={};db={dismiss:"Opusti"};var fb={};fb={dismiss:"Odbaci"};var pb={};pb={dismiss:"Avvisa"};var bb={};bb={dismiss:"Kapat"};var hb={};hb={dismiss:"Скасувати"};var mb={};mb={dismiss:"取消"};var gb={};gb={dismiss:"關閉"};const Pd={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 Z5(e={}){let{style:t,isFocusable:n}=e,[r,o]=d.useState(!1),{focusWithinProps:a}=hr({isDisabled:!n,onFocusWithinChange:s=>o(s)}),i=d.useMemo(()=>r?t:t?{...Pd,...t}:Pd,[r]);return{visuallyHiddenProps:{...a,style:i}}}function di(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...a}=e,{visuallyHiddenProps:i}=Z5(e);return A.default.createElement(n,Q(a,i),t)}function X5(e){return e&&e.__esModule?e.default:e}const Jn={top:"top",bottom:"top",left:"left",right:"left"},Ua={top:"bottom",bottom:"top",left:"right",right:"left"},J5={top:"left",left:"top"},tl={top:"height",left:"width"},vb={width:"totalWidth",height:"totalHeight"},ra={};let Qe=typeof document<"u"&&window.visualViewport;function Sd(e){let t=0,n=0,r=0,o=0,a=0,i=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 u;t=(u=Qe==null?void 0:Qe.width)!==null&&u!==void 0?u:r;var c;n=(c=Qe==null?void 0:Qe.height)!==null&&c!==void 0?c:o,s.top=f.scrollTop||e.scrollTop,s.left=f.scrollLeft||e.scrollLeft,Qe&&(a=Qe.offsetTop,i=Qe.offsetLeft)}else({width:t,height:n,top:a,left:i}=ir(e)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,o=n;return Kl()&&(e.tagName==="BODY"||e.tagName==="HTML")&&l&&(s.top=0,s.left=0,a=Qe.pageTop,i=Qe.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:s,top:a,left:i}}function Q5(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Td(e,t,n,r,o,a,i){let s=o.scroll[e],l=r[tl[e]],u=r.scroll[Jn[e]]+a,c=l+r.scroll[Jn[e]]-a,f=t-s+i[e]-r[Jn[e]],p=t-s+n+i[e]-r[Jn[e]];return f<u?u-f:p>c?Math.max(c-p,u-f):0}function e2(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 Ad(e){if(ra[e])return ra[e];let[t,n]=e.split(" "),r=Jn[t]||"right",o=J5[r];Jn[n]||(n="center");let a=tl[r],i=tl[o];return ra[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:a,crossSize:i},ra[e]}function us(e,t,n,r,o,a,i,s,l,u){let{placement:c,crossPlacement:f,axis:p,crossAxis:b,size:h,crossSize:g}=r,y={};y[b]=e[b],f==="center"?y[b]+=(e[g]-n[g])/2:f!==b&&(y[b]+=e[g]-n[g]),y[b]+=a;const $=e[b]-n[g]+l+u,C=e[b]+e[g]-l-u;if(y[b]=ht(y[b],$,C),c===p){const x=s?i[h]:t[vb[h]];y[Ua[p]]=Math.floor(x-e[p]+o)}else y[p]=Math.floor(e[p]+e[h]+o);return y}function t2(e,t,n,r,o,a,i,s){const l=r?n.height:t[vb.height];let u=e.top!=null?n.top+e.top:n.top+(l-e.bottom-i),c=s!=="top"?Math.max(0,t.height+t.top+t.scroll.top-u-(o.top+o.bottom+a)):Math.max(0,u+i-(t.top+t.scroll.top)-(o.top+o.bottom+a));return Math.min(t.height-a*2,c)}function Md(e,t,n,r,o,a){let{placement:i,axis:s,size:l}=a;return i===s?Math.max(0,n[s]-e[s]-e.scroll[s]+t[s]-r[s]-r[Ua[s]]-o):Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-r[s]-r[Ua[s]]-o)}function n2(e,t,n,r,o,a,i,s,l,u,c,f,p,b,h,g){let y=Ad(e),{size:$,crossAxis:C,crossSize:x,placement:E,crossPlacement:P}=y,M=us(t,s,n,y,c,f,u,p,h,g),K=c,v=Md(s,u,t,o,a+c,y);if(i&&r[$]>v){let Y=Ad(`${Ua[E]} ${P}`),U=us(t,s,n,Y,c,f,u,p,h,g);Md(s,u,t,o,a+c,Y)>v&&(y=Y,M=U,K=c)}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=Td(C,M[C],n[x],s,l,a,u);M[C]+=F;let k=t2(M,s,u,p,o,a,n.height,V);b&&b<k&&(k=b),n.height=Math.min(n.height,k),M=us(t,s,n,y,K,f,u,p,h,g),F=Td(C,M[C],n[x],s,l,a,u),M[C]+=F;let I={},T=t[C]+.5*t[x]-n[C];const L=h/2+g,j=n[x]-h/2-g,O=t[C]-n[C]+h/2,S=t[C]+t[x]-n[C]-h/2,W=ht(T,O,S);return I[C]=ht(W,L,j),{position:M,maxHeight:k,arrowOffsetLeft:I.left,arrowOffsetTop:I.top,placement:y.placement}}function r2(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:a,shouldFlip:i,boundaryElement:s,offset:l,crossOffset:u,maxHeight:c,arrowSize:f=0,arrowBoundaryOffset:p=0}=e,b=r instanceof HTMLElement?o2(r):document.documentElement,h=b===document.documentElement;const g=window.getComputedStyle(b).position;let y=!!g&&g!=="static",$=h?ir(n):kd(n,b);if(!h){let{marginTop:v,marginLeft:V}=window.getComputedStyle(n);$.top+=parseInt(v,10)||0,$.left+=parseInt(V,10)||0}let C=ir(r),x=e2(r);C.width+=x.left+x.right,C.height+=x.top+x.bottom;let E=Q5(o),P=Sd(s),M=Sd(b),K=s.tagName==="BODY"?ir(b):kd(b,s);return b.tagName==="HTML"&&s.tagName==="BODY"&&(M.scroll.top=0,M.scroll.left=0),n2(t,$,C,E,x,a,i,P,M,K,l,u,y,c,f,p)}function ir(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:i,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+a-s,left:n+i-l,width:r,height:o}}function kd(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:o,left:a,width:i,height:s}=e.getBoundingClientRect();r={top:o,left:a,width:i,height:s}}else{r=ir(e);let o=ir(t),a=window.getComputedStyle(t);o.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(a.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 o2(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Rd(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Rd(t);)t=t.parentElement;return t||document.documentElement}function Rd(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 yb=new WeakMap;function a2(e){let{triggerRef:t,isOpen:n,onClose:r}=e;d.useEffect(()=>{if(!n||r===null)return;let o=a=>{let i=a.target;if(!t.current||i instanceof Node&&!i.contains(t.current))return;let s=r||yb.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let ke=typeof document<"u"&&window.visualViewport;function $b(e){let{direction:t}=Ke(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:a=o,placement:i="bottom",containerPadding:s=12,shouldFlip:l=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:b=!0,onClose:h,maxHeight:g,arrowBoundaryOffset:y=0}=e,[$,C]=d.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),x=[p,i,o.current,r.current,a.current,s,l,u,c,f,b,t,g,y,n],E=d.useRef(ke==null?void 0:ke.scale);d.useEffect(()=>{b&&(E.current=ke==null?void 0:ke.scale)},[b]);let P=d.useCallback(()=>{if(p===!1||!b||!o.current||!r.current||!a.current||!u||(ke==null?void 0:ke.scale)!==E.current)return;!g&&o.current&&(o.current.style.maxHeight="none");let v=r2({placement:s2(i,t),overlayNode:o.current,targetNode:r.current,scrollNode:a.current,padding:s,shouldFlip:l,boundaryElement:u,offset:c,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)},x);ge(P,x),i2(P),_l({ref:o,onResize:P});let M=d.useRef(!1);ge(()=>{let v,V=()=>{M.current=!0,clearTimeout(v),v=setTimeout(()=>{M.current=!1},500),P()},F=()=>{M.current&&V()};return ke==null||ke.addEventListener("resize",V),ke==null||ke.addEventListener("scroll",F),()=>{ke==null||ke.removeEventListener("resize",V),ke==null||ke.removeEventListener("scroll",F)}},[P]);let K=d.useCallback(()=>{M.current||h()},[h,M]);return a2({triggerRef:r,isOpen:b,onClose:h&&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 i2(e){ge(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function s2(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Bt=[];function iu(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:a=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:s}=e;d.useEffect(()=>(o&&Bt.push(t),()=>{let h=Bt.indexOf(t);h>=0&&Bt.splice(h,1)}),[o,t]);let l=()=>{Bt[Bt.length-1]===t&&n&&n()},u=h=>{(!s||s(h.target))&&Bt[Bt.length-1]===t&&(h.stopPropagation(),h.preventDefault())},c=h=>{(!s||s(h.target))&&(Bt[Bt.length-1]===t&&(h.stopPropagation(),h.preventDefault()),l())},f=h=>{h.key==="Escape"&&!i&&(h.stopPropagation(),h.preventDefault(),l())};Jp({ref:t,onInteractOutside:a&&o?c:null,onInteractOutsideStart:u});let{focusWithinProps:p}=hr({isDisabled:!r,onBlurWithin:h=>{!h.relatedTarget||kx(h.relatedTarget)||(!s||s(h.relatedTarget))&&n()}}),b=h=>{h.target===h.currentTarget&&h.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:b}}}function l2(e,t,n){let{type:r}=e,{isOpen:o}=t;d.useEffect(()=>{n&&n.current&&yb.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let i=He();return{triggerProps:{"aria-haspopup":a,"aria-expanded":o,"aria-controls":o?i:null,onPress:t.toggle},overlayProps:{id:i}}}const cs=typeof document<"u"&&window.visualViewport,u2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let oa=0,ds;function xb(e={}){let{isDisabled:t}=e;ge(()=>{if(!t)return oa++,oa===1&&(pr()?ds=d2():ds=c2()),()=>{oa--,oa===0&&ds()}},[t])}function c2(){return sn(Qn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qn(document.documentElement,"overflow","hidden"))}function d2(){let e,t,n=u=>{e=no(u.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Qn(e,"overscrollBehavior","contain"))},r=u=>{if(!e||e===document.documentElement||e===document.body){u.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&u.preventDefault()},o=u=>{let c=u.target;Bd(c)&&c!==document.activeElement&&(u.preventDefault(),s(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},a=u=>{let c=u.target;Bd(c)&&(s(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",cs&&(cs.height<window.innerHeight?requestAnimationFrame(()=>{Fd(c)}):cs.addEventListener("resize",()=>Fd(c),{once:!0}))}))},i=null,s=()=>{if(i)return;let u=()=>{window.scrollTo(0,0)},c=window.pageXOffset,f=window.pageYOffset;i=sn(Br(window,"scroll",u),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=sn(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",a,!0));return()=>{t==null||t(),i==null||i(),l()}}function Qn(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 Fd(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=no(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 Bd(e){return e instanceof HTMLInputElement&&!u2.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const nl=A.default.createContext(null);function f2(e){let{children:t}=e,n=d.useContext(nl),[r,o]=d.useState(0),a=d.useMemo(()=>({parent:n,modalCount:r,addModal(){o(i=>i+1),n&&n.addModal()},removeModal(){o(i=>i-1),n&&n.removeModal()}}),[n,r]);return A.default.createElement(nl.Provider,{value:a},t)}function p2(){let e=d.useContext(nl);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function b2(e){let{modalProviderProps:t}=p2();return A.default.createElement("div",{"data-overlay-container":!0,...e,...t})}function h2(e){return A.default.createElement(f2,null,A.default.createElement(b2,e))}function Id(e){let t=kt(),{portalContainer:n=t?null:document.body,...r}=e;if(A.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=A.default.createElement(h2,r);return mo.default.createPortal(o,n)}var wb={};wb={"ar-AE":O0,"bg-BG":N0,"cs-CZ":K0,"da-DK":j0,"de-DE":_0,"el-GR":z0,"en-US":U0,"es-ES":H0,"et-EE":W0,"fi-FI":G0,"fr-FR":Y0,"he-IL":q0,"hr-HR":Z0,"hu-HU":X0,"it-IT":J0,"ja-JP":Q0,"ko-KR":eb,"lt-LT":tb,"lv-LV":nb,"nb-NO":rb,"nl-NL":ob,"pl-PL":ab,"pt-BR":ib,"pt-PT":sb,"ro-RO":lb,"ru-RU":ub,"sk-SK":cb,"sl-SI":db,"sr-SP":fb,"sv-SE":pb,"tr-TR":bb,"uk-UA":hb,"zh-CN":mb,"zh-TW":gb};function rl(e){let{onDismiss:t,...n}=e,r=gr(X5(wb),"@react-aria/overlays"),o=Tn(n,r.format("dismiss")),a=()=>{t&&t()};return A.default.createElement(di,null,A.default.createElement("button",{...o,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}let Ir=new WeakMap,it=[];function su(e,t=document.body){let n=new Set(e),r=new Set,o=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let u=p=>{if(n.has(p)||r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let b of n)if(p.contains(b))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),f=u(l);if(f===NodeFilter.FILTER_ACCEPT&&a(l),f!==NodeFilter.FILTER_REJECT){let p=c.nextNode();for(;p!=null;)a(p),p=c.nextNode()}},a=l=>{var u;let c=(u=Ir.get(l))!==null&&u!==void 0?u:0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),Ir.set(l,c+1))};it.length&&it[it.length-1].disconnect(),o(t);let i=new MutationObserver(l=>{for(let u of l)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&o(c)}});i.observe(t,{childList:!0,subtree:!0});let s={observe(){i.observe(t,{childList:!0,subtree:!0})},disconnect(){i.disconnect()}};return it.push(s),()=>{i.disconnect();for(let l of r){let u=Ir.get(l);u===1?(l.removeAttribute("aria-hidden"),Ir.delete(l)):Ir.set(l,u-1)}s===it[it.length-1]?(it.pop(),it.length&&it[it.length-1].observe()):it.splice(it.indexOf(s),1)}}function m2(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:i,...s}=e,{overlayProps:l,underlayProps:u}=iu({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:i},r),{overlayProps:c,arrowProps:f,placement:p}=$b({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return xb({isDisabled:o||!t.isOpen}),ge(()=>{if(t.isOpen&&!o&&r.current)return su([r.current])},[o,t.isOpen,r]),{popoverProps:Q(l,c),arrowProps:f,underlayProps:u,placement:p}}const Cb=A.default.createContext(null);function Db(e){let t=kt(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,a]=d.useState(!1),i=d.useMemo(()=>({contain:o,setContain:a}),[o,a]);if(!n)return null;let s=e.children;return e.disableFocusManagement||(s=A.default.createElement(Wl,{restoreFocus:!0,contain:o&&!r},s)),s=A.default.createElement(Cb.Provider,{value:i},A.default.createElement(px,null,s)),mo.default.createPortal(s,n)}function Eb(){let e=d.useContext(Cb),t=e==null?void 0:e.setContain;ge(()=>{t==null||t(!0)},[t])}function g2(e,t,n){let{overlayProps:r,underlayProps:o}=iu({...e,isOpen:t.isOpen,onClose:t.close},n);return xb({isDisabled:!t.isOpen}),Eb(),d.useEffect(()=>{if(t.isOpen)return su([n.current])},[t.isOpen,n]),{modalProps:Q(r),underlayProps:o}}function fi(e){return d.forwardRef(e)}var Pb=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,a)=>a in e?{...o,[a]:e[a]}:o,{});return n?[Object.keys(e).filter(a=>!t.includes(a)).reduce((a,i)=>({...a,[i]:e[i]}),{}),r]:[e,r]},Sb=fi((e,t)=>{const{Component:n,ImgComponent:r,src:o,icon:a=B.jsx(g$,{}),alt:i,classNames:s,slots:l,name:u,showFallback:c,fallback:f,getInitials:p,getAvatarProps:b,getImageProps:h}=Kx({...e,ref:t}),g=d.useMemo(()=>!c&&o?null:f?B.jsx("div",{"aria-label":i,className:l.fallback({class:s==null?void 0:s.fallback}),role:"img",children:f}):u?B.jsx("span",{"aria-label":i,className:l.name({class:s==null?void 0:s.name}),role:"img",children:p(u)}):B.jsx("span",{"aria-label":i,className:l.icon({class:s==null?void 0:s.icon}),role:"img",children:a}),[c,o,f,u,s]);return B.jsxs(n,{...b(),children:[o&&B.jsx(r,{...h(),alt:i}),g]})});Sb.displayName="NextUI.Avatar";var Tb=Sb;function v2(e={}){const{as:t,ref:n,max:r=5,total:o,size:a,color:i,radius:s,children:l,isBordered:u,isDisabled:c,isGrid:f,renderCount:p,className:b,...h}=e,g=Fs(n),y=t||"div",$=d.useMemo(()=>({size:a,color:i,radius:s,isGrid:f,isBordered:u,isDisabled:c}),[a,i,s,f,u,c]),C=d.useMemo(()=>E3({className:b,isGrid:f}),[b,f]),x=I$(l),E=r?x.slice(0,r):x,P=o||(r!=null?x.length-r:-1),M=E.map((v,V)=>{const F=V===0,k=V===E.length-1,I={className:eo(F?"ms-0":f?"":"-ms-2",k&&P<1?"hover:-translate-x-0":"")};return d.cloneElement(v,C$(I))});return{Component:y,context:$,remainingCount:P,clones:M,renderCount:p,getAvatarGroupProps:()=>({ref:g,className:C,role:"group",...h})}}var Ab=fi((e,t)=>{const{Component:n,clones:r,context:o,remainingCount:a,renderCount:i=l=>B.jsx(Tb,{className:"hover:-translate-x-0",name:`+${l}`}),getAvatarGroupProps:s}=v2({...e,ref:t});return B.jsx(n,{...s(),children:B.jsxs(L$,{value:o,children:[r,a>0&&i(a)]})})});Ab.displayName="NextUI.AvatarGroup";var y2=Ab;const w={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 Mb(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]=Mb(n[r],o)):n[r]=o}),n}const $2=G.default.div`
|
|
40
40
|
z-index: 1;
|
|
41
41
|
|
|
42
42
|
&:not(:first-child) {
|
|
@@ -48,7 +48,7 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
48
48
|
transform: ${({isInGroup:e,isGrid:t})=>!t&&e?"translateY(-0.8rem)":"none"};
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
`,
|
|
51
|
+
`,x2=G.default(Tb)`
|
|
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])??w.colors.slate[100]}};
|
|
53
53
|
display: flex;
|
|
54
54
|
align-items: center;
|
|
@@ -95,31 +95,31 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
95
95
|
overflow: hidden;
|
|
96
96
|
text-align: center;
|
|
97
97
|
}
|
|
98
|
-
`;function
|
|
98
|
+
`;function w2({icon:e,...t}){const n=Dp();return B.jsx($2,{isInGroup:!!n,isGrid:!!(n!=null&&n.isGrid),children:B.jsx(x2,{...t,icon:e||B.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:B.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 C2=G.default(y2)`
|
|
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 x2({children:e,isGrid:t,renderCount:n}){return F.jsx($2,{isGrid:t,max:0,renderCount:n??(()=>{}),children:e})}const Tb=u.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),da=u.createContext({}),fa=u.createContext(null),pa=typeof document<"u",au=pa?u.useLayoutEffect:u.useEffect,Ab=u.createContext({strict:!1}),su=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),w2="framerAppearId",Mb="data-"+su(w2),kb={skipAnimations:!1,useManualTiming:!1};class Bd{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 C2(e){let t=new Bd,n=new Bd,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,c=!1,d=!1)=>{const f=d&&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 d=t.order[c];a.has(d)&&(s.schedule(d),e()),d(l)}o=!1,i&&(i=!1,s.process(l))}};return s}const ri=["prepare","read","update","preRender","render","postRender"],D2=40;function Rb(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=ri.reduce((f,p)=>(f[p]=C2(()=>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,D2),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 b=i[p];return f[p]=(h,g=!1,y=!1)=>(n||l(),b.schedule(h,g,y)),f},{}),cancel:f=>ri.forEach(p=>i[p].cancel(f)),state:o,steps:i}}const{schedule:lu,cancel:gA}=Rb(queueMicrotask,!1);function E2(e,t,n,r){const{visualElement:o}=u.useContext(da),i=u.useContext(Ab),a=u.useContext(fa),s=u.useContext(Tb).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 c=l.current;u.useInsertionEffect(()=>{c&&c.update(n,a)});const d=u.useRef(!!(n[Mb]&&!window.HandoffComplete));return au(()=>{c&&(lu.postRender(c.render),d.current&&c.animationState&&c.animationState.animateChanges())}),u.useEffect(()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),c}function er(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function P2(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 so(e){return typeof e=="string"||Array.isArray(e)}function ba(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const uu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cu=["initial",...uu];function ha(e){return ba(e.animate)||cu.some(t=>so(e[t]))}function Fb(e){return!!(ha(e)||e.variants)}function S2(e,t){if(ha(e)){const{initial:n,animate:r}=e;return{initial:n===!1||so(n)?n:void 0,animate:so(r)?r:void 0}}return e.inherit!==!1?t:{}}function T2(e){const{initial:t,animate:n}=S2(e,u.useContext(da));return u.useMemo(()=>({initial:t,animate:n}),[Id(t),Id(n)])}function Id(e){return Array.isArray(e)?e.join(" "):e}const Ld={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"]},lo={};for(const e in Ld)lo[e]={isEnabled:t=>Ld[e].some(n=>!!t[n])};function A2(e){for(const t in e)lo[t]={...lo[t],...e[t]}}const du=u.createContext({}),Bb=u.createContext({}),M2=Symbol.for("motionComponentSymbol");function k2({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&A2(e);function i(s,l){let c;const d={...u.useContext(Tb),...s,layoutId:R2(s)},{isStatic:f}=d,p=T2(s),b=r(s,f);if(!f&&pa){p.visualElement=E2(o,b,d,t);const h=u.useContext(Bb),g=u.useContext(Ab).strict;p.visualElement&&(c=p.visualElement.loadFeatures(d,g,e,h))}return Le.createElement(da.Provider,{value:p},c&&p.visualElement?Le.createElement(c,{visualElement:p.visualElement,...d}):null,n(o,s,P2(b,p.visualElement,l),b,f,p.visualElement))}const a=u.forwardRef(i);return a[M2]=o,a}function R2({layoutId:e}){const t=u.useContext(du).id;return t&&e!==void 0?t+"-"+e:e}function F2(e){function t(r,o={}){return k2(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 B2=["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 fu(e){return typeof e!="string"||e.includes("-")?!1:!!(B2.indexOf(e)>-1||/[A-Z]/.test(e))}const zi={};function I2(e){Object.assign(zi,e)}const yo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],In=new Set(yo);function Ib(e,{layout:t,layoutId:n}){return In.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!zi[e]||e==="opacity")}const tt=e=>!!(e&&e.getVelocity),L2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},V2=yo.length;function O2(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a<V2;a++){const s=yo[a];if(e[s]!==void 0){const l=L2[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 Lb=e=>t=>typeof t=="string"&&t.startsWith(e),Vb=Lb("--"),N2=Lb("var(--"),Ui=e=>N2(e)&&K2.test(e),K2=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,j2=(e,t)=>t&&typeof e=="number"?t.transform(e):e,cn=(e,t,n)=>n>t?t:n<e?e:n,vr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qr={...vr,transform:e=>cn(0,1,e)},oi={...vr,default:1},Zr=e=>Math.round(e*1e5)/1e5,pu=/(-)?([\d]*\.?[\d])+/g,_2=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,z2=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;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}`}),en=xo("deg"),At=xo("%"),ie=xo("px"),U2=xo("vh"),H2=xo("vw"),Vd={...At,parse:e=>At.parse(e)/100,transform:e=>At.transform(e*100)},Od={...vr,transform:Math.round},Ob={borderWidth:ie,borderTopWidth:ie,borderRightWidth:ie,borderBottomWidth:ie,borderLeftWidth:ie,borderRadius:ie,radius:ie,borderTopLeftRadius:ie,borderTopRightRadius:ie,borderBottomRightRadius:ie,borderBottomLeftRadius:ie,width:ie,maxWidth:ie,height:ie,maxHeight:ie,size:ie,top:ie,right:ie,bottom:ie,left:ie,padding:ie,paddingTop:ie,paddingRight:ie,paddingBottom:ie,paddingLeft:ie,margin:ie,marginTop:ie,marginRight:ie,marginBottom:ie,marginLeft:ie,rotate:en,rotateX:en,rotateY:en,rotateZ:en,scale:oi,scaleX:oi,scaleY:oi,scaleZ:oi,skew:en,skewX:en,skewY:en,distance:ie,translateX:ie,translateY:ie,translateZ:ie,x:ie,y:ie,z:ie,perspective:ie,transformPerspective:ie,opacity:qr,originX:Vd,originY:Vd,originZ:ie,zIndex:Od,fillOpacity:qr,strokeOpacity:qr,numOctaves:Od};function bu(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,d=!0;for(const f in t){const p=t[f];if(Vb(f)){i[f]=p;continue}const b=Ob[f],h=j2(p,b);if(In.has(f)){if(l=!0,a[f]=h,!d)continue;p!==(b.default||0)&&(d=!1)}else f.startsWith("origin")?(c=!0,s[f]=h):o[f]=h}if(t.transform||(l||r?o.transform=O2(e.transform,n,d,r):o.transform&&(o.transform="none")),c){const{originX:f="50%",originY:p="50%",originZ:b=0}=s;o.transformOrigin=`${f} ${p} ${b}`}}const hu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Nb(e,t,n){for(const r in t)!tt(t[r])&&!Ib(r,n)&&(e[r]=t[r])}function W2({transformTemplate:e},t,n){return u.useMemo(()=>{const r=hu();return bu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function G2(e,t,n){const r=e.style||{},o={};return Nb(o,r,e),Object.assign(o,W2(e,t,n)),o}function Y2(e,t,n){const r={},o=G2(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 q2=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 Hi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||q2.has(e)}let Kb=e=>!Hi(e);function Z2(e){e&&(Kb=t=>t.startsWith("on")?!Hi(t):e(t))}try{Z2(require("@emotion/is-prop-valid").default)}catch{}function X2(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Kb(o)||n===!0&&Hi(o)||!t&&!Hi(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Nd(e,t,n){return typeof e=="string"?e:ie.transform(t+n*e)}function J2(e,t,n){const r=Nd(t,e.x,e.width),o=Nd(n,e.y,e.height);return`${r} ${o}`}const Q2={offset:"stroke-dashoffset",array:"stroke-dasharray"},e6={offset:"strokeDashoffset",array:"strokeDasharray"};function t6(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Q2:e6;e[i.offset]=ie.transform(-r);const a=ie.transform(t),s=ie.transform(n);e[i.array]=`${a} ${s}`}function mu(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},d,f,p){if(bu(e,c,d,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:b,style:h,dimensions:g}=e;b.transform&&(g&&(h.transform=b.transform),delete b.transform),g&&(o!==void 0||i!==void 0||h.transform)&&(h.transformOrigin=J2(g,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(b.x=t),n!==void 0&&(b.y=n),r!==void 0&&(b.scale=r),a!==void 0&&t6(b,a,s,l,!1)}const jb=()=>({...hu(),attrs:{}}),gu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function n6(e,t,n,r){const o=u.useMemo(()=>{const i=jb();return mu(i,t,{enableHardwareAcceleration:!1},gu(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Nb(i,e.style,e),o.style={...i,...o.style}}return o}function r6(e=!1){return(n,r,o,{latestValues:i},a)=>{const l=(fu(n)?n6:Y2)(r,i,a,n),c=X2(r,typeof n=="string",e),d=n!==u.Fragment?{...c,...l,ref:o}:{},{children:f}=r,p=u.useMemo(()=>tt(f)?f.get():f,[f]);return u.createElement(n,{...d,children:p})}}function _b(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 zb=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 Ub(e,t,n,r){_b(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(zb.has(o)?o:su(o),t.attrs[o])}function vu(e,t){const{style:n}=e,r={};for(const o in n)(tt(n[o])||t.style&&tt(t.style[o])||Ib(o,e))&&(r[o]=n[o]);return r}function Hb(e,t){const n=vu(e,t);for(const r in e)if(tt(e[r])||tt(t[r])){const o=yo.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function yu(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 Wb(e){const t=u.useRef(null);return t.current===null&&(t.current=e()),t.current}const Wi=e=>Array.isArray(e),o6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),i6=e=>Wi(e)?e[e.length-1]||0:e;function mi(e){const t=tt(e)?e.get():e;return o6(t)?t.toValue():t}function a6({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:s6(r,o,i,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const Gb=e=>(t,n)=>{const r=u.useContext(da),o=u.useContext(fa),i=()=>a6(e,t,r,o);return n?i():Wb(i)};function s6(e,t,n,r){const o={},i=r(e,{});for(const p in i)o[p]=mi(i[p]);let{initial:a,animate:s}=e;const l=ha(e),c=Fb(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?s:a;return f&&typeof f!="boolean"&&!ba(f)&&(Array.isArray(f)?f:[f]).forEach(b=>{const h=yu(e,b);if(!h)return;const{transitionEnd:g,transition:y,...$}=h;for(const C in $){let x=$[C];if(Array.isArray(x)){const E=d?x.length-1:0;x=x[E]}x!==null&&(o[C]=x)}for(const C in g)o[C]=g[C]}),o}const ke=e=>e,{schedule:De,cancel:Wt,state:ze,steps:cs}=Rb(typeof requestAnimationFrame<"u"?requestAnimationFrame:ke,!0),l6={useVisualState:Gb({scrapeMotionValuesFromProps:Hb,createRenderState:jb,onMount:(e,t,{renderState:n,latestValues:r})=>{De.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),De.render(()=>{mu(n,r,{enableHardwareAcceleration:!1},gu(t.tagName),e.transformTemplate),Ub(t,n)})}})},u6={useVisualState:Gb({scrapeMotionValuesFromProps:vu,createRenderState:hu})};function c6(e,{forwardMotionProps:t=!1},n,r){return{...fu(e)?l6:u6,preloadedFeatures:n,useRender:r6(t),createVisualElement:r,Component:e}}function Nt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Yb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ma(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const d6=e=>t=>Yb(t)&&e(t,ma(t));function jt(e,t,n,r){return Nt(e,t,d6(n),r)}const f6=(e,t)=>n=>t(e(n)),_t=(...e)=>e.reduce(f6);function qb(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Kd=qb("dragHorizontal"),jd=qb("dragVertical");function Zb(e){let t=!1;if(e==="y")t=jd();else if(e==="x")t=Kd();else{const n=Kd(),r=jd();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Xb(){const e=Zb(!0);return e?(e(),!1):!0}class fn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function _d(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.pointerType==="touch"||Xb())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[r]&&De.update(()=>s[r](i,a))};return jt(e.current,n,o,{passive:!e.getProps()[r]})}class p6 extends fn{mount(){this.unmount=_t(_d(this.node,!0),_d(this.node,!1))}unmount(){}}class b6 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 Jb=(e,t)=>t?e===t?!0:Jb(e,t.parentElement):!1;function ds(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,ma(n))}class h6 extends fn{constructor(){super(...arguments),this.removeStartListeners=ke,this.removeEndListeners=ke,this.removeAccessibleListeners=ke,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:d,globalTapTarget:f}=this.node.getProps();De.update(()=>{!f&&!Jb(this.node.current,s.target)?d&&d(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()||ds("up",(l,c)=>{const{onTap:d}=this.node.getProps();d&&De.update(()=>d(l,c))})};this.removeEndListeners(),this.removeEndListeners=Nt(this.node.current,"keyup",a),ds("down",(s,l)=>{this.startPress(s,l)})},n=Nt(this.node.current,"keydown",t),r=()=>{this.isPressing&&ds("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&&De.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Xb()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&De.update(()=>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 nl=new WeakMap,fs=new WeakMap,m6=e=>{const t=nl.get(e.target);t&&t(e)},g6=e=>{e.forEach(m6)};function v6({root:e,...t}){const n=e||document;fs.has(n)||fs.set(n,{});const r=fs.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(g6,{root:e,...t})),r[o]}function y6(e,t,n){const r=v6(t);return nl.set(e,n),r.observe(e),()=>{nl.delete(e),r.unobserve(e)}}const $6={some:0,all:1};class x6 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:$6[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:d,onViewportLeave:f}=this.node.getProps(),p=c?d:f;p&&p(l)};return y6(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(w6(t,n))&&this.startObserver()}unmount(){}}function w6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const C6={inView:{Feature:x6},tap:{Feature:h6},focus:{Feature:b6},hover:{Feature:p6}};function Qb(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 D6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function E6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function ga(e,t,n){const r=e.getProps();return yu(r,t,n!==void 0?n:r.custom,D6(e),E6(e))}let wo=ke,ht=ke;process.env.NODE_ENV!=="production"&&(wo=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},ht=(e,t)=>{if(!e)throw new Error(t)});const an=e=>e*1e3,zt=e=>e/1e3,P6={current:!1},eh=e=>Array.isArray(e)&&typeof e[0]=="number";function th(e){return!!(!e||typeof e=="string"&&nh[e]||eh(e)||Array.isArray(e)&&e.every(th))}const Hr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,nh={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 rh(e){if(e)return eh(e)?Hr(e):Array.isArray(e)?e.map(rh):nh[e]}function S6(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=rh(s);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function T6(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const oh=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,A6=1e-7,M6=12;function k6(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=oh(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>A6&&++s<M6);return a}function Co(e,t,n,r){if(e===t&&n===r)return ke;const o=i=>k6(i,0,1,e,n);return i=>i===0||i===1?i:oh(o(i),t,r)}const R6=Co(.42,0,1,1),F6=Co(0,0,.58,1),ih=Co(.42,0,.58,1),B6=e=>Array.isArray(e)&&typeof e[0]!="number",ah=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,sh=e=>t=>1-e(1-t),$u=e=>1-Math.sin(Math.acos(e)),lh=sh($u),I6=ah($u),uh=Co(.33,1.53,.69,.99),xu=sh(uh),L6=ah(xu),V6=e=>(e*=2)<1?.5*xu(e):.5*(2-Math.pow(2,-10*(e-1))),zd={linear:ke,easeIn:R6,easeInOut:ih,easeOut:F6,circIn:$u,circInOut:I6,circOut:lh,backIn:xu,backInOut:L6,backOut:uh,anticipate:V6},Ud=e=>{if(Array.isArray(e)){ht(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 ht(zd[e]!==void 0,`Invalid easing type '${e}'`),zd[e];return e},uo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Pe=(e,t,n)=>e+(t-e)*n;function ps(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 O6({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=ps(l,s,e+1/3),i=ps(l,s,e),a=ps(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const wu=(e,t)=>n=>!!($o(n)&&z2.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ch=(e,t,n)=>r=>{if(!$o(r))return r;const[o,i,a,s]=r.match(pu);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},N6=e=>cn(0,255,e),bs={...vr,transform:e=>Math.round(N6(e))},En={test:wu("rgb","red"),parse:ch("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+bs.transform(e)+", "+bs.transform(t)+", "+bs.transform(n)+", "+Zr(qr.transform(r))+")"};function K6(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 rl={test:wu("#"),parse:K6,transform:En.transform},tr={test:wu("hsl","hue"),parse:ch("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+At.transform(Zr(t))+", "+At.transform(Zr(n))+", "+Zr(qr.transform(r))+")"},hs=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},j6=[rl,En,tr],_6=e=>j6.find(t=>t.test(e));function Hd(e){const t=_6(e);ht(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===tr&&(n=O6(n)),n}const Wd=(e,t)=>{const n=Hd(e),r=Hd(t),o={...n};return i=>(o.red=hs(n.red,r.red,i),o.green=hs(n.green,r.green,i),o.blue=hs(n.blue,r.blue,i),o.alpha=Pe(n.alpha,r.alpha,i),En.transform(o))},We={test:e=>En.test(e)||rl.test(e)||tr.test(e),parse:e=>En.test(e)?En.parse(e):tr.test(e)?tr.parse(e):rl.parse(e),transform:e=>$o(e)?e:e.hasOwnProperty("red")?En.transform(e):tr.transform(e)};function z6(e){var t,n;return isNaN(e)&&$o(e)&&(((t=e.match(pu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(_2))===null||n===void 0?void 0:n.length)||0)>0}const dh="number",fh="color",U6="var",H6="var(",Gd="${}",Yd=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function Gi(e){const t=e.toString(),n=t.match(Yd)||[],r=[],o={color:[],number:[],var:[]},i=[];for(let l=0;l<n.length;l++){const c=n[l];We.test(c)?(o.color.push(l),i.push(fh),r.push(We.parse(c))):c.startsWith(H6)?(o.var.push(l),i.push(U6),r.push(c)):(o.number.push(l),i.push(dh),r.push(parseFloat(c)))}const s=t.replace(Yd,Gd).split(Gd);return{values:r,split:s,indexes:o,types:i}}function ph(e){return Gi(e).values}function bh(e){const{split:t,types:n}=Gi(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===dh?i+=Zr(o[a]):s===fh?i+=We.transform(o[a]):i+=o[a]}return i}}const W6=e=>typeof e=="number"?0:e;function G6(e){const t=ph(e);return bh(e)(t.map(W6))}const dn={test:z6,parse:ph,createTransformer:bh,getAnimatableNone:G6};function ol(e,t){return n=>n>0?t:e}function Y6(e,t){return n=>Pe(e,t,n)}function Cu(e){return typeof e=="number"?Y6:typeof e=="string"?Ui(e)?ol:We.test(e)?Wd:X6:Array.isArray(e)?hh:typeof e=="object"?We.test(e)?Wd:q6:ol}function hh(e,t){const n=[...e],r=n.length,o=e.map((i,a)=>Cu(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}}function q6(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Cu(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function Z6(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 X6=(e,t)=>{const n=dn.createTransformer(t),r=Gi(e),o=Gi(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(hh(Z6(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.`),ol(e,t))};function mh(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pe(e,t,n):Cu(e)(e,t)}function J6(e,t,n){const r=[],o=n||mh,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]||ke:t;s=_t(l,s)}r.push(s)}return r}function Q6(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(ht(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=J6(t,r,o),s=a.length,l=c=>{let d=0;if(s>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=uo(e[d],e[d+1],c);return a[d](f)};return n?c=>l(cn(e[0],e[i-1],c)):l}function ew(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=uo(0,t,r);e.push(Pe(n,1,o))}}function tw(e){const t=[0];return ew(t,e.length-1),t}function nw(e,t){return e.map(n=>n*t)}function rw(e,t){return e.map(()=>t||ih).splice(0,e.length-1)}function Yi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=B6(r)?r.map(Ud):Ud(r),i={done:!1,value:t[0]},a=nw(n&&n.length===t.length?n:tw(t),e),s=Q6(a,t,{ease:Array.isArray(o)?o:rw(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}function gh(e,t){return t?e*(1e3/t):0}const ow=5;function vh(e,t,n){const r=Math.max(t-ow,0);return gh(n-e(r),t-r)}const ms=.001,iw=.01,qd=10,aw=.05,sw=1;function lw({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;wo(e<=an(qd),"Spring duration must be 10 seconds or less");let a=1-t;a=cn(aw,sw,a),e=cn(iw,qd,zt(e)),a<1?(o=c=>{const d=c*a,f=d*e,p=d-n,b=il(c,a),h=Math.exp(-f);return ms-p/b*h},i=c=>{const f=c*a*e,p=f*n+n,b=Math.pow(a,2)*Math.pow(c,2)*e,h=Math.exp(-f),g=il(Math.pow(c,2),a);return(-o(c)+ms>0?-1:1)*((p-b)*h)/g}):(o=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-ms+d*f},i=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const s=5/e,l=cw(o,i,s);if(e=an(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 uw=12;function cw(e,t,n){let r=n;for(let o=1;o<uw;o++)r=r-e(r)/t(r);return r}function il(e,t){return e*Math.sqrt(1-t*t)}const dw=["duration","bounce"],fw=["stiffness","damping","mass"];function Zd(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(!Zd(e,fw)&&Zd(e,dw)){const n=lw(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function yh({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:d,velocity:f,isResolvedFromDuration:p}=pw({...r,velocity:-zt(r.velocity||0)}),b=f||0,h=l/(2*Math.sqrt(s*c)),g=i-o,y=zt(Math.sqrt(s/c)),$=Math.abs(g)<5;n||(n=$?.01:2),t||(t=$?.005:.5);let C;if(h<1){const x=il(y,h);C=E=>{const P=Math.exp(-h*y*E);return i-P*((b+h*y*g)/x*Math.sin(x*E)+g*Math.cos(x*E))}}else if(h===1)C=x=>i-Math.exp(-y*x)*(g+(b+y*g)*x);else{const x=y*Math.sqrt(h*h-1);C=E=>{const P=Math.exp(-h*y*E),A=Math.min(x*E,300);return i-P*((b+h*y*g)*Math.sinh(A)+x*g*Math.cosh(A))/x}}return{calculatedDuration:p&&d||null,next:x=>{const E=C(x);if(p)a.done=x>=d;else{let P=b;x!==0&&(h<1?P=vh(C,x,E):P=0);const A=Math.abs(P)<=n,N=Math.abs(i-E)<=t;a.done=A&&N}return a.value=a.done?i:E,a}}}function Xd({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:d}){const f=e[0],p={done:!1,value:f},b=v=>s!==void 0&&v<s||l!==void 0&&v>l,h=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),x=v=>$+C(v),E=v=>{const L=C(v),R=x(v);p.done=Math.abs(L)<=c,p.value=p.done?$:R};let P,A;const N=v=>{b(p.value)&&(P=v,A=yh({keyframes:[p.value,h(p.value)],velocity:vh(x,v,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:d}))};return N(0),{calculatedDuration:null,next:v=>{let L=!1;return!A&&P===void 0&&(L=!0,E(v),N(v)),P!==void 0&&v>P?A.next(v-P):(!L&&E(v),p)}}}let gi;function bw(){gi=void 0}const Pn={now:()=>(gi===void 0&&Pn.set(ze.isProcessing||kb.useManualTiming?ze.timestamp:performance.now()),gi),set:e=>{gi=e,queueMicrotask(bw)}},hw=e=>{const t=({timestamp:n})=>e(n);return{start:()=>De.update(t,!0),stop:()=>Wt(t),now:()=>ze.isProcessing?ze.timestamp:Pn.now()}},Jd=2e4;function Qd(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Jd;)t+=n,r=e.next(t);return t>=Jd?1/0:t}const mw={decay:Xd,inertia:Xd,tween:Yi,keyframes:Yi,spring:yh},gw=e=>e/100;function qi({autoplay:e=!0,delay:t=0,driver:n=hw,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:d,onUpdate:f,...p}){let b=1,h=!1,g,y;const $=()=>{y=new Promise(D=>{g=D})};$();let C;const x=mw[o]||Yi;let E;x!==Yi&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&ht(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),E=_t(gw,mh(r[0],r[1])),r=[0,100]);const P=x({...p,keyframes:r});let A;s==="mirror"&&(A=x({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let N="idle",v=null,L=null,R=null;P.calculatedDuration===null&&i&&(P.calculatedDuration=Qd(P));const{calculatedDuration:M}=P;let B=1/0,T=1/0;M!==null&&(B=M+a,T=B*(i+1)-a);let I=0;const K=D=>{if(L===null)return;b>0&&(L=Math.min(L,D)),b<0&&(L=Math.min(D-T/b,L)),v!==null?I=v:I=Math.round(D-L)*b;const O=I-t*(b>=0?1:-1),Y=b>=0?O<0:O>T;I=Math.max(O,0),N==="finished"&&v===null&&(I=T);let X=I,Q=P;if(i){const ee=Math.min(I,T)/B;let ae=Math.floor(ee),re=ee%1;!re&&ee>=1&&(re=1),re===1&&ae--,ae=Math.min(ae,i+1),!!(ae%2)&&(s==="reverse"?(re=1-re,a&&(re-=a/B)):s==="mirror"&&(Q=A)),X=cn(0,1,re)*B}const ne=Y?{done:!1,value:r[0]}:Q.next(X);E&&(ne.value=E(ne.value));let{done:z}=ne;!Y&&M!==null&&(z=b>=0?I>=T:I<=0);const q=v===null&&(N==="finished"||N==="running"&&z);return f&&f(ne.value),q&&W(),ne},V=()=>{C&&C.stop(),C=void 0},S=()=>{N="idle",V(),g(),$(),L=R=null},W=()=>{N="finished",d&&d(),V(),g()},G=()=>{if(h)return;C||(C=n(K));const D=C.now();l&&l(),v!==null?L=D-v:(!L||N==="finished")&&(L=D),N==="finished"&&$(),R=L,v=null,N="running",C.start()};e&&G();const U={then(D,O){return y.then(D,O)},get time(){return zt(I)},set time(D){D=an(D),I=D,v!==null||!C||b===0?v=D:L=C.now()-D/b},get duration(){const D=P.calculatedDuration===null?Qd(P):P.calculatedDuration;return zt(D)},get speed(){return b},set speed(D){D===b||!C||(b=D,U.time=zt(I))},get state(){return N},play:G,pause:()=>{N="paused",v=I},stop:()=>{h=!0,N!=="idle"&&(N="idle",c&&c(),S())},cancel:()=>{R!==null&&K(R),S()},complete:()=>{N="finished"},sample:D=>(L=0,K(D))};return U}function vw(e){let t;return()=>(t===void 0&&(t=e()),t)}const yw=vw(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),$w=new Set(["opacity","clipPath","filter","transform"]),ii=10,xw=2e4,ww=(e,t)=>t.type==="spring"||e==="backgroundColor"||!th(t.ease);function Cw(e,t,{onUpdate:n,onComplete:r,...o}){if(!(yw()&&$w.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,s,l,c=!1;const d=()=>{l=new Promise(x=>{s=x})};d();let{keyframes:f,duration:p=300,ease:b,times:h}=o;if(ww(t,o)){const x=qi({...o,repeat:0,delay:0});let E={done:!1,value:f[0]};const P=[];let A=0;for(;!E.done&&A<xw;)E=x.sample(A),P.push(E.value),A+=ii;h=void 0,f=P,p=A-ii,b="linear"}const g=S6(e.owner.current,t,f,{...o,duration:p,ease:b,times:h}),y=()=>{c=!1,g.cancel()},$=()=>{c=!0,De.update(y),s(),d()};return g.onfinish=()=>{c||(e.set(T6(f,o)),r&&r(),$())},{then(x,E){return l.then(x,E)},attachTimeline(x){return g.timeline=x,g.onfinish=null,ke},get time(){return zt(g.currentTime||0)},set time(x){g.currentTime=an(x)},get speed(){return g.playbackRate},set speed(x){g.playbackRate=x},get duration(){return zt(p)},play:()=>{a||(g.play(),Wt(y))},pause:()=>g.pause(),stop:()=>{if(a=!0,g.playState==="idle")return;const{currentTime:x}=g;if(x){const E=qi({...o,autoplay:!1});e.setWithVelocity(E.sample(x-ii).value,E.sample(x).value,ii)}$()},complete:()=>{c||g.finish()},cancel:$}}function Dw({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ke,pause:ke,stop:ke,then:i=>(i(),Promise.resolve()),cancel:ke,complete:ke});return t?qi({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const Ew={type:"spring",stiffness:500,damping:25,restSpeed:10},Pw=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Sw={type:"keyframes",duration:.8},Tw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Aw=(e,{keyframes:t})=>t.length>2?Sw:In.has(e)?e.startsWith("scale")?Pw(t[1]):Ew:Tw,al=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(dn.test(t)||t==="0")&&!t.startsWith("url(")),Mw=new Set(["brightness","contrast","saturate","opacity"]);function kw(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(pu)||[];if(!r)return e;const o=n.replace(r,"");let i=Mw.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Rw=/([a-z-]*)\(.*?\)/g,sl={...dn,getAnimatableNone:e=>{const t=e.match(Rw);return t?t.map(kw).join(" "):e}},Fw={...Ob,color:We,backgroundColor:We,outlineColor:We,fill:We,stroke:We,borderColor:We,borderTopColor:We,borderRightColor:We,borderBottomColor:We,borderLeftColor:We,filter:sl,WebkitFilter:sl},Du=e=>Fw[e];function $h(e,t){let n=Du(e);return n!==sl&&(n=dn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const xh=e=>/^0[^.\s]+$/.test(e);function Bw(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||xh(e)}function Iw(e,t,n,r){const o=al(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const a=r.from!==void 0?r.from:e.get();let s;const l=[];for(let c=0;c<i.length;c++)i[c]===null&&(i[c]=c===0?a:i[c-1]),Bw(i[c])&&l.push(c),typeof i[c]=="string"&&i[c]!=="none"&&i[c]!=="0"&&(s=i[c]);if(o&&l.length&&s)for(let c=0;c<l.length;c++){const d=l[c];i[d]=$h(t,s)}return i}function Lw({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...d}){return!!Object.keys(d).length}function Eu(e,t){return e[t]||e.default||e}const Pu=(e,t,n,r={})=>o=>{const i=Eu(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s=s-an(a);const l=Iw(t,e,n,i),c=l[0],d=l[l.length-1],f=al(e,c),p=al(e,d);wo(f===p,`You are trying to animate ${e} from "${c}" to "${d}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${d} via the \`style\` property.`);let b={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:h=>{t.set(h),i.onUpdate&&i.onUpdate(h)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(Lw(i)||(b={...b,...Aw(e,b)}),b.duration&&(b.duration=an(b.duration)),b.repeatDelay&&(b.repeatDelay=an(b.repeatDelay)),!f||!p||P6.current||i.type===!1||kb.skipAnimations)return Dw(b);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const h=Cw(t,e,b);if(h)return h}return qi(b)};function Zi(e){return!!(tt(e)&&e.add)}const wh=e=>/^\-?\d*\.?\d+$/.test(e);function Su(e,t){e.indexOf(t)===-1&&e.push(t)}function Tu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Au{constructor(){this.subscriptions=[]}add(t){return Su(this.subscriptions,t),()=>Tu(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 ef=new Set;function Mu(e,t,n){e||ef.has(t)||(console.warn(t),n&&console.warn(n),ef.add(t))}const tf=30,Vw=e=>!isNaN(parseFloat(e));class Ow{constructor(t,n={}){this.version="11.0.6",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Pn.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=Vw(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Pn.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Mu(!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 Au);const r=this.events[t].add(n);return t==="change"?()=>{r(),De.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){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Pn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>tf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,tf);return gh(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 ur(e,t){return new Ow(e,t)}const Ch=e=>t=>t.test(e),Nw={test:e=>e==="auto",parse:e=>e},Dh=[vr,ie,At,en,H2,U2,Nw],Lr=e=>Dh.find(Ch(e)),Kw=[...Dh,We,dn],jw=e=>Kw.find(Ch(e));function _w(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ur(n))}function zw(e,t){const n=ga(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const a in i){const s=i6(i[a]);_w(e,a,s)}}function Uw(e,t,n){var r,o;const i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(a)for(let s=0;s<a;s++){const l=i[s],c=t[l];let d=null;Array.isArray(c)&&(d=c[0]),d===null&&(d=(o=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&o!==void 0?o:t[l]),d!=null&&(typeof d=="string"&&(wh(d)||xh(d))?d=parseFloat(d):!jw(d)&&dn.test(c)&&(d=$h(l,c)),e.addValue(l,ur(d,{owner:e})),n[l]===void 0&&(n[l]=d),d!==null&&e.setBaseTarget(l,d))}}function Hw(e,t){return t?(t[e]||t.default||t).from:void 0}function Ww(e,t,n){const r={};for(const o in e){const i=Hw(o,t);if(i!==void 0)r[o]=i;else{const a=n.getValue(o);a&&(r[o]=a.get())}}return r}function Gw({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Yw(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Eh(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const f in s){const p=e.getValue(f),b=s[f];if(!p||b===void 0||d&&Gw(d,f))continue;const h={delay:n,elapsed:0,...Eu(i||{},f)};if(window.HandoffAppearAnimations){const $=e.getProps()[Mb];if($){const C=window.HandoffAppearAnimations($,f,p,De);C!==null&&(h.elapsed=C,h.isHandoff=!0)}}let g=!h.isHandoff&&!Yw(p,b);if(h.type==="spring"&&(p.getVelocity()||h.velocity)&&(g=!1),p.animation&&(g=!1),g)continue;p.start(Pu(f,p,b,e.shouldReduceMotion&&In.has(f)?{type:!1}:h));const y=p.animation;Zi(l)&&(l.add(f),y.then(()=>l.remove(f))),c.push(y)}return a&&Promise.all(c).then(()=>{a&&zw(e,a)}),c}function ll(e,t,n={}){const r=ga(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Eh(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return qw(e,t,c+l,d,f,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,c]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>c())}else return Promise.all([i(),a(n.delay)])}function qw(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(Zw).forEach((c,d)=>{c.notify("AnimationStart",t),a.push(ll(c,t,{...i,delay:n+l(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(a)}function Zw(e,t){return e.sortNodePosition(t)}function Xw(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>ll(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=ll(e,t,n);else{const o=typeof t=="function"?ga(e,t,n.custom):t;r=Promise.all(Eh(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const Jw=[...uu].reverse(),Qw=uu.length;function e7(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Xw(e,n,r)))}function t7(e){let t=e7(e);const n=r7();let r=!0;const o=(l,c)=>{const d=ga(e,c);if(d){const{transition:f,transitionEnd:p,...b}=d;l={...l,...b,...p}}return l};function i(l){t=l(e)}function a(l,c){const d=e.getProps(),f=e.getVariantContext(!0)||{},p=[],b=new Set;let h={},g=1/0;for(let $=0;$<Qw;$++){const C=Jw[$],x=n[C],E=d[C]!==void 0?d[C]:f[C],P=so(E),A=C===c?x.isActive:null;A===!1&&(g=$);let N=E===f[C]&&E!==d[C]&&P;if(N&&r&&e.manuallyAnimateOnMount&&(N=!1),x.protectedKeys={...h},!x.isActive&&A===null||!E&&!x.prevProp||ba(E)||typeof E=="boolean")continue;let L=n7(x.prevProp,E)||C===c&&x.isActive&&!N&&P||$>g&&P,R=!1;const M=Array.isArray(E)?E:[E];let B=M.reduce(o,{});A===!1&&(B={});const{prevResolvedValues:T={}}=x,I={...T,...B},K=V=>{L=!0,b.has(V)&&(R=!0,b.delete(V)),x.needsAnimating[V]=!0};for(const V in I){const S=B[V],W=T[V];if(h.hasOwnProperty(V))continue;let G=!1;Wi(S)&&Wi(W)?G=!Qb(S,W):G=S!==W,G?S!==void 0?K(V):b.add(V):S!==void 0&&b.has(V)?K(V):x.protectedKeys[V]=!0}x.prevProp=E,x.prevResolvedValues=B,x.isActive&&(h={...h,...B}),r&&e.blockInitialAnimation&&(L=!1),L&&(!N||R)&&p.push(...M.map(V=>({animation:V,options:{type:C,...l}})))}if(b.size){const $={};b.forEach(C=>{const x=e.getBaseTarget(C);x!==void 0&&($[C]=x)}),p.push({animation:$})}let y=!!p.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(p):Promise.resolve()}function s(l,c,d){var f;if(n[l].isActive===c)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(b=>{var h;return(h=b.animationState)===null||h===void 0?void 0:h.setActive(l,c)}),n[l].isActive=c;const p=a(d,l);for(const b in n)n[b].protectedKeys={};return p}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>n}}function n7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Qb(t,e):!1}function bn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function r7(){return{animate:bn(!0),whileInView:bn(),whileHover:bn(),whileTap:bn(),whileDrag:bn(),whileFocus:bn(),exit:bn()}}class o7 extends fn{constructor(t){super(t),t.animationState||(t.animationState=t7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ba(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 i7=0;class a7 extends fn{constructor(){super(...arguments),this.id=i7++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const s7={animation:{Feature:o7},exit:{Feature:a7}},nf=(e,t)=>Math.abs(e-t);function l7(e,t){const n=nf(e.x,t.x),r=nf(e.y,t.y);return Math.sqrt(n**2+r**2)}class Ph{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=vs(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,b=l7(f.offset,{x:0,y:0})>=3;if(!p&&!b)return;const{point:h}=f,{timestamp:g}=ze;this.history.push({...h,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=gs(p,this.transformPagePoint),De.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:b,onSessionEnd:h,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=vs(f.type==="pointercancel"?this.lastMoveEventInfo:gs(p,this.transformPagePoint),this.history);this.startEvent&&b&&b(f,y),h&&h(f,y)},!Yb(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=ma(t),s=gs(a,this.transformPagePoint),{point:l}=s,{timestamp:c}=ze;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,vs(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(),Wt(this.updatePoint)}}function gs(e,t){return t?{point:t(e.point)}:e}function rf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vs({point:e},t){return{point:e,delta:rf(e,Sh(t)),offset:rf(e,u7(t)),velocity:c7(t,.1)}}function u7(e){return e[0]}function Sh(e){return e[e.length-1]}function c7(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Sh(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>an(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 ot(e){return e.max-e.min}function ul(e,t=0,n=.01){return Math.abs(e-t)<=n}function of(e,t,n,r=.5){e.origin=r,e.originPoint=Pe(t.min,t.max,e.origin),e.scale=ot(n)/ot(t),(ul(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Pe(n.min,n.max,e.origin)-e.originPoint,(ul(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Xr(e,t,n,r){of(e.x,t.x,n.x,r?r.originX:void 0),of(e.y,t.y,n.y,r?r.originY:void 0)}function af(e,t,n){e.min=n.min+t.min,e.max=e.min+ot(t)}function d7(e,t,n){af(e.x,t.x,n.x),af(e.y,t.y,n.y)}function sf(e,t,n){e.min=t.min-n.min,e.max=e.min+ot(t)}function Jr(e,t,n){sf(e.x,t.x,n.x),sf(e.y,t.y,n.y)}function f7(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 lf(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 p7(e,{top:t,left:n,bottom:r,right:o}){return{x:lf(e.x,n,o),y:lf(e.y,t,r)}}function uf(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 b7(e,t){return{x:uf(e.x,t.x),y:uf(e.y,t.y)}}function h7(e,t){let n=.5;const r=ot(e),o=ot(t);return o>r?n=uo(t.min,t.max-r,e.min):r>o&&(n=uo(e.min,e.max-o,t.min)),cn(0,1,n)}function m7(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 cl=.35;function g7(e=cl){return e===!1?e=0:e===!0&&(e=cl),{x:cf(e,"left","right"),y:cf(e,"top","bottom")}}function cf(e,t,n){return{min:df(e,t),max:df(e,n)}}function df(e,t){return typeof e=="number"?e:e[t]||0}const ff=()=>({translate:0,scale:1,origin:0,originPoint:0}),nr=()=>({x:ff(),y:ff()}),pf=()=>({min:0,max:0}),Me=()=>({x:pf(),y:pf()});function lt(e){return[e("x"),e("y")]}function Th({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function v7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function y7(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 ys(e){return e===void 0||e===1}function dl({scale:e,scaleX:t,scaleY:n}){return!ys(e)||!ys(t)||!ys(n)}function gn(e){return dl(e)||Ah(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Ah(e){return bf(e.x)||bf(e.y)}function bf(e){return e&&e!=="0%"}function Xi(e,t,n){const r=e-n,o=t*r;return n+o}function hf(e,t,n,r,o){return o!==void 0&&(e=Xi(e,o,r)),Xi(e,n,r)+t}function fl(e,t=0,n=1,r,o){e.min=hf(e.min,t,n,r,o),e.max=hf(e.max,t,n,r,o)}function Mh(e,{x:t,y:n}){fl(e.x,t.translate,t.scale,t.originPoint),fl(e.y,n.translate,n.scale,n.originPoint)}function $7(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,Mh(e,a)),r&&gn(i.latestValues)&&rr(e,i.latestValues))}t.x=mf(t.x),t.y=mf(t.y)}function mf(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function nn(e,t){e.min=e.min+t,e.max=e.max+t}function gf(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,a=Pe(e.min,e.max,i);fl(e,t[n],t[r],a,t.scale)}const x7=["x","scaleX","originX"],w7=["y","scaleY","originY"];function rr(e,t){gf(e.x,t,x7),gf(e.y,t,w7)}function kh(e,t){return Th(y7(e.getBoundingClientRect(),t))}function C7(e,t,n){const r=kh(e,n),{scroll:o}=t;return o&&(nn(r.x,o.offset.x),nn(r.y,o.offset.y)),r}const Rh=({current:e})=>e?e.ownerDocument.defaultView:null,D7=new WeakMap;class E7{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=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ma(d,"page").point)},i=(d,f)=>{const{drag:p,dragPropagation:b,onDragStart:h}=this.getProps();if(p&&!b&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Zb(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(At.test($)){const{projection:C}=this.visualElement;if(C&&C.layout){const x=C.layout.layoutBox[y];x&&($=ot(x)*(parseFloat($)/100))}}this.originPoint[y]=$}),h&&De.update(()=>h(d,f),!1,!0);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(d,f)=>{const{dragPropagation:p,dragDirectionLock:b,onDirectionLock:h,onDrag:g}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:y}=f;if(b&&this.currentDirection===null){this.currentDirection=P7(y),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),g&&g(d,f)},s=(d,f)=>this.stop(d,f),l=()=>lt(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Ph(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Rh(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&&De.update(()=>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=f7(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=p7(o.layoutBox,n):this.constraints=!1,this.elastic=g7(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&<(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=m7(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!er(t))return!1;const r=t.current;ht(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=C7(r,o.root,this.visualElement.getTransformPagePoint());let a=b7(o.layout.layoutBox,i);if(n){const s=n(v7(a));this.hasMutatedConstraints=!!s,s&&(a=Th(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(d=>{if(!ai(d,n,this.currentDirection))return;let f=l&&l[d]||{};a&&(f={min:0,max:0});const p=o?200:1e6,b=o?40:1e7,h={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,h)});return Promise.all(c).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Pu(t,r,0,n))}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(!er(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};lt(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();o[a]=h7({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;D7.set(this.visualElement,this);const t=this.visualElement.current,n=jt(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&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=Nt(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(lt(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].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=cl,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 P7(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class S7 extends fn{constructor(t){super(t),this.removeGroupControls=ke,this.removeListeners=ke,this.controls=new E7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ke}unmount(){this.removeGroupControls(),this.removeListeners()}}const vf=e=>(t,n)=>{e&&De.update(()=>e(t,n))};class T7 extends fn{constructor(){super(...arguments),this.removePointerDownListener=ke}onPointerDown(t){this.session=new Ph(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Rh(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:vf(t),onStart:vf(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&De.update(()=>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 A7(){const e=u.useContext(fa);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 vi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function yf(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(ie.test(e))e=parseFloat(e);else return e;const n=yf(e,t.target.x),r=yf(e,t.target.y);return`${n}% ${r}%`}},M7={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 k7 extends u.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;I2(R7),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),vi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||De.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),lu.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 Fh(e){const[t,n]=A7(),r=u.useContext(du);return u.createElement(k7,{...e,layoutGroup:r,switchLayoutGroup:u.useContext(Bb),isPresent:t,safeToRemove:n})}const R7={borderRadius:{...Vr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vr,borderTopRightRadius:Vr,borderBottomLeftRadius:Vr,borderBottomRightRadius:Vr,boxShadow:M7},Bh=["TopLeft","TopRight","BottomLeft","BottomRight"],F7=Bh.length,$f=e=>typeof e=="string"?parseFloat(e):e,xf=e=>typeof e=="number"||ie.test(e);function B7(e,t,n,r,o,i){o?(e.opacity=Pe(0,n.opacity!==void 0?n.opacity:1,I7(r)),e.opacityExit=Pe(t.opacity!==void 0?t.opacity:1,0,L7(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<F7;a++){const s=`border${Bh[a]}Radius`;let l=wf(t,s),c=wf(n,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||xf(l)===xf(c)?(e[s]=Math.max(Pe($f(l),$f(c),r),0),(At.test(c)||At.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||n.rotate)&&(e.rotate=Pe(t.rotate||0,n.rotate||0,r))}function wf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const I7=Ih(0,.5,lh),L7=Ih(.5,.95,ke);function Ih(e,t,n){return r=>r<e?0:r>t?1:n(uo(e,t,r))}function Cf(e,t){e.min=t.min,e.max=t.max}function at(e,t){Cf(e.x,t.x),Cf(e.y,t.y)}function Df(e,t,n,r,o){return e-=t,e=Xi(e,1/n,r),o!==void 0&&(e=Xi(e,1/o,r)),e}function V7(e,t=0,n=1,r=.5,o,i=e,a=e){if(At.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=Df(e.min,t,n,s,o),e.max=Df(e.max,t,n,s,o)}function Ef(e,t,[n,r,o],i,a){V7(e,t[n],t[r],t[o],t.scale,i,a)}const O7=["x","scaleX","originX"],N7=["y","scaleY","originY"];function Pf(e,t,n,r){Ef(e.x,t,O7,n?n.x:void 0,r?r.x:void 0),Ef(e.y,t,N7,n?n.y:void 0,r?r.y:void 0)}function Sf(e){return e.translate===0&&e.scale===1}function Lh(e){return Sf(e.x)&&Sf(e.y)}function K7(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 Vh(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 Tf(e){return ot(e.x)/ot(e.y)}class j7{constructor(){this.members=[]}add(t){Su(this.members,t),t.scheduleRender()}remove(t){if(Tu(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 Af(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:c,rotateY:d}=n;l&&(r+=`rotate(${l}deg) `),c&&(r+=`rotateX(${c}deg) `),d&&(r+=`rotateY(${d}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(r+=`scale(${a}, ${s})`),r||"none"}const _7=(e,t)=>e.depth-t.depth;class z7{constructor(){this.children=[],this.isDirty=!1}add(t){Su(this.children,t),this.isDirty=!0}remove(t){Tu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_7),this.isDirty=!1,this.children.forEach(t)}}function U7(e,t){const n=Pn.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Wt(r),e(i-t))};return De.read(r,!0),()=>Wt(r)}function H7(e){window.MotionDebug&&window.MotionDebug.record(e)}function W7(e){return e instanceof SVGElement&&e.tagName!=="svg"}function G7(e,t,n){const r=tt(e)?e:ur(e);return r.start(Pu("",r,t,n)),r.animation}const Mf=["","X","Y","Z"],Y7={visibility:"hidden"},kf=1e3;let q7=0;const vn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Oh({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=q7++,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(J7),this.nodes.forEach(rC),this.nodes.forEach(oC),this.nodes.forEach(Q7),H7(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 z7)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Au),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=W7(a),this.instance=a;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.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=U7(p,250),vi.hasAnimatedSinceResize&&(vi.hasAnimatedSinceResize=!1,this.nodes.forEach(Ff))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:b,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||uC,{onLayoutAnimationStart:y,onLayoutAnimationComplete:$}=d.getProps(),C=!this.targetLayout||!Vh(this.targetLayout,h)||b,x=!p&&b;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,x);const E={...Eu(g,"layout"),onPlay:y,onComplete:$};(d.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else p||Ff(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}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,Wt(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(iC),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 d=0;d<this.path.length;d++){const f=this.path[d];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(Rf);return}this.isUpdating||this.nodes.forEach(tC),this.isUpdating=!1,this.nodes.forEach(nC),this.nodes.forEach(Z7),this.nodes.forEach(X7),this.clearAllSnapshots();const s=Pn.now();ze.delta=cn(0,1e3/60,s-ze.timestamp),ze.timestamp=s,ze.isProcessing=!0,cs.update.process(ze),cs.preRender.process(ze),cs.render.process(ze),ze.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,lu.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(eC),this.sharedNodes.forEach(aC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,De.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){De.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&&!Lh(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;a&&(s||gn(this.latestValues)||d)&&(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)),cC(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&&(nn(s.x,l.offset.x),nn(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:d,options:f}=c;if(c!==this.root&&d&&f.layoutScroll){if(d.isRoot){at(s,a);const{scroll:p}=this.root;p&&(nn(s.x,-p.offset.x),nn(s.y,-p.offset.y))}nn(s.x,d.offset.x),nn(s.y,d.offset.y)}}return s}applyTransform(a,s=!1){const l=Me();at(l,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&rr(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),gn(d.latestValues)&&rr(l,d.latestValues)}return gn(this.latestValues)&&rr(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;dl(c.latestValues)&&c.updateSnapshot();const d=Me(),f=c.measurePageBox();at(d,f),Pf(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return gn(this.latestValues)&&Pf(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ze.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=ze.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Me(),this.relativeTargetOrigin=Me(),Jr(this.relativeTargetOrigin,this.layout.layoutBox,b.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(),d7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):at(this.target,this.layout.layoutBox),Mh(this.target,this.targetDelta)):at(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Me(),this.relativeTargetOrigin=Me(),Jr(this.relativeTargetOrigin,this.target,b.target),at(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}vn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||dl(this.parent.latestValues)||Ah(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===ze.timestamp&&(c=!1),c)return;const{layout:d,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||!(d||f))return;at(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,b=this.treeScale.y;$7(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:h}=s;if(!h){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,h,this.latestValues),this.projectionTransform=Af(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==p||this.treeScale.y!==b)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h)),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:{},d={...this.latestValues},f=nr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const p=Me(),b=l?l.source:void 0,h=this.layout?this.layout.source:void 0,g=b!==h,y=this.getStack(),$=!y||y.members.length<=1,C=!!(g&&!$&&this.options.crossfade===!0&&!this.path.some(lC));this.animationProgress=0;let x;this.mixTargetDelta=E=>{const P=E/1e3;Bf(f.x,a.x,P),Bf(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),sC(this.relativeTarget,this.relativeTargetOrigin,p,P),x&&K7(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Me()),at(x,this.relativeTarget)),g&&(this.animationValues=d,B7(d,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&&(Wt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=De.update(()=>{vi.hasAnimatedSinceResize=!0,this.currentAnimation=G7(0,kf,{...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(kf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:d}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&Nh(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),rr(s,d),Xr(this.projectionDeltaWithTransform,this.layoutCorrected,s,d)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new j7),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}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const c={};for(let d=0;d<Mf.length;d++){const f="rotate"+Mf[d];l[f]&&(c[f]=l[f],a.setStaticValue(f,0))}a.render();for(const d in c)a.setStaticValue(d,c[d]);a.scheduleRender()}getProjectionStyles(a){var s,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Y7;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=mi(a==null?void 0:a.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=mi(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!gn(this.latestValues)&&(g.transform=d?d({},""):"none",this.hasProjected=!1),g}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=Af(this.projectionDeltaWithTransform,this.treeScale,p),d&&(c.transform=d(p,c.transform));const{x:b,y:h}=this.projectionDelta;c.transformOrigin=`${b.origin*100}% ${h.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(s=p.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:c.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const g in zi){if(p[g]===void 0)continue;const{correct:y,applyTo:$}=zi[g],C=c.transform==="none"?p[g]:y(p[g],f);if($){const x=$.length;for(let E=0;E<x;E++)c[$[E]]=C}else c[g]=C}return this.options.layoutId&&(c.pointerEvents=f===this?mi(a==null?void 0:a.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(Rf),this.root.sharedNodes.clear()}}}function Z7(e){e.updateLayout()}function X7(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],b=ot(p);p.min=r[f].min,p.max=p.min+b}):Nh(i,n.layoutBox,r)&<(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],b=ot(r[f]);p.max=p.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+b)});const s=nr();Xr(s,r,n.layoutBox);const l=nr();a?Xr(l,e.applyTransform(o,!0),n.measuredBox):Xr(l,r,n.layoutBox);const c=!Lh(s);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:b}=f;if(p&&b){const h=Me();Jr(h,n.layoutBox,p.layoutBox);const g=Me();Jr(g,r,b.layoutBox),Vh(h,g)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=h,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function J7(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 Q7(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function eC(e){e.clearSnapshot()}function Rf(e){e.clearMeasurements()}function tC(e){e.isLayoutDirty=!1}function nC(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ff(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rC(e){e.resolveTargetDelta()}function oC(e){e.calcProjection()}function iC(e){e.resetRotation()}function aC(e){e.removeLeadSnapshot()}function Bf(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 If(e,t,n,r){e.min=Pe(t.min,n.min,r),e.max=Pe(t.max,n.max,r)}function sC(e,t,n,r){If(e.x,t.x,n.x,r),If(e.y,t.y,n.y,r)}function lC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const uC={duration:.45,ease:[.4,0,.1,1]},Lf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Vf=Lf("applewebkit/")&&!Lf("chrome/")?Math.round:ke;function Of(e){e.min=Vf(e.min),e.max=Vf(e.max)}function cC(e){Of(e.x),Of(e.y)}function Nh(e,t,n){return e==="position"||e==="preserve-aspect"&&!ul(Tf(t),Tf(n),.2)}const dC=Oh({attachResizeListener:(e,t)=>Nt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),$s={current:void 0},Kh=Oh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$s.current){const e=new dC({});e.mount(window),e.setOptions({layoutScroll:!0}),$s.current=e}return $s.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),fC={pan:{Feature:T7},drag:{Feature:S7,ProjectionNode:Kh,MeasureLayout:Fh}},pC=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function bC(e){const t=pC.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const hC=4;function pl(e,t,n=1){ht(n<=hC,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=bC(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return wh(a)?parseFloat(a):a}else return Ui(o)?pl(o,t,n+1):o}function mC(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!Ui(i))return;const a=pl(i,r);a&&o.set(a)});for(const o in t){const i=t[o];if(!Ui(i))continue;const a=pl(i,r);a&&(t[o]=a,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const gC=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),jh=e=>gC.has(e),vC=e=>Object.keys(e).some(jh),si=e=>e===vr||e===ie,Nf=(e,t)=>parseFloat(e.split(", ")[t]),Kf=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Nf(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?Nf(i[1],e):0}},yC=new Set(["x","y","z"]),$C=yo.filter(e=>!yC.has(e));function xC(e){const t=[];return $C.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),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:Kf(4,13),y:Kf(5,14)};cr.translateX=cr.x;cr.translateY=cr.y;const wC=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(c=>{s[c]=cr[c](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(c=>{const d=t.getValue(c);d&&d.jump(s[c]),e[c]=cr[c](l,i)}),e},CC=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(jh);let i=[],a=!1;const s=[];if(o.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let d=n[l],f=Lr(d);const p=t[l];let b;if(Wi(p)){const h=p.length,g=p[0]===null?1:0;d=p[g],f=Lr(d);for(let y=g;y<h&&p[y]!==null;y++)b?ht(Lr(p[y])===b,"All keyframes must be of the same type"):(b=Lr(p[y]),ht(b===f||si(f)&&si(b),"Keyframes must be of the same dimension as the current value"))}else b=Lr(p);if(f!==b)if(si(f)&&si(b)){const h=c.get();typeof h=="string"&&c.set(parseFloat(h)),typeof p=="string"?t[l]=parseFloat(p):Array.isArray(p)&&b===ie&&(t[l]=p.map(parseFloat))}else f!=null&&f.transform&&(b!=null&&b.transform)&&(d===0||p===0)?d===0?c.set(b.transform(d)):t[l]=f.transform(p):(a||(i=xC(e),a=!0),s.push(l),r[l]=r[l]!==void 0?r[l]:t[l],c.jump(p))}),s.length){const l=s.indexOf("height")>=0?window.pageYOffset:null,c=wC(t,e,s);return i.length&&i.forEach(([d,f])=>{e.getValue(d).set(f)}),e.render(),pa&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:t,transitionEnd:r}};function DC(e,t,n,r){return vC(t)?CC(e,t,n,r):{target:t,transitionEnd:r}}const EC=(e,t,n,r)=>{const o=mC(e,t,r);return t=o.target,r=o.transitionEnd,DC(e,t,n,r)},bl={current:null},_h={current:!1};function PC(){if(_h.current=!0,!!pa)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>bl.current=e.matches;e.addListener(t),t()}else bl.current=!1}function SC(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(tt(i))e.addValue(o,i),Zi(r)&&r.add(o),process.env.NODE_ENV==="development"&&Mu(i.version==="11.0.6",`Attempting to mix Framer Motion versions ${i.version} with 11.0.6 may not work as expected.`);else if(tt(a))e.addValue(o,ur(i,{owner:e})),Zi(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,ur(s!==void 0?s:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const jf=new WeakMap,zh=Object.keys(lo),TC=zh.length,_f=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],AC=cu.length;class MC{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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=()=>De.render(this.render,!1,!0);const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=n.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=ha(n),this.isVariantNode=Fb(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{});for(const f in d){const p=d[f];s[f]!==void 0&&tt(p)&&(p.set(s[f],!1),Zi(c)&&c.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,jf.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)),_h.current||PC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:bl.current,process.env.NODE_ENV!=="production"&&Mu(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(){jf.delete(this.current),this.projection&&this.projection.unmount(),Wt(this.notifyUpdate),Wt(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[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&&De.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}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):ht(!1,l)}for(let l=0;l<TC;l++){const c=zh[l],{isEnabled:d,Feature:f,ProjectionNode:p,MeasureLayout:b}=lo[c];p&&(a=p),d(n)&&(!this.features[c]&&f&&(this.features[c]=new f(this)),b&&(s=b))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:d,dragConstraints:f,layoutScroll:p,layoutRoot:b}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!d||f&&er(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:i,layoutScroll:p,layoutRoot:b})}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}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(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<_f.length;r++){const o=_f[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i=t["on"+o];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=SC(this,this.scrapeMotionValuesFromProps(t,this.prevProps),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<AC;r++){const o=cu[r],i=this.props[o];(so(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){n!==this.values.get(t)&&(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=ur(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=yu(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!tt(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 Au),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Uh extends MC{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]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},o){const i=Ww(r,t||{},this);if(o){Uw(this,r,i);const a=EC(this,r,i,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function kC(e){return window.getComputedStyle(e)}class RC extends Uh{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(In.has(n)){const r=Du(n);return r&&r.default||0}else{const r=kC(t),o=(Vb(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return kh(t,n)}build(t,n,r,o){bu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return vu(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;tt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){_b(t,n,r,o)}}class FC extends Uh{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(In.has(n)){const r=Du(n);return r&&r.default||0}return n=zb.has(n)?n:su(n),t.getAttribute(n)}measureInstanceViewportBox(){return Me()}scrapeMotionValuesFromProps(t,n){return Hb(t,n)}build(t,n,r,o){mu(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){Ub(t,n,r,o)}mount(t){this.isSVGTag=gu(t.tagName),super.mount(t)}}const BC=(e,t)=>fu(e)?new FC(t,{enableHardwareAcceleration:!1}):new RC(t,{enableHardwareAcceleration:!0}),IC={layout:{ProjectionNode:Kh,MeasureLayout:Fh}},LC={...s7,...C6,...fC,...IC},Ln=F2((e,t)=>c6(e,t,LC,BC));function Hh(){const e=u.useRef(!1);return au(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function VC(){const e=Hh(),[t,n]=u.useState(0),r=u.useCallback(()=>{e.current&&n(t+1)},[t]);return[u.useCallback(()=>De.postRender(r),[r]),t]}class OC extends Le.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 NC({children:e,isPresent:t}){const n=u.useId(),r=u.useRef(null),o=u.useRef({width:0,height:0,top:0,left:0});return u.useInsertionEffect(()=>{const{width:i,height:a,top:s,left:l}=o.current;if(t||!r.current||!i||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
|
|
103
|
+
`;function D2({children:e,isGrid:t,renderCount:n}){return B.jsx(C2,{isGrid:t,max:0,renderCount:n??(()=>{}),children:e})}const kb=d.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),pi=d.createContext({}),bi=d.createContext(null),hi=typeof document<"u",lu=hi?d.useLayoutEffect:d.useEffect,Rb=d.createContext({strict:!1}),uu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),E2="framerAppearId",Fb="data-"+uu(E2),Bb={skipAnimations:!1,useManualTiming:!1};class Ld{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 P2(e){let t=new Ld,n=new Ld,r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const f=c&&o,p=f?t:n;return u&&i.add(l),p.add(l)&&f&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),i.delete(l)},process:l=>{if(o){a=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const c=t.order[u];i.has(c)&&(s.schedule(c),e()),c(l)}o=!1,a&&(a=!1,s.process(l))}};return s}const aa=["prepare","read","update","preRender","render","postRender"],S2=40;function Ib(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=aa.reduce((f,p)=>(f[p]=P2(()=>n=!0),f),{}),i=f=>{a[f].process(o)},s=()=>{const f=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(f-o.timestamp,S2),1),o.timestamp=f,o.isProcessing=!0,aa.forEach(i),o.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,o.isProcessing||e(s)};return{schedule:aa.reduce((f,p)=>{const b=a[p];return f[p]=(h,g=!1,y=!1)=>(n||l(),b.schedule(h,g,y)),f},{}),cancel:f=>aa.forEach(p=>a[p].cancel(f)),state:o,steps:a}}const{schedule:cu,cancel:$A}=Ib(queueMicrotask,!1);function T2(e,t,n,r){const{visualElement:o}=d.useContext(pi),a=d.useContext(Rb),i=d.useContext(bi),s=d.useContext(kb).reducedMotion,l=d.useRef();r=r||a.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:s}));const u=l.current;d.useInsertionEffect(()=>{u&&u.update(n,i)});const c=d.useRef(!!(n[Fb]&&!window.HandoffComplete));return lu(()=>{u&&(cu.postRender(u.render),c.current&&u.animationState&&u.animationState.animateChanges())}),d.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function er(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function A2(e,t,n){return d.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):er(n)&&(n.current=r))},[t])}function so(e){return typeof e=="string"||Array.isArray(e)}function mi(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const du=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],fu=["initial",...du];function gi(e){return mi(e.animate)||fu.some(t=>so(e[t]))}function Lb(e){return!!(gi(e)||e.variants)}function M2(e,t){if(gi(e)){const{initial:n,animate:r}=e;return{initial:n===!1||so(n)?n:void 0,animate:so(r)?r:void 0}}return e.inherit!==!1?t:{}}function k2(e){const{initial:t,animate:n}=M2(e,d.useContext(pi));return d.useMemo(()=>({initial:t,animate:n}),[Vd(t),Vd(n)])}function Vd(e){return Array.isArray(e)?e.join(" "):e}const Od={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"]},lo={};for(const e in Od)lo[e]={isEnabled:t=>Od[e].some(n=>!!t[n])};function R2(e){for(const t in e)lo[t]={...lo[t],...e[t]}}const pu=d.createContext({}),Vb=d.createContext({}),F2=Symbol.for("motionComponentSymbol");function B2({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&R2(e);function a(s,l){let u;const c={...d.useContext(kb),...s,layoutId:I2(s)},{isStatic:f}=c,p=k2(s),b=r(s,f);if(!f&&hi){p.visualElement=T2(o,b,c,t);const h=d.useContext(Vb),g=d.useContext(Rb).strict;p.visualElement&&(u=p.visualElement.loadFeatures(c,g,e,h))}return A.createElement(pi.Provider,{value:p},u&&p.visualElement?A.createElement(u,{visualElement:p.visualElement,...c}):null,n(o,s,A2(b,p.visualElement,l),b,f,p.visualElement))}const i=d.forwardRef(a);return i[F2]=o,i}function I2({layoutId:e}){const t=d.useContext(pu).id;return t&&e!==void 0?t+"-"+e:e}function L2(e){function t(r,o={}){return B2(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 V2=["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:!!(V2.indexOf(e)>-1||/[A-Z]/.test(e))}const Ha={};function O2(e){Object.assign(Ha,e)}const xo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],In=new Set(xo);function Ob(e,{layout:t,layoutId:n}){return In.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ha[e]||e==="opacity")}const nt=e=>!!(e&&e.getVelocity),N2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},K2=xo.length;function j2(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let a="";for(let i=0;i<K2;i++){const s=xo[i];if(e[s]!==void 0){const l=N2[s]||s;a+=`${l}(${e[s]}) `}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,r?"":a):n&&r&&(a="none"),a}const Nb=e=>t=>typeof t=="string"&&t.startsWith(e),Kb=Nb("--"),_2=Nb("var(--"),Wa=e=>_2(e)&&z2.test(e),z2=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,U2=(e,t)=>t&&typeof e=="number"?t.transform(e):e,cn=(e,t,n)=>n>t?t:n<e?e:n,vr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qr={...vr,transform:e=>cn(0,1,e)},ia={...vr,default:1},Zr=e=>Math.round(e*1e5)/1e5,hu=/(-)?([\d]*\.?[\d])+/g,H2=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,W2=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function wo(e){return typeof e=="string"}const Co=e=>({test:t=>wo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),en=Co("deg"),Mt=Co("%"),ie=Co("px"),G2=Co("vh"),Y2=Co("vw"),Nd={...Mt,parse:e=>Mt.parse(e)/100,transform:e=>Mt.transform(e*100)},Kd={...vr,transform:Math.round},jb={borderWidth:ie,borderTopWidth:ie,borderRightWidth:ie,borderBottomWidth:ie,borderLeftWidth:ie,borderRadius:ie,radius:ie,borderTopLeftRadius:ie,borderTopRightRadius:ie,borderBottomRightRadius:ie,borderBottomLeftRadius:ie,width:ie,maxWidth:ie,height:ie,maxHeight:ie,size:ie,top:ie,right:ie,bottom:ie,left:ie,padding:ie,paddingTop:ie,paddingRight:ie,paddingBottom:ie,paddingLeft:ie,margin:ie,marginTop:ie,marginRight:ie,marginBottom:ie,marginLeft:ie,rotate:en,rotateX:en,rotateY:en,rotateZ:en,scale:ia,scaleX:ia,scaleY:ia,scaleZ:ia,skew:en,skewX:en,skewY:en,distance:ie,translateX:ie,translateY:ie,translateZ:ie,x:ie,y:ie,z:ie,perspective:ie,transformPerspective:ie,opacity:qr,originX:Nd,originY:Nd,originZ:ie,zIndex:Kd,fillOpacity:qr,strokeOpacity:qr,numOctaves:Kd};function mu(e,t,n,r){const{style:o,vars:a,transform:i,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const f in t){const p=t[f];if(Kb(f)){a[f]=p;continue}const b=jb[f],h=U2(p,b);if(In.has(f)){if(l=!0,i[f]=h,!c)continue;p!==(b.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,s[f]=h):o[f]=h}if(t.transform||(l||r?o.transform=j2(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:f="50%",originY:p="50%",originZ:b=0}=s;o.transformOrigin=`${f} ${p} ${b}`}}const gu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _b(e,t,n){for(const r in t)!nt(t[r])&&!Ob(r,n)&&(e[r]=t[r])}function q2({transformTemplate:e},t,n){return d.useMemo(()=>{const r=gu();return mu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Z2(e,t,n){const r=e.style||{},o={};return _b(o,r,e),Object.assign(o,q2(e,t,n)),o}function X2(e,t,n){const r={},o=Z2(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 J2=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 Ga(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||J2.has(e)}let zb=e=>!Ga(e);function Q2(e){e&&(zb=t=>t.startsWith("on")?!Ga(t):e(t))}try{Q2(require("@emotion/is-prop-valid").default)}catch{}function e6(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(zb(o)||n===!0&&Ga(o)||!t&&!Ga(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function jd(e,t,n){return typeof e=="string"?e:ie.transform(t+n*e)}function t6(e,t,n){const r=jd(t,e.x,e.width),o=jd(n,e.y,e.height);return`${r} ${o}`}const n6={offset:"stroke-dashoffset",array:"stroke-dasharray"},r6={offset:"strokeDashoffset",array:"strokeDasharray"};function o6(e,t,n=1,r=0,o=!0){e.pathLength=1;const a=o?n6:r6;e[a.offset]=ie.transform(-r);const i=ie.transform(t),s=ie.transform(n);e[a.array]=`${i} ${s}`}function vu(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:a,pathLength:i,pathSpacing:s=1,pathOffset:l=0,...u},c,f,p){if(mu(e,u,c,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:b,style:h,dimensions:g}=e;b.transform&&(g&&(h.transform=b.transform),delete b.transform),g&&(o!==void 0||a!==void 0||h.transform)&&(h.transformOrigin=t6(g,o!==void 0?o:.5,a!==void 0?a:.5)),t!==void 0&&(b.x=t),n!==void 0&&(b.y=n),r!==void 0&&(b.scale=r),i!==void 0&&o6(b,i,s,l,!1)}const Ub=()=>({...gu(),attrs:{}}),yu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function a6(e,t,n,r){const o=d.useMemo(()=>{const a=Ub();return vu(a,t,{enableHardwareAcceleration:!1},yu(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};_b(a,e.style,e),o.style={...a,...o.style}}return o}function i6(e=!1){return(n,r,o,{latestValues:a},i)=>{const l=(bu(n)?a6:X2)(r,a,i,n),u=e6(r,typeof n=="string",e),c=n!==d.Fragment?{...u,...l,ref:o}:{},{children:f}=r,p=d.useMemo(()=>nt(f)?f.get():f,[f]);return d.createElement(n,{...c,children:p})}}function Hb(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const Wb=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 Gb(e,t,n,r){Hb(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Wb.has(o)?o:uu(o),t.attrs[o])}function $u(e,t){const{style:n}=e,r={};for(const o in n)(nt(n[o])||t.style&&nt(t.style[o])||Ob(o,e))&&(r[o]=n[o]);return r}function Yb(e,t){const n=$u(e,t);for(const r in e)if(nt(e[r])||nt(t[r])){const o=xo.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function xu(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 qb(e){const t=d.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ya=e=>Array.isArray(e),s6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),l6=e=>Ya(e)?e[e.length-1]||0:e;function va(e){const t=nt(e)?e.get():e;return s6(t)?t.toValue():t}function u6({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,a){const i={latestValues:c6(r,o,a,e),renderState:t()};return n&&(i.mount=s=>n(r,s,i)),i}const Zb=e=>(t,n)=>{const r=d.useContext(pi),o=d.useContext(bi),a=()=>u6(e,t,r,o);return n?a():qb(a)};function c6(e,t,n,r){const o={},a=r(e,{});for(const p in a)o[p]=va(a[p]);let{initial:i,animate:s}=e;const l=gi(e),u=Lb(e);t&&u&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),s===void 0&&(s=t.animate));let c=n?n.initial===!1:!1;c=c||i===!1;const f=c?s:i;return f&&typeof f!="boolean"&&!mi(f)&&(Array.isArray(f)?f:[f]).forEach(b=>{const h=xu(e,b);if(!h)return;const{transitionEnd:g,transition:y,...$}=h;for(const C in $){let x=$[C];if(Array.isArray(x)){const E=c?x.length-1:0;x=x[E]}x!==null&&(o[C]=x)}for(const C in g)o[C]=g[C]}),o}const Fe=e=>e,{schedule:Pe,cancel:Gt,state:Ue,steps:fs}=Ib(typeof requestAnimationFrame<"u"?requestAnimationFrame:Fe,!0),d6={useVisualState:Zb({scrapeMotionValuesFromProps:Yb,createRenderState:Ub,onMount:(e,t,{renderState:n,latestValues:r})=>{Pe.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Pe.render(()=>{vu(n,r,{enableHardwareAcceleration:!1},yu(t.tagName),e.transformTemplate),Gb(t,n)})}})},f6={useVisualState:Zb({scrapeMotionValuesFromProps:$u,createRenderState:gu})};function p6(e,{forwardMotionProps:t=!1},n,r){return{...bu(e)?d6:f6,preloadedFeatures:n,useRender:i6(t),createVisualElement:r,Component:e}}function Kt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Xb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function vi(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const b6=e=>t=>Xb(t)&&e(t,vi(t));function _t(e,t,n,r){return Kt(e,t,b6(n),r)}const h6=(e,t)=>n=>t(e(n)),zt=(...e)=>e.reduce(h6);function Jb(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const _d=Jb("dragHorizontal"),zd=Jb("dragVertical");function Qb(e){let t=!1;if(e==="y")t=zd();else if(e==="x")t=_d();else{const n=_d(),r=zd();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function eh(){const e=Qb(!0);return e?(e(),!1):!0}class fn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Ud(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(a,i)=>{if(a.pointerType==="touch"||eh())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[r]&&Pe.update(()=>s[r](a,i))};return _t(e.current,n,o,{passive:!e.getProps()[r]})}class m6 extends fn{mount(){this.unmount=zt(Ud(this.node,!0),Ud(this.node,!1))}unmount(){}}class g6 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=zt(Kt(this.node.current,"focus",()=>this.onFocus()),Kt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const th=(e,t)=>t?e===t?!0:th(e,t.parentElement):!1;function ps(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,vi(n))}class v6 extends fn{constructor(){super(...arguments),this.removeStartListeners=Fe,this.removeEndListeners=Fe,this.removeAccessibleListeners=Fe,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),a=_t(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:f}=this.node.getProps();Pe.update(()=>{!f&&!th(this.node.current,s.target)?c&&c(s,l):u&&u(s,l)})},{passive:!(r.onTap||r.onPointerUp)}),i=_t(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=zt(a,i),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const i=s=>{s.key!=="Enter"||!this.checkPressEnd()||ps("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Pe.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Kt(this.node.current,"keyup",i),ps("down",(s,l)=>{this.startPress(s,l)})},n=Kt(this.node.current,"keydown",t),r=()=>{this.isPressing&&ps("cancel",(a,i)=>this.cancelPress(a,i))},o=Kt(this.node.current,"blur",r);this.removeAccessibleListeners=zt(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Pe.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!eh()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Pe.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=_t(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Kt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=zt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const ol=new WeakMap,bs=new WeakMap,y6=e=>{const t=ol.get(e.target);t&&t(e)},$6=e=>{e.forEach(y6)};function x6({root:e,...t}){const n=e||document;bs.has(n)||bs.set(n,{});const r=bs.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver($6,{root:e,...t})),r[o]}function w6(e,t,n){const r=x6(t);return ol.set(e,n),r.observe(e),()=>{ol.delete(e),r.unobserve(e)}}const C6={some:0,all:1};class D6 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:a}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:C6[o]},s=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,a&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),p=u?c:f;p&&p(l)};return w6(this.node.current,i,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(E6(t,n))&&this.startObserver()}unmount(){}}function E6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const P6={inView:{Feature:D6},tap:{Feature:v6},focus:{Feature:g6},hover:{Feature:m6}};function nh(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 S6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function T6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function yi(e,t,n){const r=e.getProps();return xu(r,t,n!==void 0?n:r.custom,S6(e),T6(e))}let Do=Fe,mt=Fe;process.env.NODE_ENV!=="production"&&(Do=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},mt=(e,t)=>{if(!e)throw new Error(t)});const an=e=>e*1e3,Ut=e=>e/1e3,A6={current:!1},rh=e=>Array.isArray(e)&&typeof e[0]=="number";function oh(e){return!!(!e||typeof e=="string"&&ah[e]||rh(e)||Array.isArray(e)&&e.every(oh))}const Hr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ah={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 ih(e){if(e)return rh(e)?Hr(e):Array.isArray(e)?e.map(ih):ah[e]}function M6(e,t,n,{delay:r=0,duration:o,repeat:a=0,repeatType:i="loop",ease:s,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=ih(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:i==="reverse"?"alternate":"normal"})}function k6(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const sh=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,R6=1e-7,F6=12;function B6(e,t,n,r,o){let a,i,s=0;do i=t+(n-t)/2,a=sh(i,r,o)-e,a>0?n=i:t=i;while(Math.abs(a)>R6&&++s<F6);return i}function Eo(e,t,n,r){if(e===t&&n===r)return Fe;const o=a=>B6(a,0,1,e,n);return a=>a===0||a===1?a:sh(o(a),t,r)}const I6=Eo(.42,0,1,1),L6=Eo(0,0,.58,1),lh=Eo(.42,0,.58,1),V6=e=>Array.isArray(e)&&typeof e[0]!="number",uh=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ch=e=>t=>1-e(1-t),wu=e=>1-Math.sin(Math.acos(e)),dh=ch(wu),O6=uh(wu),fh=Eo(.33,1.53,.69,.99),Cu=ch(fh),N6=uh(Cu),K6=e=>(e*=2)<1?.5*Cu(e):.5*(2-Math.pow(2,-10*(e-1))),Hd={linear:Fe,easeIn:I6,easeInOut:lh,easeOut:L6,circIn:wu,circInOut:O6,circOut:dh,backIn:Cu,backInOut:N6,backOut:fh,anticipate:K6},Wd=e=>{if(Array.isArray(e)){mt(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Eo(t,n,r,o)}else if(typeof e=="string")return mt(Hd[e]!==void 0,`Invalid easing type '${e}'`),Hd[e];return e},uo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Te=(e,t,n)=>e+(t-e)*n;function hs(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 j6({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,a=0,i=0;if(!t)o=a=i=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=hs(l,s,e+1/3),a=hs(l,s,e),i=hs(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(i*255),alpha:r}}const Du=(e,t)=>n=>!!(wo(n)&&W2.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ph=(e,t,n)=>r=>{if(!wo(r))return r;const[o,a,i,s]=r.match(hu);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}},_6=e=>cn(0,255,e),ms={...vr,transform:e=>Math.round(_6(e))},En={test:Du("rgb","red"),parse:ph("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ms.transform(e)+", "+ms.transform(t)+", "+ms.transform(n)+", "+Zr(qr.transform(r))+")"};function z6(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:Du("#"),parse:z6,transform:En.transform},tr={test:Du("hsl","hue"),parse:ph("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Mt.transform(Zr(t))+", "+Mt.transform(Zr(n))+", "+Zr(qr.transform(r))+")"},gs=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},U6=[al,En,tr],H6=e=>U6.find(t=>t.test(e));function Gd(e){const t=H6(e);mt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===tr&&(n=j6(n)),n}const Yd=(e,t)=>{const n=Gd(e),r=Gd(t),o={...n};return a=>(o.red=gs(n.red,r.red,a),o.green=gs(n.green,r.green,a),o.blue=gs(n.blue,r.blue,a),o.alpha=Te(n.alpha,r.alpha,a),En.transform(o))},Ge={test:e=>En.test(e)||al.test(e)||tr.test(e),parse:e=>En.test(e)?En.parse(e):tr.test(e)?tr.parse(e):al.parse(e),transform:e=>wo(e)?e:e.hasOwnProperty("red")?En.transform(e):tr.transform(e)};function W6(e){var t,n;return isNaN(e)&&wo(e)&&(((t=e.match(hu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(H2))===null||n===void 0?void 0:n.length)||0)>0}const bh="number",hh="color",G6="var",Y6="var(",qd="${}",Zd=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function qa(e){const t=e.toString(),n=t.match(Zd)||[],r=[],o={color:[],number:[],var:[]},a=[];for(let l=0;l<n.length;l++){const u=n[l];Ge.test(u)?(o.color.push(l),a.push(hh),r.push(Ge.parse(u))):u.startsWith(Y6)?(o.var.push(l),a.push(G6),r.push(u)):(o.number.push(l),a.push(bh),r.push(parseFloat(u)))}const s=t.replace(Zd,qd).split(qd);return{values:r,split:s,indexes:o,types:a}}function mh(e){return qa(e).values}function gh(e){const{split:t,types:n}=qa(e),r=t.length;return o=>{let a="";for(let i=0;i<r;i++)if(a+=t[i],o[i]!==void 0){const s=n[i];s===bh?a+=Zr(o[i]):s===hh?a+=Ge.transform(o[i]):a+=o[i]}return a}}const q6=e=>typeof e=="number"?0:e;function Z6(e){const t=mh(e);return gh(e)(t.map(q6))}const dn={test:W6,parse:mh,createTransformer:gh,getAnimatableNone:Z6};function il(e,t){return n=>n>0?t:e}function X6(e,t){return n=>Te(e,t,n)}function Eu(e){return typeof e=="number"?X6:typeof e=="string"?Wa(e)?il:Ge.test(e)?Yd:ew:Array.isArray(e)?vh:typeof e=="object"?Ge.test(e)?Yd:J6:il}function vh(e,t){const n=[...e],r=n.length,o=e.map((a,i)=>Eu(a)(a,t[i]));return a=>{for(let i=0;i<r;i++)n[i]=o[i](a);return n}}function J6(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Eu(e[o])(e[o],t[o]));return o=>{for(const a in r)n[a]=r[a](o);return n}}function Q6(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const i=t.types[a],s=e.indexes[i][o[i]],l=(n=e.values[s])!==null&&n!==void 0?n:0;r[a]=l,o[i]++}return r}const ew=(e,t)=>{const n=dn.createTransformer(t),r=qa(e),o=qa(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?zt(vh(Q6(r,o),o.values),n):(Do(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),il(e,t))};function yh(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Te(e,t,n):Eu(e)(e,t)}function tw(e,t,n){const r=[],o=n||yh,a=e.length-1;for(let i=0;i<a;i++){let s=o(e[i],e[i+1]);if(t){const l=Array.isArray(t)?t[i]||Fe:t;s=zt(l,s)}r.push(s)}return r}function nw(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;if(mt(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=tw(t,r,o),s=i.length,l=u=>{let c=0;if(s>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const f=uo(e[c],e[c+1],u);return i[c](f)};return n?u=>l(cn(e[0],e[a-1],u)):l}function rw(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=uo(0,t,r);e.push(Te(n,1,o))}}function ow(e){const t=[0];return rw(t,e.length-1),t}function aw(e,t){return e.map(n=>n*t)}function iw(e,t){return e.map(()=>t||lh).splice(0,e.length-1)}function Za({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=V6(r)?r.map(Wd):Wd(r),a={done:!1,value:t[0]},i=aw(n&&n.length===t.length?n:ow(t),e),s=nw(i,t,{ease:Array.isArray(o)?o:iw(t,o)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}function $h(e,t){return t?e*(1e3/t):0}const sw=5;function xh(e,t,n){const r=Math.max(t-sw,0);return $h(n-e(r),t-r)}const vs=.001,lw=.01,Xd=10,uw=.05,cw=1;function dw({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a;Do(e<=an(Xd),"Spring duration must be 10 seconds or less");let i=1-t;i=cn(uw,cw,i),e=cn(lw,Xd,Ut(e)),i<1?(o=u=>{const c=u*i,f=c*e,p=c-n,b=sl(u,i),h=Math.exp(-f);return vs-p/b*h},a=u=>{const f=u*i*e,p=f*n+n,b=Math.pow(i,2)*Math.pow(u,2)*e,h=Math.exp(-f),g=sl(Math.pow(u,2),i);return(-o(u)+vs>0?-1:1)*((p-b)*h)/g}):(o=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-vs+c*f},a=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const s=5/e,l=pw(o,a,s);if(e=an(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:i*2*Math.sqrt(r*u),duration:e}}}const fw=12;function pw(e,t,n){let r=n;for(let o=1;o<fw;o++)r=r-e(r)/t(r);return r}function sl(e,t){return e*Math.sqrt(1-t*t)}const bw=["duration","bounce"],hw=["stiffness","damping","mass"];function Jd(e,t){return t.some(n=>e[n]!==void 0)}function mw(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Jd(e,hw)&&Jd(e,bw)){const n=dw(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function wh({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],a=e[e.length-1],i={done:!1,value:o},{stiffness:s,damping:l,mass:u,duration:c,velocity:f,isResolvedFromDuration:p}=mw({...r,velocity:-Ut(r.velocity||0)}),b=f||0,h=l/(2*Math.sqrt(s*u)),g=a-o,y=Ut(Math.sqrt(s/u)),$=Math.abs(g)<5;n||(n=$?.01:2),t||(t=$?.005:.5);let C;if(h<1){const x=sl(y,h);C=E=>{const P=Math.exp(-h*y*E);return a-P*((b+h*y*g)/x*Math.sin(x*E)+g*Math.cos(x*E))}}else if(h===1)C=x=>a-Math.exp(-y*x)*(g+(b+y*g)*x);else{const x=y*Math.sqrt(h*h-1);C=E=>{const P=Math.exp(-h*y*E),M=Math.min(x*E,300);return a-P*((b+h*y*g)*Math.sinh(M)+x*g*Math.cosh(M))/x}}return{calculatedDuration:p&&c||null,next:x=>{const E=C(x);if(p)i.done=x>=c;else{let P=b;x!==0&&(h<1?P=xh(C,x,E):P=0);const M=Math.abs(P)<=n,K=Math.abs(a-E)<=t;i.done=M&&K}return i.value=i.done?a:E,i}}}function Qd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:i,min:s,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],p={done:!1,value:f},b=v=>s!==void 0&&v<s||l!==void 0&&v>l,h=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,$=i===void 0?y:i(y);$!==y&&(g=$-f);const C=v=>-g*Math.exp(-v/r),x=v=>$+C(v),E=v=>{const V=C(v),F=x(v);p.done=Math.abs(V)<=u,p.value=p.done?$:F};let P,M;const K=v=>{b(p.value)&&(P=v,M=wh({keyframes:[p.value,h(p.value)],velocity:xh(x,v,p.value),damping:o,stiffness:a,restDelta:u,restSpeed:c}))};return K(0),{calculatedDuration:null,next:v=>{let V=!1;return!M&&P===void 0&&(V=!0,E(v),K(v)),P!==void 0&&v>P?M.next(v-P):(!V&&E(v),p)}}}let ya;function gw(){ya=void 0}const Pn={now:()=>(ya===void 0&&Pn.set(Ue.isProcessing||Bb.useManualTiming?Ue.timestamp:performance.now()),ya),set:e=>{ya=e,queueMicrotask(gw)}},vw=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Pe.update(t,!0),stop:()=>Gt(t),now:()=>Ue.isProcessing?Ue.timestamp:Pn.now()}},ef=2e4;function tf(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ef;)t+=n,r=e.next(t);return t>=ef?1/0:t}const yw={decay:Qd,inertia:Qd,tween:Za,keyframes:Za,spring:wh},$w=e=>e/100;function Xa({autoplay:e=!0,delay:t=0,driver:n=vw,keyframes:r,type:o="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:f,...p}){let b=1,h=!1,g,y;const $=()=>{y=new Promise(D=>{g=D})};$();let C;const x=yw[o]||Za;let E;x!==Za&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&mt(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),E=zt($w,yh(r[0],r[1])),r=[0,100]);const P=x({...p,keyframes:r});let M;s==="mirror"&&(M=x({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let K="idle",v=null,V=null,F=null;P.calculatedDuration===null&&a&&(P.calculatedDuration=tf(P));const{calculatedDuration:k}=P;let I=1/0,T=1/0;k!==null&&(I=k+i,T=I*(a+1)-i);let L=0;const j=D=>{if(V===null)return;b>0&&(V=Math.min(V,D)),b<0&&(V=Math.min(D-T/b,V)),v!==null?L=v:L=Math.round(D-V)*b;const N=L-t*(b>=0?1:-1),q=b>=0?N<0:N>T;L=Math.max(N,0),K==="finished"&&v===null&&(L=T);let J=L,ee=P;if(a){const te=Math.min(L,T)/I;let se=Math.floor(te),oe=te%1;!oe&&te>=1&&(oe=1),oe===1&&se--,se=Math.min(se,a+1),!!(se%2)&&(s==="reverse"?(oe=1-oe,i&&(oe-=i/I)):s==="mirror"&&(ee=M)),J=cn(0,1,oe)*I}const re=q?{done:!1,value:r[0]}:ee.next(J);E&&(re.value=E(re.value));let{done:z}=re;!q&&k!==null&&(z=b>=0?L>=T:L<=0);const Z=v===null&&(K==="finished"||K==="running"&&z);return f&&f(re.value),Z&&W(),re},O=()=>{C&&C.stop(),C=void 0},S=()=>{K="idle",O(),g(),$(),V=F=null},W=()=>{K="finished",c&&c(),O(),g()},Y=()=>{if(h)return;C||(C=n(j));const D=C.now();l&&l(),v!==null?V=D-v:(!V||K==="finished")&&(V=D),K==="finished"&&$(),F=V,v=null,K="running",C.start()};e&&Y();const U={then(D,N){return y.then(D,N)},get time(){return Ut(L)},set time(D){D=an(D),L=D,v!==null||!C||b===0?v=D:V=C.now()-D/b},get duration(){const D=P.calculatedDuration===null?tf(P):P.calculatedDuration;return Ut(D)},get speed(){return b},set speed(D){D===b||!C||(b=D,U.time=Ut(L))},get state(){return K},play:Y,pause:()=>{K="paused",v=L},stop:()=>{h=!0,K!=="idle"&&(K="idle",u&&u(),S())},cancel:()=>{F!==null&&j(F),S()},complete:()=>{K="finished"},sample:D=>(V=0,j(D))};return U}function xw(e){let t;return()=>(t===void 0&&(t=e()),t)}const ww=xw(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Cw=new Set(["opacity","clipPath","filter","transform"]),sa=10,Dw=2e4,Ew=(e,t)=>t.type==="spring"||e==="backgroundColor"||!oh(t.ease);function Pw(e,t,{onUpdate:n,onComplete:r,...o}){if(!(ww()&&Cw.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let i=!1,s,l,u=!1;const c=()=>{l=new Promise(x=>{s=x})};c();let{keyframes:f,duration:p=300,ease:b,times:h}=o;if(Ew(t,o)){const x=Xa({...o,repeat:0,delay:0});let E={done:!1,value:f[0]};const P=[];let M=0;for(;!E.done&&M<Dw;)E=x.sample(M),P.push(E.value),M+=sa;h=void 0,f=P,p=M-sa,b="linear"}const g=M6(e.owner.current,t,f,{...o,duration:p,ease:b,times:h}),y=()=>{u=!1,g.cancel()},$=()=>{u=!0,Pe.update(y),s(),c()};return g.onfinish=()=>{u||(e.set(k6(f,o)),r&&r(),$())},{then(x,E){return l.then(x,E)},attachTimeline(x){return g.timeline=x,g.onfinish=null,Fe},get time(){return Ut(g.currentTime||0)},set time(x){g.currentTime=an(x)},get speed(){return g.playbackRate},set speed(x){g.playbackRate=x},get duration(){return Ut(p)},play:()=>{i||(g.play(),Gt(y))},pause:()=>g.pause(),stop:()=>{if(i=!0,g.playState==="idle")return;const{currentTime:x}=g;if(x){const E=Xa({...o,autoplay:!1});e.setWithVelocity(E.sample(x-sa).value,E.sample(x).value,sa)}$()},complete:()=>{u||g.finish()},cancel:$}}function Sw({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Fe,pause:Fe,stop:Fe,then:a=>(a(),Promise.resolve()),cancel:Fe,complete:Fe});return t?Xa({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const Tw={type:"spring",stiffness:500,damping:25,restSpeed:10},Aw=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Mw={type:"keyframes",duration:.8},kw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Rw=(e,{keyframes:t})=>t.length>2?Mw:In.has(e)?e.startsWith("scale")?Aw(t[1]):Tw:kw,ll=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(dn.test(t)||t==="0")&&!t.startsWith("url(")),Fw=new Set(["brightness","contrast","saturate","opacity"]);function Bw(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(hu)||[];if(!r)return e;const o=n.replace(r,"");let a=Fw.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const Iw=/([a-z-]*)\(.*?\)/g,ul={...dn,getAnimatableNone:e=>{const t=e.match(Iw);return t?t.map(Bw).join(" "):e}},Lw={...jb,color:Ge,backgroundColor:Ge,outlineColor:Ge,fill:Ge,stroke:Ge,borderColor:Ge,borderTopColor:Ge,borderRightColor:Ge,borderBottomColor:Ge,borderLeftColor:Ge,filter:ul,WebkitFilter:ul},Pu=e=>Lw[e];function Ch(e,t){let n=Pu(e);return n!==ul&&(n=dn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Dh=e=>/^0[^.\s]+$/.test(e);function Vw(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Dh(e)}function Ow(e,t,n,r){const o=ll(t,n);let a;Array.isArray(n)?a=[...n]:a=[null,n];const i=r.from!==void 0?r.from:e.get();let s;const l=[];for(let u=0;u<a.length;u++)a[u]===null&&(a[u]=u===0?i:a[u-1]),Vw(a[u])&&l.push(u),typeof a[u]=="string"&&a[u]!=="none"&&a[u]!=="0"&&(s=a[u]);if(o&&l.length&&s)for(let u=0;u<l.length;u++){const c=l[u];a[c]=Ch(t,s)}return a}function Nw({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:a,repeatType:i,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function Su(e,t){return e[t]||e.default||e}const Tu=(e,t,n,r={})=>o=>{const a=Su(r,e)||{},i=a.delay||r.delay||0;let{elapsed:s=0}=r;s=s-an(i);const l=Ow(t,e,n,a),u=l[0],c=l[l.length-1],f=ll(e,u),p=ll(e,c);Do(f===p,`You are trying to animate ${e} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let b={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-s,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()}};if(Nw(a)||(b={...b,...Rw(e,b)}),b.duration&&(b.duration=an(b.duration)),b.repeatDelay&&(b.repeatDelay=an(b.repeatDelay)),!f||!p||A6.current||a.type===!1||Bb.skipAnimations)return Sw(b);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const h=Pw(t,e,b);if(h)return h}return Xa(b)};function Ja(e){return!!(nt(e)&&e.add)}const Eh=e=>/^\-?\d*\.?\d+$/.test(e);function Au(e,t){e.indexOf(t)===-1&&e.push(t)}function Mu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ku{constructor(){this.subscriptions=[]}add(t){return Au(this.subscriptions,t),()=>Mu(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 a=0;a<o;a++){const i=this.subscriptions[a];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const nf=new Set;function Ru(e,t,n){e||nf.has(t)||(console.warn(t),n&&console.warn(n),nf.add(t))}const rf=30,Kw=e=>!isNaN(parseFloat(e));class jw{constructor(t,n={}){this.version="11.0.6",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{const a=Pn.now();this.updatedAt!==a&&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=Kw(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Pn.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ru(!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 ku);const r=this.events[t].add(n);return t==="change"?()=>{r(),Pe.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){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Pn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>rf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,rf);return $h(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 ur(e,t){return new jw(e,t)}const Ph=e=>t=>t.test(e),_w={test:e=>e==="auto",parse:e=>e},Sh=[vr,ie,Mt,en,Y2,G2,_w],Lr=e=>Sh.find(Ph(e)),zw=[...Sh,Ge,dn],Uw=e=>zw.find(Ph(e));function Hw(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ur(n))}function Ww(e,t){const n=yi(e,t);let{transitionEnd:r={},transition:o={},...a}=n?e.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const i in a){const s=l6(a[i]);Hw(e,i,s)}}function Gw(e,t,n){var r,o;const a=Object.keys(t).filter(s=>!e.hasValue(s)),i=a.length;if(i)for(let s=0;s<i;s++){const l=a[s],u=t[l];let c=null;Array.isArray(u)&&(c=u[0]),c===null&&(c=(o=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&o!==void 0?o:t[l]),c!=null&&(typeof c=="string"&&(Eh(c)||Dh(c))?c=parseFloat(c):!Uw(c)&&dn.test(u)&&(c=Ch(l,u)),e.addValue(l,ur(c,{owner:e})),n[l]===void 0&&(n[l]=c),c!==null&&e.setBaseTarget(l,c))}}function Yw(e,t){return t?(t[e]||t.default||t).from:void 0}function qw(e,t,n){const r={};for(const o in e){const a=Yw(o,t);if(a!==void 0)r[o]=a;else{const i=n.getValue(o);i&&(r[o]=i.get())}}return r}function Zw({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Xw(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Th(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:i,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(a=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const f in s){const p=e.getValue(f),b=s[f];if(!p||b===void 0||c&&Zw(c,f))continue;const h={delay:n,elapsed:0,...Su(a||{},f)};if(window.HandoffAppearAnimations){const $=e.getProps()[Fb];if($){const C=window.HandoffAppearAnimations($,f,p,Pe);C!==null&&(h.elapsed=C,h.isHandoff=!0)}}let g=!h.isHandoff&&!Xw(p,b);if(h.type==="spring"&&(p.getVelocity()||h.velocity)&&(g=!1),p.animation&&(g=!1),g)continue;p.start(Tu(f,p,b,e.shouldReduceMotion&&In.has(f)?{type:!1}:h));const y=p.animation;Ja(l)&&(l.add(f),y.then(()=>l.remove(f))),u.push(y)}return i&&Promise.all(u).then(()=>{i&&Ww(e,i)}),u}function cl(e,t,n={}){const r=yi(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const a=r?()=>Promise.all(Th(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=o;return Jw(e,t,u+l,c,f,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,u]=s==="beforeChildren"?[a,i]:[i,a];return l().then(()=>u())}else return Promise.all([a(),i(n.delay)])}function Jw(e,t,n=0,r=0,o=1,a){const i=[],s=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>s-u*r;return Array.from(e.variantChildren).sort(Qw).forEach((u,c)=>{u.notify("AnimationStart",t),i.push(cl(u,t,{...a,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(i)}function Qw(e,t){return e.sortNodePosition(t)}function e7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(a=>cl(e,a,n));r=Promise.all(o)}else if(typeof t=="string")r=cl(e,t,n);else{const o=typeof t=="function"?yi(e,t,n.custom):t;r=Promise.all(Th(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const t7=[...du].reverse(),n7=du.length;function r7(e){return t=>Promise.all(t.map(({animation:n,options:r})=>e7(e,n,r)))}function o7(e){let t=r7(e);const n=i7();let r=!0;const o=(l,u)=>{const c=yi(e,u);if(c){const{transition:f,transitionEnd:p,...b}=c;l={...l,...b,...p}}return l};function a(l){t=l(e)}function i(l,u){const c=e.getProps(),f=e.getVariantContext(!0)||{},p=[],b=new Set;let h={},g=1/0;for(let $=0;$<n7;$++){const C=t7[$],x=n[C],E=c[C]!==void 0?c[C]:f[C],P=so(E),M=C===u?x.isActive:null;M===!1&&(g=$);let K=E===f[C]&&E!==c[C]&&P;if(K&&r&&e.manuallyAnimateOnMount&&(K=!1),x.protectedKeys={...h},!x.isActive&&M===null||!E&&!x.prevProp||mi(E)||typeof E=="boolean")continue;let V=a7(x.prevProp,E)||C===u&&x.isActive&&!K&&P||$>g&&P,F=!1;const k=Array.isArray(E)?E:[E];let I=k.reduce(o,{});M===!1&&(I={});const{prevResolvedValues:T={}}=x,L={...T,...I},j=O=>{V=!0,b.has(O)&&(F=!0,b.delete(O)),x.needsAnimating[O]=!0};for(const O in L){const S=I[O],W=T[O];if(h.hasOwnProperty(O))continue;let Y=!1;Ya(S)&&Ya(W)?Y=!nh(S,W):Y=S!==W,Y?S!==void 0?j(O):b.add(O):S!==void 0&&b.has(O)?j(O):x.protectedKeys[O]=!0}x.prevProp=E,x.prevResolvedValues=I,x.isActive&&(h={...h,...I}),r&&e.blockInitialAnimation&&(V=!1),V&&(!K||F)&&p.push(...k.map(O=>({animation:O,options:{type:C,...l}})))}if(b.size){const $={};b.forEach(C=>{const x=e.getBaseTarget(C);x!==void 0&&($[C]=x)}),p.push({animation:$})}let y=!!p.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(p):Promise.resolve()}function s(l,u,c){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(b=>{var h;return(h=b.animationState)===null||h===void 0?void 0:h.setActive(l,u)}),n[l].isActive=u;const p=i(c,l);for(const b in n)n[b].protectedKeys={};return p}return{animateChanges:i,setActive:s,setAnimateFunction:a,getState:()=>n}}function a7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!nh(t,e):!1}function bn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i7(){return{animate:bn(!0),whileInView:bn(),whileHover:bn(),whileTap:bn(),whileDrag:bn(),whileFocus:bn(),exit:bn()}}class s7 extends fn{constructor(t){super(t),t.animationState||(t.animationState=o7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),mi(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 l7=0;class u7 extends fn{constructor(){super(...arguments),this.id=l7++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const a=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const c7={animation:{Feature:s7},exit:{Feature:u7}},of=(e,t)=>Math.abs(e-t);function d7(e,t){const n=of(e.x,t.x),r=of(e.y,t.y);return Math.sqrt(n**2+r**2)}class Ah{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:a=!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=$s(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,b=d7(f.offset,{x:0,y:0})>=3;if(!p&&!b)return;const{point:h}=f,{timestamp:g}=Ue;this.history.push({...h,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=ys(p,this.transformPagePoint),Pe.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:b,onSessionEnd:h,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=$s(f.type==="pointercancel"?this.lastMoveEventInfo:ys(p,this.transformPagePoint),this.history);this.startEvent&&b&&b(f,y),h&&h(f,y)},!Xb(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const i=vi(t),s=ys(i,this.transformPagePoint),{point:l}=s,{timestamp:u}=Ue;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,$s(s,this.history)),this.removeListeners=zt(_t(this.contextWindow,"pointermove",this.handlePointerMove),_t(this.contextWindow,"pointerup",this.handlePointerUp),_t(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Gt(this.updatePoint)}}function ys(e,t){return t?{point:t(e.point)}:e}function af(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $s({point:e},t){return{point:e,delta:af(e,Mh(t)),offset:af(e,f7(t)),velocity:p7(t,.1)}}function f7(e){return e[0]}function Mh(e){return e[e.length-1]}function p7(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Mh(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>an(t)));)n--;if(!r)return{x:0,y:0};const a=Ut(o.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function at(e){return e.max-e.min}function dl(e,t=0,n=.01){return Math.abs(e-t)<=n}function sf(e,t,n,r=.5){e.origin=r,e.originPoint=Te(t.min,t.max,e.origin),e.scale=at(n)/at(t),(dl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Te(n.min,n.max,e.origin)-e.originPoint,(dl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Xr(e,t,n,r){sf(e.x,t.x,n.x,r?r.originX:void 0),sf(e.y,t.y,n.y,r?r.originY:void 0)}function lf(e,t,n){e.min=n.min+t.min,e.max=e.min+at(t)}function b7(e,t,n){lf(e.x,t.x,n.x),lf(e.y,t.y,n.y)}function uf(e,t,n){e.min=t.min-n.min,e.max=e.min+at(t)}function Jr(e,t,n){uf(e.x,t.x,n.x),uf(e.y,t.y,n.y)}function h7(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Te(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Te(n,e,r.max):Math.min(e,n)),e}function cf(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:cf(e.x,n,o),y:cf(e.y,t,r)}}function df(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 g7(e,t){return{x:df(e.x,t.x),y:df(e.y,t.y)}}function v7(e,t){let n=.5;const r=at(e),o=at(t);return o>r?n=uo(t.min,t.max-r,e.min):r>o&&(n=uo(e.min,e.max-o,t.min)),cn(0,1,n)}function y7(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 $7(e=fl){return e===!1?e=0:e===!0&&(e=fl),{x:ff(e,"left","right"),y:ff(e,"top","bottom")}}function ff(e,t,n){return{min:pf(e,t),max:pf(e,n)}}function pf(e,t){return typeof e=="number"?e:e[t]||0}const bf=()=>({translate:0,scale:1,origin:0,originPoint:0}),nr=()=>({x:bf(),y:bf()}),hf=()=>({min:0,max:0}),Re=()=>({x:hf(),y:hf()});function ut(e){return[e("x"),e("y")]}function kh({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function x7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function w7(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 xs(e){return e===void 0||e===1}function pl({scale:e,scaleX:t,scaleY:n}){return!xs(e)||!xs(t)||!xs(n)}function gn(e){return pl(e)||Rh(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Rh(e){return mf(e.x)||mf(e.y)}function mf(e){return e&&e!=="0%"}function Qa(e,t,n){const r=e-n,o=t*r;return n+o}function gf(e,t,n,r,o){return o!==void 0&&(e=Qa(e,o,r)),Qa(e,n,r)+t}function bl(e,t=0,n=1,r,o){e.min=gf(e.min,t,n,r,o),e.max=gf(e.max,t,n,r,o)}function Fh(e,{x:t,y:n}){bl(e.x,t.translate,t.scale,t.originPoint),bl(e.y,n.translate,n.scale,n.originPoint)}function C7(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let a,i;for(let s=0;s<o;s++){a=n[s],i=a.projectionDelta;const l=a.instance;l&&l.style&&l.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&rr(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,Fh(e,i)),r&&gn(a.latestValues)&&rr(e,a.latestValues))}t.x=vf(t.x),t.y=vf(t.y)}function vf(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function nn(e,t){e.min=e.min+t,e.max=e.max+t}function yf(e,t,[n,r,o]){const a=t[o]!==void 0?t[o]:.5,i=Te(e.min,e.max,a);bl(e,t[n],t[r],i,t.scale)}const D7=["x","scaleX","originX"],E7=["y","scaleY","originY"];function rr(e,t){yf(e.x,t,D7),yf(e.y,t,E7)}function Bh(e,t){return kh(w7(e.getBoundingClientRect(),t))}function P7(e,t,n){const r=Bh(e,n),{scroll:o}=t;return o&&(nn(r.x,o.offset.x),nn(r.y,o.offset.y)),r}const Ih=({current:e})=>e?e.ownerDocument.defaultView:null,S7=new WeakMap;class T7{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=Re(),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(vi(c,"page").point)},a=(c,f)=>{const{drag:p,dragPropagation:b,onDragStart:h}=this.getProps();if(p&&!b&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Qb(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ut(y=>{let $=this.getAxisMotionValue(y).get()||0;if(Mt.test($)){const{projection:C}=this.visualElement;if(C&&C.layout){const x=C.layout.layoutBox[y];x&&($=at(x)*(parseFloat($)/100))}}this.originPoint[y]=$}),h&&Pe.update(()=>h(c,f),!1,!0);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},i=(c,f)=>{const{dragPropagation:p,dragDirectionLock:b,onDirectionLock:h,onDrag:g}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:y}=f;if(b&&this.currentDirection===null){this.currentDirection=A7(y),this.currentDirection!==null&&h&&h(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=()=>ut(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Ah(t,{onSessionStart:o,onStart:a,onMove:i,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ih(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&Pe.update(()=>a(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||!la(t,o,this.currentDirection))return;const a=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=h7(i,this.constraints[t],this.elastic[t])),a.set(i)}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,a=this.constraints;n&&er(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=m7(o.layoutBox,n):this.constraints=!1,this.elastic=$7(r),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&ut(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=y7(o.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!er(t))return!1;const r=t.current;mt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=P7(r,o.root,this.visualElement.getTransformPagePoint());let i=g7(o.layout.layoutBox,a);if(n){const s=n(x7(i));this.hasMutatedConstraints=!!s,s&&(i=kh(s))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:a,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=ut(c=>{if(!la(c,n,this.currentDirection))return;let f=l&&l[c]||{};i&&(f={min:0,max:0});const p=o?200:1e6,b=o?40:1e7,h={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(c,h)});return Promise.all(u).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Tu(t,r,0,n))}stopAnimation(){ut(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ut(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ut(n=>{const{drag:r}=this.getProps();if(!la(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(n);if(o&&o.layout){const{min:i,max:s}=o.layout.layoutBox[n];a.set(t[n]-Te(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!er(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ut(i=>{const s=this.getAxisMotionValue(i);if(s){const l=s.get();o[i]=v7({min:l,max:l},this.constraints[i])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ut(i=>{if(!la(i,t,null))return;const s=this.getAxisMotionValue(i),{min:l,max:u}=this.constraints[i];s.set(Te(l,u,o[i]))})}addListeners(){if(!this.visualElement.current)return;S7.set(this.visualElement,this);const t=this.visualElement.current,n=_t(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();er(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const i=Kt(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ut(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{i(),n(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:i=fl,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:a,dragElastic:i,dragMomentum:s}}}function la(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function A7(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class M7 extends fn{constructor(t){super(t),this.removeGroupControls=Fe,this.removeListeners=Fe,this.controls=new T7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Fe}unmount(){this.removeGroupControls(),this.removeListeners()}}const $f=e=>(t,n)=>{e&&Pe.update(()=>e(t,n))};class k7 extends fn{constructor(){super(...arguments),this.removePointerDownListener=Fe}onPointerDown(t){this.session=new Ah(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ih(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:$f(t),onStart:$f(n),onMove:r,onEnd:(a,i)=>{delete this.session,o&&Pe.update(()=>o(a,i))}}}mount(){this.removePointerDownListener=_t(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function R7(){const e=d.useContext(bi);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 $a={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function xf(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(ie.test(e))e=parseFloat(e);else return e;const n=xf(e,t.target.x),r=xf(e,t.target.y);return`${n}% ${r}%`}},F7={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=dn.parse(e);if(o.length>5)return r;const a=dn.createTransformer(e),i=typeof o[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+i]/=s,o[1+i]/=l;const u=Te(s,l,.5);return typeof o[2+i]=="number"&&(o[2+i]/=u),typeof o[3+i]=="number"&&(o[3+i]/=u),a(o)}};class B7 extends A.default.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:a}=t;O2(I7),a&&(n.group&&n.group.add(a),r&&r.register&&o&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),$a.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:a}=this.props,i=r.projection;return i&&(i.isPresent=a,o||t.layoutDependency!==n||n===void 0?i.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?i.promote():i.relegate()||Pe.postRender(()=>{const s=i.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),cu.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 Lh(e){const[t,n]=R7(),r=d.useContext(pu);return A.default.createElement(B7,{...e,layoutGroup:r,switchLayoutGroup:d.useContext(Vb),isPresent:t,safeToRemove:n})}const I7={borderRadius:{...Vr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vr,borderTopRightRadius:Vr,borderBottomLeftRadius:Vr,borderBottomRightRadius:Vr,boxShadow:F7},Vh=["TopLeft","TopRight","BottomLeft","BottomRight"],L7=Vh.length,wf=e=>typeof e=="string"?parseFloat(e):e,Cf=e=>typeof e=="number"||ie.test(e);function V7(e,t,n,r,o,a){o?(e.opacity=Te(0,n.opacity!==void 0?n.opacity:1,O7(r)),e.opacityExit=Te(t.opacity!==void 0?t.opacity:1,0,N7(r))):a&&(e.opacity=Te(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let i=0;i<L7;i++){const s=`border${Vh[i]}Radius`;let l=Df(t,s),u=Df(n,s);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Cf(l)===Cf(u)?(e[s]=Math.max(Te(wf(l),wf(u),r),0),(Mt.test(u)||Mt.test(l))&&(e[s]+="%")):e[s]=u}(t.rotate||n.rotate)&&(e.rotate=Te(t.rotate||0,n.rotate||0,r))}function Df(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const O7=Oh(0,.5,dh),N7=Oh(.5,.95,Fe);function Oh(e,t,n){return r=>r<e?0:r>t?1:n(uo(e,t,r))}function Ef(e,t){e.min=t.min,e.max=t.max}function st(e,t){Ef(e.x,t.x),Ef(e.y,t.y)}function Pf(e,t,n,r,o){return e-=t,e=Qa(e,1/n,r),o!==void 0&&(e=Qa(e,1/o,r)),e}function K7(e,t=0,n=1,r=.5,o,a=e,i=e){if(Mt.test(t)&&(t=parseFloat(t),t=Te(i.min,i.max,t/100)-i.min),typeof t!="number")return;let s=Te(a.min,a.max,r);e===a&&(s-=t),e.min=Pf(e.min,t,n,s,o),e.max=Pf(e.max,t,n,s,o)}function Sf(e,t,[n,r,o],a,i){K7(e,t[n],t[r],t[o],t.scale,a,i)}const j7=["x","scaleX","originX"],_7=["y","scaleY","originY"];function Tf(e,t,n,r){Sf(e.x,t,j7,n?n.x:void 0,r?r.x:void 0),Sf(e.y,t,_7,n?n.y:void 0,r?r.y:void 0)}function Af(e){return e.translate===0&&e.scale===1}function Nh(e){return Af(e.x)&&Af(e.y)}function z7(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 Kh(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 Mf(e){return at(e.x)/at(e.y)}class U7{constructor(){this.members=[]}add(t){Au(this.members,t),t.scheduleRender()}remove(t){if(Mu(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 a=this.members[o];if(a.isPresent!==!1){r=a;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,a=e.y.translate/t.y;if((o||a)&&(r=`translate3d(${o}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const i=e.x.scale*t.x,s=e.y.scale*t.y;return(i!==1||s!==1)&&(r+=`scale(${i}, ${s})`),r||"none"}const H7=(e,t)=>e.depth-t.depth;class W7{constructor(){this.children=[],this.isDirty=!1}add(t){Au(this.children,t),this.isDirty=!0}remove(t){Mu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(H7),this.isDirty=!1,this.children.forEach(t)}}function G7(e,t){const n=Pn.now(),r=({timestamp:o})=>{const a=o-n;a>=t&&(Gt(r),e(a-t))};return Pe.read(r,!0),()=>Gt(r)}function Y7(e){window.MotionDebug&&window.MotionDebug.record(e)}function q7(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Z7(e,t,n){const r=nt(e)?e:ur(e);return r.start(Tu("",r,t,n)),r.animation}const Rf=["","X","Y","Z"],X7={visibility:"hidden"},Ff=1e3;let J7=0;const vn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function jh({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},s=t==null?void 0:t()){this.id=J7++,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(tC),this.nodes.forEach(iC),this.nodes.forEach(sC),this.nodes.forEach(nC),Y7(vn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,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 W7)}addEventListener(i,s){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new ku),this.eventHandlers.get(i).add(s)}notifyListeners(i,...s){const l=this.eventHandlers.get(i);l&&l.notify(...s)}hasListeners(i){return this.eventHandlers.has(i)}mount(i,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=q7(i),this.instance=i;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const p=()=>this.root.updateBlockedByResize=!1;e(i,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=G7(p,250),$a.hasAnimatedSinceResize&&($a.hasAnimatedSinceResize=!1,this.nodes.forEach(If))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:b,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||fC,{onLayoutAnimationStart:y,onLayoutAnimationComplete:$}=c.getProps(),C=!this.targetLayout||!Kh(this.targetLayout,h)||b,x=!p&&b;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,x);const E={...Su(g,"layout"),onPlay:y,onComplete:$};(c.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else p||If(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Gt(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(lC),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!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 u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Bf);return}this.isUpdating||this.nodes.forEach(oC),this.isUpdating=!1,this.nodes.forEach(aC),this.nodes.forEach(Q7),this.nodes.forEach(eC),this.clearAllSnapshots();const s=Pn.now();Ue.delta=cn(0,1e3/60,s-Ue.timestamp),Ue.timestamp=s,Ue.isProcessing=!0,fs.update.process(Ue),fs.preRender.process(Ue),fs.render.process(Ue),Ue.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cu.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(rC),this.sharedNodes.forEach(uC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Pe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Pe.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 i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Re(),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,i?i.layoutBox:void 0)}updateScroll(i="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:i,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!Nh(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;i&&(s||gn(this.latestValues)||c)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return i&&(l=this.removeTransform(l)),pC(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return Re();const s=i.measureViewportBox(),{scroll:l}=this.root;return l&&(nn(s.x,l.offset.x),nn(s.y,l.offset.y)),s}removeElementScroll(i){const s=Re();st(s,i);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:f}=u;if(u!==this.root&&c&&f.layoutScroll){if(c.isRoot){st(s,i);const{scroll:p}=this.root;p&&(nn(s.x,-p.offset.x),nn(s.y,-p.offset.y))}nn(s.x,c.offset.x),nn(s.y,c.offset.y)}}return s}applyTransform(i,s=!1){const l=Re();st(l,i);for(let u=0;u<this.path.length;u++){const c=this.path[u];!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(i){const s=Re();st(s,i);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!gn(u.latestValues))continue;pl(u.latestValues)&&u.updateSnapshot();const c=Re(),f=u.measurePageBox();st(c,f),Tf(s,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return gn(this.latestValues)&&Tf(s,this.latestValues),s}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.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!==Ue.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!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 u=!!this.resumingFrom||this!==l;if(!(i||u&&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=Ue.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Re(),this.relativeTargetOrigin=Re(),Jr(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),st(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Re(),this.targetWithTransforms=Re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),b7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):st(this.target,this.layout.layoutBox),Fh(this.target,this.targetDelta)):st(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Re(),this.relativeTargetOrigin=Re(),Jr(this.relativeTargetOrigin,this.target,b.target),st(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}vn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||pl(this.parent.latestValues)||Rh(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 i;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let u=!0;if((this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Ue.timestamp&&(u=!1),u)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;st(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,b=this.treeScale.y;C7(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=Re());const{target:h}=s;if(!h){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,h,this.latestValues),this.projectionTransform=kf(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==p||this.treeScale.y!==b)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h)),vn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),i){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(i,s=!1){const l=this.snapshot,u=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=Re(),b=l?l.source:void 0,h=this.layout?this.layout.source:void 0,g=b!==h,y=this.getStack(),$=!y||y.members.length<=1,C=!!(g&&!$&&this.options.crossfade===!0&&!this.path.some(dC));this.animationProgress=0;let x;this.mixTargetDelta=E=>{const P=E/1e3;Lf(f.x,i.x,P),Lf(f.y,i.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),cC(this.relativeTarget,this.relativeTargetOrigin,p,P),x&&z7(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Re()),st(x,this.relativeTarget)),g&&(this.animationValues=c,V7(c,u,this.latestValues,P,C,$)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Gt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Pe.update(()=>{$a.hasAnimatedSinceResize=!0,this.currentAnimation=Z7(0,Ff,{...i,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ff),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=i;if(!(!s||!l||!u)){if(this!==i&&this.layout&&u&&_h(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Re();const f=at(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+f;const p=at(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+p}st(s,l),rr(s,c),Xr(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(i,s){this.sharedNodes.has(i)||this.sharedNodes.set(i,new U7),this.sharedNodes.get(i).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var i;const{layoutId:s}=this.options;return s?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:s}=this.options;return s?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetRotation(){const{visualElement:i}=this.options;if(!i)return;let s=!1;const{latestValues:l}=i;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const u={};for(let c=0;c<Rf.length;c++){const f="rotate"+Rf[c];l[f]&&(u[f]=l[f],i.setStaticValue(f,0))}i.render();for(const c in u)i.setStaticValue(c,u[c]);i.scheduleRender()}getProjectionStyles(i){var s,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return X7;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=va(i==null?void 0:i.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;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=va(i==null?void 0:i.pointerEvents)||""),this.hasProjected&&!gn(this.latestValues)&&(g.transform=c?c({},""):"none",this.hasProjected=!1),g}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=kf(this.projectionDeltaWithTransform,this.treeScale,p),c&&(u.transform=c(p,u.transform));const{x:b,y:h}=this.projectionDelta;u.transformOrigin=`${b.origin*100}% ${h.origin*100}% 0`,f.animationValues?u.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:u.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const g in Ha){if(p[g]===void 0)continue;const{correct:y,applyTo:$}=Ha[g],C=u.transform==="none"?p[g]:y(p[g],f);if($){const x=$.length;for(let E=0;E<x;E++)u[$[E]]=C}else u[g]=C}return this.options.layoutId&&(u.pointerEvents=f===this?va(i==null?void 0:i.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var s;return(s=i.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(Bf),this.root.sharedNodes.clear()}}}function Q7(e){e.updateLayout()}function eC(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:a}=e.options,i=n.source!==e.layout.source;a==="size"?ut(f=>{const p=i?n.measuredBox[f]:n.layoutBox[f],b=at(p);p.min=r[f].min,p.max=p.min+b}):_h(a,n.layoutBox,r)&&ut(f=>{const p=i?n.measuredBox[f]:n.layoutBox[f],b=at(r[f]);p.max=p.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+b)});const s=nr();Xr(s,r,n.layoutBox);const l=nr();i?Xr(l,e.applyTransform(o,!0),n.measuredBox):Xr(l,r,n.layoutBox);const u=!Nh(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:b}=f;if(p&&b){const h=Re();Jr(h,n.layoutBox,p.layoutBox);const g=Re();Jr(g,r,b.layoutBox),Kh(h,g)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=h,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function tC(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 nC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rC(e){e.clearSnapshot()}function Bf(e){e.clearMeasurements()}function oC(e){e.isLayoutDirty=!1}function aC(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function If(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iC(e){e.resolveTargetDelta()}function sC(e){e.calcProjection()}function lC(e){e.resetRotation()}function uC(e){e.removeLeadSnapshot()}function Lf(e,t,n){e.translate=Te(t.translate,0,n),e.scale=Te(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Vf(e,t,n,r){e.min=Te(t.min,n.min,r),e.max=Te(t.max,n.max,r)}function cC(e,t,n,r){Vf(e.x,t.x,n.x,r),Vf(e.y,t.y,n.y,r)}function dC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const fC={duration:.45,ease:[.4,0,.1,1]},Of=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Nf=Of("applewebkit/")&&!Of("chrome/")?Math.round:Fe;function Kf(e){e.min=Nf(e.min),e.max=Nf(e.max)}function pC(e){Kf(e.x),Kf(e.y)}function _h(e,t,n){return e==="position"||e==="preserve-aspect"&&!dl(Mf(t),Mf(n),.2)}const bC=jh({attachResizeListener:(e,t)=>Kt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ws={current:void 0},zh=jh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ws.current){const e=new bC({});e.mount(window),e.setOptions({layoutScroll:!0}),ws.current=e}return ws.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),hC={pan:{Feature:k7},drag:{Feature:M7,ProjectionNode:zh,MeasureLayout:Lh}},mC=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function gC(e){const t=mC.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const vC=4;function hl(e,t,n=1){mt(n<=vC,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=gC(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const i=a.trim();return Eh(i)?parseFloat(i):i}else return Wa(o)?hl(o,t,n+1):o}function yC(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const a=o.get();if(!Wa(a))return;const i=hl(a,r);i&&o.set(i)});for(const o in t){const a=t[o];if(!Wa(a))continue;const i=hl(a,r);i&&(t[o]=i,n||(n={}),n[o]===void 0&&(n[o]=a))}return{target:t,transitionEnd:n}}const $C=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Uh=e=>$C.has(e),xC=e=>Object.keys(e).some(Uh),ua=e=>e===vr||e===ie,jf=(e,t)=>parseFloat(e.split(", ")[t]),_f=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return jf(o[1],t);{const a=r.match(/^matrix\((.+)\)$/);return a?jf(a[1],e):0}},wC=new Set(["x","y","z"]),CC=xo.filter(e=>!wC.has(e));function DC(e){const t=[];return CC.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),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:_f(4,13),y:_f(5,14)};cr.translateX=cr.x;cr.translateY=cr.y;const EC=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,a=getComputedStyle(o),{display:i}=a,s={};i==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{s[u]=cr[u](r,a)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(s[u]),e[u]=cr[u](l,a)}),e},PC=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Uh);let a=[],i=!1;const s=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],f=Lr(c);const p=t[l];let b;if(Ya(p)){const h=p.length,g=p[0]===null?1:0;c=p[g],f=Lr(c);for(let y=g;y<h&&p[y]!==null;y++)b?mt(Lr(p[y])===b,"All keyframes must be of the same type"):(b=Lr(p[y]),mt(b===f||ua(f)&&ua(b),"Keyframes must be of the same dimension as the current value"))}else b=Lr(p);if(f!==b)if(ua(f)&&ua(b)){const h=u.get();typeof h=="string"&&u.set(parseFloat(h)),typeof p=="string"?t[l]=parseFloat(p):Array.isArray(p)&&b===ie&&(t[l]=p.map(parseFloat))}else f!=null&&f.transform&&(b!=null&&b.transform)&&(c===0||p===0)?c===0?u.set(b.transform(c)):t[l]=f.transform(p):(i||(a=DC(e),i=!0),s.push(l),r[l]=r[l]!==void 0?r[l]:t[l],u.jump(p))}),s.length){const l=s.indexOf("height")>=0?window.pageYOffset:null,u=EC(t,e,s);return a.length&&a.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),hi&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function SC(e,t,n,r){return xC(t)?PC(e,t,n,r):{target:t,transitionEnd:r}}const TC=(e,t,n,r)=>{const o=yC(e,t,r);return t=o.target,r=o.transitionEnd,SC(e,t,n,r)},ml={current:null},Hh={current:!1};function AC(){if(Hh.current=!0,!!hi)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ml.current=e.matches;e.addListener(t),t()}else ml.current=!1}function MC(e,t,n){const{willChange:r}=t;for(const o in t){const a=t[o],i=n[o];if(nt(a))e.addValue(o,a),Ja(r)&&r.add(o),process.env.NODE_ENV==="development"&&Ru(a.version==="11.0.6",`Attempting to mix Framer Motion versions ${a.version} with 11.0.6 may not work as expected.`);else if(nt(i))e.addValue(o,ur(a,{owner:e})),Ja(r)&&r.remove(o);else if(i!==a)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(a)}else{const s=e.getStaticValue(o);e.addValue(o,ur(s!==void 0?s:a,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const zf=new WeakMap,Wh=Object.keys(lo),kC=Wh.length,Uf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],RC=fu.length;class FC{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:a},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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=()=>Pe.render(this.render,!1,!0);const{latestValues:s,renderState:l}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=n.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=i,this.isControllingVariants=gi(n),this.isVariantNode=Lb(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const f in c){const p=c[f];s[f]!==void 0&&nt(p)&&(p.set(s[f],!1),Ja(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}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)),Hh.current||AC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ml.current,process.env.NODE_ENV!=="production"&&Ru(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(){zf.delete(this.current),this.projection&&this.projection.unmount(),Gt(this.notifyUpdate),Gt(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=In.has(t),o=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&Pe.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,a){let i,s;if(process.env.NODE_ENV!=="production"&&o&&r){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Do(!1,l):mt(!1,l)}for(let l=0;l<kC;l++){const u=Wh[l],{isEnabled:c,Feature:f,ProjectionNode:p,MeasureLayout:b}=lo[u];p&&(i=p),c(n)&&(!this.features[u]&&f&&(this.features[u]=new f(this)),b&&(s=b))}if((this.type==="html"||this.type==="svg")&&!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:c,dragConstraints:f,layoutScroll:p,layoutRoot:b}=n;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!c||f&&er(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:a,layoutScroll:p,layoutRoot:b})}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):Re()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(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<Uf.length;r++){const o=Uf[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const a=t["on"+o];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=MC(this,this.scrapeMotionValuesFromProps(t,this.prevProps),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<RC;r++){const o=fu[r],a=this.props[o];(so(a)||a===!1)&&(n[o]=a)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(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=ur(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=xu(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!nt(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ku),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Gh extends FC{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]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},o){const a=qw(r,t||{},this);if(o){Gw(this,r,a);const i=TC(this,r,a,n);n=i.transitionEnd,r=i.target}return{transition:t,transitionEnd:n,...r}}}function BC(e){return window.getComputedStyle(e)}class IC extends Gh{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(In.has(n)){const r=Pu(n);return r&&r.default||0}else{const r=BC(t),o=(Kb(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Bh(t,n)}build(t,n,r,o){mu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return $u(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;nt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){Hb(t,n,r,o)}}class LC extends Gh{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(In.has(n)){const r=Pu(n);return r&&r.default||0}return n=Wb.has(n)?n:uu(n),t.getAttribute(n)}measureInstanceViewportBox(){return Re()}scrapeMotionValuesFromProps(t,n){return Yb(t,n)}build(t,n,r,o){vu(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){Gb(t,n,r,o)}mount(t){this.isSVGTag=yu(t.tagName),super.mount(t)}}const VC=(e,t)=>bu(e)?new LC(t,{enableHardwareAcceleration:!1}):new IC(t,{enableHardwareAcceleration:!0}),OC={layout:{ProjectionNode:zh,MeasureLayout:Lh}},NC={...c7,...P6,...hC,...OC},Ln=L2((e,t)=>p6(e,t,NC,VC));function Yh(){const e=d.useRef(!1);return lu(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function KC(){const e=Yh(),[t,n]=d.useState(0),r=d.useCallback(()=>{e.current&&n(t+1)},[t]);return[d.useCallback(()=>Pe.postRender(r),[r]),t]}class jC extends A.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 _C({children:e,isPresent:t}){const n=d.useId(),r=d.useRef(null),o=d.useRef({width:0,height:0,top:0,left:0});return d.useInsertionEffect(()=>{const{width:a,height:i,top:s,left:l}=o.current;if(t||!r.current||!a||!i)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
|
|
104
104
|
[data-motion-pop-id="${n}"] {
|
|
105
105
|
position: absolute !important;
|
|
106
|
-
width: ${
|
|
107
|
-
height: ${
|
|
106
|
+
width: ${a}px !important;
|
|
107
|
+
height: ${i}px !important;
|
|
108
108
|
top: ${s}px !important;
|
|
109
109
|
left: ${l}px !important;
|
|
110
110
|
}
|
|
111
|
-
`),()=>{document.head.removeChild(
|
|
111
|
+
`),()=>{document.head.removeChild(u)}},[t]),A.createElement(jC,{isPresent:t,childRef:r,sizeRef:o},A.cloneElement(e,{ref:r}))}const Cs=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:a,mode:i})=>{const s=qb(zC),l=d.useId(),u=d.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))}),a?void 0:[n]);return d.useMemo(()=>{s.forEach((c,f)=>s.set(f,!1))},[n]),A.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),i==="popLayout"&&(e=A.createElement(_C,{isPresent:n},e)),A.createElement(bi.Provider,{value:u},e)};function zC(){return new Map}function UC(e){return d.useEffect(()=>()=>e(),[])}const yn=e=>e.key||"";function HC(e,t){e.forEach(n=>{const r=yn(n);t.set(r,n)})}function WC(e){const t=[];return d.Children.forEach(e,n=>{d.isValidElement(n)&&t.push(n)}),t}const qh=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:a=!0,mode:i="sync"})=>{mt(!o,"Replace exitBeforeEnter with mode='wait'");const s=d.useContext(pu).forceRender||KC()[0],l=Yh(),u=WC(e);let c=u;const f=d.useRef(new Map).current,p=d.useRef(c),b=d.useRef(new Map).current,h=d.useRef(!0);if(lu(()=>{h.current=!1,HC(u,b),p.current=c}),UC(()=>{h.current=!0,b.clear(),f.clear()}),h.current)return A.createElement(A.Fragment,null,c.map(C=>A.createElement(Cs,{key:yn(C),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:a,mode:i},C)));c=[...c];const g=p.current.map(yn),y=u.map(yn),$=g.length;for(let C=0;C<$;C++){const x=g[C];y.indexOf(x)===-1&&!f.has(x)&&f.set(x,void 0)}return i==="wait"&&f.size&&(c=[]),f.forEach((C,x)=>{if(y.indexOf(x)!==-1)return;const E=b.get(x);if(!E)return;const P=g.indexOf(x);let M=C;if(!M){const K=()=>{f.delete(x);const v=Array.from(b.keys()).filter(V=>!y.includes(V));if(v.forEach(V=>b.delete(V)),p.current=u.filter(V=>{const F=yn(V);return F===x||v.includes(F)}),!f.size){if(l.current===!1)return;s(),r&&r()}};M=A.createElement(Cs,{key:yn(E),isPresent:!1,onExitComplete:K,custom:t,presenceAffectsLayout:a,mode:i},E),f.set(x,M)}c.splice(P,0,M)}),c=c.map(C=>{const x=C.key;return f.has(x)?C:A.createElement(Cs,{key:yn(C),isPresent:!0,presenceAffectsLayout:a,mode:i},C)}),process.env.NODE_ENV!=="production"&&i==="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.`),A.createElement(A.Fragment,null,f.size?c:c.map(C=>d.cloneElement(C)))};function GC(e){const[t,n]=Pb(e,Hc.variantKeys),{as:r,children:o,className:a,content:i,classNames:s,...l}=t,u=r||"span",c=d.useMemo(()=>{var g;return((g=String(i))==null?void 0:g.length)===1||(e==null?void 0:e.isOneChar)},[i,e==null?void 0:e.isOneChar]),f=d.useMemo(()=>{var g;return((g=String(i))==null?void 0:g.length)===0},[i]),p=eo(s==null?void 0:s.badge,a),b=d.useMemo(()=>Hc({...n,showOutline:e!=null&&e.disableOutline?!(e!=null&&e.disableOutline):e==null?void 0:e.showOutline,isOneChar:c,isDot:f}),[...Object.values(n),c,f]),h=()=>({className:b.badge({class:p}),"data-invisible":e.isInvisible,...l});return{Component:u,children:o,content:i,slots:b,classNames:s,disableAnimation:e==null?void 0:e.disableAnimation,isInvisible:e==null?void 0:e.isInvisible,getBadgeProps:h}}var Zh=fi((e,t)=>{const{Component:n,children:r,content:o,slots:a,classNames:i,getBadgeProps:s}=GC({...e});return B.jsxs("div",{className:a.base({class:i==null?void 0:i.base}),children:[r,B.jsx(n,{ref:t,...s(),children:o})]})});Zh.displayName="NextUI.Badge";var YC=Zh;const qC=G.default.div`
|
|
112
112
|
position: relative;
|
|
113
113
|
display: inline-flex;
|
|
114
114
|
flex-shrink: 0;
|
|
115
|
-
`,
|
|
115
|
+
`,ZC=G.default.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
|
+
`,XC=G.default(YC)`
|
|
123
123
|
display: flex;
|
|
124
124
|
flex-wrap: wrap;
|
|
125
125
|
place-content: center;
|
|
@@ -133,21 +133,21 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
133
133
|
transition: transform 0.3s ease-out, opacity 0.3s ease-out;
|
|
134
134
|
white-space: nowrap;
|
|
135
135
|
|
|
136
|
-
${({size:e,content:t,isOneChar:n,isDot:r})=>{var s;const o={sm:"1rem",md:"1.25rem",lg:"1.5rem;"},
|
|
136
|
+
${({size:e,content:t,isOneChar:n,isDot:r})=>{var s;const o={sm:"1rem",md:"1.25rem",lg:"1.5rem;"},a=((s=String(t))==null?void 0:s.length)===1||n;let i=o.md;return e&&o[e]&&(i=o[e]),!t||r?"width: 0.875rem; height: 0.875rem;":a?`width: ${i}; height: ${i};`:`min-width: ${i}; height: ${i};`}}
|
|
137
137
|
|
|
138
138
|
font-size: ${({size:e,content:t,isDot:n})=>{const r={sm:"0.75rem",md:"0.875rem",lg:"0.875rem"};if(typeof t=="string"&&t.length>1||n)return r.sm;let o=r.md;return e&&r[e]&&(o=r[e]),o}};
|
|
139
139
|
|
|
140
|
-
background: ${({variant:e,theme:t})=>{var n,r,o,i
|
|
140
|
+
background: ${({variant:e,theme:t})=>{var n,r,o,a,i;switch(e){case"flat":return`color-mix(
|
|
141
141
|
in srgb,
|
|
142
142
|
${((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[800])??w.colors.slate[800]},
|
|
143
143
|
transparent 45%
|
|
144
|
-
)`;case"faded":return`${((o=t==null?void 0:t.colors)==null?void 0:o.white)??w.colors.white}`;case"solid":case"shadow":default:return`${((
|
|
144
|
+
)`;case"faded":return`${((o=t==null?void 0:t.colors)==null?void 0:o.white)??w.colors.white}`;case"solid":case"shadow":default:return`${((i=(a=t==null?void 0:t.colors)==null?void 0:a.slate)==null?void 0:i[800])??w.colors.slate[800]}`}}};
|
|
145
145
|
|
|
146
146
|
color: ${({variant:e,theme:t})=>{var n,r,o;return e==="faded"?`${((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[800])??w.colors.slate[800]}`:`${((o=t==null?void 0:t.colors)==null?void 0:o.white)??w.colors.white}`}};
|
|
147
147
|
|
|
148
|
-
border: ${({showOutline:e,variant:t,theme:n})=>{var r,o,
|
|
148
|
+
border: ${({showOutline:e,variant:t,theme:n})=>{var r,o,a;return t==="faded"?`2px solid ${((o=(r=n==null?void 0:n.colors)==null?void 0:r.slate)==null?void 0:o[800])??w.colors.slate[800]}`:e?`2px solid ${((a=n==null?void 0:n.colors)==null?void 0:a.white)??w.colors.white}`:"none"}};
|
|
149
149
|
|
|
150
|
-
box-shadow: ${({variant:e,theme:t})=>{var n,r,o,
|
|
150
|
+
box-shadow: ${({variant:e,theme:t})=>{var n,r,o,a;return e==="shadow"?`rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px,
|
|
151
151
|
color-mix(
|
|
152
152
|
in srgb,
|
|
153
153
|
${((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[800])??w.colors.slate[800]},
|
|
@@ -156,11 +156,11 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
156
156
|
0px 10px 15px -3px,
|
|
157
157
|
color-mix(
|
|
158
158
|
in srgb,
|
|
159
|
-
${((
|
|
159
|
+
${((a=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:a[800])??w.colors.slate[800]},
|
|
160
160
|
transparent 60%
|
|
161
161
|
)
|
|
162
162
|
0px 4px 6px -4px`:"none"}};
|
|
163
|
-
`,qC={hidden:{opacity:0,transform:"scale(0)"},show:{opacity:1,transform:"scale(1)"}};function ZC({children:e,isInvisible:t,disableAnimation:n,placement:r,shape:o,...i}){const a=u.useId(),s=n?{duration:0}:{type:"spring",bounce:.3};return F.jsxs(WC,{children:[e,F.jsx(GC,{placement:r,shape:o,children:F.jsx(Wh,{children:!t&&F.jsx(Ln.div,{variants:qC,initial:n?"show":"hidden",transition:s,animate:"show",exit:"hidden",children:F.jsx(YC,{...i,isInvisible:t,showOutline:i.showOutline??!0})},`badge-${a}`)})})]})}function XC({children:e,...t}){return F.jsx("span",{...t,"aria-hidden":"true",children:e??F.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[F.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"}),F.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"}),F.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 JC(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:d}=mr(e,t),{pressProps:f,isPressed:p}=ln({onPress:r,onPressStart:o,onPressEnd:i,isDisabled:s,ref:t}),b=le(l,{labelable:!0,isLink:n==="a"}),h=J(d,f),g=ho();return{isPressed:p,linkProps:J(b,{...h,...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()&&W3(y.currentTarget,y)&&(y.preventDefault(),g.open(y.currentTarget,y))}})}}function Yh(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:s,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:b,rel:h,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"?b: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"?h:void 0};let{pressProps:$,isPressed:C}=ln({onPressStart:i,onPressEnd:a,onPressChange:l,onPress:o,onPressUp:s,isDisabled:r,preventFocusOnPress:c,ref:t}),{focusableProps:x}=mr(e,t);d&&(x.tabIndex=r?-1:x.tabIndex);let E=J(x,$,le(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 QC(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:i}=Yh({...e,onPress:sn(t.toggle,e.onPress)},n);return{isPressed:o,buttonProps:J(i,{"aria-pressed":r})}}const qh=7e3;let Qr=null;function yi(e,t="assertive",n=qh){Qr||(Qr=new tD),Qr.announce(e,t,n)}function eD(e){Qr&&Qr.clear(e)}class tD{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=qh){if(!this.node)return;let o=document.createElement("div");o.textContent=t,n==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function ku(e,t,n){let{validationBehavior:r,focus:o}=e;he(()=>{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(rD(n.current))}});let i=Se(()=>{t.resetValidation()}),a=Se(l=>{var c;t.displayValidation.isInvalid||t.commitValidation();let d=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!l.defaultPrevented&&n&&d&&oD(d)===n.current){var f;o?o():(f=n.current)===null||f===void 0||f.focus(),Yp("keyboard")}l.preventDefault()}),s=Se(()=>{t.commitValidation()});u.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 nD(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 rD(e){return{isInvalid:!e.validity.valid,validationDetails:nD(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function oD(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const Zh={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Xh={...Zh,customError:!0,valid:!1},qn={isInvalid:!1,validationDetails:Zh,validationErrors:[]},iD=u.createContext({}),co="__formValidationState"+Date.now();function yr(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 aD(e)}function aD(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:Xh}:null,c=u.useMemo(()=>zf(sD(a,o)),[a,o]);i!=null&&i.validationDetails.valid&&(i=null);let d=u.useContext(iD),f=u.useMemo(()=>r?Array.isArray(r)?r.flatMap(R=>hl(d[R])):hl(d[r]):[],[d,r]),[p,b]=u.useState(d),[h,g]=u.useState(!1);d!==p&&(b(d),g(!1));let y=u.useMemo(()=>zf(h?[]:f),[h,f]),$=u.useRef(qn),[C,x]=u.useState(qn),E=u.useRef(qn),P=()=>{if(!A)return;N(!1);let R=c||i||$.current;ws(R,E.current)||(E.current=R,x(R))},[A,N]=u.useState(!1);return u.useEffect(P),{realtimeValidation:l||y||c||i||qn,displayValidation:s==="native"?l||y||C:l||y||c||i||C,updateValidation(R){s==="aria"&&!ws(C,R)?x(R):$.current=R},resetValidation(){let R=qn;ws(R,E.current)||(E.current=R,x(R)),s==="native"&&N(!1),g(!0)},commitValidation(){s==="native"&&N(!0),g(!0)}}}function hl(e){return e?Array.isArray(e)?e:[e]:[]}function sD(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return hl(n)}return[]}function zf(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Xh}:null}function ws(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function Jh(e,t,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:i,name:a,children:s,"aria-label":l,"aria-labelledby":c,validationState:d="valid",isInvalid:f}=e,p=A=>{A.stopPropagation(),t.setSelected(A.target.checked)},b=s!=null,h=l!=null||c!=null;!b&&!h&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:g,isPressed:y}=ln({isDisabled:r}),{pressProps:$,isPressed:C}=ln({isDisabled:r||o,onPress(){t.toggle()}}),{focusableProps:x}=mr(e,n),E=J(g,x),P=le(e,{labelable:!0});return mo(n,t.isSelected,t.setSelected),{labelProps:J($,{onClick:A=>A.preventDefault()}),inputProps:J(P,{"aria-invalid":f||d==="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||d==="invalid"}}function Do(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=Ue(t);let a=Ue(),s={};n?(r=r?`${a} ${r}`:a,s={id:a,htmlFor:i==="label"?t:void 0}):!r&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Tn({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function Qh(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:i,fieldProps:a}=Do(e),s=on([!!t,!!n,r,o]),l=on([!!t,!!n,r,o]);return a=J(a,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:a,descriptionProps:{id:s},errorMessageProps:{id:l}}}function va(e={}){let{isReadOnly:t}=e,[n,r]=gt(e.isSelected,e.defaultSelected||!1,e.onChange);function o(a){t||r(a)}function i(){t||r(!n)}return{isSelected:n,setSelected:o,toggle:i}}function em(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:d,isDisabled:f,isReadOnly:p}=Jh({...e,isInvalid:o},t,n);ku(e,r,n);let{isIndeterminate:b,isRequired:h,validationBehavior:g="aria"}=e;return u.useEffect(()=>{n.current&&(n.current.indeterminate=!!b)}),{labelProps:s,inputProps:{...l,checked:c,"aria-required":h&&g==="aria"||void 0,required:h&&g==="native"},isSelected:c,isPressed:d,isDisabled:f,isReadOnly:p,isInvalid:o,validationErrors:i,validationDetails:a}}const lD=new WeakMap;function uD(e,t,n){const r=va({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}=lD.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"}),d=u.useRef(qn),f=()=>{t.setInvalid(e.value,c.isInvalid?c:d.current)};u.useEffect(f);let p=t.realtimeValidation.isInvalid?t.realtimeValidation:c,b=s==="native"?t.displayValidation:p;var h;let g=em({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,isRequired:(h=e.isRequired)!==null&&h!==void 0?h:t.isRequired,validationBehavior:s,[co]:{realtimeValidation:p,displayValidation:b,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(y){d.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 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 nm={};nm={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:"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 om={};om={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 im={};im={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 am={};am={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 sm={};sm={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 lm={};lm={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 um={};um={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 cm={};cm={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 dm={};dm={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 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 pm={};pm={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 bm={};bm={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 hm={};hm={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 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:"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 ym={};ym={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 $m={};$m={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 xm={};xm={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 wm={};wm={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 Cm={};Cm={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 Dm={};Dm={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 Em={};Em={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 Pm={};Pm={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 Sm={};Sm={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 Tm={};Tm={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 Am={};Am={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 Mm={};Mm={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 km={};km={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 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:"顯示建議",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 di()?e.altKey:e.ctrlKey}function Zn(e){return Ut()?e.metaKey:e.ctrlKey}const cD=1e3;function dD(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=u.useRef({search:"",timeout:null}).current,i=a=>{let s=fD(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=""},cD)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function fD(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Ru(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:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:b=r,linkBehavior:h="action"}=e,{direction:g}=Ne(),y=ho(),$=R=>{if(R.altKey&&R.key==="Tab"&&R.preventDefault(),!r.current.contains(R.target))return;const M=(U,D)=>{if(U!=null){if(t.isLink(U)&&h==="selection"&&l&&!ml(R)){Yt.flushSync(()=>{t.setFocusedKey(U,D)});let O=b.current.querySelector(`[data-key="${CSS.escape(U.toString())}"]`);y.open(O,R);return}if(t.setFocusedKey(U,D),t.isLink(U)&&h==="override")return;R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(U):l&&!ml(R)&&t.replaceSelection(U)}};switch(R.key){case"ArrowDown":if(n.getKeyBelow){var B,T;R.preventDefault();let U=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n);U==null&&i&&(U=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n,t.focusedKey)),M(U)}break;case"ArrowUp":if(n.getKeyAbove){var I,K;R.preventDefault();let U=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(I=n.getLastKey)===null||I===void 0?void 0:I.call(n);U==null&&i&&(U=(K=n.getLastKey)===null||K===void 0?void 0:K.call(n,t.focusedKey)),M(U)}break;case"ArrowLeft":if(n.getKeyLeftOf){var V,S;R.preventDefault();let U=n.getKeyLeftOf(t.focusedKey);U==null&&i&&(U=g==="rtl"?(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n,t.focusedKey):(S=n.getLastKey)===null||S===void 0?void 0:S.call(n,t.focusedKey)),M(U,g==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var W,G;R.preventDefault();let U=n.getKeyRightOf(t.focusedKey);U==null&&i&&(U=g==="rtl"?(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,t.focusedKey):(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n,t.focusedKey)),M(U,g==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){R.preventDefault();let U=n.getFirstKey(t.focusedKey,Zn(R));t.setFocusedKey(U),Zn(R)&&R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(U):l&&t.replaceSelection(U)}break;case"End":if(n.getLastKey){R.preventDefault();let U=n.getLastKey(t.focusedKey,Zn(R));t.setFocusedKey(U),Zn(R)&&R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(U):l&&t.replaceSelection(U)}break;case"PageDown":if(n.getKeyPageBelow){R.preventDefault();let U=n.getKeyPageBelow(t.focusedKey);M(U)}break;case"PageUp":if(n.getKeyPageAbove){R.preventDefault();let U=n.getKeyPageAbove(t.focusedKey);M(U)}break;case"a":Zn(R)&&t.selectionMode==="multiple"&&s!==!0&&(R.preventDefault(),t.selectAll());break;case"Escape":R.preventDefault(),a||t.clearSelection();break;case"Tab":if(!f){if(R.shiftKey)r.current.focus();else{let U=Ze(r.current,{tabbable:!0}),D,O;do O=U.lastChild(),O&&(D=O);while(O);D&&!D.contains(document.activeElement)&&Tt(D)}break}}},C=u.useRef({top:0,left:0});Pi(b,"scroll",p?null:()=>{C.current={top:b.current.scrollTop,left:b.current.scrollLeft}});let x=R=>{if(t.isFocused){R.currentTarget.contains(R.target)||t.setFocused(!1);return}if(R.currentTarget.contains(R.target)){if(t.setFocused(!0),t.focusedKey==null){let T=K=>{K!=null&&(t.setFocusedKey(K),l&&t.replaceSelection(K))},I=R.relatedTarget;var M,B;I&&R.currentTarget.compareDocumentPosition(I)&Node.DOCUMENT_POSITION_FOLLOWING?T((M=t.lastSelectedKey)!==null&&M!==void 0?M:n.getLastKey()):T((B=t.firstSelectedKey)!==null&&B!==void 0?B:n.getFirstKey())}else p||(b.current.scrollTop=C.current.top,b.current.scrollLeft=C.current.left);if(!p&&t.focusedKey!=null){let T=b.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);T&&(T.contains(document.activeElement)||Tt(T),Ai()==="keyboard"&&Os(T,{containingElement:r.current}))}}},E=R=>{R.currentTarget.contains(R.relatedTarget)||t.setFocused(!1)};const P=u.useRef(o);u.useEffect(()=>{if(P.current){let R=null;o==="first"&&(R=n.getFirstKey()),o==="last"&&(R=n.getLastKey());let M=t.selectedKeys;if(M.size){for(let B of M)if(t.canSelectItem(B)){R=B;break}}t.setFocused(!0),t.setFocusedKey(R),R==null&&!d&&Mn(r.current)}},[]);let A=u.useRef(t.focusedKey);u.useEffect(()=>{let R=Ai();if(t.isFocused&&t.focusedKey!=null&&(b!=null&&b.current)){let M=b.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);M&&(R==="keyboard"||P.current)&&(p||Kp(b.current,M),R!=="virtual"&&Os(M,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&A.current!=null&&Mn(r.current),A.current=t.focusedKey,P.current=!1},[p,b,t.focusedKey,t.isFocused,r]);let N={onKeyDown:$,onFocus:x,onBlur:E,onMouseDown(R){b.current===R.target&&R.preventDefault()}},{typeSelectProps:v}=dD({keyboardDelegate:n,selectionManager:t});c||(N=J(v,N));let L;return d||(L=t.focusedKey==null?0:-1),{collectionProps:{...N,tabIndex:L}}}function Fu(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:a,isDisabled:s,onAction:l,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,f=ho(),p=S=>{if(S.pointerType==="keyboard"&&ml(S))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(d==="selection"){f.open(r.current,S),t.setSelectedKeys(t.selectedKeys);return}else if(d==="override"||d==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):S&&S.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||S&&(Zn(S)||S.pointerType==="touch"||S.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};u.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 b={};!i&&!s?b={tabIndex:n===t.focusedKey?0:-1,onFocus(S){S.target===r.current&&t.setFocusedKey(n)}}:s&&(b.onMouseDown=S=>{S.preventDefault()});let h=t.isLink(n)&&d==="override",g=t.isLink(n)&&d!=="selection"&&d!=="none",y=!s&&t.canSelectItem(n)&&!h,$=(l||g)&&!s,C=$&&(t.selectionBehavior==="replace"?!y:!y||t.isEmpty),x=$&&y&&t.selectionBehavior==="replace",E=C||x,P=u.useRef(null),A=E&&y,N=u.useRef(!1),v=u.useRef(!1),L=S=>{l&&l(),g&&f.open(r.current,S)},R={};o?(R.onPressStart=S=>{P.current=S.pointerType,N.current=A,S.pointerType==="keyboard"&&(!E||Hf())&&p(S)},c?(R.onPressUp=C?null:S=>{S.pointerType!=="keyboard"&&y&&p(S)},R.onPress=C?L:null):R.onPress=S=>{if(C||x&&S.pointerType!=="mouse"){if(S.pointerType==="keyboard"&&!Uf())return;L(S)}else S.pointerType!=="keyboard"&&y&&p(S)}):(R.onPressStart=S=>{P.current=S.pointerType,N.current=A,v.current=C,y&&(S.pointerType==="mouse"&&!C||S.pointerType==="keyboard"&&(!$||Hf()))&&p(S)},R.onPress=S=>{(S.pointerType==="touch"||S.pointerType==="pen"||S.pointerType==="virtual"||S.pointerType==="keyboard"&&E&&Uf()||S.pointerType==="mouse"&&v.current)&&(E?L(S):y&&p(S))}),b["data-key"]=n,R.preventFocusOnPress=i;let{pressProps:M,isPressed:B}=ln(R),T=x?S=>{P.current==="mouse"&&(S.stopPropagation(),S.preventDefault(),L(S))}:void 0,{longPressProps:I}=Xp({isDisabled:!A,onLongPress(S){S.pointerType==="touch"&&(p(S),t.setSelectionBehavior("toggle"))}}),K=S=>{P.current==="touch"&&N.current&&S.preventDefault()},V=t.isLink(n)?S=>{Sn.isOpening||S.preventDefault()}:void 0;return{itemProps:J(b,y||C?M:{},A?I:{},{onDoubleClick:T,onDragStartCapture:K,onClick:V}),isPressed:B,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:s,allowsSelection:y,hasAction:E}}function Uf(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Hf(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class Bu{getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,n,r){let o=this.getItem(t);if(!o)return null;let i=o.getBoundingClientRect();do t=n(t),o=this.getItem(t);while(o&&r(i,o.getBoundingClientRect()));return t}isSameRow(t,n){return t.top===n.top||t.left!==n.left}isSameColumn(t,n){return t.left===n.left||t.top!==n.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){let n=this.collection.getItem(t);if((n==null?void 0:n.type)==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`)}getKeyPageAbove(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!Ei(n))return this.getFirstKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let a=o.x-n.scrollLeft,s=Math.max(0,i.x-a+i.width-o.width);for(;r&&i.x-a>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let a=o.y-n.scrollTop,s=Math.max(0,i.y-a+i.height-o.height);for(;r&&i.y-a>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!Ei(n))return this.getLastKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let a=o.x-n.scrollLeft,s=Math.min(n.scrollWidth,i.x-a-i.width+o.width);for(;r&&i.x-a<s;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let a=o.y-n.scrollTop,s=Math.min(n.scrollHeight,i.y-a-i.height+o.height);for(;r&&i.y-a<s;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,o=n||this.getFirstKey();for(;o!=null;){let i=r.getItem(o),a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return o;o=this.getKeyBelow(o)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.orientation=n.orientation,this.direction=n.direction,this.layout=n.layout||"stack"}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Im(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 Bu(n,s==="selection"?new Set:r,o,a),[i,n,r,o,a,s]),{collectionProps:c}=Ru({...e,ref:o,selectionManager:t,keyboardDelegate:l});return{listProps:c}}class pD{build(t,n){return this.context=n,Wf(()=>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 c=l.getCollectionNode(i.props,this.context),d=t.index,f=c.next();for(;!f.done&&f.value;){let p=f.value;t.index=d;let b=p.key;b||(b=p.element?null:this.getKey(i,t,n,r));let g=[...this.getFullNode({...p,key:b,index:d,wrapper:bD(t.wrapper,p.wrapper)},this.getChildState(n,p),r?`${r}${i.key}`:i.key,o)];for(let y of g){if(y.value=p.value||t.value,y.value&&this.cache.set(y.value,y),t.type&&y.type!==t.type)throw new Error(`Unsupported type <${Cs(y.type)}> in <${Cs(o.type)}>. Only <${Cs(t.type)}> is supported.`);d++,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:Wf(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 d=a.getFullNode(c,a.getChildState(n,c),s.key,s);for(let f of d)l++,yield f}})};yield s}constructor(){this.cache=new WeakMap}}function Wf(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 bD(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Cs(e){return e[0].toUpperCase()+e.slice(1)}function Lm(e,t,n){let r=u.useMemo(()=>new pD,[]),{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 ya(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function hD(e){return mD(e,0)}function mD(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Ds(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Gf(e,t),t],o=[...Gf(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 Gf(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const Yf=new WeakMap;function Iu(e){let t=Yf.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)o.type==="section"?n(ya(o,e)):t++};return n(e),Yf.set(e,t),t}const $a=new WeakMap;function gD(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Vm(e,t){let n=$a.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${gD(t)}`}function vD(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}=Im({...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=Ue(e.id);$a.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:d}=Do({...e,id:l,labelElementType:"span"});return{labelProps:c,listBoxProps:J(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...J(d,a)})}}function yD(e,t,n){var r;let{key:o}=e,i=$a.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 d;let f=(d=e.shouldSelectOnPressUp)!==null&&d!==void 0?d:i==null?void 0:i.shouldSelectOnPressUp;var p;let b=(p=e.shouldFocusOnHover)!==null&&p!==void 0?p:i==null?void 0:i.shouldFocusOnHover;var h;let g=(h=e.shouldUseVirtualFocus)!==null&&h!==void 0?h:i==null?void 0:i.shouldUseVirtualFocus;var y;let $=(y=e.isVirtualized)!==null&&y!==void 0?y:i==null?void 0:i.isVirtualized,C=on(),x=on(),E={role:"option","aria-disabled":s||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0};Ut()&&Ol()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=C,E["aria-describedby"]=x);let P=t.collection.getItem(o);if($){let T=Number(P==null?void 0:P.index);E["aria-posinset"]=Number.isNaN(T)?void 0:T+1,E["aria-setsize"]=Iu(t.collection)}let{itemProps:A,isPressed:N,isFocused:v,hasAction:L,allowsSelection:R}=Fu({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&b,isVirtualized:$,shouldUseVirtualFocus:g,isDisabled:s,onAction:i!=null&&i.onAction?()=>{var T;return i==null||(T=i.onAction)===null||T===void 0?void 0:T.call(i,o)}:void 0,linkBehavior:i==null?void 0:i.linkBehavior}),{hoverProps:M}=Ve({isDisabled:s||!b,onHoverStart(){sr()||(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,...J(B,A,M),id:Vm(t,o)},labelProps:{id:C},descriptionProps:{id:x},isFocused:v,isFocusVisible:v&&sr(),isSelected:c,isDisabled:s,isPressed:N,allowsSelection:R,hasAction:L}}function $D(e){let{heading:t,"aria-label":n}=e,r=Ue();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var Om={};Om={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Nm={};Nm={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Km={};Km={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var jm={};jm={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var _m={};_m={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var zm={};zm={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Um={};Um={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Hm={};Hm={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Wm={};Wm={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Gm={};Gm={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Ym={};Ym={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var qm={};qm={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Zm={};Zm={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Xm={};Xm={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Jm={};Jm={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Qm={};Qm={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var eg={};eg={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var tg={};tg={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var ng={};ng={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var rg={};rg={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var og={};og={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var ig={};ig={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var ag={};ag={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var sg={};sg={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var lg={};lg={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var ug={};ug={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var cg={};cg={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var dg={};dg={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var fg={};fg={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var pg={};pg={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var bg={};bg={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var hg={};hg={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var mg={};mg={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var gg={};gg={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};function xD(e){return e&&e.__esModule?e.default:e}var vg={};vg={"ar-AE":Om,"bg-BG":Nm,"cs-CZ":Km,"da-DK":jm,"de-DE":_m,"el-GR":zm,"en-US":Um,"es-ES":Hm,"et-EE":Wm,"fi-FI":Gm,"fr-FR":Ym,"he-IL":qm,"hr-HR":Zm,"hu-HU":Xm,"it-IT":Jm,"ja-JP":Qm,"ko-KR":eg,"lt-LT":tg,"lv-LV":ng,"nb-NO":rg,"nl-NL":og,"pl-PL":ig,"pt-BR":ag,"pt-PT":sg,"ro-RO":lg,"ru-RU":ug,"sk-SK":cg,"sl-SI":dg,"sr-SP":fg,"sv-SE":pg,"tr-TR":bg,"uk-UA":hg,"zh-CN":mg,"zh-TW":gg};function wD(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,a=Ue(),{triggerProps:s,overlayProps:l}=i2({type:r},t,n),c=b=>{if(!o&&!(i==="longPress"&&!b.altKey)&&n&&n.current)switch(b.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("last");break;default:"continuePropagation"in b&&b.continuePropagation()}},d=gr(xD(vg),"@react-aria/menu"),{longPressProps:f}=Xp({isDisabled:o||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={onPressStart(b){b.pointerType!=="touch"&&b.pointerType!=="keyboard"&&!o&&t.toggle(b.pointerType==="virtual"?"first":null)},onPress(b){b.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 yg=new WeakMap;function CD(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}=Im({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return yg.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 $g(e,t,n){var r;let{key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":s,onPressStart:l,onPressUp:c,onPress:d,onPressChange:f,onPressEnd:p,onHoverStart:b,onHoverChange:h,onHoverEnd:g,onKeyDown:y,onKeyUp:$,onFocus:C,onFocusChange:x,onBlur:E}=e,P=!!s;var A;let N=(A=e.isDisabled)!==null&&A!==void 0?A:t.disabledKeys.has(o);var v;let L=(v=e.isSelected)!==null&&v!==void 0?v:t.selectionManager.isSelected(o),R=yg.get(t),M=e.onClose||R.onClose,B=P?()=>{}:e.onAction||R.onAction,T=ho(),I=re=>{B&&B(o),re.target instanceof HTMLAnchorElement&&T.open(re.target,re)},K="menuitem";P||(t.selectionManager.selectionMode==="single"?K="menuitemradio":t.selectionManager.selectionMode==="multiple"&&(K="menuitemcheckbox"));let V=on(),S=on(),W=on(),G={"aria-disabled":N||void 0,role:K,"aria-label":e["aria-label"],"aria-labelledby":V,"aria-describedby":[S,W].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};t.selectionManager.selectionMode!=="none"&&!P&&(G["aria-checked"]=L);let U=t.collection.getItem(o);a&&(G["aria-posinset"]=U==null?void 0:U.index,G["aria-setsize"]=Iu(t.collection));let D=re=>{re.pointerType==="keyboard"&&I(re),l==null||l(re)},O=re=>{re.pointerType!=="keyboard"&&(I(re),!P&&M&&(i??(t.selectionManager.selectionMode!=="multiple"||t.selectionManager.isLink(o)))&&M()),c==null||c(re)},{itemProps:Y,isFocused:X}=Fu({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:Q,isPressed:ne}=ln({onPressStart:D,onPress:d,onPressUp:O,onPressChange:f,onPressEnd:p,isDisabled:N}),{hoverProps:z}=Ve({isDisabled:N,onHoverStart(re){sr()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o)),b==null||b(re)},onHoverChange:h,onHoverEnd:g}),{keyboardProps:q}=zl({onKeyDown:re=>{if(re.repeat){re.continuePropagation();return}switch(re.key){case" ":!N&&t.selectionManager.selectionMode==="none"&&!P&&i!==!1&&M&&M();break;case"Enter":!N&&i!==!1&&!P&&M&&M();break;default:P||re.continuePropagation(),y==null||y(re);break}},onKeyUp:$}),{focusProps:ee}=oa({onBlur:E,onFocus:C,onFocusChange:x}),ae=le(U.props,{isLink:!!(!(U==null||(r=U.props)===null||r===void 0)&&r.href)});return delete ae.id,{menuItemProps:{...G,...J(ae,P?{onFocus:Y.onFocus}:Y,Q,z,q,ee),tabIndex:Y.tabIndex!=null?-1:void 0},labelProps:{id:V},descriptionProps:{id:S},keyboardShortcutProps:{id:W},isFocused:X,isSelected:L,isPressed:ne,isDisabled:N}}function DD(e){let{heading:t,"aria-label":n}=e,r=Ue();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}const li=2,ED=50,PD=1e3,qf=Math.PI/12;function SD(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:o}=e,i=u.useRef(),a=u.useRef(),s=u.useRef(0),l=u.useRef(),c=u.useRef(),d=u.useRef(),f=u.useRef(2),[p,b]=u.useState(!1);Kl({ref:n,onResize:()=>{n.current&&(a.current=n.current.getBoundingClientRect(),d.current=void 0)}});let g=()=>{b(!1),f.current=li},y=hx();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 x=E=>{if(E.pointerType==="touch"||E.pointerType==="pen")return;let P=Date.now();if(P-s.current<ED)return;clearTimeout(l.current),clearTimeout(c.current);let{clientX:A,clientY:N}=E;if(!i.current){i.current={x:A,y:N};return}if(!a.current)return;if(d.current||(d.current=A>a.current.right?"left":"right"),A<C.getBoundingClientRect().left||A>C.getBoundingClientRect().right||N<C.getBoundingClientRect().top||N>C.getBoundingClientRect().bottom){g();return}let v=i.current.x,L=i.current.y,R=d.current==="right"?a.current.left-v:v-a.current.right,M=Math.atan2(L-a.current.top,R)+qf,B=Math.atan2(L-a.current.bottom,R)-qf,T=Math.atan2(L-N,d.current==="left"?-(A-v):A-v),I=T<M&&T>B;f.current=I?Math.min(f.current+1,li):Math.max(f.current-1,0),f.current>=li?b(!0):b(!1),s.current=P,i.current={x:A,y:N},I&&(l.current=setTimeout(()=>{g(),c.current=setTimeout(()=>{let K=document.elementFromPoint(A,N);K&&C.contains(K)&&K.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},PD))};return window.addEventListener("pointermove",x),()=>{window.removeEventListener("pointermove",x),clearTimeout(l.current),clearTimeout(c.current),f.current=li}},[o,r,t,y,b,n])}function TD(e,t,n){let{parentMenuRef:r,submenuRef:o,type:i="menu",isDisabled:a,node:s,delay:l=200}=e,c=Ue(),d=Ue(),{direction:f}=Ne(),p=u.useRef(),b=u.useCallback(()=>{p.current&&(clearTimeout(p.current),p.current=void 0)},[p]),h=Se(v=>{b(),t.open(v)}),g=Se(()=>{b(),t.close()});he(()=>()=>{b()},[b]);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:d,"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||h("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||h("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}},x=v=>{!a&&(v.pointerType==="virtual"||v.pointerType==="keyboard")&&h("first")},E=v=>{!a&&(v.pointerType==="touch"||v.pointerType==="mouse")&&h()},P=v=>{a||(v&&!t.isOpen?p.current||(p.current=setTimeout(()=>{h()},l)):v||b())},A=v=>{t.isOpen&&r.current.contains(v.relatedTarget)&&g()},N=v=>v!==n.current;return SD({menuRef:r,submenuRef:o,isOpen:t.isOpen,isDisabled:a}),{submenuTriggerProps:{id:c,"aria-controls":t.isOpen?d:void 0,"aria-haspopup":a?void 0:i,"aria-expanded":t.isOpen?"true":"false",onPressStart:x,onPress:E,onHoverChange:P,onKeyDown:C,onBlur:A,isOpen:t.isOpen},submenuProps:$,popoverProps:{isNonModal:!0,disableFocusManagement:!0,shouldCloseOnInteractOutside:N}}}function Lu(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:a="text",validationBehavior:s="aria"}=e,[l,c]=gt(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=mr(e,t),f=yr({...e,value:l}),{isInvalid:p,validationErrors:b,validationDetails:h}=f.displayValidation,{labelProps:g,fieldProps:y,descriptionProps:$,errorMessageProps:C}=Qh({...e,isInvalid:p,errorMessage:e.errorMessage||b}),x=le(e,{labelable:!0});const E={type:a,pattern:e.pattern};return mo(t,l,c),ku(e,f,t),u.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(x,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,...d,...y}),descriptionProps:$,errorMessageProps:C,isInvalid:p,validationErrors:b,validationDetails:h}}function Zf(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function AD(e,t,n){let r=Se(f=>{let p=n.current,b;switch(f.inputType){case"historyUndo":case"historyRedo":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":b=p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteContentForward":b=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":b=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":b=p.value.slice(p.selectionStart);break;default:f.data!=null&&(b=p.value.slice(0,p.selectionStart)+f.data+p.value.slice(p.selectionEnd));break}(b==null||!t.validate(b))&&f.preventDefault()});u.useEffect(()=>{if(!Zf())return;let f=n.current;return f.addEventListener("beforeinput",r,!1),()=>{f.removeEventListener("beforeinput",r,!1)}},[n,r]);let o=Zf()?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}=Lu(e,n),d=u.useRef(null);return{inputProps:J(a,{onBeforeInput:o,onCompositionStart(){let{value:f,selectionStart:p,selectionEnd:b}=n.current;d.current={value:f,selectionStart:p,selectionEnd:b}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:f,selectionStart:p,selectionEnd:b}=d.current;n.current.value=f,n.current.setSelectionRange(p,b),t.setInputValue(f)}}}),labelProps:i,descriptionProps:s,errorMessageProps:l,...c}}function MD(e){return e&&e.__esModule?e.default:e}var xg={};xg={"ar-AE":tm,"bg-BG":nm,"cs-CZ":rm,"da-DK":om,"de-DE":im,"el-GR":am,"en-US":sm,"es-ES":lm,"et-EE":um,"fi-FI":cm,"fr-FR":dm,"he-IL":fm,"hr-HR":pm,"hu-HU":bm,"it-IT":hm,"ja-JP":mm,"ko-KR":gm,"lt-LT":vm,"lv-LV":ym,"nb-NO":$m,"nl-NL":xm,"pl-PL":wm,"pt-BR":Cm,"pt-PT":Dm,"ro-RO":Em,"ru-RU":Pm,"sk-SK":Sm,"sl-SI":Tm,"sr-SP":Am,"sv-SE":Mm,"tr-TR":km,"uk-UA":Rm,"zh-CN":Fm,"zh-TW":Bm};function kD(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:i,keyboardDelegate:a,shouldFocusWrap:s,isReadOnly:l,isDisabled:c}=e,d=gr(MD(xg),"@react-aria/combobox"),{menuTriggerProps:f,menuProps:p}=wD({type:"listbox",isDisabled:c||l},t,n);$a.set(t,{id:p.id});let b=u.useMemo(()=>a||new Bu(t.collection,t.disabledKeys,i),[a,t.collection,t.disabledKeys,i]),{collectionProps:h}=Ru({selectionManager:t.selectionManager,keyboardDelegate:b,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:o,isVirtualized:!0}),g=ho(),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:x,validationErrors:E,validationDetails:P}=t.displayValidation,{labelProps:A,inputProps:N,descriptionProps:v,errorMessageProps:L}=Lu({...e,onChange:t.setInputValue,onKeyDown:l?e.onKeyDown:sn(t.isOpen&&h.onKeyDown,y,e.onKeyDown),onBlur:$,value:t.inputValue,onFocus:C,autoComplete:"off",validate:void 0,[co]:t},o),R=z=>{z.pointerType==="touch"&&(o.current.focus(),t.toggle(null,"manual"))},M=z=>{z.pointerType!=="touch"&&(o.current.focus(),t.toggle(z.pointerType==="keyboard"||z.pointerType==="virtual"?"first":null,"manual"))},B=Tn({id:f.id,"aria-label":d.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||A.id}),T=Tn({id:p.id,"aria-label":d.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||A.id}),I=u.useRef(0),K=z=>{if(c||l)return;if(z.timeStamp-I.current<500){z.preventDefault(),o.current.focus();return}let q=z.target.getBoundingClientRect(),ee=z.changedTouches[0],ae=Math.ceil(q.left+.5*q.width),re=Math.ceil(q.top+.5*q.height);ee.clientX===ae&&ee.clientY===re&&(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 S;let W=(S=V==null?void 0:V.parentKey)!==null&&S!==void 0?S:null;var G;let U=(G=t.selectionManager.focusedKey)!==null&&G!==void 0?G:null,D=u.useRef(W),O=u.useRef(U);u.useEffect(()=>{if(di()&&V!=null&&U!==O.current){let z=t.selectionManager.isSelected(U),q=W!=null?t.collection.getItem(W):null,ee=(q==null?void 0:q["aria-label"])||(typeof(q==null?void 0:q.rendered)=="string"?q.rendered:"")||"",ae=d.format("focusAnnouncement",{isGroupChange:q&&W!==D.current,groupTitle:ee,groupCount:q?[...ya(q,t.collection)].length:0,optionText:V["aria-label"]||V.textValue||"",isSelected:z});yi(ae)}D.current=W,O.current=U});let Y=Iu(t.collection),X=u.useRef(Y),Q=u.useRef(t.isOpen);u.useEffect(()=>{let z=t.isOpen!==Q.current&&(t.selectionManager.focusedKey==null||di());if(t.isOpen&&(z||Y!==X.current)){let q=d.format("countAnnouncement",{optionCount:Y});yi(q)}X.current=Y,Q.current=t.isOpen});let ne=u.useRef(t.selectedKey);return u.useEffect(()=>{if(di()&&t.isFocused&&t.selectedItem&&t.selectedKey!==ne.current){let z=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",q=d.format("selectedAnnouncement",{optionText:z});yi(q)}ne.current=t.selectedKey}),u.useEffect(()=>{if(t.isOpen)return iu([o.current,r.current])},[t.isOpen,o,r]),{labelProps:A,buttonProps:{...f,...B,excludeFromTabOrder:!0,onPress:R,onPressStart:M,isDisabled:c||l},inputProps:J(N,{role:"combobox","aria-expanded":f["aria-expanded"],"aria-controls":t.isOpen?p.id:void 0,"aria-autocomplete":"list","aria-activedescendant":V?Vm(t,V.key):void 0,onTouchEnd:K,autoCorrect:"off",spellCheck:"false"}),listBoxProps:J(p,T,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:v,errorMessageProps:L,isInvalid:x,validationErrors:E,validationDetails:P}}var wg={};wg={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 Cg={};Cg={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 Dg={};Dg={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 Eg={};Eg={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 Pg={};Pg={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 Sg={};Sg={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 Tg={};Tg={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 Ag={};Ag={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 Mg={};Mg={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 kg={};kg={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 Rg={};Rg={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 Fg={};Fg={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 Bg={};Bg={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 Ig={};Ig={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 Lg={};Lg={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 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:"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 Kg={};Kg={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 jg={};jg={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 _g={};_g={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 zg={};zg={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 Ug={};Ug={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 Hg={};Hg={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 Wg={};Wg={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 Gg={};Gg={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 Yg={};Yg={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 qg={};qg={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 Zg={};Zg={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 Xg={};Xg={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 Jg={};Jg={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 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:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var nv={};nv={Empty:"فارغ"};var rv={};rv={Empty:"Изпразни"};var ov={};ov={Empty:"Prázdné"};var iv={};iv={Empty:"Tom"};var av={};av={Empty:"Leer"};var sv={};sv={Empty:"Άδειο"};var lv={};lv={Empty:"Empty"};var uv={};uv={Empty:"Vacío"};var cv={};cv={Empty:"Tühjenda"};var dv={};dv={Empty:"Tyhjä"};var fv={};fv={Empty:"Vide"};var pv={};pv={Empty:"ריק"};var bv={};bv={Empty:"Prazno"};var hv={};hv={Empty:"Üres"};var mv={};mv={Empty:"Vuoto"};var gv={};gv={Empty:"空"};var vv={};vv={Empty:"비어 있음"};var yv={};yv={Empty:"Tuščias"};var $v={};$v={Empty:"Tukšs"};var xv={};xv={Empty:"Tom"};var wv={};wv={Empty:"Leeg"};var Cv={};Cv={Empty:"Pusty"};var Dv={};Dv={Empty:"Vazio"};var Ev={};Ev={Empty:"Vazio"};var Pv={};Pv={Empty:"Gol"};var Sv={};Sv={Empty:"Не заполнено"};var Tv={};Tv={Empty:"Prázdne"};var Av={};Av={Empty:"Prazen"};var Mv={};Mv={Empty:"Prazno"};var kv={};kv={Empty:"Tomt"};var Rv={};Rv={Empty:"Boş"};var Fv={};Fv={Empty:"Пусто"};var Bv={};Bv={Empty:"空"};var Iv={};Iv={Empty:"空白"};function RD(e){return e&&e.__esModule?e.default:e}var Lv={};Lv={"ar-AE":nv,"bg-BG":rv,"cs-CZ":ov,"da-DK":iv,"de-DE":av,"el-GR":sv,"en-US":lv,"es-ES":uv,"et-EE":cv,"fi-FI":dv,"fr-FR":fv,"he-IL":pv,"hr-HR":bv,"hu-HU":hv,"it-IT":mv,"ja-JP":gv,"ko-KR":vv,"lt-LT":yv,"lv-LV":$v,"nb-NO":xv,"nl-NL":wv,"pl-PL":Cv,"pt-BR":Dv,"pt-PT":Ev,"ro-RO":Pv,"ru-RU":Sv,"sk-SK":Tv,"sl-SI":Av,"sr-SP":Mv,"sv-SE":kv,"tr-TR":Rv,"uk-UA":Fv,"zh-CN":Bv,"zh-TW":Iv};function Vv(e){const t=u.useRef();let{value:n,textValue:r,minValue:o,maxValue:i,isDisabled:a,isReadOnly:s,isRequired:l,onIncrement:c,onIncrementPage:d,onDecrement:f,onDecrementPage:p,onDecrementToMin:b,onIncrementToMax:h}=e;const g=gr(RD(Lv),"@react-aria/spinbutton"),y=()=>clearTimeout(t.current);u.useEffect(()=>()=>y(),[]);let $=M=>{if(!(M.ctrlKey||M.metaKey||M.shiftKey||M.altKey||s))switch(M.key){case"PageUp":if(d){M.preventDefault(),d==null||d();break}case"ArrowUp":case"Up":c&&(M.preventDefault(),c==null||c());break;case"PageDown":if(p){M.preventDefault(),p==null||p();break}case"ArrowDown":case"Down":f&&(M.preventDefault(),f==null||f());break;case"Home":b&&(M.preventDefault(),b==null||b());break;case"End":h&&(M.preventDefault(),h==null||h());break}},C=u.useRef(!1),x=()=>{C.current=!0},E=()=>{C.current=!1},P=r===""?g.format("Empty"):(r||`${n}`).replace("-","−");u.useEffect(()=>{C.current&&(eD("assertive"),yi(P,"assertive"))},[P]);const A=Se(M=>{y(),c==null||c(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n<i)&&A(60)},M)}),N=Se(M=>{y(),f==null||f(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&N(60)},M)});let v=M=>{M.preventDefault()},{addGlobalListener:L,removeAllGlobalListeners:R}=br();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:x,onBlur:E},incrementButtonProps:{onPressStart:()=>{A(400),L(window,"contextmenu",v)},onPressEnd:()=>{y(),R()},onFocus:x,onBlur:E},decrementButtonProps:{onPressStart:()=>{N(400),L(window,"contextmenu",v)},onPressEnd:()=>{y(),R()},onFocus:x,onBlur:E}}}function Ov(e){return e&&e.__esModule?e.default:e}var Vu={};Vu={"ar-AE":wg,"bg-BG":Cg,"cs-CZ":Dg,"da-DK":Eg,"de-DE":Pg,"el-GR":Sg,"en-US":Tg,"es-ES":Ag,"et-EE":Mg,"fi-FI":kg,"fr-FR":Rg,"he-IL":Fg,"hr-HR":Bg,"hu-HU":Ig,"it-IT":Lg,"ja-JP":Vg,"ko-KR":Og,"lt-LT":Ng,"lv-LV":Kg,"nb-NO":jg,"nl-NL":_g,"pl-PL":zg,"pt-BR":Ug,"pt-PT":Hg,"ro-RO":Wg,"ru-RU":Gg,"sk-SK":Yg,"sl-SI":qg,"sr-SP":Zg,"sv-SE":Xg,"tr-TR":Jg,"uk-UA":Qg,"zh-CN":ev,"zh-TW":tv};function FD(e,t,n){let{direction:r}=Ne(),o=u.useMemo(()=>e0(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,d=Ze(t.current,{tabbable:!0});if(c&&(d.currentNode=c,c=d.previousNode()),!c){let f;do f=d.lastChild(),f&&(c=f);while(f)}for(;c!=null&&c.hasAttribute("data-placeholder");){let f=d.previousNode();if(f&&f.hasAttribute("data-placeholder"))c=f;else break}c&&c.focus()},{pressProps:s}=ln({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&a()},onPress(l){l.pointerType!=="mouse"&&a()}});return J(s,{onKeyDown:i})}const Nv=new WeakMap,Es="__role_"+Date.now(),BD="__focusManager_"+Date.now();function Ou(e,t,n){var r;let{isInvalid:o,validationErrors:i,validationDetails:a}=t.displayValidation,{labelProps:s,fieldProps:l,descriptionProps:c,errorMessageProps:d}=Qh({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||i}),f=u.useRef(null),{focusWithinProps:p}=hr({...e,onFocusWithin(R){var M;f.current=t.value,(M=e.onFocus)===null||M===void 0||M.call(e,R)},onBlurWithin:R=>{var M;t.confirmPlaceholder(),t.value!==f.current&&t.commitValidation(),(M=e.onBlur)===null||M===void 0||M.call(e,R)},onFocusWithinChange:e.onFocusChange}),b=gr(Ov(Vu),"@react-aria/datepicker"),h=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",g=t.maxGranularity==="hour"?"time":"date",y=t.value?b.format(h,{[g]:t.formatValue({month:"long"})}):"",$=Np(y),C=e[Es]==="presentation"?l["aria-describedby"]:[$["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=e[BD],E=u.useMemo(()=>x||e0(n),[x,n]),P=FD(t,n,e[Es]==="presentation");Nv.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[s.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:E});let A=u.useRef(e.autoFocus),N;e[Es]==="presentation"?N={role:"presentation"}:N=J(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),u.useEffect(()=>{A.current&&E.focusFirst(),A.current=!1},[E]),mo(e.inputRef,t.value,t.setValue),ku({...e,focus(){E.focusFirst()}},t,e.inputRef);let v={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||""};e.validationBehavior==="native"&&(v.type="text",v.hidden=!0,v.required=e.isRequired,v.onChange=()=>{});let L=le(e);return{labelProps:{...s,onClick:()=>{E.focusFirst()}},fieldProps:J(L,N,P,p,{onKeyDown(R){e.onKeyDown&&e.onKeyDown(R)},onKeyUp(R){e.onKeyUp&&e.onKeyUp(R)}}),inputProps:v,descriptionProps:c,errorMessageProps:d,isInvalid:o,validationErrors:i,validationDetails:a}}function ID(e,t,n){var r;let o=Ou(e,t,n);return o.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",o}function LD(){let{locale:e}=Ne(),t=F0(Ov(Vu),"@react-aria/datepicker");return u.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new VD(e,t)}},[e,t])}class VD{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function OD(e,t,n){let r=u.useRef(""),{locale:o}=Ne(),i=LD(),{ariaLabel:a,ariaLabelledBy:s,ariaDescribedBy:l,focusManager:c}=Nv.get(t),d=e.isPlaceholder?"":e.text,f=u.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=ei({month:"long",timeZone:f.timeZone}),b=ei({hour:"numeric",hour12:f.hour12,timeZone:f.timeZone});if(e.type==="month"&&!e.isPlaceholder){let S=p.format(t.dateValue);d=S!==d?`${d} – ${S}`:S}else e.type==="hour"&&!e.isPlaceholder&&(d=b.format(t.dateValue));let{spinButtonProps:h}=Vv({value:e.value,textValue:d,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 S=e.text.slice(0,-1),W=g.parse(S);S.length===0||W===0?t.clearSegment(e.type):t.setSegment(e.type,W),r.current=S}else e.type==="dayPeriod"&&t.clearSegment(e.type)},$=S=>{if(S.key==="a"&&(Ut()?S.metaKey:S.ctrlKey)&&S.preventDefault(),!(S.ctrlKey||S.metaKey||S.shiftKey||S.altKey))switch(S.key){case"Backspace":case"Delete":S.preventDefault(),S.stopPropagation(),y();break}},{startsWith:C}=B0({sensitivity:"base"}),x=ei({hour:"numeric",hour12:!0}),E=u.useMemo(()=>{let S=new Date;return S.setHours(0),x.formatToParts(S).find(W=>W.type==="dayPeriod").value},[x]),P=u.useMemo(()=>{let S=new Date;return S.setHours(12),x.formatToParts(S).find(W=>W.type==="dayPeriod").value},[x]),A=ei({year:"numeric",era:"narrow",timeZone:"UTC"}),N=u.useMemo(()=>{if(e.type!=="era")return[];let S=Xe(new Be(1,1,1),t.calendar),W=t.calendar.getEras().map(U=>{let D=S.set({year:1,month:1,day:1,era:U}).toDate("UTC"),Y=A.formatToParts(D).find(X=>X.type==="era").value;return{era:U,formatted:Y}}),G=ND(W.map(U=>U.formatted));if(G)for(let U of W)U.formatted=U.formatted.slice(G);return W},[A,t.calendar,e.type]),v=S=>{if(t.isDisabled||t.isReadOnly)return;let W=r.current+S;switch(e.type){case"dayPeriod":if(C(E,S))t.setSegment("dayPeriod",0);else if(C(P,S))t.setSegment("dayPeriod",12);else break;c.focusNext();break;case"era":{let G=N.find(U=>C(U.formatted,S));G&&(t.setSegment("era",G.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!g.isValidPartialNumber(W))return;let G=g.parse(W),U=G,D=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":G>11&&(U=g.parse(S));break;case"h12":D=!1,G>12&&(U=g.parse(S));break}e.value>=12&&G>1&&(G+=12)}else G>e.maxValue&&(U=g.parse(S));if(isNaN(G))return;let O=U!==0||D;O&&t.setSegment(e.type,U),+(G+"0")>e.maxValue||W.length>=String(e.maxValue).length?(r.current="",O&&c.focusNext()):r.current=W;break}}},L=()=>{r.current="",Os(n.current,{containingElement:no(n.current)}),window.getSelection().collapse(n.current)},R=u.useRef("");Pi(n,"beforeinput",S=>{switch(S.preventDefault(),S.inputType){case"deleteContentBackward":case"deleteContentForward":g.isValidPartialNumber(e.text)&&!t.isReadOnly&&y();break;case"insertCompositionText":R.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:S.data!=null&&v(S.data);break}}),Pi(n,"input",S=>{let{inputType:W,data:G}=S;switch(W){case"insertCompositionText":n.current.textContent=R.current,(C(E,G)||C(P,G))&&v(G);break}}),he(()=>{let S=n.current;return()=>{document.activeElement===S&&(c.focusPrevious()||c.focusNext())}},[n,c]);let M=pr()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},B=u.useMemo(()=>t.segments.find(S=>S.isEditable),[t.segments]);e!==B&&!t.isInvalid&&(l=void 0);let T=Ue(),I=!t.isDisabled&&!t.isReadOnly&&e.isEditable,K=e.type==="literal"?"":i.of(e.type),V=Tn({"aria-label":`${K}${a?`, ${a}`:""}${s?", ":""}`,"aria-labelledby":s});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:J(h,V,{id:T,...M,"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(S){S.stopPropagation()},onMouseDown(S){S.stopPropagation()}})}}function ND(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 KD(e,t){let{role:n="dialog"}=e,r=on();r=e["aria-label"]?void 0:r;let o=u.useRef(!1);return u.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]),wb(),{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 Kv(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:c}=Do({...e,labelElementType:"span"});t=bt(t,n,r);let d=(t-n)/(r-n),f=ji(a);if(!i&&!o){let p=a.style==="percent"?d: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 jD(e){let{progressBarProps:t,labelProps:n}=Kv(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}var jv={};jv={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var _v={};_v={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var zv={};zv={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var Uv={};Uv={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var Hv={};Hv={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var Wv={};Wv={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var Gv={};Gv={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var Yv={};Yv={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var qv={};qv={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var Zv={};Zv={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var Xv={};Xv={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var Jv={};Jv={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var Qv={};Qv={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var ey={};ey={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var ty={};ty={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};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=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var iy={};iy={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var ay={};ay={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var sy={};sy={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var ly={};ly={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var uy={};uy={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var cy={};cy={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var dy={};dy={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var fy={};fy={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var py={};py={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var by={};by={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var hy={};hy={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var my={};my={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var gy={};gy={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};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=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};function _D(e){return e&&e.__esModule?e.default:e}var xy={};xy={"ar-AE":jv,"bg-BG":_v,"cs-CZ":zv,"da-DK":Uv,"de-DE":Hv,"el-GR":Wv,"en-US":Gv,"es-ES":Yv,"et-EE":qv,"fi-FI":Zv,"fr-FR":Xv,"he-IL":Jv,"hr-HR":Qv,"hu-HU":ey,"it-IT":ty,"ja-JP":ny,"ko-KR":ry,"lt-LT":oy,"lv-LV":iy,"nb-NO":ay,"nl-NL":sy,"pl-PL":ly,"pt-BR":uy,"pt-PT":cy,"ro-RO":dy,"ru-RU":fy,"sk-SK":py,"sl-SI":by,"sr-SP":hy,"sv-SE":my,"tr-TR":gy,"uk-UA":vy,"zh-CN":yy,"zh-TW":$y};function zD(e,t,n){let{id:r,decrementAriaLabel:o,incrementAriaLabel:i,isDisabled:a,isReadOnly:s,isRequired:l,minValue:c,maxValue:d,autoFocus:f,label:p,formatOptions:b,onBlur:h=()=>{},onFocus:g,onFocusChange:y,onKeyDown:$,onKeyUp:C,description:x,errorMessage:E,isWheelDisabled:P,...A}=e,{increment:N,incrementToMax:v,decrement:L,decrementToMin:R,numberValue:M,inputValue:B,commit:T,commitValidation:I}=t;const K=gr(_D(xy),"@react-aria/numberfield");let V=Ue(r),{focusProps:S}=oa({onBlur(){T()}}),W=ji(b),G=u.useMemo(()=>W.resolvedOptions(),[W]),U=ji({...b,currencySign:void 0}),D=u.useMemo(()=>isNaN(M)?"":U.format(M),[U,M]),{spinButtonProps:O,incrementButtonProps:Y,decrementButtonProps:X}=Vv({isDisabled:a,isReadOnly:s,isRequired:l,maxValue:d,minValue:c,onIncrement:N,onIncrementToMax:v,onDecrement:L,onDecrementToMin:R,value:M,textValue:D}),[Q,ne]=u.useState(!1),{focusWithinProps:z}=hr({isDisabled:a,onFocusWithinChange:ne}),q=u.useCallback(je=>{Math.abs(je.deltaY)<=Math.abs(je.deltaX)||(je.deltaY>0?N():je.deltaY<0&&L())},[L,N]);$x({onScroll:q,isDisabled:P||a||s||!Q},n);let ae=G.maximumFractionDigits>0,re=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,Ie="numeric";Lp()?re?Ie="text":ae&&(Ie="decimal"):Nl()&&(re?Ie="numeric":ae&&(Ie="decimal"));let He=je=>{t.validate(je)&&t.setInputValue(je)},Ct=le(e),Kn=u.useCallback(je=>{je.key==="Enter"?(T(),I()):je.continuePropagation()},[T,I]),{isInvalid:Xt,validationErrors:Jt,validationDetails:Cr}=t.displayValidation,{labelProps:ue,inputProps:fe,descriptionProps:$e,errorMessageProps:Fo}=AD({...A,...Ct,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:Ie,onChange:He,onBlur:h,onFocus:g,onFocusChange:y,onKeyDown:u.useMemo(()=>sn(Kn,$),[Kn,$]),onKeyUp:C,description:x,errorMessage:E},t,n);mo(n,t.numberValue,t.setNumberValue);let Dr=J(O,S,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"&&(Dr["aria-required"]=void 0);let Er=je=>{var Sr;document.activeElement!==n.current&&(je.pointerType==="mouse"?(Sr=n.current)===null||Sr===void 0||Sr.focus():je.target.focus())},pn=e["aria-label"]||(typeof e.label=="string"?e.label:""),Dt;pn||(Dt=e.label!=null?ue.id:e["aria-labelledby"]);let Pr=Ue(),Bo=Ue(),ka=J(Y,{"aria-label":i||K.format("increase",{fieldLabel:pn}).trim(),id:Dt&&!i?Pr:null,"aria-labelledby":Dt&&!i?`${Pr} ${Dt}`:null,"aria-controls":V,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:Er}),Ra=J(X,{"aria-label":o||K.format("decrease",{fieldLabel:pn}).trim(),id:Dt&&!o?Bo:null,"aria-labelledby":Dt&&!o?`${Bo} ${Dt}`:null,"aria-controls":V,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:Er});return{groupProps:{...z,role:"group","aria-disabled":a,"aria-invalid":Xt?"true":void 0},labelProps:ue,inputProps:Dr,incrementButtonProps:ka,decrementButtonProps:Ra,errorMessageProps:Fo,descriptionProps:$e,isInvalid:Xt,validationErrors:Jt,validationDetails:Cr}}function wy(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 Nu=new WeakMap;function gl(e,t){let n=Nu.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function UD(e,t,n){let{labelProps:r,fieldProps:o}=Do(e),i=e.orientation==="vertical";var a;Nu.set(t,{id:(a=r.id)!==null&&a!==void 0?a:o.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:s}=Ne(),{addGlobalListener:l,removeGlobalListener:c}=br();const d=u.useRef(null),f=s==="rtl",p=u.useRef(null),{moveProps:b}=Zp({onMoveStart(){p.current=null},onMove({deltaX:$,deltaY:C}){let{height:x,width:E}=n.current.getBoundingClientRect(),P=i?x:E;p.current==null&&(p.current=t.getThumbPercent(d.current)*P);let A=i?C:$;if((i||f)&&(A=-A),p.current+=A,d.current!=null&&n.current){const N=bt(p.current/P,0,1);t.setThumbPercent(d.current,N)}},onMoveEnd(){d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null)}});let h=u.useRef(void 0),g=($,C,x,E)=>{if(n.current&&!e.isDisabled&&t.values.every((P,A)=>!t.isThumbDragging(A))){let{height:P,width:A,top:N,left:v}=n.current.getBoundingClientRect(),L=i?P:A,T=((i?E:x)-(i?N:v))/L;(s==="rtl"||i)&&(T=1-T);let I=t.getPercentValue(T),K,V=t.values.findIndex(S=>I-S<0);if(V===0)K=V;else if(V===-1)K=t.values.length-1;else{let S=t.values[V-1],W=t.values[V];Math.abs(S-I)<Math.abs(W-I)?K=V-1:K=V}K>=0&&t.isThumbEditable(K)?($.preventDefault(),d.current=K,t.setFocusedThumb(K),h.current=C,t.setThumbDragging(d.current,!0),t.setThumbValue(K,I),l(window,"mouseup",y,!1),l(window,"touchend",y,!1),l(window,"pointerup",y,!1)):d.current=null}},y=$=>{var C,x;((x=$.pointerId)!==null&&x!==void 0?x:(C=$.changedTouches)===null||C===void 0?void 0:C[0].identifier)===h.current&&(d.current!=null&&(t.setThumbDragging(d.current,!1),d.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(gl(t,0)))===null||$===void 0||$.focus(),Yp("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"}},b),outputProps:{htmlFor:t.values.map(($,C)=>gl(t,C)).join(" "),"aria-live":"off"}}}function HD(e,t){let{index:n=0,isRequired:r,validationState:o,isInvalid:i,trackRef:a,inputRef:s,orientation:l=t.orientation,name:c}=e,d=e.isDisabled||t.isDisabled,f=l==="vertical",{direction:p}=Ne(),{addGlobalListener:b,removeGlobalListener:h}=br(),g=Nu.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()}),x=t.values[n],E=u.useCallback(()=>{s.current&&Tt(s.current)},[s]),P=t.focusedThumb===n;u.useEffect(()=>{P&&E()},[P,E]);let A=p==="rtl",N=u.useRef(null),{keyboardProps:v}=zl({onKeyDown(V){let{getThumbMaxValue:S,getThumbMinValue:W,decrementThumb:G,incrementThumb:U,setThumbValue:D,setThumbDragging:O,pageSize:Y}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(V.key)){V.continuePropagation();return}switch(V.preventDefault(),O(n,!0),V.key){case"PageUp":U(n,Y);break;case"PageDown":G(n,Y);break;case"Home":D(n,W(n));break;case"End":D(n,S(n));break}O(n,!1)}}),{moveProps:L}=Zp({onMoveStart(){N.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:V,deltaY:S,pointerType:W,shiftKey:G}){const{getThumbPercent:U,setThumbPercent:D,decrementThumb:O,incrementThumb:Y,step:X,pageSize:Q}=t;let{width:ne,height:z}=a.current.getBoundingClientRect(),q=f?z:ne;if(N.current==null&&(N.current=U(n)*q),W==="keyboard")V>0&&A||V<0&&!A||S>0?O(n,G?Q:X):Y(n,G?Q:X);else{let ee=f?S:V;(f||A)&&(ee=-ee),N.current+=ee,D(n,bt(N.current/q,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!d);const{focusableProps:R}=mr(J(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),s);let M=u.useRef(void 0),B=V=>{E(),M.current=V,t.setThumbDragging(n,!0),b(window,"mouseup",T,!1),b(window,"touchend",T,!1),b(window,"pointerup",T,!1)},T=V=>{var S,W;((W=V.pointerId)!==null&&W!==void 0?W:(S=V.changedTouches)===null||S===void 0?void 0:S[0].identifier)===M.current&&(E(),t.setThumbDragging(n,!1),h(window,"mouseup",T,!1),h(window,"touchend",T,!1),h(window,"pointerup",T,!1))},I=t.getThumbPercent(n);(f||p==="rtl")&&(I=1-I);let K=d?{}:J(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,x,V=>{t.setThumbValue(n,V)}),{inputProps:J(R,C,{type:"range",tabIndex:d?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:x,name:c,disabled:d,"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:d,isFocused:P}}function WD(e,t,n){let{labelProps:r,inputProps:o,isSelected:i,isPressed:a,isDisabled:s,isReadOnly:l}=Jh(e,t,n);return{labelProps:r,inputProps:{...o,role:"switch",checked:i},isSelected:i,isPressed:a,isDisabled:s,isReadOnly:l}}const Cy=new WeakMap;function Ji(e,t,n){return typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${Cy.get(e)}-${n}-${t}`}function GD(e,t,n){var r;let{key:o,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:s,selectedKey:l}=t,c=o===l,d=i||t.isDisabled||t.disabledKeys.has(o),{itemProps:f,isPressed:p}=Fu({selectionManager:s,key:o,ref:n,isDisabled:d,shouldSelectOnPressUp:a,linkBehavior:"selection"}),b=Ji(t,o,"tab"),h=Ji(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:J($,f,{id:b,"aria-selected":c,"aria-disabled":d||void 0,"aria-controls":c?h:void 0,tabIndex:d?void 0:g,role:"tab"}),isSelected:c,isDisabled:d,isPressed:p}}function YD(e,t,n){let r=Ix(n)?void 0:0;var o;const i=Ji(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),a=Tn({...e,id:i,"aria-labelledby":Ji(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 qD{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 ZD(e,t,n){let{orientation:r="horizontal",keyboardActivation:o="automatic"}=e,{collection:i,selectionManager:a,disabledKeys:s}=t,{direction:l}=Ne(),c=u.useMemo(()=>new qD(i,l,r,s),[i,s,r,l]),{collectionProps:d}=Ru({ref:n,selectionManager:a,keyboardDelegate:c,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Ue();Cy.set(t,f);let p=Tn({...e,id:f});return{tabListProps:{...J(d,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}function XD(e,t){let n=le(e,{labelable:!0}),{hoverProps:r}=Ve({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:J(n,r,{role:"tooltip"})}}function JD(e,t,n){let{isDisabled:r,trigger:o}=e,i=Ue(),a=u.useRef(!1),s=u.useRef(!1),l=()=>{(a.current||s.current)&&t.open(s.current)},c=$=>{!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 d=()=>{o!=="focus"&&(Ai()==="pointer"?a.current=!0:a.current=!1,l())},f=()=>{o!=="focus"&&(s.current=!1,a.current=!1,c())},p=()=>{s.current=!1,a.current=!1,c(!0)},b=()=>{sr()&&(s.current=!0,l())},h=()=>{s.current=!1,a.current=!1,c(!0)},{hoverProps:g}=Ve({isDisabled:r,onHoverStart:d,onHoverEnd:f}),{focusableProps:y}=mr({isDisabled:r,onFocus:b,onBlur:h},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...J(y,g,{onPointerDown:p,onKeyDown:p})},tooltipProps:{id:i}}}class $t extends Set{constructor(t,n,r){super(t),t instanceof $t?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function QD(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Dy(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),c=u.useRef(null),[,d]=u.useState(null),f=u.useMemo(()=>Xf(e.selectedKeys),[e.selectedKeys]),p=u.useMemo(()=>Xf(e.defaultSelectedKeys,new $t),[e.defaultSelectedKeys]),[b,h]=gt(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 b=="object"&&b.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(x){a.current=x,s(x)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(x,E="first"){l.current=x,c.current=E,d(x)},selectedKeys:b,setSelectedKeys(x){(r||!QD(x,b))&&h(x)},disabledKeys:g,disabledBehavior:i}}function Xf(e,t){return e?e==="all"?"all":new $t(e):t}class Ey{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Ds(this.collection,r,t)<0)&&(t=r)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Ds(this.collection,r,t)>0)&&(t=r)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new $t([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new $t(r,o,t);for(let i of this.getKeyRange(o,r.currentKey||t))n.delete(i);for(let i of this.getKeyRange(t,o))this.canSelectItem(i)&&n.add(i)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?Ds(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],o=t;for(;o;){let i=this.collection.getItem(o);if((i&&i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(o),o===n)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let n=new $t(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new $t([t],t,t):new $t;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new $t;for(let r of t)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r;){if(this.canSelectItem(r)){let o=this.collection.getItem(r);o.type==="item"&&t.push(r),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n(hD(ya(o,this.collection)).key)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new $t)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}class 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 Py(e){let{filter:t}=e,n=Dy(e),r=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=u.useCallback(c=>t?new vl(t(c)):new vl(c),[t]),i=u.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=Lm(e,o,i),s=u.useMemo(()=>new Ey(a,n),[a,n]);const l=u.useRef(null);return u.useEffect(()=>{if(n.focusedKey!=null&&!a.getItem(n.focusedKey)){const c=l.current.getItem(n.focusedKey),d=[...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=d.length-f.length;let b=Math.min(p>1?Math.max(c.index-p+1,0):c.index,f.length-1),h;for(;b>=0;){if(!s.isDisabled(f[b].key)){h=f[b];break}b<f.length-1?b++:(b>c.index&&(b=c.index),b--)}n.setFocusedKey(h?h.key:null)}l.current=a},[a,s,n,n.focusedKey]),{collection:a,disabledKeys:r,selectionManager:s}}function Sy(e){var t;let[n,r]=gt(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}=Py({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:c=>{var d;let f=(d=c.values().next().value)!==null&&d!==void 0?d: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 xa(e){let[t,n]=gt(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 e8(e){var t,n;let{defaultFilter:r,menuTrigger:o="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:s=!0}=e,[l,c]=u.useState(!1),[d,f]=u.useState(!1),[p,b]=u.useState(null),h=ue=>{e.onSelectionChange&&e.onSelectionChange(ue),ue===C&&(X(),D())};var g;let{collection:y,selectionManager:$,selectedKey:C,setSelectedKey:x,selectedItem:E,disabledKeys:P}=Sy({...e,onSelectionChange:h,items:(g=e.items)!==null&&g!==void 0?g:e.defaultItems});var A,N;let[v,L]=gt(e.inputValue,(N=(A=e.defaultInputValue)!==null&&A!==void 0?A:(t=y.getItem(C))===null||t===void 0?void 0:t.textValue)!==null&&N!==void 0?N:"",e.onInputChange),R=y,M=u.useMemo(()=>e.items!=null||!r?y:t8(y,v,r),[y,v,r,e.items]),[B,T]=u.useState(M),I=u.useRef("focus"),V=xa({...e,onOpenChange:ue=>{e.onOpenChange&&e.onOpenChange(ue,ue?I.current:void 0),$.setFocused(ue),ue||$.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),S=(ue=null,fe)=>{let $e=fe==="manual"||fe==="focus"&&o==="focus";(i||M.size>0||$e&&R.size>0||e.items)&&($e&&!V.isOpen&&e.items===void 0&&c(!0),I.current=fe,b(ue),V.open())},W=(ue=null,fe)=>{let $e=fe==="manual"||fe==="focus"&&o==="focus";!(i||M.size>0||$e&&R.size>0||e.items)&&!V.isOpen||($e&&!V.isOpen&&e.items===void 0&&c(!0),V.isOpen||(I.current=fe),U(ue))},G=u.useCallback(()=>{T(l?R:M)},[l,R,M]),U=u.useCallback((ue=null)=>{V.isOpen&&G(),b(ue),V.toggle()},[V,G]),D=u.useCallback(()=>{V.isOpen&&(G(),V.close())},[V,G]),[O,Y]=u.useState(v),X=()=>{var ue,fe;let $e=(fe=(ue=y.getItem(C))===null||ue===void 0?void 0:ue.textValue)!==null&&fe!==void 0?fe:"";Y($e),L($e)};var Q,ne;let z=u.useRef((ne=(Q=e.selectedKey)!==null&&Q!==void 0?Q:e.defaultSelectedKey)!==null&&ne!==void 0?ne:null);var q;let ee=u.useRef((q=(n=y.getItem(C))===null||n===void 0?void 0:n.textValue)!==null&&q!==void 0?q:"");u.useEffect(()=>{var ue;d&&(M.size>0||i)&&!V.isOpen&&v!==O&&o!=="manual"&&S(null,"input"),!l&&!i&&V.isOpen&&M.size===0&&D(),C!=null&&C!==z.current&&D(),v!==O&&($.setFocusedKey(null),c(!1),v===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&x(null)),C!==z.current&&(e.inputValue===void 0||e.selectedKey===void 0)?X():O!==v&&Y(v);var fe;let $e=(fe=(ue=y.getItem(C))===null||ue===void 0?void 0:ue.textValue)!==null&&fe!==void 0?fe:"";!d&&C!=null&&e.inputValue===void 0&&C===z.current&&ee.current!==$e&&(Y($e),L($e)),z.current=C,ee.current=$e});let ae=yr({...e,value:u.useMemo(()=>({inputValue:v,selectedKey:C}),[v,C])}),re=()=>{a&&C==null?Ie():He()},Ie=()=>{z.current=null,x(null),D()},He=()=>{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:"";Y($e),D()}else X(),D()};const Ct=()=>{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?He():Ie()}else He()};let Kn=()=>{V.isOpen&&$.focusedKey!=null?C===$.focusedKey?He():x($.focusedKey):Ct()},Xt=u.useRef(v),Jt=ue=>{ue?(Xt.current=v,o==="focus"&&S(null,"focus")):(s&&Ct(),v!==Xt.current&&ae.commitValidation()),f(ue)},Cr=u.useMemo(()=>V.isOpen?l?R:M:B,[V.isOpen,R,M,l,B]);return{...ae,...V,focusStrategy:p,toggle:W,open:S,close:Ct,selectionManager:$,selectedKey:C,setSelectedKey:x,disabledKeys:P,isFocused:d,setFocused:Jt,selectedItem:E,collection:Cr,inputValue:v,setInputValue:L,commit:Kn,revert:re}}function t8(e,t,n){return new vl(Ty(e,e,t,n))}function Ty(e,t,n,r){let o=[];for(let i of t)if(i.type==="section"&&i.hasChildNodes){let a=Ty(e,ya(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 Ay={};Ay={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var My={};My={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var ky={};ky={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 Ry={};Ry={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 Fy={};Fy={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 By={};By={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var Iy={};Iy={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 Ly={};Ly={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 Vy={};Vy={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 Oy={};Oy={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 Ny={};Ny={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 Ky={};Ky={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var jy={};jy={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 _y={};_y={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 zy={};zy={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 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 Wy={};Wy={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 Gy={};Gy={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 Yy={};Yy={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 qy={};qy={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 Zy={};Zy={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 Xy={};Xy={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 Jy={};Jy={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 Qy={};Qy={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 e4={};e4={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var t4={};t4={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 n4={};n4={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 r4={};r4={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 o4={};o4={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 i4={};i4={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 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=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};function n8(e){return e&&e.__esModule?e.default:e}var u4={};u4={"ar-AE":Ay,"bg-BG":My,"cs-CZ":ky,"da-DK":Ry,"de-DE":Fy,"el-GR":By,"en-US":Iy,"es-ES":Ly,"et-EE":Vy,"fi-FI":Oy,"fr-FR":Ny,"he-IL":Ky,"hr-HR":jy,"hu-HU":_y,"it-IT":zy,"ja-JP":Uy,"ko-KR":Hy,"lt-LT":Wy,"lv-LV":Gy,"nb-NO":Yy,"nl-NL":qy,"pl-PL":Zy,"pt-BR":Xy,"pt-PT":Jy,"ro-RO":Qy,"ru-RU":e4,"sk-SK":t4,"sl-SI":n4,"sr-SP":r4,"sv-SE":o4,"tr-TR":i4,"uk-UA":a4,"zh-CN":s4,"zh-TW":l4};const r8=new Bn(n8(u4));function o8(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function i8(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 d=o8(),f=Bn.getGlobalDictionaryForPackage("@react-stately/datepicker")||r8,p=new n0(d,f),b=new Yr(d,yl({},o)),h=b.resolvedOptions().timeZone;a&&c.push(p.format("rangeUnderflow",{minValue:b.format(t.toDate(h))})),i&&c.push(p.format("rangeOverflow",{maxValue:b.format(n.toDate(h))})),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 a8={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},s8={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function yl(e,t){e={...t.shouldForceLeadingZeros?s8:a8,...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((d,f)=>(d[f]=e[f],d),{});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 c4(e,t){if(e===null)return null;if(e)return Xe(e,t)}function Or(e,t,n,r){if(e)return c4(e,n);let o=Xe(o0(r).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?c0(o):r?o:un(o)}function l8(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 u8=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 c8(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?u8.getStringForLocale(e,n):"––"}const ui={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},Jf={year:5,month:2,day:7,hour:2,minute:15,second:15},d8={dayperiod:"dayPeriod"};function Ku(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:o,isReadOnly:i,isRequired:a,minValue:s,maxValue:l,isDateUnavailable:c}=e,d=e.value||e.defaultValue||e.placeholderValue,[f,p]=l8(d,e.granularity),b=p||"UTC";if(d&&!(f in d))throw new Error("Invalid granularity "+f+" for value "+d.toString());let h=u.useMemo(()=>new Yr(t),[t]),g=u.useMemo(()=>n(h.resolvedOptions().calendar),[n,h]),[y,$]=gt(e.value,e.defaultValue,e.onChange),C=u.useMemo(()=>c4(y,g),[y,g]),[x,E]=u.useState(()=>Or(e.placeholderValue,f,g,p)),P=C||x,A=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:A,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,p,r,A]),v=u.useMemo(()=>yl({},N),[N]),L=u.useMemo(()=>new Yr(t,v),[t,v]),R=u.useMemo(()=>L.resolvedOptions(),[L]),M=u.useMemo(()=>L.formatToParts(new Date).filter(z=>ui[z.type]).reduce((z,q)=>(z[q.type]=!0,z),{}),[L]),[B,T]=u.useState(()=>e.value||e.defaultValue?{...M}:{}),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(M).length&&(B={...M},T(B)),y==null&&Object.keys(B).length===Object.keys(M).length&&(B={},T(B),E(Or(e.placeholderValue,f,g,p)));let V=C&&Object.keys(B).length>=Object.keys(M).length?C:x,S=z=>{if(e.isDisabled||e.isReadOnly)return;let q=Object.keys(B),ee=Object.keys(M);z==null?($(null),E(Or(e.placeholderValue,f,g,p)),T({})):q.length>=ee.length||q.length===ee.length-1&&M.dayPeriod&&!B.dayPeriod&&I.current!=="dayPeriod"?(z=Xe(z,(d==null?void 0:d.calendar)||new rt),$(z)):E(z),I.current=null},W=u.useMemo(()=>V.toDate(b),[V,b]),G=u.useMemo(()=>L.formatToParts(W).map(z=>{let q=ui[z.type];z.type==="era"&&g.getEras().length===1&&(q=!1);let ee=ui[z.type]&&!B[z.type],ae=ui[z.type]?c8(z.type,z.value,t):null;return{type:d8[z.type]||z.type,text:ee?ae:z.value,...f8(V,z.type,R),isPlaceholder:ee,placeholder:ae,isEditable:q}}),[W,B,L,R,V,g,t]);M.era&&B.year&&!B.era?(B.era=!0,T({...B})):!M.era&&B.era&&(delete B.era,T({...B}));let U=z=>{B[z]=!0,z==="year"&&M.era&&(B.era=!0),T({...B})},D=(z,q)=>{if(B[z])S(p8(V,z,q,R));else{U(z);let ee=Object.keys(B),ae=Object.keys(M);(ee.length>=ae.length||ee.length===ae.length-1&&M.dayPeriod&&!B.dayPeriod)&&S(V)}},O=u.useMemo(()=>i8(y,s,l,c,N),[y,s,l,c,N]),Y=yr({...e,value:y,builtinValidation:O}),X=Y.displayValidation.isInvalid,Q=e.validationState||(X?"invalid":null);var ne;return{...Y,value:C,dateValue:W,calendar:g,setValue:S,segments:G,dateFormatter:L,validationState:Q,isInvalid:X,granularity:f,maxGranularity:(ne=e.maxGranularity)!==null&&ne!==void 0?ne:"year",isDisabled:o,isReadOnly:i,isRequired:a,increment(z){D(z,1)},decrement(z){D(z,-1)},incrementPage(z){D(z,Jf[z]||1)},decrementPage(z){D(z,-(Jf[z]||1))},setSegment(z,q){U(z),S(b8(V,z,q,R))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let z=Object.keys(B),q=Object.keys(M);z.length===q.length-1&&M.dayPeriod&&!B.dayPeriod&&(B={...M},T(B),S(V.copy()))},clearSegment(z){delete B[z],I.current=z,T({...B});let q=Or(e.placeholderValue,f,g,p),ee=V;if(z==="dayPeriod"&&"hour"in V&&"hour"in q){let ae=V.hour>=12,re=q.hour>=12;ae&&!re?ee=V.set({hour:V.hour-12}):!ae&&re&&(ee=V.set({hour:V.hour+12}))}else z in V&&(ee=V.set({[z]:q[z]}));$(null),S(ee)},formatValue(z){if(!C)return"";let q=yl(z,N);return new Yr(t,q).format(W)}}}function f8(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:Ux(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:Hx(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 p8(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 b8(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 h8(e){let{placeholderValue:t=new la,minValue:n,maxValue:r,granularity:o,validate:i}=e,[a,s]=gt(e.value,e.defaultValue,e.onChange),l=a||t,c=l&&"day"in l?l:void 0,d=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||d)&&t?d0(Nr(t),C||d):Nr(t)},[t,l,d]),p=u.useMemo(()=>Nr(n,c),[n,c]),b=u.useMemo(()=>Nr(r,c),[r,c]),h=u.useMemo(()=>a&&"day"in a?id(a):a,[a]),g=u.useMemo(()=>a==null?null:Nr(a),[a]);return{...Ku({...e,value:g,defaultValue:void 0,minValue:p,maxValue:b,onChange:C=>{s(c||d?C:C&&id(C))},granularity:o||"minute",maxGranularity:"hour",placeholderValue:f,createCalendar:()=>new rt,validate:u.useCallback(()=>i==null?void 0:i(a),[i,a])}),timeValue:h}}function Nr(e,t=zx(Gl())){return e?"day"in e?e:un(t,e):null}function m8(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]),[c,d]=u.useState(null),f=u.useCallback((h=null)=>{d(h),o(n,s)},[o,s,n]),p=u.useCallback(()=>{d(null),i(n,s)},[i,s,n]),b=u.useCallback((h=null)=>{d(h),l?p():f(h)},[p,f,l]);return u.useMemo(()=>({focusStrategy:c,isOpen:l,open:f,close:p,closeAll:a,submenuLevel:s,setOpen:()=>{},toggle:b}),[l,f,p,a,c,b,s])}function g8(e){let{minValue:t,maxValue:n,step:r,formatOptions:o,value:i,defaultValue:a=NaN,onChange:s,locale:l,isDisabled:c,isReadOnly:d}=e;i===null&&(i=NaN),i!==void 0&&!isNaN(i)&&(r!==void 0&&!isNaN(r)?i=Qe(i,t,n,r):i=bt(i,t,n)),isNaN(a)||(r!==void 0&&!isNaN(r)?a=Qe(a,t,n,r):a=bt(a,t,n));let[f,p]=gt(i,isNaN(a)?NaN:a,s),[b,h]=u.useState(()=>isNaN(f)?"":new Ki(l,o).format(f)),g=u.useMemo(()=>new nu(l,o),[l,o]),y=u.useMemo(()=>g.getNumberingSystem(b),[g,b]),$=u.useMemo(()=>new Ki(l,{...o,numberingSystem:y}),[l,o,y]),C=u.useMemo(()=>$.resolvedOptions(),[$]),x=u.useCallback(O=>isNaN(O)||O===null?"":$.format(O),[$]),E=yr({...e,value:f}),P=r!==void 0&&!isNaN(r)?r:1;C.style==="percent"&&(r===void 0||isNaN(r))&&(P=.01);let[A,N]=u.useState(f),[v,L]=u.useState(l),[R,M]=u.useState(o);(!Object.is(f,A)||l!==v||o!==R)&&(h(x(f)),N(f),L(l),M(o));let B=u.useMemo(()=>g.parse(b),[g,b]),T=()=>{if(!b.length){p(NaN),h(i===void 0?"":x(f));return}if(isNaN(B)){h(x(f));return}let O;r===void 0||isNaN(r)?O=bt(B,t,n):O=Qe(B,t,n,r),O=g.parse(x(O)),p(O),h(x(i===void 0?O:f))},I=(O,Y=0)=>{let X=B;if(isNaN(X)){let Q=isNaN(Y)?0:Y;return Qe(Q,t,n,P)}else{let Q=Qe(X,t,n,P);return O==="+"&&Q>X||O==="-"&&Q<X?Q:Qe(Ps(O,X,P),t,n,P)}},K=()=>{let O=I("+",t);O===f&&h(x(O)),p(O),E.commitValidation()},V=()=>{let O=I("-",n);O===f&&h(x(O)),p(O),E.commitValidation()},S=()=>{n!=null&&(p(Qe(n,t,n,P)),E.commitValidation())},W=()=>{t!=null&&(p(t),E.commitValidation())},G=u.useMemo(()=>!c&&!d&&(isNaN(B)||n===void 0||isNaN(n)||Qe(B,t,n,P)>B||Ps("+",B,P)<=n),[c,d,t,n,P,B]),U=u.useMemo(()=>!c&&!d&&(isNaN(B)||t===void 0||isNaN(t)||Qe(B,t,n,P)<B||Ps("-",B,P)>=t),[c,d,t,n,P,B]);return{...E,validate:O=>g.isValidPartialNumber(O,t,n),increment:K,incrementToMax:S,decrement:V,decrementToMin:W,canIncrement:G,canDecrement:U,minValue:t,maxValue:n,numberValue:B,setNumberValue:p,setInputValue:h,inputValue:b,commit:T}}function Ps(e,t,n){let r=e==="+"?t+n:t-n;if(t%1!==0||n%1!==0){const o=t.toString().split("."),i=n.toString().split("."),a=o[1]&&o[1].length||0,s=i[1]&&i[1].length||0,l=Math.pow(10,Math.max(a,s));t=Math.round(t*l),n=Math.round(n*l),r=e==="+"?t+n:t-n,r/=l}return r}const v8=0,y8=100,$8=1;function x8(e){const{isDisabled:t=!1,minValue:n=v8,maxValue:r=y8,numberFormatter:o,step:i=$8,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,Y)=>{let X=Y===0?n:O[Y-1],Q=Y===D.length-1?r:O[Y+1];return Qe(O,X,Q,i)}),[n,r,i]),c=u.useMemo(()=>l(ep(e.value)),[e.value]),d=u.useMemo(()=>{var D;return l((D=ep(e.defaultValue))!==null&&D!==void 0?D:[n])},[e.defaultValue,n]),f=tp(e.value,e.defaultValue,e.onChange),p=tp(e.value,e.defaultValue,e.onChangeEnd);const[b,h]=gt(c,d,f),[g,y]=u.useState(new Array(b.length).fill(!1)),$=u.useRef(new Array(b.length).fill(!0)),[C,x]=u.useState(void 0),E=u.useRef(b),P=u.useRef(g);let A=D=>{E.current=D,h(D)},N=D=>{P.current=D,y(D)};function v(D){return(D-n)/(r-n)}function L(D){return D===0?n:b[D-1]}function R(D){return D===b.length-1?r:b[D+1]}function M(D){return $.current[D]}function B(D,O){$.current[D]=O}function T(D,O){if(t||!M(D))return;const Y=L(D),X=R(D);O=Qe(O,Y,X,i);let Q=Qf(E.current,D,O);A(Q)}function I(D,O){if(t||!M(D))return;O&&(E.current=b);const Y=P.current[D];P.current=Qf(P.current,D,O),N(P.current),p&&Y&&!P.current.some(Boolean)&&p(E.current)}function K(D){return o.format(D)}function V(D,O){T(D,W(O))}function S(D){return Math.round((D-n)/i)*i+n}function W(D){const O=D*(r-n)+n;return bt(S(O),n,r)}function G(D,O=1){let Y=Math.max(O,i);T(D,Qe(b[D]+Y,n,r,i))}function U(D,O=1){let Y=Math.max(O,i);T(D,Qe(b[D]-Y,n,r,i))}return{values:b,getThumbValue:D=>b[D],setThumbValue:T,setThumbPercent:V,isThumbDragging:D=>g[D],setThumbDragging:I,focusedThumb:C,setFocusedThumb:x,getThumbPercent:D=>v(b[D]),getValuePercent:v,getThumbValueLabel:D=>K(b[D]),getFormattedValue:K,getThumbMinValue:L,getThumbMaxValue:R,getPercentValue:W,isThumbEditable:M,setThumbEditable:B,incrementThumb:G,decrementThumb:U,step:i,pageSize:s,orientation:a,isDisabled:t}}function Qf(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function ep(e){if(e!=null)return Array.isArray(e)?e:[e]}function tp(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}function w8(e){var t;let n=Sy({...e,suppressTextValueWarning:!0,defaultSelectedKey:(t=e.defaultSelectedKey)!==null&&t!==void 0?t:np(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=np(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 np(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 C8=1500,rp=500;let hn={},D8=0,Kr=!1,Bt=null,mn=null;function E8(e={}){let{delay:t=C8,closeDelay:n=rp}=e,{isOpen:r,open:o,close:i}=xa(e),a=u.useMemo(()=>`${++D8}`,[]),s=u.useRef(),l=()=>{hn[a]=f},c=()=>{for(let b in hn)b!==a&&(hn[b](!0),delete hn[b])},d=()=>{clearTimeout(s.current),s.current=null,c(),l(),Kr=!0,o(),Bt&&(clearTimeout(Bt),Bt=null),mn&&(clearTimeout(mn),mn=null)},f=b=>{b||n<=0?(clearTimeout(s.current),s.current=null,i()):s.current||(s.current=setTimeout(()=>{s.current=null,i()},n)),Bt&&(clearTimeout(Bt),Bt=null),Kr&&(mn&&clearTimeout(mn),mn=setTimeout(()=>{delete hn[a],mn=null,Kr=!1},Math.max(rp,n)))},p=()=>{c(),l(),!r&&!Bt&&!Kr?Bt=setTimeout(()=>{Bt=null,Kr=!0,d()},t):r||d()};return u.useEffect(()=>()=>{clearTimeout(s.current),hn[a]&&delete hn[a]},[a]),{isOpen:r,open:b=>{!b&&t>0&&!s.current?p():d()},close:f}}class P8{*[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 S8(e){let[t,n]=gt(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),r=Dy(e),o=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=Lm(e,u.useCallback(s=>new P8(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(T8(t,s))},setExpandedKeys:n,selectionManager:new Ey(i,r)}}function T8(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var $l={exports:{}},Ss={};/**
|
|
163
|
+
`,JC={hidden:{opacity:0,transform:"scale(0)"},show:{opacity:1,transform:"scale(1)"}};function QC({children:e,isInvisible:t,disableAnimation:n,placement:r,shape:o,...a}){const i=d.useId(),s=n?{duration:0}:{type:"spring",bounce:.3};return B.jsxs(qC,{children:[e,B.jsx(ZC,{placement:r,shape:o,children:B.jsx(qh,{children:!t&&B.jsx(Ln.div,{variants:JC,initial:n?"show":"hidden",transition:s,animate:"show",exit:"hidden",children:B.jsx(XC,{...a,isInvisible:t,showOutline:a.showOutline??!0})},`badge-${i}`)})})]})}function eD({children:e,...t}){return B.jsx("span",{...t,"aria-hidden":"true",children:e??B.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[B.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"}),B.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"}),B.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 tD(e,t){let{elementType:n="a",onPress:r,onPressStart:o,onPressEnd:a,onClick:i,isDisabled:s,...l}=e,u={};n!=="a"&&(u={role:"link",tabIndex:s?void 0:0});let{focusableProps:c}=mr(e,t),{pressProps:f,isPressed:p}=ln({onPress:r,onPressStart:o,onPressEnd:a,isDisabled:s,ref:t}),b=ue(l,{labelable:!0,isLink:n==="a"}),h=Q(c,f),g=go();return{isPressed:p,linkProps:Q(b,{...h,...u,"aria-disabled":s||void 0,"aria-current":e["aria-current"],onClick:y=>{var $;($=f.onClick)===null||$===void 0||$.call(f,y),i&&(i(y),console.warn("onClick is deprecated, please use onPress")),!g.isNative&&y.currentTarget instanceof HTMLAnchorElement&&y.currentTarget.href&&!y.isDefaultPrevented()&&q3(y.currentTarget,y)&&(y.preventDefault(),g.open(y.currentTarget,y))}})}}function Xh(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:a,onPressEnd:i,onPressUp:s,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:f,href:p,target:b,rel:h,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"?b: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"?h:void 0};let{pressProps:$,isPressed:C}=ln({onPressStart:a,onPressEnd:i,onPressChange:l,onPress:o,onPressUp:s,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:x}=mr(e,t);c&&(x.tabIndex=r?-1:x.tabIndex);let E=Q(x,$,ue(e,{labelable:!0}));return{isPressed:C,buttonProps:Q(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 nD(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:a}=Xh({...e,onPress:sn(t.toggle,e.onPress)},n);return{isPressed:o,buttonProps:Q(a,{"aria-pressed":r})}}const Jh=7e3;let Qr=null;function xa(e,t="assertive",n=Jh){Qr||(Qr=new oD),Qr.announce(e,t,n)}function rD(e){Qr&&Qr.clear(e)}class oD{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=Jh){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 Fu(e,t,n){let{validationBehavior:r,focus:o}=e;ge(()=>{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(iD(n.current))}});let a=Ae(()=>{t.resetValidation()}),i=Ae(l=>{var u;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!l.defaultPrevented&&n&&c&&sD(c)===n.current){var f;o?o():(f=n.current)===null||f===void 0||f.focus(),Xp("keyboard")}l.preventDefault()}),s=Ae(()=>{t.commitValidation()});d.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let u=l.form;return l.addEventListener("invalid",i),l.addEventListener("change",s),u==null||u.addEventListener("reset",a),()=>{l.removeEventListener("invalid",i),l.removeEventListener("change",s),u==null||u.removeEventListener("reset",a)}},[n,i,s,a,r])}function aD(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 iD(e){return{isInvalid:!e.validity.valid,validationDetails:aD(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function sD(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const Qh={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},em={...Qh,customError:!0,valid:!1},qn={isInvalid:!1,validationDetails:Qh,validationErrors:[]},lD=d.createContext({}),co="__formValidationState"+Date.now();function yr(e){if(e[co]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:a}=e[co];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:a}}return uD(e)}function uD(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:a,validate:i,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t?{isInvalid:!0,validationErrors:[],validationDetails:em}:null,u=d.useMemo(()=>Hf(cD(i,o)),[i,o]);a!=null&&a.validationDetails.valid&&(a=null);let c=d.useContext(lD),f=d.useMemo(()=>r?Array.isArray(r)?r.flatMap(F=>gl(c[F])):gl(c[r]):[],[c,r]),[p,b]=d.useState(c),[h,g]=d.useState(!1);c!==p&&(b(c),g(!1));let y=d.useMemo(()=>Hf(h?[]:f),[h,f]),$=d.useRef(qn),[C,x]=d.useState(qn),E=d.useRef(qn),P=()=>{if(!M)return;K(!1);let F=u||a||$.current;Ds(F,E.current)||(E.current=F,x(F))},[M,K]=d.useState(!1);return d.useEffect(P),{realtimeValidation:l||y||u||a||qn,displayValidation:s==="native"?l||y||C:l||y||u||a||C,updateValidation(F){s==="aria"&&!Ds(C,F)?x(F):$.current=F},resetValidation(){let F=qn;Ds(F,E.current)||(E.current=F,x(F)),s==="native"&&K(!1),g(!0)},commitValidation(){s==="native"&&K(!0),g(!0)}}}function gl(e){return e?Array.isArray(e)?e:[e]:[]}function cD(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return gl(n)}return[]}function Hf(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:em}:null}function Ds(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 tm(e,t,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:a,name:i,children:s,"aria-label":l,"aria-labelledby":u,validationState:c="valid",isInvalid:f}=e,p=M=>{M.stopPropagation(),t.setSelected(M.target.checked)},b=s!=null,h=l!=null||u!=null;!b&&!h&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:g,isPressed:y}=ln({isDisabled:r}),{pressProps:$,isPressed:C}=ln({isDisabled:r||o,onPress(){t.toggle()}}),{focusableProps:x}=mr(e,n),E=Q(g,x),P=ue(e,{labelable:!0});return vo(n,t.isSelected,t.setSelected),{labelProps:Q($,{onClick:M=>M.preventDefault()}),inputProps:Q(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,...a==null?{}:{value:a},name:i,type:"checkbox",...E}),isSelected:t.isSelected,isPressed:y||C,isDisabled:r,isReadOnly:o,isInvalid:f||c==="invalid"}}function Po(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:a="label"}=e;t=He(t);let i=He(),s={};n?(r=r?`${i} ${r}`:i,s={id:i,htmlFor:a==="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 nm(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:a,fieldProps:i}=Po(e),s=on([!!t,!!n,r,o]),l=on([!!t,!!n,r,o]);return i=Q(i,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:i,descriptionProps:{id:s},errorMessageProps:{id:l}}}function $i(e={}){let{isReadOnly:t}=e,[n,r]=vt(e.isSelected,e.defaultSelected||!1,e.onChange);function o(i){t||r(i)}function a(){t||r(!n)}return{isSelected:n,setSelected:o,toggle:a}}function rm(e,t,n){let r=yr({...e,value:t.isSelected}),{isInvalid:o,validationErrors:a,validationDetails:i}=r.displayValidation,{labelProps:s,inputProps:l,isSelected:u,isPressed:c,isDisabled:f,isReadOnly:p}=tm({...e,isInvalid:o},t,n);Fu(e,r,n);let{isIndeterminate:b,isRequired:h,validationBehavior:g="aria"}=e;return d.useEffect(()=>{n.current&&(n.current.indeterminate=!!b)}),{labelProps:s,inputProps:{...l,checked:u,"aria-required":h&&g==="aria"||void 0,required:h&&g==="native"},isSelected:u,isPressed:c,isDisabled:f,isReadOnly:p,isInvalid:o,validationErrors:a,validationDetails:i}}const dD=new WeakMap;function fD(e,t,n){const r=$i({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:a,errorMessageId:i,validationBehavior:s}=dD.get(t);var l;s=(l=e.validationBehavior)!==null&&l!==void 0?l:s;let{realtimeValidation:u}=yr({...e,value:r.isSelected,name:void 0,validationBehavior:"aria"}),c=d.useRef(qn),f=()=>{t.setInvalid(e.value,u.isInvalid?u:c.current)};d.useEffect(f);let p=t.realtimeValidation.isInvalid?t.realtimeValidation:u,b=s==="native"?t.displayValidation:p;var h;let g=rm({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,isRequired:(h=e.isRequired)!==null&&h!==void 0?h:t.isRequired,validationBehavior:s,[co]:{realtimeValidation:p,displayValidation:b,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?i:null,a].filter(Boolean).join(" ")||void 0}}}var om={};om={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:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var im={};im={buttonLabel:"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 sm={};sm={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 lm={};lm={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 um={};um={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var 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 fm={};fm={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 bm={};bm={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 hm={};hm={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 mm={};mm={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 gm={};gm={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 vm={};vm={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 ym={};ym={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var $m={};$m={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var xm={};xm={buttonLabel:"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 wm={};wm={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 Cm={};Cm={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 Dm={};Dm={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 Em={};Em={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 Pm={};Pm={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 Sm={};Sm={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 Tm={};Tm={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 Am={};Am={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 Mm={};Mm={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 km={};km={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 Rm={};Rm={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 Fm={};Fm={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 Bm={};Bm={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 Im={};Im={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var Lm={};Lm={buttonLabel:"显示建议",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}, 已選取`};function vl(e){return pa()?e.altKey:e.ctrlKey}function Zn(e){return Ht()?e.metaKey:e.ctrlKey}const pD=1e3;function bD(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=d.useRef({search:"",timeout:null}).current,a=i=>{let s=hD(i.key);if(!s||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target))return;s===" "&&o.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.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=""},pD)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:null}}}function hD(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Bu(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:a=!1,disallowEmptySelection:i=!1,disallowSelectAll:s=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:c,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:b=r,linkBehavior:h="action"}=e,{direction:g}=Ke(),y=go(),$=F=>{if(F.altKey&&F.key==="Tab"&&F.preventDefault(),!r.current.contains(F.target))return;const k=(U,D)=>{if(U!=null){if(t.isLink(U)&&h==="selection"&&l&&!vl(F)){ho.flushSync(()=>{t.setFocusedKey(U,D)});let N=b.current.querySelector(`[data-key="${CSS.escape(U.toString())}"]`);y.open(N,F);return}if(t.setFocusedKey(U,D),t.isLink(U)&&h==="override")return;F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(U):l&&!vl(F)&&t.replaceSelection(U)}};switch(F.key){case"ArrowDown":if(n.getKeyBelow){var I,T;F.preventDefault();let U=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(I=n.getFirstKey)===null||I===void 0?void 0:I.call(n);U==null&&a&&(U=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n,t.focusedKey)),k(U)}break;case"ArrowUp":if(n.getKeyAbove){var L,j;F.preventDefault();let U=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(L=n.getLastKey)===null||L===void 0?void 0:L.call(n);U==null&&a&&(U=(j=n.getLastKey)===null||j===void 0?void 0:j.call(n,t.focusedKey)),k(U)}break;case"ArrowLeft":if(n.getKeyLeftOf){var O,S;F.preventDefault();let U=n.getKeyLeftOf(t.focusedKey);U==null&&a&&(U=g==="rtl"?(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n,t.focusedKey):(S=n.getLastKey)===null||S===void 0?void 0:S.call(n,t.focusedKey)),k(U,g==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var W,Y;F.preventDefault();let U=n.getKeyRightOf(t.focusedKey);U==null&&a&&(U=g==="rtl"?(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,t.focusedKey):(Y=n.getFirstKey)===null||Y===void 0?void 0:Y.call(n,t.focusedKey)),k(U,g==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){F.preventDefault();let U=n.getFirstKey(t.focusedKey,Zn(F));t.setFocusedKey(U),Zn(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(U):l&&t.replaceSelection(U)}break;case"End":if(n.getLastKey){F.preventDefault();let U=n.getLastKey(t.focusedKey,Zn(F));t.setFocusedKey(U),Zn(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(U):l&&t.replaceSelection(U)}break;case"PageDown":if(n.getKeyPageBelow){F.preventDefault();let U=n.getKeyPageBelow(t.focusedKey);k(U)}break;case"PageUp":if(n.getKeyPageAbove){F.preventDefault();let U=n.getKeyPageAbove(t.focusedKey);k(U)}break;case"a":Zn(F)&&t.selectionMode==="multiple"&&s!==!0&&(F.preventDefault(),t.selectAll());break;case"Escape":F.preventDefault(),i||t.clearSelection();break;case"Tab":if(!f){if(F.shiftKey)r.current.focus();else{let U=Xe(r.current,{tabbable:!0}),D,N;do N=U.lastChild(),N&&(D=N);while(N);D&&!D.contains(document.activeElement)&&At(D)}break}}},C=d.useRef({top:0,left:0});Ta(b,"scroll",p?null:()=>{C.current={top:b.current.scrollTop,left:b.current.scrollLeft}});let x=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 T=j=>{j!=null&&(t.setFocusedKey(j),l&&t.replaceSelection(j))},L=F.relatedTarget;var k,I;L&&F.currentTarget.compareDocumentPosition(L)&Node.DOCUMENT_POSITION_FOLLOWING?T((k=t.lastSelectedKey)!==null&&k!==void 0?k:n.getLastKey()):T((I=t.firstSelectedKey)!==null&&I!==void 0?I:n.getFirstKey())}else p||(b.current.scrollTop=C.current.top,b.current.scrollLeft=C.current.left);if(!p&&t.focusedKey!=null){let T=b.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);T&&(T.contains(document.activeElement)||At(T),ka()==="keyboard"&&Ks(T,{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 k=t.selectedKeys;if(k.size){for(let I of k)if(t.canSelectItem(I)){F=I;break}}t.setFocused(!0),t.setFocusedKey(F),F==null&&!c&&Mn(r.current)}},[]);let M=d.useRef(t.focusedKey);d.useEffect(()=>{let F=ka();if(t.isFocused&&t.focusedKey!=null&&(b!=null&&b.current)){let k=b.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);k&&(F==="keyboard"||P.current)&&(p||zp(b.current,k),F!=="virtual"&&Ks(k,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&M.current!=null&&Mn(r.current),M.current=t.focusedKey,P.current=!1},[p,b,t.focusedKey,t.isFocused,r]);let K={onKeyDown:$,onFocus:x,onBlur:E,onMouseDown(F){b.current===F.target&&F.preventDefault()}},{typeSelectProps:v}=bD({keyboardDelegate:n,selectionManager:t});u||(K=Q(v,K));let V;return c||(V=t.focusedKey==null?0:-1),{collectionProps:{...K,tabIndex:V}}}function Iu(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:a,focus:i,isDisabled:s,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:c="action"}=e,f=go(),p=S=>{if(S.pointerType==="keyboard"&&vl(S))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(c==="selection"){f.open(r.current,S),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):S&&S.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||S&&(Zn(S)||S.pointerType==="touch"||S.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};d.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!a&&(i?i():document.activeElement!==r.current&&Mn(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,a]),s=s||t.isDisabled(n);let b={};!a&&!s?b={tabIndex:n===t.focusedKey?0:-1,onFocus(S){S.target===r.current&&t.setFocusedKey(n)}}:s&&(b.onMouseDown=S=>{S.preventDefault()});let h=t.isLink(n)&&c==="override",g=t.isLink(n)&&c!=="selection"&&c!=="none",y=!s&&t.canSelectItem(n)&&!h,$=(l||g)&&!s,C=$&&(t.selectionBehavior==="replace"?!y:!y||t.isEmpty),x=$&&y&&t.selectionBehavior==="replace",E=C||x,P=d.useRef(null),M=E&&y,K=d.useRef(!1),v=d.useRef(!1),V=S=>{l&&l(),g&&f.open(r.current,S)},F={};o?(F.onPressStart=S=>{P.current=S.pointerType,K.current=M,S.pointerType==="keyboard"&&(!E||Gf())&&p(S)},u?(F.onPressUp=C?null:S=>{S.pointerType!=="keyboard"&&y&&p(S)},F.onPress=C?V:null):F.onPress=S=>{if(C||x&&S.pointerType!=="mouse"){if(S.pointerType==="keyboard"&&!Wf())return;V(S)}else S.pointerType!=="keyboard"&&y&&p(S)}):(F.onPressStart=S=>{P.current=S.pointerType,K.current=M,v.current=C,y&&(S.pointerType==="mouse"&&!C||S.pointerType==="keyboard"&&(!$||Gf()))&&p(S)},F.onPress=S=>{(S.pointerType==="touch"||S.pointerType==="pen"||S.pointerType==="virtual"||S.pointerType==="keyboard"&&E&&Wf()||S.pointerType==="mouse"&&v.current)&&(E?V(S):y&&p(S))}),b["data-key"]=n,F.preventFocusOnPress=a;let{pressProps:k,isPressed:I}=ln(F),T=x?S=>{P.current==="mouse"&&(S.stopPropagation(),S.preventDefault(),V(S))}:void 0,{longPressProps:L}=e0({isDisabled:!M,onLongPress(S){S.pointerType==="touch"&&(p(S),t.setSelectionBehavior("toggle"))}}),j=S=>{P.current==="touch"&&K.current&&S.preventDefault()},O=t.isLink(n)?S=>{Sn.isOpening||S.preventDefault()}:void 0;return{itemProps:Q(b,y||C?k:{},M?L:{},{onDoubleClick:T,onDragStartCapture:j,onClick:O}),isPressed:I,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:s,allowsSelection:y,hasAction:E}}function Wf(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Gf(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class Lu{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 a=o.getBoundingClientRect();do t=n(t),o=this.getItem(t);while(o&&r(a,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(!Sa(n))return this.getFirstKey();let o=n.getBoundingClientRect(),a=r.getBoundingClientRect();if(this.orientation==="horizontal"){let i=o.x-n.scrollLeft,s=Math.max(0,a.x-i+a.width-o.width);for(;r&&a.x-i>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),a=r==null?void 0:r.getBoundingClientRect()}else{let i=o.y-n.scrollTop,s=Math.max(0,a.y-i+a.height-o.height);for(;r&&a.y-i>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),a=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(!Sa(n))return this.getLastKey();let o=n.getBoundingClientRect(),a=r.getBoundingClientRect();if(this.orientation==="horizontal"){let i=o.x-n.scrollLeft,s=Math.min(n.scrollWidth,a.x-i-a.width+o.width);for(;r&&a.x-i<s;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),a=r==null?void 0:r.getBoundingClientRect()}else{let i=o.y-n.scrollTop,s=Math.min(n.scrollHeight,a.y-i-a.height+o.height);for(;r&&a.y-i<s;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),a=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 a=r.getItem(o),i=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(i,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 Om(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:a}=e,i=au({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,l=d.useMemo(()=>a||new Lu(n,s==="selection"?new Set:r,o,i),[a,n,r,o,i,s]),{collectionProps:u}=Bu({...e,ref:o,selectionManager:t,keyboardDelegate:l});return{listProps:u}}class mD{build(t,n){return this.context=n,Yf(()=>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=[];A.default.Children.forEach(n,i=>{o.push(i)});let a=0;for(let i of o){let s=this.getFullNode({element:i,index:a},{});for(let l of s)a++,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 a=n.value;if(a!=null){var i;let s=(i=a.key)!==null&&i!==void 0?i:a.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 a=t.element;if(!a&&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}a=n.renderer(t.value)}if(A.default.isValidElement(a)){let l=a.type;if(typeof l!="function"&&typeof l.getCollectionNode!="function"){let p=typeof a.type=="function"?a.type.name:a.type;throw new Error(`Unknown element <${p}> in collection.`)}let u=l.getCollectionNode(a.props,this.context),c=t.index,f=u.next();for(;!f.done&&f.value;){let p=f.value;t.index=c;let b=p.key;b||(b=p.element?null:this.getKey(a,t,n,r));let g=[...this.getFullNode({...p,key:b,index:c,wrapper:gD(t.wrapper,p.wrapper)},this.getChildState(n,p),r?`${r}${a.key}`:a.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 <${Es(y.type)}> in <${Es(o.type)}>. Only <${Es(t.type)}> is supported.`);c++,yield y}f=u.next(g)}return}if(t.key==null)return;let i=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:Yf(function*(){if(!t.hasChildNodes)return;let l=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${s.key}${u.key}`),u.index=l;let c=i.getFullNode(u,i.getChildState(n,u),s.key,s);for(let f of c)l++,yield f}})};yield s}constructor(){this.cache=new WeakMap}}function Yf(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 gD(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Es(e){return e[0].toUpperCase()+e.slice(1)}function Nm(e,t,n){let r=d.useMemo(()=>new mD,[]),{children:o,items:a,collection:i}=e;return d.useMemo(()=>{if(i)return i;let l=r.build({children:o,items:a},n);return t(l)},[r,o,a,i,n,t])}function xi(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function vD(e){return yD(e,0)}function yD(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Ps(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...qf(e,t),t],o=[...qf(e,n),n],a=r.slice(0,o.length).findIndex((i,s)=>i!==o[s]);return a!==-1?(t=r[a],n=o[a],t.index-n.index):r.findIndex(i=>i===n)>=0?1:(o.findIndex(i=>i===t)>=0,-1)}function qf(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const Zf=new WeakMap;function Vu(e){let t=Zf.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)o.type==="section"?n(xi(o,e)):t++};return n(e),Zf.set(e,t),t}const wi=new WeakMap;function $D(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Km(e,t){let n=wi.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${$D(t)}`}function xD(e,t,n){let r=ue(e,{labelable:!0}),o=e.selectionBehavior||"toggle",a=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&a==="action"&&(a="override");let{listProps:i}=Om({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:s}=hr({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=He(e.id);wi.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a});let{labelProps:u,fieldProps:c}=Po({...e,id:l,labelElementType:"span"});return{labelProps:u,listBoxProps:Q(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Q(c,i)})}}function wD(e,t,n){var r;let{key:o}=e,a=wi.get(t);var i;let s=(i=e.isDisabled)!==null&&i!==void 0?i:t.disabledKeys.has(o);var l;let u=(l=e.isSelected)!==null&&l!==void 0?l:t.selectionManager.isSelected(o);var c;let f=(c=e.shouldSelectOnPressUp)!==null&&c!==void 0?c:a==null?void 0:a.shouldSelectOnPressUp;var p;let b=(p=e.shouldFocusOnHover)!==null&&p!==void 0?p:a==null?void 0:a.shouldFocusOnHover;var h;let g=(h=e.shouldUseVirtualFocus)!==null&&h!==void 0?h:a==null?void 0:a.shouldUseVirtualFocus;var y;let $=(y=e.isVirtualized)!==null&&y!==void 0?y:a==null?void 0:a.isVirtualized,C=on(),x=on(),E={role:"option","aria-disabled":s||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?u:void 0};Ht()&&Kl()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=C,E["aria-describedby"]=x);let P=t.collection.getItem(o);if($){let T=Number(P==null?void 0:P.index);E["aria-posinset"]=Number.isNaN(T)?void 0:T+1,E["aria-setsize"]=Vu(t.collection)}let{itemProps:M,isPressed:K,isFocused:v,hasAction:V,allowsSelection:F}=Iu({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&b,isVirtualized:$,shouldUseVirtualFocus:g,isDisabled:s,onAction:a!=null&&a.onAction?()=>{var T;return a==null||(T=a.onAction)===null||T===void 0?void 0:T.call(a,o)}:void 0,linkBehavior:a==null?void 0:a.linkBehavior}),{hoverProps:k}=Oe({isDisabled:s||!b,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,...Q(I,M,k),id:Km(t,o)},labelProps:{id:C},descriptionProps:{id:x},isFocused:v,isFocusVisible:v&&sr(),isSelected:u,isDisabled:s,isPressed:K,allowsSelection:F,hasAction:V}}function CD(e){let{heading:t,"aria-label":n}=e,r=He();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var jm={};jm={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var _m={};_m={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var zm={};zm={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Um={};Um={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Hm={};Hm={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Wm={};Wm={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Gm={};Gm={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Ym={};Ym={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var qm={};qm={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Zm={};Zm={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Xm={};Xm={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Jm={};Jm={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Qm={};Qm={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var eg={};eg={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var tg={};tg={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var ng={};ng={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var rg={};rg={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var og={};og={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var ag={};ag={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var ig={};ig={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var sg={};sg={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var lg={};lg={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var ug={};ug={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 fg={};fg={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 bg={};bg={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var hg={};hg={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var mg={};mg={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var gg={};gg={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var vg={};vg={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var yg={};yg={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var $g={};$g={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};function DD(e){return e&&e.__esModule?e.default:e}var xg={};xg={"ar-AE":jm,"bg-BG":_m,"cs-CZ":zm,"da-DK":Um,"de-DE":Hm,"el-GR":Wm,"en-US":Gm,"es-ES":Ym,"et-EE":qm,"fi-FI":Zm,"fr-FR":Xm,"he-IL":Jm,"hr-HR":Qm,"hu-HU":eg,"it-IT":tg,"ja-JP":ng,"ko-KR":rg,"lt-LT":og,"lv-LV":ag,"nb-NO":ig,"nl-NL":sg,"pl-PL":lg,"pt-BR":ug,"pt-PT":cg,"ro-RO":dg,"ru-RU":fg,"sk-SK":pg,"sl-SI":bg,"sr-SP":hg,"sv-SE":mg,"tr-TR":gg,"uk-UA":vg,"zh-CN":yg,"zh-TW":$g};function ED(e,t,n){let{type:r="menu",isDisabled:o,trigger:a="press"}=e,i=He(),{triggerProps:s,overlayProps:l}=l2({type:r},t,n),u=b=>{if(!o&&!(a==="longPress"&&!b.altKey)&&n&&n.current)switch(b.key){case"Enter":case" ":if(a==="longPress")return;case"ArrowDown":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("last");break;default:"continuePropagation"in b&&b.continuePropagation()}},c=gr(DD(xg),"@react-aria/menu"),{longPressProps:f}=e0({isDisabled:o||a!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={onPressStart(b){b.pointerType!=="touch"&&b.pointerType!=="keyboard"&&!o&&t.toggle(b.pointerType==="virtual"?"first":null)},onPress(b){b.pointerType==="touch"&&!o&&t.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,...a==="press"?p:f,id:i,onKeyDown:u},menuProps:{...l,"aria-labelledby":i,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const wg=new WeakMap;function PD(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:a,...i}=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}=Om({...i,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return wg.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:Q(s,{onKeyDown:o,onKeyUp:a},{role:"menu",...l,onKeyDown:u=>{u.key!=="Escape"&&l.onKeyDown(u)}})}}function Cg(e,t,n){var r;let{key:o,closeOnSelect:a,isVirtualized:i,"aria-haspopup":s,onPressStart:l,onPressUp:u,onPress:c,onPressChange:f,onPressEnd:p,onHoverStart:b,onHoverChange:h,onHoverEnd:g,onKeyDown:y,onKeyUp:$,onFocus:C,onFocusChange:x,onBlur:E}=e,P=!!s;var M;let K=(M=e.isDisabled)!==null&&M!==void 0?M:t.disabledKeys.has(o);var v;let V=(v=e.isSelected)!==null&&v!==void 0?v:t.selectionManager.isSelected(o),F=wg.get(t),k=e.onClose||F.onClose,I=P?()=>{}:e.onAction||F.onAction,T=go(),L=oe=>{I&&I(o),oe.target instanceof HTMLAnchorElement&&T.open(oe.target,oe)},j="menuitem";P||(t.selectionManager.selectionMode==="single"?j="menuitemradio":t.selectionManager.selectionMode==="multiple"&&(j="menuitemcheckbox"));let O=on(),S=on(),W=on(),Y={"aria-disabled":K||void 0,role:j,"aria-label":e["aria-label"],"aria-labelledby":O,"aria-describedby":[S,W].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"]=V);let U=t.collection.getItem(o);i&&(Y["aria-posinset"]=U==null?void 0:U.index,Y["aria-setsize"]=Vu(t.collection));let D=oe=>{oe.pointerType==="keyboard"&&L(oe),l==null||l(oe)},N=oe=>{oe.pointerType!=="keyboard"&&(L(oe),!P&&k&&(a??(t.selectionManager.selectionMode!=="multiple"||t.selectionManager.isLink(o)))&&k()),u==null||u(oe)},{itemProps:q,isFocused:J}=Iu({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:ee,isPressed:re}=ln({onPressStart:D,onPress:c,onPressUp:N,onPressChange:f,onPressEnd:p,isDisabled:K}),{hoverProps:z}=Oe({isDisabled:K,onHoverStart(oe){sr()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o)),b==null||b(oe)},onHoverChange:h,onHoverEnd:g}),{keyboardProps:Z}=Hl({onKeyDown:oe=>{if(oe.repeat){oe.continuePropagation();return}switch(oe.key){case" ":!K&&t.selectionManager.selectionMode==="none"&&!P&&a!==!1&&k&&k();break;case"Enter":!K&&a!==!1&&!P&&k&&k();break;default:P||oe.continuePropagation(),y==null||y(oe);break}},onKeyUp:$}),{focusProps:te}=ii({onBlur:E,onFocus:C,onFocusChange:x}),se=ue(U.props,{isLink:!!(!(U==null||(r=U.props)===null||r===void 0)&&r.href)});return delete se.id,{menuItemProps:{...Y,...Q(se,P?{onFocus:q.onFocus}:q,ee,z,Z,te),tabIndex:q.tabIndex!=null?-1:void 0},labelProps:{id:O},descriptionProps:{id:S},keyboardShortcutProps:{id:W},isFocused:J,isSelected:V,isPressed:re,isDisabled:K}}function SD(e){let{heading:t,"aria-label":n}=e,r=He();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}const ca=2,TD=50,AD=1e3,Xf=Math.PI/12;function MD(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:o}=e,a=d.useRef(),i=d.useRef(),s=d.useRef(0),l=d.useRef(),u=d.useRef(),c=d.useRef(),f=d.useRef(2),[p,b]=d.useState(!1);_l({ref:n,onResize:()=>{n.current&&(i.current=n.current.getBoundingClientRect(),c.current=void 0)}});let g=()=>{b(!1),f.current=ca},y=vx();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}i.current=$.getBoundingClientRect();let x=E=>{if(E.pointerType==="touch"||E.pointerType==="pen")return;let P=Date.now();if(P-s.current<TD)return;clearTimeout(l.current),clearTimeout(u.current);let{clientX:M,clientY:K}=E;if(!a.current){a.current={x:M,y:K};return}if(!i.current)return;if(c.current||(c.current=M>i.current.right?"left":"right"),M<C.getBoundingClientRect().left||M>C.getBoundingClientRect().right||K<C.getBoundingClientRect().top||K>C.getBoundingClientRect().bottom){g();return}let v=a.current.x,V=a.current.y,F=c.current==="right"?i.current.left-v:v-i.current.right,k=Math.atan2(V-i.current.top,F)+Xf,I=Math.atan2(V-i.current.bottom,F)-Xf,T=Math.atan2(V-K,c.current==="left"?-(M-v):M-v),L=T<k&&T>I;f.current=L?Math.min(f.current+1,ca):Math.max(f.current-1,0),f.current>=ca?b(!0):b(!1),s.current=P,a.current={x:M,y:K},L&&(l.current=setTimeout(()=>{g(),u.current=setTimeout(()=>{let j=document.elementFromPoint(M,K);j&&C.contains(j)&&j.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},AD))};return window.addEventListener("pointermove",x),()=>{window.removeEventListener("pointermove",x),clearTimeout(l.current),clearTimeout(u.current),f.current=ca}},[o,r,t,y,b,n])}function kD(e,t,n){let{parentMenuRef:r,submenuRef:o,type:a="menu",isDisabled:i,node:s,delay:l=200}=e,u=He(),c=He(),{direction:f}=Ke(),p=d.useRef(),b=d.useCallback(()=>{p.current&&(clearTimeout(p.current),p.current=void 0)},[p]),h=Ae(v=>{b(),t.open(v)}),g=Ae(()=>{b(),t.close()});ge(()=>()=>{b()},[b]);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,...a==="menu"&&{onClose:t.closeAll,autoFocus:t.focusStrategy,onKeyDown:y}},C=v=>{switch(v.key){case"ArrowRight":i||(f==="ltr"?(t.isOpen||h("first"),a==="menu"&&(o!=null&&o.current)&&document.activeElement===(n==null?void 0:n.current)&&o.current.focus()):t.isOpen?g():v.continuePropagation());break;case"ArrowLeft":i||(f==="rtl"?(t.isOpen||h("first"),a==="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}},x=v=>{!i&&(v.pointerType==="virtual"||v.pointerType==="keyboard")&&h("first")},E=v=>{!i&&(v.pointerType==="touch"||v.pointerType==="mouse")&&h()},P=v=>{i||(v&&!t.isOpen?p.current||(p.current=setTimeout(()=>{h()},l)):v||b())},M=v=>{t.isOpen&&r.current.contains(v.relatedTarget)&&g()},K=v=>v!==n.current;return MD({menuRef:r,submenuRef:o,isOpen:t.isOpen,isDisabled:i}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":i?void 0:a,"aria-expanded":t.isOpen?"true":"false",onPressStart:x,onPress:E,onHoverChange:P,onKeyDown:C,onBlur:M,isOpen:t.isOpen},submenuProps:$,popoverProps:{isNonModal:!0,disableFocusManagement:!0,shouldCloseOnInteractOutside:K}}}function Ou(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:a=!1,type:i="text",validationBehavior:s="aria"}=e,[l,u]=vt(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=mr(e,t),f=yr({...e,value:l}),{isInvalid:p,validationErrors:b,validationDetails:h}=f.displayValidation,{labelProps:g,fieldProps:y,descriptionProps:$,errorMessageProps:C}=nm({...e,isInvalid:p,errorMessage:e.errorMessage||b}),x=ue(e,{labelable:!0});const E={type:i,pattern:e.pattern};return vo(t,l,u),Fu(e,f,t),d.useEffect(()=>{if(t.current instanceof bt(t.current).HTMLTextAreaElement){let P=t.current;Object.defineProperty(P,"defaultValue",{get:()=>P.value,set:()=>{},configurable:!0})}},[t]),{labelProps:g,inputProps:Q(x,n==="input"&&E,{disabled:r,readOnly:a,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=>u(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:b,validationDetails:h}}function Jf(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function RD(e,t,n){let r=Ae(f=>{let p=n.current,b;switch(f.inputType){case"historyUndo":case"historyRedo":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":b=p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteContentForward":b=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":b=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":b=p.value.slice(p.selectionStart);break;default:f.data!=null&&(b=p.value.slice(0,p.selectionStart)+f.data+p.value.slice(p.selectionEnd));break}(b==null||!t.validate(b))&&f.preventDefault()});d.useEffect(()=>{if(!Jf())return;let f=n.current;return f.addEventListener("beforeinput",r,!1),()=>{f.removeEventListener("beforeinput",r,!1)}},[n,r]);let o=Jf()?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:a,inputProps:i,descriptionProps:s,errorMessageProps:l,...u}=Ou(e,n),c=d.useRef(null);return{inputProps:Q(i,{onBeforeInput:o,onCompositionStart(){let{value:f,selectionStart:p,selectionEnd:b}=n.current;c.current={value:f,selectionStart:p,selectionEnd:b}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:f,selectionStart:p,selectionEnd:b}=c.current;n.current.value=f,n.current.setSelectionRange(p,b),t.setInputValue(f)}}}),labelProps:a,descriptionProps:s,errorMessageProps:l,...u}}function FD(e){return e&&e.__esModule?e.default:e}var Dg={};Dg={"ar-AE":om,"bg-BG":am,"cs-CZ":im,"da-DK":sm,"de-DE":lm,"el-GR":um,"en-US":cm,"es-ES":dm,"et-EE":fm,"fi-FI":pm,"fr-FR":bm,"he-IL":hm,"hr-HR":mm,"hu-HU":gm,"it-IT":vm,"ja-JP":ym,"ko-KR":$m,"lt-LT":xm,"lv-LV":wm,"nb-NO":Cm,"nl-NL":Dm,"pl-PL":Em,"pt-BR":Pm,"pt-PT":Sm,"ro-RO":Tm,"ru-RU":Am,"sk-SK":Mm,"sl-SI":km,"sr-SP":Rm,"sv-SE":Fm,"tr-TR":Bm,"uk-UA":Im,"zh-CN":Lm,"zh-TW":Vm};function BD(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:a,keyboardDelegate:i,shouldFocusWrap:s,isReadOnly:l,isDisabled:u}=e,c=gr(FD(Dg),"@react-aria/combobox"),{menuTriggerProps:f,menuProps:p}=ED({type:"listbox",isDisabled:u||l},t,n);wi.set(t,{id:p.id});let b=d.useMemo(()=>i||new Lu(t.collection,t.disabledKeys,a),[i,t.collection,t.disabledKeys,a]),{collectionProps:h}=Bu({selectionManager:t.selectionManager,keyboardDelegate:b,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:o,isVirtualized:!0}),g=go(),y=z=>{switch(z.key){case"Enter":case"Tab":if(t.isOpen&&z.key==="Enter"&&z.preventDefault(),t.isOpen&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){if(z.key==="Enter"){let Z=a.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);Z instanceof HTMLAnchorElement&&g.open(Z,z)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&z.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},$=z=>{var Z;z.relatedTarget===(n==null?void 0:n.current)||!((Z=r.current)===null||Z===void 0)&&Z.contains(z.relatedTarget)||(e.onBlur&&e.onBlur(z),t.setFocused(!1))},C=z=>{t.isFocused||(e.onFocus&&e.onFocus(z),t.setFocused(!0))},{isInvalid:x,validationErrors:E,validationDetails:P}=t.displayValidation,{labelProps:M,inputProps:K,descriptionProps:v,errorMessageProps:V}=Ou({...e,onChange:t.setInputValue,onKeyDown:l?e.onKeyDown:sn(t.isOpen&&h.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"))},k=z=>{z.pointerType!=="touch"&&(o.current.focus(),t.toggle(z.pointerType==="keyboard"||z.pointerType==="virtual"?"first":null,"manual"))},I=Tn({id:f.id,"aria-label":c.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||M.id}),T=Tn({id:p.id,"aria-label":c.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||M.id}),L=d.useRef(0),j=z=>{if(u||l)return;if(z.timeStamp-L.current<500){z.preventDefault(),o.current.focus();return}let Z=z.target.getBoundingClientRect(),te=z.changedTouches[0],se=Math.ceil(Z.left+.5*Z.width),oe=Math.ceil(Z.top+.5*Z.height);te.clientX===se&&te.clientY===oe&&(z.preventDefault(),o.current.focus(),t.toggle(null,"manual"),L.current=z.timeStamp)},O=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var S;let W=(S=O==null?void 0:O.parentKey)!==null&&S!==void 0?S:null;var Y;let U=(Y=t.selectionManager.focusedKey)!==null&&Y!==void 0?Y:null,D=d.useRef(W),N=d.useRef(U);d.useEffect(()=>{if(pa()&&O!=null&&U!==N.current){let z=t.selectionManager.isSelected(U),Z=W!=null?t.collection.getItem(W):null,te=(Z==null?void 0:Z["aria-label"])||(typeof(Z==null?void 0:Z.rendered)=="string"?Z.rendered:"")||"",se=c.format("focusAnnouncement",{isGroupChange:Z&&W!==D.current,groupTitle:te,groupCount:Z?[...xi(Z,t.collection)].length:0,optionText:O["aria-label"]||O.textValue||"",isSelected:z});xa(se)}D.current=W,N.current=U});let q=Vu(t.collection),J=d.useRef(q),ee=d.useRef(t.isOpen);d.useEffect(()=>{let z=t.isOpen!==ee.current&&(t.selectionManager.focusedKey==null||pa());if(t.isOpen&&(z||q!==J.current)){let Z=c.format("countAnnouncement",{optionCount:q});xa(Z)}J.current=q,ee.current=t.isOpen});let re=d.useRef(t.selectedKey);return d.useEffect(()=>{if(pa()&&t.isFocused&&t.selectedItem&&t.selectedKey!==re.current){let z=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Z=c.format("selectedAnnouncement",{optionText:z});xa(Z)}re.current=t.selectedKey}),d.useEffect(()=>{if(t.isOpen)return su([o.current,r.current])},[t.isOpen,o,r]),{labelProps:M,buttonProps:{...f,...I,excludeFromTabOrder:!0,onPress:F,onPressStart:k,isDisabled:u||l},inputProps:Q(K,{role:"combobox","aria-expanded":f["aria-expanded"],"aria-controls":t.isOpen?p.id:void 0,"aria-autocomplete":"list","aria-activedescendant":O?Km(t,O.key):void 0,onTouchEnd:j,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Q(p,T,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:v,errorMessageProps:V,isInvalid:x,validationErrors:E,validationDetails:P}}var Eg={};Eg={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 Pg={};Pg={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 Sg={};Sg={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 Tg={};Tg={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 Ag={};Ag={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 Mg={};Mg={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={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 Rg={};Rg={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 Fg={};Fg={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 Bg={};Bg={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 Ig={};Ig={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 Lg={};Lg={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 Vg={};Vg={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 Og={};Og={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 Ng={};Ng={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 Kg={};Kg={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var jg={};jg={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var _g={};_g={calendar:"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 zg={};zg={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 Ug={};Ug={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 Hg={};Hg={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 Wg={};Wg={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 Gg={};Gg={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 Yg={};Yg={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 qg={};qg={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 Zg={};Zg={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 Xg={};Xg={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 Jg={};Jg={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 Qg={};Qg={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 ev={};ev={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 tv={};tv={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 nv={};nv={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var rv={};rv={calendar:"日历",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 ov={};ov={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 av={};av={Empty:"فارغ"};var iv={};iv={Empty:"Изпразни"};var sv={};sv={Empty:"Prázdné"};var lv={};lv={Empty:"Tom"};var uv={};uv={Empty:"Leer"};var cv={};cv={Empty:"Άδειο"};var dv={};dv={Empty:"Empty"};var fv={};fv={Empty:"Vacío"};var pv={};pv={Empty:"Tühjenda"};var bv={};bv={Empty:"Tyhjä"};var hv={};hv={Empty:"Vide"};var mv={};mv={Empty:"ריק"};var gv={};gv={Empty:"Prazno"};var vv={};vv={Empty:"Üres"};var yv={};yv={Empty:"Vuoto"};var $v={};$v={Empty:"空"};var xv={};xv={Empty:"비어 있음"};var wv={};wv={Empty:"Tuščias"};var Cv={};Cv={Empty:"Tukšs"};var Dv={};Dv={Empty:"Tom"};var Ev={};Ev={Empty:"Leeg"};var Pv={};Pv={Empty:"Pusty"};var Sv={};Sv={Empty:"Vazio"};var Tv={};Tv={Empty:"Vazio"};var Av={};Av={Empty:"Gol"};var Mv={};Mv={Empty:"Не заполнено"};var kv={};kv={Empty:"Prázdne"};var Rv={};Rv={Empty:"Prazen"};var Fv={};Fv={Empty:"Prazno"};var Bv={};Bv={Empty:"Tomt"};var Iv={};Iv={Empty:"Boş"};var Lv={};Lv={Empty:"Пусто"};var Vv={};Vv={Empty:"空"};var Ov={};Ov={Empty:"空白"};function ID(e){return e&&e.__esModule?e.default:e}var Nv={};Nv={"ar-AE":av,"bg-BG":iv,"cs-CZ":sv,"da-DK":lv,"de-DE":uv,"el-GR":cv,"en-US":dv,"es-ES":fv,"et-EE":pv,"fi-FI":bv,"fr-FR":hv,"he-IL":mv,"hr-HR":gv,"hu-HU":vv,"it-IT":yv,"ja-JP":$v,"ko-KR":xv,"lt-LT":wv,"lv-LV":Cv,"nb-NO":Dv,"nl-NL":Ev,"pl-PL":Pv,"pt-BR":Sv,"pt-PT":Tv,"ro-RO":Av,"ru-RU":Mv,"sk-SK":kv,"sl-SI":Rv,"sr-SP":Fv,"sv-SE":Bv,"tr-TR":Iv,"uk-UA":Lv,"zh-CN":Vv,"zh-TW":Ov};function Kv(e){const t=d.useRef();let{value:n,textValue:r,minValue:o,maxValue:a,isDisabled:i,isReadOnly:s,isRequired:l,onIncrement:u,onIncrementPage:c,onDecrement:f,onDecrementPage:p,onDecrementToMin:b,onIncrementToMax:h}=e;const g=gr(ID(Nv),"@react-aria/spinbutton"),y=()=>clearTimeout(t.current);d.useEffect(()=>()=>y(),[]);let $=k=>{if(!(k.ctrlKey||k.metaKey||k.shiftKey||k.altKey||s))switch(k.key){case"PageUp":if(c){k.preventDefault(),c==null||c();break}case"ArrowUp":case"Up":u&&(k.preventDefault(),u==null||u());break;case"PageDown":if(p){k.preventDefault(),p==null||p();break}case"ArrowDown":case"Down":f&&(k.preventDefault(),f==null||f());break;case"Home":b&&(k.preventDefault(),b==null||b());break;case"End":h&&(k.preventDefault(),h==null||h());break}},C=d.useRef(!1),x=()=>{C.current=!0},E=()=>{C.current=!1},P=r===""?g.format("Empty"):(r||`${n}`).replace("-","−");d.useEffect(()=>{C.current&&(rD("assertive"),xa(P,"assertive"))},[P]);const M=Ae(k=>{y(),u==null||u(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&M(60)},k)}),K=Ae(k=>{y(),f==null||f(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&K(60)},k)});let v=k=>{k.preventDefault()},{addGlobalListener:V,removeAllGlobalListeners:F}=br();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":P,"aria-valuemin":o,"aria-valuemax":a,"aria-disabled":i||void 0,"aria-readonly":s||void 0,"aria-required":l||void 0,onKeyDown:$,onFocus:x,onBlur:E},incrementButtonProps:{onPressStart:()=>{M(400),V(window,"contextmenu",v)},onPressEnd:()=>{y(),F()},onFocus:x,onBlur:E},decrementButtonProps:{onPressStart:()=>{K(400),V(window,"contextmenu",v)},onPressEnd:()=>{y(),F()},onFocus:x,onBlur:E}}}function jv(e){return e&&e.__esModule?e.default:e}var Nu={};Nu={"ar-AE":Eg,"bg-BG":Pg,"cs-CZ":Sg,"da-DK":Tg,"de-DE":Ag,"el-GR":Mg,"en-US":kg,"es-ES":Rg,"et-EE":Fg,"fi-FI":Bg,"fr-FR":Ig,"he-IL":Lg,"hr-HR":Vg,"hu-HU":Og,"it-IT":Ng,"ja-JP":Kg,"ko-KR":jg,"lt-LT":_g,"lv-LV":zg,"nb-NO":Ug,"nl-NL":Hg,"pl-PL":Wg,"pt-BR":Gg,"pt-PT":Yg,"ro-RO":qg,"ru-RU":Zg,"sk-SK":Xg,"sl-SI":Jg,"sr-SP":Qg,"sv-SE":ev,"tr-TR":tv,"uk-UA":nv,"zh-CN":rv,"zh-TW":ov};function LD(e,t,n){let{direction:r}=Ke(),o=d.useMemo(()=>r0(t),[t]),a=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}},i=()=>{var l;let u=(l=window.event)===null||l===void 0?void 0:l.target,c=Xe(t.current,{tabbable:!0});if(u&&(c.currentNode=u,u=c.previousNode()),!u){let f;do f=c.lastChild(),f&&(u=f);while(f)}for(;u!=null&&u.hasAttribute("data-placeholder");){let f=c.previousNode();if(f&&f.hasAttribute("data-placeholder"))u=f;else break}u&&u.focus()},{pressProps:s}=ln({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&i()},onPress(l){l.pointerType!=="mouse"&&i()}});return Q(s,{onKeyDown:a})}const _v=new WeakMap,Ss="__role_"+Date.now(),VD="__focusManager_"+Date.now();function Ku(e,t,n){var r;let{isInvalid:o,validationErrors:a,validationDetails:i}=t.displayValidation,{labelProps:s,fieldProps:l,descriptionProps:u,errorMessageProps:c}=nm({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||a}),f=d.useRef(null),{focusWithinProps:p}=hr({...e,onFocusWithin(F){var k;f.current=t.value,(k=e.onFocus)===null||k===void 0||k.call(e,F)},onBlurWithin:F=>{var k;t.confirmPlaceholder(),t.value!==f.current&&t.commitValidation(),(k=e.onBlur)===null||k===void 0||k.call(e,F)},onFocusWithinChange:e.onFocusChange}),b=gr(jv(Nu),"@react-aria/datepicker"),h=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",g=t.maxGranularity==="hour"?"time":"date",y=t.value?b.format(h,{[g]:t.formatValue({month:"long"})}):"",$=_p(y),C=e[Ss]==="presentation"?l["aria-describedby"]:[$["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=e[VD],E=d.useMemo(()=>x||r0(n),[x,n]),P=LD(t,n,e[Ss]==="presentation");_v.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[s.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:E});let M=d.useRef(e.autoFocus),K;e[Ss]==="presentation"?K={role:"presentation"}:K=Q(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),d.useEffect(()=>{M.current&&E.focusFirst(),M.current=!1},[E]),vo(e.inputRef,t.value,t.setValue),Fu({...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:Q(V,K,P,p,{onKeyDown(F){e.onKeyDown&&e.onKeyDown(F)},onKeyUp(F){e.onKeyUp&&e.onKeyUp(F)}}),inputProps:v,descriptionProps:u,errorMessageProps:c,isInvalid:o,validationErrors:a,validationDetails:i}}function OD(e,t,n){var r;let o=Ku(e,t,n);return o.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",o}function ND(){let{locale:e}=Ke(),t=L0(jv(Nu),"@react-aria/datepicker");return d.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new KD(e,t)}},[e,t])}class KD{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function jD(e,t,n){let r=d.useRef(""),{locale:o}=Ke(),a=ND(),{ariaLabel:i,ariaLabelledBy:s,ariaDescribedBy:l,focusManager:u}=_v.get(t),c=e.isPlaceholder?"":e.text,f=d.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=na({month:"long",timeZone:f.timeZone}),b=na({hour:"numeric",hour12:f.hour12,timeZone:f.timeZone});if(e.type==="month"&&!e.isPlaceholder){let S=p.format(t.dateValue);c=S!==c?`${c} – ${S}`:S}else e.type==="hour"&&!e.isPlaceholder&&(c=b.format(t.dateValue));let{spinButtonProps:h}=Kv({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=d.useMemo(()=>new ou(o,{maximumFractionDigits:0}),[o]),y=()=>{if(g.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let S=e.text.slice(0,-1),W=g.parse(S);S.length===0||W===0?t.clearSegment(e.type):t.setSegment(e.type,W),r.current=S}else e.type==="dayPeriod"&&t.clearSegment(e.type)},$=S=>{if(S.key==="a"&&(Ht()?S.metaKey:S.ctrlKey)&&S.preventDefault(),!(S.ctrlKey||S.metaKey||S.shiftKey||S.altKey))switch(S.key){case"Backspace":case"Delete":S.preventDefault(),S.stopPropagation(),y();break}},{startsWith:C}=V0({sensitivity:"base"}),x=na({hour:"numeric",hour12:!0}),E=d.useMemo(()=>{let S=new Date;return S.setHours(0),x.formatToParts(S).find(W=>W.type==="dayPeriod").value},[x]),P=d.useMemo(()=>{let S=new Date;return S.setHours(12),x.formatToParts(S).find(W=>W.type==="dayPeriod").value},[x]),M=na({year:"numeric",era:"narrow",timeZone:"UTC"}),K=d.useMemo(()=>{if(e.type!=="era")return[];let S=Je(new Le(1,1,1),t.calendar),W=t.calendar.getEras().map(U=>{let D=S.set({year:1,month:1,day:1,era:U}).toDate("UTC"),q=M.formatToParts(D).find(J=>J.type==="era").value;return{era:U,formatted:q}}),Y=_D(W.map(U=>U.formatted));if(Y)for(let U of W)U.formatted=U.formatted.slice(Y);return W},[M,t.calendar,e.type]),v=S=>{if(t.isDisabled||t.isReadOnly)return;let W=r.current+S;switch(e.type){case"dayPeriod":if(C(E,S))t.setSegment("dayPeriod",0);else if(C(P,S))t.setSegment("dayPeriod",12);else break;u.focusNext();break;case"era":{let Y=K.find(U=>C(U.formatted,S));Y&&(t.setSegment("era",Y.era),u.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!g.isValidPartialNumber(W))return;let Y=g.parse(W),U=Y,D=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":Y>11&&(U=g.parse(S));break;case"h12":D=!1,Y>12&&(U=g.parse(S));break}e.value>=12&&Y>1&&(Y+=12)}else Y>e.maxValue&&(U=g.parse(S));if(isNaN(Y))return;let N=U!==0||D;N&&t.setSegment(e.type,U),+(Y+"0")>e.maxValue||W.length>=String(e.maxValue).length?(r.current="",N&&u.focusNext()):r.current=W;break}}},V=()=>{r.current="",Ks(n.current,{containingElement:no(n.current)}),window.getSelection().collapse(n.current)},F=d.useRef("");Ta(n,"beforeinput",S=>{switch(S.preventDefault(),S.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:S.data!=null&&v(S.data);break}}),Ta(n,"input",S=>{let{inputType:W,data:Y}=S;switch(W){case"insertCompositionText":n.current.textContent=F.current,(C(E,Y)||C(P,Y))&&v(Y);break}}),ge(()=>{let S=n.current;return()=>{document.activeElement===S&&(u.focusPrevious()||u.focusNext())}},[n,u]);let k=pr()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},I=d.useMemo(()=>t.segments.find(S=>S.isEditable),[t.segments]);e!==I&&!t.isInvalid&&(l=void 0);let T=He(),L=!t.isDisabled&&!t.isReadOnly&&e.isEditable,j=e.type==="literal"?"":a.of(e.type),O=Tn({"aria-label":`${j}${i?`, ${i}`:""}${s?", ":""}`,"aria-labelledby":s});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:Q(h,O,{id:T,...k,"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(A.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(S){S.stopPropagation()},onMouseDown(S){S.stopPropagation()}})}}function _D(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 zD(e,t){let{role:n="dialog"}=e,r=on();r=e["aria-label"]?void 0:r;let o=d.useRef(!1);return d.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Mn(t.current);let a=setTimeout(()=>{document.activeElement===t.current&&(o.current=!0,t.current&&(t.current.blur(),Mn(t.current)),o.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),Eb(),{dialogProps:{...ue(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:a=>{o.current&&a.stopPropagation()}},titleProps:{id:r}}}function zv(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:a,formatOptions:i={style:"percent"}}=e,s=ue(e,{labelable:!0}),{labelProps:l,fieldProps:u}=Po({...e,labelElementType:"span"});t=ht(t,n,r);let c=(t-n)/(r-n),f=za(i);if(!a&&!o){let p=i.style==="percent"?c:t;o=f.format(p)}return{progressBarProps:Q(s,{...u,"aria-valuenow":a?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":a?void 0:o,role:"progressbar"}),labelProps:l}}function UD(e){let{progressBarProps:t,labelProps:n}=zv(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}var Uv={};Uv={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var Hv={};Hv={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var Wv={};Wv={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var Gv={};Gv={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var Yv={};Yv={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var qv={};qv={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var Zv={};Zv={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var Xv={};Xv={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var Jv={};Jv={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var Qv={};Qv={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var ey={};ey={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var ty={};ty={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var ny={};ny={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var ry={};ry={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var oy={};oy={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var ay={};ay={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var iy={};iy={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var sy={};sy={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var ly={};ly={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var uy={};uy={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 fy={};fy={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 by={};by={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var hy={};hy={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var my={};my={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var gy={};gy={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var vy={};vy={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var yy={};yy={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var $y={};$y={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var xy={};xy={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var wy={};wy={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var Cy={};Cy={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};function HD(e){return e&&e.__esModule?e.default:e}var Dy={};Dy={"ar-AE":Uv,"bg-BG":Hv,"cs-CZ":Wv,"da-DK":Gv,"de-DE":Yv,"el-GR":qv,"en-US":Zv,"es-ES":Xv,"et-EE":Jv,"fi-FI":Qv,"fr-FR":ey,"he-IL":ty,"hr-HR":ny,"hu-HU":ry,"it-IT":oy,"ja-JP":ay,"ko-KR":iy,"lt-LT":sy,"lv-LV":ly,"nb-NO":uy,"nl-NL":cy,"pl-PL":dy,"pt-BR":fy,"pt-PT":py,"ro-RO":by,"ru-RU":hy,"sk-SK":my,"sl-SI":gy,"sr-SP":vy,"sv-SE":yy,"tr-TR":$y,"uk-UA":xy,"zh-CN":wy,"zh-TW":Cy};function WD(e,t,n){let{id:r,decrementAriaLabel:o,incrementAriaLabel:a,isDisabled:i,isReadOnly:s,isRequired:l,minValue:u,maxValue:c,autoFocus:f,label:p,formatOptions:b,onBlur:h=()=>{},onFocus:g,onFocusChange:y,onKeyDown:$,onKeyUp:C,description:x,errorMessage:E,isWheelDisabled:P,...M}=e,{increment:K,incrementToMax:v,decrement:V,decrementToMin:F,numberValue:k,inputValue:I,commit:T,commitValidation:L}=t;const j=gr(HD(Dy),"@react-aria/numberfield");let O=He(r),{focusProps:S}=ii({onBlur(){T()}}),W=za(b),Y=d.useMemo(()=>W.resolvedOptions(),[W]),U=za({...b,currencySign:void 0}),D=d.useMemo(()=>isNaN(k)?"":U.format(k),[U,k]),{spinButtonProps:N,incrementButtonProps:q,decrementButtonProps:J}=Kv({isDisabled:i,isReadOnly:s,isRequired:l,maxValue:c,minValue:u,onIncrement:K,onIncrementToMax:v,onDecrement:V,onDecrementToMin:F,value:k,textValue:D}),[ee,re]=d.useState(!1),{focusWithinProps:z}=hr({isDisabled:i,onFocusWithinChange:re}),Z=d.useCallback(_e=>{Math.abs(_e.deltaY)<=Math.abs(_e.deltaX)||(_e.deltaY>0?K():_e.deltaY<0&&V())},[V,K]);Cx({onScroll:Z,isDisabled:P||i||s||!ee},n);let se=Y.maximumFractionDigits>0,oe=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,Ve="numeric";Np()?oe?Ve="text":se&&(Ve="decimal"):jl()&&(oe?Ve="numeric":se&&(Ve="decimal"));let We=_e=>{t.validate(_e)&&t.setInputValue(_e)},Dt=ue(e),Kn=d.useCallback(_e=>{_e.key==="Enter"?(T(),L()):_e.continuePropagation()},[T,L]),{isInvalid:Xt,validationErrors:Jt,validationDetails:Cr}=t.displayValidation,{labelProps:ce,inputProps:pe,descriptionProps:we,errorMessageProps:Io}=RD({...M,...Dt,name:void 0,label:p,autoFocus:f,isDisabled:i,isReadOnly:s,isRequired:l,validate:void 0,[co]:t,value:I,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:O,type:"text",inputMode:Ve,onChange:We,onBlur:h,onFocus:g,onFocusChange:y,onKeyDown:d.useMemo(()=>sn(Kn,$),[Kn,$]),onKeyUp:C,description:x,errorMessage:E},t,n);vo(n,t.numberValue,t.setNumberValue);let Dr=Q(N,S,pe,{role:null,"aria-roledescription":pr()?null:j.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(Dr["aria-required"]=void 0);let Er=_e=>{var Sr;document.activeElement!==n.current&&(_e.pointerType==="mouse"?(Sr=n.current)===null||Sr===void 0||Sr.focus():_e.target.focus())},pn=e["aria-label"]||(typeof e.label=="string"?e.label:""),Et;pn||(Et=e.label!=null?ce.id:e["aria-labelledby"]);let Pr=He(),Lo=He(),Fi=Q(q,{"aria-label":a||j.format("increase",{fieldLabel:pn}).trim(),id:Et&&!a?Pr:null,"aria-labelledby":Et&&!a?`${Pr} ${Et}`:null,"aria-controls":O,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:Er}),Bi=Q(J,{"aria-label":o||j.format("decrease",{fieldLabel:pn}).trim(),id:Et&&!o?Lo:null,"aria-labelledby":Et&&!o?`${Lo} ${Et}`:null,"aria-controls":O,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:Er});return{groupProps:{...z,role:"group","aria-disabled":i,"aria-invalid":Xt?"true":void 0},labelProps:ce,inputProps:Dr,incrementButtonProps:Fi,decrementButtonProps:Bi,errorMessageProps:Io,descriptionProps:we,isInvalid:Xt,validationErrors:Jt,validationDetails:Cr}}function Ey(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 ju=new WeakMap;function yl(e,t){let n=ju.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function GD(e,t,n){let{labelProps:r,fieldProps:o}=Po(e),a=e.orientation==="vertical";var i;ju.set(t,{id:(i=r.id)!==null&&i!==void 0?i:o.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:s}=Ke(),{addGlobalListener:l,removeGlobalListener:u}=br();const c=d.useRef(null),f=s==="rtl",p=d.useRef(null),{moveProps:b}=Qp({onMoveStart(){p.current=null},onMove({deltaX:$,deltaY:C}){let{height:x,width:E}=n.current.getBoundingClientRect(),P=a?x:E;p.current==null&&(p.current=t.getThumbPercent(c.current)*P);let M=a?C:$;if((a||f)&&(M=-M),p.current+=M,c.current!=null&&n.current){const K=ht(p.current/P,0,1);t.setThumbPercent(c.current,K)}},onMoveEnd(){c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null)}});let h=d.useRef(void 0),g=($,C,x,E)=>{if(n.current&&!e.isDisabled&&t.values.every((P,M)=>!t.isThumbDragging(M))){let{height:P,width:M,top:K,left:v}=n.current.getBoundingClientRect(),V=a?P:M,T=((a?E:x)-(a?K:v))/V;(s==="rtl"||a)&&(T=1-T);let L=t.getPercentValue(T),j,O=t.values.findIndex(S=>L-S<0);if(O===0)j=O;else if(O===-1)j=t.values.length-1;else{let S=t.values[O-1],W=t.values[O];Math.abs(S-L)<Math.abs(W-L)?j=O-1:j=O}j>=0&&t.isThumbEditable(j)?($.preventDefault(),c.current=j,t.setFocusedThumb(j),h.current=C,t.setThumbDragging(c.current,!0),t.setThumbValue(j,L),l(window,"mouseup",y,!1),l(window,"touchend",y,!1),l(window,"pointerup",y,!1)):c.current=null}},y=$=>{var C,x;((x=$.pointerId)!==null&&x!==void 0?x:(C=$.changedTouches)===null||C===void 0?void 0:C[0].identifier)===h.current&&(c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null),u(window,"mouseup",y,!1),u(window,"touchend",y,!1),u(window,"pointerup",y,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var $;($=document.getElementById(yl(t,0)))===null||$===void 0||$.focus(),Xp("keyboard")}),{labelProps:r,groupProps:{role:"group",...o},trackProps:Q({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"}},b),outputProps:{htmlFor:t.values.map(($,C)=>yl(t,C)).join(" "),"aria-live":"off"}}}function YD(e,t){let{index:n=0,isRequired:r,validationState:o,isInvalid:a,trackRef:i,inputRef:s,orientation:l=t.orientation,name:u}=e,c=e.isDisabled||t.isDisabled,f=l==="vertical",{direction:p}=Ke(),{addGlobalListener:b,removeGlobalListener:h}=br(),g=ju.get(t);var y;const{labelProps:$,fieldProps:C}=Po({...e,id:yl(t,n),"aria-labelledby":`${g.id} ${(y=e["aria-labelledby"])!==null&&y!==void 0?y:""}`.trim()}),x=t.values[n],E=d.useCallback(()=>{s.current&&At(s.current)},[s]),P=t.focusedThumb===n;d.useEffect(()=>{P&&E()},[P,E]);let M=p==="rtl",K=d.useRef(null),{keyboardProps:v}=Hl({onKeyDown(O){let{getThumbMaxValue:S,getThumbMinValue:W,decrementThumb:Y,incrementThumb:U,setThumbValue:D,setThumbDragging:N,pageSize:q}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(O.key)){O.continuePropagation();return}switch(O.preventDefault(),N(n,!0),O.key){case"PageUp":U(n,q);break;case"PageDown":Y(n,q);break;case"Home":D(n,W(n));break;case"End":D(n,S(n));break}N(n,!1)}}),{moveProps:V}=Qp({onMoveStart(){K.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:O,deltaY:S,pointerType:W,shiftKey:Y}){const{getThumbPercent:U,setThumbPercent:D,decrementThumb:N,incrementThumb:q,step:J,pageSize:ee}=t;let{width:re,height:z}=i.current.getBoundingClientRect(),Z=f?z:re;if(K.current==null&&(K.current=U(n)*Z),W==="keyboard")O>0&&M||O<0&&!M||S>0?N(n,Y?ee:J):q(n,Y?ee:J);else{let te=f?S:O;(f||M)&&(te=-te),K.current+=te,D(n,ht(K.current/Z,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!c);const{focusableProps:F}=mr(Q(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),s);let k=d.useRef(void 0),I=O=>{E(),k.current=O,t.setThumbDragging(n,!0),b(window,"mouseup",T,!1),b(window,"touchend",T,!1),b(window,"pointerup",T,!1)},T=O=>{var S,W;((W=O.pointerId)!==null&&W!==void 0?W:(S=O.changedTouches)===null||S===void 0?void 0:S[0].identifier)===k.current&&(E(),t.setThumbDragging(n,!1),h(window,"mouseup",T,!1),h(window,"touchend",T,!1),h(window,"pointerup",T,!1))},L=t.getThumbPercent(n);(f||p==="rtl")&&(L=1-L);let j=c?{}:Q(v,V,{onMouseDown:O=>{O.button!==0||O.altKey||O.ctrlKey||O.metaKey||I()},onPointerDown:O=>{O.button!==0||O.altKey||O.ctrlKey||O.metaKey||I(O.pointerId)},onTouchStart:O=>{I(O.changedTouches[0].identifier)}});return vo(s,x,O=>{t.setThumbValue(n,O)}),{inputProps:Q(F,C,{type:"range",tabIndex:c?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:x,name:u,disabled:c,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":a||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:c,isFocused:P}}function qD(e,t,n){let{labelProps:r,inputProps:o,isSelected:a,isPressed:i,isDisabled:s,isReadOnly:l}=tm(e,t,n);return{labelProps:r,inputProps:{...o,role:"switch",checked:a},isSelected:a,isPressed:i,isDisabled:s,isReadOnly:l}}const Py=new WeakMap;function ei(e,t,n){return typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${Py.get(e)}-${n}-${t}`}function ZD(e,t,n){var r;let{key:o,isDisabled:a,shouldSelectOnPressUp:i}=e,{selectionManager:s,selectedKey:l}=t,u=o===l,c=a||t.isDisabled||t.disabledKeys.has(o),{itemProps:f,isPressed:p}=Iu({selectionManager:s,key:o,ref:n,isDisabled:c,shouldSelectOnPressUp:i,linkBehavior:"selection"}),b=ei(t,o,"tab"),h=ei(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:Q($,f,{id:b,"aria-selected":u,"aria-disabled":c||void 0,"aria-controls":u?h:void 0,tabIndex:c?void 0:g,role:"tab"}),isSelected:u,isDisabled:c,isPressed:p}}function XD(e,t,n){let r=Ox(n)?void 0:0;var o;const a=ei(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),i=Tn({...e,id:a,"aria-labelledby":ei(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:Q(i,{tabIndex:r,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class JD{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 QD(e,t,n){let{orientation:r="horizontal",keyboardActivation:o="automatic"}=e,{collection:a,selectionManager:i,disabledKeys:s}=t,{direction:l}=Ke(),u=d.useMemo(()=>new JD(a,l,r,s),[a,s,r,l]),{collectionProps:c}=Bu({ref:n,selectionManager:i,keyboardDelegate:u,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=He();Py.set(t,f);let p=Tn({...e,id:f});return{tabListProps:{...Q(c,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}function e8(e,t){let n=ue(e,{labelable:!0}),{hoverProps:r}=Oe({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:Q(n,r,{role:"tooltip"})}}function t8(e,t,n){let{isDisabled:r,trigger:o}=e,a=He(),i=d.useRef(!1),s=d.useRef(!1),l=()=>{(i.current||s.current)&&t.open(s.current)},u=$=>{!i.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 c=()=>{o!=="focus"&&(ka()==="pointer"?i.current=!0:i.current=!1,l())},f=()=>{o!=="focus"&&(s.current=!1,i.current=!1,u())},p=()=>{s.current=!1,i.current=!1,u(!0)},b=()=>{sr()&&(s.current=!0,l())},h=()=>{s.current=!1,i.current=!1,u(!0)},{hoverProps:g}=Oe({isDisabled:r,onHoverStart:c,onHoverEnd:f}),{focusableProps:y}=mr({isDisabled:r,onFocus:b,onBlur:h},n);return{triggerProps:{"aria-describedby":t.isOpen?a:void 0,...Q(y,g,{onPointerDown:p,onKeyDown:p})},tooltipProps:{id:a}}}class xt extends Set{constructor(t,n,r){super(t),t instanceof xt?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function n8(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Sy(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:a="all"}=e,i=d.useRef(!1),[,s]=d.useState(!1),l=d.useRef(null),u=d.useRef(null),[,c]=d.useState(null),f=d.useMemo(()=>Qf(e.selectedKeys),[e.selectedKeys]),p=d.useMemo(()=>Qf(e.defaultSelectedKeys,new xt),[e.defaultSelectedKeys]),[b,h]=vt(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 b=="object"&&b.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 i.current},setFocused(x){i.current=x,s(x)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(x,E="first"){l.current=x,u.current=E,c(x)},selectedKeys:b,setSelectedKeys(x){(r||!n8(x,b))&&h(x)},disabledKeys:g,disabledBehavior:a}}function Qf(e,t){return e?e==="all"?"all":new xt(e):t}class Ty{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&&Ps(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&&Ps(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 xt([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new xt(r,o,t);for(let a of this.getKeyRange(o,r.currentKey||t))n.delete(a);for(let a of this.getKeyRange(t,o))this.canSelectItem(a)&&n.add(a)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?Ps(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],o=t;for(;o;){let a=this.collection.getItem(o);if((a&&a.type==="item"||a.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 xt(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 xt([t],t,t):new xt;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new xt;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(vD(xi(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 xt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}class $l{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let n=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let i of a.childNodes)n(i)};for(let a of t)n(a);let r,o=0;for(let[a,i]of this.keyMap)r?(r.nextKey=a,i.prevKey=r.key):(this.firstKey=a,i.prevKey=void 0),i.type==="item"&&(i.index=o++),r=i,r.nextKey=void 0;this.lastKey=r==null?void 0:r.key}}function Ay(e){let{filter:t}=e,n=Sy(e),r=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=d.useCallback(u=>t?new $l(t(u)):new $l(u),[t]),a=d.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),i=Nm(e,o,a),s=d.useMemo(()=>new Ty(i,n),[i,n]);const l=d.useRef(null);return d.useEffect(()=>{if(n.focusedKey!=null&&!i.getItem(n.focusedKey)){const u=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=[...i.getKeys()].map(g=>{const y=i.getItem(g);return y.type==="item"?y:null}).filter(g=>g!==null),p=c.length-f.length;let b=Math.min(p>1?Math.max(u.index-p+1,0):u.index,f.length-1),h;for(;b>=0;){if(!s.isDisabled(f[b].key)){h=f[b];break}b<f.length-1?b++:(b>u.index&&(b=u.index),b--)}n.setFocusedKey(h?h.key:null)}l.current=i},[i,s,n,n.focusedKey]),{collection:i,disabledKeys:r,selectionManager:s}}function My(e){var t;let[n,r]=vt(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=d.useMemo(()=>n!=null?[n]:[],[n]),{collection:a,disabledKeys:i,selectionManager:s}=Ay({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:u=>{var c;let f=(c=u.values().next().value)!==null&&c!==void 0?c:null;f===n&&e.onSelectionChange&&e.onSelectionChange(f),r(f)}}),l=n!=null?a.getItem(n):null;return{collection:a,disabledKeys:i,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:l}}function Ci(e){let[t,n]=vt(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=d.useCallback(()=>{n(!0)},[n]),o=d.useCallback(()=>{n(!1)},[n]),a=d.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:a}}function r8(e){var t,n;let{defaultFilter:r,menuTrigger:o="input",allowsEmptyCollection:a=!1,allowsCustomValue:i,shouldCloseOnBlur:s=!0}=e,[l,u]=d.useState(!1),[c,f]=d.useState(!1),[p,b]=d.useState(null),h=ce=>{e.onSelectionChange&&e.onSelectionChange(ce),ce===C&&(J(),D())};var g;let{collection:y,selectionManager:$,selectedKey:C,setSelectedKey:x,selectedItem:E,disabledKeys:P}=My({...e,onSelectionChange:h,items:(g=e.items)!==null&&g!==void 0?g:e.defaultItems});var M,K;let[v,V]=vt(e.inputValue,(K=(M=e.defaultInputValue)!==null&&M!==void 0?M:(t=y.getItem(C))===null||t===void 0?void 0:t.textValue)!==null&&K!==void 0?K:"",e.onInputChange),F=y,k=d.useMemo(()=>e.items!=null||!r?y:o8(y,v,r),[y,v,r,e.items]),[I,T]=d.useState(k),L=d.useRef("focus"),O=Ci({...e,onOpenChange:ce=>{e.onOpenChange&&e.onOpenChange(ce,ce?L.current:void 0),$.setFocused(ce),ce||$.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),S=(ce=null,pe)=>{let we=pe==="manual"||pe==="focus"&&o==="focus";(a||k.size>0||we&&F.size>0||e.items)&&(we&&!O.isOpen&&e.items===void 0&&u(!0),L.current=pe,b(ce),O.open())},W=(ce=null,pe)=>{let we=pe==="manual"||pe==="focus"&&o==="focus";!(a||k.size>0||we&&F.size>0||e.items)&&!O.isOpen||(we&&!O.isOpen&&e.items===void 0&&u(!0),O.isOpen||(L.current=pe),U(ce))},Y=d.useCallback(()=>{T(l?F:k)},[l,F,k]),U=d.useCallback((ce=null)=>{O.isOpen&&Y(),b(ce),O.toggle()},[O,Y]),D=d.useCallback(()=>{O.isOpen&&(Y(),O.close())},[O,Y]),[N,q]=d.useState(v),J=()=>{var ce,pe;let we=(pe=(ce=y.getItem(C))===null||ce===void 0?void 0:ce.textValue)!==null&&pe!==void 0?pe:"";q(we),V(we)};var ee,re;let z=d.useRef((re=(ee=e.selectedKey)!==null&&ee!==void 0?ee:e.defaultSelectedKey)!==null&&re!==void 0?re:null);var Z;let te=d.useRef((Z=(n=y.getItem(C))===null||n===void 0?void 0:n.textValue)!==null&&Z!==void 0?Z:"");d.useEffect(()=>{var ce;c&&(k.size>0||a)&&!O.isOpen&&v!==N&&o!=="manual"&&S(null,"input"),!l&&!a&&O.isOpen&&k.size===0&&D(),C!=null&&C!==z.current&&D(),v!==N&&($.setFocusedKey(null),u(!1),v===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&x(null)),C!==z.current&&(e.inputValue===void 0||e.selectedKey===void 0)?J():N!==v&&q(v);var pe;let we=(pe=(ce=y.getItem(C))===null||ce===void 0?void 0:ce.textValue)!==null&&pe!==void 0?pe:"";!c&&C!=null&&e.inputValue===void 0&&C===z.current&&te.current!==we&&(q(we),V(we)),z.current=C,te.current=we});let se=yr({...e,value:d.useMemo(()=>({inputValue:v,selectedKey:C}),[v,C])}),oe=()=>{i&&C==null?Ve():We()},Ve=()=>{z.current=null,x(null),D()},We=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var ce;e.onSelectionChange(C);var pe;let we=(pe=(ce=y.getItem(C))===null||ce===void 0?void 0:ce.textValue)!==null&&pe!==void 0?pe:"";q(we),D()}else J(),D()};const Dt=()=>{if(i){var ce,pe;const we=(pe=(ce=y.getItem(C))===null||ce===void 0?void 0:ce.textValue)!==null&&pe!==void 0?pe:"";v===we?We():Ve()}else We()};let Kn=()=>{O.isOpen&&$.focusedKey!=null?C===$.focusedKey?We():x($.focusedKey):Dt()},Xt=d.useRef(v),Jt=ce=>{ce?(Xt.current=v,o==="focus"&&S(null,"focus")):(s&&Dt(),v!==Xt.current&&se.commitValidation()),f(ce)},Cr=d.useMemo(()=>O.isOpen?l?F:k:I,[O.isOpen,F,k,l,I]);return{...se,...O,focusStrategy:p,toggle:W,open:S,close:Dt,selectionManager:$,selectedKey:C,setSelectedKey:x,disabledKeys:P,isFocused:c,setFocused:Jt,selectedItem:E,collection:Cr,inputValue:v,setInputValue:V,commit:Kn,revert:oe}}function o8(e,t,n){return new $l(ky(e,e,t,n))}function ky(e,t,n,r){let o=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let i=ky(e,xi(a,e),n,r);[...i].some(s=>s.type==="item")&&o.push({...a,childNodes:i})}else a.type==="item"&&r(a.textValue,n)?o.push({...a}):a.type!=="item"&&o.push({...a});return o}var Ry={};Ry={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var Fy={};Fy={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var By={};By={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 Iy={};Iy={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 Ly={};Ly={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 Vy={};Vy={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var Oy={};Oy={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 Ny={};Ny={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 Ky={};Ky={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 jy={};jy={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 _y={};_y={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 zy={};zy={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var Uy={};Uy={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 Hy={};Hy={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 Wy={};Wy={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 Gy={};Gy={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var Yy={};Yy={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var qy={};qy={rangeOverflow:e=>`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 Zy={};Zy={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 Xy={};Xy={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 Jy={};Jy={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 Qy={};Qy={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 e4={};e4={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 t4={};t4={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 n4={};n4={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 r4={};r4={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var o4={};o4={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 a4={};a4={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 i4={};i4={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 s4={};s4={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 l4={};l4={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 u4={};u4={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 a8(e){return e&&e.__esModule?e.default:e}var f4={};f4={"ar-AE":Ry,"bg-BG":Fy,"cs-CZ":By,"da-DK":Iy,"de-DE":Ly,"el-GR":Vy,"en-US":Oy,"es-ES":Ny,"et-EE":Ky,"fi-FI":jy,"fr-FR":_y,"he-IL":zy,"hr-HR":Uy,"hu-HU":Hy,"it-IT":Wy,"ja-JP":Gy,"ko-KR":Yy,"lt-LT":qy,"lv-LV":Zy,"nb-NO":Xy,"nl-NL":Jy,"pl-PL":Qy,"pt-BR":e4,"pt-PT":t4,"ro-RO":n4,"ru-RU":r4,"sk-SK":o4,"sl-SI":a4,"sr-SP":i4,"sv-SE":s4,"tr-TR":l4,"uk-UA":u4,"zh-CN":c4,"zh-TW":d4};const i8=new Bn(a8(f4));function s8(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function l8(e,t,n,r,o){let a=e!=null&&n!=null&&e.compare(n)>0,i=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=a||i||s,u=[];if(l){let c=s8(),f=Bn.getGlobalDictionaryForPackage("@react-stately/datepicker")||i8,p=new a0(c,f),b=new Yr(c,xl({},o)),h=b.resolvedOptions().timeZone;i&&u.push(p.format("rangeUnderflow",{minValue:b.format(t.toDate(h))})),a&&u.push(p.format("rangeOverflow",{maxValue:b.format(n.toDate(h))})),s&&u.push(p.format("unavailableDate"))}return{isInvalid:l,validationErrors:u,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:i,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}const u8={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},c8={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function xl(e,t){e={...t.shouldForceLeadingZeros?c8:u8,...e};let r=t.granularity||"minute",o=Object.keys(e);var a;let i=o.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");i<0&&(i=0);let s=o.indexOf(r);if(s<0&&(s=2),i>s)throw new Error("maxGranularity must be greater than granularity");let l=o.slice(i,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&&i===0&&(l.era="short"),l}function p4(e,t){if(e===null)return null;if(e)return Je(e,t)}function Or(e,t,n,r){if(e)return p4(e,n);let o=Je(s0(r).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?p0(o):r?o:un(o)}function d8(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,a]=d.useState([r,n]);e&&(o[0]!==r||o[1]!==n)&&a([r,n]),t||(t=e?r:o[0]);let i=e?n:o[1];return[t,i]}const f8=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 p8(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?f8.getStringForLocale(e,n):"––"}const da={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},ep={year:5,month:2,day:7,hour:2,minute:15,second:15},b8={dayperiod:"dayPeriod"};function _u(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:o,isReadOnly:a,isRequired:i,minValue:s,maxValue:l,isDateUnavailable:u}=e,c=e.value||e.defaultValue||e.placeholderValue,[f,p]=d8(c,e.granularity),b=p||"UTC";if(c&&!(f in c))throw new Error("Invalid granularity "+f+" for value "+c.toString());let h=d.useMemo(()=>new Yr(t),[t]),g=d.useMemo(()=>n(h.resolvedOptions().calendar),[n,h]),[y,$]=vt(e.value,e.defaultValue,e.onChange),C=d.useMemo(()=>p4(y,g),[y,g]),[x,E]=d.useState(()=>Or(e.placeholderValue,f,g,p)),P=C||x,M=g.identifier==="gregory"&&P.era==="BC",K=d.useMemo(()=>{var z;return{granularity:f,maxGranularity:(z=e.maxGranularity)!==null&&z!==void 0?z:"year",timeZone:p,hideTimeZone:r,hourCycle:e.hourCycle,showEra:M,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,p,r,M]),v=d.useMemo(()=>xl({},K),[K]),V=d.useMemo(()=>new Yr(t,v),[t,v]),F=d.useMemo(()=>V.resolvedOptions(),[V]),k=d.useMemo(()=>V.formatToParts(new Date).filter(z=>da[z.type]).reduce((z,Z)=>(z[Z.type]=!0,z),{}),[V]),[I,T]=d.useState(()=>e.value||e.defaultValue?{...k}:{}),L=d.useRef(),j=d.useRef(g.identifier);d.useEffect(()=>{g.identifier!==j.current&&(j.current=g.identifier,E(z=>Object.keys(I).length>0?Je(z,g):Or(e.placeholderValue,f,g,p)))},[g,f,I,p,e.placeholderValue]),y&&Object.keys(I).length<Object.keys(k).length&&(I={...k},T(I)),y==null&&Object.keys(I).length===Object.keys(k).length&&(I={},T(I),E(Or(e.placeholderValue,f,g,p)));let O=C&&Object.keys(I).length>=Object.keys(k).length?C:x,S=z=>{if(e.isDisabled||e.isReadOnly)return;let Z=Object.keys(I),te=Object.keys(k);z==null?($(null),E(Or(e.placeholderValue,f,g,p)),T({})):Z.length>=te.length||Z.length===te.length-1&&k.dayPeriod&&!I.dayPeriod&&L.current!=="dayPeriod"?(z=Je(z,(c==null?void 0:c.calendar)||new ot),$(z)):E(z),L.current=null},W=d.useMemo(()=>O.toDate(b),[O,b]),Y=d.useMemo(()=>V.formatToParts(W).map(z=>{let Z=da[z.type];z.type==="era"&&g.getEras().length===1&&(Z=!1);let te=da[z.type]&&!I[z.type],se=da[z.type]?p8(z.type,z.value,t):null;return{type:b8[z.type]||z.type,text:te?se:z.value,...h8(O,z.type,F),isPlaceholder:te,placeholder:se,isEditable:Z}}),[W,I,V,F,O,g,t]);k.era&&I.year&&!I.era?(I.era=!0,T({...I})):!k.era&&I.era&&(delete I.era,T({...I}));let U=z=>{I[z]=!0,z==="year"&&k.era&&(I.era=!0),T({...I})},D=(z,Z)=>{if(I[z])S(m8(O,z,Z,F));else{U(z);let te=Object.keys(I),se=Object.keys(k);(te.length>=se.length||te.length===se.length-1&&k.dayPeriod&&!I.dayPeriod)&&S(O)}},N=d.useMemo(()=>l8(y,s,l,u,K),[y,s,l,u,K]),q=yr({...e,value:y,builtinValidation:N}),J=q.displayValidation.isInvalid,ee=e.validationState||(J?"invalid":null);var re;return{...q,value:C,dateValue:W,calendar:g,setValue:S,segments:Y,dateFormatter:V,validationState:ee,isInvalid:J,granularity:f,maxGranularity:(re=e.maxGranularity)!==null&&re!==void 0?re:"year",isDisabled:o,isReadOnly:a,isRequired:i,increment(z){D(z,1)},decrement(z){D(z,-1)},incrementPage(z){D(z,ep[z]||1)},decrementPage(z){D(z,-(ep[z]||1))},setSegment(z,Z){U(z),S(g8(O,z,Z,F))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let z=Object.keys(I),Z=Object.keys(k);z.length===Z.length-1&&k.dayPeriod&&!I.dayPeriod&&(I={...k},T(I),S(O.copy()))},clearSegment(z){delete I[z],L.current=z,T({...I});let Z=Or(e.placeholderValue,f,g,p),te=O;if(z==="dayPeriod"&&"hour"in O&&"hour"in Z){let se=O.hour>=12,oe=Z.hour>=12;se&&!oe?te=O.set({hour:O.hour-12}):!se&&oe&&(te=O.set({hour:O.hour+12}))}else z in O&&(te=O.set({[z]:Z[z]}));$(null),S(te)},formatValue(z){if(!C)return"";let Z=xl(z,K);return new Yr(t,Z).format(W)}}}function h8(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:Gx(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:Yx(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 m8(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,a=o>=12;return e.set({hour:a?o-12:o+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}}function g8(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,a=o>=12;return n>=12===a?e:e.set({hour:a?o-12:o+12})}case"hour":if(r.hour12){let a=e.hour>=12;!a&&n===12&&(n=0),a&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}}function v8(e){let{placeholderValue:t=new ci,minValue:n,maxValue:r,granularity:o,validate:a}=e,[i,s]=vt(e.value,e.defaultValue,e.onChange),l=i||t,u=l&&"day"in l?l:void 0,c=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||c)&&t?b0(Nr(t),C||c):Nr(t)},[t,l,c]),p=d.useMemo(()=>Nr(n,u),[n,u]),b=d.useMemo(()=>Nr(r,u),[r,u]),h=d.useMemo(()=>i&&"day"in i?sd(i):i,[i]),g=d.useMemo(()=>i==null?null:Nr(i),[i]);return{..._u({...e,value:g,defaultValue:void 0,minValue:p,maxValue:b,onChange:C=>{s(u||c?C:C&&sd(C))},granularity:o||"minute",maxGranularity:"hour",placeholderValue:f,createCalendar:()=>new ot,validate:d.useCallback(()=>a==null?void 0:a(i),[a,i])}),timeValue:h}}function Nr(e,t=Wx(ql())){return e?"day"in e?e:un(t,e):null}function y8(e,t){let{triggerKey:n}=e,{UNSTABLE_expandedKeysStack:r,UNSTABLE_openSubmenu:o,UNSTABLE_closeSubmenu:a,close:i}=t,[s]=d.useState(r==null?void 0:r.length),l=d.useMemo(()=>r[s]===n,[r,n,s]),[u,c]=d.useState(null),f=d.useCallback((h=null)=>{c(h),o(n,s)},[o,s,n]),p=d.useCallback(()=>{c(null),a(n,s)},[a,s,n]),b=d.useCallback((h=null)=>{c(h),l?p():f(h)},[p,f,l]);return d.useMemo(()=>({focusStrategy:u,isOpen:l,open:f,close:p,closeAll:i,submenuLevel:s,setOpen:()=>{},toggle:b}),[l,f,p,i,u,b,s])}function $8(e){let{minValue:t,maxValue:n,step:r,formatOptions:o,value:a,defaultValue:i=NaN,onChange:s,locale:l,isDisabled:u,isReadOnly:c}=e;a===null&&(a=NaN),a!==void 0&&!isNaN(a)&&(r!==void 0&&!isNaN(r)?a=et(a,t,n,r):a=ht(a,t,n)),isNaN(i)||(r!==void 0&&!isNaN(r)?i=et(i,t,n,r):i=ht(i,t,n));let[f,p]=vt(a,isNaN(i)?NaN:i,s),[b,h]=d.useState(()=>isNaN(f)?"":new _a(l,o).format(f)),g=d.useMemo(()=>new ou(l,o),[l,o]),y=d.useMemo(()=>g.getNumberingSystem(b),[g,b]),$=d.useMemo(()=>new _a(l,{...o,numberingSystem:y}),[l,o,y]),C=d.useMemo(()=>$.resolvedOptions(),[$]),x=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[M,K]=d.useState(f),[v,V]=d.useState(l),[F,k]=d.useState(o);(!Object.is(f,M)||l!==v||o!==F)&&(h(x(f)),K(f),V(l),k(o));let I=d.useMemo(()=>g.parse(b),[g,b]),T=()=>{if(!b.length){p(NaN),h(a===void 0?"":x(f));return}if(isNaN(I)){h(x(f));return}let N;r===void 0||isNaN(r)?N=ht(I,t,n):N=et(I,t,n,r),N=g.parse(x(N)),p(N),h(x(a===void 0?N:f))},L=(N,q=0)=>{let J=I;if(isNaN(J)){let ee=isNaN(q)?0:q;return et(ee,t,n,P)}else{let ee=et(J,t,n,P);return N==="+"&&ee>J||N==="-"&&ee<J?ee:et(Ts(N,J,P),t,n,P)}},j=()=>{let N=L("+",t);N===f&&h(x(N)),p(N),E.commitValidation()},O=()=>{let N=L("-",n);N===f&&h(x(N)),p(N),E.commitValidation()},S=()=>{n!=null&&(p(et(n,t,n,P)),E.commitValidation())},W=()=>{t!=null&&(p(t),E.commitValidation())},Y=d.useMemo(()=>!u&&!c&&(isNaN(I)||n===void 0||isNaN(n)||et(I,t,n,P)>I||Ts("+",I,P)<=n),[u,c,t,n,P,I]),U=d.useMemo(()=>!u&&!c&&(isNaN(I)||t===void 0||isNaN(t)||et(I,t,n,P)<I||Ts("-",I,P)>=t),[u,c,t,n,P,I]);return{...E,validate:N=>g.isValidPartialNumber(N,t,n),increment:j,incrementToMax:S,decrement:O,decrementToMin:W,canIncrement:Y,canDecrement:U,minValue:t,maxValue:n,numberValue:I,setNumberValue:p,setInputValue:h,inputValue:b,commit:T}}function Ts(e,t,n){let r=e==="+"?t+n:t-n;if(t%1!==0||n%1!==0){const o=t.toString().split("."),a=n.toString().split("."),i=o[1]&&o[1].length||0,s=a[1]&&a[1].length||0,l=Math.pow(10,Math.max(i,s));t=Math.round(t*l),n=Math.round(n*l),r=e==="+"?t+n:t-n,r/=l}return r}const x8=0,w8=100,C8=1;function D8(e){const{isDisabled:t=!1,minValue:n=x8,maxValue:r=w8,numberFormatter:o,step:a=C8,orientation:i="horizontal"}=e;let s=d.useMemo(()=>{let D=(r-n)/10;return D=et(D,0,D+a,a),Math.max(D,a)},[a,r,n]),l=d.useCallback(D=>D==null?void 0:D.map((N,q)=>{let J=q===0?n:N[q-1],ee=q===D.length-1?r:N[q+1];return et(N,J,ee,a)}),[n,r,a]),u=d.useMemo(()=>l(np(e.value)),[e.value]),c=d.useMemo(()=>{var D;return l((D=np(e.defaultValue))!==null&&D!==void 0?D:[n])},[e.defaultValue,n]),f=rp(e.value,e.defaultValue,e.onChange),p=rp(e.value,e.defaultValue,e.onChangeEnd);const[b,h]=vt(u,c,f),[g,y]=d.useState(new Array(b.length).fill(!1)),$=d.useRef(new Array(b.length).fill(!0)),[C,x]=d.useState(void 0),E=d.useRef(b),P=d.useRef(g);let M=D=>{E.current=D,h(D)},K=D=>{P.current=D,y(D)};function v(D){return(D-n)/(r-n)}function V(D){return D===0?n:b[D-1]}function F(D){return D===b.length-1?r:b[D+1]}function k(D){return $.current[D]}function I(D,N){$.current[D]=N}function T(D,N){if(t||!k(D))return;const q=V(D),J=F(D);N=et(N,q,J,a);let ee=tp(E.current,D,N);M(ee)}function L(D,N){if(t||!k(D))return;N&&(E.current=b);const q=P.current[D];P.current=tp(P.current,D,N),K(P.current),p&&q&&!P.current.some(Boolean)&&p(E.current)}function j(D){return o.format(D)}function O(D,N){T(D,W(N))}function S(D){return Math.round((D-n)/a)*a+n}function W(D){const N=D*(r-n)+n;return ht(S(N),n,r)}function Y(D,N=1){let q=Math.max(N,a);T(D,et(b[D]+q,n,r,a))}function U(D,N=1){let q=Math.max(N,a);T(D,et(b[D]-q,n,r,a))}return{values:b,getThumbValue:D=>b[D],setThumbValue:T,setThumbPercent:O,isThumbDragging:D=>g[D],setThumbDragging:L,focusedThumb:C,setFocusedThumb:x,getThumbPercent:D=>v(b[D]),getValuePercent:v,getThumbValueLabel:D=>j(b[D]),getFormattedValue:j,getThumbMinValue:V,getThumbMaxValue:F,getPercentValue:W,isThumbEditable:k,setThumbEditable:I,incrementThumb:Y,decrementThumb:U,step:a,pageSize:s,orientation:i,isDisabled:t}}function tp(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function np(e){if(e!=null)return Array.isArray(e)?e:[e]}function rp(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}function E8(e){var t;let n=My({...e,suppressTextValueWarning:!0,defaultSelectedKey:(t=e.defaultSelectedKey)!==null&&t!==void 0?t:op(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:r,collection:o,selectedKey:a}=n,i=d.useRef(a);return d.useEffect(()=>{let s=a;(r.isEmpty||!o.getItem(s))&&(s=op(o,n.disabledKeys),s!=null&&r.setSelectedKeys([s])),(s!=null&&r.focusedKey==null||!r.isFocused&&s!==i.current)&&r.setFocusedKey(s),i.current=s}),{...n,isDisabled:e.isDisabled||!1}}function op(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 P8=1500,ap=500;let hn={},S8=0,Kr=!1,It=null,mn=null;function T8(e={}){let{delay:t=P8,closeDelay:n=ap}=e,{isOpen:r,open:o,close:a}=Ci(e),i=d.useMemo(()=>`${++S8}`,[]),s=d.useRef(),l=()=>{hn[i]=f},u=()=>{for(let b in hn)b!==i&&(hn[b](!0),delete hn[b])},c=()=>{clearTimeout(s.current),s.current=null,u(),l(),Kr=!0,o(),It&&(clearTimeout(It),It=null),mn&&(clearTimeout(mn),mn=null)},f=b=>{b||n<=0?(clearTimeout(s.current),s.current=null,a()):s.current||(s.current=setTimeout(()=>{s.current=null,a()},n)),It&&(clearTimeout(It),It=null),Kr&&(mn&&clearTimeout(mn),mn=setTimeout(()=>{delete hn[i],mn=null,Kr=!1},Math.max(ap,n)))},p=()=>{u(),l(),!r&&!It&&!Kr?It=setTimeout(()=>{It=null,Kr=!0,c()},t):r||c()};return d.useEffect(()=>()=>{clearTimeout(s.current),hn[i]&&delete hn[i]},[i]),{isOpen:r,open:b=>{!b&&t>0&&!s.current?p():c()},close:f}}class A8{*[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=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&(i.type==="section"||n.has(i.key)))for(let s of i.childNodes)r(s)};for(let i of t)r(i);let o,a=0;for(let[i,s]of this.keyMap)o?(o.nextKey=i,s.prevKey=o.key):(this.firstKey=i,s.prevKey=void 0),s.type==="item"&&(s.index=a++),o=s,o.nextKey=void 0;this.lastKey=o==null?void 0:o.key}}function M8(e){let[t,n]=vt(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),r=Sy(e),o=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=Nm(e,d.useCallback(s=>new A8(s,{expandedKeys:t}),[t]),null);return d.useEffect(()=>{r.focusedKey!=null&&!a.getItem(r.focusedKey)&&r.setFocusedKey(null)},[a,r.focusedKey]),{collection:a,expandedKeys:t,disabledKeys:o,toggleKey:s=>{n(k8(t,s))},setExpandedKeys:n,selectionManager:new Ty(a,r)}}function k8(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var wl={exports:{}},As={};/**
|
|
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 <`+j+">.")}return k}function Dc(m,k){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 ip;function R8(){if(ip)return As;ip=1;var e=A.default;function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function s(f,p){var b=p(),h=r({inst:{value:b,getSnapshot:p}}),g=h[0].inst,y=h[1];return a(function(){g.value=b,g.getSnapshot=p,l(g)&&y({inst:g})},[f,b,p]),o(function(){return l(g)&&y({inst:g}),f(function(){l(g)&&y({inst:g})})},[f]),i(b),b}function l(f){var p=f.getSnapshot;f=f.value;try{var b=p();return!n(f,b)}catch{return!0}}function u(f,p){return p()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return As.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,As}var Ms={};/**
|
|
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 <`+j+">.")}return k}function Dc(m,k){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 ip;function M8(){return ip||(ip=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(x){{for(var E=arguments.length,P=new Array(E>1?E-1:0),A=1;A<E;A++)P[A-1]=arguments[A];r("error",x,P)}}function r(x,E,P){{var A=t.ReactDebugCurrentFrame,N=A.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[x],console,v)}}function o(x,E){return x===E&&(x!==0||1/x===1/E)||x!==x&&E!==E}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,s=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue,d=!1,f=!1;function p(x,E,P){d||e.startTransition!==void 0&&(d=!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 A=E();if(!f){var N=E();i(A,N)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}var v=a({inst:{value:A,getSnapshot:E}}),L=v[0].inst,R=v[1];return l(function(){L.value=A,L.getSnapshot=E,b(L)&&R({inst:L})},[x,A,E]),s(function(){b(L)&&R({inst:L});var M=function(){b(L)&&R({inst:L})};return x(M)},[x]),c(A),A}function b(x){var E=x.getSnapshot,P=x.value;try{var A=E();return!i(P,A)}catch{return!0}}function h(x,E,P){return E()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!g,$=y?h:p,C=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:$;Ts.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ts}process.env.NODE_ENV==="production"?$l.exports=A8():$l.exports=M8();var k8=$l.exports;class ju{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new ju(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 d4{*[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 d4{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof fo?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var t,n,r,o;let i=this.ownerDocument.getMutableNode(this);i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof fo?this.parentNode.node.key:null;var a;i.prevKey=(a=(t=this.previousSibling)===null||t===void 0?void 0:t.node.key)!==null&&a!==void 0?a:null;var s;i.nextKey=(s=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null,i.hasChildNodes=!!this.firstChild;var l;i.firstChildKey=(l=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&l!==void 0?l:null;var c;i.lastChildKey=(c=(o=this.lastChild)===null||o===void 0?void 0:o.node.key)!==null&&c!==void 0?c:null}setProps(t,n,r){let o=this.ownerDocument.getMutableNode(this),{value:i,textValue:a,id:s,...l}=t;if(l.ref=n,o.props=l,o.rendered=r,o.value=i,o.textValue=a||(typeof r=="string"?r:"")||t["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new ju(t,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class R8{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 F8 extends d4{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 $r(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 c=[];for(let d of n){let f=a.get(d);if(!f){f=t(d);var s,l;let p=(l=(s=f.props.id)!==null&&s!==void 0?s:d.key)!==null&&l!==void 0?l:d.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:d}:{key:p}),a.set(d,f)}c.push(f)}return c}else if(typeof t!="function")return t},[t,n,a,r,o])}function B8(e){return $r({...e,addIdAndValue:!0})}const f4=u.createContext(!1);function _u(e,t){let{collection:n,document:r}=zu(t);return{portal:p4(e,r),collection:n}}function I8(e,t,n){let r=Mt(),o=u.useRef(r);o.current=r;let i=u.useCallback(()=>o.current?n():t(),[t,n]);return k8.useSyncExternalStore(e,i)}const L8=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:I8;function zu(e){let t=u.useMemo(()=>new F8(e||new R8),[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:L8(n,r,o),document:t}}const xl=u.createContext(null),Eo=u.createContext(null);function p4(e,t){let n=u.useContext(Eo),r=t??n,o=B8(e),i=u.useMemo(()=>u.createElement(f4.Provider,{value:!0},o),[o]);return Mt()?u.createElement(xl.Provider,{value:r},i):Yt.createPortal(i,r)}function b4(e){return u.createElement(u.Fragment,null,p4(e))}function h4(e,t,n){let r=u.useContext(f4);var o;return r?(o=wa(e,t,n,"children"in t?t.children:null))!==null&&o!==void 0?o:u.createElement(u.Fragment,null):null}function V8(e,t,n){return u.useCallback(r=>{r==null||r.setProps(e,t,n)},[e,t,n])}function wa(e,t,n,r,o){let i=V8(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 O8=Symbol("callback"),wl=Symbol("default");function Ke({values:e,children:t}){for(let[n,r]of e)t=u.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 u.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 Ca(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=Ca(n,e.slot)||{},{ref:o,[O8]:i,...a}=r,s=vt(u.useMemo(()=>na(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}),u.useEffect(()=>{i&&i(e)},[i,e]),[l,s]}function xt(){let[e,t]=u.useState(!0),n=u.useRef(!1),r=u.useCallback(o=>{n.current=!0,t(!!o)},[]);return he(()=>{n.current||t(!1)},[]),[r,e]}function Uu(e,t=!0){let[n,r]=u.useState(!0);return m4(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"),m4(e,n,u.useCallback(()=>{i("exited"),r(!1)},[])),n}function m4(e,t,n){let r=u.useRef(null);t&&e.current&&(r.current=window.getComputedStyle(e.current).animation),he(()=>{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),Yt.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),N8=typeof DocumentFragment<"u"?new DocumentFragment:null;function g4(e){let t=u.useContext(po),n=Mt();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):Yt.createPortal(r,N8)}function Da(e){let t=(n,r)=>u.useContext(po)?null:e(n,r);return t.displayName=e.displayName||e.name,u.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 v4=u.createContext(null);function K8(e,t){[e,t]=me(e,t,v4);let n=e.href?"a":"span",{linkProps:r,isPressed:o}=JC({...e,elementType:n},t),{hoverProps:i,isHovered:a}=Ve(e),{focusProps:s,isFocused:l,isFocusVisible:c}=Ye(),d=be({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:o,isHovered:a,isFocused:l,isFocusVisible:c}});return u.createElement(n,{ref:t,slot:e.slot||void 0,...J(d,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},d.children)}const Ea=u.forwardRef(K8),j8=u.createContext(null);function _8(e,t){[e,t]=me(e,t,j8);let{portal:n,collection:r}=_u(e);return u.createElement(u.Fragment,null,n,u.createElement(z8,{props:e,collection:r,breadcrumbsRef:t}))}function z8({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(W8,{key:o.key,node:o,isCurrent:i===t.size-1,isDisabled:e.isDisabled,onAction:e.onAction})))}const U8=u.forwardRef(_8);function H8(e,t){return wa("item",e,t,e.children)}const y4=u.forwardRef(H8);function W8({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(v4.Provider,{value:o},e.rendered))}const G8=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Hu=u.createContext({});function Y8(e,t){[e,t]=me(e,t,Hu);let n=e,{buttonProps:r,isPressed:o}=Yh(e,t),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye(e),{hoverProps:l,isHovered:c}=Ve(e),d=be({...e,values:{isHovered:c,isPressed:o,isFocused:a,isFocusVisible:s,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return u.createElement("button",{...le(e,{propNames:G8}),...J(r,i,l),...d,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 $4=Da(Y8),q8=u.createContext({}),qt=u.createContext({});function Z8(e,t){[e,t]=me(e,t,qt);let{elementType:n="span",...r}=e;return u.createElement(n,{className:"react-aria-Text",...r,ref:t})}const xr=u.forwardRef(Z8),Vn=u.createContext(null);function X8(e,t){let n=u.useContext(Vn);return n!=null&&n.isInvalid?u.createElement(J8,{...e,ref:t}):null}const Po=u.forwardRef(X8),J8=u.forwardRef((e,t)=>{let n=u.useContext(Vn),r=be({...e,defaultClassName:"react-aria-FieldError",defaultChildren:n.validationErrors.join(" "),values:n});return u.createElement(xr,{slot:"errorMessage",...r,ref:t})}),kt=u.createContext({});function Q8(e,t){[e,t]=me(e,t,kt);let{elementType:n="label",...r}=e;return u.createElement(n,{className:"react-aria-Label",...r,ref:t})}const Zt=Da(Q8),eE=u.createContext(null),tE=u.createContext(null);function nE(e,t){[e,t]=me(e,t,tE);let n=u.useRef(null),r=u.useContext(eE);var o;let{labelProps:i,inputProps:a,isSelected:s,isDisabled:l,isReadOnly:c,isPressed:d,isInvalid:f}=r?uD({...e,value:e.value,children:typeof e.children=="function"?!0:e.children},r,n):em({...e,children:typeof e.children=="function"?!0:e.children,validationBehavior:(o=e.validationBehavior)!==null&&o!==void 0?o:"native"},va(e),n),{isFocused:p,isFocusVisible:b,focusProps:h}=Ye(),g=l||c,{hoverProps:y,isHovered:$}=Ve({...e,isDisabled:g}),C=be({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:s,isIndeterminate:e.isIndeterminate||!1,isPressed:d,isHovered:$,isFocused:p,isFocusVisible:b,isDisabled:l,isReadOnly:c,isInvalid:f,isRequired:e.isRequired||!1}}),x=le(e);return delete x.id,u.createElement("label",{...J(x,i,y,C),ref:t,slot:e.slot||void 0,"data-selected":s||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":d||void 0,"data-hovered":$||void 0,"data-focused":p||void 0,"data-focus-visible":b||void 0,"data-disabled":l||void 0,"data-readonly":c||void 0,"data-invalid":f||void 0,"data-required":e.isRequired||void 0},u.createElement(ua,{elementType:"span"},u.createElement("input",{...J(a,h),ref:n})),C.children)}const rE=u.forwardRef(nE),wr=u.createContext({});function oE(e,t){[e,t]=me(e,t,wr);let{isDisabled:n,isInvalid:r,onHoverStart:o,onHoverChange:i,onHoverEnd:a,...s}=e,{hoverProps:l,isHovered:c}=Ve({onHoverStart:o,onHoverChange:i,onHoverEnd:a,isDisabled:n}),{isFocused:d,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 b=be({...e,values:{isHovered:c,isFocusWithin:d,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:"react-aria-Group"});var h,g;return u.createElement("div",{...J(s,p,l),...b,ref:t,role:(h=e.role)!==null&&h!==void 0?h:"group",slot:(g=e.slot)!==null&&g!==void 0?g:void 0,"data-focus-within":d||void 0,"data-hovered":c||void 0,"data-focus-visible":f||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0},b.children)}const Wu=u.forwardRef(oE),On=u.createContext({});let iE=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...o}=e;return o};function aE(e,t){[e,t]=me(e,t,On);let{hoverProps:n,isHovered:r}=Ve(e),{isFocused:o,isFocusVisible:i,focusProps:a}=Ye({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 u.createElement("input",{...J(iE(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=Da(aE),x4=u.createContext(null);function sE(e,t){let{render:n}=u.useContext(x4);return u.createElement(u.Fragment,null,n(e,t))}const lE=u.forwardRef(sE),Gu=u.createContext({}),uE=u.createContext({});function cE(e,t){let[n,r]=me(e,t,uE),o=h4("header",e,t);return o||u.createElement("header",{className:"react-aria-Header",...n,ref:r},n.children)}const w4=u.forwardRef(cE),Yu=u.createContext({});function dE(e,t){let[n,r]=me(e,t,Yu),{elementType:o,orientation:i,style:a,className:s}=n,l=o||"hr";l==="hr"&&i==="vertical"&&(l="div");let{separatorProps:c}=wy({elementType:o,orientation:i}),d=h4("separator",e,t);return d||u.createElement(l,{...le(n),...c,style:a,className:s??"react-aria-Separator",ref:r,slot:n.slot||void 0})}const C4=u.forwardRef(dE),Pa=u.createContext(null),To=u.createContext(null);function fE(e,t){[e,t]=me(e,t,Pa);let n=u.useContext(po),r=u.useContext(To);return u.useContext(Eo)?u.createElement(b4,e):r?n?null:u.createElement(D4,{state:r,props:e,listBoxRef:t}):u.createElement(pE,{props:e,listBoxRef:t})}function pE({props:e,listBoxRef:t}){let{portal:n,collection:r}=_u(e);e={...e,collection:r,children:null,items:null};let o=Py(e);return u.createElement(u.Fragment,null,n,u.createElement(D4,{state:o,props:e,listBoxRef:t}))}const bE=u.forwardRef(fE);function D4({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:d}=Ne(),{disabledBehavior:f,disabledKeys:p}=s,b=ru({usage:"search",sensitivity:"base"}),h=u.useMemo(()=>t.keyboardDelegate||new Bu({collection:a,collator:b,ref:n,disabledKeys:f==="selection"?new Set:p,layout:o,orientation:i,direction:d}),[a,b,n,f,p,i,d,t.keyboardDelegate,o]),{listBoxProps:g}=vD({...t,shouldSelectOnPressUp:l||t.shouldSelectOnPressUp,keyboardDelegate:h},e,n),y=$r({items:a,children:K=>{switch(K.type){case"section":return u.createElement(hE,{section:K});case"separator":return u.createElement(C4,K.props);case"item":return u.createElement(E4,{item:K});default:throw new Error("Unsupported node type in Menu: "+K.type)}}}),$=u.useRef(l),C=u.useRef(c);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!==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 x,E,P,A=!1,N=null,v=u.useRef(null);if(l&&r){x=r.useDraggableCollectionState({collection:a,selectionManager:s,preview:r.renderDragPreview?v:void 0}),r.useDraggableCollection({},x,n);let K=r.DragPreview;N=r.renderDragPreview?u.createElement(K,{ref:v},r.renderDragPreview):null}if(c&&r){E=r.useDroppableCollectionState({collection:a,selectionManager:s});let K=r.dropTargetDelegate||new r.ListDropTargetDelegate(a,n,{orientation:i,layout:o,direction:d});P=r.useDroppableCollection({keyboardDelegate:h,dropTargetDelegate:K},E,n),A=E.isDropTarget({type:"root"})}let{focusProps:L,isFocused:R,isFocusVisible:M}=Ye(),B={isDropTarget:A,isEmpty:e.collection.size===0,isFocused:R,isFocusVisible:M,layout:t.layout||"stack",state:e},T=be({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),...J(g,L,P==null?void 0:P.collectionProps),...T,ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":A||void 0,"data-empty":e.collection.size===0||void 0,"data-focused":R||void 0,"data-focus-visible":M||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},u.createElement(Ke,{values:[[Pa,t],[To,e],[Gu,{dragAndDropHooks:r,dragState:x,dropState:E}],[Yu,{elementType:"div"}],[x4,{render:yE}]]},y),I,N))}function hE({section:e,className:t,style:n}){var r,o;let i=u.useContext(To),[a,s]=xt();var l;let{headingProps:c,groupProps:d}=$D({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 u.createElement(mE,{item:p,headingProps:c,headingRef:a});case"item":return u.createElement(E4,{item:p});default:throw new Error("Unsupported element type in Section: "+p.type)}}});return u.createElement("section",{...le(e.props),...d,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 mE({item:e,headingProps:t,headingRef:n}){let{ref:r,...o}=e.props;return u.createElement(w4,{...t,...o,ref:na(n,r)},e.rendered)}function gE(e,t){return wa("item",e,t,e.children)}const vE=u.forwardRef(gE);function E4({item:e}){var t;let n=vt(e.props.ref),r=u.useContext(To),{dragAndDropHooks:o,dragState:i,dropState:a}=u.useContext(Gu),{optionProps:s,labelProps:l,descriptionProps:c,...d}=yD({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},r,n),{hoverProps:f,isHovered:p}=Ve({isDisabled:!d.allowsSelection&&!d.hasAction}),b=null;i&&o&&(b=o.useDraggableItem({key:e.key},i));let h=null;a&&o&&(h=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:{...d,isHovered:p,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,allowsDragging:!!i,isDragging:y,isDropTarget:h==null?void 0:h.isDropTarget}}),C=(o==null?void 0:o.renderDropIndicator)||(E=>u.createElement(lE,{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 x=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(x,{...J(s,f,b==null?void 0:b.dragProps,h==null?void 0:h.dropProps),...$,ref:n,"data-allows-dragging":!!i||void 0,"data-selected":d.isSelected||void 0,"data-disabled":d.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":d.isFocusVisible||void 0,"data-pressed":d.isPressed||void 0,"data-dragging":y||void 0,"data-drop-target":(h==null?void 0:h.isDropTarget)||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode},u.createElement(Ke,{values:[[qt,{slots:{label:l,description:c}}]]},$.children)),(o==null?void 0:o.useDropIndicator)&&r.collection.getKeyAfter(e.key)==null&&C({type:"item",key:e.key,dropPosition:"after"}))}function yE(e,t){t=vt(t);let{dragAndDropHooks:n,dropState:r}=u.useContext(Gu),{dropIndicatorProps:o,isHidden:i,isDropTarget:a}=n.useDropIndicator(e,r,t);return i?null:u.createElement(xE,{...e,dropIndicatorProps:o,isDropTarget:a,ref:t})}function $E(e,t){let{dropIndicatorProps:n,isDropTarget:r,...o}=e,i=be({...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 xE=u.forwardRef($E),wE=u.createContext({placement:"bottom"}),dr=u.createContext(null);function CE(e,t){[e,t]=me(e,t,dr);let n=u.useContext(Nn),r=xa(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(DE,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i})}const P4=u.forwardRef(CE);function DE({state:e,isExiting:t,UNSTABLE_portalContainer:n,...r}){var o;let{popoverProps:i,underlayProps:a,arrowProps:s,placement:l}=p2({...r,offset:(o=r.offset)!==null&&o!==void 0?o:8},e),c=r.popoverRef,d=Uu(c,!!l)||r.isEntering||!1,f=be({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:l,isEntering:d,isExiting:t}}),p={...i.style,...f.style};return u.createElement(xb,{isExiting:t,portalContainer:n},!r.isNonModal&&e.isOpen&&u.createElement("div",{"data-testid":"underlay",...a,style:{position:"fixed",inset:0}}),u.createElement("div",{...J(le(r),i),...f,ref:c,slot:r.slot||void 0,style:p,"data-trigger":r.trigger,"data-placement":l,"data-entering":d||void 0,"data-exiting":t||void 0},!r.isNonModal&&u.createElement(tl,{onDismiss:e.close}),u.createElement(wE.Provider,{value:{...s,placement:l}},f.children),u.createElement(tl,{onDismiss:e.close})))}const EE=u.createContext(null),Nn=u.createContext(null);function PE(e,t){let n=e["aria-labelledby"];[e,t]=me(e,t,EE);let{dialogProps:r,titleProps:o}=KD({...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(Ke,{values:[[q8,{slots:{[wl]:{},title:{...o,level:2}}}]]},a))}const S4=u.forwardRef(PE),SE=u.createContext(null),TE=u.createContext(null);function AE(e,t){[e,t]=me(e,t,SE);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(g4,null,u.createElement(Ke,{values:[[Eo,r],[Pa,{items:(l=e.items)!==null&&l!==void 0?l:e.defaultItems}]]},o)),u.createElement(ME,{props:e,collection:n,comboBoxRef:t}))}function ME({props:e,collection:t,comboBoxRef:n}){let{name:r,formValue:o="key",allowsCustomValue:i}=e;i&&(o="text");let{contains:a}=B0({sensitivity:"base"});var s;let l=e8({defaultFilter:e.defaultFilter||a,...e,items:e.items,children:void 0,collection:t,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"}),c=u.useRef(null),d=u.useRef(null),f=u.useRef(null),p=u.useRef(null),[b,h]=xt();var g;let{buttonProps:y,inputProps:$,listBoxProps:C,labelProps:x,descriptionProps:E,errorMessageProps:P,...A}=kD({...Rn(e),label:h,inputRef:d,buttonRef:c,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(d.current){var T;let I=(T=c.current)===null||T===void 0?void 0:T.getBoundingClientRect(),K=d.current.getBoundingClientRect(),V=I?Math.min(I.left,K.left):K.left,S=I?Math.max(I.right,K.right):K.right;v(S-V+"px")}},[c,d,v]);Kl({ref:d,onResize:L});let R=u.useMemo(()=>({isOpen:l.isOpen,isDisabled:e.isDisabled||!1,isInvalid:A.isInvalid||!1,isRequired:e.isRequired||!1}),[l.isOpen,e.isDisabled,A.isInvalid,e.isRequired]),M=be({...e,values:R,defaultClassName:"react-aria-ComboBox"}),B=le(e);return delete B.id,u.createElement(Ke,{values:[[TE,l],[kt,{...x,ref:b}],[Hu,{...y,ref:c,isPressed:l.isOpen}],[On,{...$,ref:d}],[Nn,l],[dr,{ref:p,triggerRef:d,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":N}}],[Pa,{...C,ref:f}],[To,l],[qt,{slots:{description:E,errorMessage:P}}],[wr,{isInvalid:A.isInvalid,isDisabled:e.isDisabled||!1}],[Vn,A]]},u.createElement("div",{...B,...M,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":A.isInvalid||void 0,"data-required":e.isRequired||void 0}),r&&o==="key"&&u.createElement("input",{type:"hidden",name:r,value:l.selectedKey}))}const kE=u.forwardRef(AE),T4=u.createContext(null),RE=u.createContext(null),Ao=u.createContext(null),Sa=u.createContext(null);function FE(e,t){[e,t]=me(e,t,T4);let{locale:n}=Ne();var r;let o=Ku({...e,locale:n,createCalendar:A0,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=xt(),l=u.useRef(null);var c;let{labelProps:d,fieldProps:f,inputProps:p,descriptionProps:b,errorMessageProps:h,...g}=Ou({...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"}),$=le(e);return delete $.id,u.createElement(Ke,{values:[[Ao,o],[wr,{...f,ref:i,isInvalid:o.isInvalid}],[On,{...p,ref:l}],[kt,{...d,ref:a,elementType:"span"}],[qt,{slots:{description:b,errorMessage:h}}],[Vn,g]]},u.createElement("div",{...$,...y,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const BE=u.forwardRef(FE);function IE(e,t){[e,t]=me(e,t,RE);let{locale:n}=Ne();var r;let o=h8({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=xt(),l=u.useRef(null);var c;let{labelProps:d,fieldProps:f,inputProps:p,descriptionProps:b,errorMessageProps:h,...g}=ID({...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"}),$=le(e);return delete $.id,u.createElement(Ke,{values:[[Sa,o],[wr,{...f,ref:i,isInvalid:o.isInvalid}],[On,{...p,ref:l}],[kt,{...d,ref:a,elementType:"span"}],[qt,{slots:{description:b,errorMessage:h}}],[Vn,g]]},u.createElement("div",{...$,...y,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const LE=u.forwardRef(IE);function VE(e,t){let n=u.useContext(Ao),r=u.useContext(Sa);return n||r?u.createElement(A4,{...e,ref:t}):u.createElement(OE,{...e,ref:t})}const OE=u.forwardRef((e,t)=>{let[n,r]=me({slot:e.slot},t,T4),{locale:o}=Ne(),i=Ku({...n,locale:o,createCalendar:A0}),a=u.useRef(null),{fieldProps:s,inputProps:l}=Ou({...n,inputRef:a},i,r);return u.createElement(Ke,{values:[[Ao,i],[On,{...l,ref:a}],[wr,{...s,ref:r,isInvalid:i.isInvalid}]]},u.createElement(A4,e))}),A4=u.forwardRef((e,t)=>{let{className:n,children:r}=e,o=u.useContext(Ao),i=u.useContext(Sa),a=o??i;return u.createElement(u.Fragment,null,u.createElement(Wu,{...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))}),M4=u.forwardRef(VE);function NE({segment:e,...t},n){let r=u.useContext(Ao),o=u.useContext(Sa),i=r??o,a=vt(n),{segmentProps:s}=OD(e,i,a),{focusProps:l,isFocused:c,isFocusVisible:d}=Ye(),{hoverProps:f,isHovered:p}=Ve({...t,isDisabled:i.isDisabled||e.type==="literal"}),b=be({...t,values:{...e,isReadOnly:!e.isEditable,isInvalid:i.isInvalid,isDisabled:i.isDisabled,isHovered:p,isFocused:c,isFocusVisible:d},defaultChildren:e.text,defaultClassName:"react-aria-DateSegment"});return u.createElement("div",{...J(le(t),s,l,f),...b,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":d||void 0})}const k4=u.forwardRef(NE),R4=u.createContext({}),F4=u.createContext(null),Mo=u.createContext(null),B4=u.createContext(null);function I4(e){let{item:t,parentMenuRef:n}=e,r=u.useContext(Mo);return $r({items:r.collection.getChildren(t.key),children:i=>{switch(i.type){case"item":return u.createElement(UE,{item:i,popover:t.rendered[1],parentMenuRef:n,delay:t.props.delay});default:throw new Error("Unsupported element type in SubmenuTrigger: "+t.type)}}})}function KE(e,t){[e,t]=me(e,t,F4);let{portal:n,collection:r}=_u(e);return u.createElement(u.Fragment,null,r.size>0&&u.createElement(jE,{props:e,collection:r,menuRef:t}),n)}function jE({props:e,collection:t,menuRef:n}){let r=S8({...e,collection:t,children:void 0}),[o,i]=u.useState(null),{menuProps:a}=CD(e,r,n),s=u.useContext(B4),l=u.useContext(dr),c=$r({items:r.collection,children:p=>{switch(p.type){case"section":return u.createElement(zE,{section:p,parentMenuRef:n});case"separator":return u.createElement(C4,p.props);case"item":return u.createElement(L4,{item:p});case"submenutrigger":return u.createElement(I4,{item:p,parentMenuRef:n});default:throw new Error("Unsupported node type in Menu: "+p.type)}}}),d=(l==null?void 0:l.trigger)==="SubmenuTrigger";qp({ref:n,onInteractOutside:p=>{s&&!(o!=null&&o.contains(p.target))&&s.close()},isDisabled:d||(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(Ke,{values:[[Mo,r],[Yu,{elementType:"div"}],[dr,{UNSTABLE_portalContainer:o||void 0}]]},c)),u.createElement("div",{ref:i,style:{width:"100vw",position:"absolute",top:0}}))}const _E=u.forwardRef(KE);function zE({section:e,className:t,style:n,parentMenuRef:r,...o}){var i,a;let s=u.useContext(Mo),[l,c]=xt();var d;let{headingProps:f,groupProps:p}=DD({heading:c,"aria-label":(d=e["aria-label"])!==null&&d!==void 0?d:void 0}),b=$r({items:s.collection.getChildren(e.key),children:h=>{switch(h.type){case"header":{let{ref:g,...y}=h.props;return u.createElement(w4,{...f,...y,ref:na(l,g)},h.rendered)}case"item":return u.createElement(L4,{item:h});case"submenutrigger":return u.createElement(I4,{item:h,parentMenuRef:r});default:throw new Error("Unsupported element type in Section: "+h.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},b)}function L4({item:e}){var t;let n=u.useContext(Mo),r=vt(e.props.ref),{menuItemProps:o,labelProps:i,descriptionProps:a,keyboardShortcutProps:s,...l}=$g({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},n,r),c=e.props,{isFocusVisible:d,focusProps:f}=Ye(),{hoverProps:p,isHovered:b}=Ve({isDisabled:l.isDisabled}),h=be({...c,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...l,isHovered:b,isFocusVisible:d,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior,hasSubmenu:!1,isOpen:!1}}),g=c.href?"a":"div";return u.createElement(g,{...J(o,f,p),...h,ref:r,"data-disabled":l.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":l.isFocused||void 0,"data-focus-visible":d||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(Ke,{values:[[qt,{slots:{label:i,description:a}}],[R4,s]]},h.children))}function UE({item:e,popover:t,parentMenuRef:n,delay:r}){let o=u.useContext(Mo),i=Ca(dr),a=vt(e.props.ref),s=u.useContext(B4),l=m8({triggerKey:e.key},s),c=u.useRef(null),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=TD({node:e,parentMenuRef:n,submenuRef:c,delay:r},l,a),{menuItemProps:b,labelProps:h,descriptionProps:g,keyboardShortcutProps:y,...$}=$g({key:e.key,...d},o,a),C=e.props,{hoverProps:x,isHovered:E}=Ve({isDisabled:$.isDisabled}),{isFocusVisible:P,focusProps:A}=Ye(),N=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 u.createElement(Ke,{values:[[qt,{slots:{label:h,description:g}}],[R4,y],[F4,f],[Nn,l],[dr,{ref:c,trigger:"SubmenuTrigger",triggerRef:a,placement:"end top",UNSTABLE_portalContainer:i.UNSTABLE_portalContainer||void 0,...p}]]},u.createElement("div",{...J(b,A,x),...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 HE=u.createContext(null);function WE(e,t){[e,t]=me(e,t,HE);let{value:n=0,minValue:r=0,maxValue:o=100}=e;n=bt(n,r,o);let[i,a]=xt(),{meterProps:s,labelProps:l}=jD({...e,label:a}),c=(n-r)/(o-r)*100,d=be({...e,defaultClassName:"react-aria-Meter",values:{percentage:c,valueText:s["aria-valuetext"]}});return u.createElement("div",{...s,...d,ref:t,slot:e.slot||void 0},u.createElement(kt.Provider,{value:{...l,ref:i,elementType:"span"}},d.children))}const GE=u.forwardRef(WE),YE=u.createContext(null),qu=u.createContext(null);function qE(e,t){if(u.useContext(qu))return u.createElement(ap,{...e,modalRef:t},e.children);let{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,children:l,isEntering:c,isExiting:d,UNSTABLE_portalContainer:f,...p}=e;return u.createElement(V4,{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,isEntering:c,isExiting:d,UNSTABLE_portalContainer:f},u.createElement(ap,{...p,modalRef:t},l))}const ZE=u.forwardRef(qE);function XE(e,t){[e,t]=me(e,t,YE);let n=u.useContext(Nn),r=xa(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=vt(t),a=u.useRef(null),s=Cl(i,o.isOpen),l=Cl(a,o.isOpen),c=s||l||e.isExiting||!1,d=Mt();return!o.isOpen&&!c||d?null:u.createElement(JE,{...e,state:o,isExiting:c,overlayRef:i,modalRef:a})}const V4=u.forwardRef(XE);function JE({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:i}=b2(t,r,n),a=Uu(t.overlayRef)||t.isEntering||!1,s=be({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:t.isExiting,state:r}}),l=Z3(),c={...s.style,"--visual-viewport-height":l.height+"px"};return u.createElement(xb,{isExiting:t.isExiting,portalContainer:e},u.createElement("div",{...J(le(t),i),...s,style:c,ref:t.overlayRef,"data-entering":a||void 0,"data-exiting":t.isExiting||void 0},u.createElement(Ke,{values:[[qu,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Nn,r]]},s.children)))}function ap(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:o}=u.useContext(qu),i=u.useContext(Nn),a=u.useMemo(()=>na(e.modalRef,n),[e.modalRef,n]),s=vt(a),l=Uu(s),c=be({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:i}});return u.createElement("div",{...J(le(e),t),...c,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},o&&u.createElement(tl,{onDismiss:i.close}),c.children)}const QE=u.createContext(null),eP=u.createContext(null);function tP(e,t){[e,t]=me(e,t,QE);let{locale:n}=Ne();var r;let o=g8({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=xt();var l;let{labelProps:c,groupProps:d,inputProps:f,incrementButtonProps:p,decrementButtonProps:b,descriptionProps:h,errorMessageProps:g,...y}=zD({...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=le(e);return delete C.id,u.createElement(Ke,{values:[[eP,o],[wr,d],[On,{...f,ref:i}],[kt,{...c,ref:a}],[Hu,{slots:{increment:p,decrement:b}}],[qt,{slots:{description:h,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 nP=u.forwardRef(tP),rP=u.createContext(null);function oP(e,t){[e,t]=me(e,t,rP);let{value:n=0,minValue:r=0,maxValue:o=100,isIndeterminate:i=!1}=e;n=bt(n,r,o);let[a,s]=xt(),{progressBarProps:l,labelProps:c}=Kv({...e,label:s}),d=i?void 0:(n-r)/(o-r)*100,f=be({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:d,valueText:l["aria-valuetext"],isIndeterminate:i}});return u.createElement("div",{...l,...f,ref:t,slot:e.slot||void 0},u.createElement(kt.Provider,{value:{...c,ref:a,elementType:"span"}},f.children))}const O4=u.forwardRef(oP),iP=u.createContext(null),Ta=u.createContext(null),Zu=u.createContext(null),N4=u.createContext(null);function aP(e,t){[e,t]=me(e,t,iP);let n=u.useRef(null),r=ji(e.formatOptions),o=x8({...e,numberFormatter:r}),[i,a]=xt(),{groupProps:s,trackProps:l,labelProps:c,outputProps:d}=UD({...e,label:a},o,n),f=be({...e,values:{orientation:o.orientation,isDisabled:o.isDisabled,state:o},defaultClassName:"react-aria-Slider"}),p=le(e);return delete p.id,u.createElement(Ke,{values:[[Ta,o],[Zu,{...l,ref:n}],[N4,d],[kt,{...c,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 sP=u.forwardRef(aP);function lP(e,t){[e,t]=me(e,t,N4);let{children:n,style:r,className:o,...i}=e,a=u.useContext(Ta),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 u.createElement("output",{...i,...s,ref:t,"data-orientation":a.orientation||void 0,"data-disabled":a.isDisabled||void 0})}const uP=u.forwardRef(lP);function cP(e,t){[e,t]=me(e,t,Zu);let n=u.useContext(Ta),{onHoverStart:r,onHoverEnd:o,onHoverChange:i,...a}=e,{hoverProps:s,isHovered:l}=Ve({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 u.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 dP=u.forwardRef(cP);function fP(e,t){let n=u.useContext(Ta),{ref:r}=Ca(Zu),{index:o=0}=e,i=u.useRef(null),[a,s]=xt(),{thumbProps:l,inputProps:c,labelProps:d,isDragging:f,isFocused:p,isDisabled:b}=HD({...e,index:o,trackRef:r,inputRef:i,label:s},n),{focusProps:h,isFocusVisible:g}=Ye(),{hoverProps:y,isHovered:$}=Ve(e),C=be({...e,defaultClassName:"react-aria-SliderThumb",values:{state:n,isHovered:$,isDragging:f,isFocused:p,isFocusVisible:g,isDisabled:b}}),x=le(e);return delete x.id,u.createElement("div",{...J(x,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":b||void 0},u.createElement(ua,null,u.createElement("input",{ref:i,...J(c,h)})),u.createElement(Ke,{values:[[kt,{...d,ref:a}]]},C.children))}const pP=u.forwardRef(fP),bP=u.createContext(null);function hP(e,t){[e,t]=me(e,t,bP);let n=u.useRef(null),r=va(e),{labelProps:o,inputProps:i,isSelected:a,isDisabled:s,isReadOnly:l,isPressed:c}=WD({...Rn(e),children:typeof e.children=="function"?!0:e.children},r,n),{isFocused:d,isFocusVisible:f,focusProps:p}=Ye(),b=e.isDisabled||e.isReadOnly,{hoverProps:h,isHovered:g}=Ve({...e,isDisabled:b}),y=be({...e,defaultClassName:"react-aria-Switch",values:{isSelected:a,isPressed:c,isHovered:g,isFocused:d,isFocusVisible:f,isDisabled:s,isReadOnly:l,state:r}}),$=le(e);return delete $.id,u.createElement("label",{...J($,o,h,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":d||void 0,"data-focus-visible":f||void 0,"data-disabled":s||void 0,"data-readonly":l||void 0},u.createElement(ua,{elementType:"span"},u.createElement("input",{...i,...p,ref:n})),y.children)}const mP=u.forwardRef(hP),Xu=u.createContext(null),Ju=u.createContext(null);function gP(e,t){[e,t]=me(e,t,Xu);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(g4,null,u.createElement(Eo.Provider,{value:r},o)),u.createElement(vP,{props:e,collection:n,tabsRef:t}))}function vP({props:e,tabsRef:t,collection:n}){let{orientation:r="horizontal"}=e,o=w8({...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]),c=be({...e,defaultClassName:"react-aria-Tabs",values:l});return u.createElement("div",{...le(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},u.createElement(Ke,{values:[[Xu,e],[Ju,o]]},c.children))}const yP=u.forwardRef(gP);function $P(e,t){return u.useContext(Eo)?u.createElement(b4,e):u.createElement(xP,{props:e,forwardedRef:t})}function xP({props:e,forwardedRef:t}){let n=u.useContext(Ju),{orientation:r="horizontal",keyboardActivation:o="automatic"}=Ca(Xu),i=vt(t),{tabListProps:a}=ZD({...e,orientation:r,keyboardActivation:o},n,i),s=be({...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(c=>u.createElement(EP,{key:c.key,item:c,state:n})))}const wP=u.forwardRef($P);function CP(e,t){return wa("item",e,t,e.children)}const DP=u.forwardRef(CP);function EP({item:e,state:t}){let n=vt(e.props.ref),{tabProps:r,isSelected:o,isDisabled:i,isPressed:a}=GD({key:e.key,...e.props},t,n),{focusProps:s,isFocused:l,isFocusVisible:c}=Ye(),{hoverProps:d,isHovered:f}=Ve({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}}),b=e.props.href?"a":"div";return u.createElement(b,{...J(r,s,d,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 PP(e,t){const n=u.useContext(Ju);let r=vt(t),{tabPanelProps:o}=YD(e,n,r),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye(),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 d=le(e);delete d.id;let f=l?J(d,o,i,c):c;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 SP=Da(PP),TP=u.createContext({}),AP=u.createContext(null);function MP(e,t){[e,t]=me(e,t,AP);let n=u.useRef(null),[r,o]=xt(),[i,a]=u.useState("input");var s;let{labelProps:l,inputProps:c,descriptionProps:d,errorMessageProps:f,...p}=Lu({...Rn(e),inputElementType:i,label:o,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"},n),b=u.useCallback(g=>{n.current=g,g&&a(g instanceof HTMLTextAreaElement?"textarea":"input")},[]),h=be({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid},defaultClassName:"react-aria-TextField"});return u.createElement("div",{...le(e),...h,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0},u.createElement(Ke,{values:[[kt,{...l,ref:r}],[On,{...c,ref:b}],[TP,{...c,ref:b}],[qt,{slots:{description:d,errorMessage:f}}],[Vn,p]]},h.children))}const Aa=u.forwardRef(MP),kP=u.createContext({});function RP(e,t){[e,t]=me(e,t,kP);let n=va(e),{buttonProps:r,isPressed:o}=QC(e,n,t),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye(e),{hoverProps:l,isHovered:c}=Ve(e),d=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 u.createElement("button",{...J(r,i,l),...d,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 FP=u.forwardRef(RP),BP=_(U8)`
|
|
179
|
+
*/var sp;function F8(){return sp||(sp=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=A.default,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(x){{for(var E=arguments.length,P=new Array(E>1?E-1:0),M=1;M<E;M++)P[M-1]=arguments[M];r("error",x,P)}}function r(x,E,P){{var M=t.ReactDebugCurrentFrame,K=M.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[x],console,v)}}function o(x,E){return x===E&&(x!==0||1/x===1/E)||x!==x&&E!==E}var a=typeof Object.is=="function"?Object.is:o,i=e.useState,s=e.useEffect,l=e.useLayoutEffect,u=e.useDebugValue,c=!1,f=!1;function p(x,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 M=E();if(!f){var K=E();a(M,K)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}var v=i({inst:{value:M,getSnapshot:E}}),V=v[0].inst,F=v[1];return l(function(){V.value=M,V.getSnapshot=E,b(V)&&F({inst:V})},[x,M,E]),s(function(){b(V)&&F({inst:V});var k=function(){b(V)&&F({inst:V})};return x(k)},[x]),u(M),M}function b(x){var E=x.getSnapshot,P=x.value;try{var M=E();return!a(P,M)}catch{return!0}}function h(x,E,P){return E()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!g,$=y?h:p,C=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:$;Ms.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ms}process.env.NODE_ENV==="production"?wl.exports=R8():wl.exports=F8();var B8=wl.exports;class zu{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new zu(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t}constructor(t,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=t,this.key=n}}class b4{*[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 b4{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 a=this.ownerDocument.getMutableNode(this);a.index=this.index,a.level=this.level,a.parentKey=this.parentNode instanceof fo?this.parentNode.node.key:null;var i;a.prevKey=(i=(t=this.previousSibling)===null||t===void 0?void 0:t.node.key)!==null&&i!==void 0?i:null;var s;a.nextKey=(s=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null,a.hasChildNodes=!!this.firstChild;var l;a.firstChildKey=(l=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&l!==void 0?l:null;var u;a.lastChildKey=(u=(o=this.lastChild)===null||o===void 0?void 0:o.node.key)!==null&&u!==void 0?u:null}setProps(t,n,r){let o=this.ownerDocument.getMutableNode(this),{value:a,textValue:i,id:s,...l}=t;if(l.ref=n,o.props=l,o.rendered=r,o.value=a,o.textValue=i||(typeof r=="string"?r:"")||t["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new zu(t,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class I8{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 L8 extends b4{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 a of this.dirtyNodes)a instanceof fo&&a.isConnected&&a.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var t,n;let a=this.getMutableCollection();for(let i of this.mutatedNodes)i.isConnected&&a.addNode(i.node);var r,o;a.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:a=[]}=e,i=d.useMemo(()=>new WeakMap,a);return d.useMemo(()=>{if(n&&typeof t=="function"){let u=[];for(let c of n){let f=i.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=d.cloneElement(f,o?{key:p,id:p,value:c}:{key:p}),i.set(c,f)}u.push(f)}return u}else if(typeof t!="function")return t},[t,n,i,r,o])}function V8(e){return $r({...e,addIdAndValue:!0})}const h4=d.createContext(!1);function Uu(e,t){let{collection:n,document:r}=Hu(t);return{portal:m4(e,r),collection:n}}function O8(e,t,n){let r=kt(),o=d.useRef(r);o.current=r;let a=d.useCallback(()=>o.current?n():t(),[t,n]);return B8.useSyncExternalStore(e,a)}const N8=typeof A.default.useSyncExternalStore=="function"?A.default.useSyncExternalStore:O8;function Hu(e){let t=d.useMemo(()=>new L8(e||new I8),[e]),n=d.useCallback(i=>t.subscribe(i),[t]),r=d.useCallback(()=>{let i=t.getCollection();return t.isSSR&&t.resetAfterSSR(),i},[t]),o=d.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:N8(n,r,o),document:t}}const Cl=d.createContext(null),So=d.createContext(null);function m4(e,t){let n=d.useContext(So),r=t??n,o=V8(e),a=d.useMemo(()=>A.default.createElement(h4.Provider,{value:!0},o),[o]);return kt()?A.default.createElement(Cl.Provider,{value:r},a):ho.createPortal(a,r)}function g4(e){return A.default.createElement(A.default.Fragment,null,m4(e))}function v4(e,t,n){let r=d.useContext(h4);var o;return r?(o=Di(e,t,n,"children"in t?t.children:null))!==null&&o!==void 0?o:A.default.createElement(A.default.Fragment,null):null}function K8(e,t,n){return d.useCallback(r=>{r==null||r.setProps(e,t,n)},[e,t,n])}function Di(e,t,n,r,o){let a=K8(t,n,r),i=d.useContext(Cl);if(i){let s=i.ownerDocument.nodesByProps.get(t);return s||(s=i.ownerDocument.createElement(e),s.setProps(t,n,r),i.appendChild(s),i.ownerDocument.updateCollection(),i.ownerDocument.nodesByProps.set(t,s)),o?A.default.createElement(Cl.Provider,{value:s},o):null}return A.default.createElement(e,{ref:a},o)}const j8=Symbol("callback"),Dl=Symbol("default");function je({values:e,children:t}){for(let[n,r]of e)t=A.default.createElement(n.Provider,{value:r},t);return t}function he(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:a,values:i}=e;return d.useMemo(()=>{let s,l,u;return typeof t=="function"?s=t(i):s=t,typeof n=="function"?l=n(i):l=n,typeof r=="function"?u=r(i):r==null?u=a:u=r,{className:s??o,style:l,children:u,"data-rac":""}},[t,n,r,o,a,i])}function Ei(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(a=>`"${a}"`));if(!t&&!n.slots[Dl])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let o=t||Dl;if(!n.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[o]}return n}function ve(e,t,n){let r=Ei(n,e.slot)||{},{ref:o,[j8]:a,...i}=r,s=yt(d.useMemo(()=>oi(t,o),[t,o])),l=Q(i,e);return"style"in i&&i.style&&typeof i.style=="object"&&"style"in e&&e.style&&typeof e.style=="object"&&(l.style={...i.style,...e.style}),d.useEffect(()=>{a&&a(e)},[a,e]),[l,s]}function wt(){let[e,t]=d.useState(!0),n=d.useRef(!1),r=d.useCallback(o=>{n.current=!0,t(!!o)},[]);return ge(()=>{n.current||t(!1)},[]),[r,e]}function Wu(e,t=!0){let[n,r]=d.useState(!0);return y4(e,n&&t,d.useCallback(()=>r(!1),[])),n&&t}function El(e,t){let[n,r]=d.useState(!1),[o,a]=d.useState("idle");return!t&&e.current&&o==="idle"&&(n=!0,r(!0),a("exiting")),!e.current&&o==="exited"&&a("idle"),y4(e,n,d.useCallback(()=>{a("exited"),r(!1)},[])),n}function y4(e,t,n){let r=d.useRef(null);t&&e.current&&(r.current=window.getComputedStyle(e.current).animation),ge(()=>{if(t&&e.current){let o=window.getComputedStyle(e.current);if(o.animationName&&o.animationName!=="none"&&o.animation!==r.current){let a=s=>{s.target===e.current&&(i.removeEventListener("animationend",a),mo.default.flushSync(()=>{n()}))},i=e.current;return i.addEventListener("animationend",a),()=>{i.removeEventListener("animationend",a)}}else n()}},[e,t,n])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const po=d.createContext(!1),_8=typeof DocumentFragment<"u"?new DocumentFragment:null;function $4(e){let t=d.useContext(po),n=kt();if(t)return A.default.createElement(A.default.Fragment,null,e.children);let r=A.default.createElement(po.Provider,{value:!0},e.children);return n?A.default.createElement("template",{"data-react-aria-hidden":!0},r):mo.default.createPortal(r,_8)}function Pi(e){let t=(n,r)=>d.useContext(po)?null:e(n,r);return t.displayName=e.displayName||e.name,A.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 x4=d.createContext(null);function z8(e,t){[e,t]=ve(e,t,x4);let n=e.href?"a":"span",{linkProps:r,isPressed:o}=tD({...e,elementType:n},t),{hoverProps:a,isHovered:i}=Oe(e),{focusProps:s,isFocused:l,isFocusVisible:u}=qe(),c=he({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:o,isHovered:i,isFocused:l,isFocusVisible:u}});return A.default.createElement(n,{ref:t,slot:e.slot||void 0,...Q(c,r,a,s),"data-focused":l||void 0,"data-hovered":i||void 0,"data-pressed":o||void 0,"data-focus-visible":u||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},c.children)}const Si=d.forwardRef(z8),U8=d.createContext(null);function H8(e,t){[e,t]=ve(e,t,U8);let{portal:n,collection:r}=Uu(e);return A.default.createElement(A.default.Fragment,null,n,A.default.createElement(W8,{props:e,collection:r,breadcrumbsRef:t}))}function W8({props:e,collection:t,breadcrumbsRef:n}){var r;return A.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,a)=>A.default.createElement(q8,{key:o.key,node:o,isCurrent:a===t.size-1,isDisabled:e.isDisabled,onAction:e.onAction})))}const G8=d.forwardRef(H8);function Y8(e,t){return Di("item",e,t,e.children)}const w4=d.forwardRef(Y8);function q8({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 a;return A.default.createElement("li",{...ue(e.props),ref:e.props.ref,style:e.props.style,className:(a=e.props.className)!==null&&a!==void 0?a:"react-aria-Breadcrumb"},A.default.createElement(x4.Provider,{value:o},e.rendered))}const Z8=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Gu=d.createContext({});function X8(e,t){[e,t]=ve(e,t,Gu);let n=e,{buttonProps:r,isPressed:o}=Xh(e,t),{focusProps:a,isFocused:i,isFocusVisible:s}=qe(e),{hoverProps:l,isHovered:u}=Oe(e),c=he({...e,values:{isHovered:u,isPressed:o,isFocused:i,isFocusVisible:s,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return A.default.createElement("button",{...ue(e,{propNames:Z8}),...Q(r,a,l),...c,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":n.isPressed||o||void 0,"data-hovered":u||void 0,"data-focused":i||void 0,"data-focus-visible":s||void 0})}const C4=Pi(X8),J8=d.createContext({}),qt=d.createContext({});function Q8(e,t){[e,t]=ve(e,t,qt);let{elementType:n="span",...r}=e;return A.default.createElement(n,{className:"react-aria-Text",...r,ref:t})}const xr=d.forwardRef(Q8),Vn=d.createContext(null);function eE(e,t){let n=d.useContext(Vn);return n!=null&&n.isInvalid?A.default.createElement(tE,{...e,ref:t}):null}const To=d.forwardRef(eE),tE=d.forwardRef((e,t)=>{let n=d.useContext(Vn),r=he({...e,defaultClassName:"react-aria-FieldError",defaultChildren:n.validationErrors.join(" "),values:n});return A.default.createElement(xr,{slot:"errorMessage",...r,ref:t})}),Rt=d.createContext({});function nE(e,t){[e,t]=ve(e,t,Rt);let{elementType:n="label",...r}=e;return A.default.createElement(n,{className:"react-aria-Label",...r,ref:t})}const Zt=Pi(nE),rE=d.createContext(null),oE=d.createContext(null);function aE(e,t){[e,t]=ve(e,t,oE);let n=d.useRef(null),r=d.useContext(rE);var o;let{labelProps:a,inputProps:i,isSelected:s,isDisabled:l,isReadOnly:u,isPressed:c,isInvalid:f}=r?fD({...e,value:e.value,children:typeof e.children=="function"?!0:e.children},r,n):rm({...e,children:typeof e.children=="function"?!0:e.children,validationBehavior:(o=e.validationBehavior)!==null&&o!==void 0?o:"native"},$i(e),n),{isFocused:p,isFocusVisible:b,focusProps:h}=qe(),g=l||u,{hoverProps:y,isHovered:$}=Oe({...e,isDisabled:g}),C=he({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:s,isIndeterminate:e.isIndeterminate||!1,isPressed:c,isHovered:$,isFocused:p,isFocusVisible:b,isDisabled:l,isReadOnly:u,isInvalid:f,isRequired:e.isRequired||!1}}),x=ue(e);return delete x.id,A.default.createElement("label",{...Q(x,a,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":b||void 0,"data-disabled":l||void 0,"data-readonly":u||void 0,"data-invalid":f||void 0,"data-required":e.isRequired||void 0},A.default.createElement(di,{elementType:"span"},A.default.createElement("input",{...Q(i,h),ref:n})),C.children)}const iE=d.forwardRef(aE),wr=d.createContext({});function sE(e,t){[e,t]=ve(e,t,wr);let{isDisabled:n,isInvalid:r,onHoverStart:o,onHoverChange:a,onHoverEnd:i,...s}=e,{hoverProps:l,isHovered:u}=Oe({onHoverStart:o,onHoverChange:a,onHoverEnd:i,isDisabled:n}),{isFocused:c,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 b=he({...e,values:{isHovered:u,isFocusWithin:c,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:"react-aria-Group"});var h,g;return A.default.createElement("div",{...Q(s,p,l),...b,ref:t,role:(h=e.role)!==null&&h!==void 0?h:"group",slot:(g=e.slot)!==null&&g!==void 0?g:void 0,"data-focus-within":c||void 0,"data-hovered":u||void 0,"data-focus-visible":f||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0},b.children)}const Yu=d.forwardRef(sE),On=d.createContext({});let lE=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...o}=e;return o};function uE(e,t){[e,t]=ve(e,t,On);let{hoverProps:n,isHovered:r}=Oe(e),{isFocused:o,isFocusVisible:a,focusProps:i}=qe({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",l=he({...e,values:{isHovered:r,isFocused:o,isFocusVisible:a,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return A.default.createElement("input",{...Q(lE(e),i,n),...l,ref:t,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})}const Ao=Pi(uE),D4=d.createContext(null);function cE(e,t){let{render:n}=d.useContext(D4);return A.default.createElement(A.default.Fragment,null,n(e,t))}const dE=d.forwardRef(cE),qu=d.createContext({}),fE=d.createContext({});function pE(e,t){let[n,r]=ve(e,t,fE),o=v4("header",e,t);return o||A.default.createElement("header",{className:"react-aria-Header",...n,ref:r},n.children)}const E4=d.forwardRef(pE),Zu=d.createContext({});function bE(e,t){let[n,r]=ve(e,t,Zu),{elementType:o,orientation:a,style:i,className:s}=n,l=o||"hr";l==="hr"&&a==="vertical"&&(l="div");let{separatorProps:u}=Ey({elementType:o,orientation:a}),c=v4("separator",e,t);return c||A.default.createElement(l,{...ue(n),...u,style:i,className:s??"react-aria-Separator",ref:r,slot:n.slot||void 0})}const P4=d.forwardRef(bE),Ti=d.createContext(null),Mo=d.createContext(null);function hE(e,t){[e,t]=ve(e,t,Ti);let n=d.useContext(po),r=d.useContext(Mo);return d.useContext(So)?A.default.createElement(g4,e):r?n?null:A.default.createElement(S4,{state:r,props:e,listBoxRef:t}):A.default.createElement(mE,{props:e,listBoxRef:t})}function mE({props:e,listBoxRef:t}){let{portal:n,collection:r}=Uu(e);e={...e,collection:r,children:null,items:null};let o=Ay(e);return A.default.createElement(A.default.Fragment,null,n,A.default.createElement(S4,{state:o,props:e,listBoxRef:t}))}const gE=d.forwardRef(hE);function S4({state:e,props:t,listBoxRef:n}){let{dragAndDropHooks:r,layout:o="stack",orientation:a="vertical"}=t,{collection:i,selectionManager:s}=e,l=!!(r!=null&&r.useDraggableCollectionState),u=!!(r!=null&&r.useDroppableCollectionState),{direction:c}=Ke(),{disabledBehavior:f,disabledKeys:p}=s,b=au({usage:"search",sensitivity:"base"}),h=d.useMemo(()=>t.keyboardDelegate||new Lu({collection:i,collator:b,ref:n,disabledKeys:f==="selection"?new Set:p,layout:o,orientation:a,direction:c}),[i,b,n,f,p,a,c,t.keyboardDelegate,o]),{listBoxProps:g}=xD({...t,shouldSelectOnPressUp:l||t.shouldSelectOnPressUp,keyboardDelegate:h},e,n),y=$r({items:i,children:j=>{switch(j.type){case"section":return A.default.createElement(vE,{section:j});case"separator":return A.default.createElement(P4,j.props);case"item":return A.default.createElement(T4,{item:j});default:throw new Error("Unsupported node type in Menu: "+j.type)}}}),$=d.useRef(l),C=d.useRef(u);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!==u&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[l,u]);let x,E,P,M=!1,K=null,v=d.useRef(null);if(l&&r){x=r.useDraggableCollectionState({collection:i,selectionManager:s,preview:r.renderDragPreview?v:void 0}),r.useDraggableCollection({},x,n);let j=r.DragPreview;K=r.renderDragPreview?A.default.createElement(j,{ref:v},r.renderDragPreview):null}if(u&&r){E=r.useDroppableCollectionState({collection:i,selectionManager:s});let j=r.dropTargetDelegate||new r.ListDropTargetDelegate(i,n,{orientation:a,layout:o,direction:c});P=r.useDroppableCollection({keyboardDelegate:h,dropTargetDelegate:j},E,n),M=E.isDropTarget({type:"root"})}let{focusProps:V,isFocused:F,isFocusVisible:k}=qe(),I={isDropTarget:M,isEmpty:e.collection.size===0,isFocused:F,isFocusVisible:k,layout:t.layout||"stack",state:e},T=he({className:t.className,style:t.style,defaultClassName:"react-aria-ListBox",values:I}),L=null;return e.collection.size===0&&t.renderEmptyState&&(L=A.default.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(I))),A.default.createElement(Wl,null,A.default.createElement("div",{...ue(t),...Q(g,V,P==null?void 0:P.collectionProps),...T,ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":M||void 0,"data-empty":e.collection.size===0||void 0,"data-focused":F||void 0,"data-focus-visible":k||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},A.default.createElement(je,{values:[[Ti,t],[Mo,e],[qu,{dragAndDropHooks:r,dragState:x,dropState:E}],[Zu,{elementType:"div"}],[D4,{render:wE}]]},y),L,K))}function vE({section:e,className:t,style:n}){var r,o;let a=d.useContext(Mo),[i,s]=wt();var l;let{headingProps:u,groupProps:c}=CD({heading:s,"aria-label":(l=e.props["aria-label"])!==null&&l!==void 0?l:void 0}),f=$r({items:a.collection.getChildren(e.key),children:p=>{switch(p.type){case"header":return A.default.createElement(yE,{item:p,headingProps:u,headingRef:i});case"item":return A.default.createElement(T4,{item:p});default:throw new Error("Unsupported element type in Section: "+p.type)}}});return A.default.createElement("section",{...ue(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 yE({item:e,headingProps:t,headingRef:n}){let{ref:r,...o}=e.props;return A.default.createElement(E4,{...t,...o,ref:oi(n,r)},e.rendered)}function $E(e,t){return Di("item",e,t,e.children)}const xE=d.forwardRef($E);function T4({item:e}){var t;let n=yt(e.props.ref),r=d.useContext(Mo),{dragAndDropHooks:o,dragState:a,dropState:i}=d.useContext(qu),{optionProps:s,labelProps:l,descriptionProps:u,...c}=wD({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},r,n),{hoverProps:f,isHovered:p}=Oe({isDisabled:!c.allowsSelection&&!c.hasAction}),b=null;a&&o&&(b=o.useDraggableItem({key:e.key},a));let h=null;i&&o&&(h=o.useDroppableItem({target:{type:"item",key:e.key,dropPosition:"on"}},i,n));let g=e.props,y=a&&a.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:!!a,isDragging:y,isDropTarget:h==null?void 0:h.isDropTarget}}),C=(o==null?void 0:o.renderDropIndicator)||(E=>A.default.createElement(dE,{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 x=g.href?"a":"div";return A.default.createElement(A.default.Fragment,null,(o==null?void 0:o.useDropIndicator)&&C({type:"item",key:e.key,dropPosition:"before"}),A.default.createElement(x,{...Q(s,f,b==null?void 0:b.dragProps,h==null?void 0:h.dropProps),...$,ref:n,"data-allows-dragging":!!a||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":(h==null?void 0:h.isDropTarget)||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode},A.default.createElement(je,{values:[[qt,{slots:{label:l,description:u}}]]},$.children)),(o==null?void 0:o.useDropIndicator)&&r.collection.getKeyAfter(e.key)==null&&C({type:"item",key:e.key,dropPosition:"after"}))}function wE(e,t){t=yt(t);let{dragAndDropHooks:n,dropState:r}=d.useContext(qu),{dropIndicatorProps:o,isHidden:a,isDropTarget:i}=n.useDropIndicator(e,r,t);return a?null:A.default.createElement(DE,{...e,dropIndicatorProps:o,isDropTarget:i,ref:t})}function CE(e,t){let{dropIndicatorProps:n,isDropTarget:r,...o}=e,a=he({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return A.default.createElement("div",{...n,...a,role:"option",ref:t,"data-drop-target":r||void 0})}const DE=d.forwardRef(CE),EE=d.createContext({placement:"bottom"}),dr=d.createContext(null);function PE(e,t){[e,t]=ve(e,t,dr);let n=d.useContext(Nn),r=Ci(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=El(t,o.isOpen)||e.isExiting||!1;if(d.useContext(po)){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1})),A.default.createElement(A.default.Fragment,null,s)}return o&&!o.isOpen&&!a?null:A.default.createElement(SE,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:a})}const A4=d.forwardRef(PE);function SE({state:e,isExiting:t,UNSTABLE_portalContainer:n,...r}){var o;let{popoverProps:a,underlayProps:i,arrowProps:s,placement:l}=m2({...r,offset:(o=r.offset)!==null&&o!==void 0?o:8},e),u=r.popoverRef,c=Wu(u,!!l)||r.isEntering||!1,f=he({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:l,isEntering:c,isExiting:t}}),p={...a.style,...f.style};return A.default.createElement(Db,{isExiting:t,portalContainer:n},!r.isNonModal&&e.isOpen&&A.default.createElement("div",{"data-testid":"underlay",...i,style:{position:"fixed",inset:0}}),A.default.createElement("div",{...Q(ue(r),a),...f,ref:u,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&&A.default.createElement(rl,{onDismiss:e.close}),A.default.createElement(EE.Provider,{value:{...s,placement:l}},f.children),A.default.createElement(rl,{onDismiss:e.close})))}const TE=d.createContext(null),Nn=d.createContext(null);function AE(e,t){let n=e["aria-labelledby"];[e,t]=ve(e,t,TE);let{dialogProps:r,titleProps:o}=zD({...e,"aria-labelledby":n},t),a=d.useContext(Nn),i=e.children;typeof i=="function"&&(i=i({close:(a==null?void 0:a.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 A.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"},A.default.createElement(je,{values:[[J8,{slots:{[Dl]:{},title:{...o,level:2}}}]]},i))}const M4=d.forwardRef(AE),ME=d.createContext(null),kE=d.createContext(null);function RE(e,t){[e,t]=ve(e,t,ME);let{collection:n,document:r}=Hu(),{children:o,isDisabled:a=!1,isInvalid:i=!1,isRequired:s=!1}=e;o=d.useMemo(()=>typeof o=="function"?o({isOpen:!1,isDisabled:a,isInvalid:i,isRequired:s}):o,[o,a,i,s]);var l;return A.default.createElement(A.default.Fragment,null,A.default.createElement($4,null,A.default.createElement(je,{values:[[So,r],[Ti,{items:(l=e.items)!==null&&l!==void 0?l:e.defaultItems}]]},o)),A.default.createElement(FE,{props:e,collection:n,comboBoxRef:t}))}function FE({props:e,collection:t,comboBoxRef:n}){let{name:r,formValue:o="key",allowsCustomValue:a}=e;a&&(o="text");let{contains:i}=V0({sensitivity:"base"});var s;let l=r8({defaultFilter:e.defaultFilter||i,...e,items:e.items,children:void 0,collection:t,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"}),u=d.useRef(null),c=d.useRef(null),f=d.useRef(null),p=d.useRef(null),[b,h]=wt();var g;let{buttonProps:y,inputProps:$,listBoxProps:C,labelProps:x,descriptionProps:E,errorMessageProps:P,...M}=BD({...Rn(e),label:h,inputRef:c,buttonRef:u,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(c.current){var T;let L=(T=u.current)===null||T===void 0?void 0:T.getBoundingClientRect(),j=c.current.getBoundingClientRect(),O=L?Math.min(L.left,j.left):j.left,S=L?Math.max(L.right,j.right):j.right;v(S-O+"px")}},[u,c,v]);_l({ref:c,onResize:V});let F=d.useMemo(()=>({isOpen:l.isOpen,isDisabled:e.isDisabled||!1,isInvalid:M.isInvalid||!1,isRequired:e.isRequired||!1}),[l.isOpen,e.isDisabled,M.isInvalid,e.isRequired]),k=he({...e,values:F,defaultClassName:"react-aria-ComboBox"}),I=ue(e);return delete I.id,A.default.createElement(je,{values:[[kE,l],[Rt,{...x,ref:b}],[Gu,{...y,ref:u,isPressed:l.isOpen}],[On,{...$,ref:c}],[Nn,l],[dr,{ref:p,triggerRef:c,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":K}}],[Ti,{...C,ref:f}],[Mo,l],[qt,{slots:{description:E,errorMessage:P}}],[wr,{isInvalid:M.isInvalid,isDisabled:e.isDisabled||!1}],[Vn,M]]},A.default.createElement("div",{...I,...k,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":M.isInvalid||void 0,"data-required":e.isRequired||void 0}),r&&o==="key"&&A.default.createElement("input",{type:"hidden",name:r,value:l.selectedKey}))}const BE=d.forwardRef(RE),k4=d.createContext(null),IE=d.createContext(null),ko=d.createContext(null),Ai=d.createContext(null);function LE(e,t){[e,t]=ve(e,t,k4);let{locale:n}=Ke();var r;let o=_u({...e,locale:n,createCalendar:R0,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),a=d.useRef(null),[i,s]=wt(),l=d.useRef(null);var u;let{labelProps:c,fieldProps:f,inputProps:p,descriptionProps:b,errorMessageProps:h,...g}=Ku({...Rn(e),label:s,inputRef:l,validationBehavior:(u=e.validationBehavior)!==null&&u!==void 0?u:"native"},o,a),y=he({...Rn(e),values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-DateField"}),$=ue(e);return delete $.id,A.default.createElement(je,{values:[[ko,o],[wr,{...f,ref:a,isInvalid:o.isInvalid}],[On,{...p,ref:l}],[Rt,{...c,ref:i,elementType:"span"}],[qt,{slots:{description:b,errorMessage:h}}],[Vn,g]]},A.default.createElement("div",{...$,...y,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const VE=d.forwardRef(LE);function OE(e,t){[e,t]=ve(e,t,IE);let{locale:n}=Ke();var r;let o=v8({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),a=d.useRef(null),[i,s]=wt(),l=d.useRef(null);var u;let{labelProps:c,fieldProps:f,inputProps:p,descriptionProps:b,errorMessageProps:h,...g}=OD({...Rn(e),label:s,inputRef:l,validationBehavior:(u=e.validationBehavior)!==null&&u!==void 0?u:"native"},o,a),y=he({...e,values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-TimeField"}),$=ue(e);return delete $.id,A.default.createElement(je,{values:[[Ai,o],[wr,{...f,ref:a,isInvalid:o.isInvalid}],[On,{...p,ref:l}],[Rt,{...c,ref:i,elementType:"span"}],[qt,{slots:{description:b,errorMessage:h}}],[Vn,g]]},A.default.createElement("div",{...$,...y,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const NE=d.forwardRef(OE);function KE(e,t){let n=d.useContext(ko),r=d.useContext(Ai);return n||r?A.default.createElement(R4,{...e,ref:t}):A.default.createElement(jE,{...e,ref:t})}const jE=d.forwardRef((e,t)=>{let[n,r]=ve({slot:e.slot},t,k4),{locale:o}=Ke(),a=_u({...n,locale:o,createCalendar:R0}),i=d.useRef(null),{fieldProps:s,inputProps:l}=Ku({...n,inputRef:i},a,r);return A.default.createElement(je,{values:[[ko,a],[On,{...l,ref:i}],[wr,{...s,ref:r,isInvalid:a.isInvalid}]]},A.default.createElement(R4,e))}),R4=d.forwardRef((e,t)=>{let{className:n,children:r}=e,o=d.useContext(ko),a=d.useContext(Ai),i=o??a;return A.default.createElement(A.default.Fragment,null,A.default.createElement(Yu,{...e,ref:t,slot:e.slot||void 0,className:n??"react-aria-DateInput",isInvalid:i.isInvalid},i.segments.map((s,l)=>d.cloneElement(r(s),{key:l}))),A.default.createElement(Ao,null))}),F4=d.forwardRef(KE);function _E({segment:e,...t},n){let r=d.useContext(ko),o=d.useContext(Ai),a=r??o,i=yt(n),{segmentProps:s}=jD(e,a,i),{focusProps:l,isFocused:u,isFocusVisible:c}=qe(),{hoverProps:f,isHovered:p}=Oe({...t,isDisabled:a.isDisabled||e.type==="literal"}),b=he({...t,values:{...e,isReadOnly:!e.isEditable,isInvalid:a.isInvalid,isDisabled:a.isDisabled,isHovered:p,isFocused:u,isFocusVisible:c},defaultChildren:e.text,defaultClassName:"react-aria-DateSegment"});return A.default.createElement("div",{...Q(ue(t),s,l,f),...b,ref:i,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":a.isInvalid||void 0,"data-readonly":!e.isEditable||void 0,"data-disabled":a.isDisabled||void 0,"data-type":e.type,"data-hovered":p||void 0,"data-focused":u||void 0,"data-focus-visible":c||void 0})}const B4=d.forwardRef(_E),I4=d.createContext({}),L4=d.createContext(null),Ro=d.createContext(null),V4=d.createContext(null);function O4(e){let{item:t,parentMenuRef:n}=e,r=d.useContext(Ro);return $r({items:r.collection.getChildren(t.key),children:a=>{switch(a.type){case"item":return A.default.createElement(GE,{item:a,popover:t.rendered[1],parentMenuRef:n,delay:t.props.delay});default:throw new Error("Unsupported element type in SubmenuTrigger: "+t.type)}}})}function zE(e,t){[e,t]=ve(e,t,L4);let{portal:n,collection:r}=Uu(e);return A.default.createElement(A.default.Fragment,null,r.size>0&&A.default.createElement(UE,{props:e,collection:r,menuRef:t}),n)}function UE({props:e,collection:t,menuRef:n}){let r=M8({...e,collection:t,children:void 0}),[o,a]=d.useState(null),{menuProps:i}=PD(e,r,n),s=d.useContext(V4),l=d.useContext(dr),u=$r({items:r.collection,children:p=>{switch(p.type){case"section":return A.default.createElement(WE,{section:p,parentMenuRef:n});case"separator":return A.default.createElement(P4,p.props);case"item":return A.default.createElement(N4,{item:p});case"submenutrigger":return A.default.createElement(O4,{item:p,parentMenuRef:n});default:throw new Error("Unsupported node type in Menu: "+p.type)}}}),c=(l==null?void 0:l.trigger)==="SubmenuTrigger";Jp({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 A.default.createElement(Wl,null,A.default.createElement("div",{...ue(e),...i,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"},A.default.createElement(je,{values:[[Ro,r],[Zu,{elementType:"div"}],[dr,{UNSTABLE_portalContainer:o||void 0}]]},u)),A.default.createElement("div",{ref:a,style:{width:"100vw",position:"absolute",top:0}}))}const HE=d.forwardRef(zE);function WE({section:e,className:t,style:n,parentMenuRef:r,...o}){var a,i;let s=d.useContext(Ro),[l,u]=wt();var c;let{headingProps:f,groupProps:p}=SD({heading:u,"aria-label":(c=e["aria-label"])!==null&&c!==void 0?c:void 0}),b=$r({items:s.collection.getChildren(e.key),children:h=>{switch(h.type){case"header":{let{ref:g,...y}=h.props;return A.default.createElement(E4,{...f,...y,ref:oi(l,g)},h.rendered)}case"item":return A.default.createElement(N4,{item:h});case"submenutrigger":return A.default.createElement(O4,{item:h,parentMenuRef:r});default:throw new Error("Unsupported element type in Section: "+h.type)}}});return A.default.createElement("section",{...ue(o),...p,className:t||((a=e.props)===null||a===void 0?void 0:a.className)||"react-aria-Section",style:n||((i=e.props)===null||i===void 0?void 0:i.style),ref:e.props.ref},b)}function N4({item:e}){var t;let n=d.useContext(Ro),r=yt(e.props.ref),{menuItemProps:o,labelProps:a,descriptionProps:i,keyboardShortcutProps:s,...l}=Cg({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},n,r),u=e.props,{isFocusVisible:c,focusProps:f}=qe(),{hoverProps:p,isHovered:b}=Oe({isDisabled:l.isDisabled}),h=he({...u,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...l,isHovered:b,isFocusVisible:c,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior,hasSubmenu:!1,isOpen:!1}}),g=u.href?"a":"div";return A.default.createElement(g,{...Q(o,f,p),...h,ref:r,"data-disabled":l.isDisabled||void 0,"data-hovered":b||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},A.default.createElement(je,{values:[[qt,{slots:{label:a,description:i}}],[I4,s]]},h.children))}function GE({item:e,popover:t,parentMenuRef:n,delay:r}){let o=d.useContext(Ro),a=Ei(dr),i=yt(e.props.ref),s=d.useContext(V4),l=y8({triggerKey:e.key},s),u=d.useRef(null),{submenuTriggerProps:c,submenuProps:f,popoverProps:p}=kD({node:e,parentMenuRef:n,submenuRef:u,delay:r},l,i),{menuItemProps:b,labelProps:h,descriptionProps:g,keyboardShortcutProps:y,...$}=Cg({key:e.key,...c},o,i),C=e.props,{hoverProps:x,isHovered:E}=Oe({isDisabled:$.isDisabled}),{isFocusVisible:P,focusProps:M}=qe(),K=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 A.default.createElement(je,{values:[[qt,{slots:{label:h,description:g}}],[I4,y],[L4,f],[Nn,l],[dr,{ref:u,trigger:"SubmenuTrigger",triggerRef:i,placement:"end top",UNSTABLE_portalContainer:a.UNSTABLE_portalContainer||void 0,...p}]]},A.default.createElement("div",{...Q(b,M,x),...K,ref:i,"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 YE=d.createContext(null);function qE(e,t){[e,t]=ve(e,t,YE);let{value:n=0,minValue:r=0,maxValue:o=100}=e;n=ht(n,r,o);let[a,i]=wt(),{meterProps:s,labelProps:l}=UD({...e,label:i}),u=(n-r)/(o-r)*100,c=he({...e,defaultClassName:"react-aria-Meter",values:{percentage:u,valueText:s["aria-valuetext"]}});return A.default.createElement("div",{...s,...c,ref:t,slot:e.slot||void 0},A.default.createElement(Rt.Provider,{value:{...l,ref:a,elementType:"span"}},c.children))}const ZE=d.forwardRef(qE),XE=d.createContext(null),Xu=d.createContext(null);function JE(e,t){if(d.useContext(Xu))return A.default.createElement(lp,{...e,modalRef:t},e.children);let{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:a,defaultOpen:i,onOpenChange:s,children:l,isEntering:u,isExiting:c,UNSTABLE_portalContainer:f,...p}=e;return A.default.createElement(K4,{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:a,defaultOpen:i,onOpenChange:s,isEntering:u,isExiting:c,UNSTABLE_portalContainer:f},A.default.createElement(lp,{...p,modalRef:t},l))}const QE=d.forwardRef(JE);function eP(e,t){[e,t]=ve(e,t,XE);let n=d.useContext(Nn),r=Ci(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=yt(t),i=d.useRef(null),s=El(a,o.isOpen),l=El(i,o.isOpen),u=s||l||e.isExiting||!1,c=kt();return!o.isOpen&&!u||c?null:A.default.createElement(tP,{...e,state:o,isExiting:u,overlayRef:a,modalRef:i})}const K4=d.forwardRef(eP);function tP({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:a}=g2(t,r,n),i=Wu(t.overlayRef)||t.isEntering||!1,s=he({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:i,isExiting:t.isExiting,state:r}}),l=Q3(),u={...s.style,"--visual-viewport-height":l.height+"px"};return A.default.createElement(Db,{isExiting:t.isExiting,portalContainer:e},A.default.createElement("div",{...Q(ue(t),a),...s,style:u,ref:t.overlayRef,"data-entering":i||void 0,"data-exiting":t.isExiting||void 0},A.default.createElement(je,{values:[[Xu,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Nn,r]]},s.children)))}function lp(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:o}=d.useContext(Xu),a=d.useContext(Nn),i=d.useMemo(()=>oi(e.modalRef,n),[e.modalRef,n]),s=yt(i),l=Wu(s),u=he({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:a}});return A.default.createElement("div",{...Q(ue(e),t),...u,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},o&&A.default.createElement(rl,{onDismiss:a.close}),u.children)}const nP=d.createContext(null),rP=d.createContext(null);function oP(e,t){[e,t]=ve(e,t,nP);let{locale:n}=Ke();var r;let o=$8({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),a=d.useRef(null),[i,s]=wt();var l;let{labelProps:u,groupProps:c,inputProps:f,incrementButtonProps:p,decrementButtonProps:b,descriptionProps:h,errorMessageProps:g,...y}=WD({...Rn(e),label:s,validationBehavior:(l=e.validationBehavior)!==null&&l!==void 0?l:"native"},o,a),$=he({...e,values:{state:o,isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid||!1},defaultClassName:"react-aria-NumberField"}),C=ue(e);return delete C.id,A.default.createElement(je,{values:[[rP,o],[wr,c],[On,{...f,ref:a}],[Rt,{...u,ref:i}],[Gu,{slots:{increment:p,decrement:b}}],[qt,{slots:{description:h,errorMessage:g}}],[Vn,y]]},A.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&&A.default.createElement("input",{type:"hidden",name:e.name,value:isNaN(o.numberValue)?"":o.numberValue}))}const aP=d.forwardRef(oP),iP=d.createContext(null);function sP(e,t){[e,t]=ve(e,t,iP);let{value:n=0,minValue:r=0,maxValue:o=100,isIndeterminate:a=!1}=e;n=ht(n,r,o);let[i,s]=wt(),{progressBarProps:l,labelProps:u}=zv({...e,label:s}),c=a?void 0:(n-r)/(o-r)*100,f=he({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:l["aria-valuetext"],isIndeterminate:a}});return A.default.createElement("div",{...l,...f,ref:t,slot:e.slot||void 0},A.default.createElement(Rt.Provider,{value:{...u,ref:i,elementType:"span"}},f.children))}const j4=d.forwardRef(sP),lP=d.createContext(null),Mi=d.createContext(null),Ju=d.createContext(null),_4=d.createContext(null);function uP(e,t){[e,t]=ve(e,t,lP);let n=d.useRef(null),r=za(e.formatOptions),o=D8({...e,numberFormatter:r}),[a,i]=wt(),{groupProps:s,trackProps:l,labelProps:u,outputProps:c}=GD({...e,label:i},o,n),f=he({...e,values:{orientation:o.orientation,isDisabled:o.isDisabled,state:o},defaultClassName:"react-aria-Slider"}),p=ue(e);return delete p.id,A.default.createElement(je,{values:[[Mi,o],[Ju,{...l,ref:n}],[_4,c],[Rt,{...u,ref:a}]]},A.default.createElement("div",{...p,...s,...f,ref:t,slot:e.slot||void 0,"data-orientation":o.orientation,"data-disabled":o.isDisabled||void 0}))}const cP=d.forwardRef(uP);function dP(e,t){[e,t]=ve(e,t,_4);let{children:n,style:r,className:o,...a}=e,i=d.useContext(Mi),s=he({className:o,style:r,children:n,defaultChildren:i.getThumbValueLabel(0),defaultClassName:"react-aria-SliderOutput",values:{orientation:i.orientation,isDisabled:i.isDisabled,state:i}});return A.default.createElement("output",{...a,...s,ref:t,"data-orientation":i.orientation||void 0,"data-disabled":i.isDisabled||void 0})}const fP=d.forwardRef(dP);function pP(e,t){[e,t]=ve(e,t,Ju);let n=d.useContext(Mi),{onHoverStart:r,onHoverEnd:o,onHoverChange:a,...i}=e,{hoverProps:s,isHovered:l}=Oe({onHoverStart:r,onHoverEnd:o,onHoverChange:a}),u=he({...e,defaultClassName:"react-aria-SliderTrack",values:{orientation:n.orientation,isDisabled:n.isDisabled,isHovered:l,state:n}});return A.default.createElement("div",{...Q(i,s),...u,ref:t,"data-hovered":l||void 0,"data-orientation":n.orientation||void 0,"data-disabled":n.isDisabled||void 0})}const bP=d.forwardRef(pP);function hP(e,t){let n=d.useContext(Mi),{ref:r}=Ei(Ju),{index:o=0}=e,a=d.useRef(null),[i,s]=wt(),{thumbProps:l,inputProps:u,labelProps:c,isDragging:f,isFocused:p,isDisabled:b}=YD({...e,index:o,trackRef:r,inputRef:a,label:s},n),{focusProps:h,isFocusVisible:g}=qe(),{hoverProps:y,isHovered:$}=Oe(e),C=he({...e,defaultClassName:"react-aria-SliderThumb",values:{state:n,isHovered:$,isDragging:f,isFocused:p,isFocusVisible:g,isDisabled:b}}),x=ue(e);return delete x.id,A.default.createElement("div",{...Q(x,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":b||void 0},A.default.createElement(di,null,A.default.createElement("input",{ref:a,...Q(u,h)})),A.default.createElement(je,{values:[[Rt,{...c,ref:i}]]},C.children))}const mP=d.forwardRef(hP),gP=d.createContext(null);function vP(e,t){[e,t]=ve(e,t,gP);let n=d.useRef(null),r=$i(e),{labelProps:o,inputProps:a,isSelected:i,isDisabled:s,isReadOnly:l,isPressed:u}=qD({...Rn(e),children:typeof e.children=="function"?!0:e.children},r,n),{isFocused:c,isFocusVisible:f,focusProps:p}=qe(),b=e.isDisabled||e.isReadOnly,{hoverProps:h,isHovered:g}=Oe({...e,isDisabled:b}),y=he({...e,defaultClassName:"react-aria-Switch",values:{isSelected:i,isPressed:u,isHovered:g,isFocused:c,isFocusVisible:f,isDisabled:s,isReadOnly:l,state:r}}),$=ue(e);return delete $.id,A.default.createElement("label",{...Q($,o,h,y),ref:t,slot:e.slot||void 0,"data-selected":i||void 0,"data-pressed":u||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},A.default.createElement(di,{elementType:"span"},A.default.createElement("input",{...a,...p,ref:n})),y.children)}const yP=d.forwardRef(vP),Qu=d.createContext(null),ec=d.createContext(null);function $P(e,t){[e,t]=ve(e,t,Qu);let{collection:n,document:r}=Hu(),{children:o,orientation:a="horizontal"}=e;return o=d.useMemo(()=>typeof o=="function"?o({orientation:a}):o,[o,a]),A.default.createElement(A.default.Fragment,null,A.default.createElement($4,null,A.default.createElement(So.Provider,{value:r},o)),A.default.createElement(xP,{props:e,collection:n,tabsRef:t}))}function xP({props:e,tabsRef:t,collection:n}){let{orientation:r="horizontal"}=e,o=E8({...e,collection:n,children:void 0}),{focusProps:a,isFocused:i,isFocusVisible:s}=qe({within:!0}),l=d.useMemo(()=>({orientation:r,isFocusWithin:i,isFocusVisible:s}),[r,i,s]),u=he({...e,defaultClassName:"react-aria-Tabs",values:l});return A.default.createElement("div",{...ue(e),...a,...u,ref:t,slot:e.slot||void 0,"data-focused":i||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":o.isDisabled||void 0},A.default.createElement(je,{values:[[Qu,e],[ec,o]]},u.children))}const wP=d.forwardRef($P);function CP(e,t){return d.useContext(So)?A.default.createElement(g4,e):A.default.createElement(DP,{props:e,forwardedRef:t})}function DP({props:e,forwardedRef:t}){let n=d.useContext(ec),{orientation:r="horizontal",keyboardActivation:o="automatic"}=Ei(Qu),a=yt(t),{tabListProps:i}=QD({...e,orientation:r,keyboardActivation:o},n,a),s=he({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:r,state:n}}),l=ue(e);return delete l.id,A.default.createElement("div",{...l,...i,ref:a,...s,"data-orientation":r||void 0},[...n.collection].map(u=>A.default.createElement(TP,{key:u.key,item:u,state:n})))}const EP=d.forwardRef(CP);function PP(e,t){return Di("item",e,t,e.children)}const SP=d.forwardRef(PP);function TP({item:e,state:t}){let n=yt(e.props.ref),{tabProps:r,isSelected:o,isDisabled:a,isPressed:i}=ZD({key:e.key,...e.props},t,n),{focusProps:s,isFocused:l,isFocusVisible:u}=qe(),{hoverProps:c,isHovered:f}=Oe({isDisabled:a}),p=he({...e.props,children:e.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:o,isDisabled:a,isFocused:l,isFocusVisible:u,isPressed:i,isHovered:f,state:t}}),b=e.props.href?"a":"div";return A.default.createElement(b,{...Q(r,s,c,p),ref:n,"data-selected":o||void 0,"data-disabled":a||void 0,"data-focus-visible":u||void 0,"data-pressed":i||void 0,"data-hovered":f||void 0})}function AP(e,t){const n=d.useContext(ec);let r=yt(t),{tabPanelProps:o}=XD(e,n,r),{focusProps:a,isFocused:i,isFocusVisible:s}=qe(),l=n.selectedKey===e.id,u=he({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:i,isFocusVisible:s,isInert:!l,state:n}});if(!l&&!e.shouldForceMount)return null;let c=ue(e);delete c.id;let f=l?Q(c,o,a,u):u;return A.default.createElement("div",{...f,ref:r,"data-focused":i||void 0,"data-focus-visible":s||void 0,inert:l?void 0:"true","data-inert":l?void 0:"true"})}const MP=Pi(AP),kP=d.createContext({}),RP=d.createContext(null);function FP(e,t){[e,t]=ve(e,t,RP);let n=d.useRef(null),[r,o]=wt(),[a,i]=d.useState("input");var s;let{labelProps:l,inputProps:u,descriptionProps:c,errorMessageProps:f,...p}=Ou({...Rn(e),inputElementType:a,label:o,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"},n),b=d.useCallback(g=>{n.current=g,g&&i(g instanceof HTMLTextAreaElement?"textarea":"input")},[]),h=he({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid},defaultClassName:"react-aria-TextField"});return A.default.createElement("div",{...ue(e),...h,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0},A.default.createElement(je,{values:[[Rt,{...l,ref:r}],[On,{...u,ref:b}],[kP,{...u,ref:b}],[qt,{slots:{description:c,errorMessage:f}}],[Vn,p]]},h.children))}const ki=d.forwardRef(FP),BP=d.createContext({});function IP(e,t){[e,t]=ve(e,t,BP);let n=$i(e),{buttonProps:r,isPressed:o}=nD(e,n,t),{focusProps:a,isFocused:i,isFocusVisible:s}=qe(e),{hoverProps:l,isHovered:u}=Oe(e),c=he({...e,values:{isHovered:u,isPressed:o,isFocused:i,isSelected:n.isSelected,isFocusVisible:s,isDisabled:e.isDisabled||!1,state:n},defaultClassName:"react-aria-ToggleButton"});return A.default.createElement("button",{...Q(r,a,l),...c,ref:t,slot:e.slot||void 0,"data-focused":i||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":o||void 0,"data-selected":n.isSelected||void 0,"data-hovered":u||void 0,"data-focus-visible":s||void 0})}const LP=d.forwardRef(IP),VP=G.default(G8)`
|
|
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
|
+
`,OP=G.default(w4)`
|
|
187
187
|
display: flex;
|
|
188
188
|
align-items: center;
|
|
189
|
-
`,
|
|
189
|
+
`,NP=G.default(w4)`
|
|
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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
196
196
|
width: 1rem;
|
|
197
197
|
height: 1rem;
|
|
198
198
|
}
|
|
199
|
-
`,
|
|
199
|
+
`,KP=G.default(Si)`
|
|
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])??w.colors.slate[600]}};
|
|
201
201
|
text-decoration: none;
|
|
202
202
|
cursor: pointer;
|
|
@@ -222,7 +222,7 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){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])??w.colors.slate[400]}};
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
`;function
|
|
225
|
+
`;function jP({children:e,...t}){return B.jsx(OP,{...t,children:e})}function _P(e){return B.jsx(KP,{...e})}function zP({children:e,...t}){return B.jsx(NP,{...t,children:e??B.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:B.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}function UP({children:e,...t}){return B.jsx(VP,{...t,children:e})}const St=G.default(C4)`
|
|
226
226
|
display: flex;
|
|
227
227
|
align-items: center;
|
|
228
228
|
padding: 0.4rem 2rem;
|
|
@@ -236,19 +236,19 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
236
236
|
transition: all ease 200ms;
|
|
237
237
|
height: ${({size:e})=>{switch(e){case"sm":return"2rem";case"lg":return"3rem";case"md":default:return"2.5rem"}}};
|
|
238
238
|
background-color: ${({variant:e,theme:t})=>{var n,r;switch(e){case"ghost":case"outline":return"transparent";case"solid":default:return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[800])??w.colors.slate[800]}}};
|
|
239
|
-
border-color: ${({variant:e,theme:t})=>{var n,r,o,
|
|
239
|
+
border-color: ${({variant:e,theme:t})=>{var n,r,o,a;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[300])??w.colors.slate[300];case"solid":default:return((a=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:a[800])??w.colors.slate[800]}}};
|
|
240
240
|
color: ${({variant:e,theme:t})=>{var n,r,o;switch(e){case"ghost":case"outline":return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[900])??w.colors.slate[900];case"solid":default:return((o=t==null?void 0:t.colors)==null?void 0:o.white)??w.colors.white}}};
|
|
241
241
|
|
|
242
242
|
&[data-hovered] {
|
|
243
243
|
background-color: ${({variant:e,theme:t})=>{var n,r;switch(e){case"ghost":return"transparent";case"outline":return"transparent";case"solid":default:return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[900])??w.colors.slate[900]}}};
|
|
244
|
-
border-color: ${({variant:e,theme:t})=>{var n,r,o,
|
|
244
|
+
border-color: ${({variant:e,theme:t})=>{var n,r,o,a;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[400])??w.colors.slate[400];case"solid":default:return((a=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:a[900])??w.colors.slate[900]}}};
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
&[data-focused] {
|
|
248
248
|
outline: 2px solid
|
|
249
249
|
${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??w.colors.slate[200]}};
|
|
250
250
|
background-color: ${({variant:e,theme:t})=>{var n,r;switch(e){case"ghost":return"transparent";case"outline":return"transparent";case"solid":default:return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[900])??w.colors.slate[900]}}};
|
|
251
|
-
border-color: ${({variant:e,theme:t})=>{var n,r,o,
|
|
251
|
+
border-color: ${({variant:e,theme:t})=>{var n,r,o,a;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[400])??w.colors.slate[400];case"solid":default:return((a=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:a[900])??w.colors.slate[900]}}};
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
&[data-pressed] {
|
|
@@ -256,14 +256,14 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
&[data-disabled] {
|
|
259
|
-
background-color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,i
|
|
260
|
-
border-color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,i,
|
|
261
|
-
color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,i,
|
|
259
|
+
background-color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,a,i;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])??w.colors.slate[900]:((i=(a=t==null?void 0:t.colors)==null?void 0:a.slate)==null?void 0:i[100])??w.colors.slate[100]}}};
|
|
260
|
+
border-color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,a,i,s,l,u,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])??w.colors.slate[300]:((i=(a=t==null?void 0:t.colors)==null?void 0:a.slate)==null?void 0:i[200])??w.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])??w.colors.slate[900]:((c=(u=t==null?void 0:t.colors)==null?void 0:u.slate)==null?void 0:c[200])??w.colors.slate[200]}}};
|
|
261
|
+
color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,a,i,s,l,u;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])??w.colors.slate[900]:((i=(a=t==null?void 0:t.colors)==null?void 0:a.slate)==null?void 0:i[500])??w.colors.slate[500];case"solid":default:return e?((s=t==null?void 0:t.colors)==null?void 0:s.white)??w.colors.white:((u=(l=t==null?void 0:t.colors)==null?void 0:l.slate)==null?void 0:u[400])??w.colors.slate[400]}}};
|
|
262
262
|
}
|
|
263
|
-
`;function
|
|
263
|
+
`;function HP({children:e,isDisabled:t=!1,isLoading:n=!1,size:r="md",variant:o="solid",...a}){return B.jsx(St,{isDisabled:t||n,isLoading:n,size:r,variant:o,...a,children:e})}const WP=G.default.div`
|
|
264
264
|
display: flex;
|
|
265
265
|
flex-direction: column;
|
|
266
|
-
`;function
|
|
266
|
+
`;function GP({children:e,...t}){return B.jsx(WP,{...t,children:e})}const lt=G.default.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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
273
273
|
display: flex;
|
|
274
274
|
align-items: center;
|
|
275
275
|
justify-content: center;
|
|
276
|
-
|
|
276
|
+
`,wa=G.default.svg`
|
|
277
277
|
width: 1rem;
|
|
278
278
|
height: 1rem;
|
|
279
279
|
fill: none;
|
|
@@ -282,7 +282,7 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
282
282
|
stroke-dasharray: 22px;
|
|
283
283
|
stroke-dashoffset: 66;
|
|
284
284
|
transition: all 200ms;
|
|
285
|
-
`,
|
|
285
|
+
`,YP=G.default(iE)`
|
|
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 <`+j+">.")}return k}function Dc(m,k){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])??w.colors.slate[500]}};
|
|
291
291
|
forced-color-adjust: none;
|
|
292
292
|
|
|
293
|
-
&[data-hovered] ${
|
|
293
|
+
&[data-hovered] ${lt} {
|
|
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])??w.colors.slate[400]}};
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
-
&[data-focused] ${
|
|
297
|
+
&[data-focused] ${lt} {
|
|
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])??w.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])??w.colors.slate[200]}};
|
|
@@ -304,18 +304,18 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){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])??w.colors.slate[400]}};
|
|
305
305
|
|
|
306
306
|
&[data-indeterminate] {
|
|
307
|
-
& ${
|
|
307
|
+
& ${wa} {
|
|
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])??w.colors.slate[300]}};
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
&[data-indeterminate] ${
|
|
313
|
+
&[data-indeterminate] ${lt} {
|
|
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])??w.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])??w.colors.slate[100]}};
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
&[data-disabled] ${
|
|
318
|
+
&[data-disabled] ${lt} {
|
|
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])??w.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])??w.colors.slate[100]}};
|
|
321
321
|
}
|
|
@@ -323,19 +323,19 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){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])??w.colors.red[500]}};
|
|
325
325
|
|
|
326
|
-
${
|
|
326
|
+
${lt} {
|
|
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])??w.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])??w.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])??w.colors.red[500]}};
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
&[data-hovered] ${
|
|
333
|
+
&[data-hovered] ${lt} {
|
|
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])??w.colors.red[600]}};
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
&[data-focused] ${
|
|
338
|
+
&[data-focused] ${lt} {
|
|
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])??w.colors.red[600]}};
|
|
341
341
|
outline: 2px solid
|
|
@@ -344,13 +344,13 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
344
344
|
|
|
345
345
|
&[data-selected],
|
|
346
346
|
&[data-indeterminate] {
|
|
347
|
-
${
|
|
347
|
+
${lt} {
|
|
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])??w.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])??w.colors.red[500]}};
|
|
351
351
|
}
|
|
352
352
|
|
|
353
|
-
&[data-pressed] ${
|
|
353
|
+
&[data-pressed] ${lt} {
|
|
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])??w.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])??w.colors.red[600]}};
|
|
@@ -360,43 +360,43 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
360
360
|
|
|
361
361
|
&[data-selected],
|
|
362
362
|
&[data-indeterminate] {
|
|
363
|
-
${
|
|
363
|
+
${lt} {
|
|
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])??w.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])??w.colors.slate[300]}};
|
|
366
366
|
}
|
|
367
367
|
|
|
368
|
-
&[data-pressed] ${
|
|
368
|
+
&[data-pressed] ${lt} {
|
|
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])??w.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])??w.colors.slate[400]}};
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
-
${
|
|
373
|
+
${wa} {
|
|
374
374
|
stroke-dashoffset: 44;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
&[data-indeterminate] {
|
|
379
|
-
& ${
|
|
379
|
+
& ${wa} {
|
|
380
380
|
stroke: none;
|
|
381
381
|
fill: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??w.colors.white}};
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
`;function
|
|
384
|
+
`;function qP({children:e,...t}){return B.jsx(YP,{...t,children:({isIndeterminate:n})=>B.jsxs(B.Fragment,{children:[B.jsx(lt,{children:B.jsx(wa,{viewBox:"0 0 18 18","aria-hidden":"true",children:n?B.jsx("rect",{x:1,y:7.5,width:15,height:3}):B.jsx("polyline",{points:"1 9 7 14 15 4"})})}),e]})})}const ZP=G.default.div`
|
|
385
385
|
width: 100%;
|
|
386
|
-
`,
|
|
386
|
+
`,XP=G.default(Ln.div)`
|
|
387
387
|
width: 100%;
|
|
388
388
|
overflow: hidden;
|
|
389
|
-
`,
|
|
389
|
+
`,tc=d.createContext({});function JP({children:e,...t}){const n=d.useId(),[r,o]=vt(t.isOpen,t.defaultOpen||!1,t.onOpenChange),a=d.useRef(null),i=d.useCallback(()=>{o(!r)},[o,r]);return B.jsx(je,{values:[[tc,{isOpen:r,id:n,defaultOpen:t.defaultOpen||!1}]],children:B.jsx(fx,{ref:a,isPressed:r,onPress:i,"aria-expanded":r,"aria-controls":n,children:B.jsx(ZP,{children:e})})})}function QP({children:e}){const{isOpen:t,id:n,defaultOpen:r}=d.useContext(tc);return B.jsx(XP,{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 e9=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},t9=G.default.div`
|
|
394
394
|
width: 100%;
|
|
395
395
|
margin: 0 auto;
|
|
396
396
|
padding: 0 1rem;
|
|
397
397
|
|
|
398
|
-
${({theme:e})=>
|
|
399
|
-
`,
|
|
398
|
+
${({theme:e})=>e9((e==null?void 0:e.screens)??w.screens)}
|
|
399
|
+
`,n9=d.forwardRef(({children:e,...t},n)=>B.jsx(t9,{...t,ref:n,children:e})),r9=Ln(G.default(A4)`
|
|
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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
404
404
|
background: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??w.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])??w.colors.slate[300]}};
|
|
407
|
-
`);function
|
|
407
|
+
`);function z4({children:e,key:t,onAction:n,setAnimation:r,animation:o="hidden",...a}){return B.jsx(r9,{isExiting:o==="hidden",onAnimationComplete:i=>{r(s=>i==="hidden"&&s==="hidden"?"unmounted":s)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:o,...a,children:B.jsx(HE,{style:{outline:"none"},onAction:n,children:e})},t)}z4.defaultProps={key:void 0,onAction:void 0};const o9=G.default(VE)`
|
|
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])??w.colors.slate[900]}};
|
|
409
|
-
`,
|
|
409
|
+
`,a9=G.default(F4)`
|
|
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 <`+j+">.")}return k}function Dc(m,k){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])??w.colors.red[200]}};
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
`,
|
|
460
|
+
`,i9=G.default(B4)`
|
|
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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
507
507
|
color: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??w.colors.white}};
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
`,
|
|
510
|
+
`,s9=G.default(Zt)`
|
|
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])??w.colors.slate[500]}};
|
|
514
|
-
`,
|
|
514
|
+
`,l9=G.default(To)`
|
|
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])??w.colors.red[500]}};
|
|
517
517
|
font-size: 0.8rem;
|
|
518
|
-
`,
|
|
518
|
+
`,u9=G.default(xr)`
|
|
519
519
|
display: flex;
|
|
520
520
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??w.colors.slate[500]}};
|
|
521
521
|
font-size: 0.8rem;
|
|
522
|
-
`;function
|
|
522
|
+
`;function U4({label:e,description:t,errorMessage:n,...r}){return B.jsxs(o9,{...r,children:[B.jsx(s9,{children:e}),B.jsx(a9,{children:o=>B.jsx(i9,{segment:o})}),B.jsx(u9,{slot:"description",children:t}),B.jsx(l9,{children:n})]})}U4.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const c9=G.default.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])??w.colors.slate[200]}};
|
|
527
|
-
`;function
|
|
527
|
+
`;function d9(e){const{orientation:t}=e,{separatorProps:n}=Ey(e);return B.jsx(c9,{...n,orientation:t})}const xn=G.default(Ao)`
|
|
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])??w.colors.slate[300]}};
|
|
530
530
|
font-size: 0.9rem;
|
|
@@ -577,60 +577,60 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){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])??w.colors.slate[400]}};
|
|
579
579
|
}
|
|
580
|
-
`,
|
|
580
|
+
`,H4=G.default(Zt)`
|
|
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])??w.colors.slate[500]}};
|
|
584
|
-
`,
|
|
584
|
+
`,f9=G.default(ki)`
|
|
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])??w.colors.slate[900]}};
|
|
589
|
-
`,
|
|
589
|
+
`,W4=G.default(To)`
|
|
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])??w.colors.red[500]}};
|
|
592
592
|
font-size: 0.8rem;
|
|
593
|
-
`,
|
|
593
|
+
`,G4=G.default(xr)`
|
|
594
594
|
display: flex;
|
|
595
595
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??w.colors.slate[500]}};
|
|
596
596
|
font-size: 0.8rem;
|
|
597
|
-
`;function
|
|
598
|
-
color: ${({isDisabled:e,theme:t})=>{var n,r,o,
|
|
597
|
+
`;function Y4({label:e,description:t,errorMessage:n,...r}){return B.jsxs(f9,{...r,children:[B.jsx(H4,{children:e}),B.jsx(xn,{}),t&&B.jsx(G4,{slot:"description",children:t}),B.jsx(W4,{children:n})]})}Y4.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const p9=G.default(Si)`
|
|
598
|
+
color: ${({isDisabled:e,theme:t})=>{var n,r,o,a;return e?((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[300])??w.colors.slate[300]:((a=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:a[500])??w.colors.slate[500]}};
|
|
599
599
|
cursor: ${({isDisabled:e})=>e?"default":"pointer"};
|
|
600
600
|
text-decoration: none;
|
|
601
601
|
transition: 0.3s color;
|
|
602
602
|
outline: none;
|
|
603
603
|
|
|
604
604
|
&:hover {
|
|
605
|
-
color: ${({isDisabled:e,theme:t})=>{var n,r,o,
|
|
605
|
+
color: ${({isDisabled:e,theme:t})=>{var n,r,o,a;return e?((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[300])??w.colors.slate[300]:((a=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:a[800])??w.colors.slate[800]}};
|
|
606
606
|
}
|
|
607
|
-
`;function
|
|
607
|
+
`;function b9({children:e,...t}){return B.jsx(p9,{...t,children:e})}const h9=G.default(ZE)`
|
|
608
608
|
display: flex;
|
|
609
609
|
flex-direction: column;
|
|
610
610
|
gap: 0.5rem;
|
|
611
|
-
`,
|
|
611
|
+
`,m9=G.default.div`
|
|
612
612
|
display: flex;
|
|
613
613
|
justify-content: space-between;
|
|
614
614
|
gap: 1rem;
|
|
615
|
-
`,
|
|
615
|
+
`,g9=G.default(Zt)`
|
|
616
616
|
font-size: 0.875rem;
|
|
617
|
-
`,
|
|
617
|
+
`,v9=G.default.span`
|
|
618
618
|
font-size: 0.875rem;
|
|
619
619
|
font-variant-numeric: tabular-nums;
|
|
620
620
|
margin-left: auto;
|
|
621
|
-
`,
|
|
621
|
+
`,y9=G.default.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])??w.colors.slate[300]}};
|
|
625
625
|
forced-color-adjust: none;
|
|
626
626
|
overflow: hidden;
|
|
627
|
-
|
|
627
|
+
`,$9=G.default(Ln.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])??w.colors.slate[800]}};
|
|
630
|
-
`;function
|
|
630
|
+
`;function x9({label:e,showValue:t=!0,value:n=0,minValue:r=0,maxValue:o=100,formatOptions:a={style:"percent"},...i}){return B.jsx(h9,{value:n,minValue:r,maxValue:o,formatOptions:a,...i,children:({percentage:s,valueText:l})=>B.jsxs(B.Fragment,{children:[(e||t)&&B.jsxs(m9,{children:[e&&B.jsx(g9,{children:e}),t&&B.jsx(v9,{children:l})]}),B.jsx(y9,{children:B.jsx($9,{initial:{width:`${s}%`},animate:{width:`${s}%`},transition:{type:"spring",bounce:0}})})]})})}const w9=G.default(QE)`
|
|
631
631
|
position: absolute;
|
|
632
632
|
inset: 50%;
|
|
633
|
-
`;function
|
|
633
|
+
`;function C9(e){return B.jsx(w9,{...e})}const up=me.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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
640
640
|
opacity: 1;
|
|
641
641
|
backdrop-filter: blur(10px);
|
|
642
642
|
}
|
|
643
|
-
`,
|
|
643
|
+
`,D9=G.default(K4)`
|
|
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)??w.colors.black} r g b / 30%)`}};
|
|
646
646
|
position: fixed;
|
|
@@ -651,13 +651,13 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
651
651
|
height: var(--visual-viewport-height);
|
|
652
652
|
|
|
653
653
|
&[data-entering] {
|
|
654
|
-
animation: ${
|
|
654
|
+
animation: ${up} 300ms;
|
|
655
655
|
}
|
|
656
656
|
|
|
657
657
|
&[data-exiting] {
|
|
658
|
-
animation: ${
|
|
658
|
+
animation: ${up} 300ms reverse;
|
|
659
659
|
}
|
|
660
|
-
`;function
|
|
660
|
+
`;function E9(e){return B.jsx(D9,{...e})}const cp=me.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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
665
665
|
to {
|
|
666
666
|
transform: translate(-50%, -50%) scale(1);
|
|
667
667
|
}
|
|
668
|
-
`,
|
|
668
|
+
`,Pl=G.default(M4)`
|
|
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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
680
680
|
top: 50%;
|
|
681
681
|
left: 50%;
|
|
682
682
|
transform: translate(-50%, -50%);
|
|
683
|
-
`,
|
|
684
|
-
[data-entering] ${
|
|
685
|
-
animation: ${
|
|
683
|
+
`,P9=me.createGlobalStyle`
|
|
684
|
+
[data-entering] ${Pl} {
|
|
685
|
+
animation: ${cp} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
686
686
|
}
|
|
687
687
|
|
|
688
|
-
[data-exiting] ${
|
|
689
|
-
animation: ${
|
|
688
|
+
[data-exiting] ${Pl} {
|
|
689
|
+
animation: ${cp} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275) reverse;
|
|
690
690
|
}
|
|
691
|
-
`;function
|
|
691
|
+
`;function S9(e){return B.jsxs(B.Fragment,{children:[B.jsx(P9,{}),B.jsx(Pl,{...e})]})}const T9=me.keyframes`
|
|
692
692
|
from { transform: translateY(-100%); }
|
|
693
693
|
to { transform: translateY(0); }
|
|
694
|
-
`,
|
|
694
|
+
`,A9=me.keyframes`
|
|
695
695
|
from { transform: translateX(100%); }
|
|
696
696
|
to { transform: translateX(0); }
|
|
697
|
-
`,
|
|
697
|
+
`,M9=me.keyframes`
|
|
698
698
|
from { transform: translateY(100%); }
|
|
699
699
|
to { transform: translateY(0); }
|
|
700
|
-
`,
|
|
700
|
+
`,k9=me.keyframes`
|
|
701
701
|
from { transform: translateX(-100%); }
|
|
702
702
|
to { transform: translateX(0); }
|
|
703
|
-
`,
|
|
703
|
+
`,Sl=G.default(M4)`
|
|
704
704
|
padding: 2rem;
|
|
705
705
|
position: fixed;
|
|
706
706
|
outline: none;
|
|
@@ -733,41 +733,41 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){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
|
+
`,R9=me.createGlobalStyle`
|
|
737
|
+
[data-exiting] ${Sl} {
|
|
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
|
+
${Sl} {
|
|
745
745
|
&[data-direction='top'] {
|
|
746
|
-
animation-name: ${
|
|
746
|
+
animation-name: ${T9};
|
|
747
747
|
}
|
|
748
748
|
|
|
749
749
|
&[data-direction='right'] {
|
|
750
|
-
animation-name: ${
|
|
750
|
+
animation-name: ${A9};
|
|
751
751
|
}
|
|
752
752
|
|
|
753
753
|
&[data-direction='bottom'] {
|
|
754
|
-
animation-name: ${
|
|
754
|
+
animation-name: ${M9};
|
|
755
755
|
}
|
|
756
756
|
|
|
757
757
|
&[data-direction='left'] {
|
|
758
|
-
animation-name: ${
|
|
758
|
+
animation-name: ${k9};
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
|
-
`;function
|
|
762
|
+
`;function q4({direction:e,...t}){return B.jsxs(B.Fragment,{children:[B.jsx(R9,{}),B.jsx(Sl,{"data-direction":e,...t})]})}q4.defaultProps={direction:"right"};const F9=G.default(aP)`
|
|
763
763
|
display: flex;
|
|
764
764
|
flex-direction: column;
|
|
765
765
|
width: 100%;
|
|
766
|
-
`,
|
|
766
|
+
`,B9=G.default(Yu)`
|
|
767
767
|
display: flex;
|
|
768
768
|
border-radius: 0.375rem;
|
|
769
769
|
|
|
770
|
-
${
|
|
770
|
+
${St} {
|
|
771
771
|
cursor: pointer;
|
|
772
772
|
padding: 0;
|
|
773
773
|
width: 2.5rem;
|
|
@@ -796,7 +796,7 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
796
796
|
}
|
|
797
797
|
|
|
798
798
|
&[data-hovered] {
|
|
799
|
-
${
|
|
799
|
+
${St}, ${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])??w.colors.slate[400]}};
|
|
801
801
|
}
|
|
802
802
|
}
|
|
@@ -810,7 +810,7 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){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])??w.colors.red[200]}};
|
|
811
811
|
}
|
|
812
812
|
|
|
813
|
-
${
|
|
813
|
+
${St}, ${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])??w.colors.slate[400]}};
|
|
815
815
|
}
|
|
816
816
|
}
|
|
@@ -818,17 +818,17 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){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])??w.colors.slate[100]}};
|
|
820
820
|
|
|
821
|
-
${
|
|
821
|
+
${St} {
|
|
822
822
|
cursor: default;
|
|
823
823
|
}
|
|
824
824
|
|
|
825
|
-
${
|
|
825
|
+
${St}, ${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])??w.colors.slate[200]}};
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
829
|
|
|
830
830
|
&[data-invalid] {
|
|
831
|
-
${
|
|
831
|
+
${St}, ${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])??w.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])??w.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])??w.colors.red[600]}};
|
|
@@ -844,18 +844,18 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
844
844
|
}
|
|
845
845
|
|
|
846
846
|
&[aria-readonly] {
|
|
847
|
-
${
|
|
847
|
+
${St} {
|
|
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])??w.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])??w.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])??w.colors.slate[500]}};
|
|
851
851
|
cursor: default;
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
|
-
`,
|
|
854
|
+
`,I9=B.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:B.jsx("path",{d:"M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),L9=B.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:B.jsx("path",{d:"M12 5V19M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});function Z4({label:e,description:t,errorMessage:n,isInvalid:r,isReadOnly:o,slots:a,...i}){return B.jsxs(F9,{isInvalid:r,...i,children:[B.jsx(H4,{children:e}),B.jsxs(B9,{isInvalid:r,"aria-readonly":o,children:[B.jsx(St,{variant:"outline",slot:"decrement",children:a==null?void 0:a.decrementIcon}),B.jsx(xn,{readOnly:o}),B.jsx(St,{variant:"outline",slot:"increment",children:a==null?void 0:a.incrementIcon})]}),t&&B.jsx(G4,{slot:"description",children:t}),B.jsx(W4,{children:n})]})}Z4.defaultProps={label:void 0,description:void 0,errorMessage:void 0,slots:{decrementIcon:I9,incrementIcon:L9}};const V9=G.default(Yu)`
|
|
855
855
|
display: flex;
|
|
856
856
|
flex-wrap: wrap;
|
|
857
857
|
gap: 0.5rem;
|
|
858
|
-
`,
|
|
858
|
+
`,O9=G.default(Ao)`
|
|
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])??w.colors.slate[300]}};
|
|
861
861
|
font-size: 0.9rem;
|
|
@@ -909,70 +909,70 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){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])??w.colors.slate[400]}};
|
|
911
911
|
}
|
|
912
|
-
`,
|
|
912
|
+
`,N9=G.default(Zt)`
|
|
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])??w.colors.slate[500]}};
|
|
917
|
-
`,
|
|
917
|
+
`,K9=G.default(ki)`
|
|
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])??w.colors.slate[900]}};
|
|
923
|
-
`,
|
|
923
|
+
`,j9=G.default(ki)`
|
|
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])??w.colors.slate[900]}};
|
|
929
|
-
`,
|
|
929
|
+
`,_9=G.default(To)`
|
|
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])??w.colors.red[500]}};
|
|
933
933
|
font-size: 0.8rem;
|
|
934
|
-
`,
|
|
934
|
+
`,z9=G.default(xr)`
|
|
935
935
|
display: flex;
|
|
936
936
|
flex: 1 0 100%;
|
|
937
937
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??w.colors.slate[500]}};
|
|
938
938
|
font-size: 0.8rem;
|
|
939
|
-
`;function
|
|
939
|
+
`;function X4({description:e,errorMessage:t,isDisabled:n=!1,isInvalid:r=!1,isMasked:o=!1,isRequired:a=!0,label:i,length:s=6,name:l,onChange:u,value:c="",type:f="numeric",validationBehavior:p="native",...b}){d.useState(-1);const[h,g]=d.useState(c),[y,$]=d.useState(Array(s).fill("")),C=d.useRef([]);d.useEffect(()=>{C.current=C.current.slice(0,s)},[s]),d.useEffect(()=>{const M=y.join("");g(M),u&&u(M)},[u,y]);const x=M=>{var F,k;const K=M.target.value,v=Number(M.target.getAttribute("data-pin-input-index"));K!==""&&v<y.length-1&&((k=(F=C.current)==null?void 0:F[v+1])==null||k.focus());const V=y.map((I,T)=>T===v?K:I);$(V)},E=M=>{var F,k,I,T;const K=Number(M.currentTarget.getAttribute("data-pin-input-index"));if(M.ctrlKey||M.metaKey)return;const v=["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Control","Alt","Meta","Shift","Tab","Enter","Escape"],V={alpha:/^[a-z]$/i,alphanumeric:/^[a-z0-9]$/i,numeric:/^[0-9]$/i};if(!M.key.match(V[f])&&!v.includes(M.key)&&M.preventDefault(),y[K]===""&&K>0&&M.key==="Backspace"){const L=y.map((j,O)=>O===K-1?"":j);$(L),(k=(F=C.current)==null?void 0:F[K-1])==null||k.focus(),M.preventDefault()}if(y[K]===""&&K<y.length-1&&M.key==="Delete"){const L=y.map((j,O)=>O===K+1?"":j);$(L),(T=(I=C.current)==null?void 0:I[K+1])==null||T.focus(),M.preventDefault()}},P=M=>{var T,L;const K=Number(M.currentTarget.getAttribute("data-pin-input-index"));M.preventDefault();const v=(T=M.clipboardData)==null?void 0:T.getData("text");if(!v)return;const V=v.split("").filter(j=>{switch(f){case"alpha":return/^[a-zA-Z]$/.test(j);case"alphanumeric":return/^[a-z0-9]$/i.test(j);case"numeric":default:return/^[0-9]$/.test(j)}});if(V.length===0)return;const F=[...y];let k=K;for(let j=0;j<V.length&&K+j<s;j++)F[K+j]=V[j],k=K+j;$(F);const I=k+1<s?k+1:s-1;(L=C.current[I])==null||L.focus()};return B.jsxs(V9,{...b,"aria-label":i,children:[B.jsx(N9,{children:i}),y.map((M,K)=>B.jsx(K9,{"aria-label":`Pin Input Digit ${K+1}`,isDisabled:n,isInvalid:r,isRequired:a,validationBehavior:p,children:B.jsx(O9,{onChange:x,onKeyDown:E,onPaste:P,type:o?"password":"text",ref:v=>v?C.current[K]=v:null,value:M,maxLength:1,name:l&&`${l}-${K}`,"data-pin-input-index":K})},`pin-input-${K}`)),B.jsxs(j9,{"aria-label":"Pin Input",isDisabled:n,isInvalid:r,isRequired:a,validationBehavior:p,children:[l&&B.jsx(Ao,{type:"hidden",name:l,value:h}),e&&B.jsx(z9,{slot:"description",children:e}),B.jsx(_9,{children:t})]})]})}X4.defaultProps={description:void 0,errorMessage:void 0,isMasked:!1,isRequired:!0,label:void 0,length:6,name:"",onChange:()=>{},value:"",type:"numeric",validationBehavior:"native"};const U9=G.default(j4)`
|
|
940
940
|
display: flex;
|
|
941
|
-
`,
|
|
941
|
+
`,H9=G.default.div`
|
|
942
942
|
display: flex;
|
|
943
943
|
flex-direction: column;
|
|
944
944
|
align-items: center;
|
|
945
|
-
`,
|
|
945
|
+
`,W9=G.default(Zt)`
|
|
946
946
|
font-size: 0.875rem;
|
|
947
|
-
`,
|
|
947
|
+
`,G9=G.default.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])??w.colors.slate[300]}};
|
|
949
|
-
`,
|
|
949
|
+
`,Y9=G.default.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])??w.colors.slate[800]}};
|
|
951
951
|
transition: stroke-dashoffset 600ms ease-in-out;
|
|
952
|
-
`,
|
|
952
|
+
`,q9=G.default.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])??w.colors.slate[800]}};
|
|
955
|
-
`;function
|
|
955
|
+
`;function Z9({label:e,value:t=0,showValue:n=!0,size:r=60,strokeWidth:o=6,...a}){const i=r/2,s=i-o,l=2*Math.PI*s;return B.jsx(U9,{"aria-label":"Loading...",...a,value:t,children:({percentage:u=0})=>B.jsxs(H9,{children:[B.jsx(W9,{children:e}),B.jsxs("svg",{width:r,height:r,fill:"none",children:[B.jsx(G9,{cx:i,cy:i,r:s,strokeWidth:o}),B.jsx(Y9,{cx:i,cy:i,r:s,strokeWidth:o,strokeDasharray:`${l} ${l}`,strokeDashoffset:(100-u)/100*l,strokeLinecap:"round",transform:`rotate(-90 ${i} ${i})`}),n&&B.jsxs(q9,{x:"50%",y:"50%",alignmentBaseline:"middle",textAnchor:"middle",children:[u,"%"]})]})]})})}const X9=G.default(j4)`
|
|
956
956
|
width: ${({width:e})=>e||"100%"};
|
|
957
957
|
overflow: hidden;
|
|
958
|
-
`,
|
|
958
|
+
`,J9=G.default.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
|
+
`,Q9=G.default(Zt)`
|
|
965
965
|
font-size: 0.875rem;
|
|
966
|
-
`,
|
|
966
|
+
`,eS=G.default.span`
|
|
967
967
|
font-size: 0.875rem;
|
|
968
|
-
`,
|
|
968
|
+
`,tS=G.default.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])??w.colors.slate[300]}};
|
|
975
|
-
`,
|
|
975
|
+
`,nS=G.default.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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
989
989
|
transform: translateX(250px);
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
|
-
`;function
|
|
992
|
+
`;function rS({label:e,isIndeterminate:t,showValue:n=!0,width:r,...o}){return B.jsx(X9,{...o,width:r,children:({percentage:a,valueText:i})=>B.jsxs(B.Fragment,{children:[B.jsxs(J9,{children:[B.jsx(Q9,{children:e}),n&&B.jsx(eS,{children:i})]}),B.jsx(tS,{children:B.jsx(nS,{isIndeterminate:t,width:typeof a=="number"?`${a}%`:""})})]})})}const oS=G.default(BE)`
|
|
993
993
|
display: flex;
|
|
994
994
|
flex-direction: column;
|
|
995
995
|
width: 100%;
|
|
996
|
-
`,
|
|
996
|
+
`,aS=G.default.div`
|
|
997
997
|
display: flex;
|
|
998
998
|
position: relative;
|
|
999
999
|
width: 100%;
|
|
1000
|
-
`,
|
|
1000
|
+
`,iS=Ln(G.default(A4)`
|
|
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 <`+j+">.")}return k}function Dc(m,k){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])??w.colors.slate[300]}};
|
|
1008
|
-
`),
|
|
1008
|
+
`),sS=G.default(Ao).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])??w.colors.slate[300]}};
|
|
1011
1011
|
font-size: 0.9rem;
|
|
@@ -1034,7 +1034,7 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1034
1034
|
background: ${({isLoading:e,theme:t})=>{var n,r,o;return e?((n=t==null?void 0:t.colors)==null?void 0:n.white)??w.colors.white:((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[100])??w.colors.slate[100]}};
|
|
1035
1035
|
border: 1px solid
|
|
1036
1036
|
${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??w.colors.slate[300]}};
|
|
1037
|
-
color: ${({isLoading:e,theme:t})=>{var n,r,o,
|
|
1037
|
+
color: ${({isLoading:e,theme:t})=>{var n,r,o,a;return e?((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[900])??w.colors.slate[900]:((a=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:a[500])??w.colors.slate[500]}};
|
|
1038
1038
|
}
|
|
1039
1039
|
|
|
1040
1040
|
&[data-invalid] {
|
|
@@ -1063,43 +1063,43 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){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])??w.colors.slate[400]}};
|
|
1065
1065
|
}
|
|
1066
|
-
`,
|
|
1066
|
+
`,lS=G.default.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
|
-
stroke: ${({isDisabled:e,isInvalid:t,theme:n})=>{var r,o,i,
|
|
1071
|
+
stroke: ${({isDisabled:e,isInvalid:t,theme:n})=>{var r,o,a,i,s,l;return t?((o=(r=n==null?void 0:n.colors)==null?void 0:r.red)==null?void 0:o[500])??w.colors.red[500]:e?((i=(a=n==null?void 0:n.colors)==null?void 0:a.slate)==null?void 0:i[400])??w.colors.slate[400]:((l=(s=n==null?void 0:n.colors)==null?void 0:s.slate)==null?void 0:l[900])??w.colors.slate[900]}};
|
|
1072
1072
|
}
|
|
1073
|
-
`,
|
|
1073
|
+
`,uS=G.default.div`
|
|
1074
1074
|
position: absolute;
|
|
1075
1075
|
display: block;
|
|
1076
1076
|
top: 0.5rem;
|
|
1077
1077
|
right: 0.5rem;
|
|
1078
|
-
`,
|
|
1078
|
+
`,cS=G.default(C4)`
|
|
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
|
+
`,dS=G.default(Zt)`
|
|
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])??w.colors.slate[500]}};
|
|
1089
|
-
`;
|
|
1089
|
+
`;G.default(ki)`
|
|
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])??w.colors.slate[900]}};
|
|
1094
|
-
`;const
|
|
1094
|
+
`;const fS=G.default(To)`
|
|
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])??w.colors.red[500]}};
|
|
1097
1097
|
font-size: 0.8rem;
|
|
1098
|
-
`,
|
|
1098
|
+
`,pS=G.default(xr)`
|
|
1099
1099
|
display: flex;
|
|
1100
1100
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??w.colors.slate[500]}};
|
|
1101
1101
|
font-size: 0.8rem;
|
|
1102
|
-
`,
|
|
1102
|
+
`,bS=G.default(xE)`
|
|
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 <`+j+">.")}return k}function Dc(m,k){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])??w.colors.slate[500]}};
|
|
1144
1144
|
}
|
|
1145
|
-
`;function
|
|
1145
|
+
`;function hS(e){return B.jsx(bS,{...e})}const mS=me.keyframes`
|
|
1146
1146
|
100% {
|
|
1147
1147
|
transform: rotate(360deg);
|
|
1148
1148
|
}
|
|
1149
|
-
`,
|
|
1149
|
+
`,gS=me.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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1159
1159
|
stroke-dasharray: 89, 200;
|
|
1160
1160
|
stroke-dashoffset: -124px;
|
|
1161
1161
|
}
|
|
1162
|
-
`,
|
|
1162
|
+
`,vS=G.default.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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1168
1168
|
display: block;
|
|
1169
1169
|
padding-top: 100%;
|
|
1170
1170
|
}
|
|
1171
|
-
`,
|
|
1172
|
-
animation: ${
|
|
1171
|
+
`,yS=G.default.svg`
|
|
1172
|
+
animation: ${mS} 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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1179
1179
|
left: 0;
|
|
1180
1180
|
right: 0;
|
|
1181
1181
|
margin: auto;
|
|
1182
|
-
|
|
1182
|
+
`,$S=G.default.circle`
|
|
1183
1183
|
stroke: ${({stroke:e})=>e};
|
|
1184
1184
|
stroke-dasharray: 1, 200;
|
|
1185
1185
|
stroke-dashoffset: 0;
|
|
1186
|
-
animation: ${
|
|
1187
|
-
`;function
|
|
1186
|
+
animation: ${gS} 1.5s ease-in-out infinite;
|
|
1187
|
+
`;function xS({width:e,stroke:t,strokeLinecap:n="round",strokeWidth:r=5,...o}){return B.jsx(vS,{width:e,...o,children:B.jsx(yS,{viewBox:"25 25 50 50",children:B.jsx($S,{className:"path",cx:"50",cy:"50",fill:"none",r:"20",stroke:t,strokeLinecap:n,strokeMiterlimit:"10",strokeWidth:r})})})}const wS=me.keyframes`
|
|
1188
1188
|
0% {
|
|
1189
1189
|
transform: scale(1);
|
|
1190
1190
|
opacity: 1;
|
|
@@ -1197,19 +1197,19 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1197
1197
|
transform: scale(1);
|
|
1198
1198
|
opacity: 1;
|
|
1199
1199
|
}
|
|
1200
|
-
`,
|
|
1200
|
+
`,ks=G.default.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])??w.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: ${wS}
|
|
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 J4(){return B.jsxs("span",{children:[B.jsx(ks,{speedMultiplier:1,i:1}),B.jsx(ks,{speedMultiplier:1,i:2}),B.jsx(ks,{speedMultiplier:1,i:3})]})}function Q4({label:e,description:t,errorMessage:n,children:r,placeholder:o,key:a,isLoading:i,...s}){const[l,u]=d.useState("unmounted"),c=d.useRef(null),[f,p]=d.useState(!1);return B.jsxs(oS,{ref:c,onOpenChange:()=>{u(l==="visible"?"hidden":"visible"),p(!f)},isDisabled:s.isDisabled||i,...s,children:[B.jsx(dS,{children:e}),B.jsxs(aS,{children:[B.jsx(sS,{placeholder:o,isLoading:i??!1}),i?B.jsx(uS,{children:B.jsx(J4,{})}):B.jsx(cS,{children:B.jsx(lS,{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:B.jsx("path",{d:"M6 9L12 15L18 9",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t&&B.jsx(pS,{slot:"description",children:t}),B.jsx(fS,{children:n}),B.jsx(iS,{isOpen:f,style:{width:c.current?c.current.getBoundingClientRect().width:"14rem"},isExiting:l==="hidden",onAnimationComplete:b=>{u(h=>b==="hidden"&&h==="hidden"?"unmounted":h)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:l,children:B.jsx(gE,{style:{maxHeight:"20rem",overflowY:"scroll"},children:r})},a)]})}Q4.defaultProps={label:void 0,description:void 0,errorMessage:void 0,placeholder:"",key:void 0,isLoading:!1};const CS=G.default(cP)`
|
|
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])??w.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])??w.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])??w.colors.slate[300]}};
|
|
@@ -1235,19 +1235,19 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1235
1235
|
height: 100%;
|
|
1236
1236
|
width: 2rem;
|
|
1237
1237
|
}
|
|
1238
|
-
`,
|
|
1238
|
+
`,DS=G.default(Zt)`
|
|
1239
1239
|
display: flex;
|
|
1240
1240
|
flex: 1 1 0;
|
|
1241
1241
|
font-size: 0.8rem;
|
|
1242
1242
|
color: var(--label-color);
|
|
1243
|
-
`,
|
|
1243
|
+
`,ES=G.default(fP)`
|
|
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
|
+
`,Tl=G.default(mP)`
|
|
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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1265
1265
|
&[data-dragging] {
|
|
1266
1266
|
background-color: var(--thumb-background-dragging);
|
|
1267
1267
|
}
|
|
1268
|
-
`,
|
|
1268
|
+
`,PS=G.default(bP)`
|
|
1269
1269
|
width: 100%;
|
|
1270
1270
|
transition: all ease 0.25s;
|
|
1271
1271
|
|
|
@@ -1288,7 +1288,7 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1288
1288
|
transform: translateY(-50%);
|
|
1289
1289
|
}
|
|
1290
1290
|
|
|
1291
|
-
${
|
|
1291
|
+
${Tl} {
|
|
1292
1292
|
top: 50%;
|
|
1293
1293
|
}
|
|
1294
1294
|
}
|
|
@@ -1304,11 +1304,11 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1304
1304
|
transform: translate(-50%);
|
|
1305
1305
|
}
|
|
1306
1306
|
|
|
1307
|
-
${
|
|
1307
|
+
${Tl} {
|
|
1308
1308
|
left: 50%;
|
|
1309
1309
|
}
|
|
1310
1310
|
}
|
|
1311
|
-
`;function
|
|
1311
|
+
`;function e1({label:e,showOutput:t=!0,thumbLabels:n,...r}){return B.jsxs(CS,{...r,children:[B.jsx(DS,{children:e}),t&&B.jsx(ES,{children:({state:o})=>o.values.map((a,i)=>o.getThumbValueLabel(i)).join(" – ")}),B.jsx(PS,{children:({state:o})=>o.values.map((a,i)=>B.jsx(Tl,{index:i,"aria-label":n==null?void 0:n[i]},i))})]})}e1.defaultProps={label:void 0,showOutput:!0,thumbLabels:void 0};const Lt=G.default.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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1327
1327
|
border-radius: 1.25rem;
|
|
1328
1328
|
transition: all cubic-bezier(0.4, 0, 0.2, 1) 200ms;
|
|
1329
1329
|
}
|
|
1330
|
-
`,
|
|
1330
|
+
`,SS=G.default(yP)`
|
|
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 <`+j+">.")}return k}function Dc(m,k){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])??w.colors.slate[500]}};
|
|
1336
1336
|
forced-color-adjust: none;
|
|
1337
1337
|
|
|
1338
|
-
&[data-hovered] ${
|
|
1338
|
+
&[data-hovered] ${Lt} {
|
|
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])??w.colors.slate[400]}};
|
|
1340
1340
|
}
|
|
1341
1341
|
|
|
1342
|
-
&[data-disabled] ${
|
|
1342
|
+
&[data-disabled] ${Lt} {
|
|
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])??w.colors.slate[100]}};
|
|
1344
1344
|
}
|
|
1345
1345
|
|
|
1346
|
-
&[data-pressed] ${
|
|
1346
|
+
&[data-pressed] ${Lt} {
|
|
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])??w.colors.slate[400]}};
|
|
1348
1348
|
|
|
1349
1349
|
&:before {
|
|
@@ -1351,14 +1351,14 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
1353
|
|
|
1354
|
-
&[data-focused] ${
|
|
1354
|
+
&[data-focused] ${Lt} {
|
|
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])??w.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])??w.colors.slate[200]}};
|
|
1358
1358
|
}
|
|
1359
1359
|
|
|
1360
1360
|
&[data-selected] {
|
|
1361
|
-
${
|
|
1361
|
+
${Lt} {
|
|
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])??w.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])??w.colors.slate[300]}};
|
|
1364
1364
|
|
|
@@ -1368,21 +1368,21 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
1370
1370
|
|
|
1371
|
-
&[data-hovered] ${
|
|
1371
|
+
&[data-hovered] ${Lt} {
|
|
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])??w.colors.slate[400]}};
|
|
1373
1373
|
}
|
|
1374
|
-
&[data-focused] ${
|
|
1374
|
+
&[data-focused] ${Lt} {
|
|
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])??w.colors.slate[400]}};
|
|
1376
1376
|
}
|
|
1377
1377
|
|
|
1378
1378
|
&[data-pressed] {
|
|
1379
|
-
${
|
|
1379
|
+
${Lt} {
|
|
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])??w.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])??w.colors.slate[400]}};
|
|
1382
1382
|
}
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
1385
|
-
`;function
|
|
1385
|
+
`;function TS({children:e,...t}){return B.jsxs(SS,{...t,children:[B.jsx(Lt,{}),e]})}const AS=G.default(wP)`
|
|
1386
1386
|
width: 100%;
|
|
1387
1387
|
display: flex;
|
|
1388
1388
|
flex-direction: column;
|
|
@@ -1391,7 +1391,7 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1391
1391
|
&[data-orientation='vertical'] {
|
|
1392
1392
|
flex-direction: row;
|
|
1393
1393
|
}
|
|
1394
|
-
`,
|
|
1394
|
+
`,MS=G.default(EP)`
|
|
1395
1395
|
width: 100%;
|
|
1396
1396
|
position: relative;
|
|
1397
1397
|
display: flex;
|
|
@@ -1405,16 +1405,16 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1405
1405
|
justify-content: flex-start;
|
|
1406
1406
|
}
|
|
1407
1407
|
|
|
1408
|
-
${({variant:e,theme:t})=>{var n,r,o,i,
|
|
1408
|
+
${({variant:e,theme:t})=>{var n,r,o,a,i,s,l,u;switch(e){case"solid":return me.css`
|
|
1409
1409
|
background-color: ${((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[200])??w.colors.slate[200]};
|
|
1410
1410
|
border-radius: 0.75rem;
|
|
1411
1411
|
padding: 0.25rem;
|
|
1412
|
-
`;case"outline":return
|
|
1412
|
+
`;case"outline":return me.css`
|
|
1413
1413
|
border: 2px solid
|
|
1414
|
-
${((
|
|
1414
|
+
${((a=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:a[200])??w.colors.slate[200]};
|
|
1415
1415
|
border-radius: 0.75rem;
|
|
1416
1416
|
padding: 0.25rem;
|
|
1417
|
-
`;case"underline":return
|
|
1417
|
+
`;case"underline":return me.css`
|
|
1418
1418
|
&[data-orientation='vertical'] {
|
|
1419
1419
|
&:before {
|
|
1420
1420
|
display: block;
|
|
@@ -1424,7 +1424,7 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1424
1424
|
bottom: 0;
|
|
1425
1425
|
content: '';
|
|
1426
1426
|
width: 1px;
|
|
1427
|
-
background-color: ${((s=(
|
|
1427
|
+
background-color: ${((s=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:s[200])??w.colors.slate[200]};
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
1430
|
&[data-orientation='horizontal'] {
|
|
@@ -1436,11 +1436,11 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1436
1436
|
right: 0;
|
|
1437
1437
|
content: '';
|
|
1438
1438
|
height: 1px;
|
|
1439
|
-
background-color: ${((
|
|
1439
|
+
background-color: ${((u=(l=t==null?void 0:t.colors)==null?void 0:l.slate)==null?void 0:u[200])??w.colors.slate[200]};
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
1442
|
`;default:return null}}}
|
|
1443
|
-
`,
|
|
1443
|
+
`,t1=G.default(SP)`
|
|
1444
1444
|
position: relative;
|
|
1445
1445
|
z-index: 3;
|
|
1446
1446
|
display: flex;
|
|
@@ -1453,10 +1453,10 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1453
1453
|
forced-color-adjust: none;
|
|
1454
1454
|
transition: color 0.3s ease;
|
|
1455
1455
|
|
|
1456
|
-
color: ${({variant:e,theme:t})=>{var n,r,o,
|
|
1456
|
+
color: ${({variant:e,theme:t})=>{var n,r,o,a;switch(e){case"underline":case"enclosed":case"outline":return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[800])??w.colors.slate[800];case"solid":return((a=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:a[400])??w.colors.slate[400];default:return null}}};
|
|
1457
1457
|
|
|
1458
1458
|
&[data-selected] {
|
|
1459
|
-
color: ${({variant:e,theme:t})=>{var n,r,o,
|
|
1459
|
+
color: ${({variant:e,theme:t})=>{var n,r,o,a;switch(e){case"underline":case"outline":return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[800])??w.colors.slate[800];case"solid":case"enclosed":return((a=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:a[100])??w.colors.slate[100];default:return null}}};
|
|
1460
1460
|
}
|
|
1461
1461
|
|
|
1462
1462
|
&[data-selected],
|
|
@@ -1473,21 +1473,21 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1473
1473
|
&[data-disabled] {
|
|
1474
1474
|
opacity: 0.5;
|
|
1475
1475
|
}
|
|
1476
|
-
`,
|
|
1476
|
+
`,kS=G.default(Ln.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,
|
|
1480
|
+
${({orientation:e,theme:t,variant:n})=>{var r,o,a,i,s,l,u,c,f,p,b;switch(n){case"solid":return me.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])??w.colors.slate[600]};
|
|
1484
1484
|
mix-blend-mode: color;
|
|
1485
|
-
`;case"outline":return
|
|
1485
|
+
`;case"outline":return me.css`
|
|
1486
1486
|
inset: 0px;
|
|
1487
1487
|
border: 2px solid
|
|
1488
|
-
${((
|
|
1488
|
+
${((i=(a=t==null?void 0:t.colors)==null?void 0:a.slate)==null?void 0:i[800])??w.colors.slate[800]};
|
|
1489
1489
|
border-radius: 0.5rem;
|
|
1490
|
-
`;case"underline":return e==="horizontal"?
|
|
1490
|
+
`;case"underline":return e==="horizontal"?me.css`
|
|
1491
1491
|
bottom: 0;
|
|
1492
1492
|
left: 0;
|
|
1493
1493
|
width: 100%;
|
|
@@ -1495,15 +1495,15 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){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])??w.colors.slate[800]};
|
|
1497
1497
|
mix-blend-mode: color;
|
|
1498
|
-
`:
|
|
1498
|
+
`:me.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=(u=t==null?void 0:t.colors)==null?void 0:u.slate)==null?void 0:c[800])??w.colors.slate[800]};
|
|
1505
1505
|
mix-blend-mode: color;
|
|
1506
|
-
`;case"enclosed":return
|
|
1506
|
+
`;case"enclosed":return me.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])??w.colors.slate[800]};
|
|
@@ -1512,16 +1512,16 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1512
1512
|
border-radius: 0.5rem 0.5rem 0 0;
|
|
1513
1513
|
background-color: ${((b=t==null?void 0:t.colors)==null?void 0:b.white)??w.colors.white};
|
|
1514
1514
|
mix-blend-mode: difference;
|
|
1515
|
-
`;case"base":default:return
|
|
1515
|
+
`;case"base":default:return me.css`
|
|
1516
1516
|
display: none;
|
|
1517
1517
|
`}}}
|
|
1518
|
-
`,
|
|
1518
|
+
`,RS=G.default(MP)`
|
|
1519
1519
|
display: flex;
|
|
1520
1520
|
flex-grow: 1;
|
|
1521
1521
|
padding: 1rem 0;
|
|
1522
|
-
`,
|
|
1522
|
+
`,Ri=d.createContext("horizontal");function FS({children:e,...t}){return B.jsx(Ri.Provider,{value:t.orientation??"horizontal",children:B.jsx(AS,{...t,children:e})})}function BS({variant:e="base",...t}){const n=d.useContext(Ri);return B.jsx(t1,{orientation:n,variant:e,...t,children:({isSelected:r,isFocusVisible:o})=>B.jsxs(B.Fragment,{children:[t.children,(o||r)&&B.jsx(kS,{orientation:n,layoutId:e,variant:e,transition:{type:"spring",bounce:.2,duration:.75}})]})})}function IS({items:e,children:t,variant:n="base",...r}){const o=d.useContext(Ri);return B.jsx(MS,{items:e,variant:n,...r,children:t||(a=>B.jsx(t1,{orientation:o,children:a.title}))})}function LS({children:e,...t}){return B.jsx(RS,{...t,children:e})}const VS=G.default(NE)`
|
|
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])??w.colors.slate[900]}};
|
|
1524
|
-
`,
|
|
1524
|
+
`,OS=G.default(F4)`
|
|
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 <`+j+">.")}return k}function Dc(m,k){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])??w.colors.red[200]}};
|
|
1573
1573
|
}
|
|
1574
1574
|
}
|
|
1575
|
-
`,
|
|
1575
|
+
`,NS=G.default(B4)`
|
|
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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1622
1622
|
color: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??w.colors.white}};
|
|
1623
1623
|
}
|
|
1624
1624
|
}
|
|
1625
|
-
`,
|
|
1625
|
+
`,KS=G.default(Zt)`
|
|
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])??w.colors.slate[500]}};
|
|
1629
|
-
`,
|
|
1629
|
+
`,jS=G.default(To)`
|
|
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])??w.colors.red[500]}};
|
|
1632
1632
|
font-size: 0.8rem;
|
|
1633
|
-
`,
|
|
1633
|
+
`,_S=G.default(xr)`
|
|
1634
1634
|
display: flex;
|
|
1635
1635
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??w.colors.slate[500]}};
|
|
1636
1636
|
font-size: 0.8rem;
|
|
1637
|
-
`;function
|
|
1637
|
+
`;function n1({label:e,description:t,errorMessage:n,...r}){return B.jsxs(VS,{...r,children:[B.jsx(KS,{children:e}),B.jsx(OS,{children:o=>B.jsx(NS,{segment:o})}),B.jsx(_S,{slot:"description",children:t}),B.jsx(jS,{children:n})]})}n1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const zS=G.default(LP)`
|
|
1638
1638
|
display: flex;
|
|
1639
1639
|
align-items: center;
|
|
1640
1640
|
font-size: 0.9rem;
|
|
@@ -1653,7 +1653,7 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1653
1653
|
height: ${({size:e})=>{switch(e){case"sm":return"2rem";case"lg":return"3rem";case"md":default:return"2.5rem"}}};
|
|
1654
1654
|
|
|
1655
1655
|
background: ${({variant:e,theme:t})=>{var n,r;switch(e){case"ghost":case"outline":return"transparent";case"solid":default:return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[200])??w.colors.slate[200]}}};
|
|
1656
|
-
border-color: ${({variant:e,theme:t})=>{var n,r,o,
|
|
1656
|
+
border-color: ${({variant:e,theme:t})=>{var n,r,o,a;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[300])??w.colors.slate[300];case"solid":default:return((a=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:a[200])??w.colors.slate[200]}}};
|
|
1657
1657
|
|
|
1658
1658
|
&[data-selected] {
|
|
1659
1659
|
background-color: ${({variant:e,theme:t})=>{var n,r;switch(e){case"ghost":case"outline":return"transparent";case"solid":default:return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[800])??w.colors.slate[800]}}};
|
|
@@ -1665,10 +1665,10 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1665
1665
|
cursor: default;
|
|
1666
1666
|
|
|
1667
1667
|
background-color: ${({variant:e,theme:t})=>{var n,r;switch(e){case"ghost":case"outline":return"transparent";case"solid":default:return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[100])??w.colors.slate[100]}}};
|
|
1668
|
-
border-color: ${({variant:e,theme:t})=>{var n,r,o,
|
|
1669
|
-
color: ${({variant:e,theme:t})=>{var n,r,o,
|
|
1668
|
+
border-color: ${({variant:e,theme:t})=>{var n,r,o,a;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])??w.colors.slate[200];case"solid":default:return((a=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:a[100])??w.colors.slate[100]}}};
|
|
1669
|
+
color: ${({variant:e,theme:t})=>{var n,r,o,a;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])??w.colors.slate[500];case"solid":default:return((a=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:a[400])??w.colors.slate[400]}}};
|
|
1670
1670
|
}
|
|
1671
|
-
`;function
|
|
1671
|
+
`;function US({children:e,size:t="md",variant:n="solid",...r}){return B.jsx(zS,{...r,size:t,variant:n,children:e})}var HS=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])||{}},WS=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],dp=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e};function GS(e){const[t,n]=Pb(e,Uc.variantKeys),{ref:r,as:o,isOpen:a,content:i,children:s,defaultOpen:l,onOpenChange:u,isDisabled:c,trigger:f,shouldFlip:p=!0,containerPadding:b=12,placement:h="top",delay:g=0,closeDelay:y=500,showArrow:$=!1,offset:C=7,crossOffset:x=0,isDismissable:E,shouldCloseOnBlur:P=!0,portalContainer:M,isKeyboardDismissDisabled:K=!1,updatePositionDeps:v=[],shouldCloseOnInteractOutside:V,className:F,onClose:k,motionProps:I,classNames:T,...L}=t,j=o||"div",O=T8({delay:g,closeDelay:y,isDisabled:c,defaultOpen:l,isOpen:a,onOpenChange:Ve=>{u==null||u(Ve),Ve||k==null||k()}}),S=d.useRef(null),W=d.useRef(null),Y=d.useId(),U=O.isOpen&&!c;d.useImperativeHandle(r,()=>y$(W));const{triggerProps:D,tooltipProps:N}=t8({isDisabled:c,trigger:f},O,S),{tooltipProps:q}=e8({isOpen:U,...Q(t,N)},O),{overlayProps:J,placement:ee,updatePosition:re}=$b({isOpen:U,targetRef:S,placement:WS(h),overlayRef:W,offset:$?C+3:C,crossOffset:x,shouldFlip:p,containerPadding:b});o0(()=>{v.length&&re()},v);const{overlayProps:z}=iu({isOpen:U,onClose:O.close,isDismissable:E,shouldCloseOnBlur:P,isKeyboardDismissDisabled:K,shouldCloseOnInteractOutside:V},W),Z=d.useMemo(()=>{var Ve,We,Dt;return Uc({...n,radius:(Ve=e==null?void 0:e.radius)!=null?Ve:"md",size:(We=e==null?void 0:e.size)!=null?We:"md",shadow:(Dt=e==null?void 0:e.shadow)!=null?Dt:"sm"})},[...Object.values(n),e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),te=d.useCallback((Ve={},We=null)=>({...Q(D,Ve),ref:E$(We,S),"aria-describedby":U?Y:void 0}),[D,U,Y,O]),se=d.useCallback(()=>({ref:W,"data-slot":"base","data-open":Tt(U),"data-arrow":Tt($),"data-disabled":Tt(c),"data-placement":dp(ee,h),...Q(q,z,L),style:Q(J.style,L.style,t.style),className:Z.base({class:T==null?void 0:T.base}),id:Y}),[Z,U,$,c,ee,h,q,z,L,J,t,Y]),oe=d.useCallback(()=>({"data-slot":"content","data-open":Tt(U),"data-arrow":Tt($),"data-disabled":Tt(c),"data-placement":dp(ee,h),className:Z.content({class:eo(T==null?void 0:T.content,F)})}),[Z,U,$,c,ee,h,T]);return{Component:j,content:i,children:s,isOpen:U,triggerRef:S,showArrow:$,portalContainer:M,placement:h,disableAnimation:e==null?void 0:e.disableAnimation,isDisabled:c,motionProps:I,getTooltipContentProps:oe,getTriggerProps:te,getTooltipProps:se}}var Gn={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]},YS={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.7)",transition:{type:"easeOut",bounce:0,duration:.18}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:Gn.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:Gn.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:Gn.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:Gn.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:Gn.ease}},exit:{opacity:0,transition:{duration:.3,ease:Gn.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}},r1=fi((e,t)=>{const{Component:n,children:r,content:o,isOpen:a,portalContainer:i,placement:s,disableAnimation:l,motionProps:u,getTriggerProps:c,getTooltipProps:f,getTooltipContentProps:p}=GS({...e,ref:t});let b;try{const x=d.Children.only(r);b=d.cloneElement(x,c(x.props,x.ref))}catch{b=B.jsx("span",{}),x$("Tooltip must have only one child node. Please, check your code.")}const{ref:h,id:g,style:y,...$}=f(),C=B.jsx("div",{ref:h,id:g,style:y,children:B.jsx(Ln.div,{animate:"enter",exit:"exit",initial:"exit",variants:YS.scaleSpring,...Q(u,$),style:{...HS(s)},children:B.jsx(n,{...p(),children:o})})});return B.jsxs(B.Fragment,{children:[b,l&&a?B.jsx(Id,{portalContainer:i,children:B.jsx("div",{ref:h,id:g,style:y,...$,children:B.jsx(n,{...p(),children:o})})}):B.jsx(qh,{children:a?B.jsx(Id,{portalContainer:i,children:C}):null})]})});r1.displayName="NextUI.Tooltip";var qS=r1;const ZS=G.default(qS).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 <`+j+">.")}return k}function Dc(m,k){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 YS({children:e,...t}){return F.jsx(GS,{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 t1(e,t=[]){let n=[];function r(i,a){const s=u.createContext(a),l=n.length;n=[...n,a];function c(f){const{scope:p,children:b,...h}=f,g=(p==null?void 0:p[e][l])||s,y=u.useMemo(()=>h,Object.values(h));return u.createElement(g.Provider,{value:y},b)}function d(f,p){const b=(p==null?void 0:p[e][l])||s,h=u.useContext(b);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,d]}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,qS(o,...t)]}function qS(...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 u.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Oe(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 ZS(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ec(...e){return t=>e.forEach(n=>ZS(n,t))}function Gt(...e){return u.useCallback(ec(...e),e)}const Qi=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),i=o.find(JS);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,Te({},r,{ref:t}),u.isValidElement(a)?u.cloneElement(a,void 0,s):null)}return u.createElement(Sl,Te({},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,{...QS(r,n.props),ref:t?ec(t,n.ref):n.ref}):u.Children.count(n)>1?u.Children.only(null):null});Sl.displayName="SlotClone";const XS=({children:e})=>u.createElement(u.Fragment,null,e);function JS(e){return u.isValidElement(e)&&e.type===XS}function QS(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 eT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],mt=eT.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,Te({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Tl(e,t){e&&Yt.flushSync(()=>e.dispatchEvent(t))}function ft(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 tT({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=nT({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=ft(n),l=u.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 nT({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),i=ft(t);return u.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const rT=u.createContext(void 0);function oT(e){const t=u.useContext(rT);return e||t||"ltr"}const fr=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{};function iT(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=aT(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 aT(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),i=u.useRef("none"),a=e?"mounted":"unmounted",[s,l]=iT(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const c=ci(r.current);i.current=s==="mounted"?c:"none"},[s]),fr(()=>{const c=r.current,d=o.current;if(d!==e){const p=i.current,b=ci(c);e?l("MOUNT"):b==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&p!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),fr(()=>{if(t){const c=f=>{const b=ci(r.current).includes(f.animationName);f.target===t&&b&&Yt.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===t&&(i.current=ci(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:u.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function ci(e){return(e==null?void 0:e.animationName)||"none"}const sT=Le["useId".toString()]||(()=>{});let lT=0;function n1(e){const[t,n]=Le.useState(sT());return fr(()=>{e||n(r=>r??String(lT++))},[e]),e||(t?`radix-${t}`:"")}function r1(e){const t=e+"CollectionProvider",[n,r]=t1(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=b=>{const{scope:h,children:g}=b,y=u.useRef(null),$=u.useRef(new Map).current;return u.createElement(o,{scope:h,itemMap:$,collectionRef:y},g)},s=e+"CollectionSlot",l=u.forwardRef((b,h)=>{const{scope:g,children:y}=b,$=i(s,g),C=Gt(h,$.collectionRef);return u.createElement(Qi,{ref:C},y)}),c=e+"CollectionItemSlot",d="data-radix-collection-item",f=u.forwardRef((b,h)=>{const{scope:g,children:y,...$}=b,C=u.useRef(null),x=Gt(h,C),E=i(c,g);return u.useEffect(()=>(E.itemMap.set(C,{ref:C,...$}),()=>void E.itemMap.delete(C))),u.createElement(Qi,{[d]:"",ref:x},y)});function p(b){const h=i(e+"CollectionConsumer",b);return u.useCallback(()=>{const y=h.collectionRef.current;if(!y)return[];const $=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((E,P)=>$.indexOf(E.ref.current)-$.indexOf(P.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},p,r]}function uT(e,t=globalThis==null?void 0:globalThis.document){const n=ft(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",cT="dismissableLayer.pointerDownOutside",dT="dismissableLayer.focusOutside";let cp;const fT=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pT=u.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,d=u.useContext(fT),[f,p]=u.useState(null),b=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,h]=u.useState({}),g=Gt(t,v=>p(v)),y=Array.from(d.layers),[$]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),C=y.indexOf($),x=f?y.indexOf(f):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,P=x>=C,A=bT(v=>{const L=v.target,R=[...d.branches].some(M=>M.contains(L));!P||R||(i==null||i(v),s==null||s(v),v.defaultPrevented||l==null||l())},b),N=hT(v=>{const L=v.target;[...d.branches].some(M=>M.contains(L))||(a==null||a(v),s==null||s(v),v.defaultPrevented||l==null||l())},b);return uT(v=>{x===d.layers.size-1&&(o==null||o(v),!v.defaultPrevented&&l&&(v.preventDefault(),l()))},b),u.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(cp=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),dp(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=cp)}},[f,b,r,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),dp())},[f,d]),u.useEffect(()=>{const v=()=>h({});return document.addEventListener(Al,v),()=>document.removeEventListener(Al,v)},[]),u.createElement(mt.div,Te({},c,{ref:g,style:{pointerEvents:E?P?"auto":"none":void 0,...e.style},onFocusCapture:Oe(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Oe(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Oe(e.onPointerDownCapture,A.onPointerDownCapture)}))});function bT(e,t=globalThis==null?void 0:globalThis.document){const n=ft(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let c=function(){o1(cT,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 hT(e,t=globalThis==null?void 0:globalThis.document){const n=ft(e),r=u.useRef(!1);return u.useEffect(()=>{const o=i=>{i.target&&!r.current&&o1(dT,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 dp(){const e=new CustomEvent(Al);document.dispatchEvent(e)}function o1(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 mT(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 gT=u.forwardRef((e,t)=>u.createElement(mt.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}}))),vT=gT,Ro="NavigationMenu",[tc,i1,yT]=r1(Ro),[Ml,$T,xT]=r1(Ro),[nc,yA]=t1(Ro,[yT,xT]),[wT,wt]=nc(Ro),[CT,DT]=nc(Ro),ET=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:c,...d}=e,[f,p]=u.useState(null),b=Gt(t,L=>p(L)),h=oT(c),g=u.useRef(0),y=u.useRef(0),$=u.useRef(0),[C,x]=u.useState(!0),[E="",P]=tT({prop:r,onChange:L=>{const R=L!=="",M=s>0;R?(window.clearTimeout($.current),M&&x(!1)):(window.clearTimeout($.current),$.current=window.setTimeout(()=>x(!0),s)),o==null||o(L)},defaultProp:i}),A=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(PT,{scope:n,isRootMenu:!0,value:E,dir:h,orientation:l,rootNavigationMenu:f,onTriggerEnter:L=>{window.clearTimeout(g.current),C?v(L):N(L)},onTriggerLeave:()=>{window.clearTimeout(g.current),A()},onContentEnter:()=>window.clearTimeout(y.current),onContentLeave:A,onItemSelect:L=>{P(R=>R===L?"":L)},onItemDismiss:()=>P("")},u.createElement(mt.nav,Te({"aria-label":"Main","data-orientation":l,dir:h},d,{ref:b})))}),PT=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:s,onItemSelect:l,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:f,onContentEnter:p,onContentLeave:b}=e,[h,g]=u.useState(null),[y,$]=u.useState(new Map),[C,x]=u.useState(null);return u.createElement(wT,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:mT(s),baseId:n1(),dir:o,orientation:i,viewport:h,onViewportChange:g,indicatorTrack:C,onIndicatorTrackChange:x,onTriggerEnter:ft(d),onTriggerLeave:ft(f),onContentEnter:ft(p),onContentLeave:ft(b),onItemSelect:ft(l),onItemDismiss:ft(c),onViewportContentChange:u.useCallback((E,P)=>{$(A=>(A.set(E,P),new Map(A)))},[]),onViewportContentRemove:u.useCallback(E=>{$(P=>P.has(E)?(P.delete(E),new Map(P)):P)},[])},u.createElement(tc.Provider,{scope:t},u.createElement(CT,{scope:t,items:y},a)))},ST="NavigationMenuList",TT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=wt(ST,n),i=u.createElement(mt.ul,Te({"data-orientation":o.orientation},r,{ref:t}));return u.createElement(mt.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},u.createElement(tc.Slot,{scope:n},o.isRootMenu?u.createElement(c1,{asChild:!0},i):i))}),AT="NavigationMenuItem",[MT,a1]=nc(AT),kT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=n1(),a=r||i||"LEGACY_REACT_AUTO_VALUE",s=u.useRef(null),l=u.useRef(null),c=u.useRef(null),d=u.useRef(()=>{}),f=u.useRef(!1),p=u.useCallback((h="start")=>{if(s.current){d.current();const g=kl(s.current);g.length&&rc(h==="start"?g:g.reverse())}},[]),b=u.useCallback(()=>{if(s.current){const h=kl(s.current);h.length&&(d.current=_T(h))}},[]);return u.createElement(MT,{scope:n,value:a,triggerRef:l,contentRef:s,focusProxyRef:c,wasEscapeCloseRef:f,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:b,onContentFocusOutside:b},u.createElement(mt.li,Te({},o,{ref:t})))}),fp="NavigationMenuTrigger",RT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=wt(fp,e.__scopeNavigationMenu),a=a1(fp,e.__scopeNavigationMenu),s=u.useRef(null),l=Gt(s,a.triggerRef,t),c=f1(i.baseId,a.value),d=p1(i.baseId,a.value),f=u.useRef(!1),p=u.useRef(!1),b=a.value===i.value;return u.createElement(u.Fragment,null,u.createElement(tc.ItemSlot,{scope:n,value:a.value},u.createElement(d1,{asChild:!0},u.createElement(mt.button,Te({id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":oc(b),"aria-expanded":b,"aria-controls":d},o,{ref:l,onPointerEnter:Oe(e.onPointerEnter,()=>{p.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:Oe(e.onPointerMove,ea(()=>{r||p.current||a.wasEscapeCloseRef.current||f.current||(i.onTriggerEnter(a.value),f.current=!0)})),onPointerLeave:Oe(e.onPointerLeave,ea(()=>{r||(i.onTriggerLeave(),f.current=!1)})),onClick:Oe(e.onClick,()=>{i.onItemSelect(a.value),p.current=b}),onKeyDown:Oe(e.onKeyDown,h=>{const y={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];b&&h.key===y&&(a.onEntryKeyDown(),h.preventDefault())})})))),b&&u.createElement(u.Fragment,null,u.createElement(vT,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:h=>{const g=a.contentRef.current,y=h.relatedTarget,$=y===s.current,C=g==null?void 0:g.contains(y);($||!C)&&a.onFocusProxyEnter($?"start":"end")}}),i.viewport&&u.createElement("span",{"aria-owns":d})))}),pp="navigationMenu.linkSelect",FT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return u.createElement(d1,{asChild:!0},u.createElement(mt.a,Te({"data-active":r?"":void 0,"aria-current":r?"page":void 0},i,{ref:t,onClick:Oe(e.onClick,a=>{const s=a.target,l=new CustomEvent(pp,{bubbles:!0,cancelable:!0});if(s.addEventListener(pp,c=>o==null?void 0:o(c),{once:!0}),Tl(s,l),!l.defaultPrevented&&!a.metaKey){const c=new CustomEvent(xi,{bubbles:!0,cancelable:!0});Tl(s,c)}},{checkForDefaultPrevented:!1})})))}),s1="NavigationMenuIndicator",BT=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=wt(s1,e.__scopeNavigationMenu),i=!!o.value;return o.indicatorTrack?Yt.createPortal(u.createElement(ko,{present:n||i},u.createElement(IT,Te({},r,{ref:t}))),o.indicatorTrack):null}),IT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=wt(s1,n),i=i1(n),[a,s]=u.useState(null),[l,c]=u.useState(null),d=o.orientation==="horizontal",f=!!o.value;u.useEffect(()=>{var b;const g=(b=i().find(y=>y.value===o.value))===null||b===void 0?void 0:b.ref.current;g&&s(g)},[i,o.value]);const p=()=>{a&&c({size:d?a.offsetWidth:a.offsetHeight,offset:d?a.offsetLeft:a.offsetTop})};return Rl(a,p),Rl(o.indicatorTrack,p),l?u.createElement(mt.div,Te({"aria-hidden":!0,"data-state":f?"visible":"hidden","data-orientation":o.orientation},r,{ref:t,style:{position:"absolute",...d?{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}),bo="NavigationMenuContent",LT=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=wt(bo,e.__scopeNavigationMenu),i=a1(bo,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(VT,Te({forceMount:n},l,{ref:a})):u.createElement(ko,{present:n||s},u.createElement(l1,Te({"data-state":oc(s)},l,{ref:a,onPointerEnter:Oe(e.onPointerEnter,o.onContentEnter),onPointerLeave:Oe(e.onPointerLeave,ea(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})))}),VT=u.forwardRef((e,t)=>{const n=wt(bo,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return fr(()=>{r(e.value,{ref:t,...e})},[e,t,r]),fr(()=>()=>o(e.value),[e.value,o]),null}),xi="navigationMenu.rootContentDismiss",l1=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...c}=e,d=wt(bo,n),f=u.useRef(null),p=Gt(f,t),b=f1(d.baseId,r),h=p1(d.baseId,r),g=i1(n),y=u.useRef(null),{onItemDismiss:$}=d;u.useEffect(()=>{const x=f.current;if(d.isRootMenu&&x){const E=()=>{var P;$(),s(),x.contains(document.activeElement)&&((P=o.current)===null||P===void 0||P.focus())};return x.addEventListener(xi,E),()=>x.removeEventListener(xi,E)}},[d.isRootMenu,e.value,o,$,s]);const C=u.useMemo(()=>{const E=g().map(R=>R.value);d.dir==="rtl"&&E.reverse();const P=E.indexOf(d.value),A=E.indexOf(d.previousValue),N=r===d.value,v=A===E.indexOf(r);if(!N&&!v)return y.current;const L=(()=>{if(P!==A){if(N&&A!==-1)return P>A?"from-end":"from-start";if(v&&P!==-1)return P>A?"to-start":"to-end"}return null})();return y.current=L,L},[d.previousValue,d.value,d.dir,g,r]);return u.createElement(c1,{asChild:!0},u.createElement(pT,Te({id:h,"aria-labelledby":b,"data-motion":C,"data-orientation":d.orientation},c,{ref:p,onDismiss:()=>{var x;const E=new Event(xi,{bubbles:!0,cancelable:!0});(x=f.current)===null||x===void 0||x.dispatchEvent(E)},onFocusOutside:Oe(e.onFocusOutside,x=>{var E;l();const P=x.target;(E=d.rootNavigationMenu)!==null&&E!==void 0&&E.contains(P)&&x.preventDefault()}),onPointerDownOutside:Oe(e.onPointerDownOutside,x=>{var E;const P=x.target,A=g().some(v=>{var L;return(L=v.ref.current)===null||L===void 0?void 0:L.contains(P)}),N=d.isRootMenu&&((E=d.viewport)===null||E===void 0?void 0:E.contains(P));(A||N||!d.isRootMenu)&&x.preventDefault()}),onKeyDown:Oe(e.onKeyDown,x=>{const E=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!E){const N=kl(x.currentTarget),v=document.activeElement,L=N.findIndex(B=>B===v),M=x.shiftKey?N.slice(0,L).reverse():N.slice(L+1,N.length);if(rc(M))x.preventDefault();else{var A;(A=i.current)===null||A===void 0||A.focus()}}}),onEscapeKeyDown:Oe(e.onEscapeKeyDown,x=>{a.current=!0})})))}),u1="NavigationMenuViewport",OT=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=!!wt(u1,e.__scopeNavigationMenu).value;return u.createElement(ko,{present:n||i},u.createElement(NT,Te({},r,{ref:t})))}),NT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,i=wt(u1,n),a=Gt(t,i.onViewportChange),s=DT(bo,e.__scopeNavigationMenu),[l,c]=u.useState(null),[d,f]=u.useState(null),p=l?(l==null?void 0:l.width)+"px":void 0,b=l?(l==null?void 0:l.height)+"px":void 0,h=!!i.value,g=h?i.value:i.previousValue;return Rl(d,()=>{d&&c({width:d.offsetWidth,height:d.offsetHeight})}),u.createElement(mt.div,Te({"data-state":oc(h),"data-orientation":i.orientation},o,{ref:a,style:{pointerEvents:!h&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":b,...o.style},onPointerEnter:Oe(e.onPointerEnter,i.onContentEnter),onPointerLeave:Oe(e.onPointerLeave,ea(i.onContentLeave))}),Array.from(s.items).map(([$,{ref:C,forceMount:x,...E}])=>{const P=g===$;return u.createElement(ko,{key:$,present:x||P},u.createElement(l1,Te({},E,{ref:ec(C,A=>{P&&A&&f(A)})})))}))}),KT="FocusGroup",c1=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=wt(KT,n);return u.createElement(Ml.Provider,{scope:n},u.createElement(Ml.Slot,{scope:n},u.createElement(mt.div,Te({dir:o.dir},r,{ref:t}))))}),bp=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],jT="FocusGroupItem",d1=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$T(n),i=wt(jT,n);return u.createElement(Ml.ItemSlot,{scope:n},u.createElement(mt.button,Te({},r,{ref:t,onKeyDown:Oe(e.onKeyDown,a=>{if(["Home","End",...bp].includes(a.key)){let l=o().map(f=>f.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&l.reverse(),bp.includes(a.key)){const f=l.indexOf(a.currentTarget);l=l.slice(f+1)}setTimeout(()=>rc(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 rc(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function _T(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=ft(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 oc(e){return e?"open":"closed"}function f1(e,t){return`${e}-trigger-${t}`}function p1(e,t){return`${e}-content-${t}`}function ea(e){return t=>t.pointerType==="mouse"?e(t):void 0}const zT=ET,UT=TT,Ms=kT,HT=RT,WT=FT,GT=BT,YT=LT,qT=OT,ZT=_.keyframes`
|
|
1792
|
+
`;function XS({children:e,...t}){return B.jsx(ZS,{classNames:{base:["tooltip"],content:["tooltip-content"]},...t,children:e})}function Me(){return Me=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},Me.apply(this,arguments)}function o1(e,t=[]){let n=[];function r(a,i){const s=d.createContext(i),l=n.length;n=[...n,i];function u(f){const{scope:p,children:b,...h}=f,g=(p==null?void 0:p[e][l])||s,y=d.useMemo(()=>h,Object.values(h));return d.createElement(g.Provider,{value:y},b)}function c(f,p){const b=(p==null?void 0:p[e][l])||s,h=d.useContext(b);if(h)return h;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,c]}const o=()=>{const a=n.map(i=>d.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return d.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,JS(o,...t)]}function JS(...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(a){const i=r.reduce((s,{useScope:l,scopeName:u})=>{const f=l(a)[`__scope${u}`];return{...s,...f}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Ne(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 QS(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function nc(...e){return t=>e.forEach(n=>QS(n,t))}function Yt(...e){return d.useCallback(nc(...e),e)}const ti=d.forwardRef((e,t)=>{const{children:n,...r}=e,o=d.Children.toArray(n),a=o.find(tT);if(a){const i=a.props.children,s=o.map(l=>l===a?d.Children.count(i)>1?d.Children.only(null):d.isValidElement(i)?i.props.children:null:l);return d.createElement(Al,Me({},r,{ref:t}),d.isValidElement(i)?d.cloneElement(i,void 0,s):null)}return d.createElement(Al,Me({},r,{ref:t}),n)});ti.displayName="Slot";const Al=d.forwardRef((e,t)=>{const{children:n,...r}=e;return d.isValidElement(n)?d.cloneElement(n,{...nT(r,n.props),ref:t?nc(t,n.ref):n.ref}):d.Children.count(n)>1?d.Children.only(null):null});Al.displayName="SlotClone";const eT=({children:e})=>d.createElement(d.Fragment,null,e);function tT(e){return d.isValidElement(e)&&e.type===eT}function nT(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const rT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],gt=rT.reduce((e,t)=>{const n=d.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?ti:t;return d.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),d.createElement(s,Me({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ml(e,t){e&&ho.flushSync(()=>e.dispatchEvent(t))}function pt(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function oT({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=aT({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=pt(n),l=d.useCallback(u=>{if(a){const f=typeof u=="function"?u(e):u;f!==e&&s(f)}else o(u)},[a,e,o,s]);return[i,l]}function aT({defaultProp:e,onChange:t}){const n=d.useState(e),[r]=n,o=d.useRef(r),a=pt(t);return d.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const iT=d.createContext(void 0);function sT(e){const t=d.useContext(iT);return e||t||"ltr"}const fr=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{};function lT(e,t){return d.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Fo=e=>{const{present:t,children:n}=e,r=uT(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),a=Yt(r.ref,o.ref);return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:a}):null};Fo.displayName="Presence";function uT(e){const[t,n]=d.useState(),r=d.useRef({}),o=d.useRef(e),a=d.useRef("none"),i=e?"mounted":"unmounted",[s,l]=lT(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=fa(r.current);a.current=s==="mounted"?u:"none"},[s]),fr(()=>{const u=r.current,c=o.current;if(c!==e){const p=a.current,b=fa(u);e?l("MOUNT"):b==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&p!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),fr(()=>{if(t){const u=f=>{const b=fa(r.current).includes(f.animationName);f.target===t&&b&&ho.flushSync(()=>l("ANIMATION_END"))},c=f=>{f.target===t&&(a.current=fa(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:d.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function fa(e){return(e==null?void 0:e.animationName)||"none"}const cT=A["useId".toString()]||(()=>{});let dT=0;function a1(e){const[t,n]=A.useState(cT());return fr(()=>{e||n(r=>r??String(dT++))},[e]),e||(t?`radix-${t}`:"")}function i1(e){const t=e+"CollectionProvider",[n,r]=o1(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=b=>{const{scope:h,children:g}=b,y=A.default.useRef(null),$=A.default.useRef(new Map).current;return A.default.createElement(o,{scope:h,itemMap:$,collectionRef:y},g)},s=e+"CollectionSlot",l=A.default.forwardRef((b,h)=>{const{scope:g,children:y}=b,$=a(s,g),C=Yt(h,$.collectionRef);return A.default.createElement(ti,{ref:C},y)}),u=e+"CollectionItemSlot",c="data-radix-collection-item",f=A.default.forwardRef((b,h)=>{const{scope:g,children:y,...$}=b,C=A.default.useRef(null),x=Yt(h,C),E=a(u,g);return A.default.useEffect(()=>(E.itemMap.set(C,{ref:C,...$}),()=>void E.itemMap.delete(C))),A.default.createElement(ti,{[c]:"",ref:x},y)});function p(b){const h=a(e+"CollectionConsumer",b);return A.default.useCallback(()=>{const y=h.collectionRef.current;if(!y)return[];const $=Array.from(y.querySelectorAll(`[${c}]`));return Array.from(h.itemMap.values()).sort((E,P)=>$.indexOf(E.ref.current)-$.indexOf(P.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:i,Slot:l,ItemSlot:f},p,r]}function fT(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const kl="dismissableLayer.update",pT="dismissableLayer.pointerDownOutside",bT="dismissableLayer.focusOutside";let fp;const hT=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mT=d.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...u}=e,c=d.useContext(hT),[f,p]=d.useState(null),b=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,h]=d.useState({}),g=Yt(t,v=>p(v)),y=Array.from(c.layers),[$]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),C=y.indexOf($),x=f?y.indexOf(f):-1,E=c.layersWithOutsidePointerEventsDisabled.size>0,P=x>=C,M=gT(v=>{const V=v.target,F=[...c.branches].some(k=>k.contains(V));!P||F||(a==null||a(v),s==null||s(v),v.defaultPrevented||l==null||l())},b),K=vT(v=>{const V=v.target;[...c.branches].some(k=>k.contains(V))||(i==null||i(v),s==null||s(v),v.defaultPrevented||l==null||l())},b);return fT(v=>{x===c.layers.size-1&&(o==null||o(v),!v.defaultPrevented&&l&&(v.preventDefault(),l()))},b),d.useEffect(()=>{if(f)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(fp=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),pp(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=fp)}},[f,b,r,c]),d.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),pp())},[f,c]),d.useEffect(()=>{const v=()=>h({});return document.addEventListener(kl,v),()=>document.removeEventListener(kl,v)},[]),d.createElement(gt.div,Me({},u,{ref:g,style:{pointerEvents:E?P?"auto":"none":void 0,...e.style},onFocusCapture:Ne(e.onFocusCapture,K.onFocusCapture),onBlurCapture:Ne(e.onBlurCapture,K.onBlurCapture),onPointerDownCapture:Ne(e.onPointerDownCapture,M.onPointerDownCapture)}))});function gT(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){s1(pT,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function vT(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e),r=d.useRef(!1);return d.useEffect(()=>{const o=a=>{a.target&&!r.current&&s1(bT,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function pp(){const e=new CustomEvent(kl);document.dispatchEvent(e)}function s1(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ml(o,a):o.dispatchEvent(a)}function yT(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 $T=d.forwardRef((e,t)=>d.createElement(gt.span,Me({},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}}))),xT=$T,Bo="NavigationMenu",[rc,l1,wT]=i1(Bo),[Rl,CT,DT]=i1(Bo),[oc,wA]=o1(Bo,[wT,DT]),[ET,Ct]=oc(Bo),[PT,ST]=oc(Bo),TT=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,delayDuration:i=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:u,...c}=e,[f,p]=d.useState(null),b=Yt(t,V=>p(V)),h=sT(u),g=d.useRef(0),y=d.useRef(0),$=d.useRef(0),[C,x]=d.useState(!0),[E="",P]=oT({prop:r,onChange:V=>{const F=V!=="",k=s>0;F?(window.clearTimeout($.current),k&&x(!1)):(window.clearTimeout($.current),$.current=window.setTimeout(()=>x(!0),s)),o==null||o(V)},defaultProp:a}),M=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)},i)},[E,P,i]);return d.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(y.current),window.clearTimeout($.current)},[]),d.createElement(AT,{scope:n,isRootMenu:!0,value:E,dir:h,orientation:l,rootNavigationMenu:f,onTriggerEnter:V=>{window.clearTimeout(g.current),C?v(V):K(V)},onTriggerLeave:()=>{window.clearTimeout(g.current),M()},onContentEnter:()=>window.clearTimeout(y.current),onContentLeave:M,onItemSelect:V=>{P(F=>F===V?"":V)},onItemDismiss:()=>P("")},d.createElement(gt.nav,Me({"aria-label":"Main","data-orientation":l,dir:h},c,{ref:b})))}),AT=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:a,children:i,value:s,onItemSelect:l,onItemDismiss:u,onTriggerEnter:c,onTriggerLeave:f,onContentEnter:p,onContentLeave:b}=e,[h,g]=d.useState(null),[y,$]=d.useState(new Map),[C,x]=d.useState(null);return d.createElement(ET,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:yT(s),baseId:a1(),dir:o,orientation:a,viewport:h,onViewportChange:g,indicatorTrack:C,onIndicatorTrackChange:x,onTriggerEnter:pt(c),onTriggerLeave:pt(f),onContentEnter:pt(p),onContentLeave:pt(b),onItemSelect:pt(l),onItemDismiss:pt(u),onViewportContentChange:d.useCallback((E,P)=>{$(M=>(M.set(E,P),new Map(M)))},[]),onViewportContentRemove:d.useCallback(E=>{$(P=>P.has(E)?(P.delete(E),new Map(P)):P)},[])},d.createElement(rc.Provider,{scope:t},d.createElement(PT,{scope:t,items:y},i)))},MT="NavigationMenuList",kT=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ct(MT,n),a=d.createElement(gt.ul,Me({"data-orientation":o.orientation},r,{ref:t}));return d.createElement(gt.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},d.createElement(rc.Slot,{scope:n},o.isRootMenu?d.createElement(p1,{asChild:!0},a):a))}),RT="NavigationMenuItem",[FT,u1]=oc(RT),BT=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,a=a1(),i=r||a||"LEGACY_REACT_AUTO_VALUE",s=d.useRef(null),l=d.useRef(null),u=d.useRef(null),c=d.useRef(()=>{}),f=d.useRef(!1),p=d.useCallback((h="start")=>{if(s.current){c.current();const g=Fl(s.current);g.length&&ac(h==="start"?g:g.reverse())}},[]),b=d.useCallback(()=>{if(s.current){const h=Fl(s.current);h.length&&(c.current=HT(h))}},[]);return d.createElement(FT,{scope:n,value:i,triggerRef:l,contentRef:s,focusProxyRef:u,wasEscapeCloseRef:f,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:b,onContentFocusOutside:b},d.createElement(gt.li,Me({},o,{ref:t})))}),bp="NavigationMenuTrigger",IT=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=Ct(bp,e.__scopeNavigationMenu),i=u1(bp,e.__scopeNavigationMenu),s=d.useRef(null),l=Yt(s,i.triggerRef,t),u=h1(a.baseId,i.value),c=m1(a.baseId,i.value),f=d.useRef(!1),p=d.useRef(!1),b=i.value===a.value;return d.createElement(d.Fragment,null,d.createElement(rc.ItemSlot,{scope:n,value:i.value},d.createElement(b1,{asChild:!0},d.createElement(gt.button,Me({id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":ic(b),"aria-expanded":b,"aria-controls":c},o,{ref:l,onPointerEnter:Ne(e.onPointerEnter,()=>{p.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:Ne(e.onPointerMove,ni(()=>{r||p.current||i.wasEscapeCloseRef.current||f.current||(a.onTriggerEnter(i.value),f.current=!0)})),onPointerLeave:Ne(e.onPointerLeave,ni(()=>{r||(a.onTriggerLeave(),f.current=!1)})),onClick:Ne(e.onClick,()=>{a.onItemSelect(i.value),p.current=b}),onKeyDown:Ne(e.onKeyDown,h=>{const y={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];b&&h.key===y&&(i.onEntryKeyDown(),h.preventDefault())})})))),b&&d.createElement(d.Fragment,null,d.createElement(xT,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:h=>{const g=i.contentRef.current,y=h.relatedTarget,$=y===s.current,C=g==null?void 0:g.contains(y);($||!C)&&i.onFocusProxyEnter($?"start":"end")}}),a.viewport&&d.createElement("span",{"aria-owns":c})))}),hp="navigationMenu.linkSelect",LT=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...a}=e;return d.createElement(b1,{asChild:!0},d.createElement(gt.a,Me({"data-active":r?"":void 0,"aria-current":r?"page":void 0},a,{ref:t,onClick:Ne(e.onClick,i=>{const s=i.target,l=new CustomEvent(hp,{bubbles:!0,cancelable:!0});if(s.addEventListener(hp,u=>o==null?void 0:o(u),{once:!0}),Ml(s,l),!l.defaultPrevented&&!i.metaKey){const u=new CustomEvent(Ca,{bubbles:!0,cancelable:!0});Ml(s,u)}},{checkForDefaultPrevented:!1})})))}),c1="NavigationMenuIndicator",VT=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ct(c1,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?mo.default.createPortal(d.createElement(Fo,{present:n||a},d.createElement(OT,Me({},r,{ref:t}))),o.indicatorTrack):null}),OT=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ct(c1,n),a=l1(n),[i,s]=d.useState(null),[l,u]=d.useState(null),c=o.orientation==="horizontal",f=!!o.value;d.useEffect(()=>{var b;const g=(b=a().find(y=>y.value===o.value))===null||b===void 0?void 0:b.ref.current;g&&s(g)},[a,o.value]);const p=()=>{i&&u({size:c?i.offsetWidth:i.offsetHeight,offset:c?i.offsetLeft:i.offsetTop})};return Bl(i,p),Bl(o.indicatorTrack,p),l?d.createElement(gt.div,Me({"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}),bo="NavigationMenuContent",NT=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ct(bo,e.__scopeNavigationMenu),a=u1(bo,e.__scopeNavigationMenu),i=Yt(a.contentRef,t),s=a.value===o.value,l={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return o.viewport?d.createElement(KT,Me({forceMount:n},l,{ref:i})):d.createElement(Fo,{present:n||s},d.createElement(d1,Me({"data-state":ic(s)},l,{ref:i,onPointerEnter:Ne(e.onPointerEnter,o.onContentEnter),onPointerLeave:Ne(e.onPointerLeave,ni(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})))}),KT=d.forwardRef((e,t)=>{const n=Ct(bo,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}),Ca="navigationMenu.rootContentDismiss",d1=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=Ct(bo,n),f=d.useRef(null),p=Yt(f,t),b=h1(c.baseId,r),h=m1(c.baseId,r),g=l1(n),y=d.useRef(null),{onItemDismiss:$}=c;d.useEffect(()=>{const x=f.current;if(c.isRootMenu&&x){const E=()=>{var P;$(),s(),x.contains(document.activeElement)&&((P=o.current)===null||P===void 0||P.focus())};return x.addEventListener(Ca,E),()=>x.removeEventListener(Ca,E)}},[c.isRootMenu,e.value,o,$,s]);const C=d.useMemo(()=>{const E=g().map(F=>F.value);c.dir==="rtl"&&E.reverse();const P=E.indexOf(c.value),M=E.indexOf(c.previousValue),K=r===c.value,v=M===E.indexOf(r);if(!K&&!v)return y.current;const V=(()=>{if(P!==M){if(K&&M!==-1)return P>M?"from-end":"from-start";if(v&&P!==-1)return P>M?"to-start":"to-end"}return null})();return y.current=V,V},[c.previousValue,c.value,c.dir,g,r]);return d.createElement(p1,{asChild:!0},d.createElement(mT,Me({id:h,"aria-labelledby":b,"data-motion":C,"data-orientation":c.orientation},u,{ref:p,onDismiss:()=>{var x;const E=new Event(Ca,{bubbles:!0,cancelable:!0});(x=f.current)===null||x===void 0||x.dispatchEvent(E)},onFocusOutside:Ne(e.onFocusOutside,x=>{var E;l();const P=x.target;(E=c.rootNavigationMenu)!==null&&E!==void 0&&E.contains(P)&&x.preventDefault()}),onPointerDownOutside:Ne(e.onPointerDownOutside,x=>{var E;const P=x.target,M=g().some(v=>{var V;return(V=v.ref.current)===null||V===void 0?void 0:V.contains(P)}),K=c.isRootMenu&&((E=c.viewport)===null||E===void 0?void 0:E.contains(P));(M||K||!c.isRootMenu)&&x.preventDefault()}),onKeyDown:Ne(e.onKeyDown,x=>{const E=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!E){const K=Fl(x.currentTarget),v=document.activeElement,V=K.findIndex(I=>I===v),k=x.shiftKey?K.slice(0,V).reverse():K.slice(V+1,K.length);if(ac(k))x.preventDefault();else{var M;(M=a.current)===null||M===void 0||M.focus()}}}),onEscapeKeyDown:Ne(e.onEscapeKeyDown,x=>{i.current=!0})})))}),f1="NavigationMenuViewport",jT=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=!!Ct(f1,e.__scopeNavigationMenu).value;return d.createElement(Fo,{present:n||a},d.createElement(_T,Me({},r,{ref:t})))}),_T=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,a=Ct(f1,n),i=Yt(t,a.onViewportChange),s=ST(bo,e.__scopeNavigationMenu),[l,u]=d.useState(null),[c,f]=d.useState(null),p=l?(l==null?void 0:l.width)+"px":void 0,b=l?(l==null?void 0:l.height)+"px":void 0,h=!!a.value,g=h?a.value:a.previousValue;return Bl(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),d.createElement(gt.div,Me({"data-state":ic(h),"data-orientation":a.orientation},o,{ref:i,style:{pointerEvents:!h&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":b,...o.style},onPointerEnter:Ne(e.onPointerEnter,a.onContentEnter),onPointerLeave:Ne(e.onPointerLeave,ni(a.onContentLeave))}),Array.from(s.items).map(([$,{ref:C,forceMount:x,...E}])=>{const P=g===$;return d.createElement(Fo,{key:$,present:x||P},d.createElement(d1,Me({},E,{ref:nc(C,M=>{P&&M&&f(M)})})))}))}),zT="FocusGroup",p1=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ct(zT,n);return d.createElement(Rl.Provider,{scope:n},d.createElement(Rl.Slot,{scope:n},d.createElement(gt.div,Me({dir:o.dir},r,{ref:t}))))}),mp=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],UT="FocusGroupItem",b1=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=CT(n),a=Ct(UT,n);return d.createElement(Rl.ItemSlot,{scope:n},d.createElement(gt.button,Me({},r,{ref:t,onKeyDown:Ne(e.onKeyDown,i=>{if(["Home","End",...mp].includes(i.key)){let l=o().map(f=>f.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&l.reverse(),mp.includes(i.key)){const f=l.indexOf(i.currentTarget);l=l.slice(f+1)}setTimeout(()=>ac(l)),i.preventDefault()}})})))});function Fl(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ac(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function HT(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Bl(e,t){const n=pt(t);fr(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function ic(e){return e?"open":"closed"}function h1(e,t){return`${e}-trigger-${t}`}function m1(e,t){return`${e}-content-${t}`}function ni(e){return t=>t.pointerType==="mouse"?e(t):void 0}const WT=TT,GT=kT,Rs=BT,YT=IT,qT=LT,ZT=VT,XT=NT,JT=jT,QT=me.keyframes`
|
|
1793
1793
|
from {
|
|
1794
1794
|
opacity: 0;
|
|
1795
1795
|
transform: translateX(200px);
|
|
@@ -1798,7 +1798,7 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1798
1798
|
opacity: 1;
|
|
1799
1799
|
transform: translateX(0);
|
|
1800
1800
|
}
|
|
1801
|
-
`,
|
|
1801
|
+
`,eA=me.keyframes`
|
|
1802
1802
|
from {
|
|
1803
1803
|
opacity: 0;
|
|
1804
1804
|
transform: translateX(-200px);
|
|
@@ -1807,7 +1807,7 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1807
1807
|
opacity: 1;
|
|
1808
1808
|
transform: translateX(0);
|
|
1809
1809
|
}
|
|
1810
|
-
`,
|
|
1810
|
+
`,tA=me.keyframes`
|
|
1811
1811
|
from {
|
|
1812
1812
|
opacity: 1;
|
|
1813
1813
|
transform: translateX(0);
|
|
@@ -1816,7 +1816,7 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1816
1816
|
opacity: 0;
|
|
1817
1817
|
transform: translateX(200px);
|
|
1818
1818
|
}
|
|
1819
|
-
`,
|
|
1819
|
+
`,nA=me.keyframes`
|
|
1820
1820
|
from {
|
|
1821
1821
|
opacity: 1;
|
|
1822
1822
|
transform: translateX(0);
|
|
@@ -1825,7 +1825,7 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1825
1825
|
opacity: 0;
|
|
1826
1826
|
transform: translateX(-200px);
|
|
1827
1827
|
}
|
|
1828
|
-
`,
|
|
1828
|
+
`,rA=me.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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1834
1834
|
opacity: 1;
|
|
1835
1835
|
transform: rotateX(0deg) scale(1);
|
|
1836
1836
|
}
|
|
1837
|
-
`,
|
|
1837
|
+
`,oA=me.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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1843
1843
|
opacity: 0;
|
|
1844
1844
|
transform: rotateX(-10deg) scale(0.95);
|
|
1845
1845
|
}
|
|
1846
|
-
`,
|
|
1846
|
+
`,aA=me.keyframes`
|
|
1847
1847
|
from {
|
|
1848
1848
|
opacity: 0;
|
|
1849
1849
|
}
|
|
1850
1850
|
to {
|
|
1851
1851
|
opacity: 1;
|
|
1852
1852
|
}
|
|
1853
|
-
`,
|
|
1853
|
+
`,iA=me.keyframes`
|
|
1854
1854
|
from {
|
|
1855
1855
|
opacity: 1;
|
|
1856
1856
|
}
|
|
1857
1857
|
to {
|
|
1858
1858
|
opacity: 0;
|
|
1859
1859
|
}
|
|
1860
|
-
`,
|
|
1860
|
+
`,g1=G.default.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])??w.colors.slate[900]}};
|
|
1863
1863
|
top: 1px;
|
|
1864
1864
|
transition: transform 200ms ease;
|
|
1865
|
-
`,
|
|
1865
|
+
`,sA=G.default(WT)`
|
|
1866
1866
|
position: relative;
|
|
1867
1867
|
display: flex;
|
|
1868
1868
|
width: 100%;
|
|
1869
1869
|
justify-content: center;
|
|
1870
1870
|
z-index: 1;
|
|
1871
|
-
`,
|
|
1871
|
+
`,lA=G.default(GT)`
|
|
1872
1872
|
display: flex;
|
|
1873
1873
|
justify-content: center;
|
|
1874
1874
|
list-style: none;
|
|
1875
1875
|
margin: 0;
|
|
1876
1876
|
padding: 0;
|
|
1877
|
-
`,
|
|
1877
|
+
`,gp=G.default(YT)`
|
|
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 <`+j+">.")}return k}function Dc(m,k){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])??w.colors.slate[100]}};
|
|
1902
1902
|
}
|
|
1903
1903
|
|
|
1904
|
-
&[data-state='open'] > ${
|
|
1904
|
+
&[data-state='open'] > ${g1} {
|
|
1905
1905
|
transform: rotate(-180deg);
|
|
1906
1906
|
}
|
|
1907
|
-
`,
|
|
1907
|
+
`,Il=G.default(qT)`
|
|
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 <`+j+">.")}return k}function Dc(m,k){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])??w.colors.slate[100]}};
|
|
1931
1931
|
}
|
|
1932
|
-
`,
|
|
1932
|
+
`,vp=G.default(XT)`
|
|
1933
1933
|
position: absolute;
|
|
1934
1934
|
top: 0;
|
|
1935
1935
|
left: 0;
|
|
@@ -1938,22 +1938,22 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1938
1938
|
animation-timing-function: ease;
|
|
1939
1939
|
|
|
1940
1940
|
&[data-motion='from-start'] {
|
|
1941
|
-
animation-name: ${
|
|
1941
|
+
animation-name: ${eA};
|
|
1942
1942
|
}
|
|
1943
1943
|
&[data-motion='from-end'] {
|
|
1944
|
-
animation-name: ${
|
|
1944
|
+
animation-name: ${QT};
|
|
1945
1945
|
}
|
|
1946
1946
|
&[data-motion='to-start'] {
|
|
1947
|
-
animation-name: ${
|
|
1947
|
+
animation-name: ${nA};
|
|
1948
1948
|
}
|
|
1949
1949
|
&[data-motion='to-end'] {
|
|
1950
|
-
animation-name: ${
|
|
1950
|
+
animation-name: ${tA};
|
|
1951
1951
|
}
|
|
1952
1952
|
|
|
1953
1953
|
@media only screen and (min-width: 600px) {
|
|
1954
1954
|
width: auto;
|
|
1955
1955
|
}
|
|
1956
|
-
`,
|
|
1956
|
+
`,uA=G.default(ZT)`
|
|
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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1964
1964
|
transition: width, transform 250ms ease;
|
|
1965
1965
|
|
|
1966
1966
|
&[data-state='visible'] {
|
|
1967
|
-
animation: ${
|
|
1967
|
+
animation: ${aA} 200ms ease;
|
|
1968
1968
|
}
|
|
1969
1969
|
|
|
1970
1970
|
&[data-state='hidden'] {
|
|
1971
|
-
animation: ${
|
|
1971
|
+
animation: ${iA} 200ms ease;
|
|
1972
1972
|
}
|
|
1973
|
-
`,
|
|
1973
|
+
`,cA=G.default(JT)`
|
|
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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
1983
1983
|
transition: width, height, 300ms ease;
|
|
1984
1984
|
|
|
1985
1985
|
&[data-state='open'] {
|
|
1986
|
-
animation: ${
|
|
1986
|
+
animation: ${rA} 200ms ease;
|
|
1987
1987
|
}
|
|
1988
1988
|
|
|
1989
1989
|
&[data-state='closed'] {
|
|
1990
|
-
animation: ${
|
|
1990
|
+
animation: ${oA} 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
|
+
`,yp=G.default.ul`
|
|
1998
1998
|
display: grid;
|
|
1999
1999
|
padding: 22px;
|
|
2000
2000
|
margin: 0;
|
|
@@ -2012,7 +2012,7 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
2012
2012
|
grid-template-rows: repeat(3, 1fr);
|
|
2013
2013
|
}
|
|
2014
2014
|
}
|
|
2015
|
-
`,
|
|
2015
|
+
`,dA=G.default(Si)`
|
|
2016
2016
|
display: block;
|
|
2017
2017
|
outline: none;
|
|
2018
2018
|
text-decoration: none;
|
|
@@ -2031,16 +2031,16 @@ Check the top-level render call using <`+j+">.")}return k}function Dc(m,k){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])??w.colors.slate[100]}};
|
|
2033
2033
|
}
|
|
2034
|
-
`,
|
|
2034
|
+
`,fA=G.default.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])??w.colors.slate[900]}};
|
|
2039
|
-
`,
|
|
2039
|
+
`,pA=G.default.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])??w.colors.slate[900]}};
|
|
2041
2041
|
line-height: 1.4;
|
|
2042
2042
|
font-weight: initial;
|
|
2043
|
-
`,
|
|
2043
|
+
`,bA=G.default(Si)`
|
|
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 <`+j+">.")}return k}function Dc(m,k){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])??w.colors.slate[900]}};
|
|
2065
2065
|
}
|
|
2066
|
-
`,
|
|
2066
|
+
`,hA=G.default.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
|
+
`,mA=G.default.p`
|
|
2074
2074
|
color: white;
|
|
2075
2075
|
font-size: 14px;
|
|
2076
2076
|
line-height: 1.3;
|
|
2077
|
-
`,
|
|
2077
|
+
`,gA=G.default.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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
2082
2082
|
top: 100%;
|
|
2083
2083
|
left: 0;
|
|
2084
2084
|
perspective: 2000px;
|
|
2085
|
-
`,
|
|
2085
|
+
`,vA=G.default.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 <`+j+">.")}return k}function Dc(m,k){if(!(
|
|
|
2090
2090
|
height: 10px;
|
|
2091
2091
|
transform: rotate(45deg);
|
|
2092
2092
|
border-top-left-radius: 2px;
|
|
2093
|
-
`;function
|
|
2093
|
+
`;function Ll({className:e,...t}){return B.jsx(g1,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:B.jsx("path",{d:"M6 9L12 15L18 9",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}Ll.defaultProps={className:void 0};const Pt=d.forwardRef(({className:e,children:t,title:n,...r},o)=>B.jsx("li",{children:B.jsx(Il,{asChild:!0,children:B.jsxs(dA,{className:`${e??""}`,...r,ref:o,children:[B.jsx(fA,{children:n}),B.jsx(pA,{children:t})]})})}));Pt.defaultProps={className:void 0,href:void 0,title:void 0};function yA(){return B.jsxs(sA,{children:[B.jsxs(lA,{children:[B.jsxs(Rs,{children:[B.jsxs(gp,{children:["Learn ",B.jsx(Ll,{"aria-hidden":!0})]}),B.jsx(vp,{children:B.jsxs(yp,{className:"one",children:[B.jsx("li",{style:{gridRow:"span 3"},children:B.jsx(Il,{asChild:!0,children:B.jsxs(bA,{href:"/",children:[B.jsxs("svg",{"aria-hidden":!0,width:"38",height:"38",viewBox:"0 0 25 25",fill:"white",children:[B.jsx("path",{d:"M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z"}),B.jsx("path",{d:"M12 0H4V8H12V0Z"}),B.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"})]}),B.jsx(hA,{children:"Radix Primitives"}),B.jsx(mA,{children:"Unstyled, accessible components for React."})]})})}),B.jsx(Pt,{href:"https://stitches.dev/",title:"Stitches",children:"CSS-in-JS with best-in-class developer experience."}),B.jsx(Pt,{href:"/colors",title:"Colors",children:"Beautiful, thought-out palettes with auto dark mode."}),B.jsx(Pt,{href:"https://icons.radix-ui.com/",title:"Icons",children:"A crisp set of 15x15 icons, balanced and consistent."})]})})]}),B.jsxs(Rs,{children:[B.jsxs(gp,{children:["Overview ",B.jsx(Ll,{"aria-hidden":!0})]}),B.jsx(vp,{children:B.jsxs(yp,{className:"two",children:[B.jsx(Pt,{title:"Introduction",href:"/primitives/docs/overview/introduction",children:"Build high-quality, accessible design systems and web apps."}),B.jsx(Pt,{title:"Getting started",href:"/primitives/docs/overview/getting-started",children:"A quick tutorial to get you up and running with Radix Primitives."}),B.jsx(Pt,{title:"Styling",href:"/primitives/docs/guides/styling",children:"Unstyled and compatible with any styling solution."}),B.jsx(Pt,{title:"Animation",href:"/primitives/docs/guides/animation",children:"Use CSS keyframes or any animation library of your choice."}),B.jsx(Pt,{title:"Accessibility",href:"/primitives/docs/overview/accessibility",children:"Tested in a range of browsers and assistive technologies."}),B.jsx(Pt,{title:"Releases",href:"/primitives/docs/overview/releases",children:"Radix Primitives releases and their changelogs."})]})})]}),B.jsx(Rs,{children:B.jsx(Il,{href:"https://github.com/radix-ui",children:"Github"})}),B.jsx(uA,{children:B.jsx(vA,{})})]}),B.jsx(gA,{children:B.jsx(cA,{})})]})}exports.Avatar=w2;exports.AvatarGroup=D2;exports.Badge=QC;exports.BreadcrumbEllipsis=eD;exports.BreadcrumbItem=jP;exports.BreadcrumbLink=_P;exports.BreadcrumbSeparator=zP;exports.Breadcrumbs=UP;exports.Button=HP;exports.Card=GP;exports.Checkbox=qP;exports.CircularEasing=xS;exports.CircularProgressbar=Z9;exports.Collapsible=QP;exports.CollapsibleTrigger=JP;exports.CollapsibleTriggerStateContext=tc;exports.Container=n9;exports.ContextMenu=z4;exports.DateInput=U4;exports.Dialog=S9;exports.Divider=d9;exports.Drawer=q4;exports.Input=Y4;exports.LinearProgressbar=rS;exports.Link=b9;exports.Meter=x9;exports.Modal=C9;exports.ModalOverlay=E9;exports.NavigationMenu=yA;exports.NumberInput=Z4;exports.Option=hS;exports.PinInput=X4;exports.Pulse=J4;exports.Select=Q4;exports.Slider=e1;exports.Switch=TS;exports.Tab=BS;exports.TabList=IS;exports.TabPanel=LS;exports.Tabs=FS;exports.TabsOrientationContext=Ri;exports.TimeInput=n1;exports.ToggleButton=US;exports.Tooltip=XS;exports.defaultTheme=w;exports.mergeTheme=Mb;
|