@theroutingcompany/components 0.0.99-alpha.19 → 0.0.99-alpha.20
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.
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var op;function r5(){return op||(op=1,process.env.NODE_ENV!=="production"&&function(){var e=D.default,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"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h=Symbol.iterator,b="@@iterator";function v(C){if(C===null||typeof C!="object")return null;var q=h&&C[h]||C[b];return typeof q=="function"?q:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(C){{for(var q=arguments.length,Z=new Array(q>1?q-1:0),ue=1;ue<q;ue++)Z[ue-1]=arguments[ue];w("error",C,Z)}}function w(C,q,Z){{var ue=_.ReactDebugCurrentFrame,ve=ue.getStackAddendum();ve!==""&&(q+="%s",Z=Z.concat([ve]));var xe=Z.map(function(he){return String(he)});xe.unshift("Warning: "+q),Function.prototype.apply.call(console[C],console,xe)}}var S=!1,P=!1,T=!1,M=!1,$=!1,k;k=Symbol.for("react.module.reference");function
|
|
17
|
+
*/var op;function r5(){return op||(op=1,process.env.NODE_ENV!=="production"&&function(){var e=D.default,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"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h=Symbol.iterator,b="@@iterator";function v(C){if(C===null||typeof C!="object")return null;var q=h&&C[h]||C[b];return typeof q=="function"?q:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(C){{for(var q=arguments.length,Z=new Array(q>1?q-1:0),ue=1;ue<q;ue++)Z[ue-1]=arguments[ue];w("error",C,Z)}}function w(C,q,Z){{var ue=_.ReactDebugCurrentFrame,ve=ue.getStackAddendum();ve!==""&&(q+="%s",Z=Z.concat([ve]));var xe=Z.map(function(he){return String(he)});xe.unshift("Warning: "+q),Function.prototype.apply.call(console[C],console,xe)}}var S=!1,P=!1,T=!1,M=!1,$=!1,k;k=Symbol.for("react.module.reference");function F(C){return!!(typeof C=="string"||typeof C=="function"||C===r||C===a||$||C===o||C===u||C===d||M||C===g||S||P||T||typeof C=="object"&&C!==null&&(C.$$typeof===m||C.$$typeof===f||C.$$typeof===i||C.$$typeof===l||C.$$typeof===s||C.$$typeof===k||C.getModuleId!==void 0))}function x(C,q,Z){var ue=C.displayName;if(ue)return ue;var ve=q.displayName||q.name||"";return ve!==""?Z+"("+ve+")":Z}function R(C){return C.displayName||"Context"}function O(C){if(C==null)return null;if(typeof C.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof C=="function")return C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof C=="object")switch(C.$$typeof){case l:var q=C;return R(q)+".Consumer";case i:var Z=C;return R(Z._context)+".Provider";case s:return x(C,C.render,"ForwardRef");case f:var ue=C.displayName||null;return ue!==null?ue:O(C.type)||"Memo";case m:{var ve=C,xe=ve._payload,he=ve._init;try{return O(he(xe))}catch{return null}}}return null}var A=Object.assign,V=0,I,J,j,U,L,B,Y;function W(){}W.__reactDisabledLog=!0;function G(){{if(V===0){I=console.log,J=console.info,j=console.warn,U=console.error,L=console.group,B=console.groupCollapsed,Y=console.groupEnd;var C={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:C,log:C,warn:C,error:C,group:C,groupCollapsed:C,groupEnd:C})}V++}}function re(){{if(V--,V===0){var C={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},C,{value:I}),info:A({},C,{value:J}),warn:A({},C,{value:j}),error:A({},C,{value:U}),group:A({},C,{value:L}),groupCollapsed:A({},C,{value:B}),groupEnd:A({},C,{value:Y})})}V<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var oe=_.ReactCurrentDispatcher,ae;function ne(C,q,Z){{if(ae===void 0)try{throw Error()}catch(ve){var ue=ve.stack.trim().match(/\n( *(at )?)/);ae=ue&&ue[1]||""}return`
|
|
18
18
|
`+ae+C}}var ee=!1,se;{var _e=typeof WeakMap=="function"?WeakMap:Map;se=new _e}function le(C,q){if(!C||ee)return"";{var Z=se.get(C);if(Z!==void 0)return Z}var ue;ee=!0;var ve=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var xe;xe=oe.current,oe.current=null,G();try{if(q){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(dn){ue=dn}Reflect.construct(C,[],he)}else{try{he.call()}catch(dn){ue=dn}C.call(he.prototype)}}else{try{throw Error()}catch(dn){ue=dn}C()}}catch(dn){if(dn&&ue&&typeof dn.stack=="string"){for(var me=dn.stack.split(`
|
|
19
19
|
`),Xe=ue.stack.split(`
|
|
20
20
|
`),Fe=me.length-1,Ne=Xe.length-1;Fe>=1&&Ne>=0&&me[Fe]!==Xe[Ne];)Ne--;for(;Fe>=1&&Ne>=0;Fe--,Ne--)if(me[Fe]!==Xe[Ne]){if(Fe!==1||Ne!==1)do if(Fe--,Ne--,Ne<0||me[Fe]!==Xe[Ne]){var mt=`
|
|
@@ -24,7 +24,7 @@ Check the render method of \``+C+"`."}return""}}function bV(C){{if(C!==void 0){v
|
|
|
24
24
|
|
|
25
25
|
Check your code at `+q+":"+Z+"."}return""}}var XS={};function vV(C){{var q=qS();if(!q){var Z=typeof C=="string"?C:C.displayName||C.name;Z&&(q=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+Z+">.")}return q}}function JS(C,q){{if(!C._store||C._store.validated||C.key!=null)return;C._store.validated=!0;var Z=vV(q);if(XS[Z])return;XS[Z]=!0;var ue="";C&&C._owner&&C._owner!==Zf.current&&(ue=" It was passed a child from "+O(C._owner.type)+"."),co(C),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Z,ue),co(null)}}function ZS(C,q){{if(typeof C!="object")return;if(so(C))for(var Z=0;Z<C.length;Z++){var ue=C[Z];ep(ue)&&JS(ue,q)}else if(ep(C))C._store&&(C._store.validated=!0);else if(C){var ve=v(C);if(typeof ve=="function"&&ve!==C.entries)for(var xe=ve.call(C),he;!(he=xe.next()).done;)ep(he.value)&&JS(he.value,q)}}}function yV(C){{var q=C.type;if(q==null||typeof q=="string")return;var Z;if(typeof q=="function")Z=q.propTypes;else if(typeof q=="object"&&(q.$$typeof===s||q.$$typeof===f))Z=q.propTypes;else return;if(Z){var ue=O(q);zt(Z,C.props,"prop",ue,C)}else if(q.PropTypes!==void 0&&!Qf){Qf=!0;var ve=O(q);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ve||"Unknown")}typeof q.getDefaultProps=="function"&&!q.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $V(C){{for(var q=Object.keys(C.props),Z=0;Z<q.length;Z++){var ue=q[Z];if(ue!=="children"&&ue!=="key"){co(C),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ue),co(null);break}}C.ref!==null&&(co(C),y("Invalid attribute `ref` supplied to `React.Fragment`."),co(null))}}function QS(C,q,Z,ue,ve,xe){{var he=L(C);if(!he){var me="";(C===void 0||typeof C=="object"&&C!==null&&Object.keys(C).length===0)&&(me+=" 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 Xe=bV(ve);Xe?me+=Xe:me+=qS();var Fe;C===null?Fe="null":so(C)?Fe="array":C!==void 0&&C.$$typeof===t?(Fe="<"+(O(C.type)||"Unknown")+" />",me=" Did you accidentally export a JSX literal instead of a component?"):Fe=typeof C,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Fe,me)}var Ne=hV(C,q,Z,ve,xe);if(Ne==null)return Ne;if(he){var mt=q.children;if(mt!==void 0)if(ue)if(so(mt)){for(var uo=0;uo<mt.length;uo++)ZS(mt[uo],C);Object.freeze&&Object.freeze(mt)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ZS(mt,C)}return C===r?$V(Ne):yV(Ne),Ne}}function _V(C,q,Z){return QS(C,q,Z,!0)}function xV(C,q,Z){return QS(C,q,Z,!1)}var wV=xV,EV=_V;mo.Fragment=r,mo.jsx=wV,mo.jsxs=EV}()),mo}process.env.NODE_ENV==="production"?ns.exports=n5():ns.exports=r5();var rs=ns.exports;const fn=rs.Fragment,E=rs.jsx,X=rs.jsxs;function N(){return N=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},N.apply(this,arguments)}function o5(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ka(...e){return t=>e.forEach(n=>o5(n,t))}function ye(...e){return c.useCallback(ka(...e),e)}const Ln=c.forwardRef((e,t)=>{const{children:n,...r}=e,o=c.Children.toArray(n),a=o.find(a5);if(a){const i=a.props.children,l=o.map(s=>s===a?c.Children.count(i)>1?c.Children.only(null):c.isValidElement(i)?i.props.children:null:s);return c.createElement(os,N({},r,{ref:t}),c.isValidElement(i)?c.cloneElement(i,void 0,l):null)}return c.createElement(os,N({},r,{ref:t}),n)});Ln.displayName="Slot";const os=c.forwardRef((e,t)=>{const{children:n,...r}=e;return c.isValidElement(n)?c.cloneElement(n,{...i5(r,n.props),ref:t?ka(t,n.ref):n.ref}):c.Children.count(n)>1?c.Children.only(null):null});os.displayName="SlotClone";const as=({children:e})=>c.createElement(c.Fragment,null,e);function a5(e){return c.isValidElement(e)&&e.type===as}function i5(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]=(...l)=>{a(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const ce=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=c.forwardRef((r,o)=>{const{asChild:a,...i}=r,l=a?Ln:t;return c.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),c.createElement(l,N({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function is(e,t){e&&fo.flushSync(()=>e.dispatchEvent(t))}const ls=c.forwardRef((e,t)=>c.createElement(ce.span,N({},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}}))),ap=ls,l5=({children:e,label:t})=>{const n=c.Children.only(e);return c.createElement(c.Fragment,null,c.cloneElement(n,{"aria-hidden":"true",focusable:"false"}),c.createElement(ap,null,t))};function go({children:e,label:t}){return E(l5,{label:t,children:e})}function s5(e,t){const n=c.createContext(t);function r(a){const{children:i,...l}=a,s=c.useMemo(()=>l,Object.values(l));return c.createElement(n.Provider,{value:s},i)}function o(a){const i=c.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function Ke(e,t=[]){let n=[];function r(a,i){const l=c.createContext(i),s=n.length;n=[...n,i];function u(f){const{scope:m,children:g,...h}=f,b=(m==null?void 0:m[e][s])||l,v=c.useMemo(()=>h,Object.values(h));return c.createElement(b.Provider,{value:v},g)}function d(f,m){const g=(m==null?void 0:m[e][s])||l,h=c.useContext(g);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,d]}const o=()=>{const a=n.map(i=>c.createContext(i));return function(l){const s=(l==null?void 0:l[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[r,c5(o,...t)]}function c5(...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((l,{useScope:s,scopeName:u})=>{const f=s(a)[`__scope${u}`];return{...l,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Aa(e){const t=e+"CollectionProvider",[n,r]=Ke(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:h,children:b}=g,v=D.default.useRef(null),_=D.default.useRef(new Map).current;return D.default.createElement(o,{scope:h,itemMap:_,collectionRef:v},b)},l=e+"CollectionSlot",s=D.default.forwardRef((g,h)=>{const{scope:b,children:v}=g,_=a(l,b),y=ye(h,_.collectionRef);return D.default.createElement(Ln,{ref:y},v)}),u=e+"CollectionItemSlot",d="data-radix-collection-item",f=D.default.forwardRef((g,h)=>{const{scope:b,children:v,..._}=g,y=D.default.useRef(null),w=ye(h,y),S=a(u,b);return D.default.useEffect(()=>(S.itemMap.set(y,{ref:y,..._}),()=>void S.itemMap.delete(y))),D.default.createElement(Ln,{[d]:"",ref:w},v)});function m(g){const h=a(e+"CollectionConsumer",g);return D.default.useCallback(()=>{const v=h.collectionRef.current;if(!v)return[];const _=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((S,P)=>_.indexOf(S.ref.current)-_.indexOf(P.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:i,Slot:s,ItemSlot:f},m,r]}function Q(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 je(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Ue({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=u5({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,l=je(n),s=c.useCallback(u=>{if(a){const f=typeof u=="function"?u(e):u;f!==e&&l(f)}else o(u)},[a,e,o,l]);return[i,s]}function u5({defaultProp:e,onChange:t}){const n=c.useState(e),[r]=n,o=c.useRef(r),a=je(t);return c.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const pn=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{};function d5(e,t){return c.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const We=e=>{const{present:t,children:n}=e,r=f5(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),a=ye(r.ref,o.ref);return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:a}):null};We.displayName="Presence";function f5(e){const[t,n]=c.useState(),r=c.useRef({}),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[l,s]=d5(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=Ia(r.current);a.current=l==="mounted"?u:"none"},[l]),pn(()=>{const u=r.current,d=o.current;if(d!==e){const m=a.current,g=Ia(u);e?s("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(d&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),pn(()=>{if(t){const u=f=>{const g=Ia(r.current).includes(f.animationName);f.target===t&&g&&fo.flushSync(()=>s("ANIMATION_END"))},d=f=>{f.target===t&&(a.current=Ia(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ia(e){return(e==null?void 0:e.animationName)||"none"}const p5=D["useId".toString()]||(()=>{});let m5=0;function nt(e){const[t,n]=D.useState(p5());return pn(()=>{e||n(r=>r??String(m5++))},[e]),e||(t?`radix-${t}`:"")}const ip="Collapsible",[g5,lp]=Ke(ip),[h5,ss]=g5(ip),b5=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...l}=e,[s=!1,u]=Ue({prop:r,defaultProp:o,onChange:i});return c.createElement(h5,{scope:n,disabled:a,contentId:nt(),open:s,onOpenToggle:c.useCallback(()=>u(d=>!d),[u])},c.createElement(ce.div,N({"data-state":cs(s),"data-disabled":a?"":void 0},l,{ref:t})))}),v5="CollapsibleTrigger",y5=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=ss(v5,n);return c.createElement(ce.button,N({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":cs(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:Q(e.onClick,o.onOpenToggle)}))}),sp="CollapsibleContent",$5=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ss(sp,e.__scopeCollapsible);return c.createElement(We,{present:n||o.open},({present:a})=>c.createElement(_5,N({},r,{ref:t,present:a})))}),_5=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=ss(sp,n),[l,s]=c.useState(r),u=c.useRef(null),d=ye(t,u),f=c.useRef(0),m=f.current,g=c.useRef(0),h=g.current,b=i.open||l,v=c.useRef(b),_=c.useRef();return c.useEffect(()=>{const y=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(y)},[]),pn(()=>{const y=u.current;if(y){_.current=_.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const w=y.getBoundingClientRect();f.current=w.height,g.current=w.width,v.current||(y.style.transitionDuration=_.current.transitionDuration,y.style.animationName=_.current.animationName),s(r)}},[i.open,r]),c.createElement(ce.div,N({"data-state":cs(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!b},a,{ref:d,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style}}),b&&o)});function cs(e){return e?"open":"closed"}const x5=b5,w5=y5,E5=$5,S5=c.createContext(void 0);function ar(e){const t=c.useContext(S5);return e||t||"ltr"}const mn="Accordion",D5=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[us,P5,T5]=Aa(mn),[Oa,PV]=Ke(mn,[T5,lp]),ds=lp(),cp=D.default.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return D.default.createElement(us.Provider,{scope:e.__scopeAccordion},n==="multiple"?D.default.createElement(I5,N({},a,{ref:t})):D.default.createElement(A5,N({},o,{ref:t})))});cp.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[up,C5]=Oa(mn),[dp,k5]=Oa(mn,{collapsible:!1}),A5=D.default.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[l,s]=Ue({prop:n,defaultProp:r,onChange:o});return D.default.createElement(up,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:D.default.useCallback(()=>a&&s(""),[a,s])},D.default.createElement(dp,{scope:e.__scopeAccordion,collapsible:a},D.default.createElement(fp,N({},i,{ref:t}))))}),I5=D.default.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],l]=Ue({prop:n,defaultProp:r,onChange:o}),s=D.default.useCallback(d=>l((f=[])=>[...f,d]),[l]),u=D.default.useCallback(d=>l((f=[])=>f.filter(m=>m!==d)),[l]);return D.default.createElement(up,{scope:e.__scopeAccordion,value:i,onItemOpen:s,onItemClose:u},D.default.createElement(dp,{scope:e.__scopeAccordion,collapsible:!0},D.default.createElement(fp,N({},a,{ref:t}))))}),[O5,Ma]=Oa(mn),fp=D.default.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...i}=e,l=D.default.useRef(null),s=ye(l,t),u=P5(n),f=ar(o)==="ltr",m=Q(e.onKeyDown,g=>{var h;if(!D5.includes(g.key))return;const b=g.target,v=u().filter(k=>{var L;return!((L=k.ref.current)!==null&&L!==void 0&&L.disabled)}),_=v.findIndex(k=>k.ref.current===b),y=v.length;if(_===-1)return;g.preventDefault();let w=_;const S=0,P=y-1,T=()=>{w=_+1,w>P&&(w=S)},M=()=>{w=_-1,w<S&&(w=P)};switch(g.key){case"Home":w=S;break;case"End":w=P;break;case"ArrowRight":a==="horizontal"&&(f?T():M());break;case"ArrowDown":a==="vertical"&&T();break;case"ArrowLeft":a==="horizontal"&&(f?M():T());break;case"ArrowUp":a==="vertical"&&M();break}const $=w%y;(h=v[$].ref.current)===null||h===void 0||h.focus()});return D.default.createElement(O5,{scope:n,disabled:r,direction:o,orientation:a},D.default.createElement(us.Slot,{scope:n},D.default.createElement(ce.div,N({},i,{"data-orientation":a,ref:s,onKeyDown:r?void 0:m}))))}),fs="AccordionItem",[M5,ps]=Oa(fs),F5=D.default.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=Ma(fs,n),i=C5(fs,n),l=ds(n),s=nt(),u=r&&i.value.includes(r)||!1,d=a.disabled||e.disabled;return D.default.createElement(M5,{scope:n,open:u,disabled:d,triggerId:s},D.default.createElement(x5,N({"data-orientation":a.orientation,"data-state":mp(u)},l,o,{ref:t,disabled:d,open:u,onOpenChange:f=>{f?i.onItemOpen(r):i.onItemClose(r)}})))}),L5="AccordionHeader",N5=D.default.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Ma(mn,n),a=ps(L5,n);return D.default.createElement(ce.h3,N({"data-orientation":o.orientation,"data-state":mp(a.open),"data-disabled":a.disabled?"":void 0},r,{ref:t}))}),pp="AccordionTrigger",z5=D.default.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Ma(mn,n),a=ps(pp,n),i=k5(pp,n),l=ds(n);return D.default.createElement(us.ItemSlot,{scope:n},D.default.createElement(w5,N({"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId},l,r,{ref:t})))}),R5="AccordionContent",K5=D.default.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Ma(mn,n),a=ps(R5,n),i=ds(n);return D.default.createElement(E5,N({role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation},i,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function mp(e){return e?"open":"closed"}const V5=cp,B5=F5,j5=N5,U5=z5,W5=K5,p={border_radius_0:"0",border_radius_100:"1px",border_radius_200:"2px",border_radius_400:"4px",border_radius_800:"8px",border_radius_pill:"9999em",border_radius_circle:"50%",border_width_0:"0",border_width_100:"1px",border_width_200:"2px",color_brand_tangerine:"#D58844",color_brand_lilac:"#A067A0",color_brand_solidago:"#D1C252",color_brand_solidago_opacity_48:"rgba(209, 194, 82, .48)",color_brand_red:"#DA5B40",color_brand_red_dark:"#BE4F37",color_brand_red_opacity_20:"rgba(218, 91, 64, 0.2)",color_brand_red_opacity_24:"rgba(218, 91, 64, 0.24)",color_brand_red_opacity_32:"rgba(218, 91, 64, 0.32)",color_brand_red_opacity_48:"rgba(218, 91, 64, 0.48)",color_brand_red_opacity_90:"rgba(218, 91, 64, 0.9)",color_brand_gray_50:"#E9E8E3",color_brand_gray_100:"#CECDC8",color_brand_gray_200:"#BCBAB6",color_brand_gray_300:"#AAA7A4",color_brand_gray_400:"#8E8B88",color_brand_gray_500:"#85827F",color_brand_gray_600:"#72706D",color_brand_gray_700:"#605D5B",color_brand_gray_800:"#4E4A49",color_brand_gray_900:"#3B3836",color_gray_2:"#090909",color_gray_4:"#0E0E0E",color_gray_6:"#131313",color_gray_8:"#181818",color_gray_10:"#1D1D1D",color_gray_12:"#222222",color_gray_14:"#272727",color_gray_16:"#2C2C2C",color_gray_18:"#313131",color_gray_20:"#363636",color_gray_22:"#3B3B3B",color_gray_24:"#404040",color_gray_26:"#454545",color_gray_28:"#4A4A4A",color_gray_30:"#4F4F4F",color_gray_32:"#545454",color_gray_34:"#595959",color_gray_36:"#5E5E5E",color_gray_38:"#636363",color_gray_40:"#686868",color_gray_42:"#6D6D6D",color_gray_44:"#727272",color_gray_46:"#777777",color_gray_48:"#7C7C7C",color_gray_50:"#818181",color_gray_52:"#868686",color_gray_54:"#8B8B8B",color_gray_56:"#909090",color_gray_58:"#959595",color_gray_60:"#9A9A9A",color_gray_62:"#9F9F9F",color_gray_64:"#A4A4A4",color_gray_66:"#A9A9A9",color_gray_68:"#AEAEAE",color_gray_70:"#B3B3B3",color_gray_72:"#B8B8B8",color_gray_74:"#BDBDBD",color_gray_76:"#C2C2C2",color_gray_78:"#C7C7C7",color_gray_80:"#CCCCCC",color_gray_82:"#D1D1D1",color_gray_84:"#D6D6D6",color_gray_86:"#DBDBDB",color_gray_88:"#E0E0E0",color_gray_90:"#E6E6E6",color_gray_92:"#EDEDED",color_gray_94:"#F0F0F0",color_gray_96:"#F6F6F6",color_gray_98:"#FAFAFA",color_gray_opacity_1:"rgba(0, 0, 0, 0.01)",color_gray_opacity_2:"rgba(0, 0, 0, 0.02)",color_gray_opacity_3:"rgba(0, 0, 0, 0.03)",color_gray_opacity_4:"rgba(0, 0, 0, 0.04)",color_gray_opacity_5:"rgba(0, 0, 0, 0.05)",color_gray_opacity_6:"rgba(0, 0, 0, 0.06)",color_gray_opacity_7:"rgba(0, 0, 0, 0.07)",color_gray_opacity_8:"rgba(0, 0, 0, 0.08)",color_gray_opacity_9:"rgba(0, 0, 0, 0.09)",color_gray_opacity_10:"rgba(0, 0, 0, 0.1)",color_gray_opacity_11:"rgba(0, 0, 0, 0.11)",color_gray_opacity_12:"rgba(0, 0, 0, 0.12)",color_gray_opacity_13:"rgba(0, 0, 0, 0.13)",color_gray_opacity_14:"rgba(0, 0, 0, 0.14)",color_gray_opacity_15:"rgba(0, 0, 0, 0.15)",color_gray_opacity_16:"rgba(0, 0, 0, 0.16)",color_gray_opacity_17:"rgba(0, 0, 0, 0.17)",color_gray_opacity_18:"rgba(0, 0, 0, 0.18)",color_gray_opacity_19:"rgba(0, 0, 0, 0.19)",color_gray_opacity_20:"rgba(0, 0, 0, 0.2)",color_gray_opacity_21:"rgba(0, 0, 0, 0.21)",color_gray_opacity_22:"rgba(0, 0, 0, 0.22)",color_gray_opacity_23:"rgba(0, 0, 0, 0.23)",color_gray_opacity_24:"rgba(0, 0, 0, 0.24)",color_gray_opacity_25:"rgba(0, 0, 0, 0.25)",color_gray_opacity_26:"rgba(0, 0, 0, 0.26)",color_gray_opacity_27:"rgba(0, 0, 0, 0.27)",color_gray_opacity_28:"rgba(0, 0, 0, 0.28)",color_gray_opacity_29:"rgba(0, 0, 0, 0.29)",color_gray_opacity_30:"rgba(0, 0, 0, 0.3)",color_gray_opacity_31:"rgba(0, 0, 0, 0.31)",color_gray_opacity_32:"rgba(0, 0, 0, 0.32)",color_gray_opacity_33:"rgba(0, 0, 0, 0.33)",color_gray_opacity_34:"rgba(0, 0, 0, 0.34)",color_gray_opacity_35:"rgba(0, 0, 0, 0.35)",color_gray_opacity_36:"rgba(0, 0, 0, 0.36)",color_gray_opacity_37:"rgba(0, 0, 0, 0.37)",color_gray_opacity_38:"rgba(0, 0, 0, 0.38)",color_gray_opacity_39:"rgba(0, 0, 0, 0.39)",color_gray_opacity_40:"rgba(0, 0, 0, 0.4)",color_gray_opacity_41:"rgba(0, 0, 0, 0.41)",color_gray_opacity_42:"rgba(0, 0, 0, 0.42)",color_gray_opacity_43:"rgba(0, 0, 0, 0.43)",color_gray_opacity_44:"rgba(0, 0, 0, 0.44)",color_gray_opacity_45:"rgba(0, 0, 0, 0.45)",color_gray_opacity_46:"rgba(0, 0, 0, 0.46)",color_gray_opacity_47:"rgba(0, 0, 0, 0.47)",color_gray_opacity_48:"rgba(0, 0, 0, 0.48)",color_gray_opacity_49:"rgba(0, 0, 0, 0.49)",color_gray_opacity_50:"rgba(0, 0, 0, 0.5)",color_gray_opacity_51:"rgba(0, 0, 0, 0.51)",color_gray_opacity_52:"rgba(0, 0, 0, 0.52)",color_gray_opacity_53:"rgba(0, 0, 0, 0.53)",color_gray_opacity_54:"rgba(0, 0, 0, 0.54)",color_gray_opacity_55:"rgba(0, 0, 0, 0.55)",color_gray_opacity_56:"rgba(0, 0, 0, 0.56)",color_gray_opacity_57:"rgba(0, 0, 0, 0.57)",color_gray_opacity_58:"rgba(0, 0, 0, 0.58)",color_gray_opacity_59:"rgba(0, 0, 0, 0.59)",color_gray_opacity_60:"rgba(0, 0, 0, 0.6)",color_gray_opacity_61:"rgba(0, 0, 0, 0.61)",color_gray_opacity_62:"rgba(0, 0, 0, 0.62)",color_gray_opacity_63:"rgba(0, 0, 0, 0.63)",color_gray_opacity_64:"rgba(0, 0, 0, 0.64)",color_gray_opacity_65:"rgba(0, 0, 0, 0.65)",color_gray_opacity_66:"rgba(0, 0, 0, 0.66)",color_gray_opacity_67:"rgba(0, 0, 0, 0.67)",color_gray_opacity_68:"rgba(0, 0, 0, 0.68)",color_gray_opacity_69:"rgba(0, 0, 0, 0.69)",color_gray_opacity_70:"rgba(0, 0, 0, 0.7)",color_gray_opacity_71:"rgba(0, 0, 0, 0.71)",color_gray_opacity_72:"rgba(0, 0, 0, 0.72)",color_gray_opacity_73:"rgba(0, 0, 0, 0.73)",color_gray_opacity_74:"rgba(0, 0, 0, 0.74)",color_gray_opacity_75:"rgba(0, 0, 0, 0.75)",color_gray_opacity_76:"rgba(0, 0, 0, 0.76)",color_gray_opacity_77:"rgba(0, 0, 0, 0.77)",color_gray_opacity_78:"rgba(0, 0, 0, 0.78)",color_gray_opacity_79:"rgba(0, 0, 0, 0.79)",color_gray_opacity_80:"rgba(0, 0, 0, 0.8)",color_gray_opacity_81:"rgba(0, 0, 0, 0.81)",color_gray_opacity_82:"rgba(0, 0, 0, 0.82)",color_gray_opacity_83:"rgba(0, 0, 0, 0.83)",color_gray_opacity_84:"rgba(0, 0, 0, 0.84)",color_gray_opacity_85:"rgba(0, 0, 0, 0.85)",color_gray_opacity_86:"rgba(0, 0, 0, 0.86)",color_gray_opacity_87:"rgba(0, 0, 0, 0.87)",color_gray_opacity_88:"rgba(0, 0, 0, 0.88)",color_gray_opacity_89:"rgba(0, 0, 0, 0.89)",color_gray_opacity_90:"rgba(0, 0, 0, 0.9)",color_gray_opacity_91:"rgba(0, 0, 0, 0.91)",color_gray_opacity_92:"rgba(0, 0, 0, 0.92)",color_gray_opacity_93:"rgba(0, 0, 0, 0.93)",color_gray_opacity_94:"rgba(0, 0, 0, 0.94)",color_gray_opacity_95:"rgba(0, 0, 0, 0.95)",color_gray_opacity_96:"rgba(0, 0, 0, 0.96)",color_gray_opacity_97:"rgba(0, 0, 0, 0.97)",color_gray_opacity_98:"rgba(0, 0, 0, 0.98)",color_gray_opacity_99:"rgba(0, 0, 0, 0.99)",color_black:"#000000",color_white:"#FFFFFF",color_green:"#0DA166",color_green_opacity_48:"rgba(13, 161, 102, .48)",color_event_fill_faded_pickup:"rgba(218, 91, 64, 0.30)",color_event_fill_faded_dropoff:"rgba(18, 88, 210, 0.30)",color_event_fill_faded_stop:"rgba(192, 178, 45, 0.30)",color_event_fill_faded_incomplete:"rgba(120, 120, 120, 0.30)",color_event_fill_faded_arrival:"#CCCCCC",color_event_fill_faded_departure:"#CCCCCC",color_event_fill_faded_online:"rgba(13, 161, 102, 0.30)",color_event_fill_faded_offline:"rgba(62, 62, 62, 0.30)",color_event_fill_solid_pickup:"rgba(218, 91, 64, 1)",color_event_fill_solid_dropoff:"rgba(18, 88, 210, 1)",color_event_fill_solid_stop:"rgba(192, 178, 45, 1)",color_event_fill_solid_incomplete:"rgba(120, 120, 120, 1)",color_event_fill_solid_arrival:"#CCCCCC",color_event_fill_solid_departure:"#CCCCCC",color_event_fill_solid_online:"rgba(13, 161, 102, 1)",color_event_fill_solid_offline:"rgba(62, 62, 62, 1)",color_event_outline_faded_pickup:"rgba(218, 91, 64, 0.15)",color_event_outline_faded_dropoff:"rgba(18, 88, 210, 0.15)",color_event_outline_faded_stop:"rgba(210, 195, 56, 0.15)",color_event_outline_faded_incomplete:"rgba(0, 0, 0, 0.15)",color_event_outline_faded_online:"rgba(13, 161, 102, 0.15)",color_event_outline_faded_offline:"rgba(62, 62, 62, 0.15)",color_deprecated_background_white_standard:"#FFFFFF",color_deprecated_background_white_strong:"hsl(0deg 0% 94%)",color_deprecated_background_white_weak:"hsl(0deg 0% 96%)",color_deprecated_background_black_standard:"hsl(0deg 0% 16%)",color_deprecated_background_black_strong:"hsl(0deg 0% 8%)",color_deprecated_background_black_weak:"hsl(0deg 0% 12%)",color_deprecated_background_sentiment_negative:"hsl(11deg 68% 55%)",color_deprecated_background_sentiment_positive:"hsl(54deg 63% 52%)",color_deprecated_background_sentiment_notice:"hsl(29deg 74% 53%)",color_deprecated_background_sentiment_neutral:"hsl(0deg 0% 10%)",color_deprecated_divider_standard:"hsl(0deg 0% 0% / 12%)",color_deprecated_divider_strong:"hsl(0deg 0% 0% 16%)",color_deprecated_divider_weak:"hsl(0deg 0% 0% / 8%)",color_deprecated_divider_inverse_standard:"hsl(0deg 0% 100% 32%)",color_deprecated_divider_inverse_strong:"hsl(0deg 0% 100% 48%)",color_deprecated_divider_inverse_weak:"hsl(0deg 0% 100% 24%)",color_deprecated_text_standard:"hsl(0deg 0% 32%)",color_deprecated_text_strong:"#000000",color_deprecated_text_weak:"hsl(0deg 0% 56%)",color_deprecated_text_white_standard:"hsl(0deg 0% 84%)",color_deprecated_text_white_strong:"#FFFFFF",color_deprecated_text_white_weak:"hsl(0deg 0% 64%)",color_deprecated_text_sentiment_negative:"hsl(11deg, 68% 55%)",color_deprecated_text_sentiment_positive:"hsl(54deg, 63% 52%)",color_deprecated_text_sentiment_notice:"hsl(29deg, 67% 47%)",color_deprecated_text_sentiment_neutral:"hsl(0deg 0% 24%)",color_deprecated_fill_primary_enabled:"hsl(0deg 0% 8%)",color_deprecated_fill_primary_hover:"hsl(210deg 5% 16%)",color_deprecated_fill_primary_pressed:"hsl(210deg 3% 28%)",color_deprecated_fill_primary_disabled:"hsl(0deg 0% 8% / 20%)",color_deprecated_fill_secondary_enabled:"hsl(0deg 0% 0% 0.06)",color_deprecated_fill_secondary_hover:"hsl(0deg 0% 0% / 12%)",color_deprecated_fill_secondary_pressed:"hsl(0deg 0% 0% / 20%)",color_deprecated_fill_secondary_disabled:"hsl(0deg 0% 88% / 50%)",color_deprecated_fill_inverse_enabled:"#FFFFFF",color_deprecated_fill_inverse_hover:"hsl(0deg 0% 94%)",color_deprecated_fill_inverse_pressed:"hsl(0deg 0% 90%)",color_deprecated_fill_inverse_disabled:"hsl(0deg 0% 98% / 40%)",color_deprecated_fill_danger_enabled:"hsl(11deg 68% 55%)",color_deprecated_fill_danger_hover:"hsl(11deg 57% 51%)",color_deprecated_fill_danger_pressed:"hsl(11deg 55% 48%)",color_deprecated_fill_danger_disabled:"hsl(11deg 68% 55% / 20%)",color_deprecated_outline_primary_danger_enabled:"hsl(11deg 68% 55% / 24%)",color_deprecated_outline_primary_danger_hover:"hsl(11deg 68% 55% / 48%)",color_deprecated_outline_primary_danger_pressed:"hsl(11deg, 68% 55% / 72%)",color_deprecated_outline_primary_danger_disabled:"hsl(11deg, 68% 55% / 16%)",color_deprecated_outline_primary_danger_selected_enabled:"hsl(11deg 68% 55% 96%)",color_deprecated_outline_primary_danger_selected_hover:"hsl(11deg 68% 55% 96%)",color_deprecated_outline_primary_danger_selected_pressed:"hsl(11deg, 68% 55% 96%)",color_deprecated_outline_secondary_enabled:"hsl(0deg 0% 0% / 16%)",color_deprecated_outline_secondary_hover:"hsl(0deg 0% 0% / 32%)",color_deprecated_outline_secondary_pressed:"hsl(0deg 0% 0% / 48%)",color_deprecated_outline_secondary_disabled:"hsl(0deg 0% 14% / 16%)",color_deprecated_outline_secondary_selected_enabled:"hsl(0deg 0% 0% / 6%)",color_deprecated_outline_secondary_selected_hover:"hsl(0deg 0% 0% / 72%)",color_deprecated_outline_secondary_selected_pressed:"hsl(0deg 0% 0% / 76%)",color_deprecated_outline_inverse_enabled:"hsl(0deg 0% 100% / 32%)",color_deprecated_outline_inverse_hover:"hsl(0deg 0% 100% / 48%)",color_deprecated_outline_inverse_pressed:"hsl(0deg 0% 100% / 56%)",color_deprecated_outline_inverse_disabled:"hsl(0deg 0% 100% / 2%)",color_deprecated_outline_inverse_selected_enabled:"hsl(0deg 0% 100% / 6%)",color_deprecated_outline_inverse_selected_hover:"hsl(0deg 0% 100% / 72%)",color_deprecated_outline_inverse_selected_pressed:"hsl(0deg 0% 100% / 8%)",color_deprecated_outline_danger_enabled:"hsl(11deg 68% 55%)",color_deprecated_outline_danger_hover:"hsl(11deg 68% 55% / 90%)",color_deprecated_outline_danger_pressed:"hsl(11deg 68% 55% / 90%)",color_deprecated_outline_danger_disabled:"hsl(11deg 68% 55% / 32%)",color_deprecated_overlay_secondary_enabled:"#FFFFFF",color_deprecated_overlay_secondary_hover:"hsl(0deg 0% 97%)",color_deprecated_overlay_secondary_pressed:"hsl(0deg 0% 92%)",color_deprecated_overlay_secondary_selected_enabled:"hsl(0deg 0% 94%)",color_deprecated_overlay_secondary_selected_hover:"hsl(0deg 0% 91%)",color_deprecated_overlay_secondary_selected_pressed:"hsl(0deg 0% 88%)",color_deprecated_overlay_inverse_enabled:"#000000",color_deprecated_overlay_inverse_hover:"hsl(0deg 0% 4%)",color_deprecated_overlay_inverse_pressed:"hsl(0deg 0% 12%)",color_deprecated_overlay_inverse_selected_enabled:"hsl(0deg 0% 10%)",color_deprecated_overlay_inverse_selected_hover:"hsl(0deg 0% 16%)",color_deprecated_overlay_inverse_selected_pressed:"hsl(0deg 0% 24%)",elevation_static_low:"0px 1px 1px rgba(0, 0, 0, 0.07), 0px 1px 2px rgba(0, 0, 0, 0.08), 0px 2px 2px rgba(0, 0, 0, 0.1), 0px 0px 8px rgba(0, 0, 0, 0.05)",elevation_static_medium:"0px 1px 1px rgba(0, 0, 0, 0.05), 0px 2px 2px rgba(0, 0, 0, 0.05), 0px 5px 5px rgba(0, 0, 0, 0.05), 0px 10px 10px rgba(0, 0, 0, 0.05), 0px 0px 8px rgba(0, 0, 0, 0.05)",elevation_static_high:"0px 2px 4px rgba(0, 0, 0, 0.03), 0px 6px 6px rgba(0, 0, 0, 0.03), 0px 15px 20px rgba(0, 0, 0, 0.03), 0px 30px 40px rgba(0, 0, 0, 0.03), 0px 40px 70px rgba(0, 0, 0, 0.03), 0px 4px 30px rgba(0, 0, 0, 0.03), 0px 0px 8px rgba(0, 0, 0, 0.03)",elevation_interactive_down:"inset 0px 1000px 250px rgba(0, 0, 0, 0.04)",elevation_interactive_low:"0px 1px 1px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 0px 2px rgba(0, 0, 0, 0.07)",elevation_interactive_medium:"0px 1px 1px rgba(0, 0, 0, 0.1), 0px 2px 2px rgba(0, 0, 0, 0.05), 0px 2px 4px rgba(0, 0, 0, 0.07), 0px 1px 4px rgba(0, 0, 0, 0.08)",elevation_interactive_high:"0px 2px 4px rgba(0, 0, 0, 0.05), 0px 3px 5px rgba(0, 0, 0, 0.05), 0px 4px 6px rgba(0, 0, 0, 0.05), 0px 4px 20px rgba(0, 0, 0, 0.05)",z_index_auto:"auto",z_index_below:"-1",z_index_base:"0",z_index_above:"1",z_index_foreground:"2",z_index_foreground_high:"3",z_index_foreground_highest:"4",z_index_overlay:"5",z_index_overlay_high:"6",font_family_pingo:"'Inter', -apple-system, Helvetica, sans-serif",font_family_monospace:"'SFMono-Regular', Monaco, Consolas, 'Lucida Console', monospace",feature_settings_number:"'tnum' on, 'lnum' on, 'ss01' on",letter_spacing_1:"-0.0625em",letter_spacing_2:"-0.0600em",letter_spacing_3:"-0.0575em",letter_spacing_4:"-0.0550em",letter_spacing_5:"-0.0525em",letter_spacing_6:"-0.0500em",letter_spacing_7:"-0.0475em",letter_spacing_8:"-0.0450em",letter_spacing_9:"-0.0425em",letter_spacing_10:"-0.0400em",letter_spacing_11:"-0.0375em",letter_spacing_12:"-0.0350em",letter_spacing_13:"-0.0325em",letter_spacing_14:"-0.0300em",letter_spacing_15:"-0.0275em",letter_spacing_16:"-0.0250em",letter_spacing_17:"-0.0225em",letter_spacing_18:"-0.0200em",letter_spacing_19:"-0.0175em",letter_spacing_20:"-0.0150em",letter_spacing_21:"-0.0125em",letter_spacing_22:"-0.0100em",letter_spacing_23:"-0.0075em",letter_spacing_24:"-0.0050em",letter_spacing_25:"-0.0025em",letter_spacing_26:"0.0025em",letter_spacing_27:"0.0050em",letter_spacing_28:"0.0075em",letter_spacing_29:"0.0100em",letter_spacing_30:"0.0125em",letter_spacing_31:"0.0150em",letter_spacing_32:"0.0175em",letter_spacing_33:"0.0200em",letter_spacing_deprecated_tight:"-0.006em",letter_spacing_deprecated_tighter:"-0.01em",letter_spacing_deprecated_heading_large:"-0.018em",letter_spacing_deprecated_heading_medium:"-0.016em",letter_spacing_deprecated_heading_small:"-0.014em",letter_spacing_deprecated_title_large:"-0.014em",letter_spacing_deprecated_title_medium:"-0.012em",letter_spacing_deprecated_title_small:"-0.01em",letter_spacing_deprecated_title_xsmall:"-0.008em",letter_spacing_deprecated_label_large:"-0.01em",letter_spacing_deprecated_label_medium:"normal",letter_spacing_deprecated_label_small:"-0.006em",letter_spacing_deprecated_body_large:"-0.01em",letter_spacing_deprecated_body_medium:"-0.006em",letter_spacing_deprecated_body_small:"normal",letter_spacing_deprecated_number_large:"-0.05em",letter_spacing_deprecated_number_medium:"-0.05em",letter_spacing_deprecated_number_small:"-0.04em",letter_spacing_deprecated_number_xsmall:"-0.05em",letter_spacing_deprecated_caption_medium:"0.01em",letter_spacing_deprecated_caption_small:"0.02em",line_height_50:"0.875rem",line_height_100:"1rem",line_height_150:"1.125rem",line_height_200:"1.25rem",line_height_250:"1.375rem",line_height_300:"1.5rem",line_height_350:"1.625rem",line_height_400:"1.75rem",line_height_450:"1.875rem",line_height_500:"2rem",line_height_550:"2.75rem",line_height_600:"2.5rem",line_height_650:"3.25rem",line_height_700:"3.5rem",line_height_750:"4rem",line_height_800:"4.25rem",line_height_850:"4.75rem",line_height_deprecated_111:1.11,line_height_deprecated_114:1.14,line_height_deprecated_129:1.29,line_height_deprecated_133:1.33,line_height_deprecated_143:1.43,line_height_deprecated_title_large:1.06,line_height_deprecated_title_medium:1.08,line_height_deprecated_title_small:1.1,line_height_deprecated_title_xsmall:1.11,line_height_deprecated_label_large:1.11,line_height_deprecated_label_medium:1.12,line_height_deprecated_label_small:1.14,line_height_deprecated_body_large:1.25,line_height_deprecated_body_medium:1.29,line_height_deprecated_body_small:1.33,line_height_deprecated_number_large:1.25,line_height_deprecated_number_medium:1.14,line_height_deprecated_number_small:1.17,line_height_deprecated_number_xsmall:1.2,line_height_deprecated_caption_medium:1.17,line_height_deprecated_caption_small:1.2,font_size_50:"0.25rem",font_size_75:"0.375rem",font_size_100:"0.5rem",font_size_125:"0.625rem",font_size_150:"0.75rem",font_size_160:"0.8125rem",font_size_175:"0.875rem",font_size_200:"1rem",font_size_225:"1.125rem",font_size_250:"1.25rem",font_size_275:"1.375rem",font_size_300:"1.5rem",font_size_325:"1.625rem",font_size_350:"1.75rem",font_size_375:"1.875rem",font_size_400:"2rem",font_size_425:"2.125rem",font_size_450:"2.25rem",font_size_475:"2.375rem",font_size_500:"2.5rem",font_size_525:"2.625rem",font_size_550:"2.75rem",font_size_575:"2.875rem",font_size_600:"3rem",font_size_625:"3.125rem",font_size_650:"3.25rem",font_size_675:"3.375rem",font_size_700:"3.5rem",font_size_725:"3.625rem",font_size_750:"3.75rem",font_size_775:"3.875rem",font_size_800:"4rem",font_size_825:"4.125rem",font_size_850:"4.25rem",font_size_875:"4.375rem",font_size_900:"4.5rem",font_size_925:"4.625rem",font_size_950:"4.75rem",font_size_root:"16px",font_size_deprecated_50:"0.75rem",font_size_deprecated_100:"0.875rem",font_size_deprecated_200:"1rem",font_size_deprecated_300:"1.125rem",font_size_deprecated_400:"1.25rem",font_size_deprecated_500:"1.5rem",font_size_deprecated_600:"2rem",font_size_deprecated_700:"2.75rem",font_size_deprecated_800:"3.5rem",font_size_deprecated_root:"16px",font_size_deprecated_heading_large:"4.5rem",font_size_deprecated_heading_medium:"3.5rem",font_size_deprecated_heading_small:"3rem",font_size_deprecated_title_large:"2.125rem",font_size_deprecated_title_medium:"1.5rem",font_size_deprecated_title_small:"1.25rem",font_size_deprecated_title_xsmall:"1.125rem",font_size_deprecated_label_large:"1.125rem",font_size_deprecated_label_medium:"16px",font_size_deprecated_label_small:"0.875rem",font_size_deprecated_body_large:"16px",font_size_deprecated_body_medium:"0.875rem",font_size_deprecated_body_small:"0.75rem",font_size_deprecated_number_large:"16px",font_size_deprecated_number_medium:"0.875rem",font_size_deprecated_number_small:"0.75rem",font_size_deprecated_number_xsmall:"0.625rem",font_size_deprecated_caption_medium:"0.875rem",font_size_deprecated_caption_small:"0.75rem",font_weight_100:"100",font_weight_200:"200",font_weight_300:"300",font_weight_400:"400",font_weight_500:"500",font_weight_600:"600",font_weight_700:"700",font_weight_800:"800",font_weight_900:"900",media_query_xs:"448px",media_query_sm:"720px",media_query_md:"960px",media_query_lg:"1200px",media_query_xl:"1440px",motion_duration_fast:"0.15s",motion_duration_medium:"0.3s",motion_duration_slow:"0.7s",deprecated_transition_duration_75:"75ms",deprecated_transition_duration_100:"100ms",deprecated_transition_duration_150:"150ms",deprecated_transition_duration_200:"200ms",deprecated_transition_duration_300:"300ms",motion_ease_in:"cubic-bezier(.35, 0, .7, .2)",motion_ease_out:"cubic-bezier(0, 0, .3, 1)",motion_ease_in_out:"cubic-bezier(.4, 0, .3, 1)",transition_property_color:"color, background-color, border-color, text-decoration-color, fill, stroke",transition_property_all:"all",transition_property_opacity:"opacity",transition_property_box_shadow:"box-shadow",transition_property_transform:"transform",sizing_0:"0rem",sizing_100:"0.25rem",sizing_200:"0.5rem",sizing_300:"0.75rem",sizing_350:"0.875rem",sizing_400:"1rem",sizing_450:"1.25rem",sizing_500:"1.5rem",sizing_550:"1.75rem",sizing_600:"2rem",sizing_650:"2.5rem",sizing_700:"3rem",sizing_750:"3.5rem",sizing_800:"4rem",sizing_850:"6rem",sizing_900:"10rem",sizing_1000:"20rem",sizing_1100:"28rem",sizing_1150:"35rem",sizing_1200:"45rem",sizing_1300:"60rem",sizing_1350:"66rem",sizing_1400:"75rem",sizing_1500:"90rem",spacing_0:"0rem",spacing_25:"0.0625rem",spacing_50:"0.125rem",spacing_75:"0.1875rem",spacing_100:"0.25rem",spacing_125:"0.3125rem",spacing_150:"0.375rem",spacing_175:"0.4375rem",spacing_200:"0.5rem",spacing_225:"0.5625rem",spacing_250:"0.625rem",spacing_275:"0.6875rem",spacing_300:"0.75rem",spacing_350:"0.875rem",spacing_400:"1rem",spacing_450:"1.25rem",spacing_500:"1.5rem",spacing_550:"1.75rem",spacing_600:"2rem",spacing_650:"2.5rem",spacing_700:"3rem",spacing_750:"3.5rem",spacing_800:"4rem",spacing_850:"6rem",spacing_900:"10rem"};function H5(e){return!!e}function Pt(e,t){const n={},r=new RegExp(`^(${t.join("|")})$`);for(const o in e)r.test(o)&&(n[o]=e[o]);return n}function G5(e=[],t={}){return{shouldForwardProp:(n,r)=>!e.includes(n)&&r(n),...t}}function ms(e){return Object.keys(e).reduce((t,n)=>(n.startsWith("aria-")&&(t[n]=e[n]),t),{})}function ho(){}function gp(){return typeof window<"u"}function gs(){return gp()?window:{matchMedia:ho,addEventListener:ho,removeEventListener:ho,setTimeout:ho,clearTimeout:ho}}function Y5(){try{return window.self!==window.top}catch{return!0}}const Fa={backspace:{key:"Backspace",keyCode:8,shiftKey:!1},enter:{key:"Enter",keyCode:13,shiftKey:!1},escape:{key:"Escape",keyCode:27,shiftKey:!1},arrowRight:{key:"ArrowRight",keyCode:39,shiftKey:!1},arrowLeft:{key:"ArrowLeft",keyCode:37,shiftKey:!1},arrowUp:{key:"ArrowUp",keyCode:38,shiftKey:!1},arrowDown:{key:"ArrowDown",keyCode:40,shiftKey:!1},home:{key:"Home",keyCode:36,shiftKey:!1},end:{key:"End",keyCode:35,shiftKey:!1},space:{key:" ",keyCode:32,shiftKey:!1},pageUp:{key:"PageUp",keyCode:33,shiftKey:!1},pageDown:{key:"PageDown",keyCode:34,shiftKey:!1},tab:{key:"Tab",keyCode:9,shiftKey:!1}};function q5(e,t){return!!Fa[e]&&(t.key===Fa[e].key||t.keyCode===Fa[e].keyCode)&&t.shiftKey===Fa[e].shiftKey}function hp(e,t){return function(r){if(q5(e,r))return t(r)}}/*
|
|
27
|
+
Check the top-level render call using <`+Z+">.")}return q}}function JS(C,q){{if(!C._store||C._store.validated||C.key!=null)return;C._store.validated=!0;var Z=vV(q);if(XS[Z])return;XS[Z]=!0;var ue="";C&&C._owner&&C._owner!==Zf.current&&(ue=" It was passed a child from "+O(C._owner.type)+"."),co(C),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Z,ue),co(null)}}function ZS(C,q){{if(typeof C!="object")return;if(so(C))for(var Z=0;Z<C.length;Z++){var ue=C[Z];ep(ue)&&JS(ue,q)}else if(ep(C))C._store&&(C._store.validated=!0);else if(C){var ve=v(C);if(typeof ve=="function"&&ve!==C.entries)for(var xe=ve.call(C),he;!(he=xe.next()).done;)ep(he.value)&&JS(he.value,q)}}}function yV(C){{var q=C.type;if(q==null||typeof q=="string")return;var Z;if(typeof q=="function")Z=q.propTypes;else if(typeof q=="object"&&(q.$$typeof===s||q.$$typeof===f))Z=q.propTypes;else return;if(Z){var ue=O(q);zt(Z,C.props,"prop",ue,C)}else if(q.PropTypes!==void 0&&!Qf){Qf=!0;var ve=O(q);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ve||"Unknown")}typeof q.getDefaultProps=="function"&&!q.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $V(C){{for(var q=Object.keys(C.props),Z=0;Z<q.length;Z++){var ue=q[Z];if(ue!=="children"&&ue!=="key"){co(C),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ue),co(null);break}}C.ref!==null&&(co(C),y("Invalid attribute `ref` supplied to `React.Fragment`."),co(null))}}function QS(C,q,Z,ue,ve,xe){{var he=F(C);if(!he){var me="";(C===void 0||typeof C=="object"&&C!==null&&Object.keys(C).length===0)&&(me+=" 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 Xe=bV(ve);Xe?me+=Xe:me+=qS();var Fe;C===null?Fe="null":so(C)?Fe="array":C!==void 0&&C.$$typeof===t?(Fe="<"+(O(C.type)||"Unknown")+" />",me=" Did you accidentally export a JSX literal instead of a component?"):Fe=typeof C,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Fe,me)}var Ne=hV(C,q,Z,ve,xe);if(Ne==null)return Ne;if(he){var mt=q.children;if(mt!==void 0)if(ue)if(so(mt)){for(var uo=0;uo<mt.length;uo++)ZS(mt[uo],C);Object.freeze&&Object.freeze(mt)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ZS(mt,C)}return C===r?$V(Ne):yV(Ne),Ne}}function _V(C,q,Z){return QS(C,q,Z,!0)}function xV(C,q,Z){return QS(C,q,Z,!1)}var wV=xV,EV=_V;mo.Fragment=r,mo.jsx=wV,mo.jsxs=EV}()),mo}process.env.NODE_ENV==="production"?ns.exports=n5():ns.exports=r5();var rs=ns.exports;const fn=rs.Fragment,E=rs.jsx,X=rs.jsxs;function N(){return N=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},N.apply(this,arguments)}function o5(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ka(...e){return t=>e.forEach(n=>o5(n,t))}function ye(...e){return c.useCallback(ka(...e),e)}const Ln=c.forwardRef((e,t)=>{const{children:n,...r}=e,o=c.Children.toArray(n),a=o.find(a5);if(a){const i=a.props.children,l=o.map(s=>s===a?c.Children.count(i)>1?c.Children.only(null):c.isValidElement(i)?i.props.children:null:s);return c.createElement(os,N({},r,{ref:t}),c.isValidElement(i)?c.cloneElement(i,void 0,l):null)}return c.createElement(os,N({},r,{ref:t}),n)});Ln.displayName="Slot";const os=c.forwardRef((e,t)=>{const{children:n,...r}=e;return c.isValidElement(n)?c.cloneElement(n,{...i5(r,n.props),ref:t?ka(t,n.ref):n.ref}):c.Children.count(n)>1?c.Children.only(null):null});os.displayName="SlotClone";const as=({children:e})=>c.createElement(c.Fragment,null,e);function a5(e){return c.isValidElement(e)&&e.type===as}function i5(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]=(...l)=>{a(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const ce=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=c.forwardRef((r,o)=>{const{asChild:a,...i}=r,l=a?Ln:t;return c.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),c.createElement(l,N({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function is(e,t){e&&fo.flushSync(()=>e.dispatchEvent(t))}const ls=c.forwardRef((e,t)=>c.createElement(ce.span,N({},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}}))),ap=ls,l5=({children:e,label:t})=>{const n=c.Children.only(e);return c.createElement(c.Fragment,null,c.cloneElement(n,{"aria-hidden":"true",focusable:"false"}),c.createElement(ap,null,t))};function go({children:e,label:t}){return E(l5,{label:t,children:e})}function s5(e,t){const n=c.createContext(t);function r(a){const{children:i,...l}=a,s=c.useMemo(()=>l,Object.values(l));return c.createElement(n.Provider,{value:s},i)}function o(a){const i=c.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function Ke(e,t=[]){let n=[];function r(a,i){const l=c.createContext(i),s=n.length;n=[...n,i];function u(f){const{scope:m,children:g,...h}=f,b=(m==null?void 0:m[e][s])||l,v=c.useMemo(()=>h,Object.values(h));return c.createElement(b.Provider,{value:v},g)}function d(f,m){const g=(m==null?void 0:m[e][s])||l,h=c.useContext(g);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,d]}const o=()=>{const a=n.map(i=>c.createContext(i));return function(l){const s=(l==null?void 0:l[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[r,c5(o,...t)]}function c5(...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((l,{useScope:s,scopeName:u})=>{const f=s(a)[`__scope${u}`];return{...l,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Aa(e){const t=e+"CollectionProvider",[n,r]=Ke(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:h,children:b}=g,v=D.default.useRef(null),_=D.default.useRef(new Map).current;return D.default.createElement(o,{scope:h,itemMap:_,collectionRef:v},b)},l=e+"CollectionSlot",s=D.default.forwardRef((g,h)=>{const{scope:b,children:v}=g,_=a(l,b),y=ye(h,_.collectionRef);return D.default.createElement(Ln,{ref:y},v)}),u=e+"CollectionItemSlot",d="data-radix-collection-item",f=D.default.forwardRef((g,h)=>{const{scope:b,children:v,..._}=g,y=D.default.useRef(null),w=ye(h,y),S=a(u,b);return D.default.useEffect(()=>(S.itemMap.set(y,{ref:y,..._}),()=>void S.itemMap.delete(y))),D.default.createElement(Ln,{[d]:"",ref:w},v)});function m(g){const h=a(e+"CollectionConsumer",g);return D.default.useCallback(()=>{const v=h.collectionRef.current;if(!v)return[];const _=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((S,P)=>_.indexOf(S.ref.current)-_.indexOf(P.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:i,Slot:s,ItemSlot:f},m,r]}function Q(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 je(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Ue({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=u5({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,l=je(n),s=c.useCallback(u=>{if(a){const f=typeof u=="function"?u(e):u;f!==e&&l(f)}else o(u)},[a,e,o,l]);return[i,s]}function u5({defaultProp:e,onChange:t}){const n=c.useState(e),[r]=n,o=c.useRef(r),a=je(t);return c.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const pn=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{};function d5(e,t){return c.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const We=e=>{const{present:t,children:n}=e,r=f5(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),a=ye(r.ref,o.ref);return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:a}):null};We.displayName="Presence";function f5(e){const[t,n]=c.useState(),r=c.useRef({}),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[l,s]=d5(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=Ia(r.current);a.current=l==="mounted"?u:"none"},[l]),pn(()=>{const u=r.current,d=o.current;if(d!==e){const m=a.current,g=Ia(u);e?s("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(d&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),pn(()=>{if(t){const u=f=>{const g=Ia(r.current).includes(f.animationName);f.target===t&&g&&fo.flushSync(()=>s("ANIMATION_END"))},d=f=>{f.target===t&&(a.current=Ia(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ia(e){return(e==null?void 0:e.animationName)||"none"}const p5=D["useId".toString()]||(()=>{});let m5=0;function nt(e){const[t,n]=D.useState(p5());return pn(()=>{e||n(r=>r??String(m5++))},[e]),e||(t?`radix-${t}`:"")}const ip="Collapsible",[g5,lp]=Ke(ip),[h5,ss]=g5(ip),b5=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...l}=e,[s=!1,u]=Ue({prop:r,defaultProp:o,onChange:i});return c.createElement(h5,{scope:n,disabled:a,contentId:nt(),open:s,onOpenToggle:c.useCallback(()=>u(d=>!d),[u])},c.createElement(ce.div,N({"data-state":cs(s),"data-disabled":a?"":void 0},l,{ref:t})))}),v5="CollapsibleTrigger",y5=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=ss(v5,n);return c.createElement(ce.button,N({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":cs(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:Q(e.onClick,o.onOpenToggle)}))}),sp="CollapsibleContent",$5=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ss(sp,e.__scopeCollapsible);return c.createElement(We,{present:n||o.open},({present:a})=>c.createElement(_5,N({},r,{ref:t,present:a})))}),_5=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=ss(sp,n),[l,s]=c.useState(r),u=c.useRef(null),d=ye(t,u),f=c.useRef(0),m=f.current,g=c.useRef(0),h=g.current,b=i.open||l,v=c.useRef(b),_=c.useRef();return c.useEffect(()=>{const y=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(y)},[]),pn(()=>{const y=u.current;if(y){_.current=_.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const w=y.getBoundingClientRect();f.current=w.height,g.current=w.width,v.current||(y.style.transitionDuration=_.current.transitionDuration,y.style.animationName=_.current.animationName),s(r)}},[i.open,r]),c.createElement(ce.div,N({"data-state":cs(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!b},a,{ref:d,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style}}),b&&o)});function cs(e){return e?"open":"closed"}const x5=b5,w5=y5,E5=$5,S5=c.createContext(void 0);function ar(e){const t=c.useContext(S5);return e||t||"ltr"}const mn="Accordion",D5=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[us,P5,T5]=Aa(mn),[Oa,PV]=Ke(mn,[T5,lp]),ds=lp(),cp=D.default.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return D.default.createElement(us.Provider,{scope:e.__scopeAccordion},n==="multiple"?D.default.createElement(I5,N({},a,{ref:t})):D.default.createElement(A5,N({},o,{ref:t})))});cp.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[up,C5]=Oa(mn),[dp,k5]=Oa(mn,{collapsible:!1}),A5=D.default.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[l,s]=Ue({prop:n,defaultProp:r,onChange:o});return D.default.createElement(up,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:D.default.useCallback(()=>a&&s(""),[a,s])},D.default.createElement(dp,{scope:e.__scopeAccordion,collapsible:a},D.default.createElement(fp,N({},i,{ref:t}))))}),I5=D.default.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],l]=Ue({prop:n,defaultProp:r,onChange:o}),s=D.default.useCallback(d=>l((f=[])=>[...f,d]),[l]),u=D.default.useCallback(d=>l((f=[])=>f.filter(m=>m!==d)),[l]);return D.default.createElement(up,{scope:e.__scopeAccordion,value:i,onItemOpen:s,onItemClose:u},D.default.createElement(dp,{scope:e.__scopeAccordion,collapsible:!0},D.default.createElement(fp,N({},a,{ref:t}))))}),[O5,Ma]=Oa(mn),fp=D.default.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...i}=e,l=D.default.useRef(null),s=ye(l,t),u=P5(n),f=ar(o)==="ltr",m=Q(e.onKeyDown,g=>{var h;if(!D5.includes(g.key))return;const b=g.target,v=u().filter(k=>{var F;return!((F=k.ref.current)!==null&&F!==void 0&&F.disabled)}),_=v.findIndex(k=>k.ref.current===b),y=v.length;if(_===-1)return;g.preventDefault();let w=_;const S=0,P=y-1,T=()=>{w=_+1,w>P&&(w=S)},M=()=>{w=_-1,w<S&&(w=P)};switch(g.key){case"Home":w=S;break;case"End":w=P;break;case"ArrowRight":a==="horizontal"&&(f?T():M());break;case"ArrowDown":a==="vertical"&&T();break;case"ArrowLeft":a==="horizontal"&&(f?M():T());break;case"ArrowUp":a==="vertical"&&M();break}const $=w%y;(h=v[$].ref.current)===null||h===void 0||h.focus()});return D.default.createElement(O5,{scope:n,disabled:r,direction:o,orientation:a},D.default.createElement(us.Slot,{scope:n},D.default.createElement(ce.div,N({},i,{"data-orientation":a,ref:s,onKeyDown:r?void 0:m}))))}),fs="AccordionItem",[M5,ps]=Oa(fs),F5=D.default.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=Ma(fs,n),i=C5(fs,n),l=ds(n),s=nt(),u=r&&i.value.includes(r)||!1,d=a.disabled||e.disabled;return D.default.createElement(M5,{scope:n,open:u,disabled:d,triggerId:s},D.default.createElement(x5,N({"data-orientation":a.orientation,"data-state":mp(u)},l,o,{ref:t,disabled:d,open:u,onOpenChange:f=>{f?i.onItemOpen(r):i.onItemClose(r)}})))}),L5="AccordionHeader",N5=D.default.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Ma(mn,n),a=ps(L5,n);return D.default.createElement(ce.h3,N({"data-orientation":o.orientation,"data-state":mp(a.open),"data-disabled":a.disabled?"":void 0},r,{ref:t}))}),pp="AccordionTrigger",z5=D.default.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Ma(mn,n),a=ps(pp,n),i=k5(pp,n),l=ds(n);return D.default.createElement(us.ItemSlot,{scope:n},D.default.createElement(w5,N({"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId},l,r,{ref:t})))}),R5="AccordionContent",K5=D.default.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Ma(mn,n),a=ps(R5,n),i=ds(n);return D.default.createElement(E5,N({role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation},i,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function mp(e){return e?"open":"closed"}const V5=cp,B5=F5,j5=N5,U5=z5,W5=K5,p={border_radius_0:"0",border_radius_100:"1px",border_radius_200:"2px",border_radius_400:"4px",border_radius_800:"8px",border_radius_pill:"9999em",border_radius_circle:"50%",border_width_0:"0",border_width_100:"1px",border_width_200:"2px",color_brand_tangerine:"#D58844",color_brand_lilac:"#A067A0",color_brand_solidago:"#D1C252",color_brand_solidago_opacity_48:"rgba(209, 194, 82, .48)",color_brand_red:"#DA5B40",color_brand_red_dark:"#BE4F37",color_brand_red_opacity_20:"rgba(218, 91, 64, 0.2)",color_brand_red_opacity_24:"rgba(218, 91, 64, 0.24)",color_brand_red_opacity_32:"rgba(218, 91, 64, 0.32)",color_brand_red_opacity_48:"rgba(218, 91, 64, 0.48)",color_brand_red_opacity_90:"rgba(218, 91, 64, 0.9)",color_brand_gray_50:"#E9E8E3",color_brand_gray_100:"#CECDC8",color_brand_gray_200:"#BCBAB6",color_brand_gray_300:"#AAA7A4",color_brand_gray_400:"#8E8B88",color_brand_gray_500:"#85827F",color_brand_gray_600:"#72706D",color_brand_gray_700:"#605D5B",color_brand_gray_800:"#4E4A49",color_brand_gray_900:"#3B3836",color_gray_2:"#090909",color_gray_4:"#0E0E0E",color_gray_6:"#131313",color_gray_8:"#181818",color_gray_10:"#1D1D1D",color_gray_12:"#222222",color_gray_14:"#272727",color_gray_16:"#2C2C2C",color_gray_18:"#313131",color_gray_20:"#363636",color_gray_22:"#3B3B3B",color_gray_24:"#404040",color_gray_26:"#454545",color_gray_28:"#4A4A4A",color_gray_30:"#4F4F4F",color_gray_32:"#545454",color_gray_34:"#595959",color_gray_36:"#5E5E5E",color_gray_38:"#636363",color_gray_40:"#686868",color_gray_42:"#6D6D6D",color_gray_44:"#727272",color_gray_46:"#777777",color_gray_48:"#7C7C7C",color_gray_50:"#818181",color_gray_52:"#868686",color_gray_54:"#8B8B8B",color_gray_56:"#909090",color_gray_58:"#959595",color_gray_60:"#9A9A9A",color_gray_62:"#9F9F9F",color_gray_64:"#A4A4A4",color_gray_66:"#A9A9A9",color_gray_68:"#AEAEAE",color_gray_70:"#B3B3B3",color_gray_72:"#B8B8B8",color_gray_74:"#BDBDBD",color_gray_76:"#C2C2C2",color_gray_78:"#C7C7C7",color_gray_80:"#CCCCCC",color_gray_82:"#D1D1D1",color_gray_84:"#D6D6D6",color_gray_86:"#DBDBDB",color_gray_88:"#E0E0E0",color_gray_90:"#E6E6E6",color_gray_92:"#EDEDED",color_gray_94:"#F0F0F0",color_gray_96:"#F6F6F6",color_gray_98:"#FAFAFA",color_gray_opacity_1:"rgba(0, 0, 0, 0.01)",color_gray_opacity_2:"rgba(0, 0, 0, 0.02)",color_gray_opacity_3:"rgba(0, 0, 0, 0.03)",color_gray_opacity_4:"rgba(0, 0, 0, 0.04)",color_gray_opacity_5:"rgba(0, 0, 0, 0.05)",color_gray_opacity_6:"rgba(0, 0, 0, 0.06)",color_gray_opacity_7:"rgba(0, 0, 0, 0.07)",color_gray_opacity_8:"rgba(0, 0, 0, 0.08)",color_gray_opacity_9:"rgba(0, 0, 0, 0.09)",color_gray_opacity_10:"rgba(0, 0, 0, 0.1)",color_gray_opacity_11:"rgba(0, 0, 0, 0.11)",color_gray_opacity_12:"rgba(0, 0, 0, 0.12)",color_gray_opacity_13:"rgba(0, 0, 0, 0.13)",color_gray_opacity_14:"rgba(0, 0, 0, 0.14)",color_gray_opacity_15:"rgba(0, 0, 0, 0.15)",color_gray_opacity_16:"rgba(0, 0, 0, 0.16)",color_gray_opacity_17:"rgba(0, 0, 0, 0.17)",color_gray_opacity_18:"rgba(0, 0, 0, 0.18)",color_gray_opacity_19:"rgba(0, 0, 0, 0.19)",color_gray_opacity_20:"rgba(0, 0, 0, 0.2)",color_gray_opacity_21:"rgba(0, 0, 0, 0.21)",color_gray_opacity_22:"rgba(0, 0, 0, 0.22)",color_gray_opacity_23:"rgba(0, 0, 0, 0.23)",color_gray_opacity_24:"rgba(0, 0, 0, 0.24)",color_gray_opacity_25:"rgba(0, 0, 0, 0.25)",color_gray_opacity_26:"rgba(0, 0, 0, 0.26)",color_gray_opacity_27:"rgba(0, 0, 0, 0.27)",color_gray_opacity_28:"rgba(0, 0, 0, 0.28)",color_gray_opacity_29:"rgba(0, 0, 0, 0.29)",color_gray_opacity_30:"rgba(0, 0, 0, 0.3)",color_gray_opacity_31:"rgba(0, 0, 0, 0.31)",color_gray_opacity_32:"rgba(0, 0, 0, 0.32)",color_gray_opacity_33:"rgba(0, 0, 0, 0.33)",color_gray_opacity_34:"rgba(0, 0, 0, 0.34)",color_gray_opacity_35:"rgba(0, 0, 0, 0.35)",color_gray_opacity_36:"rgba(0, 0, 0, 0.36)",color_gray_opacity_37:"rgba(0, 0, 0, 0.37)",color_gray_opacity_38:"rgba(0, 0, 0, 0.38)",color_gray_opacity_39:"rgba(0, 0, 0, 0.39)",color_gray_opacity_40:"rgba(0, 0, 0, 0.4)",color_gray_opacity_41:"rgba(0, 0, 0, 0.41)",color_gray_opacity_42:"rgba(0, 0, 0, 0.42)",color_gray_opacity_43:"rgba(0, 0, 0, 0.43)",color_gray_opacity_44:"rgba(0, 0, 0, 0.44)",color_gray_opacity_45:"rgba(0, 0, 0, 0.45)",color_gray_opacity_46:"rgba(0, 0, 0, 0.46)",color_gray_opacity_47:"rgba(0, 0, 0, 0.47)",color_gray_opacity_48:"rgba(0, 0, 0, 0.48)",color_gray_opacity_49:"rgba(0, 0, 0, 0.49)",color_gray_opacity_50:"rgba(0, 0, 0, 0.5)",color_gray_opacity_51:"rgba(0, 0, 0, 0.51)",color_gray_opacity_52:"rgba(0, 0, 0, 0.52)",color_gray_opacity_53:"rgba(0, 0, 0, 0.53)",color_gray_opacity_54:"rgba(0, 0, 0, 0.54)",color_gray_opacity_55:"rgba(0, 0, 0, 0.55)",color_gray_opacity_56:"rgba(0, 0, 0, 0.56)",color_gray_opacity_57:"rgba(0, 0, 0, 0.57)",color_gray_opacity_58:"rgba(0, 0, 0, 0.58)",color_gray_opacity_59:"rgba(0, 0, 0, 0.59)",color_gray_opacity_60:"rgba(0, 0, 0, 0.6)",color_gray_opacity_61:"rgba(0, 0, 0, 0.61)",color_gray_opacity_62:"rgba(0, 0, 0, 0.62)",color_gray_opacity_63:"rgba(0, 0, 0, 0.63)",color_gray_opacity_64:"rgba(0, 0, 0, 0.64)",color_gray_opacity_65:"rgba(0, 0, 0, 0.65)",color_gray_opacity_66:"rgba(0, 0, 0, 0.66)",color_gray_opacity_67:"rgba(0, 0, 0, 0.67)",color_gray_opacity_68:"rgba(0, 0, 0, 0.68)",color_gray_opacity_69:"rgba(0, 0, 0, 0.69)",color_gray_opacity_70:"rgba(0, 0, 0, 0.7)",color_gray_opacity_71:"rgba(0, 0, 0, 0.71)",color_gray_opacity_72:"rgba(0, 0, 0, 0.72)",color_gray_opacity_73:"rgba(0, 0, 0, 0.73)",color_gray_opacity_74:"rgba(0, 0, 0, 0.74)",color_gray_opacity_75:"rgba(0, 0, 0, 0.75)",color_gray_opacity_76:"rgba(0, 0, 0, 0.76)",color_gray_opacity_77:"rgba(0, 0, 0, 0.77)",color_gray_opacity_78:"rgba(0, 0, 0, 0.78)",color_gray_opacity_79:"rgba(0, 0, 0, 0.79)",color_gray_opacity_80:"rgba(0, 0, 0, 0.8)",color_gray_opacity_81:"rgba(0, 0, 0, 0.81)",color_gray_opacity_82:"rgba(0, 0, 0, 0.82)",color_gray_opacity_83:"rgba(0, 0, 0, 0.83)",color_gray_opacity_84:"rgba(0, 0, 0, 0.84)",color_gray_opacity_85:"rgba(0, 0, 0, 0.85)",color_gray_opacity_86:"rgba(0, 0, 0, 0.86)",color_gray_opacity_87:"rgba(0, 0, 0, 0.87)",color_gray_opacity_88:"rgba(0, 0, 0, 0.88)",color_gray_opacity_89:"rgba(0, 0, 0, 0.89)",color_gray_opacity_90:"rgba(0, 0, 0, 0.9)",color_gray_opacity_91:"rgba(0, 0, 0, 0.91)",color_gray_opacity_92:"rgba(0, 0, 0, 0.92)",color_gray_opacity_93:"rgba(0, 0, 0, 0.93)",color_gray_opacity_94:"rgba(0, 0, 0, 0.94)",color_gray_opacity_95:"rgba(0, 0, 0, 0.95)",color_gray_opacity_96:"rgba(0, 0, 0, 0.96)",color_gray_opacity_97:"rgba(0, 0, 0, 0.97)",color_gray_opacity_98:"rgba(0, 0, 0, 0.98)",color_gray_opacity_99:"rgba(0, 0, 0, 0.99)",color_black:"#000000",color_white:"#FFFFFF",color_green:"#0DA166",color_green_opacity_48:"rgba(13, 161, 102, .48)",color_event_fill_faded_pickup:"rgba(218, 91, 64, 0.30)",color_event_fill_faded_dropoff:"rgba(18, 88, 210, 0.30)",color_event_fill_faded_stop:"rgba(192, 178, 45, 0.30)",color_event_fill_faded_incomplete:"rgba(120, 120, 120, 0.30)",color_event_fill_faded_arrival:"#CCCCCC",color_event_fill_faded_departure:"#CCCCCC",color_event_fill_faded_online:"rgba(13, 161, 102, 0.30)",color_event_fill_faded_offline:"rgba(62, 62, 62, 0.30)",color_event_fill_solid_pickup:"rgba(218, 91, 64, 1)",color_event_fill_solid_dropoff:"rgba(18, 88, 210, 1)",color_event_fill_solid_stop:"rgba(192, 178, 45, 1)",color_event_fill_solid_incomplete:"rgba(120, 120, 120, 1)",color_event_fill_solid_arrival:"#CCCCCC",color_event_fill_solid_departure:"#CCCCCC",color_event_fill_solid_online:"rgba(13, 161, 102, 1)",color_event_fill_solid_offline:"rgba(62, 62, 62, 1)",color_event_outline_faded_pickup:"rgba(218, 91, 64, 0.15)",color_event_outline_faded_dropoff:"rgba(18, 88, 210, 0.15)",color_event_outline_faded_stop:"rgba(210, 195, 56, 0.15)",color_event_outline_faded_incomplete:"rgba(0, 0, 0, 0.15)",color_event_outline_faded_online:"rgba(13, 161, 102, 0.15)",color_event_outline_faded_offline:"rgba(62, 62, 62, 0.15)",color_deprecated_background_white_standard:"#FFFFFF",color_deprecated_background_white_strong:"hsl(0deg 0% 94%)",color_deprecated_background_white_weak:"hsl(0deg 0% 96%)",color_deprecated_background_black_standard:"hsl(0deg 0% 16%)",color_deprecated_background_black_strong:"hsl(0deg 0% 8%)",color_deprecated_background_black_weak:"hsl(0deg 0% 12%)",color_deprecated_background_sentiment_negative:"hsl(11deg 68% 55%)",color_deprecated_background_sentiment_positive:"hsl(54deg 63% 52%)",color_deprecated_background_sentiment_notice:"hsl(29deg 74% 53%)",color_deprecated_background_sentiment_neutral:"hsl(0deg 0% 10%)",color_deprecated_divider_standard:"hsl(0deg 0% 0% / 12%)",color_deprecated_divider_strong:"hsl(0deg 0% 0% 16%)",color_deprecated_divider_weak:"hsl(0deg 0% 0% / 8%)",color_deprecated_divider_inverse_standard:"hsl(0deg 0% 100% 32%)",color_deprecated_divider_inverse_strong:"hsl(0deg 0% 100% 48%)",color_deprecated_divider_inverse_weak:"hsl(0deg 0% 100% 24%)",color_deprecated_text_standard:"hsl(0deg 0% 32%)",color_deprecated_text_strong:"#000000",color_deprecated_text_weak:"hsl(0deg 0% 56%)",color_deprecated_text_white_standard:"hsl(0deg 0% 84%)",color_deprecated_text_white_strong:"#FFFFFF",color_deprecated_text_white_weak:"hsl(0deg 0% 64%)",color_deprecated_text_sentiment_negative:"hsl(11deg, 68% 55%)",color_deprecated_text_sentiment_positive:"hsl(54deg, 63% 52%)",color_deprecated_text_sentiment_notice:"hsl(29deg, 67% 47%)",color_deprecated_text_sentiment_neutral:"hsl(0deg 0% 24%)",color_deprecated_fill_primary_enabled:"hsl(0deg 0% 8%)",color_deprecated_fill_primary_hover:"hsl(210deg 5% 16%)",color_deprecated_fill_primary_pressed:"hsl(210deg 3% 28%)",color_deprecated_fill_primary_disabled:"hsl(0deg 0% 8% / 20%)",color_deprecated_fill_secondary_enabled:"hsl(0deg 0% 0% 0.06)",color_deprecated_fill_secondary_hover:"hsl(0deg 0% 0% / 12%)",color_deprecated_fill_secondary_pressed:"hsl(0deg 0% 0% / 20%)",color_deprecated_fill_secondary_disabled:"hsl(0deg 0% 88% / 50%)",color_deprecated_fill_inverse_enabled:"#FFFFFF",color_deprecated_fill_inverse_hover:"hsl(0deg 0% 94%)",color_deprecated_fill_inverse_pressed:"hsl(0deg 0% 90%)",color_deprecated_fill_inverse_disabled:"hsl(0deg 0% 98% / 40%)",color_deprecated_fill_danger_enabled:"hsl(11deg 68% 55%)",color_deprecated_fill_danger_hover:"hsl(11deg 57% 51%)",color_deprecated_fill_danger_pressed:"hsl(11deg 55% 48%)",color_deprecated_fill_danger_disabled:"hsl(11deg 68% 55% / 20%)",color_deprecated_outline_primary_danger_enabled:"hsl(11deg 68% 55% / 24%)",color_deprecated_outline_primary_danger_hover:"hsl(11deg 68% 55% / 48%)",color_deprecated_outline_primary_danger_pressed:"hsl(11deg, 68% 55% / 72%)",color_deprecated_outline_primary_danger_disabled:"hsl(11deg, 68% 55% / 16%)",color_deprecated_outline_primary_danger_selected_enabled:"hsl(11deg 68% 55% 96%)",color_deprecated_outline_primary_danger_selected_hover:"hsl(11deg 68% 55% 96%)",color_deprecated_outline_primary_danger_selected_pressed:"hsl(11deg, 68% 55% 96%)",color_deprecated_outline_secondary_enabled:"hsl(0deg 0% 0% / 16%)",color_deprecated_outline_secondary_hover:"hsl(0deg 0% 0% / 32%)",color_deprecated_outline_secondary_pressed:"hsl(0deg 0% 0% / 48%)",color_deprecated_outline_secondary_disabled:"hsl(0deg 0% 14% / 16%)",color_deprecated_outline_secondary_selected_enabled:"hsl(0deg 0% 0% / 6%)",color_deprecated_outline_secondary_selected_hover:"hsl(0deg 0% 0% / 72%)",color_deprecated_outline_secondary_selected_pressed:"hsl(0deg 0% 0% / 76%)",color_deprecated_outline_inverse_enabled:"hsl(0deg 0% 100% / 32%)",color_deprecated_outline_inverse_hover:"hsl(0deg 0% 100% / 48%)",color_deprecated_outline_inverse_pressed:"hsl(0deg 0% 100% / 56%)",color_deprecated_outline_inverse_disabled:"hsl(0deg 0% 100% / 2%)",color_deprecated_outline_inverse_selected_enabled:"hsl(0deg 0% 100% / 6%)",color_deprecated_outline_inverse_selected_hover:"hsl(0deg 0% 100% / 72%)",color_deprecated_outline_inverse_selected_pressed:"hsl(0deg 0% 100% / 8%)",color_deprecated_outline_danger_enabled:"hsl(11deg 68% 55%)",color_deprecated_outline_danger_hover:"hsl(11deg 68% 55% / 90%)",color_deprecated_outline_danger_pressed:"hsl(11deg 68% 55% / 90%)",color_deprecated_outline_danger_disabled:"hsl(11deg 68% 55% / 32%)",color_deprecated_overlay_secondary_enabled:"#FFFFFF",color_deprecated_overlay_secondary_hover:"hsl(0deg 0% 97%)",color_deprecated_overlay_secondary_pressed:"hsl(0deg 0% 92%)",color_deprecated_overlay_secondary_selected_enabled:"hsl(0deg 0% 94%)",color_deprecated_overlay_secondary_selected_hover:"hsl(0deg 0% 91%)",color_deprecated_overlay_secondary_selected_pressed:"hsl(0deg 0% 88%)",color_deprecated_overlay_inverse_enabled:"#000000",color_deprecated_overlay_inverse_hover:"hsl(0deg 0% 4%)",color_deprecated_overlay_inverse_pressed:"hsl(0deg 0% 12%)",color_deprecated_overlay_inverse_selected_enabled:"hsl(0deg 0% 10%)",color_deprecated_overlay_inverse_selected_hover:"hsl(0deg 0% 16%)",color_deprecated_overlay_inverse_selected_pressed:"hsl(0deg 0% 24%)",elevation_static_low:"0px 1px 1px rgba(0, 0, 0, 0.07), 0px 1px 2px rgba(0, 0, 0, 0.08), 0px 2px 2px rgba(0, 0, 0, 0.1), 0px 0px 8px rgba(0, 0, 0, 0.05)",elevation_static_medium:"0px 1px 1px rgba(0, 0, 0, 0.05), 0px 2px 2px rgba(0, 0, 0, 0.05), 0px 5px 5px rgba(0, 0, 0, 0.05), 0px 10px 10px rgba(0, 0, 0, 0.05), 0px 0px 8px rgba(0, 0, 0, 0.05)",elevation_static_high:"0px 2px 4px rgba(0, 0, 0, 0.03), 0px 6px 6px rgba(0, 0, 0, 0.03), 0px 15px 20px rgba(0, 0, 0, 0.03), 0px 30px 40px rgba(0, 0, 0, 0.03), 0px 40px 70px rgba(0, 0, 0, 0.03), 0px 4px 30px rgba(0, 0, 0, 0.03), 0px 0px 8px rgba(0, 0, 0, 0.03)",elevation_interactive_down:"inset 0px 1000px 250px rgba(0, 0, 0, 0.04)",elevation_interactive_low:"0px 1px 1px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 0px 2px rgba(0, 0, 0, 0.07)",elevation_interactive_medium:"0px 1px 1px rgba(0, 0, 0, 0.1), 0px 2px 2px rgba(0, 0, 0, 0.05), 0px 2px 4px rgba(0, 0, 0, 0.07), 0px 1px 4px rgba(0, 0, 0, 0.08)",elevation_interactive_high:"0px 2px 4px rgba(0, 0, 0, 0.05), 0px 3px 5px rgba(0, 0, 0, 0.05), 0px 4px 6px rgba(0, 0, 0, 0.05), 0px 4px 20px rgba(0, 0, 0, 0.05)",z_index_auto:"auto",z_index_below:"-1",z_index_base:"0",z_index_above:"1",z_index_foreground:"2",z_index_foreground_high:"3",z_index_foreground_highest:"4",z_index_overlay:"5",z_index_overlay_high:"6",font_family_pingo:"'Inter', -apple-system, Helvetica, sans-serif",font_family_monospace:"'SFMono-Regular', Monaco, Consolas, 'Lucida Console', monospace",feature_settings_number:"'tnum' on, 'lnum' on, 'ss01' on",letter_spacing_1:"-0.0625em",letter_spacing_2:"-0.0600em",letter_spacing_3:"-0.0575em",letter_spacing_4:"-0.0550em",letter_spacing_5:"-0.0525em",letter_spacing_6:"-0.0500em",letter_spacing_7:"-0.0475em",letter_spacing_8:"-0.0450em",letter_spacing_9:"-0.0425em",letter_spacing_10:"-0.0400em",letter_spacing_11:"-0.0375em",letter_spacing_12:"-0.0350em",letter_spacing_13:"-0.0325em",letter_spacing_14:"-0.0300em",letter_spacing_15:"-0.0275em",letter_spacing_16:"-0.0250em",letter_spacing_17:"-0.0225em",letter_spacing_18:"-0.0200em",letter_spacing_19:"-0.0175em",letter_spacing_20:"-0.0150em",letter_spacing_21:"-0.0125em",letter_spacing_22:"-0.0100em",letter_spacing_23:"-0.0075em",letter_spacing_24:"-0.0050em",letter_spacing_25:"-0.0025em",letter_spacing_26:"0.0025em",letter_spacing_27:"0.0050em",letter_spacing_28:"0.0075em",letter_spacing_29:"0.0100em",letter_spacing_30:"0.0125em",letter_spacing_31:"0.0150em",letter_spacing_32:"0.0175em",letter_spacing_33:"0.0200em",letter_spacing_deprecated_tight:"-0.006em",letter_spacing_deprecated_tighter:"-0.01em",letter_spacing_deprecated_heading_large:"-0.018em",letter_spacing_deprecated_heading_medium:"-0.016em",letter_spacing_deprecated_heading_small:"-0.014em",letter_spacing_deprecated_title_large:"-0.014em",letter_spacing_deprecated_title_medium:"-0.012em",letter_spacing_deprecated_title_small:"-0.01em",letter_spacing_deprecated_title_xsmall:"-0.008em",letter_spacing_deprecated_label_large:"-0.01em",letter_spacing_deprecated_label_medium:"normal",letter_spacing_deprecated_label_small:"-0.006em",letter_spacing_deprecated_body_large:"-0.01em",letter_spacing_deprecated_body_medium:"-0.006em",letter_spacing_deprecated_body_small:"normal",letter_spacing_deprecated_number_large:"-0.05em",letter_spacing_deprecated_number_medium:"-0.05em",letter_spacing_deprecated_number_small:"-0.04em",letter_spacing_deprecated_number_xsmall:"-0.05em",letter_spacing_deprecated_caption_medium:"0.01em",letter_spacing_deprecated_caption_small:"0.02em",line_height_50:"0.875rem",line_height_100:"1rem",line_height_150:"1.125rem",line_height_200:"1.25rem",line_height_250:"1.375rem",line_height_300:"1.5rem",line_height_350:"1.625rem",line_height_400:"1.75rem",line_height_450:"1.875rem",line_height_500:"2rem",line_height_550:"2.75rem",line_height_600:"2.5rem",line_height_650:"3.25rem",line_height_700:"3.5rem",line_height_750:"4rem",line_height_800:"4.25rem",line_height_850:"4.75rem",line_height_deprecated_111:1.11,line_height_deprecated_114:1.14,line_height_deprecated_129:1.29,line_height_deprecated_133:1.33,line_height_deprecated_143:1.43,line_height_deprecated_title_large:1.06,line_height_deprecated_title_medium:1.08,line_height_deprecated_title_small:1.1,line_height_deprecated_title_xsmall:1.11,line_height_deprecated_label_large:1.11,line_height_deprecated_label_medium:1.12,line_height_deprecated_label_small:1.14,line_height_deprecated_body_large:1.25,line_height_deprecated_body_medium:1.29,line_height_deprecated_body_small:1.33,line_height_deprecated_number_large:1.25,line_height_deprecated_number_medium:1.14,line_height_deprecated_number_small:1.17,line_height_deprecated_number_xsmall:1.2,line_height_deprecated_caption_medium:1.17,line_height_deprecated_caption_small:1.2,font_size_50:"0.25rem",font_size_75:"0.375rem",font_size_100:"0.5rem",font_size_125:"0.625rem",font_size_150:"0.75rem",font_size_160:"0.8125rem",font_size_175:"0.875rem",font_size_200:"1rem",font_size_225:"1.125rem",font_size_250:"1.25rem",font_size_275:"1.375rem",font_size_300:"1.5rem",font_size_325:"1.625rem",font_size_350:"1.75rem",font_size_375:"1.875rem",font_size_400:"2rem",font_size_425:"2.125rem",font_size_450:"2.25rem",font_size_475:"2.375rem",font_size_500:"2.5rem",font_size_525:"2.625rem",font_size_550:"2.75rem",font_size_575:"2.875rem",font_size_600:"3rem",font_size_625:"3.125rem",font_size_650:"3.25rem",font_size_675:"3.375rem",font_size_700:"3.5rem",font_size_725:"3.625rem",font_size_750:"3.75rem",font_size_775:"3.875rem",font_size_800:"4rem",font_size_825:"4.125rem",font_size_850:"4.25rem",font_size_875:"4.375rem",font_size_900:"4.5rem",font_size_925:"4.625rem",font_size_950:"4.75rem",font_size_root:"16px",font_size_deprecated_50:"0.75rem",font_size_deprecated_100:"0.875rem",font_size_deprecated_200:"1rem",font_size_deprecated_300:"1.125rem",font_size_deprecated_400:"1.25rem",font_size_deprecated_500:"1.5rem",font_size_deprecated_600:"2rem",font_size_deprecated_700:"2.75rem",font_size_deprecated_800:"3.5rem",font_size_deprecated_root:"16px",font_size_deprecated_heading_large:"4.5rem",font_size_deprecated_heading_medium:"3.5rem",font_size_deprecated_heading_small:"3rem",font_size_deprecated_title_large:"2.125rem",font_size_deprecated_title_medium:"1.5rem",font_size_deprecated_title_small:"1.25rem",font_size_deprecated_title_xsmall:"1.125rem",font_size_deprecated_label_large:"1.125rem",font_size_deprecated_label_medium:"16px",font_size_deprecated_label_small:"0.875rem",font_size_deprecated_body_large:"16px",font_size_deprecated_body_medium:"0.875rem",font_size_deprecated_body_small:"0.75rem",font_size_deprecated_number_large:"16px",font_size_deprecated_number_medium:"0.875rem",font_size_deprecated_number_small:"0.75rem",font_size_deprecated_number_xsmall:"0.625rem",font_size_deprecated_caption_medium:"0.875rem",font_size_deprecated_caption_small:"0.75rem",font_weight_100:"100",font_weight_200:"200",font_weight_300:"300",font_weight_400:"400",font_weight_500:"500",font_weight_600:"600",font_weight_700:"700",font_weight_800:"800",font_weight_900:"900",media_query_xs:"448px",media_query_sm:"720px",media_query_md:"960px",media_query_lg:"1200px",media_query_xl:"1440px",motion_duration_fast:"0.15s",motion_duration_medium:"0.3s",motion_duration_slow:"0.7s",deprecated_transition_duration_75:"75ms",deprecated_transition_duration_100:"100ms",deprecated_transition_duration_150:"150ms",deprecated_transition_duration_200:"200ms",deprecated_transition_duration_300:"300ms",motion_ease_in:"cubic-bezier(.35, 0, .7, .2)",motion_ease_out:"cubic-bezier(0, 0, .3, 1)",motion_ease_in_out:"cubic-bezier(.4, 0, .3, 1)",transition_property_color:"color, background-color, border-color, text-decoration-color, fill, stroke",transition_property_all:"all",transition_property_opacity:"opacity",transition_property_box_shadow:"box-shadow",transition_property_transform:"transform",sizing_0:"0rem",sizing_100:"0.25rem",sizing_200:"0.5rem",sizing_300:"0.75rem",sizing_350:"0.875rem",sizing_400:"1rem",sizing_450:"1.25rem",sizing_500:"1.5rem",sizing_550:"1.75rem",sizing_600:"2rem",sizing_650:"2.5rem",sizing_700:"3rem",sizing_750:"3.5rem",sizing_800:"4rem",sizing_850:"6rem",sizing_900:"10rem",sizing_1000:"20rem",sizing_1100:"28rem",sizing_1150:"35rem",sizing_1200:"45rem",sizing_1300:"60rem",sizing_1350:"66rem",sizing_1400:"75rem",sizing_1500:"90rem",spacing_0:"0rem",spacing_25:"0.0625rem",spacing_50:"0.125rem",spacing_75:"0.1875rem",spacing_100:"0.25rem",spacing_125:"0.3125rem",spacing_150:"0.375rem",spacing_175:"0.4375rem",spacing_200:"0.5rem",spacing_225:"0.5625rem",spacing_250:"0.625rem",spacing_275:"0.6875rem",spacing_300:"0.75rem",spacing_350:"0.875rem",spacing_400:"1rem",spacing_450:"1.25rem",spacing_500:"1.5rem",spacing_550:"1.75rem",spacing_600:"2rem",spacing_650:"2.5rem",spacing_700:"3rem",spacing_750:"3.5rem",spacing_800:"4rem",spacing_850:"6rem",spacing_900:"10rem"};function H5(e){return!!e}function Pt(e,t){const n={},r=new RegExp(`^(${t.join("|")})$`);for(const o in e)r.test(o)&&(n[o]=e[o]);return n}function G5(e=[],t={}){return{shouldForwardProp:(n,r)=>!e.includes(n)&&r(n),...t}}function ms(e){return Object.keys(e).reduce((t,n)=>(n.startsWith("aria-")&&(t[n]=e[n]),t),{})}function ho(){}function gp(){return typeof window<"u"}function gs(){return gp()?window:{matchMedia:ho,addEventListener:ho,removeEventListener:ho,setTimeout:ho,clearTimeout:ho}}function Y5(){try{return window.self!==window.top}catch{return!0}}const Fa={backspace:{key:"Backspace",keyCode:8,shiftKey:!1},enter:{key:"Enter",keyCode:13,shiftKey:!1},escape:{key:"Escape",keyCode:27,shiftKey:!1},arrowRight:{key:"ArrowRight",keyCode:39,shiftKey:!1},arrowLeft:{key:"ArrowLeft",keyCode:37,shiftKey:!1},arrowUp:{key:"ArrowUp",keyCode:38,shiftKey:!1},arrowDown:{key:"ArrowDown",keyCode:40,shiftKey:!1},home:{key:"Home",keyCode:36,shiftKey:!1},end:{key:"End",keyCode:35,shiftKey:!1},space:{key:" ",keyCode:32,shiftKey:!1},pageUp:{key:"PageUp",keyCode:33,shiftKey:!1},pageDown:{key:"PageDown",keyCode:34,shiftKey:!1},tab:{key:"Tab",keyCode:9,shiftKey:!1}};function q5(e,t){return!!Fa[e]&&(t.key===Fa[e].key||t.keyCode===Fa[e].keyCode)&&t.shiftKey===Fa[e].shiftKey}function hp(e,t){return function(r){if(q5(e,r))return t(r)}}/*
|
|
28
28
|
object-assign
|
|
29
29
|
(c) Sindre Sorhus
|
|
30
30
|
@license MIT
|
|
@@ -142,7 +142,7 @@ object-assign
|
|
|
142
142
|
animation: ${LD} 300ms cubic-bezier(0.87, 0, 0.13, 1); // todo: use tokens
|
|
143
143
|
transform: translateZ(0);
|
|
144
144
|
}
|
|
145
|
-
`,yo=({children:e,type:t,...n})=>E(ND,{type:t,...n,children:e});yo.displayName="Accordion",yo.Item=Pp,yo.Header=Dp,yo.Content=BD;const jD=yo;function UD(e,t=globalThis==null?void 0:globalThis.document){const n=je(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Ss="dismissableLayer.update",WD="dismissableLayer.pointerDownOutside",HD="dismissableLayer.focusOutside";let Tp;const Cp=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$o=c.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:l,onDismiss:s,...u}=e,d=c.useContext(Cp),[f,m]=c.useState(null),g=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,h]=c.useState({}),b=ye(t,$=>m($)),v=Array.from(d.layers),[_]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(_),w=f?v.indexOf(f):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,P=w>=y,T=YD($=>{const k=$.target,L=[...d.branches].some(x=>x.contains(k));!P||L||(a==null||a($),l==null||l($),$.defaultPrevented||s==null||s())},g),M=qD($=>{const k=$.target;[...d.branches].some(x=>x.contains(k))||(i==null||i($),l==null||l($),$.defaultPrevented||s==null||s())},g);return UD($=>{w===d.layers.size-1&&(o==null||o($),!$.defaultPrevented&&s&&($.preventDefault(),s()))},g),c.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Tp=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),kp(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Tp)}},[f,g,r,d]),c.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),kp())},[f,d]),c.useEffect(()=>{const $=()=>h({});return document.addEventListener(Ss,$),()=>document.removeEventListener(Ss,$)},[]),c.createElement(ce.div,N({},u,{ref:b,style:{pointerEvents:S?P?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,M.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,T.onPointerDownCapture)}))}),GD=c.forwardRef((e,t)=>{const n=c.useContext(Cp),r=c.useRef(null),o=ye(t,r);return c.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),c.createElement(ce.div,N({},e,{ref:o}))});function YD(e,t=globalThis==null?void 0:globalThis.document){const n=je(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let u=function(){Ap(WD,n,s,{discrete:!0})};const s={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}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 qD(e,t=globalThis==null?void 0:globalThis.document){const n=je(e),r=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!r.current&&Ap(HD,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 kp(){const e=new CustomEvent(Ss);document.dispatchEvent(e)}function Ap(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?is(o,a):o.dispatchEvent(a)}const XD=$o,JD=GD,Ds="focusScope.autoFocusOnMount",Ps="focusScope.autoFocusOnUnmount",Ip={bubbles:!1,cancelable:!0},Ts=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,s]=c.useState(null),u=je(o),d=je(a),f=c.useRef(null),m=ye(t,b=>s(b)),g=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let b=function(w){if(g.paused||!l)return;const S=w.target;l.contains(S)?f.current=S:hn(f.current,{select:!0})},v=function(w){if(g.paused||!l)return;const S=w.relatedTarget;S!==null&&(l.contains(S)||hn(f.current,{select:!0}))},_=function(w){const S=document.activeElement;for(const P of w)P.removedNodes.length>0&&(l!=null&&l.contains(S)||hn(l))};document.addEventListener("focusin",b),document.addEventListener("focusout",v);const y=new MutationObserver(_);return l&&y.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",v),y.disconnect()}}},[r,l,g.paused]),c.useEffect(()=>{if(l){Fp.add(g);const b=document.activeElement;if(!l.contains(b)){const _=new CustomEvent(Ds,Ip);l.addEventListener(Ds,u),l.dispatchEvent(_),_.defaultPrevented||(ZD(rP(Op(l)),{select:!0}),document.activeElement===b&&hn(l))}return()=>{l.removeEventListener(Ds,u),setTimeout(()=>{const _=new CustomEvent(Ps,Ip);l.addEventListener(Ps,d),l.dispatchEvent(_),_.defaultPrevented||hn(b??document.body,{select:!0}),l.removeEventListener(Ps,d),Fp.remove(g)},0)}}},[l,u,d,g]);const h=c.useCallback(b=>{if(!n&&!r||g.paused)return;const v=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,_=document.activeElement;if(v&&_){const y=b.currentTarget,[w,S]=QD(y);w&&S?!b.shiftKey&&_===S?(b.preventDefault(),n&&hn(w,{select:!0})):b.shiftKey&&_===w&&(b.preventDefault(),n&&hn(S,{select:!0})):_===y&&b.preventDefault()}},[n,r,g.paused]);return c.createElement(ce.div,N({tabIndex:-1},i,{ref:m,onKeyDown:h}))});function ZD(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(hn(r,{select:t}),document.activeElement!==n)return}function QD(e){const t=Op(e),n=Mp(t,e),r=Mp(t.reverse(),e);return[n,r]}function Op(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 Mp(e,t){for(const n of e)if(!eP(n,{upTo:t}))return n}function eP(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function tP(e){return e instanceof HTMLInputElement&&"select"in e}function hn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&tP(e)&&t&&e.select()}}const Fp=nP();function nP(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Lp(e,t),e.unshift(t)},remove(t){var n;e=Lp(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Lp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function rP(e){return e.filter(t=>t.tagName!=="A")}const _o=c.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Rt.default.createPortal(c.createElement(ce.div,N({},o,{ref:t})),r):null});let Cs=0;function ks(){c.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Np()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Np()),Cs++,()=>{Cs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Cs--}},[])}function Np(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var kt=function(){return kt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},kt.apply(this,arguments)};function zp(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function oP(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Ka="right-scroll-bar-position",Va="width-before-scroll-bar",aP="with-scroll-bars-hidden",iP="--removed-body-scroll-bar-size";function lP(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function sP(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function Rp(e,t){return sP(t||null,function(n){return e.forEach(function(r){return lP(r,n)})})}function Kp(e){return e}function Vp(e,t){t===void 0&&(t=Kp);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(l){return l!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(l){return a(l)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var l=n;n=[],l.forEach(a),i=n}var s=function(){var d=i;i=[],d.forEach(a)},u=function(){return Promise.resolve().then(s)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return o}function As(e,t){return t===void 0&&(t=Kp),Vp(e,t)}function Bp(e){e===void 0&&(e={});var t=Vp(null);return t.options=kt({async:!0,ssr:!1},e),t}var jp=function(e){var t=e.sideCar,n=zp(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return D.createElement(r,kt({},n))};jp.isSideCarExport=!0;function cP(e,t){return e.useMedium(t),jp}var Up=Bp(),Is=function(){},Ba=D.forwardRef(function(e,t){var n=D.useRef(null),r=D.useState({onScrollCapture:Is,onWheelCapture:Is,onTouchMoveCapture:Is}),o=r[0],a=r[1],i=e.forwardProps,l=e.children,s=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,m=e.sideCar,g=e.noIsolation,h=e.inert,b=e.allowPinchZoom,v=e.as,_=v===void 0?"div":v,y=zp(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=m,S=Rp([n,t]),P=kt(kt({},y),o);return D.createElement(D.Fragment,null,d&&D.createElement(w,{sideCar:Up,removeScrollBar:u,shards:f,noIsolation:g,inert:h,setCallbacks:a,allowPinchZoom:!!b,lockRef:n}),i?D.cloneElement(D.Children.only(l),kt(kt({},P),{ref:S})):D.createElement(_,kt({},P,{className:s,ref:S}),l))});Ba.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ba.classNames={fullWidth:Va,zeroRight:Ka};var Wp,uP=function(){if(Wp)return Wp;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function dP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=uP();return t&&e.setAttribute("nonce",t),e}function fP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var mP=function(){var e=0,t=null;return{add:function(n){e==0&&(t=dP())&&(fP(t,n),pP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},gP=function(){var e=mP();return function(t,n){D.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Hp=function(){var e=gP(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},hP={left:0,top:0,right:0,gap:0},Os=function(e){return parseInt(e||"",10)||0},bP=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Os(n),Os(r),Os(o)]},vP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return hP;var t=bP(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},yP=Hp(),$P=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
145
|
+
`,yo=({children:e,type:t,...n})=>E(ND,{type:t,...n,children:e});yo.displayName="Accordion",yo.Item=Pp,yo.Header=Dp,yo.Content=BD;const jD=yo;function UD(e,t=globalThis==null?void 0:globalThis.document){const n=je(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Ss="dismissableLayer.update",WD="dismissableLayer.pointerDownOutside",HD="dismissableLayer.focusOutside";let Tp;const Cp=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$o=c.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:l,onDismiss:s,...u}=e,d=c.useContext(Cp),[f,m]=c.useState(null),g=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,h]=c.useState({}),b=ye(t,$=>m($)),v=Array.from(d.layers),[_]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(_),w=f?v.indexOf(f):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,P=w>=y,T=YD($=>{const k=$.target,F=[...d.branches].some(x=>x.contains(k));!P||F||(a==null||a($),l==null||l($),$.defaultPrevented||s==null||s())},g),M=qD($=>{const k=$.target;[...d.branches].some(x=>x.contains(k))||(i==null||i($),l==null||l($),$.defaultPrevented||s==null||s())},g);return UD($=>{w===d.layers.size-1&&(o==null||o($),!$.defaultPrevented&&s&&($.preventDefault(),s()))},g),c.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Tp=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),kp(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Tp)}},[f,g,r,d]),c.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),kp())},[f,d]),c.useEffect(()=>{const $=()=>h({});return document.addEventListener(Ss,$),()=>document.removeEventListener(Ss,$)},[]),c.createElement(ce.div,N({},u,{ref:b,style:{pointerEvents:S?P?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,M.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,T.onPointerDownCapture)}))}),GD=c.forwardRef((e,t)=>{const n=c.useContext(Cp),r=c.useRef(null),o=ye(t,r);return c.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),c.createElement(ce.div,N({},e,{ref:o}))});function YD(e,t=globalThis==null?void 0:globalThis.document){const n=je(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let u=function(){Ap(WD,n,s,{discrete:!0})};const s={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}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 qD(e,t=globalThis==null?void 0:globalThis.document){const n=je(e),r=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!r.current&&Ap(HD,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 kp(){const e=new CustomEvent(Ss);document.dispatchEvent(e)}function Ap(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?is(o,a):o.dispatchEvent(a)}const XD=$o,JD=GD,Ds="focusScope.autoFocusOnMount",Ps="focusScope.autoFocusOnUnmount",Ip={bubbles:!1,cancelable:!0},Ts=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,s]=c.useState(null),u=je(o),d=je(a),f=c.useRef(null),m=ye(t,b=>s(b)),g=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let b=function(w){if(g.paused||!l)return;const S=w.target;l.contains(S)?f.current=S:hn(f.current,{select:!0})},v=function(w){if(g.paused||!l)return;const S=w.relatedTarget;S!==null&&(l.contains(S)||hn(f.current,{select:!0}))},_=function(w){const S=document.activeElement;for(const P of w)P.removedNodes.length>0&&(l!=null&&l.contains(S)||hn(l))};document.addEventListener("focusin",b),document.addEventListener("focusout",v);const y=new MutationObserver(_);return l&&y.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",v),y.disconnect()}}},[r,l,g.paused]),c.useEffect(()=>{if(l){Fp.add(g);const b=document.activeElement;if(!l.contains(b)){const _=new CustomEvent(Ds,Ip);l.addEventListener(Ds,u),l.dispatchEvent(_),_.defaultPrevented||(ZD(rP(Op(l)),{select:!0}),document.activeElement===b&&hn(l))}return()=>{l.removeEventListener(Ds,u),setTimeout(()=>{const _=new CustomEvent(Ps,Ip);l.addEventListener(Ps,d),l.dispatchEvent(_),_.defaultPrevented||hn(b??document.body,{select:!0}),l.removeEventListener(Ps,d),Fp.remove(g)},0)}}},[l,u,d,g]);const h=c.useCallback(b=>{if(!n&&!r||g.paused)return;const v=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,_=document.activeElement;if(v&&_){const y=b.currentTarget,[w,S]=QD(y);w&&S?!b.shiftKey&&_===S?(b.preventDefault(),n&&hn(w,{select:!0})):b.shiftKey&&_===w&&(b.preventDefault(),n&&hn(S,{select:!0})):_===y&&b.preventDefault()}},[n,r,g.paused]);return c.createElement(ce.div,N({tabIndex:-1},i,{ref:m,onKeyDown:h}))});function ZD(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(hn(r,{select:t}),document.activeElement!==n)return}function QD(e){const t=Op(e),n=Mp(t,e),r=Mp(t.reverse(),e);return[n,r]}function Op(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 Mp(e,t){for(const n of e)if(!eP(n,{upTo:t}))return n}function eP(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function tP(e){return e instanceof HTMLInputElement&&"select"in e}function hn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&tP(e)&&t&&e.select()}}const Fp=nP();function nP(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Lp(e,t),e.unshift(t)},remove(t){var n;e=Lp(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Lp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function rP(e){return e.filter(t=>t.tagName!=="A")}const _o=c.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Rt.default.createPortal(c.createElement(ce.div,N({},o,{ref:t})),r):null});let Cs=0;function ks(){c.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Np()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Np()),Cs++,()=>{Cs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Cs--}},[])}function Np(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var kt=function(){return kt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},kt.apply(this,arguments)};function zp(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function oP(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Ka="right-scroll-bar-position",Va="width-before-scroll-bar",aP="with-scroll-bars-hidden",iP="--removed-body-scroll-bar-size";function lP(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function sP(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function Rp(e,t){return sP(t||null,function(n){return e.forEach(function(r){return lP(r,n)})})}function Kp(e){return e}function Vp(e,t){t===void 0&&(t=Kp);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(l){return l!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(l){return a(l)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var l=n;n=[],l.forEach(a),i=n}var s=function(){var d=i;i=[],d.forEach(a)},u=function(){return Promise.resolve().then(s)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return o}function As(e,t){return t===void 0&&(t=Kp),Vp(e,t)}function Bp(e){e===void 0&&(e={});var t=Vp(null);return t.options=kt({async:!0,ssr:!1},e),t}var jp=function(e){var t=e.sideCar,n=zp(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return D.createElement(r,kt({},n))};jp.isSideCarExport=!0;function cP(e,t){return e.useMedium(t),jp}var Up=Bp(),Is=function(){},Ba=D.forwardRef(function(e,t){var n=D.useRef(null),r=D.useState({onScrollCapture:Is,onWheelCapture:Is,onTouchMoveCapture:Is}),o=r[0],a=r[1],i=e.forwardProps,l=e.children,s=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,m=e.sideCar,g=e.noIsolation,h=e.inert,b=e.allowPinchZoom,v=e.as,_=v===void 0?"div":v,y=zp(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=m,S=Rp([n,t]),P=kt(kt({},y),o);return D.createElement(D.Fragment,null,d&&D.createElement(w,{sideCar:Up,removeScrollBar:u,shards:f,noIsolation:g,inert:h,setCallbacks:a,allowPinchZoom:!!b,lockRef:n}),i?D.cloneElement(D.Children.only(l),kt(kt({},P),{ref:S})):D.createElement(_,kt({},P,{className:s,ref:S}),l))});Ba.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ba.classNames={fullWidth:Va,zeroRight:Ka};var Wp,uP=function(){if(Wp)return Wp;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function dP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=uP();return t&&e.setAttribute("nonce",t),e}function fP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var mP=function(){var e=0,t=null;return{add:function(n){e==0&&(t=dP())&&(fP(t,n),pP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},gP=function(){var e=mP();return function(t,n){D.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Hp=function(){var e=gP(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},hP={left:0,top:0,right:0,gap:0},Os=function(e){return parseInt(e||"",10)||0},bP=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Os(n),Os(r),Os(o)]},vP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return hP;var t=bP(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},yP=Hp(),$P=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
146
146
|
.`.concat(aP,` {
|
|
147
147
|
overflow: hidden `).concat(r,`;
|
|
148
148
|
padding-right: `).concat(l,"px ").concat(r,`;
|
|
@@ -182,8 +182,8 @@ object-assign
|
|
|
182
182
|
`)},_P=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=D.useMemo(function(){return vP(o)},[o]);return D.createElement(yP,{styles:$P(a,!t,o,n?"":"!important")})},Ms=!1;if(typeof window<"u")try{var ja=Object.defineProperty({},"passive",{get:function(){return Ms=!0,!0}});window.addEventListener("test",ja,ja),window.removeEventListener("test",ja,ja)}catch{Ms=!1}var ir=Ms?{passive:!1}:!1,xP=function(e){return e.tagName==="TEXTAREA"},Gp=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!xP(e)&&n[t]==="visible")},wP=function(e){return Gp(e,"overflowY")},EP=function(e){return Gp(e,"overflowX")},Yp=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=qp(e,n);if(r){var o=Xp(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},SP=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},DP=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},qp=function(e,t){return e==="v"?wP(t):EP(t)},Xp=function(e,t){return e==="v"?SP(t):DP(t)},PP=function(e,t){return e==="h"&&t==="rtl"?-1:1},TP=function(e,t,n,r,o){var a=PP(e,window.getComputedStyle(t).direction),i=a*r,l=n.target,s=t.contains(l),u=!1,d=i>0,f=0,m=0;do{var g=Xp(e,l),h=g[0],b=g[1],v=g[2],_=b-v-a*h;(h||_)&&qp(e,l)&&(f+=_,m+=h),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(d&&(o&&f===0||!o&&i>f)||!d&&(o&&m===0||!o&&-i>m))&&(u=!0),u},Ua=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jp=function(e){return[e.deltaX,e.deltaY]},Zp=function(e){return e&&"current"in e?e.current:e},CP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},kP=function(e){return`
|
|
183
183
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
184
184
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
185
|
-
`)},AP=0,lr=[];function IP(e){var t=D.useRef([]),n=D.useRef([0,0]),r=D.useRef(),o=D.useState(AP++)[0],a=D.useState(function(){return Hp()})[0],i=D.useRef(e);D.useEffect(function(){i.current=e},[e]),D.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var b=oP([e.lockRef.current],(e.shards||[]).map(Zp),!0).filter(Boolean);return b.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),b.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=D.useCallback(function(b,v){if("touches"in b&&b.touches.length===2)return!i.current.allowPinchZoom;var _=Ua(b),y=n.current,w="deltaX"in b?b.deltaX:y[0]-_[0],S="deltaY"in b?b.deltaY:y[1]-_[1],P,T=b.target,M=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in b&&M==="h"&&T.type==="range")return!1;var $=Yp(M,T);if(!$)return!0;if($?P=M:(P=M==="v"?"h":"v",$=Yp(M,T)),!$)return!1;if(!r.current&&"changedTouches"in b&&(w||S)&&(r.current=P),!P)return!0;var k=r.current||P;return TP(k,v,b,k==="h"?w:S,!0)},[]),s=D.useCallback(function(b){var v=b;if(!(!lr.length||lr[lr.length-1]!==a)){var _="deltaY"in v?Jp(v):Ua(v),y=t.current.filter(function(P){return P.name===v.type&&P.target===v.target&&CP(P.delta,_)})[0];if(y&&y.should){v.cancelable&&v.preventDefault();return}if(!y){var w=(i.current.shards||[]).map(Zp).filter(Boolean).filter(function(P){return P.contains(v.target)}),S=w.length>0?l(v,w[0]):!i.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),u=D.useCallback(function(b,v,_,y){var w={name:b,delta:v,target:_,should:y};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),d=D.useCallback(function(b){n.current=Ua(b),r.current=void 0},[]),f=D.useCallback(function(b){u(b.type,Jp(b),b.target,l(b,e.lockRef.current))},[]),m=D.useCallback(function(b){u(b.type,Ua(b),b.target,l(b,e.lockRef.current))},[]);D.useEffect(function(){return lr.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",s,ir),document.addEventListener("touchmove",s,ir),document.addEventListener("touchstart",d,ir),function(){lr=lr.filter(function(b){return b!==a}),document.removeEventListener("wheel",s,ir),document.removeEventListener("touchmove",s,ir),document.removeEventListener("touchstart",d,ir)}},[]);var g=e.removeScrollBar,h=e.inert;return D.createElement(D.Fragment,null,h?D.createElement(a,{styles:kP(o)}):null,g?D.createElement(_P,{gapMode:"margin"}):null)}const OP=cP(Up,IP);var Qp=D.forwardRef(function(e,t){return D.createElement(Ba,kt({},e,{ref:t,sideCar:OP}))});Qp.classNames=Ba.classNames;const Fs=Qp;var MP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},sr=new WeakMap,Wa=new WeakMap,Ha={},Ls=0,em=function(e){return e&&(e.host||em(e.parentNode))},FP=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=em(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},LP=function(e,t,n,r){var o=FP(t,Array.isArray(e)?e:[e]);Ha[n]||(Ha[n]=new WeakMap);var a=Ha[n],i=[],l=new Set,s=new Set(o),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};o.forEach(u);var d=function(f){!f||s.has(f)||Array.prototype.forEach.call(f.children,function(m){if(l.has(m))d(m);else{var g=m.getAttribute(r),h=g!==null&&g!=="false",b=(sr.get(m)||0)+1,v=(a.get(m)||0)+1;sr.set(m,b),a.set(m,v),i.push(m),b===1&&h&&Wa.set(m,!0),v===1&&m.setAttribute(n,"true"),h||m.setAttribute(r,"true")}})};return d(t),l.clear(),Ls++,function(){i.forEach(function(f){var m=sr.get(f)-1,g=a.get(f)-1;sr.set(f,m),a.set(f,g),m||(Wa.has(f)||f.removeAttribute(r),Wa.delete(f)),g||f.removeAttribute(n)}),Ls--,Ls||(sr=new WeakMap,sr=new WeakMap,Wa=new WeakMap,Ha={})}},Ns=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||MP(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),LP(r,o,n,"aria-hidden")):function(){return null}};const tm="Dialog",[nm,rm]=Ke(tm),[NP,bt]=nm(tm),zP=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=c.useRef(null),s=c.useRef(null),[u=!1,d]=Ue({prop:r,defaultProp:o,onChange:a});return c.createElement(NP,{scope:t,triggerRef:l,contentRef:s,contentId:nt(),titleId:nt(),descriptionId:nt(),open:u,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(f=>!f),[d]),modal:i},n)},RP="DialogTrigger",KP=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(RP,n),a=ye(t,o.triggerRef);return c.createElement(ce.button,N({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Rs(o.open)},r,{ref:a,onClick:Q(e.onClick,o.onOpenToggle)}))}),om="DialogPortal",[VP,am]=nm(om,{forceMount:void 0}),BP=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=bt(om,t);return c.createElement(VP,{scope:t,forceMount:n},c.Children.map(r,i=>c.createElement(We,{present:n||a.open},c.createElement(_o,{asChild:!0,container:o},i))))},zs="DialogOverlay",jP=c.forwardRef((e,t)=>{const n=am(zs,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=bt(zs,e.__scopeDialog);return a.modal?c.createElement(We,{present:r||a.open},c.createElement(UP,N({},o,{ref:t}))):null}),UP=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(zs,n);return c.createElement(Fs,{as:Ln,allowPinchZoom:!0,shards:[o.contentRef]},c.createElement(ce.div,N({"data-state":Rs(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),cr="DialogContent",WP=c.forwardRef((e,t)=>{const n=am(cr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=bt(cr,e.__scopeDialog);return c.createElement(We,{present:r||a.open},a.modal?c.createElement(HP,N({},o,{ref:t})):c.createElement(GP,N({},o,{ref:t})))}),HP=c.forwardRef((e,t)=>{const n=bt(cr,e.__scopeDialog),r=c.useRef(null),o=ye(t,n.contentRef,r);return c.useEffect(()=>{const a=r.current;if(a)return Ns(a)},[]),c.createElement(im,N({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Q(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:Q(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&a.preventDefault()}),onFocusOutside:Q(e.onFocusOutside,a=>a.preventDefault())}))}),GP=c.forwardRef((e,t)=>{const n=bt(cr,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return c.createElement(im,N({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,l;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),im=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=bt(cr,n),s=c.useRef(null),u=ye(t,s);return ks(),c.createElement(c.Fragment,null,c.createElement(Ts,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},c.createElement($o,N({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Rs(l.open)},i,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),lm="DialogTitle",YP=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(lm,n);return c.createElement(ce.h2,N({id:o.titleId},r,{ref:t}))}),qP="DialogDescription",XP=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(qP,n);return c.createElement(ce.p,N({id:o.descriptionId},r,{ref:t}))}),JP="DialogClose",ZP=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(JP,n);return c.createElement(ce.button,N({type:"button"},r,{ref:t,onClick:Q(e.onClick,()=>o.onOpenChange(!1))}))});function Rs(e){return e?"open":"closed"}const QP="DialogTitleWarning",[eT,TV]=s5(QP,{contentName:cr,titleName:lm,docsSlug:"dialog"}),sm=zP,cm=KP,um=BP,dm=jP,fm=WP,pm=YP,mm=XP,Ga=ZP,tT="AlertDialog",[nT,CV]=Ke(tT,[rm]),jt=rm(),rT=e=>{const{__scopeAlertDialog:t,...n}=e,r=jt(t);return c.createElement(sm,N({},r,n,{modal:!0}))},oT=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=jt(n);return c.createElement(cm,N({},o,r,{ref:t}))}),aT=e=>{const{__scopeAlertDialog:t,...n}=e,r=jt(t);return c.createElement(um,N({},r,n))},iT=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=jt(n);return c.createElement(dm,N({},o,r,{ref:t}))}),gm="AlertDialogContent",[lT,sT]=nT(gm),cT=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=jt(n),i=c.useRef(null),l=ye(t,i),s=c.useRef(null);return c.createElement(eT,{contentName:gm,titleName:uT,docsSlug:"alert-dialog"},c.createElement(lT,{scope:n,cancelRef:s},c.createElement(fm,N({role:"alertdialog"},a,o,{ref:l,onOpenAutoFocus:Q(o.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=s.current)===null||d===void 0||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault()}),c.createElement(as,null,r),!1)))}),uT="AlertDialogTitle",dT=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=jt(n);return c.createElement(pm,N({},o,r,{ref:t}))}),fT=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=jt(n);return c.createElement(mm,N({},o,r,{ref:t}))}),pT=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=jt(n);return c.createElement(Ga,N({},o,r,{ref:t}))}),mT="AlertDialogCancel",gT=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=sT(mT,n),a=jt(n),i=ye(t,o);return c.createElement(Ga,N({},a,r,{ref:i}))}),hT=rT,bT=oT,vT=aT,yT=iT,$T=cT,_T=pT,hm=gT,xT=dT,wT=fT;function Ya(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Ks={exports:{}},Vs,bm;function Bs(){if(bm)return Vs;bm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Vs=e,Vs}var js,vm;function ym(){return vm||(vm=1,js=Function.call.bind(Object.prototype.hasOwnProperty)),js}var Us,$m;function ET(){if($m)return Us;$m=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Bs(),n={},r=ym();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,l,s,u){if(process.env.NODE_ENV!=="production"){for(var d in a)if(r(a,d)){var f;try{if(typeof a[d]!="function"){var m=Error((s||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}f=a[d](i,d,s,l,null,t)}catch(h){f=h}if(f&&!(f instanceof Error)&&e((s||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var g=u?u():"";e("Failed "+l+" type: "+f.message+(g??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Us=o,Us}var Ws,_m;function ST(){if(_m)return Ws;_m=1;var e=ts.default,t=vp,n=Bs(),r=ym(),o=ET(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var s="Warning: "+l;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}});function i(){return null}return Ws=function(l,s){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(F){var B=F&&(u&&F[u]||F[d]);if(typeof B=="function")return B}var m="<<anonymous>>",g={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:y(),arrayOf:w,element:S(),elementType:P(),instanceOf:T,node:L(),objectOf:$,oneOf:M,oneOfType:k,shape:R,exact:O};function h(F,B){return F===B?F!==0||1/F===1/B:F!==F&&B!==B}function b(F,B){this.message=F,this.data=B&&typeof B=="object"?B:{},this.stack=""}b.prototype=Error.prototype;function v(F){if(process.env.NODE_ENV!=="production")var B={},Y=0;function W(re,oe,ae,ne,ee,se,_e){if(ne=ne||m,se=se||ae,_e!==n){if(s){var le=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw le.name="Invariant Violation",le}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=ne+":"+ae;!B[pe]&&Y<3&&(a("You are manually calling a React.PropTypes validation function for the `"+se+"` prop on `"+ne+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),B[pe]=!0,Y++)}}return oe[ae]==null?re?oe[ae]===null?new b("The "+ee+" `"+se+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new b("The "+ee+" `"+se+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:F(oe,ae,ne,ee,se)}var G=W.bind(null,!1);return G.isRequired=W.bind(null,!0),G}function _(F){function B(Y,W,G,re,oe,ae){var ne=Y[W],ee=I(ne);if(ee!==F){var se=J(ne);return new b("Invalid "+re+" `"+oe+"` of type "+("`"+se+"` supplied to `"+G+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return v(B)}function y(){return v(i)}function w(F){function B(Y,W,G,re,oe){if(typeof F!="function")return new b("Property `"+oe+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var ae=Y[W];if(!Array.isArray(ae)){var ne=I(ae);return new b("Invalid "+re+" `"+oe+"` of type "+("`"+ne+"` supplied to `"+G+"`, expected an array."))}for(var ee=0;ee<ae.length;ee++){var se=F(ae,ee,G,re,oe+"["+ee+"]",n);if(se instanceof Error)return se}return null}return v(B)}function S(){function F(B,Y,W,G,re){var oe=B[Y];if(!l(oe)){var ae=I(oe);return new b("Invalid "+G+" `"+re+"` of type "+("`"+ae+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return v(F)}function P(){function F(B,Y,W,G,re){var oe=B[Y];if(!e.isValidElementType(oe)){var ae=I(oe);return new b("Invalid "+G+" `"+re+"` of type "+("`"+ae+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return v(F)}function T(F){function B(Y,W,G,re,oe){if(!(Y[W]instanceof F)){var ae=F.name||m,ne=U(Y[W]);return new b("Invalid "+re+" `"+oe+"` of type "+("`"+ne+"` supplied to `"+G+"`, expected ")+("instance of `"+ae+"`."))}return null}return v(B)}function M(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function B(Y,W,G,re,oe){for(var ae=Y[W],ne=0;ne<F.length;ne++)if(h(ae,F[ne]))return null;var ee=JSON.stringify(F,function(_e,le){var pe=J(le);return pe==="symbol"?String(le):le});return new b("Invalid "+re+" `"+oe+"` of value `"+String(ae)+"` "+("supplied to `"+G+"`, expected one of "+ee+"."))}return v(B)}function $(F){function B(Y,W,G,re,oe){if(typeof F!="function")return new b("Property `"+oe+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var ae=Y[W],ne=I(ae);if(ne!=="object")return new b("Invalid "+re+" `"+oe+"` of type "+("`"+ne+"` supplied to `"+G+"`, expected an object."));for(var ee in ae)if(r(ae,ee)){var se=F(ae,ee,G,re,oe+"."+ee,n);if(se instanceof Error)return se}return null}return v(B)}function k(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var B=0;B<F.length;B++){var Y=F[B];if(typeof Y!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+j(Y)+" at index "+B+"."),i}function W(G,re,oe,ae,ne){for(var ee=[],se=0;se<F.length;se++){var _e=F[se],le=_e(G,re,oe,ae,ne,n);if(le==null)return null;le.data&&r(le.data,"expectedType")&&ee.push(le.data.expectedType)}var pe=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new b("Invalid "+ae+" `"+ne+"` supplied to "+("`"+oe+"`"+pe+"."))}return v(W)}function L(){function F(B,Y,W,G,re){return A(B[Y])?null:new b("Invalid "+G+" `"+re+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return v(F)}function x(F,B,Y,W,G){return new b((F||"React class")+": "+B+" type `"+Y+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function R(F){function B(Y,W,G,re,oe){var ae=Y[W],ne=I(ae);if(ne!=="object")return new b("Invalid "+re+" `"+oe+"` of type `"+ne+"` "+("supplied to `"+G+"`, expected `object`."));for(var ee in F){var se=F[ee];if(typeof se!="function")return x(G,re,oe,ee,J(se));var _e=se(ae,ee,G,re,oe+"."+ee,n);if(_e)return _e}return null}return v(B)}function O(F){function B(Y,W,G,re,oe){var ae=Y[W],ne=I(ae);if(ne!=="object")return new b("Invalid "+re+" `"+oe+"` of type `"+ne+"` "+("supplied to `"+G+"`, expected `object`."));var ee=t({},Y[W],F);for(var se in ee){var _e=F[se];if(r(F,se)&&typeof _e!="function")return x(G,re,oe,se,J(_e));if(!_e)return new b("Invalid "+re+" `"+oe+"` key `"+se+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(Y[W],null," ")+`
|
|
186
|
-
Valid keys: `+JSON.stringify(Object.keys(F),null," "));var le=_e(ae,se,G,re,oe+"."+se,n);if(le)return le}return null}return v(B)}function A(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every(A);if(F===null||l(F))return!0;var B=f(F);if(B){var Y=B.call(F),W;if(B!==F.entries){for(;!(W=Y.next()).done;)if(!A(W.value))return!1}else for(;!(W=Y.next()).done;){var G=W.value;if(G&&!A(G[1]))return!1}}else return!1;return!0;default:return!1}}function V(F,B){return F==="symbol"?!0:B?B["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&B instanceof Symbol:!1}function I(F){var B=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":V(B,F)?"symbol":B}function J(F){if(typeof F>"u"||F===null)return""+F;var B=I(F);if(B==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return B}function j(F){var B=J(F);switch(B){case"array":case"object":return"an "+B;case"boolean":case"date":case"regexp":return"a "+B;default:return B}}function U(F){return!F.constructor||!F.constructor.name?m:F.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},Ws}var Hs,xm;function DT(){if(xm)return Hs;xm=1;var e=Bs();function t(){}function n(){}return n.resetWarningCache=t,Hs=function(){function r(i,l,s,u,d,f){if(f!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Hs}if(process.env.NODE_ENV!=="production"){var PT=ts.default,TT=!0;Ks.exports=ST()(PT.isElement,TT)}else Ks.exports=DT()();var $e=Ks.exports;const te=Ca($e);var Gs="data-focus-lock",wm="data-focus-lock-disabled",CT="data-no-focus-lock",kT="data-autofocus-inside",AT="data-no-autofocus",Ys={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};process.env.NODE_ENV!=="production"&&te.node;var Em=As({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),Sm=As(),IT=As(),OT=Bp({async:!0}),MT=[],qs=D.forwardRef(function(t,n){var r,o=D.useState(),a=o[0],i=o[1],l=D.useRef(),s=D.useRef(!1),u=D.useRef(null),d=t.children,f=t.disabled,m=t.noFocusGuards,g=t.persistentFocus,h=t.crossFrame,b=t.autoFocus,v=t.allowTextSelection,_=t.group,y=t.className,w=t.whiteList,S=t.hasPositiveIndices,P=t.shards,T=P===void 0?MT:P,M=t.as,$=M===void 0?"div":M,k=t.lockProps,L=k===void 0?{}:k,x=t.sideCar,R=t.returnFocus,O=t.focusOptions,A=t.onActivation,V=t.onDeactivation,I=D.useState({}),J=I[0],j=D.useCallback(function(){u.current=u.current||document&&document.activeElement,l.current&&A&&A(l.current),s.current=!0},[A]),U=D.useCallback(function(){s.current=!1,V&&V(l.current)},[V]);c.useEffect(function(){f||(u.current=null)},[]);var F=D.useCallback(function(ne){var ee=u.current;if(ee&&ee.focus){var se=typeof R=="function"?R(ee):R;if(se){var _e=typeof se=="object"?se:void 0;u.current=null,ne?Promise.resolve().then(function(){return ee.focus(_e)}):ee.focus(_e)}}},[R]),B=D.useCallback(function(ne){s.current&&Em.useMedium(ne)},[]),Y=Sm.useMedium,W=D.useCallback(function(ne){l.current!==ne&&(l.current=ne,i(ne))},[]);process.env.NODE_ENV!=="production"&&(typeof v<"u"&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),D.useEffect(function(){!l.current&&typeof $!="string"&&console.error("FocusLock: could not obtain ref to internal node")},[]));var G=N((r={},r[wm]=f&&"disabled",r[Gs]=_,r),L),re=m!==!0,oe=re&&m!=="tail",ae=Rp([n,W]);return D.createElement(D.Fragment,null,re&&[D.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:f?-1:0,style:Ys}),S?D.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:f?-1:1,style:Ys}):null],!f&&D.createElement(x,{id:J,sideCar:OT,observed:a,disabled:f,persistentFocus:g,crossFrame:h,autoFocus:b,whiteList:w,shards:T,onActivation:j,onDeactivation:U,returnFocus:F,focusOptions:O}),D.createElement($,N({ref:ae},G,{className:y,onBlur:Y,onFocus:B}),d),oe&&D.createElement("div",{"data-focus-guard":!0,tabIndex:f?-1:0,style:Ys}))});qs.propTypes=process.env.NODE_ENV!=="production"?{children:$e.node,disabled:$e.bool,returnFocus:$e.oneOfType([$e.bool,$e.object,$e.func]),focusOptions:$e.object,noFocusGuards:$e.bool,hasPositiveIndices:$e.bool,allowTextSelection:$e.bool,autoFocus:$e.bool,persistentFocus:$e.bool,crossFrame:$e.bool,group:$e.string,className:$e.string,whiteList:$e.func,shards:$e.arrayOf($e.any),as:$e.oneOfType([$e.string,$e.func,$e.object]),lockProps:$e.object,onActivation:$e.func,onDeactivation:$e.func,sideCar:$e.any.isRequired}:{},qs.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const Dm=qs;function Xs(e,t){return Xs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Xs(e,t)}function qa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xs(e,t)}function bn(e){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bn(e)}function FT(e,t){if(bn(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bn(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pm(e){var t=FT(e,"string");return bn(t)==="symbol"?t:String(t)}function ur(e,t,n){return t=Pm(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LT(e,t){if(process.env.NODE_ENV!=="production"){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.")}function n(r){return r.displayName||r.name||"Component"}return function(o){if(process.env.NODE_ENV!=="production"&&typeof o!="function")throw new Error("Expected WrappedComponent to be a React component.");var a=[],i;function l(){i=e(a.map(function(u){return u.props})),t(i)}var s=function(u){qa(d,u);function d(){return u.apply(this,arguments)||this}d.peek=function(){return i};var f=d.prototype;return f.componentDidMount=function(){a.push(this),l()},f.componentDidUpdate=function(){l()},f.componentWillUnmount=function(){var g=a.indexOf(this);a.splice(g,1),l()},f.render=function(){return D.default.createElement(o,this.props)},d}(c.PureComponent);return ur(s,"displayName","SideEffect("+n(o)+")"),s}}var At=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},Xa=function(e){return Array.isArray(e)?e:[e]},Tm=function(e){return Array.isArray(e)?e[0]:e},NT=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},Cm=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},km=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},zT=function(e,t){return!e||km(e)||!NT(e)&&t(Cm(e))},Am=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=zT(t,Am.bind(void 0,e));return e.set(t,r),r},RT=function(e,t){return e&&!km(e)?BT(e)?t(Cm(e)):!1:!0},Im=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=RT(t,Im.bind(void 0,e));return e.set(t,r),r},Om=function(e){return e.dataset},KT=function(e){return e.tagName==="BUTTON"},Mm=function(e){return e.tagName==="INPUT"},Fm=function(e){return Mm(e)&&e.type==="radio"},VT=function(e){return!((Mm(e)||KT(e))&&(e.type==="hidden"||e.disabled))},BT=function(e){var t=e.getAttribute(AT);return![!0,"true",""].includes(t)},Js=function(e){var t;return!!(e&&(!((t=Om(e))===null||t===void 0)&&t.focusGuard))},Ja=function(e){return!Js(e)},jT=function(e){return!!e},UT=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},Lm=function(e,t,n){return At(e).map(function(r,o){return{node:r,index:o,tabIndex:n&&r.tabIndex===-1?(r.dataset||{}).focusGuard?0:-1:r.tabIndex}}).filter(function(r){return!t||r.tabIndex>=0}).sort(UT)},WT=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Zs=WT.join(","),HT="".concat(Zs,", [data-focus-guard]"),Nm=function(e,t){return At((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?HT:Zs)?[r]:[],Nm(r))},[])},GT=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?Za([e.contentDocument.body],t):[e]},Za=function(e,t){return e.reduce(function(n,r){var o,a=Nm(r,t),i=(o=[]).concat.apply(o,a.map(function(l){return GT(l,t)}));return n.concat(i,r.parentNode?At(r.parentNode.querySelectorAll(Zs)).filter(function(l){return l===r}):[])},[])},YT=function(e){var t=e.querySelectorAll("[".concat(kT,"]"));return At(t).map(function(n){return Za([n])}).reduce(function(n,r){return n.concat(r)},[])},Qs=function(e,t){return At(e).filter(function(n){return Am(t,n)}).filter(function(n){return VT(n)})},zm=function(e,t){return t===void 0&&(t=new Map),At(e).filter(function(n){return Im(t,n)})},ec=function(e,t,n){return Lm(Qs(Za(e,n),t),!0,n)},Rm=function(e,t){return Lm(Qs(Za(e),t),!1)},qT=function(e,t){return Qs(YT(e),t)},dr=function(e,t){return e.shadowRoot?dr(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:At(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var o=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return o?dr(o,t):!1}return dr(n,t)})},XT=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var a=e[r].compareDocumentPosition(e[o]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(i,l){return!t.has(l)})},Km=function(e){return e.parentNode?Km(e.parentNode):e},tc=function(e){var t=Xa(e);return t.filter(Boolean).reduce(function(n,r){var o=r.getAttribute(Gs);return n.push.apply(n,o?XT(At(Km(r).querySelectorAll("[".concat(Gs,'="').concat(o,'"]:not([').concat(wm,'="disabled"])')))):[r]),n},[])},JT=function(e){try{return e()}catch{return}},xo=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?xo(t.shadowRoot):t instanceof HTMLIFrameElement&&JT(function(){return t.contentWindow.document})?xo(t.contentWindow.document):t}},ZT=function(e,t){return e===t},QT=function(e,t){return!!At(e.querySelectorAll("iframe")).some(function(n){return ZT(n,t)})},Vm=function(e,t){return t===void 0&&(t=xo(Tm(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:tc(e).some(function(n){return dr(n,t)||QT(n,t)})},e6=function(e){e===void 0&&(e=document);var t=xo(e);return t?At(e.querySelectorAll("[".concat(CT,"]"))).some(function(n){return dr(n,t)}):!1},t6=function(e,t){return t.filter(Fm).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},nc=function(e,t){return Fm(e)&&e.name?t6(e,t):e},n6=function(e){var t=new Set;return e.forEach(function(n){return t.add(nc(n,e))}),e.filter(function(n){return t.has(n)})},Bm=function(e){return e[0]&&e.length>1?nc(e[0],e):e[0]},jm=function(e,t){return e.length>1?e.indexOf(nc(e[t],e)):t},Um="NEW_FOCUS",r6=function(e,t,n,r){var o=e.length,a=e[0],i=e[o-1],l=Js(n);if(!(n&&e.indexOf(n)>=0)){var s=n!==void 0?t.indexOf(n):-1,u=r?t.indexOf(r):s,d=r?e.indexOf(r):-1,f=s-u,m=t.indexOf(a),g=t.indexOf(i),h=n6(t),b=n!==void 0?h.indexOf(n):-1,v=b-(r?h.indexOf(r):s),_=jm(e,0),y=jm(e,o-1);if(s===-1||d===-1)return Um;if(!f&&d>=0)return d;if(s<=m&&l&&Math.abs(f)>1)return y;if(s>=g&&l&&Math.abs(f)>1)return _;if(f&&Math.abs(v)>1)return d;if(s<=m)return y;if(s>g)return _;if(f)return Math.abs(f)>1?d:(o+d+f)%o}},o6=function(e){return function(t){var n,r=(n=Om(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},a6=function(e,t,n){var r=e.map(function(a){var i=a.node;return i}),o=zm(r.filter(o6(n)));return o&&o.length?Bm(o):Bm(zm(t))},rc=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&rc(e.parentNode.host||e.parentNode,t),t},oc=function(e,t){for(var n=rc(e),r=rc(t),o=0;o<n.length;o+=1){var a=n[o];if(r.indexOf(a)>=0)return a}return!1},Wm=function(e,t,n){var r=Xa(e),o=Xa(t),a=r[0],i=!1;return o.filter(Boolean).forEach(function(l){i=oc(i||l,l)||i,n.filter(Boolean).forEach(function(s){var u=oc(a,s);u&&(!i||dr(u,i)?i=u:i=oc(u,i))})}),i},i6=function(e,t){return e.reduce(function(n,r){return n.concat(qT(r,t))},[])},l6=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(jT)},s6=function(e,t){var n=xo(Xa(e).length>0?document:Tm(e).ownerDocument),r=tc(e).filter(Ja),o=Wm(n||e,e,r),a=new Map,i=Rm(r,a),l=ec(r,a).filter(function(g){var h=g.node;return Ja(h)});if(!(!l[0]&&(l=i,!l[0]))){var s=Rm([o],a).map(function(g){var h=g.node;return h}),u=l6(s,l),d=u.map(function(g){var h=g.node;return h}),f=r6(d,s,n,t);if(f===Um){var m=a6(i,d,i6(r,a));if(m)return{node:m};console.warn("focus-lock: cannot find any node to move focus into");return}return f===void 0?f:u[f]}},c6=function(e){var t=tc(e).filter(Ja),n=Wm(e,e,t),r=new Map,o=ec([n],r,!0),a=ec(t,r).filter(function(i){var l=i.node;return Ja(l)}).map(function(i){var l=i.node;return l});return o.map(function(i){var l=i.node,s=i.index;return{node:l,index:s,lockItem:a.indexOf(l)>=0,guard:Js(l)}})},u6=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},ac=0,ic=!1,Hm=function(e,t,n){n===void 0&&(n={});var r=s6(e,t);if(!ic&&r){if(ac>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ic=!0,setTimeout(function(){ic=!1},1);return}ac++,u6(r.node,n.focusOptions),ac--}};function lc(e){setTimeout(e,1)}var d6=function(){return document&&document.activeElement===document.body},f6=function(){return d6()||e6()},fr=null,pr=null,mr=null,wo=!1,p6=function(){return!0},m6=function(t){return(fr.whiteList||p6)(t)},g6=function(t,n){mr={observerNode:t,portaledElement:n}},h6=function(t){return mr&&mr.portaledElement===t};function Gm(e,t,n,r){var o=null,a=e;do{var i=r[a];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else if(i.lockItem){if(a!==e)return;o=null}else break}while((a+=n)!==t);o&&(o.node.tabIndex=0)}var b6=function(t){return t&&"current"in t?t.current:t},v6=function(t){return t?!!wo:wo==="meanwhile"},y6=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},$6=function(t,n){return n.some(function(r){return y6(t,r,r)})},Qa=function(){var t=!1;if(fr){var n=fr,r=n.observed,o=n.persistentFocus,a=n.autoFocus,i=n.shards,l=n.crossFrame,s=n.focusOptions,u=r||mr&&mr.portaledElement,d=document&&document.activeElement;if(u){var f=[u].concat(i.map(b6).filter(Boolean));if((!d||m6(d))&&(o||v6(l)||!f6()||!pr&&a)&&(u&&!(Vm(f)||d&&$6(d,f)||h6(d))&&(document&&!pr&&d&&!a?(d.blur&&d.blur(),document.body.focus()):(t=Hm(f,pr,{focusOptions:s}),mr={})),wo=!1,pr=document&&document.activeElement),document){var m=document&&document.activeElement,g=c6(f),h=g.map(function(b){var v=b.node;return v}).indexOf(m);h>-1&&(g.filter(function(b){var v=b.guard,_=b.node;return v&&_.dataset.focusAutoGuard}).forEach(function(b){var v=b.node;return v.removeAttribute("tabIndex")}),Gm(h,g.length,1,g),Gm(h,-1,-1,g))}}}return t},Ym=function(t){Qa()&&t&&(t.stopPropagation(),t.preventDefault())},sc=function(){return lc(Qa)},_6=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||g6(r,n)},x6=function(){return null};process.env.NODE_ENV!=="production"&&te.node.isRequired;var qm=function(){wo="just",lc(function(){wo="meanwhile"})},w6=function(){document.addEventListener("focusin",Ym),document.addEventListener("focusout",sc),window.addEventListener("blur",qm)},E6=function(){document.removeEventListener("focusin",Ym),document.removeEventListener("focusout",sc),window.removeEventListener("blur",qm)};function S6(e){return e.filter(function(t){var n=t.disabled;return!n})}function D6(e){var t=e.slice(-1)[0];t&&!fr&&w6();var n=fr,r=n&&t&&t.id===n.id;fr=t,n&&!r&&(n.onDeactivation(),e.filter(function(o){var a=o.id;return a===n.id}).length||n.returnFocus(!t)),t?(pr=null,(!r||n.observed!==t.observed)&&t.onActivation(),Qa(),lc(Qa)):(E6(),pr=null)}Em.assignSyncMedium(_6),Sm.assignMedium(sc),IT.assignMedium(function(e){return e({moveFocusInside:Hm,focusInside:Vm})});const P6=LT(S6,D6)(x6);var Xm=D.forwardRef(function(t,n){return D.createElement(Dm,N({sideCar:P6,ref:n},t))}),Jm=Dm.propTypes||{};Jm.sideCar;var T6=Ya(Jm,["sideCar"]);Xm.propTypes=process.env.NODE_ENV!=="production"?T6:{};const C6=Xm;var ei={},cc={},Zm={exports:{}};/*!
|
|
185
|
+
`)},AP=0,lr=[];function IP(e){var t=D.useRef([]),n=D.useRef([0,0]),r=D.useRef(),o=D.useState(AP++)[0],a=D.useState(function(){return Hp()})[0],i=D.useRef(e);D.useEffect(function(){i.current=e},[e]),D.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var b=oP([e.lockRef.current],(e.shards||[]).map(Zp),!0).filter(Boolean);return b.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),b.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=D.useCallback(function(b,v){if("touches"in b&&b.touches.length===2)return!i.current.allowPinchZoom;var _=Ua(b),y=n.current,w="deltaX"in b?b.deltaX:y[0]-_[0],S="deltaY"in b?b.deltaY:y[1]-_[1],P,T=b.target,M=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in b&&M==="h"&&T.type==="range")return!1;var $=Yp(M,T);if(!$)return!0;if($?P=M:(P=M==="v"?"h":"v",$=Yp(M,T)),!$)return!1;if(!r.current&&"changedTouches"in b&&(w||S)&&(r.current=P),!P)return!0;var k=r.current||P;return TP(k,v,b,k==="h"?w:S,!0)},[]),s=D.useCallback(function(b){var v=b;if(!(!lr.length||lr[lr.length-1]!==a)){var _="deltaY"in v?Jp(v):Ua(v),y=t.current.filter(function(P){return P.name===v.type&&P.target===v.target&&CP(P.delta,_)})[0];if(y&&y.should){v.cancelable&&v.preventDefault();return}if(!y){var w=(i.current.shards||[]).map(Zp).filter(Boolean).filter(function(P){return P.contains(v.target)}),S=w.length>0?l(v,w[0]):!i.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),u=D.useCallback(function(b,v,_,y){var w={name:b,delta:v,target:_,should:y};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),d=D.useCallback(function(b){n.current=Ua(b),r.current=void 0},[]),f=D.useCallback(function(b){u(b.type,Jp(b),b.target,l(b,e.lockRef.current))},[]),m=D.useCallback(function(b){u(b.type,Ua(b),b.target,l(b,e.lockRef.current))},[]);D.useEffect(function(){return lr.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",s,ir),document.addEventListener("touchmove",s,ir),document.addEventListener("touchstart",d,ir),function(){lr=lr.filter(function(b){return b!==a}),document.removeEventListener("wheel",s,ir),document.removeEventListener("touchmove",s,ir),document.removeEventListener("touchstart",d,ir)}},[]);var g=e.removeScrollBar,h=e.inert;return D.createElement(D.Fragment,null,h?D.createElement(a,{styles:kP(o)}):null,g?D.createElement(_P,{gapMode:"margin"}):null)}const OP=cP(Up,IP);var Qp=D.forwardRef(function(e,t){return D.createElement(Ba,kt({},e,{ref:t,sideCar:OP}))});Qp.classNames=Ba.classNames;const Fs=Qp;var MP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},sr=new WeakMap,Wa=new WeakMap,Ha={},Ls=0,em=function(e){return e&&(e.host||em(e.parentNode))},FP=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=em(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},LP=function(e,t,n,r){var o=FP(t,Array.isArray(e)?e:[e]);Ha[n]||(Ha[n]=new WeakMap);var a=Ha[n],i=[],l=new Set,s=new Set(o),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};o.forEach(u);var d=function(f){!f||s.has(f)||Array.prototype.forEach.call(f.children,function(m){if(l.has(m))d(m);else{var g=m.getAttribute(r),h=g!==null&&g!=="false",b=(sr.get(m)||0)+1,v=(a.get(m)||0)+1;sr.set(m,b),a.set(m,v),i.push(m),b===1&&h&&Wa.set(m,!0),v===1&&m.setAttribute(n,"true"),h||m.setAttribute(r,"true")}})};return d(t),l.clear(),Ls++,function(){i.forEach(function(f){var m=sr.get(f)-1,g=a.get(f)-1;sr.set(f,m),a.set(f,g),m||(Wa.has(f)||f.removeAttribute(r),Wa.delete(f)),g||f.removeAttribute(n)}),Ls--,Ls||(sr=new WeakMap,sr=new WeakMap,Wa=new WeakMap,Ha={})}},Ns=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||MP(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),LP(r,o,n,"aria-hidden")):function(){return null}};const tm="Dialog",[nm,rm]=Ke(tm),[NP,bt]=nm(tm),zP=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=c.useRef(null),s=c.useRef(null),[u=!1,d]=Ue({prop:r,defaultProp:o,onChange:a});return c.createElement(NP,{scope:t,triggerRef:l,contentRef:s,contentId:nt(),titleId:nt(),descriptionId:nt(),open:u,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(f=>!f),[d]),modal:i},n)},RP="DialogTrigger",KP=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(RP,n),a=ye(t,o.triggerRef);return c.createElement(ce.button,N({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Rs(o.open)},r,{ref:a,onClick:Q(e.onClick,o.onOpenToggle)}))}),om="DialogPortal",[VP,am]=nm(om,{forceMount:void 0}),BP=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=bt(om,t);return c.createElement(VP,{scope:t,forceMount:n},c.Children.map(r,i=>c.createElement(We,{present:n||a.open},c.createElement(_o,{asChild:!0,container:o},i))))},zs="DialogOverlay",jP=c.forwardRef((e,t)=>{const n=am(zs,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=bt(zs,e.__scopeDialog);return a.modal?c.createElement(We,{present:r||a.open},c.createElement(UP,N({},o,{ref:t}))):null}),UP=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(zs,n);return c.createElement(Fs,{as:Ln,allowPinchZoom:!0,shards:[o.contentRef]},c.createElement(ce.div,N({"data-state":Rs(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),cr="DialogContent",WP=c.forwardRef((e,t)=>{const n=am(cr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=bt(cr,e.__scopeDialog);return c.createElement(We,{present:r||a.open},a.modal?c.createElement(HP,N({},o,{ref:t})):c.createElement(GP,N({},o,{ref:t})))}),HP=c.forwardRef((e,t)=>{const n=bt(cr,e.__scopeDialog),r=c.useRef(null),o=ye(t,n.contentRef,r);return c.useEffect(()=>{const a=r.current;if(a)return Ns(a)},[]),c.createElement(im,N({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Q(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:Q(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&a.preventDefault()}),onFocusOutside:Q(e.onFocusOutside,a=>a.preventDefault())}))}),GP=c.forwardRef((e,t)=>{const n=bt(cr,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return c.createElement(im,N({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,l;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),im=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=bt(cr,n),s=c.useRef(null),u=ye(t,s);return ks(),c.createElement(c.Fragment,null,c.createElement(Ts,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},c.createElement($o,N({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Rs(l.open)},i,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),lm="DialogTitle",YP=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(lm,n);return c.createElement(ce.h2,N({id:o.titleId},r,{ref:t}))}),qP="DialogDescription",XP=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(qP,n);return c.createElement(ce.p,N({id:o.descriptionId},r,{ref:t}))}),JP="DialogClose",ZP=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(JP,n);return c.createElement(ce.button,N({type:"button"},r,{ref:t,onClick:Q(e.onClick,()=>o.onOpenChange(!1))}))});function Rs(e){return e?"open":"closed"}const QP="DialogTitleWarning",[eT,TV]=s5(QP,{contentName:cr,titleName:lm,docsSlug:"dialog"}),sm=zP,cm=KP,um=BP,dm=jP,fm=WP,pm=YP,mm=XP,Ga=ZP,tT="AlertDialog",[nT,CV]=Ke(tT,[rm]),jt=rm(),rT=e=>{const{__scopeAlertDialog:t,...n}=e,r=jt(t);return c.createElement(sm,N({},r,n,{modal:!0}))},oT=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=jt(n);return c.createElement(cm,N({},o,r,{ref:t}))}),aT=e=>{const{__scopeAlertDialog:t,...n}=e,r=jt(t);return c.createElement(um,N({},r,n))},iT=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=jt(n);return c.createElement(dm,N({},o,r,{ref:t}))}),gm="AlertDialogContent",[lT,sT]=nT(gm),cT=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=jt(n),i=c.useRef(null),l=ye(t,i),s=c.useRef(null);return c.createElement(eT,{contentName:gm,titleName:uT,docsSlug:"alert-dialog"},c.createElement(lT,{scope:n,cancelRef:s},c.createElement(fm,N({role:"alertdialog"},a,o,{ref:l,onOpenAutoFocus:Q(o.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=s.current)===null||d===void 0||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault()}),c.createElement(as,null,r),!1)))}),uT="AlertDialogTitle",dT=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=jt(n);return c.createElement(pm,N({},o,r,{ref:t}))}),fT=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=jt(n);return c.createElement(mm,N({},o,r,{ref:t}))}),pT=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=jt(n);return c.createElement(Ga,N({},o,r,{ref:t}))}),mT="AlertDialogCancel",gT=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=sT(mT,n),a=jt(n),i=ye(t,o);return c.createElement(Ga,N({},a,r,{ref:i}))}),hT=rT,bT=oT,vT=aT,yT=iT,$T=cT,_T=pT,hm=gT,xT=dT,wT=fT;function Ya(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Ks={exports:{}},Vs,bm;function Bs(){if(bm)return Vs;bm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Vs=e,Vs}var js,vm;function ym(){return vm||(vm=1,js=Function.call.bind(Object.prototype.hasOwnProperty)),js}var Us,$m;function ET(){if($m)return Us;$m=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Bs(),n={},r=ym();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,l,s,u){if(process.env.NODE_ENV!=="production"){for(var d in a)if(r(a,d)){var f;try{if(typeof a[d]!="function"){var m=Error((s||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}f=a[d](i,d,s,l,null,t)}catch(h){f=h}if(f&&!(f instanceof Error)&&e((s||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var g=u?u():"";e("Failed "+l+" type: "+f.message+(g??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Us=o,Us}var Ws,_m;function ST(){if(_m)return Ws;_m=1;var e=ts.default,t=vp,n=Bs(),r=ym(),o=ET(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var s="Warning: "+l;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}});function i(){return null}return Ws=function(l,s){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(L){var B=L&&(u&&L[u]||L[d]);if(typeof B=="function")return B}var m="<<anonymous>>",g={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:y(),arrayOf:w,element:S(),elementType:P(),instanceOf:T,node:F(),objectOf:$,oneOf:M,oneOfType:k,shape:R,exact:O};function h(L,B){return L===B?L!==0||1/L===1/B:L!==L&&B!==B}function b(L,B){this.message=L,this.data=B&&typeof B=="object"?B:{},this.stack=""}b.prototype=Error.prototype;function v(L){if(process.env.NODE_ENV!=="production")var B={},Y=0;function W(re,oe,ae,ne,ee,se,_e){if(ne=ne||m,se=se||ae,_e!==n){if(s){var le=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw le.name="Invariant Violation",le}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=ne+":"+ae;!B[pe]&&Y<3&&(a("You are manually calling a React.PropTypes validation function for the `"+se+"` prop on `"+ne+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),B[pe]=!0,Y++)}}return oe[ae]==null?re?oe[ae]===null?new b("The "+ee+" `"+se+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new b("The "+ee+" `"+se+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:L(oe,ae,ne,ee,se)}var G=W.bind(null,!1);return G.isRequired=W.bind(null,!0),G}function _(L){function B(Y,W,G,re,oe,ae){var ne=Y[W],ee=I(ne);if(ee!==L){var se=J(ne);return new b("Invalid "+re+" `"+oe+"` of type "+("`"+se+"` supplied to `"+G+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return v(B)}function y(){return v(i)}function w(L){function B(Y,W,G,re,oe){if(typeof L!="function")return new b("Property `"+oe+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var ae=Y[W];if(!Array.isArray(ae)){var ne=I(ae);return new b("Invalid "+re+" `"+oe+"` of type "+("`"+ne+"` supplied to `"+G+"`, expected an array."))}for(var ee=0;ee<ae.length;ee++){var se=L(ae,ee,G,re,oe+"["+ee+"]",n);if(se instanceof Error)return se}return null}return v(B)}function S(){function L(B,Y,W,G,re){var oe=B[Y];if(!l(oe)){var ae=I(oe);return new b("Invalid "+G+" `"+re+"` of type "+("`"+ae+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return v(L)}function P(){function L(B,Y,W,G,re){var oe=B[Y];if(!e.isValidElementType(oe)){var ae=I(oe);return new b("Invalid "+G+" `"+re+"` of type "+("`"+ae+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return v(L)}function T(L){function B(Y,W,G,re,oe){if(!(Y[W]instanceof L)){var ae=L.name||m,ne=U(Y[W]);return new b("Invalid "+re+" `"+oe+"` of type "+("`"+ne+"` supplied to `"+G+"`, expected ")+("instance of `"+ae+"`."))}return null}return v(B)}function M(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function B(Y,W,G,re,oe){for(var ae=Y[W],ne=0;ne<L.length;ne++)if(h(ae,L[ne]))return null;var ee=JSON.stringify(L,function(_e,le){var pe=J(le);return pe==="symbol"?String(le):le});return new b("Invalid "+re+" `"+oe+"` of value `"+String(ae)+"` "+("supplied to `"+G+"`, expected one of "+ee+"."))}return v(B)}function $(L){function B(Y,W,G,re,oe){if(typeof L!="function")return new b("Property `"+oe+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var ae=Y[W],ne=I(ae);if(ne!=="object")return new b("Invalid "+re+" `"+oe+"` of type "+("`"+ne+"` supplied to `"+G+"`, expected an object."));for(var ee in ae)if(r(ae,ee)){var se=L(ae,ee,G,re,oe+"."+ee,n);if(se instanceof Error)return se}return null}return v(B)}function k(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var B=0;B<L.length;B++){var Y=L[B];if(typeof Y!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+j(Y)+" at index "+B+"."),i}function W(G,re,oe,ae,ne){for(var ee=[],se=0;se<L.length;se++){var _e=L[se],le=_e(G,re,oe,ae,ne,n);if(le==null)return null;le.data&&r(le.data,"expectedType")&&ee.push(le.data.expectedType)}var pe=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new b("Invalid "+ae+" `"+ne+"` supplied to "+("`"+oe+"`"+pe+"."))}return v(W)}function F(){function L(B,Y,W,G,re){return A(B[Y])?null:new b("Invalid "+G+" `"+re+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return v(L)}function x(L,B,Y,W,G){return new b((L||"React class")+": "+B+" type `"+Y+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function R(L){function B(Y,W,G,re,oe){var ae=Y[W],ne=I(ae);if(ne!=="object")return new b("Invalid "+re+" `"+oe+"` of type `"+ne+"` "+("supplied to `"+G+"`, expected `object`."));for(var ee in L){var se=L[ee];if(typeof se!="function")return x(G,re,oe,ee,J(se));var _e=se(ae,ee,G,re,oe+"."+ee,n);if(_e)return _e}return null}return v(B)}function O(L){function B(Y,W,G,re,oe){var ae=Y[W],ne=I(ae);if(ne!=="object")return new b("Invalid "+re+" `"+oe+"` of type `"+ne+"` "+("supplied to `"+G+"`, expected `object`."));var ee=t({},Y[W],L);for(var se in ee){var _e=L[se];if(r(L,se)&&typeof _e!="function")return x(G,re,oe,se,J(_e));if(!_e)return new b("Invalid "+re+" `"+oe+"` key `"+se+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(Y[W],null," ")+`
|
|
186
|
+
Valid keys: `+JSON.stringify(Object.keys(L),null," "));var le=_e(ae,se,G,re,oe+"."+se,n);if(le)return le}return null}return v(B)}function A(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(A);if(L===null||l(L))return!0;var B=f(L);if(B){var Y=B.call(L),W;if(B!==L.entries){for(;!(W=Y.next()).done;)if(!A(W.value))return!1}else for(;!(W=Y.next()).done;){var G=W.value;if(G&&!A(G[1]))return!1}}else return!1;return!0;default:return!1}}function V(L,B){return L==="symbol"?!0:B?B["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&B instanceof Symbol:!1}function I(L){var B=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":V(B,L)?"symbol":B}function J(L){if(typeof L>"u"||L===null)return""+L;var B=I(L);if(B==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return B}function j(L){var B=J(L);switch(B){case"array":case"object":return"an "+B;case"boolean":case"date":case"regexp":return"a "+B;default:return B}}function U(L){return!L.constructor||!L.constructor.name?m:L.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},Ws}var Hs,xm;function DT(){if(xm)return Hs;xm=1;var e=Bs();function t(){}function n(){}return n.resetWarningCache=t,Hs=function(){function r(i,l,s,u,d,f){if(f!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Hs}if(process.env.NODE_ENV!=="production"){var PT=ts.default,TT=!0;Ks.exports=ST()(PT.isElement,TT)}else Ks.exports=DT()();var $e=Ks.exports;const te=Ca($e);var Gs="data-focus-lock",wm="data-focus-lock-disabled",CT="data-no-focus-lock",kT="data-autofocus-inside",AT="data-no-autofocus",Ys={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};process.env.NODE_ENV!=="production"&&te.node;var Em=As({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),Sm=As(),IT=As(),OT=Bp({async:!0}),MT=[],qs=D.forwardRef(function(t,n){var r,o=D.useState(),a=o[0],i=o[1],l=D.useRef(),s=D.useRef(!1),u=D.useRef(null),d=t.children,f=t.disabled,m=t.noFocusGuards,g=t.persistentFocus,h=t.crossFrame,b=t.autoFocus,v=t.allowTextSelection,_=t.group,y=t.className,w=t.whiteList,S=t.hasPositiveIndices,P=t.shards,T=P===void 0?MT:P,M=t.as,$=M===void 0?"div":M,k=t.lockProps,F=k===void 0?{}:k,x=t.sideCar,R=t.returnFocus,O=t.focusOptions,A=t.onActivation,V=t.onDeactivation,I=D.useState({}),J=I[0],j=D.useCallback(function(){u.current=u.current||document&&document.activeElement,l.current&&A&&A(l.current),s.current=!0},[A]),U=D.useCallback(function(){s.current=!1,V&&V(l.current)},[V]);c.useEffect(function(){f||(u.current=null)},[]);var L=D.useCallback(function(ne){var ee=u.current;if(ee&&ee.focus){var se=typeof R=="function"?R(ee):R;if(se){var _e=typeof se=="object"?se:void 0;u.current=null,ne?Promise.resolve().then(function(){return ee.focus(_e)}):ee.focus(_e)}}},[R]),B=D.useCallback(function(ne){s.current&&Em.useMedium(ne)},[]),Y=Sm.useMedium,W=D.useCallback(function(ne){l.current!==ne&&(l.current=ne,i(ne))},[]);process.env.NODE_ENV!=="production"&&(typeof v<"u"&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),D.useEffect(function(){!l.current&&typeof $!="string"&&console.error("FocusLock: could not obtain ref to internal node")},[]));var G=N((r={},r[wm]=f&&"disabled",r[Gs]=_,r),F),re=m!==!0,oe=re&&m!=="tail",ae=Rp([n,W]);return D.createElement(D.Fragment,null,re&&[D.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:f?-1:0,style:Ys}),S?D.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:f?-1:1,style:Ys}):null],!f&&D.createElement(x,{id:J,sideCar:OT,observed:a,disabled:f,persistentFocus:g,crossFrame:h,autoFocus:b,whiteList:w,shards:T,onActivation:j,onDeactivation:U,returnFocus:L,focusOptions:O}),D.createElement($,N({ref:ae},G,{className:y,onBlur:Y,onFocus:B}),d),oe&&D.createElement("div",{"data-focus-guard":!0,tabIndex:f?-1:0,style:Ys}))});qs.propTypes=process.env.NODE_ENV!=="production"?{children:$e.node,disabled:$e.bool,returnFocus:$e.oneOfType([$e.bool,$e.object,$e.func]),focusOptions:$e.object,noFocusGuards:$e.bool,hasPositiveIndices:$e.bool,allowTextSelection:$e.bool,autoFocus:$e.bool,persistentFocus:$e.bool,crossFrame:$e.bool,group:$e.string,className:$e.string,whiteList:$e.func,shards:$e.arrayOf($e.any),as:$e.oneOfType([$e.string,$e.func,$e.object]),lockProps:$e.object,onActivation:$e.func,onDeactivation:$e.func,sideCar:$e.any.isRequired}:{},qs.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const Dm=qs;function Xs(e,t){return Xs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Xs(e,t)}function qa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xs(e,t)}function bn(e){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bn(e)}function FT(e,t){if(bn(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bn(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pm(e){var t=FT(e,"string");return bn(t)==="symbol"?t:String(t)}function ur(e,t,n){return t=Pm(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LT(e,t){if(process.env.NODE_ENV!=="production"){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.")}function n(r){return r.displayName||r.name||"Component"}return function(o){if(process.env.NODE_ENV!=="production"&&typeof o!="function")throw new Error("Expected WrappedComponent to be a React component.");var a=[],i;function l(){i=e(a.map(function(u){return u.props})),t(i)}var s=function(u){qa(d,u);function d(){return u.apply(this,arguments)||this}d.peek=function(){return i};var f=d.prototype;return f.componentDidMount=function(){a.push(this),l()},f.componentDidUpdate=function(){l()},f.componentWillUnmount=function(){var g=a.indexOf(this);a.splice(g,1),l()},f.render=function(){return D.default.createElement(o,this.props)},d}(c.PureComponent);return ur(s,"displayName","SideEffect("+n(o)+")"),s}}var At=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},Xa=function(e){return Array.isArray(e)?e:[e]},Tm=function(e){return Array.isArray(e)?e[0]:e},NT=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},Cm=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},km=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},zT=function(e,t){return!e||km(e)||!NT(e)&&t(Cm(e))},Am=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=zT(t,Am.bind(void 0,e));return e.set(t,r),r},RT=function(e,t){return e&&!km(e)?BT(e)?t(Cm(e)):!1:!0},Im=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=RT(t,Im.bind(void 0,e));return e.set(t,r),r},Om=function(e){return e.dataset},KT=function(e){return e.tagName==="BUTTON"},Mm=function(e){return e.tagName==="INPUT"},Fm=function(e){return Mm(e)&&e.type==="radio"},VT=function(e){return!((Mm(e)||KT(e))&&(e.type==="hidden"||e.disabled))},BT=function(e){var t=e.getAttribute(AT);return![!0,"true",""].includes(t)},Js=function(e){var t;return!!(e&&(!((t=Om(e))===null||t===void 0)&&t.focusGuard))},Ja=function(e){return!Js(e)},jT=function(e){return!!e},UT=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},Lm=function(e,t,n){return At(e).map(function(r,o){return{node:r,index:o,tabIndex:n&&r.tabIndex===-1?(r.dataset||{}).focusGuard?0:-1:r.tabIndex}}).filter(function(r){return!t||r.tabIndex>=0}).sort(UT)},WT=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Zs=WT.join(","),HT="".concat(Zs,", [data-focus-guard]"),Nm=function(e,t){return At((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?HT:Zs)?[r]:[],Nm(r))},[])},GT=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?Za([e.contentDocument.body],t):[e]},Za=function(e,t){return e.reduce(function(n,r){var o,a=Nm(r,t),i=(o=[]).concat.apply(o,a.map(function(l){return GT(l,t)}));return n.concat(i,r.parentNode?At(r.parentNode.querySelectorAll(Zs)).filter(function(l){return l===r}):[])},[])},YT=function(e){var t=e.querySelectorAll("[".concat(kT,"]"));return At(t).map(function(n){return Za([n])}).reduce(function(n,r){return n.concat(r)},[])},Qs=function(e,t){return At(e).filter(function(n){return Am(t,n)}).filter(function(n){return VT(n)})},zm=function(e,t){return t===void 0&&(t=new Map),At(e).filter(function(n){return Im(t,n)})},ec=function(e,t,n){return Lm(Qs(Za(e,n),t),!0,n)},Rm=function(e,t){return Lm(Qs(Za(e),t),!1)},qT=function(e,t){return Qs(YT(e),t)},dr=function(e,t){return e.shadowRoot?dr(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:At(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var o=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return o?dr(o,t):!1}return dr(n,t)})},XT=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var a=e[r].compareDocumentPosition(e[o]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(i,l){return!t.has(l)})},Km=function(e){return e.parentNode?Km(e.parentNode):e},tc=function(e){var t=Xa(e);return t.filter(Boolean).reduce(function(n,r){var o=r.getAttribute(Gs);return n.push.apply(n,o?XT(At(Km(r).querySelectorAll("[".concat(Gs,'="').concat(o,'"]:not([').concat(wm,'="disabled"])')))):[r]),n},[])},JT=function(e){try{return e()}catch{return}},xo=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?xo(t.shadowRoot):t instanceof HTMLIFrameElement&&JT(function(){return t.contentWindow.document})?xo(t.contentWindow.document):t}},ZT=function(e,t){return e===t},QT=function(e,t){return!!At(e.querySelectorAll("iframe")).some(function(n){return ZT(n,t)})},Vm=function(e,t){return t===void 0&&(t=xo(Tm(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:tc(e).some(function(n){return dr(n,t)||QT(n,t)})},e6=function(e){e===void 0&&(e=document);var t=xo(e);return t?At(e.querySelectorAll("[".concat(CT,"]"))).some(function(n){return dr(n,t)}):!1},t6=function(e,t){return t.filter(Fm).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},nc=function(e,t){return Fm(e)&&e.name?t6(e,t):e},n6=function(e){var t=new Set;return e.forEach(function(n){return t.add(nc(n,e))}),e.filter(function(n){return t.has(n)})},Bm=function(e){return e[0]&&e.length>1?nc(e[0],e):e[0]},jm=function(e,t){return e.length>1?e.indexOf(nc(e[t],e)):t},Um="NEW_FOCUS",r6=function(e,t,n,r){var o=e.length,a=e[0],i=e[o-1],l=Js(n);if(!(n&&e.indexOf(n)>=0)){var s=n!==void 0?t.indexOf(n):-1,u=r?t.indexOf(r):s,d=r?e.indexOf(r):-1,f=s-u,m=t.indexOf(a),g=t.indexOf(i),h=n6(t),b=n!==void 0?h.indexOf(n):-1,v=b-(r?h.indexOf(r):s),_=jm(e,0),y=jm(e,o-1);if(s===-1||d===-1)return Um;if(!f&&d>=0)return d;if(s<=m&&l&&Math.abs(f)>1)return y;if(s>=g&&l&&Math.abs(f)>1)return _;if(f&&Math.abs(v)>1)return d;if(s<=m)return y;if(s>g)return _;if(f)return Math.abs(f)>1?d:(o+d+f)%o}},o6=function(e){return function(t){var n,r=(n=Om(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},a6=function(e,t,n){var r=e.map(function(a){var i=a.node;return i}),o=zm(r.filter(o6(n)));return o&&o.length?Bm(o):Bm(zm(t))},rc=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&rc(e.parentNode.host||e.parentNode,t),t},oc=function(e,t){for(var n=rc(e),r=rc(t),o=0;o<n.length;o+=1){var a=n[o];if(r.indexOf(a)>=0)return a}return!1},Wm=function(e,t,n){var r=Xa(e),o=Xa(t),a=r[0],i=!1;return o.filter(Boolean).forEach(function(l){i=oc(i||l,l)||i,n.filter(Boolean).forEach(function(s){var u=oc(a,s);u&&(!i||dr(u,i)?i=u:i=oc(u,i))})}),i},i6=function(e,t){return e.reduce(function(n,r){return n.concat(qT(r,t))},[])},l6=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(jT)},s6=function(e,t){var n=xo(Xa(e).length>0?document:Tm(e).ownerDocument),r=tc(e).filter(Ja),o=Wm(n||e,e,r),a=new Map,i=Rm(r,a),l=ec(r,a).filter(function(g){var h=g.node;return Ja(h)});if(!(!l[0]&&(l=i,!l[0]))){var s=Rm([o],a).map(function(g){var h=g.node;return h}),u=l6(s,l),d=u.map(function(g){var h=g.node;return h}),f=r6(d,s,n,t);if(f===Um){var m=a6(i,d,i6(r,a));if(m)return{node:m};console.warn("focus-lock: cannot find any node to move focus into");return}return f===void 0?f:u[f]}},c6=function(e){var t=tc(e).filter(Ja),n=Wm(e,e,t),r=new Map,o=ec([n],r,!0),a=ec(t,r).filter(function(i){var l=i.node;return Ja(l)}).map(function(i){var l=i.node;return l});return o.map(function(i){var l=i.node,s=i.index;return{node:l,index:s,lockItem:a.indexOf(l)>=0,guard:Js(l)}})},u6=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},ac=0,ic=!1,Hm=function(e,t,n){n===void 0&&(n={});var r=s6(e,t);if(!ic&&r){if(ac>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ic=!0,setTimeout(function(){ic=!1},1);return}ac++,u6(r.node,n.focusOptions),ac--}};function lc(e){setTimeout(e,1)}var d6=function(){return document&&document.activeElement===document.body},f6=function(){return d6()||e6()},fr=null,pr=null,mr=null,wo=!1,p6=function(){return!0},m6=function(t){return(fr.whiteList||p6)(t)},g6=function(t,n){mr={observerNode:t,portaledElement:n}},h6=function(t){return mr&&mr.portaledElement===t};function Gm(e,t,n,r){var o=null,a=e;do{var i=r[a];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else if(i.lockItem){if(a!==e)return;o=null}else break}while((a+=n)!==t);o&&(o.node.tabIndex=0)}var b6=function(t){return t&&"current"in t?t.current:t},v6=function(t){return t?!!wo:wo==="meanwhile"},y6=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},$6=function(t,n){return n.some(function(r){return y6(t,r,r)})},Qa=function(){var t=!1;if(fr){var n=fr,r=n.observed,o=n.persistentFocus,a=n.autoFocus,i=n.shards,l=n.crossFrame,s=n.focusOptions,u=r||mr&&mr.portaledElement,d=document&&document.activeElement;if(u){var f=[u].concat(i.map(b6).filter(Boolean));if((!d||m6(d))&&(o||v6(l)||!f6()||!pr&&a)&&(u&&!(Vm(f)||d&&$6(d,f)||h6(d))&&(document&&!pr&&d&&!a?(d.blur&&d.blur(),document.body.focus()):(t=Hm(f,pr,{focusOptions:s}),mr={})),wo=!1,pr=document&&document.activeElement),document){var m=document&&document.activeElement,g=c6(f),h=g.map(function(b){var v=b.node;return v}).indexOf(m);h>-1&&(g.filter(function(b){var v=b.guard,_=b.node;return v&&_.dataset.focusAutoGuard}).forEach(function(b){var v=b.node;return v.removeAttribute("tabIndex")}),Gm(h,g.length,1,g),Gm(h,-1,-1,g))}}}return t},Ym=function(t){Qa()&&t&&(t.stopPropagation(),t.preventDefault())},sc=function(){return lc(Qa)},_6=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||g6(r,n)},x6=function(){return null};process.env.NODE_ENV!=="production"&&te.node.isRequired;var qm=function(){wo="just",lc(function(){wo="meanwhile"})},w6=function(){document.addEventListener("focusin",Ym),document.addEventListener("focusout",sc),window.addEventListener("blur",qm)},E6=function(){document.removeEventListener("focusin",Ym),document.removeEventListener("focusout",sc),window.removeEventListener("blur",qm)};function S6(e){return e.filter(function(t){var n=t.disabled;return!n})}function D6(e){var t=e.slice(-1)[0];t&&!fr&&w6();var n=fr,r=n&&t&&t.id===n.id;fr=t,n&&!r&&(n.onDeactivation(),e.filter(function(o){var a=o.id;return a===n.id}).length||n.returnFocus(!t)),t?(pr=null,(!r||n.observed!==t.observed)&&t.onActivation(),Qa(),lc(Qa)):(E6(),pr=null)}Em.assignSyncMedium(_6),Sm.assignMedium(sc),IT.assignMedium(function(e){return e({moveFocusInside:Hm,focusInside:Vm})});const P6=LT(S6,D6)(x6);var Xm=D.forwardRef(function(t,n){return D.createElement(Dm,N({sideCar:P6,ref:n},t))}),Jm=Dm.propTypes||{};Jm.sideCar;var T6=Ya(Jm,["sideCar"]);Xm.propTypes=process.env.NODE_ENV!=="production"?T6:{};const C6=Xm;var ei={},cc={},Zm={exports:{}};/*!
|
|
187
187
|
Copyright (c) 2015 Jed Watson.
|
|
188
188
|
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
189
189
|
All rights reserved.
|
|
@@ -428,7 +428,7 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var le=_e(ae,se,G,re,oe+
|
|
|
428
428
|
padding: ${p.spacing_100} ${p.spacing_200};
|
|
429
429
|
font-size: ${p.font_size_175};
|
|
430
430
|
`}}}
|
|
431
|
-
`,h7={positive:{background:"hsl(143.1, 48%, 94.7%)",color:"hsl(155.68deg 88.1% 16.5%)"},pending:{background:"hsl(29deg 74% 53% / 8%)",color:"hsl(29deg 74% 53%)"},muted:{background:"hsl(0deg 0% 10% / 8%)",color:p.color_gray_56},info:{background:"hsl(217.4deg 81.6% 51% / 8%)",color:"hsl(218deg 84% 45%)"},negative:{background:"hsl(11deg 48% 85%)",color:"hsl(11deg 68% 55%)"},chip:{background:p.color_white,color:p.color_gray_opacity_92,border:p.color_gray_opacity_16}};function b7({children:e,size:t="large",variant:n="positive",as:r="div",...o}){const i={...Pt(o,Bt.propNames??[])},l=i.fontWeight,s=h7[n];return E(g7,{...i,$size:t,as:r,style:{"--badge-background-color":s.background,"--badge-color":s.color,"--badge-border-color":s.border??s.background,"--badge-font-weight":l??500},children:e})}const Te=typeof document<"u"?D.default.useLayoutEffect:()=>{};function ke(e){const t=c.useRef(null);return Te(()=>{t.current=e},[e]),c.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function v7(e){let[t,n]=c.useState(e),r=c.useRef(null),o=ke(()=>{if(!r.current)return;let i=r.current.next();if(i.done){r.current=null;return}t===i.value?o():n(i.value)});Te(()=>{r.current&&o()});let a=ke(i=>{r.current=i(t),o()});return[t,a]}const ii={prefix:String(Math.round(Math.random()*1e10)),current:0},yg=D.default.createContext(ii),y7=D.default.createContext(!1);let $7=!!(typeof window<"u"&&window.document&&window.document.createElement),$c=new WeakMap;function _7(e=!1){let t=c.useContext(yg),n=c.useRef(null);if(n.current===null&&!e){var r,o;let a=(o=D.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=$c.get(a);i==null?$c.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,$c.delete(a))}n.current=++t.current}return n.current}function x7(e){let t=c.useContext(yg);t===ii&&!$7&&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=_7(!!e),r=t===ii&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function w7(e){let t=D.default.useId(),[n]=c.useState(li()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${ii.prefix}`;return e||`${r}-${t}`}const E7=typeof D.default.useId=="function"?w7:x7;function S7(){return!1}function D7(){return!0}function P7(e){return()=>{}}function li(){return typeof D.default.useSyncExternalStore=="function"?D.default.useSyncExternalStore(P7,S7,D7):c.useContext(y7)}let T7=!!(typeof window<"u"&&window.document&&window.document.createElement),si=new Map;function ct(e){let[t,n]=c.useState(e),r=c.useRef(null),o=E7(t),a=c.useCallback(i=>{r.current=i},[]);return T7&&si.set(o,a),Te(()=>{let i=o;return()=>{si.delete(i)}},[o]),c.useEffect(()=>{let i=r.current;i&&(r.current=null,n(i))}),o}function C7(e,t){if(e===t)return e;let n=si.get(e);if(n)return n(t),t;let r=si.get(t);return r?(r(e),e):t}function To(e=[]){let t=ct(),[n,r]=v7(t),o=c.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Te(o,[t,o,...e]),n}function Wt(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Pe=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},vt=e=>e&&"window"in e&&e.window===e?e:Pe(e).defaultView||window;function $g(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=$g(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function k7(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=$g(e))&&(r&&(r+=" "),r+=t);return r}function fe(...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]=Wt(a,i):(o==="className"||o==="UNSAFE_className")&&typeof a=="string"&&typeof i=="string"?t[o]=k7(a,i):o==="id"&&a&&i?t.id=C7(a,i):t[o]=i!==void 0?i:a}}return t}const A7=new Set(["id"]),I7=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),O7=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),M7=/^(data-.*)$/;function $n(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,a={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(A7.has(i)||n&&I7.has(i)||r&&O7.has(i)||o!=null&&o.has(i)||M7.test(i))&&(a[i]=e[i]);return a}function It(e){if(F7())e.focus({preventScroll:!0});else{let t=L7(e);e.focus(),N7(t)}}let ci=null;function F7(){if(ci==null){ci=!1;try{document.createElement("div").focus({get preventScroll(){return ci=!0,!0}})}catch{}}return ci}function L7(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 N7(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function ui(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 _c(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(e){let t=null;return()=>(t==null&&(t=e()),t)}const Gt=Ht(function(){return _c(/^Mac/i)}),_g=Ht(function(){return _c(/^iPhone/i)}),xc=Ht(function(){return _c(/^iPad/i)||Gt()&&navigator.maxTouchPoints>1}),Co=Ht(function(){return _g()||xc()}),di=Ht(function(){return Gt()||Co()}),wc=Ht(function(){return ui(/AppleWebKit/i)&&!z7()}),z7=Ht(function(){return ui(/Chrome/i)}),Ec=Ht(function(){return ui(/Android/i)}),R7=Ht(function(){return ui(/Firefox/i)});function ko(e,t,n=!0){var r,o;let{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}=t;R7()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Gt()?a=!0:i=!0);let u=wc()&&Gt()&&!xc()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});ko.isOpening=n,It(e),e.dispatchEvent(u),ko.isOpening=!1}ko.isOpening=!1;let yr=new Map,Sc=new Set;function xg(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=yr.get(r.target);o||(o=new Set,yr.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=yr.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),yr.delete(r.target)),yr.size===0)){for(let a of Sc)a();Sc.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?xg():document.addEventListener("DOMContentLoaded",xg));function wg(e){requestAnimationFrame(()=>{yr.size===0?e():Sc.add(e)})}function Dc(){let e=c.useRef(new Map),t=c.useCallback((o,a,i,l)=>{let s=l!=null&&l.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:a,eventTarget:o,fn:s,options:l}),o.addEventListener(a,i,l)},[]),n=c.useCallback((o,a,i,l)=>{var s;let u=((s=e.current.get(i))===null||s===void 0?void 0:s.fn)||i;o.removeEventListener(a,u,l),e.current.delete(i)},[]),r=c.useCallback(()=>{e.current.forEach((o,a)=>{n(o.eventTarget,o.type,a,o.options)})},[n]);return c.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function $r(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=ct(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 _n(e){const t=c.useRef(null);return c.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function Eg(e,t){const n=c.useRef(!0),r=c.useRef(null);c.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),c.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((o,a)=>!Object.is(o,r[a])))&&e(),r.current=t},t)}function K7(){return typeof window.ResizeObserver<"u"}function Sg(e){const{ref:t,box:n,onResize:r}=e;c.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(K7()){const a=new window.ResizeObserver(i=>{i.length&&r()});return a.observe(o,{box:n}),()=>{o&&a.unobserve(o)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function Dg(e,t){Te(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Ao(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}function Pc(e,t){let n=e;for(Ao(n,t)&&(n=n.parentElement);n&&!Ao(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function V7(e,t){const n=[];for(;e&&e!==document.documentElement;)Ao(e,t)&&n.push(e),e=e.parentElement;return n}let B7=0;const Tc=new Map;function Cc(e){let[t,n]=c.useState();return Te(()=>{if(!e)return;let r=Tc.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${B7++}`;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},Tc.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Tc.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function _r(e,t,n,r){let o=ke(n),a=n==null;c.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 Pg(e,t){let n=Tg(e,t,"left"),r=Tg(e,t,"top"),o=t.offsetWidth,a=t.offsetHeight,i=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u}=getComputedStyle(e),d=e.scrollLeft+parseInt(u,10),f=e.scrollTop+parseInt(s,10),m=d+e.clientWidth,g=f+e.clientHeight;n<=i?i=n-parseInt(u,10):n+o>m&&(i+=n+o-m),r<=f?l=r-parseInt(s,10):r+a>g&&(l+=r+a-g),e.scrollLeft=i,e.scrollTop=l}function Tg(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 kc(e,t){if(document.contains(e)){let i=document.scrollingElement||document.documentElement;if(window.getComputedStyle(i).overflow==="hidden"){let s=V7(e);for(let u of s)Pg(u,e)}else{var n;let{left:s,top:u}=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(s-d)>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 Ac(e){return e.mozInputSource===0&&e.isTrusted?!0:Ec()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function j7(e){return!Ec()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Cg(e,t){let n=c.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function U7(e,t,n){let r=c.useRef(t),o=ke(()=>{n&&n(r.current)});c.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 Ot(e,t,n){let[r,o]=c.useState(e||t),a=c.useRef(e!==void 0),i=e!==void 0;c.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 l=i?e:r,s=c.useCallback((u,...d)=>{let f=(m,...g)=>{n&&(Object.is(l,m)||n(m,...g)),i||(l=m)};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((g,...h)=>{let b=u(i?l:g,...h);return f(b,...d),i?g:b})):(i||o(u),f(u,...d))},[i,l,n]);return[l,s]}function fi(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function pi(e,t){let n=e,r=t.toString(),o=r.indexOf("."),a=o>=0?r.length-o:0;if(a>0){let i=Math.pow(10,a);n=Math.round(n*i)/i}return n}function jn(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,a=pi(Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(pi(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(pi((n-t)/r,r))*r),a=pi(a,r),a}let xr="default",Ic="",mi=new WeakMap;function kg(e){if(Co()){if(xr==="default"){const t=Pe(e);Ic=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}xr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(mi.set(e,e.style.userSelect),e.style.userSelect="none")}function gi(e){if(Co()){if(xr!=="disabled")return;xr="restoring",setTimeout(()=>{wg(()=>{if(xr==="restoring"){const t=Pe(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Ic||""),Ic="",xr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&mi.has(e)){let t=mi.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),mi.delete(e)}}const Oc=D.default.createContext({register:()=>{}});Oc.displayName="PressResponderContext";function W7(e,t){return t.get?t.get.call(e):t.value}function Ag(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function H7(e,t){var n=Ag(e,t,"get");return W7(e,n)}function G7(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Io(e,t,n){G7(e,t),t.set(e,n)}function Y7(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 Ig(e,t,n){var r=Ag(e,t,"set");return Y7(e,r,n),n}function q7(e){let t=c.useContext(Oc);if(t){let{register:n,...r}=t;e=fe(r,e),n()}return Dg(t,e.ref),e}var hi=new WeakMap;class bi{continuePropagation(){Ig(this,hi,!1)}get shouldStopPropagation(){return H7(this,hi)}constructor(t,n,r,o){Io(this,hi,{writable:!0,value:void 0}),Ig(this,hi,!0);var a;let i=(a=o==null?void 0:o.target)!==null&&a!==void 0?a:r.currentTarget;const l=i==null?void 0:i.getBoundingClientRect();let s,u=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),l&&(d!=null&&f!=null?(s=d-l.left,u=f-l.top):(s=l.width/2,u=l.height/2)),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,this.x=s,this.y=u}}const Og=Symbol("linkClicked");function wr(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:a,isDisabled:i,isPressed:l,preventFocusOnPress:s,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...m}=q7(e),[g,h]=c.useState(!1),b=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:v,removeAllGlobalListeners:_}=Dc(),y=ke(($,k)=>{let L=b.current;if(i||L.didFirePressStart)return!1;let x=!0;if(L.isTriggeringEvent=!0,r){let R=new bi("pressstart",k,$);r(R),x=R.shouldStopPropagation}return n&&n(!0),L.isTriggeringEvent=!1,L.didFirePressStart=!0,h(!0),x}),w=ke(($,k,L=!0)=>{let x=b.current;if(!x.didFirePressStart)return!1;x.ignoreClickAfterPress=!0,x.didFirePressStart=!1,x.isTriggeringEvent=!0;let R=!0;if(o){let O=new bi("pressend",k,$);o(O),R=O.shouldStopPropagation}if(n&&n(!1),h(!1),t&&L&&!i){let O=new bi("press",k,$);t(O),R&&(R=O.shouldStopPropagation)}return x.isTriggeringEvent=!1,R}),S=ke(($,k)=>{let L=b.current;if(i)return!1;if(a){L.isTriggeringEvent=!0;let x=new bi("pressup",k,$);return a(x),L.isTriggeringEvent=!1,x.shouldStopPropagation}return!0}),P=ke($=>{let k=b.current;k.isPressed&&k.target&&(k.isOverTarget&&k.pointerType!=null&&w(Yt(k.target,$),k.pointerType,!1),k.isPressed=!1,k.isOverTarget=!1,k.activePointerId=null,k.pointerType=null,_(),d||gi(k.target))}),T=ke($=>{u&&P($)}),M=c.useMemo(()=>{let $=b.current,k={onKeyDown(x){if(Fc(x.nativeEvent,x.currentTarget)&&x.currentTarget.contains(x.target)){var R;Fg(x.target,x.key)&&x.preventDefault();let O=!0;if(!$.isPressed&&!x.repeat){$.target=x.currentTarget,$.isPressed=!0,O=y(x,"keyboard");let A=x.currentTarget,V=I=>{Fc(I,A)&&!I.repeat&&A.contains(I.target)&&$.target&&S(Yt($.target,I),"keyboard")};v(Pe(x.currentTarget),"keyup",Wt(V,L),!0)}O&&x.stopPropagation(),x.metaKey&&Gt()&&((R=$.metaKeyEvents)===null||R===void 0||R.set(x.key,x.nativeEvent))}else x.key==="Meta"&&($.metaKeyEvents=new Map)},onClick(x){if(!(x&&!x.currentTarget.contains(x.target))&&x&&x.button===0&&!$.isTriggeringEvent&&!ko.isOpening){let R=!0;if(i&&x.preventDefault(),!$.ignoreClickAfterPress&&!$.ignoreEmulatedMouseEvents&&!$.isPressed&&($.pointerType==="virtual"||Ac(x.nativeEvent))){!i&&!s&&It(x.currentTarget);let O=y(x,"virtual"),A=S(x,"virtual"),V=w(x,"virtual");R=O&&A&&V}$.ignoreEmulatedMouseEvents=!1,$.ignoreClickAfterPress=!1,R&&x.stopPropagation()}}},L=x=>{var R;if($.isPressed&&$.target&&Fc(x,$.target)){var O;Fg(x.target,x.key)&&x.preventDefault();let V=x.target;w(Yt($.target,x),"keyboard",$.target.contains(V)),_(),x.key!=="Enter"&&Mc($.target)&&$.target.contains(V)&&!x[Og]&&(x[Og]=!0,ko($.target,x,!1)),$.isPressed=!1,(O=$.metaKeyEvents)===null||O===void 0||O.delete(x.key)}else if(x.key==="Meta"&&(!((R=$.metaKeyEvents)===null||R===void 0)&&R.size)){var A;let V=$.metaKeyEvents;$.metaKeyEvents=void 0;for(let I of V.values())(A=$.target)===null||A===void 0||A.dispatchEvent(new KeyboardEvent("keyup",I))}};if(typeof PointerEvent<"u"){k.onPointerDown=A=>{if(A.button!==0||!A.currentTarget.contains(A.target))return;if(j7(A.nativeEvent)){$.pointerType="virtual";return}Lc(A.currentTarget)&&A.preventDefault(),$.pointerType=A.pointerType;let V=!0;$.isPressed||($.isPressed=!0,$.isOverTarget=!0,$.activePointerId=A.pointerId,$.target=A.currentTarget,!i&&!s&&It(A.currentTarget),d||kg($.target),V=y(A,$.pointerType),v(Pe(A.currentTarget),"pointermove",x,!1),v(Pe(A.currentTarget),"pointerup",R,!1),v(Pe(A.currentTarget),"pointercancel",O,!1)),V&&A.stopPropagation()},k.onMouseDown=A=>{A.currentTarget.contains(A.target)&&A.button===0&&(Lc(A.currentTarget)&&A.preventDefault(),A.stopPropagation())},k.onPointerUp=A=>{!A.currentTarget.contains(A.target)||$.pointerType==="virtual"||A.button===0&&Er(A,A.currentTarget)&&S(A,$.pointerType||A.pointerType)};let x=A=>{A.pointerId===$.activePointerId&&($.target&&Er(A,$.target)?!$.isOverTarget&&$.pointerType!=null&&($.isOverTarget=!0,y(Yt($.target,A),$.pointerType)):$.target&&$.isOverTarget&&$.pointerType!=null&&($.isOverTarget=!1,w(Yt($.target,A),$.pointerType,!1),T(A)))},R=A=>{A.pointerId===$.activePointerId&&$.isPressed&&A.button===0&&$.target&&(Er(A,$.target)&&$.pointerType!=null?w(Yt($.target,A),$.pointerType):$.isOverTarget&&$.pointerType!=null&&w(Yt($.target,A),$.pointerType,!1),$.isPressed=!1,$.isOverTarget=!1,$.activePointerId=null,$.pointerType=null,_(),d||gi($.target))},O=A=>{P(A)};k.onDragStart=A=>{A.currentTarget.contains(A.target)&&P(A)}}else{k.onMouseDown=O=>{if(O.button!==0||!O.currentTarget.contains(O.target))return;if(Lc(O.currentTarget)&&O.preventDefault(),$.ignoreEmulatedMouseEvents){O.stopPropagation();return}$.isPressed=!0,$.isOverTarget=!0,$.target=O.currentTarget,$.pointerType=Ac(O.nativeEvent)?"virtual":"mouse",!i&&!s&&It(O.currentTarget),y(O,$.pointerType)&&O.stopPropagation(),v(Pe(O.currentTarget),"mouseup",x,!1)},k.onMouseEnter=O=>{if(!O.currentTarget.contains(O.target))return;let A=!0;$.isPressed&&!$.ignoreEmulatedMouseEvents&&$.pointerType!=null&&($.isOverTarget=!0,A=y(O,$.pointerType)),A&&O.stopPropagation()},k.onMouseLeave=O=>{if(!O.currentTarget.contains(O.target))return;let A=!0;$.isPressed&&!$.ignoreEmulatedMouseEvents&&$.pointerType!=null&&($.isOverTarget=!1,A=w(O,$.pointerType,!1),T(O)),A&&O.stopPropagation()},k.onMouseUp=O=>{O.currentTarget.contains(O.target)&&!$.ignoreEmulatedMouseEvents&&O.button===0&&S(O,$.pointerType||"mouse")};let x=O=>{if(O.button===0){if($.isPressed=!1,_(),$.ignoreEmulatedMouseEvents){$.ignoreEmulatedMouseEvents=!1;return}$.target&&Er(O,$.target)&&$.pointerType!=null?w(Yt($.target,O),$.pointerType):$.target&&$.isOverTarget&&$.pointerType!=null&&w(Yt($.target,O),$.pointerType,!1),$.isOverTarget=!1}};k.onTouchStart=O=>{if(!O.currentTarget.contains(O.target))return;let A=X7(O.nativeEvent);if(!A)return;$.activePointerId=A.identifier,$.ignoreEmulatedMouseEvents=!0,$.isOverTarget=!0,$.isPressed=!0,$.target=O.currentTarget,$.pointerType="touch",!i&&!s&&It(O.currentTarget),d||kg($.target),y(xn($.target,O),$.pointerType)&&O.stopPropagation(),v(vt(O.currentTarget),"scroll",R,!0)},k.onTouchMove=O=>{if(!O.currentTarget.contains(O.target))return;if(!$.isPressed){O.stopPropagation();return}let A=Mg(O.nativeEvent,$.activePointerId),V=!0;A&&Er(A,O.currentTarget)?!$.isOverTarget&&$.pointerType!=null&&($.isOverTarget=!0,V=y(xn($.target,O),$.pointerType)):$.isOverTarget&&$.pointerType!=null&&($.isOverTarget=!1,V=w(xn($.target,O),$.pointerType,!1),T(xn($.target,O))),V&&O.stopPropagation()},k.onTouchEnd=O=>{if(!O.currentTarget.contains(O.target))return;if(!$.isPressed){O.stopPropagation();return}let A=Mg(O.nativeEvent,$.activePointerId),V=!0;A&&Er(A,O.currentTarget)&&$.pointerType!=null?(S(xn($.target,O),$.pointerType),V=w(xn($.target,O),$.pointerType)):$.isOverTarget&&$.pointerType!=null&&(V=w(xn($.target,O),$.pointerType,!1)),V&&O.stopPropagation(),$.isPressed=!1,$.activePointerId=null,$.isOverTarget=!1,$.ignoreEmulatedMouseEvents=!0,$.target&&!d&&gi($.target),_()},k.onTouchCancel=O=>{O.currentTarget.contains(O.target)&&(O.stopPropagation(),$.isPressed&&P(xn($.target,O)))};let R=O=>{$.isPressed&&O.target.contains($.target)&&P({currentTarget:$.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};k.onDragStart=O=>{O.currentTarget.contains(O.target)&&P(O)}}return k},[v,i,s,_,d,P,T,w,y,S]);return c.useEffect(()=>()=>{var $;d||gi(($=b.current.target)!==null&&$!==void 0?$:void 0)},[d]),{isPressed:l||g,pressProps:fe(m,M)}}function Mc(e){return e.tagName==="A"&&e.hasAttribute("href")}function Fc(e,t){const{key:n,code:r}=e,o=t,a=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof vt(o).HTMLInputElement&&!Lg(o,n)||o instanceof vt(o).HTMLTextAreaElement||o.isContentEditable)&&!((a==="link"||!a&&Mc(o))&&n!=="Enter")}function X7(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Mg(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 xn(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Yt(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function J7(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 Z7(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Er(e,t){let n=t.getBoundingClientRect(),r=J7(e);return Z7(n,r)}function Lc(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Fg(e,t){return e instanceof HTMLInputElement?!Lg(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Mc(e)}const Q7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Lg(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Q7.has(e.type)}function eC({children:e}){let t=c.useMemo(()=>({register:()=>{}}),[]);return D.default.createElement(Oc.Provider,{value:t},e)}class tC{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 Ng(e){let t=c.useRef({isFocused:!1,observer:null});Te(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=ke(r=>{e==null||e(r)});return c.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 tC("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 l=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Nc(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const a=c.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),o&&o(!1),!0},[r,o]),i=Ng(a),l=c.useCallback(s=>{const u=Pe(s.target);s.target===s.currentTarget&&u.activeElement===s.target&&(n&&n(s),o&&o(!0),i(s))},[o,n,i]);return{focusProps:{onFocus:!t&&(n||o||r)?l:void 0,onBlur:!t&&(r||o)?a:void 0}}}let qt=null,Oo=new Set,Mo=new Map,Un=!1,zc=!1;const nC={Tab:!0,Escape:!0};function vi(e,t){for(let n of Oo)n(e,t)}function rC(e){return!(e.metaKey||!Gt()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function yi(e){Un=!0,rC(e)&&(qt="keyboard",vi("keyboard",e))}function ut(e){qt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Un=!0,vi("pointer",e))}function zg(e){Ac(e)&&(Un=!0,qt="virtual")}function Rg(e){e.target===window||e.target===document||(!Un&&!zc&&(qt="virtual",vi("virtual",e)),Un=!1,zc=!1)}function Kg(){Un=!1,zc=!0}function $i(e){if(typeof window>"u"||Mo.get(vt(e)))return;const t=vt(e),n=Pe(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Un=!0,r.apply(this,arguments)},n.addEventListener("keydown",yi,!0),n.addEventListener("keyup",yi,!0),n.addEventListener("click",zg,!0),t.addEventListener("focus",Rg,!0),t.addEventListener("blur",Kg,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ut,!0),n.addEventListener("pointermove",ut,!0),n.addEventListener("pointerup",ut,!0)):(n.addEventListener("mousedown",ut,!0),n.addEventListener("mousemove",ut,!0),n.addEventListener("mouseup",ut,!0)),t.addEventListener("beforeunload",()=>{Vg(e)},{once:!0}),Mo.set(t,{focus:r})}const Vg=(e,t)=>{const n=vt(e),r=Pe(e);t&&r.removeEventListener("DOMContentLoaded",t),Mo.has(n)&&(n.HTMLElement.prototype.focus=Mo.get(n).focus,r.removeEventListener("keydown",yi,!0),r.removeEventListener("keyup",yi,!0),r.removeEventListener("click",zg,!0),n.removeEventListener("focus",Rg,!0),n.removeEventListener("blur",Kg,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ut,!0),r.removeEventListener("pointermove",ut,!0),r.removeEventListener("pointerup",ut,!0)):(r.removeEventListener("mousedown",ut,!0),r.removeEventListener("mousemove",ut,!0),r.removeEventListener("mouseup",ut,!0)),Mo.delete(n))};function oC(e){const t=Pe(e);let n;return t.readyState!=="loading"?$i(e):(n=()=>{$i(e)},t.addEventListener("DOMContentLoaded",n)),()=>Vg(e,n)}typeof document<"u"&&oC();function _i(){return qt!=="pointer"}function xi(){return qt}function Rc(e){qt=e,vi(e,null)}function Bg(){$i();let[e,t]=c.useState(qt);return c.useEffect(()=>{let n=()=>{t(qt)};return Oo.add(n),()=>{Oo.delete(n)}},[]),li()?null:e}const aC=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function iC(e,t,n){var r;const o=typeof window<"u"?vt(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?vt(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?vt(n==null?void 0:n.target).HTMLElement:HTMLElement,l=typeof window<"u"?vt(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!aC.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 l&&!nC[n.key])}function lC(e,t,n){$i(),c.useEffect(()=>{let r=(o,a)=>{iC(!!(n!=null&&n.isTextInput),o,a)&&e(_i())};return Oo.add(r),()=>{Oo.delete(r)}},t)}function Fo(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,a=c.useRef({isFocusWithin:!1}),i=c.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,a]),l=Ng(i),s=c.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),a.current.isFocusWithin=!0,l(u))},[r,o,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:i}}}let wi=!1,Kc=0;function Vc(){wi=!0,setTimeout(()=>{wi=!1},50)}function jg(e){e.pointerType==="touch"&&Vc()}function sC(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",jg):document.addEventListener("touchend",Vc),Kc++,()=>{Kc--,!(Kc>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",jg):document.removeEventListener("touchend",Vc))}}function cC(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[a,i]=c.useState(!1),l=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(sC,[]);let{hoverProps:s,triggerHoverEnd:u}=c.useMemo(()=>{let d=(g,h)=>{if(l.pointerType=h,o||h==="touch"||l.isHovered||!g.currentTarget.contains(g.target))return;l.isHovered=!0;let b=g.currentTarget;l.target=b,t&&t({type:"hoverstart",target:b,pointerType:h}),n&&n(!0),i(!0)},f=(g,h)=>{if(l.pointerType="",l.target=null,h==="touch"||!l.isHovered)return;l.isHovered=!1;let b=g.currentTarget;r&&r({type:"hoverend",target:b,pointerType:h}),n&&n(!1),i(!1)},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=g=>{wi&&g.pointerType==="mouse"||d(g,g.pointerType)},m.onPointerLeave=g=>{!o&&g.currentTarget.contains(g.target)&&f(g,g.pointerType)}):(m.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=g=>{!l.ignoreEmulatedMouseEvents&&!wi&&d(g,"mouse"),l.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=g=>{!o&&g.currentTarget.contains(g.target)&&f(g,"mouse")}),{hoverProps:m,triggerHoverEnd:f}},[t,n,r,o,l]);return c.useEffect(()=>{o&&u({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:s,isHovered:a}}function uC(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,a=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=ke(s=>{n&&Ei(s,t)&&(o&&o(s),a.current.isPointerDown=!0)}),l=ke(s=>{n&&n(s)});c.useEffect(()=>{let s=a.current;if(r)return;const u=t.current,d=Pe(u);if(typeof PointerEvent<"u"){let f=m=>{s.isPointerDown&&Ei(m,t)&&l(m),s.isPointerDown=!1};return d.addEventListener("pointerdown",i,!0),d.addEventListener("pointerup",f,!0),()=>{d.removeEventListener("pointerdown",i,!0),d.removeEventListener("pointerup",f,!0)}}else{let f=g=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&Ei(g,t)&&l(g),s.isPointerDown=!1},m=g=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&Ei(g,t)&&l(g),s.isPointerDown=!1};return d.addEventListener("mousedown",i,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",i,!0),d.addEventListener("touchend",m,!0),()=>{d.removeEventListener("mousedown",i,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",i,!0),d.removeEventListener("touchend",m,!0)}}},[t,r,i,l])}function Ei(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 Ug(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 dC(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Ug(e.onKeyDown),onKeyUp:Ug(e.onKeyUp)}}}function fC(e,t){let{onScroll:n,isDisabled:r}=e,o=c.useCallback(a=>{a.ctrlKey||(a.preventDefault(),a.stopPropagation(),n&&n({deltaX:a.deltaX,deltaY:a.deltaY}))},[n]);_r(t,"wheel",r?void 0:o)}const pC=500;function Wg(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:a=pC,accessibilityDescription:i}=e;const l=c.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:u}=Dc(),{pressProps:d}=wr({isDisabled:t,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(n&&n({...m,type:"longpressstart"}),l.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...m,type:"longpress"}),l.current=void 0},a),m.pointerType==="touch")){let g=h=>{h.preventDefault()};s(m.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(m.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(m){l.current&&clearTimeout(l.current),r&&(m.pointerType==="mouse"||m.pointerType==="touch")&&r({...m,type:"longpressend"})}}),f=Cc(o&&!t?i:void 0);return{longPressProps:fe(d,f)}}const Hg={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 Gg(e={}){let{style:t,isFocusable:n}=e,[r,o]=c.useState(!1),{focusWithinProps:a}=Fo({isDisabled:!n,onFocusWithinChange:l=>o(l)}),i=c.useMemo(()=>r?t:t?{...Hg,...t}:Hg,[r]);return{visuallyHiddenProps:{...a,style:i}}}function Si(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...a}=e,{visuallyHiddenProps:i}=Gg(e);return D.default.createElement(n,fe(a,i),t)}const mC=z.default(Be)`
|
|
431
|
+
`,h7={positive:{background:"hsl(143.1, 48%, 94.7%)",color:"hsl(155.68deg 88.1% 16.5%)"},pending:{background:"hsl(29deg 74% 53% / 8%)",color:"hsl(29deg 74% 53%)"},muted:{background:"hsl(0deg 0% 10% / 8%)",color:p.color_gray_56},info:{background:"hsl(217.4deg 81.6% 51% / 8%)",color:"hsl(218deg 84% 45%)"},negative:{background:"hsl(11deg 48% 85%)",color:"hsl(11deg 68% 55%)"},chip:{background:p.color_white,color:p.color_gray_opacity_92,border:p.color_gray_opacity_16}};function b7({children:e,size:t="large",variant:n="positive",as:r="div",...o}){const i={...Pt(o,Bt.propNames??[])},l=i.fontWeight,s=h7[n];return E(g7,{...i,$size:t,as:r,style:{"--badge-background-color":s.background,"--badge-color":s.color,"--badge-border-color":s.border??s.background,"--badge-font-weight":l??500},children:e})}const Te=typeof document<"u"?D.default.useLayoutEffect:()=>{};function ke(e){const t=c.useRef(null);return Te(()=>{t.current=e},[e]),c.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function v7(e){let[t,n]=c.useState(e),r=c.useRef(null),o=ke(()=>{if(!r.current)return;let i=r.current.next();if(i.done){r.current=null;return}t===i.value?o():n(i.value)});Te(()=>{r.current&&o()});let a=ke(i=>{r.current=i(t),o()});return[t,a]}const ii={prefix:String(Math.round(Math.random()*1e10)),current:0},yg=D.default.createContext(ii),y7=D.default.createContext(!1);let $7=!!(typeof window<"u"&&window.document&&window.document.createElement),$c=new WeakMap;function _7(e=!1){let t=c.useContext(yg),n=c.useRef(null);if(n.current===null&&!e){var r,o;let a=(o=D.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=$c.get(a);i==null?$c.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,$c.delete(a))}n.current=++t.current}return n.current}function x7(e){let t=c.useContext(yg);t===ii&&!$7&&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=_7(!!e),r=t===ii&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function w7(e){let t=D.default.useId(),[n]=c.useState(li()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${ii.prefix}`;return e||`${r}-${t}`}const E7=typeof D.default.useId=="function"?w7:x7;function S7(){return!1}function D7(){return!0}function P7(e){return()=>{}}function li(){return typeof D.default.useSyncExternalStore=="function"?D.default.useSyncExternalStore(P7,S7,D7):c.useContext(y7)}let T7=!!(typeof window<"u"&&window.document&&window.document.createElement),si=new Map;function ct(e){let[t,n]=c.useState(e),r=c.useRef(null),o=E7(t),a=c.useCallback(i=>{r.current=i},[]);return T7&&si.set(o,a),Te(()=>{let i=o;return()=>{si.delete(i)}},[o]),c.useEffect(()=>{let i=r.current;i&&(r.current=null,n(i))}),o}function C7(e,t){if(e===t)return e;let n=si.get(e);if(n)return n(t),t;let r=si.get(t);return r?(r(e),e):t}function To(e=[]){let t=ct(),[n,r]=v7(t),o=c.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Te(o,[t,o,...e]),n}function Wt(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Pe=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},vt=e=>e&&"window"in e&&e.window===e?e:Pe(e).defaultView||window;function $g(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=$g(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function k7(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=$g(e))&&(r&&(r+=" "),r+=t);return r}function fe(...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]=Wt(a,i):(o==="className"||o==="UNSAFE_className")&&typeof a=="string"&&typeof i=="string"?t[o]=k7(a,i):o==="id"&&a&&i?t.id=C7(a,i):t[o]=i!==void 0?i:a}}return t}const A7=new Set(["id"]),I7=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),O7=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),M7=/^(data-.*)$/;function $n(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,a={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(A7.has(i)||n&&I7.has(i)||r&&O7.has(i)||o!=null&&o.has(i)||M7.test(i))&&(a[i]=e[i]);return a}function It(e){if(F7())e.focus({preventScroll:!0});else{let t=L7(e);e.focus(),N7(t)}}let ci=null;function F7(){if(ci==null){ci=!1;try{document.createElement("div").focus({get preventScroll(){return ci=!0,!0}})}catch{}}return ci}function L7(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 N7(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function ui(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 _c(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(e){let t=null;return()=>(t==null&&(t=e()),t)}const Gt=Ht(function(){return _c(/^Mac/i)}),_g=Ht(function(){return _c(/^iPhone/i)}),xc=Ht(function(){return _c(/^iPad/i)||Gt()&&navigator.maxTouchPoints>1}),Co=Ht(function(){return _g()||xc()}),di=Ht(function(){return Gt()||Co()}),wc=Ht(function(){return ui(/AppleWebKit/i)&&!z7()}),z7=Ht(function(){return ui(/Chrome/i)}),Ec=Ht(function(){return ui(/Android/i)}),R7=Ht(function(){return ui(/Firefox/i)});function ko(e,t,n=!0){var r,o;let{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}=t;R7()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Gt()?a=!0:i=!0);let u=wc()&&Gt()&&!xc()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});ko.isOpening=n,It(e),e.dispatchEvent(u),ko.isOpening=!1}ko.isOpening=!1;let yr=new Map,Sc=new Set;function xg(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=yr.get(r.target);o||(o=new Set,yr.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=yr.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),yr.delete(r.target)),yr.size===0)){for(let a of Sc)a();Sc.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?xg():document.addEventListener("DOMContentLoaded",xg));function wg(e){requestAnimationFrame(()=>{yr.size===0?e():Sc.add(e)})}function Dc(){let e=c.useRef(new Map),t=c.useCallback((o,a,i,l)=>{let s=l!=null&&l.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:a,eventTarget:o,fn:s,options:l}),o.addEventListener(a,i,l)},[]),n=c.useCallback((o,a,i,l)=>{var s;let u=((s=e.current.get(i))===null||s===void 0?void 0:s.fn)||i;o.removeEventListener(a,u,l),e.current.delete(i)},[]),r=c.useCallback(()=>{e.current.forEach((o,a)=>{n(o.eventTarget,o.type,a,o.options)})},[n]);return c.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function $r(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=ct(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 _n(e){const t=c.useRef(null);return c.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function Eg(e,t){const n=c.useRef(!0),r=c.useRef(null);c.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),c.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((o,a)=>!Object.is(o,r[a])))&&e(),r.current=t},t)}function K7(){return typeof window.ResizeObserver<"u"}function Sg(e){const{ref:t,box:n,onResize:r}=e;c.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(K7()){const a=new window.ResizeObserver(i=>{i.length&&r()});return a.observe(o,{box:n}),()=>{o&&a.unobserve(o)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function Dg(e,t){Te(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Ao(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}function Pc(e,t){let n=e;for(Ao(n,t)&&(n=n.parentElement);n&&!Ao(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function V7(e,t){const n=[];for(;e&&e!==document.documentElement;)Ao(e,t)&&n.push(e),e=e.parentElement;return n}let B7=0;const Tc=new Map;function Cc(e){let[t,n]=c.useState();return Te(()=>{if(!e)return;let r=Tc.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${B7++}`;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},Tc.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Tc.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function _r(e,t,n,r){let o=ke(n),a=n==null;c.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 Pg(e,t){let n=Tg(e,t,"left"),r=Tg(e,t,"top"),o=t.offsetWidth,a=t.offsetHeight,i=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u}=getComputedStyle(e),d=e.scrollLeft+parseInt(u,10),f=e.scrollTop+parseInt(s,10),m=d+e.clientWidth,g=f+e.clientHeight;n<=i?i=n-parseInt(u,10):n+o>m&&(i+=n+o-m),r<=f?l=r-parseInt(s,10):r+a>g&&(l+=r+a-g),e.scrollLeft=i,e.scrollTop=l}function Tg(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 kc(e,t){if(document.contains(e)){let i=document.scrollingElement||document.documentElement;if(window.getComputedStyle(i).overflow==="hidden"){let s=V7(e);for(let u of s)Pg(u,e)}else{var n;let{left:s,top:u}=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(s-d)>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 Ac(e){return e.mozInputSource===0&&e.isTrusted?!0:Ec()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function j7(e){return!Ec()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Cg(e,t){let n=c.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function U7(e,t,n){let r=c.useRef(t),o=ke(()=>{n&&n(r.current)});c.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 Ot(e,t,n){let[r,o]=c.useState(e||t),a=c.useRef(e!==void 0),i=e!==void 0;c.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 l=i?e:r,s=c.useCallback((u,...d)=>{let f=(m,...g)=>{n&&(Object.is(l,m)||n(m,...g)),i||(l=m)};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((g,...h)=>{let b=u(i?l:g,...h);return f(b,...d),i?g:b})):(i||o(u),f(u,...d))},[i,l,n]);return[l,s]}function fi(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function pi(e,t){let n=e,r=t.toString(),o=r.indexOf("."),a=o>=0?r.length-o:0;if(a>0){let i=Math.pow(10,a);n=Math.round(n*i)/i}return n}function jn(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,a=pi(Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(pi(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(pi((n-t)/r,r))*r),a=pi(a,r),a}let xr="default",Ic="",mi=new WeakMap;function kg(e){if(Co()){if(xr==="default"){const t=Pe(e);Ic=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}xr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(mi.set(e,e.style.userSelect),e.style.userSelect="none")}function gi(e){if(Co()){if(xr!=="disabled")return;xr="restoring",setTimeout(()=>{wg(()=>{if(xr==="restoring"){const t=Pe(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Ic||""),Ic="",xr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&mi.has(e)){let t=mi.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),mi.delete(e)}}const Oc=D.default.createContext({register:()=>{}});Oc.displayName="PressResponderContext";function W7(e,t){return t.get?t.get.call(e):t.value}function Ag(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function H7(e,t){var n=Ag(e,t,"get");return W7(e,n)}function G7(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Io(e,t,n){G7(e,t),t.set(e,n)}function Y7(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 Ig(e,t,n){var r=Ag(e,t,"set");return Y7(e,r,n),n}function q7(e){let t=c.useContext(Oc);if(t){let{register:n,...r}=t;e=fe(r,e),n()}return Dg(t,e.ref),e}var hi=new WeakMap;class bi{continuePropagation(){Ig(this,hi,!1)}get shouldStopPropagation(){return H7(this,hi)}constructor(t,n,r,o){Io(this,hi,{writable:!0,value:void 0}),Ig(this,hi,!0);var a;let i=(a=o==null?void 0:o.target)!==null&&a!==void 0?a:r.currentTarget;const l=i==null?void 0:i.getBoundingClientRect();let s,u=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),l&&(d!=null&&f!=null?(s=d-l.left,u=f-l.top):(s=l.width/2,u=l.height/2)),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,this.x=s,this.y=u}}const Og=Symbol("linkClicked");function wr(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:a,isDisabled:i,isPressed:l,preventFocusOnPress:s,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...m}=q7(e),[g,h]=c.useState(!1),b=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:v,removeAllGlobalListeners:_}=Dc(),y=ke(($,k)=>{let F=b.current;if(i||F.didFirePressStart)return!1;let x=!0;if(F.isTriggeringEvent=!0,r){let R=new bi("pressstart",k,$);r(R),x=R.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,h(!0),x}),w=ke(($,k,F=!0)=>{let x=b.current;if(!x.didFirePressStart)return!1;x.ignoreClickAfterPress=!0,x.didFirePressStart=!1,x.isTriggeringEvent=!0;let R=!0;if(o){let O=new bi("pressend",k,$);o(O),R=O.shouldStopPropagation}if(n&&n(!1),h(!1),t&&F&&!i){let O=new bi("press",k,$);t(O),R&&(R=O.shouldStopPropagation)}return x.isTriggeringEvent=!1,R}),S=ke(($,k)=>{let F=b.current;if(i)return!1;if(a){F.isTriggeringEvent=!0;let x=new bi("pressup",k,$);return a(x),F.isTriggeringEvent=!1,x.shouldStopPropagation}return!0}),P=ke($=>{let k=b.current;k.isPressed&&k.target&&(k.isOverTarget&&k.pointerType!=null&&w(Yt(k.target,$),k.pointerType,!1),k.isPressed=!1,k.isOverTarget=!1,k.activePointerId=null,k.pointerType=null,_(),d||gi(k.target))}),T=ke($=>{u&&P($)}),M=c.useMemo(()=>{let $=b.current,k={onKeyDown(x){if(Fc(x.nativeEvent,x.currentTarget)&&x.currentTarget.contains(x.target)){var R;Fg(x.target,x.key)&&x.preventDefault();let O=!0;if(!$.isPressed&&!x.repeat){$.target=x.currentTarget,$.isPressed=!0,O=y(x,"keyboard");let A=x.currentTarget,V=I=>{Fc(I,A)&&!I.repeat&&A.contains(I.target)&&$.target&&S(Yt($.target,I),"keyboard")};v(Pe(x.currentTarget),"keyup",Wt(V,F),!0)}O&&x.stopPropagation(),x.metaKey&&Gt()&&((R=$.metaKeyEvents)===null||R===void 0||R.set(x.key,x.nativeEvent))}else x.key==="Meta"&&($.metaKeyEvents=new Map)},onClick(x){if(!(x&&!x.currentTarget.contains(x.target))&&x&&x.button===0&&!$.isTriggeringEvent&&!ko.isOpening){let R=!0;if(i&&x.preventDefault(),!$.ignoreClickAfterPress&&!$.ignoreEmulatedMouseEvents&&!$.isPressed&&($.pointerType==="virtual"||Ac(x.nativeEvent))){!i&&!s&&It(x.currentTarget);let O=y(x,"virtual"),A=S(x,"virtual"),V=w(x,"virtual");R=O&&A&&V}$.ignoreEmulatedMouseEvents=!1,$.ignoreClickAfterPress=!1,R&&x.stopPropagation()}}},F=x=>{var R;if($.isPressed&&$.target&&Fc(x,$.target)){var O;Fg(x.target,x.key)&&x.preventDefault();let V=x.target;w(Yt($.target,x),"keyboard",$.target.contains(V)),_(),x.key!=="Enter"&&Mc($.target)&&$.target.contains(V)&&!x[Og]&&(x[Og]=!0,ko($.target,x,!1)),$.isPressed=!1,(O=$.metaKeyEvents)===null||O===void 0||O.delete(x.key)}else if(x.key==="Meta"&&(!((R=$.metaKeyEvents)===null||R===void 0)&&R.size)){var A;let V=$.metaKeyEvents;$.metaKeyEvents=void 0;for(let I of V.values())(A=$.target)===null||A===void 0||A.dispatchEvent(new KeyboardEvent("keyup",I))}};if(typeof PointerEvent<"u"){k.onPointerDown=A=>{if(A.button!==0||!A.currentTarget.contains(A.target))return;if(j7(A.nativeEvent)){$.pointerType="virtual";return}Lc(A.currentTarget)&&A.preventDefault(),$.pointerType=A.pointerType;let V=!0;$.isPressed||($.isPressed=!0,$.isOverTarget=!0,$.activePointerId=A.pointerId,$.target=A.currentTarget,!i&&!s&&It(A.currentTarget),d||kg($.target),V=y(A,$.pointerType),v(Pe(A.currentTarget),"pointermove",x,!1),v(Pe(A.currentTarget),"pointerup",R,!1),v(Pe(A.currentTarget),"pointercancel",O,!1)),V&&A.stopPropagation()},k.onMouseDown=A=>{A.currentTarget.contains(A.target)&&A.button===0&&(Lc(A.currentTarget)&&A.preventDefault(),A.stopPropagation())},k.onPointerUp=A=>{!A.currentTarget.contains(A.target)||$.pointerType==="virtual"||A.button===0&&Er(A,A.currentTarget)&&S(A,$.pointerType||A.pointerType)};let x=A=>{A.pointerId===$.activePointerId&&($.target&&Er(A,$.target)?!$.isOverTarget&&$.pointerType!=null&&($.isOverTarget=!0,y(Yt($.target,A),$.pointerType)):$.target&&$.isOverTarget&&$.pointerType!=null&&($.isOverTarget=!1,w(Yt($.target,A),$.pointerType,!1),T(A)))},R=A=>{A.pointerId===$.activePointerId&&$.isPressed&&A.button===0&&$.target&&(Er(A,$.target)&&$.pointerType!=null?w(Yt($.target,A),$.pointerType):$.isOverTarget&&$.pointerType!=null&&w(Yt($.target,A),$.pointerType,!1),$.isPressed=!1,$.isOverTarget=!1,$.activePointerId=null,$.pointerType=null,_(),d||gi($.target))},O=A=>{P(A)};k.onDragStart=A=>{A.currentTarget.contains(A.target)&&P(A)}}else{k.onMouseDown=O=>{if(O.button!==0||!O.currentTarget.contains(O.target))return;if(Lc(O.currentTarget)&&O.preventDefault(),$.ignoreEmulatedMouseEvents){O.stopPropagation();return}$.isPressed=!0,$.isOverTarget=!0,$.target=O.currentTarget,$.pointerType=Ac(O.nativeEvent)?"virtual":"mouse",!i&&!s&&It(O.currentTarget),y(O,$.pointerType)&&O.stopPropagation(),v(Pe(O.currentTarget),"mouseup",x,!1)},k.onMouseEnter=O=>{if(!O.currentTarget.contains(O.target))return;let A=!0;$.isPressed&&!$.ignoreEmulatedMouseEvents&&$.pointerType!=null&&($.isOverTarget=!0,A=y(O,$.pointerType)),A&&O.stopPropagation()},k.onMouseLeave=O=>{if(!O.currentTarget.contains(O.target))return;let A=!0;$.isPressed&&!$.ignoreEmulatedMouseEvents&&$.pointerType!=null&&($.isOverTarget=!1,A=w(O,$.pointerType,!1),T(O)),A&&O.stopPropagation()},k.onMouseUp=O=>{O.currentTarget.contains(O.target)&&!$.ignoreEmulatedMouseEvents&&O.button===0&&S(O,$.pointerType||"mouse")};let x=O=>{if(O.button===0){if($.isPressed=!1,_(),$.ignoreEmulatedMouseEvents){$.ignoreEmulatedMouseEvents=!1;return}$.target&&Er(O,$.target)&&$.pointerType!=null?w(Yt($.target,O),$.pointerType):$.target&&$.isOverTarget&&$.pointerType!=null&&w(Yt($.target,O),$.pointerType,!1),$.isOverTarget=!1}};k.onTouchStart=O=>{if(!O.currentTarget.contains(O.target))return;let A=X7(O.nativeEvent);if(!A)return;$.activePointerId=A.identifier,$.ignoreEmulatedMouseEvents=!0,$.isOverTarget=!0,$.isPressed=!0,$.target=O.currentTarget,$.pointerType="touch",!i&&!s&&It(O.currentTarget),d||kg($.target),y(xn($.target,O),$.pointerType)&&O.stopPropagation(),v(vt(O.currentTarget),"scroll",R,!0)},k.onTouchMove=O=>{if(!O.currentTarget.contains(O.target))return;if(!$.isPressed){O.stopPropagation();return}let A=Mg(O.nativeEvent,$.activePointerId),V=!0;A&&Er(A,O.currentTarget)?!$.isOverTarget&&$.pointerType!=null&&($.isOverTarget=!0,V=y(xn($.target,O),$.pointerType)):$.isOverTarget&&$.pointerType!=null&&($.isOverTarget=!1,V=w(xn($.target,O),$.pointerType,!1),T(xn($.target,O))),V&&O.stopPropagation()},k.onTouchEnd=O=>{if(!O.currentTarget.contains(O.target))return;if(!$.isPressed){O.stopPropagation();return}let A=Mg(O.nativeEvent,$.activePointerId),V=!0;A&&Er(A,O.currentTarget)&&$.pointerType!=null?(S(xn($.target,O),$.pointerType),V=w(xn($.target,O),$.pointerType)):$.isOverTarget&&$.pointerType!=null&&(V=w(xn($.target,O),$.pointerType,!1)),V&&O.stopPropagation(),$.isPressed=!1,$.activePointerId=null,$.isOverTarget=!1,$.ignoreEmulatedMouseEvents=!0,$.target&&!d&&gi($.target),_()},k.onTouchCancel=O=>{O.currentTarget.contains(O.target)&&(O.stopPropagation(),$.isPressed&&P(xn($.target,O)))};let R=O=>{$.isPressed&&O.target.contains($.target)&&P({currentTarget:$.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};k.onDragStart=O=>{O.currentTarget.contains(O.target)&&P(O)}}return k},[v,i,s,_,d,P,T,w,y,S]);return c.useEffect(()=>()=>{var $;d||gi(($=b.current.target)!==null&&$!==void 0?$:void 0)},[d]),{isPressed:l||g,pressProps:fe(m,M)}}function Mc(e){return e.tagName==="A"&&e.hasAttribute("href")}function Fc(e,t){const{key:n,code:r}=e,o=t,a=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof vt(o).HTMLInputElement&&!Lg(o,n)||o instanceof vt(o).HTMLTextAreaElement||o.isContentEditable)&&!((a==="link"||!a&&Mc(o))&&n!=="Enter")}function X7(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Mg(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 xn(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Yt(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function J7(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 Z7(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Er(e,t){let n=t.getBoundingClientRect(),r=J7(e);return Z7(n,r)}function Lc(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Fg(e,t){return e instanceof HTMLInputElement?!Lg(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Mc(e)}const Q7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Lg(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Q7.has(e.type)}function eC({children:e}){let t=c.useMemo(()=>({register:()=>{}}),[]);return D.default.createElement(Oc.Provider,{value:t},e)}class tC{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 Ng(e){let t=c.useRef({isFocused:!1,observer:null});Te(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=ke(r=>{e==null||e(r)});return c.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 tC("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 l=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Nc(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const a=c.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),o&&o(!1),!0},[r,o]),i=Ng(a),l=c.useCallback(s=>{const u=Pe(s.target);s.target===s.currentTarget&&u.activeElement===s.target&&(n&&n(s),o&&o(!0),i(s))},[o,n,i]);return{focusProps:{onFocus:!t&&(n||o||r)?l:void 0,onBlur:!t&&(r||o)?a:void 0}}}let qt=null,Oo=new Set,Mo=new Map,Un=!1,zc=!1;const nC={Tab:!0,Escape:!0};function vi(e,t){for(let n of Oo)n(e,t)}function rC(e){return!(e.metaKey||!Gt()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function yi(e){Un=!0,rC(e)&&(qt="keyboard",vi("keyboard",e))}function ut(e){qt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Un=!0,vi("pointer",e))}function zg(e){Ac(e)&&(Un=!0,qt="virtual")}function Rg(e){e.target===window||e.target===document||(!Un&&!zc&&(qt="virtual",vi("virtual",e)),Un=!1,zc=!1)}function Kg(){Un=!1,zc=!0}function $i(e){if(typeof window>"u"||Mo.get(vt(e)))return;const t=vt(e),n=Pe(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Un=!0,r.apply(this,arguments)},n.addEventListener("keydown",yi,!0),n.addEventListener("keyup",yi,!0),n.addEventListener("click",zg,!0),t.addEventListener("focus",Rg,!0),t.addEventListener("blur",Kg,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ut,!0),n.addEventListener("pointermove",ut,!0),n.addEventListener("pointerup",ut,!0)):(n.addEventListener("mousedown",ut,!0),n.addEventListener("mousemove",ut,!0),n.addEventListener("mouseup",ut,!0)),t.addEventListener("beforeunload",()=>{Vg(e)},{once:!0}),Mo.set(t,{focus:r})}const Vg=(e,t)=>{const n=vt(e),r=Pe(e);t&&r.removeEventListener("DOMContentLoaded",t),Mo.has(n)&&(n.HTMLElement.prototype.focus=Mo.get(n).focus,r.removeEventListener("keydown",yi,!0),r.removeEventListener("keyup",yi,!0),r.removeEventListener("click",zg,!0),n.removeEventListener("focus",Rg,!0),n.removeEventListener("blur",Kg,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ut,!0),r.removeEventListener("pointermove",ut,!0),r.removeEventListener("pointerup",ut,!0)):(r.removeEventListener("mousedown",ut,!0),r.removeEventListener("mousemove",ut,!0),r.removeEventListener("mouseup",ut,!0)),Mo.delete(n))};function oC(e){const t=Pe(e);let n;return t.readyState!=="loading"?$i(e):(n=()=>{$i(e)},t.addEventListener("DOMContentLoaded",n)),()=>Vg(e,n)}typeof document<"u"&&oC();function _i(){return qt!=="pointer"}function xi(){return qt}function Rc(e){qt=e,vi(e,null)}function Bg(){$i();let[e,t]=c.useState(qt);return c.useEffect(()=>{let n=()=>{t(qt)};return Oo.add(n),()=>{Oo.delete(n)}},[]),li()?null:e}const aC=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function iC(e,t,n){var r;const o=typeof window<"u"?vt(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?vt(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?vt(n==null?void 0:n.target).HTMLElement:HTMLElement,l=typeof window<"u"?vt(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!aC.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 l&&!nC[n.key])}function lC(e,t,n){$i(),c.useEffect(()=>{let r=(o,a)=>{iC(!!(n!=null&&n.isTextInput),o,a)&&e(_i())};return Oo.add(r),()=>{Oo.delete(r)}},t)}function Fo(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,a=c.useRef({isFocusWithin:!1}),i=c.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,a]),l=Ng(i),s=c.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),a.current.isFocusWithin=!0,l(u))},[r,o,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:i}}}let wi=!1,Kc=0;function Vc(){wi=!0,setTimeout(()=>{wi=!1},50)}function jg(e){e.pointerType==="touch"&&Vc()}function sC(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",jg):document.addEventListener("touchend",Vc),Kc++,()=>{Kc--,!(Kc>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",jg):document.removeEventListener("touchend",Vc))}}function cC(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[a,i]=c.useState(!1),l=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(sC,[]);let{hoverProps:s,triggerHoverEnd:u}=c.useMemo(()=>{let d=(g,h)=>{if(l.pointerType=h,o||h==="touch"||l.isHovered||!g.currentTarget.contains(g.target))return;l.isHovered=!0;let b=g.currentTarget;l.target=b,t&&t({type:"hoverstart",target:b,pointerType:h}),n&&n(!0),i(!0)},f=(g,h)=>{if(l.pointerType="",l.target=null,h==="touch"||!l.isHovered)return;l.isHovered=!1;let b=g.currentTarget;r&&r({type:"hoverend",target:b,pointerType:h}),n&&n(!1),i(!1)},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=g=>{wi&&g.pointerType==="mouse"||d(g,g.pointerType)},m.onPointerLeave=g=>{!o&&g.currentTarget.contains(g.target)&&f(g,g.pointerType)}):(m.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=g=>{!l.ignoreEmulatedMouseEvents&&!wi&&d(g,"mouse"),l.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=g=>{!o&&g.currentTarget.contains(g.target)&&f(g,"mouse")}),{hoverProps:m,triggerHoverEnd:f}},[t,n,r,o,l]);return c.useEffect(()=>{o&&u({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:s,isHovered:a}}function uC(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,a=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=ke(s=>{n&&Ei(s,t)&&(o&&o(s),a.current.isPointerDown=!0)}),l=ke(s=>{n&&n(s)});c.useEffect(()=>{let s=a.current;if(r)return;const u=t.current,d=Pe(u);if(typeof PointerEvent<"u"){let f=m=>{s.isPointerDown&&Ei(m,t)&&l(m),s.isPointerDown=!1};return d.addEventListener("pointerdown",i,!0),d.addEventListener("pointerup",f,!0),()=>{d.removeEventListener("pointerdown",i,!0),d.removeEventListener("pointerup",f,!0)}}else{let f=g=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&Ei(g,t)&&l(g),s.isPointerDown=!1},m=g=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&Ei(g,t)&&l(g),s.isPointerDown=!1};return d.addEventListener("mousedown",i,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",i,!0),d.addEventListener("touchend",m,!0),()=>{d.removeEventListener("mousedown",i,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",i,!0),d.removeEventListener("touchend",m,!0)}}},[t,r,i,l])}function Ei(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 Ug(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 dC(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Ug(e.onKeyDown),onKeyUp:Ug(e.onKeyUp)}}}function fC(e,t){let{onScroll:n,isDisabled:r}=e,o=c.useCallback(a=>{a.ctrlKey||(a.preventDefault(),a.stopPropagation(),n&&n({deltaX:a.deltaX,deltaY:a.deltaY}))},[n]);_r(t,"wheel",r?void 0:o)}const pC=500;function Wg(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:a=pC,accessibilityDescription:i}=e;const l=c.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:u}=Dc(),{pressProps:d}=wr({isDisabled:t,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(n&&n({...m,type:"longpressstart"}),l.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...m,type:"longpress"}),l.current=void 0},a),m.pointerType==="touch")){let g=h=>{h.preventDefault()};s(m.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(m.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(m){l.current&&clearTimeout(l.current),r&&(m.pointerType==="mouse"||m.pointerType==="touch")&&r({...m,type:"longpressend"})}}),f=Cc(o&&!t?i:void 0);return{longPressProps:fe(d,f)}}const Hg={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 Gg(e={}){let{style:t,isFocusable:n}=e,[r,o]=c.useState(!1),{focusWithinProps:a}=Fo({isDisabled:!n,onFocusWithinChange:l=>o(l)}),i=c.useMemo(()=>r?t:t?{...Hg,...t}:Hg,[r]);return{visuallyHiddenProps:{...a,style:i}}}function Si(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...a}=e,{visuallyHiddenProps:i}=Gg(e);return D.default.createElement(n,fe(a,i),t)}const mC=z.default(Be)`
|
|
432
432
|
display: flex;
|
|
433
433
|
flex-direction: column;
|
|
434
434
|
|
|
@@ -997,7 +997,7 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var le=_e(ae,se,G,re,oe+
|
|
|
997
997
|
background-color: transparent;
|
|
998
998
|
color: ${p.color_deprecated_outline_inverse_disabled};
|
|
999
999
|
}
|
|
1000
|
-
`,hk={low:fk,medium:{primary:pk,danger:mk,inverse:gk},high:sk},Dr=c.forwardRef((e,t)=>{const{size:n="small",variant:r="primary",emphasis:o="high",disabled:a,onClick:i,autoFocus:l,children:s,...u}=e,d=_n(t),f=Mt(),m=a??f,{buttonProps:g,isPressed:h}=Sr({onPress:i,isDisabled:m,autoFocus:l,...u},d),{isFocusVisible:b,focusProps:v}=ki({autoFocus:l}),_=ch({isFocusVisible:b,isPressed:h}),w=hk[o][r];return E(w,{ref:d,...fe(g,u,v,{"data-state":_}),"data-state":_,style:{"--button-padding":Jc[n]},children:s})});Dr.displayName="Button";const Zc="rovingFocusGroup.onEntryFocus",bk={bubbles:!1,cancelable:!0},Qc="RovingFocusGroup",[eu,uh,vk]=Aa(Qc),[yk,wn]=Ke(Qc,[vk]),[$k,_k]=yk(Qc),xk=c.forwardRef((e,t)=>c.createElement(eu.Provider,{scope:e.__scopeRovingFocusGroup},c.createElement(eu.Slot,{scope:e.__scopeRovingFocusGroup},c.createElement(wk,N({},e,{ref:t}))))),wk=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:u,...d}=e,f=c.useRef(null),m=ye(t,f),g=ar(a),[h=null,b]=Ue({prop:i,defaultProp:l,onChange:s}),[v,_]=c.useState(!1),y=je(u),w=uh(n),S=c.useRef(!1),[P,T]=c.useState(0);return c.useEffect(()=>{const M=f.current;if(M)return M.addEventListener(Zc,y),()=>M.removeEventListener(Zc,y)},[y]),c.createElement($k,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:h,onItemFocus:c.useCallback(M=>b(M),[b]),onItemShiftTab:c.useCallback(()=>_(!0),[]),onFocusableItemAdd:c.useCallback(()=>T(M=>M+1),[]),onFocusableItemRemove:c.useCallback(()=>T(M=>M-1),[])},c.createElement(ce.div,N({tabIndex:v||P===0?-1:0,"data-orientation":r},d,{ref:m,style:{outline:"none",...e.style},onMouseDown:Q(e.onMouseDown,()=>{S.current=!0}),onFocus:Q(e.onFocus,M=>{const $=!S.current;if(M.target===M.currentTarget&&$&&!v){const k=new CustomEvent(Zc,bk);if(M.currentTarget.dispatchEvent(k),!k.defaultPrevented){const
|
|
1000
|
+
`,hk={low:fk,medium:{primary:pk,danger:mk,inverse:gk},high:sk},Dr=c.forwardRef((e,t)=>{const{size:n="small",variant:r="primary",emphasis:o="high",disabled:a,onClick:i,autoFocus:l,children:s,...u}=e,d=_n(t),f=Mt(),m=a??f,{buttonProps:g,isPressed:h}=Sr({onPress:i,isDisabled:m,autoFocus:l,...u},d),{isFocusVisible:b,focusProps:v}=ki({autoFocus:l}),_=ch({isFocusVisible:b,isPressed:h}),w=hk[o][r];return E(w,{ref:d,...fe(g,u,v,{"data-state":_}),"data-state":_,style:{"--button-padding":Jc[n]},children:s})});Dr.displayName="Button";const Zc="rovingFocusGroup.onEntryFocus",bk={bubbles:!1,cancelable:!0},Qc="RovingFocusGroup",[eu,uh,vk]=Aa(Qc),[yk,wn]=Ke(Qc,[vk]),[$k,_k]=yk(Qc),xk=c.forwardRef((e,t)=>c.createElement(eu.Provider,{scope:e.__scopeRovingFocusGroup},c.createElement(eu.Slot,{scope:e.__scopeRovingFocusGroup},c.createElement(wk,N({},e,{ref:t}))))),wk=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:u,...d}=e,f=c.useRef(null),m=ye(t,f),g=ar(a),[h=null,b]=Ue({prop:i,defaultProp:l,onChange:s}),[v,_]=c.useState(!1),y=je(u),w=uh(n),S=c.useRef(!1),[P,T]=c.useState(0);return c.useEffect(()=>{const M=f.current;if(M)return M.addEventListener(Zc,y),()=>M.removeEventListener(Zc,y)},[y]),c.createElement($k,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:h,onItemFocus:c.useCallback(M=>b(M),[b]),onItemShiftTab:c.useCallback(()=>_(!0),[]),onFocusableItemAdd:c.useCallback(()=>T(M=>M+1),[]),onFocusableItemRemove:c.useCallback(()=>T(M=>M-1),[])},c.createElement(ce.div,N({tabIndex:v||P===0?-1:0,"data-orientation":r},d,{ref:m,style:{outline:"none",...e.style},onMouseDown:Q(e.onMouseDown,()=>{S.current=!0}),onFocus:Q(e.onFocus,M=>{const $=!S.current;if(M.target===M.currentTarget&&$&&!v){const k=new CustomEvent(Zc,bk);if(M.currentTarget.dispatchEvent(k),!k.defaultPrevented){const F=w().filter(V=>V.focusable),x=F.find(V=>V.active),R=F.find(V=>V.id===h),A=[x,R,...F].filter(Boolean).map(V=>V.ref.current);dh(A)}}S.current=!1}),onBlur:Q(e.onBlur,()=>_(!1))})))}),Ek="RovingFocusGroupItem",Sk=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,l=nt(),s=a||l,u=_k(Ek,n),d=u.currentTabStopId===s,f=uh(n),{onFocusableItemAdd:m,onFocusableItemRemove:g}=u;return c.useEffect(()=>{if(r)return m(),()=>g()},[r,m,g]),c.createElement(eu.ItemSlot,{scope:n,id:s,focusable:r,active:o},c.createElement(ce.span,N({tabIndex:d?0:-1,"data-orientation":u.orientation},i,{ref:t,onMouseDown:Q(e.onMouseDown,h=>{r?u.onItemFocus(s):h.preventDefault()}),onFocus:Q(e.onFocus,()=>u.onItemFocus(s)),onKeyDown:Q(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){u.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const b=Tk(h,u.orientation,u.dir);if(b!==void 0){h.preventDefault();let _=f().filter(y=>y.focusable).map(y=>y.ref.current);if(b==="last")_.reverse();else if(b==="prev"||b==="next"){b==="prev"&&_.reverse();const y=_.indexOf(h.currentTarget);_=u.loop?Ck(_,y+1):_.slice(y+1)}setTimeout(()=>dh(_))}})})))}),Dk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Pk(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Tk(e,t,n){const r=Pk(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Dk[r]}function dh(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Ck(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Ai=xk,Ii=Sk,kk=c.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,l]=Ue({prop:n,onChange:o,defaultProp:r});return c.createElement(ce.button,N({type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:Q(e.onClick,()=>{e.disabled||l(!i)})}))}),Oi="ToggleGroup",[fh,IV]=Ke(Oi,[wn]),ph=wn(),Ak=D.default.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return D.default.createElement(Ik,N({},o,{ref:t}))}if(n==="multiple"){const o=r;return D.default.createElement(Ok,N({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${Oi}\``)}),[mh,gh]=fh(Oi),Ik=D.default.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=Ue({prop:n,defaultProp:r,onChange:o});return D.default.createElement(mh,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:l,onItemDeactivate:D.default.useCallback(()=>l(""),[l])},D.default.createElement(hh,N({},a,{ref:t})))}),Ok=D.default.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],l]=Ue({prop:n,defaultProp:r,onChange:o}),s=D.default.useCallback(d=>l((f=[])=>[...f,d]),[l]),u=D.default.useCallback(d=>l((f=[])=>f.filter(m=>m!==d)),[l]);return D.default.createElement(mh,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:s,onItemDeactivate:u},D.default.createElement(hh,N({},a,{ref:t})))}),[Mk,Fk]=fh(Oi),hh=D.default.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:l=!0,...s}=e,u=ph(n),d=ar(i),f={role:"group",dir:d,...s};return D.default.createElement(Mk,{scope:n,rovingFocus:o,disabled:r},o?D.default.createElement(Ai,N({asChild:!0},u,{orientation:a,dir:d,loop:l}),D.default.createElement(ce.div,N({},f,{ref:t}))):D.default.createElement(ce.div,N({},f,{ref:t})))}),tu="ToggleGroupItem",Lk=D.default.forwardRef((e,t)=>{const n=gh(tu,e.__scopeToggleGroup),r=Fk(tu,e.__scopeToggleGroup),o=ph(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,l={...e,pressed:a,disabled:i},s=D.default.useRef(null);return r.rovingFocus?D.default.createElement(Ii,N({asChild:!0},o,{focusable:!i,active:a,ref:s}),D.default.createElement(bh,N({},l,{ref:t}))):D.default.createElement(bh,N({},l,{ref:t}))}),bh=D.default.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=gh(tu,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=a.type==="single"?i:void 0;return D.default.createElement(kk,N({},l,o,{ref:t,onPressedChange:s=>{s?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),Nk=Ak,zk=Lk,vh=z.default(Nk)`
|
|
1001
1001
|
display: flex;
|
|
1002
1002
|
width: fit-content;
|
|
1003
1003
|
background-color: ${p.color_deprecated_overlay_secondary_selected_enabled};
|
|
@@ -1020,7 +1020,7 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var le=_e(ae,se,G,re,oe+
|
|
|
1020
1020
|
border-radius: ${p.border_radius_400};
|
|
1021
1021
|
box-shadow: ${p.elevation_interactive_medium};
|
|
1022
1022
|
}
|
|
1023
|
-
`;function Pr(e,t){return e-t*Math.floor(e/t)}const $h=1721426;function Hn(e,t,n,r){t=Ro(e,t);let o=t-1,a=-2;return n<=2?a=0:En(t)&&(a=-1),$h-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+a+r)}function En(e){return e%4===0&&(e%100!==0||e%400===0)}function Ro(e,t){return e==="BC"?1-t:t}function Mi(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const Kk={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-$h,o=Math.floor(r/146097),a=Pr(r,146097),i=Math.floor(a/36524),l=Pr(a,36524),s=Math.floor(l/1461),u=Pr(l,1461),d=Math.floor(u/365),f=o*400+i*100+s*4+d+(i!==4&&d!==4?1:0),[m,g]=Mi(f),h=n-Hn(m,g,1,1),b=2;n<Hn(m,g,3,1)?b=0:En(g)&&(b=1);let v=Math.floor(((h+b)*12+373)/367),_=n-Hn(m,g,v,1)+1;return new Ae(m,g,v,_)}toJulianDay(t){return Hn(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return Kk[En(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return En(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"}}const Vk={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Oe(e,t){return t=ze(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Bk(e,t){return t=ze(t,e.calendar),e=Gn(e),t=Gn(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function nu(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function jk(e,t){return Oe(e,Ko(t))}function Fi(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-Yk(t))%7;return r<0&&(r+=7),r}function Uk(e){return en(Date.now(),e)}function Ko(e){return $t(Uk(e))}function _h(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function xh(e,t){return wh(e)-wh(t)}function wh(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let ru=null;function Eh(){return ru==null&&(ru=new Intl.DateTimeFormat().resolvedOptions().timeZone),ru}function Gn(e){return e.subtract({days:e.day-1})}function Li(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function Wk(e){return Gn(e.subtract({months:e.month-1}))}function Vo(e,t){let n=Fi(e,t);return e.subtract({days:n})}function Hk(e,t){return Vo(e,t).add({days:6})}const Sh=new Map;function Gk(e){if(Intl.Locale){let n=Sh.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&Sh.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function Yk(e){let t=Gk(e);return t&&Vk[t]||0}function qk(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Fi(Gn(e),t)+n)/7)}function ou(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function au(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Tr(e){e=ze(e,new ot);let t=Ro(e.era,e.year);return Dh(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Dh(e,t,n,r,o,a,i){let l=new Date;return l.setUTCHours(r,o,a,i),l.setUTCFullYear(e,t-1,n),l.getTime()}function iu(e,t){if(t==="UTC")return 0;if(e>0&&t===Eh())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:a,minute:i,second:l}=Th(e,t);return Dh(n,r,o,a,i,l,0)-Math.floor(e/1e3)*1e3}const Ph=new Map;function Th(e,t){let n=Ph.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"}),Ph.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 Ch=864e5;function Xk(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>Jk(e,t,a))}function Jk(e,t,n){let r=Th(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 Qt(e,t,n="compatible"){let r=Cr(e);if(t==="UTC")return Tr(r);if(t===Eh()&&n==="compatible"){r=ze(r,new ot);let s=new Date,u=Ro(r.era,r.year);return s.setFullYear(u,r.month-1,r.day),s.setHours(r.hour,r.minute,r.second,r.millisecond),s.getTime()}let o=Tr(r),a=iu(o-Ch,t),i=iu(o+Ch,t),l=Xk(r,t,o-a,o-i);if(l.length===1)return l[0];if(l.length>1)switch(n){case"compatible":case"earlier":return l[0];case"later":return l[l.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 kh(e,t,n="compatible"){return new Date(Qt(e,t,n))}function en(e,t){let n=iu(e,t),r=new Date(e+n),o=r.getUTCFullYear(),a=r.getUTCMonth()+1,i=r.getUTCDate(),l=r.getUTCHours(),s=r.getUTCMinutes(),u=r.getUTCSeconds(),d=r.getUTCMilliseconds();return new Uo(o,a,i,t,n,l,s,u,d)}function $t(e){return new Ae(e.calendar,e.era,e.year,e.month,e.day)}function Cr(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 Ri(e.calendar,e.era,e.year,e.month,e.day,n,r,o,a)}function ze(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,Yn(r),r}function Zk(e,t,n){if(e instanceof Uo)return e.timeZone===t?e:e4(e,t);let r=Qt(e,t,n);return en(r,t)}function Qk(e){let t=Tr(e)-e.offset;return new Date(t)}function e4(e,t){let n=Tr(e)-e.offset;return ze(en(n,t),e.calendar)}const Bo=36e5;function Ni(e,t){let n=e.copy(),r="hour"in n?Mh(n,t):0;lu(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,su(n),Ah(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,t4(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 s=(a=(i=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(i,n);n.year=o,n.month=s?1:n.calendar.getMonthsInYear(n),n.day=s?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let l=n.calendar.getMonthsInYear(n);return n.month>l&&(n.month=l,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function lu(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function su(e){for(;e.month<1;)lu(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,lu(e,1)}function t4(e){for(;e.day<1;)e.month--,su(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,su(e)}function Ah(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 Yn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Ah(e)}function cu(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function Ih(e,t){return Ni(e,cu(t))}function uu(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),Yn(n),n}function jo(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),Oh(n),n}function n4(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=zi(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=zi(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=zi(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=zi(e.hour,24),t}function Oh(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 zi(e,t){let n=e%t;return n<0&&(n+=t),n}function Mh(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,n4(e)}function Fh(e,t){let n=e.copy();return Mh(n,t),n}function r4(e,t){return Fh(e,cu(t))}function du(e,t,n,r){let o=e.copy();switch(t){case"era":{let l=e.calendar.getEras(),s=l.indexOf(e.era);if(s<0)throw new Error("Invalid era: "+e.era);s=tn(s,n,0,l.length-1,r==null?void 0:r.round),o.era=l[s],Yn(o);break}case"year":var a,i;!((a=(i=o.calendar).isInverseEra)===null||a===void 0)&&a.call(i,o)&&(n=-n),o.year=tn(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=tn(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":o.day=tn(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),Yn(o),o}function fu(e,t,n,r){let o=e.copy();switch(t){case"hour":{let a=e.hour,i=0,l=23;if((r==null?void 0:r.hourCycle)===12){let s=a>=12;i=s?12:0,l=s?23:11}o.hour=tn(a,n,i,l,r==null?void 0:r.round);break}case"minute":o.minute=tn(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":o.second=tn(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":o.millisecond=tn(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function tn(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 Lh(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=Ni(Cr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Qt(o,e.timeZone)}else n=Tr(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=en(n,e.timeZone);return ze(r,e.calendar)}function o4(e,t){return Lh(e,cu(t))}function a4(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=Cr(e),l=ze(jo(i,{hour:o}),new ot),s=[Qt(l,e.timeZone,"earlier"),Qt(l,e.timeZone,"later")].filter(h=>en(h,e.timeZone).day===l.day)[0],u=ze(jo(i,{hour:a}),new ot),d=[Qt(u,e.timeZone,"earlier"),Qt(u,e.timeZone,"later")].filter(h=>en(h,e.timeZone).day===u.day).pop(),f=Tr(e)-e.offset,m=Math.floor(f/Bo),g=f%Bo;return f=tn(m,n,Math.floor(s/Bo),Math.floor(d/Bo),r==null?void 0:r.round)*Bo+g,ze(en(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return fu(e,t,n,r);case"era":case"year":case"month":case"day":{let o=du(Cr(e),t,n,r),a=Qt(o,e.timeZone);return ze(en(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function i4(e,t,n){let r=Cr(e),o=jo(uu(r,t),t);if(o.compare(r)===0)return e;let a=Qt(o,e.timeZone,n);return ze(en(a,e.timeZone),e.calendar)}function Nh(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 zh(e){let t=ze(e,new ot);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Rh(e){return`${zh(e)}T${Nh(e)}`}function l4(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 s4(e){return`${Rh(e)}${l4(e.offset)}[${e.timeZone}]`}function pu(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 c4=new WeakMap;class Ae{copy(){return this.era?new Ae(this.calendar,this.era,this.year,this.month,this.day):new Ae(this.calendar,this.year,this.month,this.day)}add(t){return Ni(this,t)}subtract(t){return Ih(this,t)}set(t){return uu(this,t)}cycle(t,n,r){return du(this,t,n,r)}toDate(t){return kh(this,t)}toString(){return zh(this)}compare(t){return _h(this,t)}constructor(...t){Io(this,c4,{writable:!0,value:void 0});let[n,r,o,a,i]=pu(t);this.calendar=n,this.era=r,this.year=o,this.month=a,this.day=i,Yn(this)}}var u4=new WeakMap;class kr{copy(){return new kr(this.hour,this.minute,this.second,this.millisecond)}add(t){return Fh(this,t)}subtract(t){return r4(this,t)}set(t){return jo(this,t)}cycle(t,n,r){return fu(this,t,n,r)}toString(){return Nh(this)}compare(t){return xh(this,t)}constructor(t=0,n=0,r=0,o=0){Io(this,u4,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=o,Oh(this)}}var d4=new WeakMap;class Ri{copy(){return this.era?new Ri(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Ri(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Ni(this,t)}subtract(t){return Ih(this,t)}set(t){return uu(jo(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return du(this,t,n,r);default:return fu(this,t,n,r)}}toDate(t,n){return kh(this,t,n)}toString(){return Rh(this)}compare(t){let n=_h(this,t);return n===0?xh(this,Cr(t)):n}constructor(...t){Io(this,d4,{writable:!0,value:void 0});let[n,r,o,a,i]=pu(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,Yn(this)}}var f4=new WeakMap;class Uo{copy(){return this.era?new Uo(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Uo(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return Lh(this,t)}subtract(t){return o4(this,t)}set(t,n){return i4(this,t,n)}cycle(t,n,r){return a4(this,t,n,r)}toDate(){return Qk(this)}toString(){return s4(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-Zk(t,this.timeZone).toDate().getTime()}constructor(...t){Io(this,f4,{writable:!0,value:void 0});let[n,r,o,a,i]=pu(t),l=t.shift(),s=t.shift();this.calendar=n,this.era=r,this.year=o,this.month=a,this.day=i,this.timeZone=l,this.offset=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Yn(this)}}const Ar=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],p4=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Ki=[1867,1911,1925,1988,2018],Sn=["meiji","taisho","showa","heisei","reiwa"];function Kh(e){const t=Ar.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?Ar.length-1:t===0?0:t-1}function mu(e){let t=Ki[Sn.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Ae(e.year+t,e.month,e.day)}class m4 extends ot{fromJulianDay(t){let n=super.fromJulianDay(t),r=Kh(n);return new Ae(this,Sn[r],n.year-Ki[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(mu(t))}balanceDate(t){let n=mu(t),r=Kh(n);Sn[r]!==t.era&&(t.era=Sn[r],t.year=n.year-Ki[r]),this.constrainDate(t)}constrainDate(t){let n=Sn.indexOf(t.era),r=p4[n];if(r!=null){let[o,a,i]=r,l=o-Ki[n];t.year=Math.max(1,Math.min(l,t.year)),t.year===l&&(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]=Ar[n];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(a,t.day))}}getEras(){return Sn}getYearsInEra(t){let n=Sn.indexOf(t.era),r=Ar[n],o=Ar[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(mu(t))}getMinimumMonthInYear(t){let n=Vh(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=Vh(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function Vh(e){if(e.year===1){let t=Sn.indexOf(e.era);return Ar[t]}}const Bh=-543;class g4 extends ot{fromJulianDay(t){let n=super.fromJulianDay(t),r=Ro(n.era,n.year);return new Ae(this,r-Bh,n.month,n.day)}toJulianDay(t){return super.toJulianDay(jh(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(jh(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function jh(e){let[t,n]=Mi(e.year+Bh);return new Ae(t,n,e.month,e.day)}const Vi=1911;function Uh(e){return e.era==="minguo"?e.year+Vi:1-e.year+Vi}function Wh(e){let t=e-Vi;return t>0?["minguo",t]:["before_minguo",1-t]}class h4 extends ot{fromJulianDay(t){let n=super.fromJulianDay(t),r=Ro(n.era,n.year),[o,a]=Wh(r);return new Ae(this,o,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Hh(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=Wh(Uh(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Hh(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Vi}constructor(...t){super(...t),this.identifier="roc"}}function Hh(e){let[t,n]=Mi(Uh(e));return new Ae(t,n,e.month,e.day)}const Gh=1948320,Yh=[0,31,62,93,124,155,186,216,246,276,306,336];class b4{fromJulianDay(t){let n=t-Gh,r=1+Math.floor((33*n+3)/12053),o=365*(r-1)+Math.floor((8*r+21)/33),a=n-o,i=a<216?Math.floor(a/31):Math.floor((a-6)/30),l=a-Yh[i]+1;return new Ae(this,r,i+1,l)}toJulianDay(t){let n=Gh-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=Yh[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Pr(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const gu=78,qh=80;class v4 extends ot{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-gu,o=t-Hn(n.era,n.year,1,1),a;o<qh?(r--,a=En(n.year-1)?31:30,o+=a+155+90+10):(a=En(n.year)?31:30,o-=qh);let i,l;if(o<a)i=1,l=o+1;else{let s=o-a;s<155?(i=Math.floor(s/31)+2,l=s%31+1):(s-=155,i=Math.floor(s/30)+7,l=s%30+1)}return new Ae(this,r,i,l)}toJulianDay(t){let n=t.year+gu,[r,o]=Mi(n),a,i;return En(o)?(a=31,i=Hn(r,o,3,21)):(a=30,i=Hn(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&&En(t.year+gu)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Bi=1948440,Xh=1948439,dt=1300,Ir=1600,y4=460322;function ji(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Jh(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+ji(t,r,1,1)))/29.5)+1),a=n-ji(t,r,o,1)+1;return new Ae(e,r,o,a)}function Zh(e){return(14+11*e)%30<11}class hu{fromJulianDay(t){return Jh(this,Bi,t)}toJulianDay(t){return ji(Bi,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&Zh(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return Zh(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class $4 extends hu{fromJulianDay(t){return Jh(this,Xh,t)}toJulianDay(t){return ji(Xh,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const _4="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let bu,Or;function Ui(e){return y4+Or[e-dt]}function Wo(e,t){let n=e-dt,r=1<<11-(t-1);return bu[n]&r?30:29}function Qh(e,t){let n=Ui(e);for(let r=1;r<t;r++)n+=Wo(e,r);return n}function eb(e){return Or[e+1-dt]-Or[e-dt]}class x4 extends hu{fromJulianDay(t){let n=t-Bi,r=Ui(dt),o=Ui(Ir);if(n<r||n>o)return super.fromJulianDay(t);{let a=dt-1,i=1,l=1;for(;l>0;){a++,l=n-Ui(a)+1;let s=eb(a);if(l===s){i=12;break}else if(l<s){let u=Wo(a,i);for(i=1;l>u;)l-=u,i++,u=Wo(a,i);break}}return new Ae(this,a,i,n-Qh(a,i)+1)}}toJulianDay(t){return t.year<dt||t.year>Ir?super.toJulianDay(t):Bi+Qh(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<dt||t.year>Ir?super.getDaysInMonth(t):Wo(t.year,t.month)}getDaysInYear(t){return t.year<dt||t.year>Ir?super.getDaysInYear(t):eb(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",bu||(bu=new Uint16Array(Uint8Array.from(atob(_4),t=>t.charCodeAt(0)).buffer)),!Or){Or=new Uint32Array(Ir-dt+1);let t=0;for(let n=dt;n<=Ir;n++){Or[n-dt]=t;for(let r=1;r<=12;r++)t+=Wo(n,r)}}}}const tb=347997,nb=1080,rb=24*nb,w4=29,E4=12*nb+793,S4=w4*rb+E4;function qn(e){return Pr(e*7+1,19)<7}function Wi(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Pr(3*(r+1),7)<3&&(r+=1),r}function D4(e){let t=Wi(e-1),n=Wi(e);return Wi(e+1)-n===356?2:n-t===382?1:0}function Ho(e){return Wi(e)+D4(e)}function ob(e){return Ho(e+1)-Ho(e)}function P4(e){let t=ob(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Hi(e,t){if(t>=6&&!qn(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=P4(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?qn(e)?30:0:30}class T4{fromJulianDay(t){let n=t-tb,r=n*rb/S4,o=Math.floor((19*r+234)/235)+1,a=Ho(o),i=Math.floor(n-a);for(;i<1;)o--,a=Ho(o),i=Math.floor(n-a);let l=1,s=0;for(;s<i;)s+=Hi(o,l),l++;l--,s-=Hi(o,l);let u=i-s;return new Ae(this,o,l,u)}toJulianDay(t){let n=Ho(t.year);for(let r=1;r<t.month;r++)n+=Hi(t.year,r);return n+t.day+tb}getDaysInMonth(t){return Hi(t.year,t.month)}getMonthsInYear(t){return qn(t.year)?13:12}getDaysInYear(t){return ob(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(qn(n.year)&&!qn(t.year)&&n.month>6?t.month--:!qn(n.year)&&qn(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const vu=1723856,ab=1824665,yu=5500;function Gi(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function $u(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Gi(e,n,1,1))/30),o=t+1-Gi(e,n,r,1);return[n,r,o]}function ib(e){return Math.floor(e%4/3)}function lb(e,t){return t%13!==0?30:ib(e)+5}class _u{fromJulianDay(t){let[n,r,o]=$u(vu,t),a="AM";return n<=0&&(a="AA",n+=yu),new Ae(this,a,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=yu),Gi(vu,n,t.month,t.day)}getDaysInMonth(t){return lb(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+ib(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class C4 extends _u{fromJulianDay(t){let[n,r,o]=$u(vu,t);return n+=yu,new Ae(this,"AA",n,r,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class k4 extends _u{fromJulianDay(t){let[n,r,o]=$u(ab,t),a="CE";return n<=0&&(a="BCE",n=1-n),new Ae(this,a,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Gi(ab,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),lb(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 sb(e){switch(e){case"buddhist":return new g4;case"ethiopic":return new _u;case"ethioaa":return new C4;case"coptic":return new k4;case"hebrew":return new T4;case"indian":return new v4;case"islamic-civil":return new hu;case"islamic-tbla":return new $4;case"islamic-umalqura":return new x4;case"japanese":return new m4;case"persian":return new b4;case"roc":return new h4;case"gregory":default:return new ot}}let xu=new Map;class cb{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 O4()&&(this.resolvedHourCycle||(this.resolvedHourCycle=M4(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=ub(t,n),this.options=n}}const A4={true:{ja:"h11"},false:{}};function ub(e,t={}){if(typeof t.hour12=="boolean"&&I4()){t={...t};let o=A4[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(xu.has(n))return xu.get(n);let r=new Intl.DateTimeFormat(e,t);return xu.set(n,r),r}let wu=null;function I4(){return wu==null&&(wu=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),wu}let Eu=null;function O4(){return Eu==null&&(Eu=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Eu}function M4(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=ub(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")}const db=7e3;let Go=null;function Mr(e,t="assertive",n=db){Go||(Go=new L4),Go.announce(e,t,n)}function F4(e){Go&&Go.clear(e)}class L4{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=db){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)}}const N4=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),z4=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function R4(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 N4.has(n.script)}let t=e.split("-")[0];return z4.has(t)}const K4=Symbol.for("react-aria.i18n.locale");function fb(){let e=typeof window<"u"&&window[K4]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:R4(e)?"rtl":"ltr"}}let Su=fb(),Yo=new Set;function pb(){Su=fb();for(let e of Yo)e(Su)}function V4(){let e=li(),[t,n]=c.useState(Su);return c.useEffect(()=>(Yo.size===0&&window.addEventListener("languagechange",pb),Yo.add(n),()=>{Yo.delete(n),Yo.size===0&&window.removeEventListener("languagechange",pb)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const B4=D.default.createContext(null);function at(){let e=V4();return c.useContext(B4)||e}const j4=Symbol.for("react-aria.i18n.locale"),U4=Symbol.for("react-aria.i18n.strings");let Fr;class Yi{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=W4(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[j4];if(Fr===void 0){let o=window[U4];if(!o)return null;Fr={};for(let a in o)Fr[a]=new Yi({[n]:o[a]},n)}let r=Fr==null?void 0:Fr[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=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function W4(e,t,n="en-US"){if(t[e])return t[e];let r=H4(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function H4(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const mb=new Map,gb=new Map;class G4{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=mb.get(a);i||(i=new Intl.PluralRules(this.locale,{type:r}),mb.set(a,i));let l=i.select(t);return o=n[l]||n.other,typeof o=="function"?o():o}number(t){let n=gb.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),gb.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}}const hb=new WeakMap;function Y4(e){let t=hb.get(e);return t||(t=new Yi(e),hb.set(e,t)),t}function q4(e,t){return t&&Yi.getGlobalDictionaryForPackage(t)||Y4(e)}function _t(e,t){let{locale:n}=at(),r=q4(e,t);return c.useMemo(()=>new G4(n,r),[n,r])}function Xn(e){e=Cg(e??{},X4);let{locale:t}=at();return c.useMemo(()=>new cb(t,e),[t,e])}function X4(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}let Du=new Map,Pu=!1;try{Pu=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let qi=!1;try{qi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const bb={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Xi{format(t){let n="";if(!Pu&&this.options.signDisplay!=null?n=Z4(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!qi){var r;let{unit:o,unitDisplay:a="short",locale:i}=this.resolvedOptions();if(!o)return n;let l=(r=bb[o])===null||r===void 0?void 0:r[a];n+=l[i]||l.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!Pu&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!qi&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=J4(t,n),this.options=n}}function J4(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!qi){var r;let{unit:i,unitDisplay:l="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=bb[i])===null||r===void 0)&&r[l]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((i,l)=>i[0]<l[0]?-1:1).join():"");if(Du.has(o))return Du.get(o);let a=new Intl.NumberFormat(e,t);return Du.set(o,a),a}function Z4(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 Q4=new RegExp("^.*\\(.*\\).*$"),e8=["latn","arab","hanidec"];class vb{parse(t){return Tu(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Tu(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Tu(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const yb=new Map;function Tu(e,t,n){let r=$b(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of e8)if(o!==r.options.numberingSystem){let a=$b(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(a.isValidPartialNumber(n))return a}}return r}function $b(e,t){let n=e+(t?Object.entries(t).sort((o,a)=>o[0]<a[0]?-1:1).join():""),r=yb.get(n);return r||(r=new t8(e,t),yb.set(n,r)),r}class t8{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=Ji(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 i=n.indexOf("-");n=n.replace("-","");let l=n.indexOf(".");l===-1&&(l=n.length),n=n.replace(".",""),l-2===0?n=`0.${n}`:l-2===-1?n=`0.0${n}`:l-2===-2?n="0.00":n=`${n.slice(0,l-2)}.${n.slice(l-2)}`,i>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var o,a;let i={...this.options,style:"decimal",minimumFractionDigits:Math.min(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)+2,20),maximumFractionDigits:Math.min(((a=this.options.maximumFractionDigits)!==null&&a!==void 0?a:0)+2,20)};return new vb(this.locale,i).parse(new Xi(this.locale,i).format(r))}return this.options.currencySign==="accounting"&&Q4.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=Ji(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=Ji(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=Ji(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=r8(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 _b=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),n8=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function r8(e,t,n,r){var o,a,i,l;let s=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),u=s.formatToParts(-10000.111),d=s.formatToParts(10000.111),f=n8.map(L=>s.formatToParts(L));var m;let g=(m=(o=u.find(L=>L.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&m!==void 0?m:"-",h=(a=d.find(L=>L.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 v=(i=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(L=>L.type==="decimal"))===null||i===void 0?void 0:i.value,_=(l=u.find(L=>L.type==="group"))===null||l===void 0?void 0:l.value,y=u.filter(L=>!_b.has(L.type)).map(L=>xb(L.value)),w=f.flatMap(L=>L.filter(x=>!_b.has(x.type)).map(x=>xb(x.value))),S=[...new Set([...y,...w])].sort((L,x)=>x.length-L.length),P=S.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${S.join("|")}|[\\p{White_Space}]`,"gu"),T=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),M=new Map(T.map((L,x)=>[L,x])),$=new RegExp(`[${T.join("")}]`,"g");return{minusSign:g,plusSign:h,decimal:v,group:_,literals:P,numeral:$,index:L=>String(M.get(L))}}function Ji(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function xb(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function wb(e={}){let{locale:t}=at();return c.useMemo(()=>new Xi(t,e),[t,e])}let Cu=new Map;function Zi(e){let{locale:t}=at(),n=t+(e?Object.entries(e).sort((o,a)=>o[0]<a[0]?-1:1).join():"");if(Cu.has(n))return Cu.get(n);let r=new Intl.Collator(t,e);return Cu.set(n,r),r}function o8(e){let t=Zi({usage:"search",...e}),n=c.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=c.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=c.useCallback((a,i)=>{if(i.length===0)return!0;a=a.normalize("NFC"),i=i.normalize("NFC");let l=0,s=i.length;for(;l+s<=a.length;l++){let u=a.slice(l,l+s);if(t.compare(i,u)===0)return!0}return!1},[t]);return c.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}function Qi(e){return e&&e.__esModule?e.default:e}var qo={},Eb={};Eb={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var Sb={};Sb={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var Db={};Db={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var Pb={};Pb={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Tb={};Tb={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var Cb={};Cb={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var kb={};kb={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var Ab={};Ab={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var Ib={};Ib={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var Ob={};Ob={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var Mb={};Mb={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var Fb={};Fb={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var Lb={};Lb={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var Nb={};Nb={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var zb={};zb={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var Rb={};Rb={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var Kb={};Kb={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var Vb={};Vb={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var Bb={};Bb={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var jb={};jb={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Ub={};Ub={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var Wb={};Wb={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var Hb={};Hb={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Gb={};Gb={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Yb={};Yb={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var qb={};qb={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var Xb={};Xb={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var Jb={};Jb={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var Zb={};Zb={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var Qb={};Qb={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var ev={};ev={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var tv={};tv={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var nv={};nv={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选定 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选定今天,即 ${e.date}`};var rv={};rv={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`},qo={"ar-AE":Eb,"bg-BG":Sb,"cs-CZ":Db,"da-DK":Pb,"de-DE":Tb,"el-GR":Cb,"en-US":kb,"es-ES":Ab,"et-EE":Ib,"fi-FI":Ob,"fr-FR":Mb,"he-IL":Fb,"hr-HR":Lb,"hu-HU":Nb,"it-IT":zb,"ja-JP":Rb,"ko-KR":Kb,"lt-LT":Vb,"lv-LV":Bb,"nb-NO":jb,"nl-NL":Ub,"pl-PL":Wb,"pt-BR":Hb,"pt-PT":Gb,"ro-RO":Yb,"ru-RU":qb,"sk-SK":Xb,"sl-SI":Jb,"sr-SP":Zb,"sv-SE":Qb,"tr-TR":ev,"uk-UA":tv,"zh-CN":nv,"zh-TW":rv};const ku=new WeakMap;function Xo(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function a8(e){let t=_t(Qi(qo)),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=e.value;let o=Xn({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Xo(n)||Xo(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return c.useMemo(()=>{if(!a&&n&&r)if(Oe(n,r)){let i=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:i})}else{let i=Iu(o,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:i})}return""},[n,r,a,e.timeZone,t,o])}function Au(e,t,n,r){let o=_t(Qi(qo)),a=Xo(e)||Xo(t),i=Xn({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),l=Xn({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return c.useMemo(()=>{if(Oe(e,Gn(e))){if(Oe(t,Li(e)))return i.format(e.toDate(n));if(Oe(t,Li(t)))return r?Iu(i,o,e,t,n):i.formatRange(e.toDate(n),t.toDate(n))}return r?Iu(l,o,e,t,n):l.formatRange(e.toDate(n),t.toDate(n))},[e,t,i,l,o,n,r])}function Iu(e,t,n,r,o){let a=e.formatRangeToParts(n.toDate(o),r.toDate(o)),i=-1;for(let u=0;u<a.length;u++){let d=a[u];if(d.source==="shared"&&d.type==="literal")i=u;else if(d.source==="endRange")break}let l="",s="";for(let u=0;u<a.length;u++)u<i?l+=a[u].value:u>i&&(s+=a[u].value);return t.format("dateRange",{startDate:l,endDate:s})}function ov(e,t){let n=_t(Qi(qo)),r=$n(e),o=Au(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=Au(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Eg(()=>{t.isFocused||Mr(a)},[a]);let i=a8(t);Eg(()=>{i&&Mr(i,"polite",4e3)},[i]);let l=To([!!e.errorMessage,e.validationState]);ku.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:l,selectedDateDescription:i});let[s,u]=c.useState(!1),d=e.isDisabled||t.isNextVisibleRangeInvalid();d&&s&&(u(!1),t.setFocused(!0));let[f,m]=c.useState(!1),g=e.isDisabled||t.isPreviousVisibleRangeInvalid();g&&f&&(m(!1),t.setFocused(!0));let h=$r({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:fe(r,h,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:d,onFocusChange:u},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:g,onFocusChange:m},errorMessageProps:{id:l},title:o}}function i8(e,t){return ov(e,t)}function l8(e,t,n){let r=ov(e,t),o=c.useRef(!1),a=c.useRef(typeof window<"u"?window:null);_r(a,"pointerdown",l=>{o.current=l.width===0&&l.height===0});let i=l=>{if(o.current){o.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let s=l.target,u=document.getElementById(r.calendarProps.id);u&&u.contains(document.activeElement)&&(!u.contains(s)||!s.closest('button, [role="button"]'))&&t.selectFocusedDate()};return _r(a,"pointerup",i),_r(a,"pointercancel",i),r.calendarProps.onBlur=l=>{(!l.relatedTarget||!n.current.contains(l.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},_r(n,"touchmove",l=>{t.isDragging&&l.preventDefault()},{passive:!1,capture:!0}),r}function s8(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:o}=at(),a=g=>{switch(g.key){case"Enter":case" ":g.preventDefault(),t.selectFocusedDate();break;case"PageUp":g.preventDefault(),g.stopPropagation(),t.focusPreviousSection(g.shiftKey);break;case"PageDown":g.preventDefault(),g.stopPropagation(),t.focusNextSection(g.shiftKey);break;case"End":g.preventDefault(),g.stopPropagation(),t.focusSectionEnd();break;case"Home":g.preventDefault(),g.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":g.preventDefault(),g.stopPropagation(),o==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":g.preventDefault(),g.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":g.preventDefault(),g.stopPropagation(),o==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":g.preventDefault(),g.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(g.preventDefault(),t.setAnchorDate(null));break}},i=Au(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:s}=ku.get(t),u=$r({"aria-label":[l,i].filter(Boolean).join(", "),"aria-labelledby":s}),d=Xn({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:f}=at(),m=c.useMemo(()=>{let g=Vo(Ko(t.timeZone),f);return[...new Array(7).keys()].map(h=>{let v=g.add({days:h}).toDate(t.timeZone);return d.format(v)})},[f,t.timeZone,d]);return{gridProps:fe(u,{role:"grid","aria-readonly":t.isReadOnly||null,"aria-disabled":t.isDisabled||null,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:a,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:m}}function c8(e,t,n){let{date:r,isDisabled:o}=e,{errorMessageId:a,selectedDateDescription:i}=ku.get(t),l=_t(Qi(qo)),s=Xn({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Xo(r),timeZone:t.timeZone}),u=t.isSelected(r),d=t.isCellFocused(r);o=o||t.isCellDisabled(r);let f=t.isCellUnavailable(r),m=!o&&!f,g=t.validationState==="invalid"&&("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&Oe(t.value,r));g&&(u=!0),r=Cg(r,nu);let h=c.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),b=jk(r,t.timeZone),v=c.useMemo(()=>{let x="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(Oe(r,t.value.start)||Oe(r,t.value.end))&&(x=i+", "),x+=s.format(h),b?x=l.format(u?"todayDateSelected":"todayDate",{date:x}):u&&(x=l.format("dateSelected",{date:x})),t.minValue&&Oe(r,t.minValue)?x+=", "+l.format("minimumDate"):t.maxValue&&Oe(r,t.maxValue)&&(x+=", "+l.format("maximumDate")),x},[s,h,l,u,b,r,t,i]),_="";"anchorDate"in t&&d&&!t.isReadOnly&&m&&(t.anchorDate?_=l.format("finishRangeSelectionPrompt"):_=l.format("startRangeSelectionPrompt"));let y=Cc(_),w=c.useRef(!1),S=c.useRef(!1),P=c.useRef(null),{pressProps:T,isPressed:M}=wr({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!m||t.isReadOnly,onPressStart(x){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(x.pointerType==="mouse"||x.pointerType==="touch")){if(t.highlightedRange&&!g){if(Oe(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),S.current=!0;return}else if(Oe(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),S.current=!0;return}}let R=()=>{t.setDragging(!0),P.current=null,t.selectDate(r),t.setFocusedDate(r),w.current=!0};x.pointerType==="touch"?P.current=setTimeout(R,200):R()}},onPressEnd(){S.current=!1,w.current=!1,clearTimeout(P.current),P.current=null},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(x){if(!t.isReadOnly&&("anchorDate"in t&&P.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(S.current)t.setAnchorDate(r);else if(t.anchorDate&&!w.current)t.selectDate(r),t.setFocusedDate(r);else if(x.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let R=r.add({days:1});t.isInvalid(R)&&(R=r.subtract({days:1})),t.isInvalid(R)||t.setFocusedDate(R)}else x.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),$=null;o||($=Oe(r,t.focusedDate)?0:-1),c.useEffect(()=>{d&&n.current&&(It(n.current),xi()!=="pointer"&&document.activeElement===n.current&&kc(n.current,{containingElement:Pc(n.current)}))},[d,n]);let k=Xn({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),L=c.useMemo(()=>k.formatToParts(h).find(x=>x.type==="day").value,[k,h]);return{cellProps:{role:"gridcell","aria-disabled":!m||null,"aria-selected":u||null,"aria-invalid":g||null},buttonProps:fe(T,{onFocus(){o||t.setFocusedDate(r)},tabIndex:$,role:"button","aria-disabled":!m||null,"aria-label":v,"aria-invalid":g||null,"aria-describedby":[g?a:null,y["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(x){"highlightDate"in t&&(x.pointerType!=="touch"||t.isDragging)&&m&&t.highlightDate(r)},onPointerDown(x){"releasePointerCapture"in x.target&&x.target.releasePointerCapture(x.pointerId)},onContextMenu(x){x.preventDefault()}}),isPressed:M,isFocused:d,isSelected:u,isDisabled:o,isUnavailable:f,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:g,formattedDate:L}}const u8=z.default.td`
|
|
1023
|
+
`;function Pr(e,t){return e-t*Math.floor(e/t)}const $h=1721426;function Hn(e,t,n,r){t=Ro(e,t);let o=t-1,a=-2;return n<=2?a=0:En(t)&&(a=-1),$h-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+a+r)}function En(e){return e%4===0&&(e%100!==0||e%400===0)}function Ro(e,t){return e==="BC"?1-t:t}function Mi(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const Kk={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-$h,o=Math.floor(r/146097),a=Pr(r,146097),i=Math.floor(a/36524),l=Pr(a,36524),s=Math.floor(l/1461),u=Pr(l,1461),d=Math.floor(u/365),f=o*400+i*100+s*4+d+(i!==4&&d!==4?1:0),[m,g]=Mi(f),h=n-Hn(m,g,1,1),b=2;n<Hn(m,g,3,1)?b=0:En(g)&&(b=1);let v=Math.floor(((h+b)*12+373)/367),_=n-Hn(m,g,v,1)+1;return new Ae(m,g,v,_)}toJulianDay(t){return Hn(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return Kk[En(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return En(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"}}const Vk={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Oe(e,t){return t=ze(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Bk(e,t){return t=ze(t,e.calendar),e=Gn(e),t=Gn(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function nu(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function jk(e,t){return Oe(e,Ko(t))}function Fi(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-Yk(t))%7;return r<0&&(r+=7),r}function Uk(e){return en(Date.now(),e)}function Ko(e){return $t(Uk(e))}function _h(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function xh(e,t){return wh(e)-wh(t)}function wh(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let ru=null;function Eh(){return ru==null&&(ru=new Intl.DateTimeFormat().resolvedOptions().timeZone),ru}function Gn(e){return e.subtract({days:e.day-1})}function Li(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function Wk(e){return Gn(e.subtract({months:e.month-1}))}function Vo(e,t){let n=Fi(e,t);return e.subtract({days:n})}function Hk(e,t){return Vo(e,t).add({days:6})}const Sh=new Map;function Gk(e){if(Intl.Locale){let n=Sh.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&Sh.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function Yk(e){let t=Gk(e);return t&&Vk[t]||0}function qk(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Fi(Gn(e),t)+n)/7)}function ou(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function au(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Tr(e){e=ze(e,new ot);let t=Ro(e.era,e.year);return Dh(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Dh(e,t,n,r,o,a,i){let l=new Date;return l.setUTCHours(r,o,a,i),l.setUTCFullYear(e,t-1,n),l.getTime()}function iu(e,t){if(t==="UTC")return 0;if(e>0&&t===Eh())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:a,minute:i,second:l}=Th(e,t);return Dh(n,r,o,a,i,l,0)-Math.floor(e/1e3)*1e3}const Ph=new Map;function Th(e,t){let n=Ph.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"}),Ph.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 Ch=864e5;function Xk(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>Jk(e,t,a))}function Jk(e,t,n){let r=Th(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 Qt(e,t,n="compatible"){let r=Cr(e);if(t==="UTC")return Tr(r);if(t===Eh()&&n==="compatible"){r=ze(r,new ot);let s=new Date,u=Ro(r.era,r.year);return s.setFullYear(u,r.month-1,r.day),s.setHours(r.hour,r.minute,r.second,r.millisecond),s.getTime()}let o=Tr(r),a=iu(o-Ch,t),i=iu(o+Ch,t),l=Xk(r,t,o-a,o-i);if(l.length===1)return l[0];if(l.length>1)switch(n){case"compatible":case"earlier":return l[0];case"later":return l[l.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 kh(e,t,n="compatible"){return new Date(Qt(e,t,n))}function en(e,t){let n=iu(e,t),r=new Date(e+n),o=r.getUTCFullYear(),a=r.getUTCMonth()+1,i=r.getUTCDate(),l=r.getUTCHours(),s=r.getUTCMinutes(),u=r.getUTCSeconds(),d=r.getUTCMilliseconds();return new Uo(o,a,i,t,n,l,s,u,d)}function $t(e){return new Ae(e.calendar,e.era,e.year,e.month,e.day)}function Cr(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 Ri(e.calendar,e.era,e.year,e.month,e.day,n,r,o,a)}function ze(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,Yn(r),r}function Zk(e,t,n){if(e instanceof Uo)return e.timeZone===t?e:e4(e,t);let r=Qt(e,t,n);return en(r,t)}function Qk(e){let t=Tr(e)-e.offset;return new Date(t)}function e4(e,t){let n=Tr(e)-e.offset;return ze(en(n,t),e.calendar)}const Bo=36e5;function Ni(e,t){let n=e.copy(),r="hour"in n?Mh(n,t):0;lu(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,su(n),Ah(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,t4(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 s=(a=(i=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(i,n);n.year=o,n.month=s?1:n.calendar.getMonthsInYear(n),n.day=s?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let l=n.calendar.getMonthsInYear(n);return n.month>l&&(n.month=l,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function lu(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function su(e){for(;e.month<1;)lu(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,lu(e,1)}function t4(e){for(;e.day<1;)e.month--,su(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,su(e)}function Ah(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 Yn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Ah(e)}function cu(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function Ih(e,t){return Ni(e,cu(t))}function uu(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),Yn(n),n}function jo(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),Oh(n),n}function n4(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=zi(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=zi(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=zi(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=zi(e.hour,24),t}function Oh(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 zi(e,t){let n=e%t;return n<0&&(n+=t),n}function Mh(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,n4(e)}function Fh(e,t){let n=e.copy();return Mh(n,t),n}function r4(e,t){return Fh(e,cu(t))}function du(e,t,n,r){let o=e.copy();switch(t){case"era":{let l=e.calendar.getEras(),s=l.indexOf(e.era);if(s<0)throw new Error("Invalid era: "+e.era);s=tn(s,n,0,l.length-1,r==null?void 0:r.round),o.era=l[s],Yn(o);break}case"year":var a,i;!((a=(i=o.calendar).isInverseEra)===null||a===void 0)&&a.call(i,o)&&(n=-n),o.year=tn(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=tn(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":o.day=tn(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),Yn(o),o}function fu(e,t,n,r){let o=e.copy();switch(t){case"hour":{let a=e.hour,i=0,l=23;if((r==null?void 0:r.hourCycle)===12){let s=a>=12;i=s?12:0,l=s?23:11}o.hour=tn(a,n,i,l,r==null?void 0:r.round);break}case"minute":o.minute=tn(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":o.second=tn(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":o.millisecond=tn(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function tn(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 Lh(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=Ni(Cr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Qt(o,e.timeZone)}else n=Tr(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=en(n,e.timeZone);return ze(r,e.calendar)}function o4(e,t){return Lh(e,cu(t))}function a4(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=Cr(e),l=ze(jo(i,{hour:o}),new ot),s=[Qt(l,e.timeZone,"earlier"),Qt(l,e.timeZone,"later")].filter(h=>en(h,e.timeZone).day===l.day)[0],u=ze(jo(i,{hour:a}),new ot),d=[Qt(u,e.timeZone,"earlier"),Qt(u,e.timeZone,"later")].filter(h=>en(h,e.timeZone).day===u.day).pop(),f=Tr(e)-e.offset,m=Math.floor(f/Bo),g=f%Bo;return f=tn(m,n,Math.floor(s/Bo),Math.floor(d/Bo),r==null?void 0:r.round)*Bo+g,ze(en(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return fu(e,t,n,r);case"era":case"year":case"month":case"day":{let o=du(Cr(e),t,n,r),a=Qt(o,e.timeZone);return ze(en(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function i4(e,t,n){let r=Cr(e),o=jo(uu(r,t),t);if(o.compare(r)===0)return e;let a=Qt(o,e.timeZone,n);return ze(en(a,e.timeZone),e.calendar)}function Nh(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 zh(e){let t=ze(e,new ot);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Rh(e){return`${zh(e)}T${Nh(e)}`}function l4(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 s4(e){return`${Rh(e)}${l4(e.offset)}[${e.timeZone}]`}function pu(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 c4=new WeakMap;class Ae{copy(){return this.era?new Ae(this.calendar,this.era,this.year,this.month,this.day):new Ae(this.calendar,this.year,this.month,this.day)}add(t){return Ni(this,t)}subtract(t){return Ih(this,t)}set(t){return uu(this,t)}cycle(t,n,r){return du(this,t,n,r)}toDate(t){return kh(this,t)}toString(){return zh(this)}compare(t){return _h(this,t)}constructor(...t){Io(this,c4,{writable:!0,value:void 0});let[n,r,o,a,i]=pu(t);this.calendar=n,this.era=r,this.year=o,this.month=a,this.day=i,Yn(this)}}var u4=new WeakMap;class kr{copy(){return new kr(this.hour,this.minute,this.second,this.millisecond)}add(t){return Fh(this,t)}subtract(t){return r4(this,t)}set(t){return jo(this,t)}cycle(t,n,r){return fu(this,t,n,r)}toString(){return Nh(this)}compare(t){return xh(this,t)}constructor(t=0,n=0,r=0,o=0){Io(this,u4,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=o,Oh(this)}}var d4=new WeakMap;class Ri{copy(){return this.era?new Ri(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Ri(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Ni(this,t)}subtract(t){return Ih(this,t)}set(t){return uu(jo(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return du(this,t,n,r);default:return fu(this,t,n,r)}}toDate(t,n){return kh(this,t,n)}toString(){return Rh(this)}compare(t){let n=_h(this,t);return n===0?xh(this,Cr(t)):n}constructor(...t){Io(this,d4,{writable:!0,value:void 0});let[n,r,o,a,i]=pu(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,Yn(this)}}var f4=new WeakMap;class Uo{copy(){return this.era?new Uo(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Uo(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return Lh(this,t)}subtract(t){return o4(this,t)}set(t,n){return i4(this,t,n)}cycle(t,n,r){return a4(this,t,n,r)}toDate(){return Qk(this)}toString(){return s4(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-Zk(t,this.timeZone).toDate().getTime()}constructor(...t){Io(this,f4,{writable:!0,value:void 0});let[n,r,o,a,i]=pu(t),l=t.shift(),s=t.shift();this.calendar=n,this.era=r,this.year=o,this.month=a,this.day=i,this.timeZone=l,this.offset=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Yn(this)}}const Ar=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],p4=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Ki=[1867,1911,1925,1988,2018],Sn=["meiji","taisho","showa","heisei","reiwa"];function Kh(e){const t=Ar.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?Ar.length-1:t===0?0:t-1}function mu(e){let t=Ki[Sn.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Ae(e.year+t,e.month,e.day)}class m4 extends ot{fromJulianDay(t){let n=super.fromJulianDay(t),r=Kh(n);return new Ae(this,Sn[r],n.year-Ki[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(mu(t))}balanceDate(t){let n=mu(t),r=Kh(n);Sn[r]!==t.era&&(t.era=Sn[r],t.year=n.year-Ki[r]),this.constrainDate(t)}constrainDate(t){let n=Sn.indexOf(t.era),r=p4[n];if(r!=null){let[o,a,i]=r,l=o-Ki[n];t.year=Math.max(1,Math.min(l,t.year)),t.year===l&&(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]=Ar[n];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(a,t.day))}}getEras(){return Sn}getYearsInEra(t){let n=Sn.indexOf(t.era),r=Ar[n],o=Ar[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(mu(t))}getMinimumMonthInYear(t){let n=Vh(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=Vh(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function Vh(e){if(e.year===1){let t=Sn.indexOf(e.era);return Ar[t]}}const Bh=-543;class g4 extends ot{fromJulianDay(t){let n=super.fromJulianDay(t),r=Ro(n.era,n.year);return new Ae(this,r-Bh,n.month,n.day)}toJulianDay(t){return super.toJulianDay(jh(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(jh(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function jh(e){let[t,n]=Mi(e.year+Bh);return new Ae(t,n,e.month,e.day)}const Vi=1911;function Uh(e){return e.era==="minguo"?e.year+Vi:1-e.year+Vi}function Wh(e){let t=e-Vi;return t>0?["minguo",t]:["before_minguo",1-t]}class h4 extends ot{fromJulianDay(t){let n=super.fromJulianDay(t),r=Ro(n.era,n.year),[o,a]=Wh(r);return new Ae(this,o,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Hh(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=Wh(Uh(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Hh(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Vi}constructor(...t){super(...t),this.identifier="roc"}}function Hh(e){let[t,n]=Mi(Uh(e));return new Ae(t,n,e.month,e.day)}const Gh=1948320,Yh=[0,31,62,93,124,155,186,216,246,276,306,336];class b4{fromJulianDay(t){let n=t-Gh,r=1+Math.floor((33*n+3)/12053),o=365*(r-1)+Math.floor((8*r+21)/33),a=n-o,i=a<216?Math.floor(a/31):Math.floor((a-6)/30),l=a-Yh[i]+1;return new Ae(this,r,i+1,l)}toJulianDay(t){let n=Gh-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=Yh[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Pr(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const gu=78,qh=80;class v4 extends ot{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-gu,o=t-Hn(n.era,n.year,1,1),a;o<qh?(r--,a=En(n.year-1)?31:30,o+=a+155+90+10):(a=En(n.year)?31:30,o-=qh);let i,l;if(o<a)i=1,l=o+1;else{let s=o-a;s<155?(i=Math.floor(s/31)+2,l=s%31+1):(s-=155,i=Math.floor(s/30)+7,l=s%30+1)}return new Ae(this,r,i,l)}toJulianDay(t){let n=t.year+gu,[r,o]=Mi(n),a,i;return En(o)?(a=31,i=Hn(r,o,3,21)):(a=30,i=Hn(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&&En(t.year+gu)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Bi=1948440,Xh=1948439,dt=1300,Ir=1600,y4=460322;function ji(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Jh(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+ji(t,r,1,1)))/29.5)+1),a=n-ji(t,r,o,1)+1;return new Ae(e,r,o,a)}function Zh(e){return(14+11*e)%30<11}class hu{fromJulianDay(t){return Jh(this,Bi,t)}toJulianDay(t){return ji(Bi,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&Zh(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return Zh(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class $4 extends hu{fromJulianDay(t){return Jh(this,Xh,t)}toJulianDay(t){return ji(Xh,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const _4="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let bu,Or;function Ui(e){return y4+Or[e-dt]}function Wo(e,t){let n=e-dt,r=1<<11-(t-1);return bu[n]&r?30:29}function Qh(e,t){let n=Ui(e);for(let r=1;r<t;r++)n+=Wo(e,r);return n}function eb(e){return Or[e+1-dt]-Or[e-dt]}class x4 extends hu{fromJulianDay(t){let n=t-Bi,r=Ui(dt),o=Ui(Ir);if(n<r||n>o)return super.fromJulianDay(t);{let a=dt-1,i=1,l=1;for(;l>0;){a++,l=n-Ui(a)+1;let s=eb(a);if(l===s){i=12;break}else if(l<s){let u=Wo(a,i);for(i=1;l>u;)l-=u,i++,u=Wo(a,i);break}}return new Ae(this,a,i,n-Qh(a,i)+1)}}toJulianDay(t){return t.year<dt||t.year>Ir?super.toJulianDay(t):Bi+Qh(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<dt||t.year>Ir?super.getDaysInMonth(t):Wo(t.year,t.month)}getDaysInYear(t){return t.year<dt||t.year>Ir?super.getDaysInYear(t):eb(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",bu||(bu=new Uint16Array(Uint8Array.from(atob(_4),t=>t.charCodeAt(0)).buffer)),!Or){Or=new Uint32Array(Ir-dt+1);let t=0;for(let n=dt;n<=Ir;n++){Or[n-dt]=t;for(let r=1;r<=12;r++)t+=Wo(n,r)}}}}const tb=347997,nb=1080,rb=24*nb,w4=29,E4=12*nb+793,S4=w4*rb+E4;function qn(e){return Pr(e*7+1,19)<7}function Wi(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Pr(3*(r+1),7)<3&&(r+=1),r}function D4(e){let t=Wi(e-1),n=Wi(e);return Wi(e+1)-n===356?2:n-t===382?1:0}function Ho(e){return Wi(e)+D4(e)}function ob(e){return Ho(e+1)-Ho(e)}function P4(e){let t=ob(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Hi(e,t){if(t>=6&&!qn(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=P4(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?qn(e)?30:0:30}class T4{fromJulianDay(t){let n=t-tb,r=n*rb/S4,o=Math.floor((19*r+234)/235)+1,a=Ho(o),i=Math.floor(n-a);for(;i<1;)o--,a=Ho(o),i=Math.floor(n-a);let l=1,s=0;for(;s<i;)s+=Hi(o,l),l++;l--,s-=Hi(o,l);let u=i-s;return new Ae(this,o,l,u)}toJulianDay(t){let n=Ho(t.year);for(let r=1;r<t.month;r++)n+=Hi(t.year,r);return n+t.day+tb}getDaysInMonth(t){return Hi(t.year,t.month)}getMonthsInYear(t){return qn(t.year)?13:12}getDaysInYear(t){return ob(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(qn(n.year)&&!qn(t.year)&&n.month>6?t.month--:!qn(n.year)&&qn(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const vu=1723856,ab=1824665,yu=5500;function Gi(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function $u(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Gi(e,n,1,1))/30),o=t+1-Gi(e,n,r,1);return[n,r,o]}function ib(e){return Math.floor(e%4/3)}function lb(e,t){return t%13!==0?30:ib(e)+5}class _u{fromJulianDay(t){let[n,r,o]=$u(vu,t),a="AM";return n<=0&&(a="AA",n+=yu),new Ae(this,a,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=yu),Gi(vu,n,t.month,t.day)}getDaysInMonth(t){return lb(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+ib(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class C4 extends _u{fromJulianDay(t){let[n,r,o]=$u(vu,t);return n+=yu,new Ae(this,"AA",n,r,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class k4 extends _u{fromJulianDay(t){let[n,r,o]=$u(ab,t),a="CE";return n<=0&&(a="BCE",n=1-n),new Ae(this,a,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Gi(ab,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),lb(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 sb(e){switch(e){case"buddhist":return new g4;case"ethiopic":return new _u;case"ethioaa":return new C4;case"coptic":return new k4;case"hebrew":return new T4;case"indian":return new v4;case"islamic-civil":return new hu;case"islamic-tbla":return new $4;case"islamic-umalqura":return new x4;case"japanese":return new m4;case"persian":return new b4;case"roc":return new h4;case"gregory":default:return new ot}}let xu=new Map;class cb{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 O4()&&(this.resolvedHourCycle||(this.resolvedHourCycle=M4(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=ub(t,n),this.options=n}}const A4={true:{ja:"h11"},false:{}};function ub(e,t={}){if(typeof t.hour12=="boolean"&&I4()){t={...t};let o=A4[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(xu.has(n))return xu.get(n);let r=new Intl.DateTimeFormat(e,t);return xu.set(n,r),r}let wu=null;function I4(){return wu==null&&(wu=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),wu}let Eu=null;function O4(){return Eu==null&&(Eu=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Eu}function M4(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=ub(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")}const db=7e3;let Go=null;function Mr(e,t="assertive",n=db){Go||(Go=new L4),Go.announce(e,t,n)}function F4(e){Go&&Go.clear(e)}class L4{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=db){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)}}const N4=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),z4=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function R4(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 N4.has(n.script)}let t=e.split("-")[0];return z4.has(t)}const K4=Symbol.for("react-aria.i18n.locale");function fb(){let e=typeof window<"u"&&window[K4]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:R4(e)?"rtl":"ltr"}}let Su=fb(),Yo=new Set;function pb(){Su=fb();for(let e of Yo)e(Su)}function V4(){let e=li(),[t,n]=c.useState(Su);return c.useEffect(()=>(Yo.size===0&&window.addEventListener("languagechange",pb),Yo.add(n),()=>{Yo.delete(n),Yo.size===0&&window.removeEventListener("languagechange",pb)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const B4=D.default.createContext(null);function at(){let e=V4();return c.useContext(B4)||e}const j4=Symbol.for("react-aria.i18n.locale"),U4=Symbol.for("react-aria.i18n.strings");let Fr;class Yi{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=W4(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[j4];if(Fr===void 0){let o=window[U4];if(!o)return null;Fr={};for(let a in o)Fr[a]=new Yi({[n]:o[a]},n)}let r=Fr==null?void 0:Fr[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=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function W4(e,t,n="en-US"){if(t[e])return t[e];let r=H4(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function H4(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const mb=new Map,gb=new Map;class G4{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=mb.get(a);i||(i=new Intl.PluralRules(this.locale,{type:r}),mb.set(a,i));let l=i.select(t);return o=n[l]||n.other,typeof o=="function"?o():o}number(t){let n=gb.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),gb.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}}const hb=new WeakMap;function Y4(e){let t=hb.get(e);return t||(t=new Yi(e),hb.set(e,t)),t}function q4(e,t){return t&&Yi.getGlobalDictionaryForPackage(t)||Y4(e)}function _t(e,t){let{locale:n}=at(),r=q4(e,t);return c.useMemo(()=>new G4(n,r),[n,r])}function Xn(e){e=Cg(e??{},X4);let{locale:t}=at();return c.useMemo(()=>new cb(t,e),[t,e])}function X4(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}let Du=new Map,Pu=!1;try{Pu=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let qi=!1;try{qi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const bb={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Xi{format(t){let n="";if(!Pu&&this.options.signDisplay!=null?n=Z4(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!qi){var r;let{unit:o,unitDisplay:a="short",locale:i}=this.resolvedOptions();if(!o)return n;let l=(r=bb[o])===null||r===void 0?void 0:r[a];n+=l[i]||l.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!Pu&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!qi&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=J4(t,n),this.options=n}}function J4(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!qi){var r;let{unit:i,unitDisplay:l="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=bb[i])===null||r===void 0)&&r[l]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((i,l)=>i[0]<l[0]?-1:1).join():"");if(Du.has(o))return Du.get(o);let a=new Intl.NumberFormat(e,t);return Du.set(o,a),a}function Z4(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 Q4=new RegExp("^.*\\(.*\\).*$"),e8=["latn","arab","hanidec"];class vb{parse(t){return Tu(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Tu(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Tu(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const yb=new Map;function Tu(e,t,n){let r=$b(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of e8)if(o!==r.options.numberingSystem){let a=$b(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(a.isValidPartialNumber(n))return a}}return r}function $b(e,t){let n=e+(t?Object.entries(t).sort((o,a)=>o[0]<a[0]?-1:1).join():""),r=yb.get(n);return r||(r=new t8(e,t),yb.set(n,r)),r}class t8{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=Ji(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 i=n.indexOf("-");n=n.replace("-","");let l=n.indexOf(".");l===-1&&(l=n.length),n=n.replace(".",""),l-2===0?n=`0.${n}`:l-2===-1?n=`0.0${n}`:l-2===-2?n="0.00":n=`${n.slice(0,l-2)}.${n.slice(l-2)}`,i>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var o,a;let i={...this.options,style:"decimal",minimumFractionDigits:Math.min(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)+2,20),maximumFractionDigits:Math.min(((a=this.options.maximumFractionDigits)!==null&&a!==void 0?a:0)+2,20)};return new vb(this.locale,i).parse(new Xi(this.locale,i).format(r))}return this.options.currencySign==="accounting"&&Q4.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=Ji(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=Ji(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=Ji(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=r8(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 _b=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),n8=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function r8(e,t,n,r){var o,a,i,l;let s=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),u=s.formatToParts(-10000.111),d=s.formatToParts(10000.111),f=n8.map(F=>s.formatToParts(F));var m;let g=(m=(o=u.find(F=>F.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&m!==void 0?m:"-",h=(a=d.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 v=(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,_=(l=u.find(F=>F.type==="group"))===null||l===void 0?void 0:l.value,y=u.filter(F=>!_b.has(F.type)).map(F=>xb(F.value)),w=f.flatMap(F=>F.filter(x=>!_b.has(x.type)).map(x=>xb(x.value))),S=[...new Set([...y,...w])].sort((F,x)=>x.length-F.length),P=S.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${S.join("|")}|[\\p{White_Space}]`,"gu"),T=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),M=new Map(T.map((F,x)=>[F,x])),$=new RegExp(`[${T.join("")}]`,"g");return{minusSign:g,plusSign:h,decimal:v,group:_,literals:P,numeral:$,index:F=>String(M.get(F))}}function Ji(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function xb(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function wb(e={}){let{locale:t}=at();return c.useMemo(()=>new Xi(t,e),[t,e])}let Cu=new Map;function Zi(e){let{locale:t}=at(),n=t+(e?Object.entries(e).sort((o,a)=>o[0]<a[0]?-1:1).join():"");if(Cu.has(n))return Cu.get(n);let r=new Intl.Collator(t,e);return Cu.set(n,r),r}function o8(e){let t=Zi({usage:"search",...e}),n=c.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=c.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=c.useCallback((a,i)=>{if(i.length===0)return!0;a=a.normalize("NFC"),i=i.normalize("NFC");let l=0,s=i.length;for(;l+s<=a.length;l++){let u=a.slice(l,l+s);if(t.compare(i,u)===0)return!0}return!1},[t]);return c.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}function Qi(e){return e&&e.__esModule?e.default:e}var qo={},Eb={};Eb={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var Sb={};Sb={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var Db={};Db={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var Pb={};Pb={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Tb={};Tb={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var Cb={};Cb={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var kb={};kb={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var Ab={};Ab={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var Ib={};Ib={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var Ob={};Ob={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var Mb={};Mb={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var Fb={};Fb={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var Lb={};Lb={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var Nb={};Nb={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var zb={};zb={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var Rb={};Rb={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var Kb={};Kb={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var Vb={};Vb={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var Bb={};Bb={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var jb={};jb={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Ub={};Ub={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var Wb={};Wb={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var Hb={};Hb={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Gb={};Gb={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Yb={};Yb={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var qb={};qb={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var Xb={};Xb={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var Jb={};Jb={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var Zb={};Zb={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var Qb={};Qb={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var ev={};ev={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var tv={};tv={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var nv={};nv={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选定 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选定今天,即 ${e.date}`};var rv={};rv={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`},qo={"ar-AE":Eb,"bg-BG":Sb,"cs-CZ":Db,"da-DK":Pb,"de-DE":Tb,"el-GR":Cb,"en-US":kb,"es-ES":Ab,"et-EE":Ib,"fi-FI":Ob,"fr-FR":Mb,"he-IL":Fb,"hr-HR":Lb,"hu-HU":Nb,"it-IT":zb,"ja-JP":Rb,"ko-KR":Kb,"lt-LT":Vb,"lv-LV":Bb,"nb-NO":jb,"nl-NL":Ub,"pl-PL":Wb,"pt-BR":Hb,"pt-PT":Gb,"ro-RO":Yb,"ru-RU":qb,"sk-SK":Xb,"sl-SI":Jb,"sr-SP":Zb,"sv-SE":Qb,"tr-TR":ev,"uk-UA":tv,"zh-CN":nv,"zh-TW":rv};const ku=new WeakMap;function Xo(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function a8(e){let t=_t(Qi(qo)),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=e.value;let o=Xn({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Xo(n)||Xo(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return c.useMemo(()=>{if(!a&&n&&r)if(Oe(n,r)){let i=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:i})}else{let i=Iu(o,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:i})}return""},[n,r,a,e.timeZone,t,o])}function Au(e,t,n,r){let o=_t(Qi(qo)),a=Xo(e)||Xo(t),i=Xn({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),l=Xn({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return c.useMemo(()=>{if(Oe(e,Gn(e))){if(Oe(t,Li(e)))return i.format(e.toDate(n));if(Oe(t,Li(t)))return r?Iu(i,o,e,t,n):i.formatRange(e.toDate(n),t.toDate(n))}return r?Iu(l,o,e,t,n):l.formatRange(e.toDate(n),t.toDate(n))},[e,t,i,l,o,n,r])}function Iu(e,t,n,r,o){let a=e.formatRangeToParts(n.toDate(o),r.toDate(o)),i=-1;for(let u=0;u<a.length;u++){let d=a[u];if(d.source==="shared"&&d.type==="literal")i=u;else if(d.source==="endRange")break}let l="",s="";for(let u=0;u<a.length;u++)u<i?l+=a[u].value:u>i&&(s+=a[u].value);return t.format("dateRange",{startDate:l,endDate:s})}function ov(e,t){let n=_t(Qi(qo)),r=$n(e),o=Au(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=Au(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Eg(()=>{t.isFocused||Mr(a)},[a]);let i=a8(t);Eg(()=>{i&&Mr(i,"polite",4e3)},[i]);let l=To([!!e.errorMessage,e.validationState]);ku.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:l,selectedDateDescription:i});let[s,u]=c.useState(!1),d=e.isDisabled||t.isNextVisibleRangeInvalid();d&&s&&(u(!1),t.setFocused(!0));let[f,m]=c.useState(!1),g=e.isDisabled||t.isPreviousVisibleRangeInvalid();g&&f&&(m(!1),t.setFocused(!0));let h=$r({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:fe(r,h,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:d,onFocusChange:u},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:g,onFocusChange:m},errorMessageProps:{id:l},title:o}}function i8(e,t){return ov(e,t)}function l8(e,t,n){let r=ov(e,t),o=c.useRef(!1),a=c.useRef(typeof window<"u"?window:null);_r(a,"pointerdown",l=>{o.current=l.width===0&&l.height===0});let i=l=>{if(o.current){o.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let s=l.target,u=document.getElementById(r.calendarProps.id);u&&u.contains(document.activeElement)&&(!u.contains(s)||!s.closest('button, [role="button"]'))&&t.selectFocusedDate()};return _r(a,"pointerup",i),_r(a,"pointercancel",i),r.calendarProps.onBlur=l=>{(!l.relatedTarget||!n.current.contains(l.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},_r(n,"touchmove",l=>{t.isDragging&&l.preventDefault()},{passive:!1,capture:!0}),r}function s8(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:o}=at(),a=g=>{switch(g.key){case"Enter":case" ":g.preventDefault(),t.selectFocusedDate();break;case"PageUp":g.preventDefault(),g.stopPropagation(),t.focusPreviousSection(g.shiftKey);break;case"PageDown":g.preventDefault(),g.stopPropagation(),t.focusNextSection(g.shiftKey);break;case"End":g.preventDefault(),g.stopPropagation(),t.focusSectionEnd();break;case"Home":g.preventDefault(),g.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":g.preventDefault(),g.stopPropagation(),o==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":g.preventDefault(),g.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":g.preventDefault(),g.stopPropagation(),o==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":g.preventDefault(),g.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(g.preventDefault(),t.setAnchorDate(null));break}},i=Au(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:s}=ku.get(t),u=$r({"aria-label":[l,i].filter(Boolean).join(", "),"aria-labelledby":s}),d=Xn({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:f}=at(),m=c.useMemo(()=>{let g=Vo(Ko(t.timeZone),f);return[...new Array(7).keys()].map(h=>{let v=g.add({days:h}).toDate(t.timeZone);return d.format(v)})},[f,t.timeZone,d]);return{gridProps:fe(u,{role:"grid","aria-readonly":t.isReadOnly||null,"aria-disabled":t.isDisabled||null,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:a,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:m}}function c8(e,t,n){let{date:r,isDisabled:o}=e,{errorMessageId:a,selectedDateDescription:i}=ku.get(t),l=_t(Qi(qo)),s=Xn({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Xo(r),timeZone:t.timeZone}),u=t.isSelected(r),d=t.isCellFocused(r);o=o||t.isCellDisabled(r);let f=t.isCellUnavailable(r),m=!o&&!f,g=t.validationState==="invalid"&&("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&Oe(t.value,r));g&&(u=!0),r=Cg(r,nu);let h=c.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),b=jk(r,t.timeZone),v=c.useMemo(()=>{let x="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(Oe(r,t.value.start)||Oe(r,t.value.end))&&(x=i+", "),x+=s.format(h),b?x=l.format(u?"todayDateSelected":"todayDate",{date:x}):u&&(x=l.format("dateSelected",{date:x})),t.minValue&&Oe(r,t.minValue)?x+=", "+l.format("minimumDate"):t.maxValue&&Oe(r,t.maxValue)&&(x+=", "+l.format("maximumDate")),x},[s,h,l,u,b,r,t,i]),_="";"anchorDate"in t&&d&&!t.isReadOnly&&m&&(t.anchorDate?_=l.format("finishRangeSelectionPrompt"):_=l.format("startRangeSelectionPrompt"));let y=Cc(_),w=c.useRef(!1),S=c.useRef(!1),P=c.useRef(null),{pressProps:T,isPressed:M}=wr({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!m||t.isReadOnly,onPressStart(x){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(x.pointerType==="mouse"||x.pointerType==="touch")){if(t.highlightedRange&&!g){if(Oe(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),S.current=!0;return}else if(Oe(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),S.current=!0;return}}let R=()=>{t.setDragging(!0),P.current=null,t.selectDate(r),t.setFocusedDate(r),w.current=!0};x.pointerType==="touch"?P.current=setTimeout(R,200):R()}},onPressEnd(){S.current=!1,w.current=!1,clearTimeout(P.current),P.current=null},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(x){if(!t.isReadOnly&&("anchorDate"in t&&P.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(S.current)t.setAnchorDate(r);else if(t.anchorDate&&!w.current)t.selectDate(r),t.setFocusedDate(r);else if(x.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let R=r.add({days:1});t.isInvalid(R)&&(R=r.subtract({days:1})),t.isInvalid(R)||t.setFocusedDate(R)}else x.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),$=null;o||($=Oe(r,t.focusedDate)?0:-1),c.useEffect(()=>{d&&n.current&&(It(n.current),xi()!=="pointer"&&document.activeElement===n.current&&kc(n.current,{containingElement:Pc(n.current)}))},[d,n]);let k=Xn({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),F=c.useMemo(()=>k.formatToParts(h).find(x=>x.type==="day").value,[k,h]);return{cellProps:{role:"gridcell","aria-disabled":!m||null,"aria-selected":u||null,"aria-invalid":g||null},buttonProps:fe(T,{onFocus(){o||t.setFocusedDate(r)},tabIndex:$,role:"button","aria-disabled":!m||null,"aria-label":v,"aria-invalid":g||null,"aria-describedby":[g?a:null,y["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(x){"highlightDate"in t&&(x.pointerType!=="touch"||t.isDragging)&&m&&t.highlightDate(r)},onPointerDown(x){"releasePointerCapture"in x.target&&x.target.releasePointerCapture(x.pointerId)},onContextMenu(x){x.preventDefault()}}),isPressed:M,isFocused:d,isSelected:u,isDisabled:o,isUnavailable:f,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:g,formattedDate:F}}const u8=z.default.td`
|
|
1024
1024
|
position: relative;
|
|
1025
1025
|
padding: 4px 0;
|
|
1026
1026
|
transition: ${p.deprecated_transition_duration_150},
|
|
@@ -1233,7 +1233,7 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var le=_e(ae,se,G,re,oe+
|
|
|
1233
1233
|
color: ${p.color_black} !important;
|
|
1234
1234
|
font-weight: ${p.font_weight_100};
|
|
1235
1235
|
background-color: ${p.color_white};
|
|
1236
|
-
`;function lv({state:e,calendarProps:t,prevButtonProps:n,nextButtonProps:r}){const{onPress:o,isDisabled:a}=n,{onPress:i,isDisabled:l}=r,s=Xn({month:"long",year:"numeric",timeZone:e.timeZone});return X($8,{p:"200",alignItems:"center",justifyContent:"space-between",children:[E(Si,{children:E("h2",{children:t["aria-label"]})}),E(Jo,{label:"Previous month",size:"small",variant:"inverse",onClick:o,disabled:a,children:E(De.ChevronLeft,{})}),E(Bn,{looksLike:"body",as:"h2","aria-hidden":!0,children:s.format(e.visibleRange.start.toDate(e.timeZone))}),E(Bn,{looksLike:"body",as:"h2","aria-hidden":!0,children:s.format(e.visibleRange.start.add({months:1}).toDate(e.timeZone))}),E(Jo,{size:"small",variant:"inverse",onClick:i,label:"Next month",disabled:l,children:E(De.ChevronRight,{})})]})}function Lr(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function Mu(e,t,n,r,o){let a={};for(let l in t)a[l]=Math.floor(t[l]/2),a[l]>0&&t[l]%2===0&&a[l]--;let i=Jn(e,t,n).subtract(a);return Zo(e,i,t,n,r,o)}function Jn(e,t,n,r,o){let a=e;return t.years?a=Wk(e):t.months?a=Gn(e):t.weeks&&(a=Vo(e,n)),Zo(e,a,t,n,r,o)}function Fu(e,t,n,r,o){let a={...t};t.days?a.days--:t.weeks?a.weeks--:t.months?a.months--:t.years&&a.years--;let i=Jn(e,t,n).subtract(a);return Zo(e,i,t,n,r,o)}function Zo(e,t,n,r,o,a){return o&&e.compare(o)>=0&&(t=au(t,Jn($t(o),n,r))),a&&e.compare(a)<=0&&(t=ou(t,Fu($t(a),n,r))),t}function Dn(e,t,n){return t&&(e=au(e,$t(t))),n&&(e=ou(e,$t(n))),e}function sv(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});if(e.compare(t)>=0)return e}function cv(e){let t=c.useMemo(()=>new cb(e.locale),[e.locale]),n=c.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:o,visibleDuration:a={months:1},minValue:i,maxValue:l,selectionAlignment:s,isDateUnavailable:u,pageBehavior:d="visible"}=e,f=c.useMemo(()=>o(n.calendar),[o,n.calendar]),[m,g]=Ot(e.value,e.defaultValue,e.onChange),h=c.useMemo(()=>m?ze($t(m),f):null,[m,f]),b=c.useMemo(()=>m&&"timeZone"in m?m.timeZone:n.timeZone,[m,n.timeZone]),v=c.useMemo(()=>e.focusedValue?Dn(ze($t(e.focusedValue),f),i,l):void 0,[e.focusedValue,f,i,l]),_=c.useMemo(()=>Dn(e.defaultFocusedValue?ze($t(e.defaultFocusedValue),f):h||ze(Ko(b),f),i,l),[e.defaultFocusedValue,h,b,f,i,l]),[y,w]=Ot(v,_,e.onFocusChange),[S,P]=c.useState(()=>{switch(s){case"start":return Jn(y,a,r,i,l);case"end":return Fu(y,a,r,i,l);case"center":default:return Mu(y,a,r,i,l)}}),[T,M]=c.useState(e.autoFocus||!1),$=c.useMemo(()=>{let I={...a};return I.days?I.days--:I.days=-1,S.add(I)},[S,a]),[k,
|
|
1236
|
+
`;function lv({state:e,calendarProps:t,prevButtonProps:n,nextButtonProps:r}){const{onPress:o,isDisabled:a}=n,{onPress:i,isDisabled:l}=r,s=Xn({month:"long",year:"numeric",timeZone:e.timeZone});return X($8,{p:"200",alignItems:"center",justifyContent:"space-between",children:[E(Si,{children:E("h2",{children:t["aria-label"]})}),E(Jo,{label:"Previous month",size:"small",variant:"inverse",onClick:o,disabled:a,children:E(De.ChevronLeft,{})}),E(Bn,{looksLike:"body",as:"h2","aria-hidden":!0,children:s.format(e.visibleRange.start.toDate(e.timeZone))}),E(Bn,{looksLike:"body",as:"h2","aria-hidden":!0,children:s.format(e.visibleRange.start.add({months:1}).toDate(e.timeZone))}),E(Jo,{size:"small",variant:"inverse",onClick:i,label:"Next month",disabled:l,children:E(De.ChevronRight,{})})]})}function Lr(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function Mu(e,t,n,r,o){let a={};for(let l in t)a[l]=Math.floor(t[l]/2),a[l]>0&&t[l]%2===0&&a[l]--;let i=Jn(e,t,n).subtract(a);return Zo(e,i,t,n,r,o)}function Jn(e,t,n,r,o){let a=e;return t.years?a=Wk(e):t.months?a=Gn(e):t.weeks&&(a=Vo(e,n)),Zo(e,a,t,n,r,o)}function Fu(e,t,n,r,o){let a={...t};t.days?a.days--:t.weeks?a.weeks--:t.months?a.months--:t.years&&a.years--;let i=Jn(e,t,n).subtract(a);return Zo(e,i,t,n,r,o)}function Zo(e,t,n,r,o,a){return o&&e.compare(o)>=0&&(t=au(t,Jn($t(o),n,r))),a&&e.compare(a)<=0&&(t=ou(t,Fu($t(a),n,r))),t}function Dn(e,t,n){return t&&(e=au(e,$t(t))),n&&(e=ou(e,$t(n))),e}function sv(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});if(e.compare(t)>=0)return e}function cv(e){let t=c.useMemo(()=>new cb(e.locale),[e.locale]),n=c.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:o,visibleDuration:a={months:1},minValue:i,maxValue:l,selectionAlignment:s,isDateUnavailable:u,pageBehavior:d="visible"}=e,f=c.useMemo(()=>o(n.calendar),[o,n.calendar]),[m,g]=Ot(e.value,e.defaultValue,e.onChange),h=c.useMemo(()=>m?ze($t(m),f):null,[m,f]),b=c.useMemo(()=>m&&"timeZone"in m?m.timeZone:n.timeZone,[m,n.timeZone]),v=c.useMemo(()=>e.focusedValue?Dn(ze($t(e.focusedValue),f),i,l):void 0,[e.focusedValue,f,i,l]),_=c.useMemo(()=>Dn(e.defaultFocusedValue?ze($t(e.defaultFocusedValue),f):h||ze(Ko(b),f),i,l),[e.defaultFocusedValue,h,b,f,i,l]),[y,w]=Ot(v,_,e.onFocusChange),[S,P]=c.useState(()=>{switch(s){case"start":return Jn(y,a,r,i,l);case"end":return Fu(y,a,r,i,l);case"center":default:return Mu(y,a,r,i,l)}}),[T,M]=c.useState(e.autoFocus||!1),$=c.useMemo(()=>{let I={...a};return I.days?I.days--:I.days=-1,S.add(I)},[S,a]),[k,F]=c.useState(f.identifier);if(f.identifier!==k){let I=ze(y,f);P(Mu(I,a,r,i,l)),w(I),F(f.identifier)}Lr(y,i,l)?w(Dn(y,i,l)):y.compare(S)<0?P(Fu(y,a,r,i,l)):y.compare($)>0&&P(Jn(y,a,r,i,l));function x(I){I=Dn(I,i,l),w(I)}function R(I){if(!e.isDisabled&&!e.isReadOnly){if(I=Dn(I,i,l),I=sv(I,S,u),!I)return;I=ze(I,(m==null?void 0:m.calendar)||new ot),m&&"hour"in m?g(m.set(I)):g(I)}}let O=c.useMemo(()=>h?u&&u(h)?!0:Lr(h,i,l):!1,[h,u,i,l]),A=e.validationState||(O?"invalid":null),V=c.useMemo(()=>d==="visible"?a:Lu(a),[d,a]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:h,setValue:R,visibleRange:{start:S,end:$},minValue:i,maxValue:l,focusedDate:y,timeZone:b,validationState:A,setFocusedDate(I){x(I),M(!0)},focusNextDay(){x(y.add({days:1}))},focusPreviousDay(){x(y.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&x(y.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&x(y.subtract({weeks:1}))},focusNextPage(){let I=S.add(V);w(Dn(y.add(V),i,l)),P(Jn(Zo(y,I,V,r,i,l),V,r))},focusPreviousPage(){let I=S.subtract(V);w(Dn(y.subtract(V),i,l)),P(Jn(Zo(y,I,V,r,i,l),V,r))},focusSectionStart(){a.days?x(S):a.weeks?x(Vo(y,r)):(a.months||a.years)&&x(Gn(y))},focusSectionEnd(){a.days?x($):a.weeks?x(Hk(y,r)):(a.months||a.years)&&x(Li(y))},focusNextSection(I){if(!I&&!a.days){x(y.add(Lu(a)));return}a.days?this.focusNextPage():a.weeks?x(y.add({months:1})):(a.months||a.years)&&x(y.add({years:1}))},focusPreviousSection(I){if(!I&&!a.days){x(y.subtract(Lu(a)));return}a.days?this.focusPreviousPage():a.weeks?x(y.subtract({months:1})):(a.months||a.years)&&x(y.subtract({years:1}))},selectFocusedDate(){R(y)},selectDate(I){R(I)},isFocused:T,setFocused:M,isInvalid(I){return Lr(I,i,l)},isSelected(I){return h!=null&&Oe(I,h)&&!this.isCellDisabled(I)&&!this.isCellUnavailable(I)},isCellFocused(I){return T&&y&&Oe(I,y)},isCellDisabled(I){return e.isDisabled||I.compare(S)<0||I.compare($)>0||this.isInvalid(I,i,l)},isCellUnavailable(I){return e.isDateUnavailable&&e.isDateUnavailable(I)},isPreviousVisibleRangeInvalid(){let I=S.subtract({days:1});return Oe(I,S)||this.isInvalid(I,i,l)},isNextVisibleRangeInvalid(){let I=$.add({days:1});return Oe(I,$)||this.isInvalid(I,i,l)},getDatesInWeek(I,J=S){let j=J.add({weeks:I}),U=[];j=Vo(j,r);let L=Fi(j,r);for(let B=0;B<L;B++)U.push(null);for(;U.length<7;){U.push(j);let B=j.add({days:1});if(Oe(j,B))break;j=B}for(;U.length<7;)U.push(null);return U}}}function Lu(e){let t={...e};for(let n in e)t[n]=1;return t}function _8(e){let{value:t,defaultValue:n,onChange:r,createCalendar:o,locale:a,visibleDuration:i={months:1},minValue:l,maxValue:s,...u}=e,[d,f]=Ot(t,n||null,r),[m,g]=c.useState(null),h="center";if(d&&d.start&&d.end){let J=Mu($t(d.start),i,a,l,s).add(i).subtract({days:1});d.end.compare(J)>0&&(h="start")}let b=c.useRef(null),[v,_]=c.useState(null),y=c.useMemo(()=>au(l,v==null?void 0:v.start),[l,v]),w=c.useMemo(()=>ou(s,v==null?void 0:v.end),[s,v]),S=cv({...u,value:d&&d.start,createCalendar:o,locale:a,visibleDuration:i,minValue:y,maxValue:w,selectionAlignment:h}),P=I=>{I&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(b.current={start:dv(I,S,-1),end:dv(I,S,1)},_(b.current)):(b.current=null,_(null))},[T,M]=c.useState(S.visibleRange);(!nu(S.visibleRange.start,T.start)||!nu(S.visibleRange.end,T.end))&&(P(m),M(S.visibleRange));let $=I=>{I?(g(I),P(I)):(g(null),P(null))},k=m?Nu(m,S.focusedDate):d&&Nu(d.start,d.end),F=I=>{if(!e.isReadOnly&&(I=Dn(I,y,w),I=sv(I,S.visibleRange.start,e.isDateUnavailable),!!I))if(!m)$(I);else{let J=Nu(m,I);f({start:uv(J.start,d==null?void 0:d.start),end:uv(J.end,d==null?void 0:d.end)}),$(null)}},[x,R]=c.useState(!1),{isDateUnavailable:O}=e,A=c.useMemo(()=>!d||m?!1:O&&(O(d.start)||O(d.end))?!0:Lr(d.start,l,s)||Lr(d.end,l,s),[O,d,m,l,s]),V=e.validationState||(A?"invalid":null);return{...S,value:d,setValue:f,anchorDate:m,setAnchorDate:$,highlightedRange:k,validationState:V,selectFocusedDate(){F(S.focusedDate)},selectDate:F,highlightDate(I){m&&S.setFocusedDate(I)},isSelected(I){return k&&I.compare(k.start)>=0&&I.compare(k.end)<=0&&!S.isCellDisabled(I)&&!S.isCellUnavailable(I)},isInvalid(I){var J,j;return S.isInvalid(I)||Lr(I,(J=b.current)===null||J===void 0?void 0:J.start,(j=b.current)===null||j===void 0?void 0:j.end)},isDragging:x,setDragging:R}}function Nu(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:$t(e),end:$t(t)})}function uv(e,t){return e=ze(e,(t==null?void 0:t.calendar)||new ot),t&&"hour"in t?t.set(e):e}function dv(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});return t.isCellUnavailable(r)?r.add({days:-n}):null}const x8=z.default(Be)`
|
|
1237
1237
|
font-family: ${p.font_family_pingo} !important;
|
|
1238
1238
|
color: ${p.color_black} !important;
|
|
1239
1239
|
font-weight: ${p.font_weight_100};
|
|
@@ -1336,7 +1336,7 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var le=_e(ae,se,G,re,oe+
|
|
|
1336
1336
|
`,F8=z.default(ea)`
|
|
1337
1337
|
font-size: ${p.font_size_225};
|
|
1338
1338
|
line-height: ${p.font_size_250};
|
|
1339
|
-
`,L8={xsmall:A8,small:I8,medium:O8,large:M8,xlarge:F8};function Re({children:e,bold:t,size:n="medium",display:r="inline-flex",flexDirection:o="row",pointer:a=!1,srOnly:i,style:l,color:s,...u}){const d=L8[n],f=t?500:300;return E(d,{as:"label",...u,$srOnly:i,style:{...l},$color:s,$pointer:a,display:r,flexDirection:o,fontWeight:f,children:e})}function N8(e,t,n){let{validationBehavior:r,focus:o}=e;Te(()=>{if(r==="native"&&(n!=null&&n.current)){let s=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(s),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(R8(n.current))}});let a=ke(()=>{t.resetValidation()}),i=ke(s=>{var u;t.displayValidation.isInvalid||t.commitValidation();let d=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!s.defaultPrevented&&n&&d&&K8(d)===n.current){var f;o?o():(f=n.current)===null||f===void 0||f.focus(),Rc("keyboard")}s.preventDefault()}),l=ke(()=>{t.commitValidation()});c.useEffect(()=>{let s=n==null?void 0:n.current;if(!s)return;let u=s.form;return s.addEventListener("invalid",i),s.addEventListener("change",l),u==null||u.addEventListener("reset",a),()=>{s.removeEventListener("invalid",i),s.removeEventListener("change",l),u==null||u.removeEventListener("reset",a)}},[n,i,l,a,r])}function z8(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 R8(e){return{isInvalid:!e.validity.valid,validationDetails:z8(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function K8(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const mv={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},gv={...mv,customError:!0,valid:!1},ta={isInvalid:!1,validationDetails:mv,validationErrors:[]},V8=c.createContext({}),hv="__formValidationState"+Date.now();function bv(e){if(e[hv]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:a}=e[hv];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:a}}return B8(e)}function B8(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:a,validate:i,validationBehavior:l="aria"}=e;n&&(t||(t=n==="invalid"));let s=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:gv}:null,u=c.useMemo(()=>vv(j8(i,o)),[i,o]);a!=null&&a.validationDetails.valid&&(a=null);let d=c.useContext(V8),f=c.useMemo(()=>r?Array.isArray(r)?r.flatMap(L=>Ru(d[L])):Ru(d[r]):[],[d,r]),[m,g]=c.useState(d),[h,b]=c.useState(!1);d!==m&&(g(d),b(!1));let v=c.useMemo(()=>vv(h?[]:f),[h,f]),_=c.useRef(ta),[y,w]=c.useState(ta),S=c.useRef(ta),P=()=>{if(!T)return;M(!1);let L=u||a||_.current;Ku(L,S.current)||(S.current=L,w(L))},[T,M]=c.useState(!1);return c.useEffect(P),{realtimeValidation:s||v||u||a||ta,displayValidation:l==="native"?s||v||y:s||v||u||a||y,updateValidation(L){l==="aria"&&!Ku(y,L)?w(L):_.current=L},resetValidation(){let L=ta;Ku(L,S.current)||(S.current=L,w(L)),l==="native"&&M(!1),b(!0)},commitValidation(){l==="native"&&M(!0),b(!0)}}}function Ru(e){return e?Array.isArray(e)?e:[e]:[]}function j8(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Ru(n)}return[]}function vv(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:gv}:null}function Ku(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 U8(e,t,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:a,name:i,children:l,"aria-label":s,"aria-labelledby":u,validationState:d="valid",isInvalid:f}=e,m=T=>{T.stopPropagation(),t.setSelected(T.target.checked)},g=l!=null,h=s!=null||u!=null;!g&&!h&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:b,isPressed:v}=wr({isDisabled:r}),{pressProps:_,isPressed:y}=wr({isDisabled:r||o,onPress(){t.toggle()}}),{focusableProps:w}=qc(e,n),S=fe(b,w),P=$n(e,{labelable:!0});return U7(n,t.isSelected,t.setSelected),{labelProps:fe(_,{onClick:T=>T.preventDefault()}),inputProps:fe(P,{"aria-invalid":f||d==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:m,disabled:r,...a==null?{}:{value:a},name:i,type:"checkbox",...S}),isSelected:t.isSelected,isPressed:v||y,isDisabled:r,isReadOnly:o,isInvalid:f||d==="invalid"}}function yv(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:a="label"}=e;t=ct(t);let i=ct(),l={};n?(r=r?`${i} ${r}`:i,l={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 s=$r({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:l,fieldProps:s}}function ol(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:a,fieldProps:i}=yv(e),l=To([!!t,!!n,r,o]),s=To([!!t,!!n,r,o]);return i=fe(i,{"aria-describedby":[l,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:i,descriptionProps:{id:l},errorMessageProps:{id:s}}}function W8(e={}){let{isReadOnly:t}=e,[n,r]=Ot(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 H8(e,t,n){let r=bv({...e,value:t.isSelected}),{isInvalid:o,validationErrors:a,validationDetails:i}=r.displayValidation,{labelProps:l,inputProps:s,isSelected:u,isPressed:d,isDisabled:f,isReadOnly:m}=U8({...e,isInvalid:o},t,n);N8(e,r,n);let{isIndeterminate:g,isRequired:h,validationBehavior:b="aria"}=e;return c.useEffect(()=>{n.current&&(n.current.indeterminate=!!g)}),{labelProps:l,inputProps:{...s,checked:u,"aria-required":h&&b==="aria"||void 0,required:h&&b==="native"},isSelected:u,isPressed:d,isDisabled:f,isReadOnly:m,isInvalid:o,validationErrors:a,validationDetails:i}}function Nr(e){return e.split("-")[1]}function Vu(e){return e==="y"?"height":"width"}function nn(e){return e.split("-")[0]}function Zn(e){return["top","bottom"].includes(nn(e))?"x":"y"}function $v(e,t,n){let{reference:r,floating:o}=e;const a=r.x+r.width/2-o.width/2,i=r.y+r.height/2-o.height/2,l=Zn(t),s=Vu(l),u=r[s]/2-o[s]/2,d=l==="x";let f;switch(nn(t)){case"top":f={x:a,y:r.y-o.height};break;case"bottom":f={x:a,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:i};break;case"left":f={x:r.x-o.width,y:i};break;default:f={x:r.x,y:r.y}}switch(Nr(t)){case"start":f[l]-=u*(n&&d?-1:1);break;case"end":f[l]+=u*(n&&d?-1:1)}return f}const G8=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),s=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=$v(u,r,s),m=r,g={},h=0;for(let b=0;b<l.length;b++){const{name:v,fn:_}=l[b],{x:y,y:w,data:S,reset:P}=await _({x:d,y:f,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:u,platform:i,elements:{reference:e,floating:t}});d=y??d,f=w??f,g={...g,[v]:{...g[v],...S}},P&&h<=50&&(h++,typeof P=="object"&&(P.placement&&(m=P.placement),P.rects&&(u=P.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:d,y:f}=$v(u,m,s)),b=-1)}return{x:d,y:f,placement:m,strategy:o,middlewareData:g}};function rn(e,t){return typeof e=="function"?e(t):e}function _v(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function al(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function na(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:g=0}=rn(t,e),h=_v(g),b=l[m?f==="floating"?"reference":"floating":f],v=al(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:s})),_=f==="floating"?{...i.floating,x:r,y:o}:i.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),w=await(a.isElement==null?void 0:a.isElement(y))&&await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1},S=al(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:_,offsetParent:y,strategy:s}):_);return{top:(v.top-S.top+h.top)/w.y,bottom:(S.bottom-v.bottom+h.bottom)/w.y,left:(v.left-S.left+h.left)/w.x,right:(S.right-v.right+h.right)/w.x}}const ra=Math.min,Qn=Math.max;function Bu(e,t,n){return Qn(e,ra(t,n))}const xv=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:l}=t,{element:s,padding:u=0}=rn(e,t)||{};if(s==null)return{};const d=_v(u),f={x:n,y:r},m=Zn(o),g=Vu(m),h=await i.getDimensions(s),b=m==="y",v=b?"top":"left",_=b?"bottom":"right",y=b?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[m]-f[m]-a.floating[g],S=f[m]-a.reference[m],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s));let T=P?P[y]:0;T&&await(i.isElement==null?void 0:i.isElement(P))||(T=l.floating[y]||a.floating[g]);const M=w/2-S/2,$=T/2-h[g]/2-1,k=ra(d[v],$),L=ra(d[_],$),x=k,R=T-h[g]-L,O=T/2-h[g]/2+M,A=Bu(x,O,R),V=Nr(o)!=null&&O!=A&&a.reference[g]/2-(O<x?k:L)-h[g]/2<0?O<x?x-O:R-O:0;return{[m]:f[m]-V,data:{[m]:A,centerOffset:O-A+V}}}}),wv=["top","right","bottom","left"];wv.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const Y8={left:"right",right:"left",bottom:"top",top:"bottom"};function il(e){return e.replace(/left|right|bottom|top/g,t=>Y8[t])}function q8(e,t,n){n===void 0&&(n=!1);const r=Nr(e),o=Zn(e),a=Vu(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=il(i)),{main:i,cross:il(i)}}const X8={start:"end",end:"start"};function ju(e){return e.replace(/start|end/g,t=>X8[t])}const J8=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:a,initialPlacement:i,platform:l,elements:s}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...b}=rn(e,t),v=nn(r),_=nn(i)===i,y=await(l.isRTL==null?void 0:l.isRTL(s.floating)),w=f||(_||!h?[il(i)]:function(x){const R=il(x);return[ju(x),R,ju(R)]}(i));f||g==="none"||w.push(...function(x,R,O,A){const V=Nr(x);let I=function(J,j,U){const F=["left","right"],B=["right","left"],Y=["top","bottom"],W=["bottom","top"];switch(J){case"top":case"bottom":return U?j?B:F:j?F:B;case"left":case"right":return j?Y:W;default:return[]}}(nn(x),O==="start",A);return V&&(I=I.map(J=>J+"-"+V),R&&(I=I.concat(I.map(ju)))),I}(i,h,g,y));const S=[i,...w],P=await na(t,b),T=[];let M=((n=o.flip)==null?void 0:n.overflows)||[];if(u&&T.push(P[v]),d){const{main:x,cross:R}=q8(r,a,y);T.push(P[x],P[R])}if(M=[...M,{placement:r,overflows:T}],!T.every(x=>x<=0)){var $,k;const x=((($=o.flip)==null?void 0:$.index)||0)+1,R=S[x];if(R)return{data:{index:x,overflows:M},reset:{placement:R}};let O=(k=M.filter(A=>A.overflows[0]<=0).sort((A,V)=>A.overflows[1]-V.overflows[1])[0])==null?void 0:k.placement;if(!O)switch(m){case"bestFit":{var L;const A=(L=M.map(V=>[V.placement,V.overflows.filter(I=>I>0).reduce((I,J)=>I+J,0)]).sort((V,I)=>V[1]-I[1])[0])==null?void 0:L[0];A&&(O=A);break}case"initialPlacement":O=i}if(r!==O)return{reset:{placement:O}}}return{}}}};function Ev(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Sv(e){return wv.some(t=>e[t]>=0)}const Z8=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=rn(e,t);switch(r){case"referenceHidden":{const a=Ev(await na(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Sv(a)}}}case"escaped":{const a=Ev(await na(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:a,escaped:Sv(a)}}}default:return{}}}}},Q8=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(a,i){const{placement:l,platform:s,elements:u}=a,d=await(s.isRTL==null?void 0:s.isRTL(u.floating)),f=nn(l),m=Nr(l),g=Zn(l)==="x",h=["left","top"].includes(f)?-1:1,b=d&&g?-1:1,v=rn(i,a);let{mainAxis:_,crossAxis:y,alignmentAxis:w}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return m&&typeof w=="number"&&(y=m==="end"?-1*w:w),g?{x:y*b,y:_*h}:{x:_*h,y:y*b}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function Dv(e){return e==="x"?"y":"x"}const e2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:v=>{let{x:_,y}=v;return{x:_,y}}},...s}=rn(e,t),u={x:n,y:r},d=await na(t,s),f=Zn(nn(o)),m=Dv(f);let g=u[f],h=u[m];if(a){const v=f==="y"?"bottom":"right";g=Bu(g+d[f==="y"?"top":"left"],g,g-d[v])}if(i){const v=m==="y"?"bottom":"right";h=Bu(h+d[m==="y"?"top":"left"],h,h-d[v])}const b=l.fn({...t,[f]:g,[m]:h});return{...b,data:{x:b.x-n,y:b.y-r}}}}},t2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=rn(e,t),d={x:n,y:r},f=Zn(o),m=Dv(f);let g=d[f],h=d[m];const b=rn(l,t),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(s){const w=f==="y"?"height":"width",S=a.reference[f]-a.floating[w]+v.mainAxis,P=a.reference[f]+a.reference[w]-v.mainAxis;g<S?g=S:g>P&&(g=P)}if(u){var _,y;const w=f==="y"?"width":"height",S=["top","left"].includes(nn(o)),P=a.reference[m]-a.floating[w]+(S&&((_=i.offset)==null?void 0:_[m])||0)+(S?0:v.crossAxis),T=a.reference[m]+a.reference[w]+(S?0:((y=i.offset)==null?void 0:y[m])||0)-(S?v.crossAxis:0);h<P?h=P:h>T&&(h=T)}return{[f]:g,[m]:h}}}},n2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:i=()=>{},...l}=rn(e,t),s=await na(t,l),u=nn(n),d=Nr(n),f=Zn(n)==="x",{width:m,height:g}=r.floating;let h,b;u==="top"||u==="bottom"?(h=u,b=d===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(b=u,h=d==="end"?"top":"bottom");const v=g-s[h],_=m-s[b],y=!t.middlewareData.shift;let w=v,S=_;if(f){const T=m-s.left-s.right;S=d||y?ra(_,T):T}else{const T=g-s.top-s.bottom;w=d||y?ra(v,T):T}if(y&&!d){const T=Qn(s.left,0),M=Qn(s.right,0),$=Qn(s.top,0),k=Qn(s.bottom,0);f?S=m-2*(T!==0||M!==0?T+M:Qn(s.left,s.right)):w=g-2*($!==0||k!==0?$+k:Qn(s.top,s.bottom))}await i({...t,availableWidth:S,availableHeight:w});const P=await o.getDimensions(a.floating);return m!==P.width||g!==P.height?{reset:{rects:!0}}:{}}}};function it(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ft(e){return it(e).getComputedStyle(e)}function Pv(e){return e instanceof it(e).Node}function Pn(e){return Pv(e)?(e.nodeName||"").toLowerCase():"#document"}function xt(e){return e instanceof HTMLElement||e instanceof it(e).HTMLElement}function Tv(e){return typeof ShadowRoot<"u"&&(e instanceof it(e).ShadowRoot||e instanceof ShadowRoot)}function oa(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function r2(e){return["table","td","th"].includes(Pn(e))}function Uu(e){const t=Wu(),n=Ft(e);return n.transform!=="none"||n.perspective!=="none"||!!n.containerType&&n.containerType!=="normal"||!t&&!!n.backdropFilter&&n.backdropFilter!=="none"||!t&&!!n.filter&&n.filter!=="none"||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Wu(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ll(e){return["html","body","#document"].includes(Pn(e))}const Hu=Math.min,zr=Math.max,sl=Math.round,cl=Math.floor,Tn=e=>({x:e,y:e});function Cv(e){const t=Ft(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xt(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=sl(n)!==a||sl(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function on(e){return e instanceof Element||e instanceof it(e).Element}function Gu(e){return on(e)?e:e.contextElement}function Rr(e){const t=Gu(e);if(!xt(t))return Tn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Cv(t);let i=(a?sl(n.width):n.width)/r,l=(a?sl(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const o2=Tn(0);function kv(e){const t=it(e);return Wu()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:o2}function er(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Gu(e);let i=Tn(1);t&&(r?on(r)&&(i=Rr(r)):i=Rr(e));const l=function(m,g,h){return g===void 0&&(g=!1),!(!h||g&&h!==it(m))&&g}(a,n,r)?kv(a):Tn(0);let s=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(a){const m=it(a),g=r&&on(r)?it(r):r;let h=m.frameElement;for(;h&&r&&g!==m;){const b=Rr(h),v=h.getBoundingClientRect(),_=getComputedStyle(h),y=v.left+(h.clientLeft+parseFloat(_.paddingLeft))*b.x,w=v.top+(h.clientTop+parseFloat(_.paddingTop))*b.y;s*=b.x,u*=b.y,d*=b.x,f*=b.y,s+=y,u+=w,h=it(h).frameElement}}return al({width:d,height:f,x:s,y:u})}function ul(e){return on(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function an(e){var t;return(t=(Pv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Av(e){return er(an(e)).left+ul(e).scrollLeft}function Kr(e){if(Pn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Tv(e)&&e.host||an(e);return Tv(t)?t.host:t}function Iv(e){const t=Kr(e);return ll(t)?e.ownerDocument?e.ownerDocument.body:e.body:xt(t)&&oa(t)?t:Iv(t)}function dl(e,t){var n;t===void 0&&(t=[]);const r=Iv(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=it(r);return o?t.concat(a,a.visualViewport||[],oa(r)?r:[]):t.concat(r,dl(r))}function Ov(e,t,n){let r;if(t==="viewport")r=function(o,a){const i=it(o),l=an(o),s=i.visualViewport;let u=l.clientWidth,d=l.clientHeight,f=0,m=0;if(s){u=s.width,d=s.height;const g=Wu();(!g||g&&a==="fixed")&&(f=s.offsetLeft,m=s.offsetTop)}return{width:u,height:d,x:f,y:m}}(e,n);else if(t==="document")r=function(o){const a=an(o),i=ul(o),l=o.ownerDocument.body,s=zr(a.scrollWidth,a.clientWidth,l.scrollWidth,l.clientWidth),u=zr(a.scrollHeight,a.clientHeight,l.scrollHeight,l.clientHeight);let d=-i.scrollLeft+Av(o);const f=-i.scrollTop;return Ft(l).direction==="rtl"&&(d+=zr(a.clientWidth,l.clientWidth)-s),{width:s,height:u,x:d,y:f}}(an(e));else if(on(t))r=function(o,a){const i=er(o,!0,a==="fixed"),l=i.top+o.clientTop,s=i.left+o.clientLeft,u=xt(o)?Rr(o):Tn(1);return{width:o.clientWidth*u.x,height:o.clientHeight*u.y,x:s*u.x,y:l*u.y}}(t,n);else{const o=kv(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return al(r)}function Mv(e,t){const n=Kr(e);return!(n===t||!on(n)||ll(n))&&(Ft(n).position==="fixed"||Mv(n,t))}function a2(e,t,n){const r=xt(t),o=an(t),a=n==="fixed",i=er(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=Tn(0);if(r||!r&&!a)if((Pn(t)!=="body"||oa(o))&&(l=ul(t)),xt(t)){const u=er(t,!0,a,t);s.x=u.x+t.clientLeft,s.y=u.y+t.clientTop}else o&&(s.x=Av(o));return{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function Fv(e,t){return xt(e)&&Ft(e).position!=="fixed"?t?t(e):e.offsetParent:null}function Lv(e,t){const n=it(e);if(!xt(e))return n;let r=Fv(e,t);for(;r&&r2(r)&&Ft(r).position==="static";)r=Fv(r,t);return r&&(Pn(r)==="html"||Pn(r)==="body"&&Ft(r).position==="static"&&!Uu(r))?n:r||function(o){let a=Kr(o);for(;xt(a)&&!ll(a);){if(Uu(a))return a;a=Kr(a)}return null}(e)||n}const i2={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=xt(n),a=an(n);if(n===a)return t;let i={scrollLeft:0,scrollTop:0},l=Tn(1);const s=Tn(0);if((o||!o&&r!=="fixed")&&((Pn(n)!=="body"||oa(a))&&(i=ul(n)),xt(n))){const u=er(n);l=Rr(n),s.x=u.x+n.clientLeft,s.y=u.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-i.scrollLeft*l.x+s.x,y:t.y*l.y-i.scrollTop*l.y+s.y}},getDocumentElement:an,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?function(s,u){const d=u.get(s);if(d)return d;let f=dl(s).filter(b=>on(b)&&Pn(b)!=="body"),m=null;const g=Ft(s).position==="fixed";let h=g?Kr(s):s;for(;on(h)&&!ll(h);){const b=Ft(h),v=Uu(h);v||b.position!=="fixed"||(m=null),(g?!v&&!m:!v&&b.position==="static"&&m&&["absolute","fixed"].includes(m.position)||oa(h)&&!v&&Mv(s,h))?f=f.filter(_=>_!==h):m=b,h=Kr(h)}return u.set(s,f),f}(t,this._c):[].concat(n),r],i=a[0],l=a.reduce((s,u)=>{const d=Ov(t,u,o);return s.top=zr(d.top,s.top),s.right=Hu(d.right,s.right),s.bottom=Hu(d.bottom,s.bottom),s.left=zr(d.left,s.left),s},Ov(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Lv,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Lv,a=this.getDimensions;return{reference:a2(t,await o(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return Cv(e)},getScale:Rr,isElement:on,isRTL:function(e){return getComputedStyle(e).direction==="rtl"}};function l2(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=Gu(e),d=o||a?[...u?dl(u):[],...dl(t)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const f=u&&l?function(v,_){let y,w=null;const S=an(v);function P(){clearTimeout(y),w&&w.disconnect(),w=null}return function T(M,$){M===void 0&&(M=!1),$===void 0&&($=1),P();const{left:k,top:L,width:x,height:R}=v.getBoundingClientRect();if(M||_(),!x||!R)return;const O={rootMargin:-cl(L)+"px "+-cl(S.clientWidth-(k+x))+"px "+-cl(S.clientHeight-(L+R))+"px "+-cl(k)+"px",threshold:zr(0,Hu(1,$))||1};let A=!0;function V(I){const J=I[0].intersectionRatio;if(J!==$){if(!A)return T();J?T(!1,J):y=setTimeout(()=>{T(!1,1e-7)},100)}A=!1}try{w=new IntersectionObserver(V,{...O,root:S.ownerDocument})}catch{w=new IntersectionObserver(V,O)}w.observe(v)}(!0),P}(u,n):null;let m,g=-1,h=null;i&&(h=new ResizeObserver(v=>{let[_]=v;_&&_.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{h&&h.observe(t)})),n()}),u&&!s&&h.observe(u),h.observe(t));let b=s?er(e):null;return s&&function v(){const _=er(e);!b||_.x===b.x&&_.y===b.y&&_.width===b.width&&_.height===b.height||n(),b=_,m=requestAnimationFrame(v)}(),n(),()=>{d.forEach(v=>{o&&v.removeEventListener("scroll",n),a&&v.removeEventListener("resize",n)}),f&&f(),h&&h.disconnect(),h=null,s&&cancelAnimationFrame(m)}}const s2=(e,t,n)=>{const r=new Map,o={platform:i2,...n},a={...o.platform,_c:r};return G8(e,t,{...o,platform:a})},c2=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?xv({element:r.current,padding:o}).fn(n):{}:r?xv({element:r,padding:o}).fn(n):{}}}};var fl=typeof document<"u"?c.useLayoutEffect:c.useEffect;function pl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!pl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!pl(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Nv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zv(e,t){const n=Nv(e);return Math.round(t*n)/n}function Rv(e){const t=D.useRef(e);return fl(()=>{t.current=e}),t}function u2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[d,f]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=D.useState(r);pl(m,r)||g(r);const[h,b]=D.useState(null),[v,_]=D.useState(null),y=D.useCallback(I=>{I!=T.current&&(T.current=I,b(I))},[b]),w=D.useCallback(I=>{I!==M.current&&(M.current=I,_(I))},[_]),S=a||h,P=i||v,T=D.useRef(null),M=D.useRef(null),$=D.useRef(d),k=Rv(s),L=Rv(o),x=D.useCallback(()=>{if(!T.current||!M.current)return;const I={placement:t,strategy:n,middleware:m};L.current&&(I.platform=L.current),s2(T.current,M.current,I).then(J=>{const j={...J,isPositioned:!0};R.current&&!pl($.current,j)&&($.current=j,Rt.flushSync(()=>{f(j)}))})},[m,t,n,L]);fl(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,f(I=>({...I,isPositioned:!1})))},[u]);const R=D.useRef(!1);fl(()=>(R.current=!0,()=>{R.current=!1}),[]),fl(()=>{if(S&&(T.current=S),P&&(M.current=P),S&&P){if(k.current)return k.current(S,P,x);x()}},[S,P,x,k]);const O=D.useMemo(()=>({reference:T,floating:M,setReference:y,setFloating:w}),[y,w]),A=D.useMemo(()=>({reference:S,floating:P}),[S,P]),V=D.useMemo(()=>{const I={position:n,left:0,top:0};if(!A.floating)return I;const J=zv(A.floating,d.x),j=zv(A.floating,d.y);return l?{...I,transform:"translate("+J+"px, "+j+"px)",...Nv(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:J,top:j}},[n,l,A.floating,d.x,d.y]);return D.useMemo(()=>({...d,update:x,refs:O,elements:A,floatingStyles:V}),[d,x,O,A,V])}const d2=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return c.createElement(ce.svg,N({},a,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:c.createElement("polygon",{points:"0,0 30,0 15,10"}))});function Yu(e){const[t,n]=c.useState(void 0);return pn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,l;if("borderBoxSize"in a){const s=a.borderBoxSize,u=Array.isArray(s)?s[0]:s;i=u.inlineSize,l=u.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Kv="Popper",[Vv,Vr]=Ke(Kv),[f2,Bv]=Vv(Kv),p2=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return c.createElement(f2,{scope:t,anchor:r,onAnchorChange:o},n)},m2="PopperAnchor",g2=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Bv(m2,n),i=c.useRef(null),l=ye(t,i);return c.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:c.createElement(ce.div,N({},o,{ref:l}))}),jv="PopperContent",[h2,b2]=Vv(jv),v2=c.forwardRef((e,t)=>{var n,r,o,a,i,l,s,u;const{__scopePopper:d,side:f="bottom",sideOffset:m=0,align:g="center",alignOffset:h=0,arrowPadding:b=0,collisionBoundary:v=[],collisionPadding:_=0,sticky:y="partial",hideWhenDetached:w=!1,avoidCollisions:S=!0,onPlaced:P,...T}=e,M=Bv(jv,d),[$,k]=c.useState(null),L=ye(t,Se=>k(Se)),[x,R]=c.useState(null),O=Yu(x),A=(n=O==null?void 0:O.width)!==null&&n!==void 0?n:0,V=(r=O==null?void 0:O.height)!==null&&r!==void 0?r:0,I=f+(g!=="center"?"-"+g:""),J=typeof _=="number"?_:{top:0,right:0,bottom:0,left:0,..._},j=Array.isArray(v)?v:[v],U=j.length>0,F={padding:J,boundary:j.filter(x2),altBoundary:U},{refs:B,floatingStyles:Y,placement:W,isPositioned:G,middlewareData:re}=u2({strategy:"fixed",placement:I,whileElementsMounted:l2,elements:{reference:M.anchor},middleware:[Q8({mainAxis:m+V,alignmentAxis:h}),S&&e2({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?t2():void 0,...F}),S&&J8({...F}),n2({...F,apply:({elements:Se,rects:Mn,availableWidth:Fn,availableHeight:io})=>{const{width:lo,height:cn}=Mn.reference,zt=Se.floating.style;zt.setProperty("--radix-popper-available-width",`${Fn}px`),zt.setProperty("--radix-popper-available-height",`${io}px`),zt.setProperty("--radix-popper-anchor-width",`${lo}px`),zt.setProperty("--radix-popper-anchor-height",`${cn}px`)}}),x&&c2({element:x,padding:b}),w2({arrowWidth:A,arrowHeight:V}),w&&Z8({strategy:"referenceHidden"})]}),[oe,ae]=Uv(W),ne=je(P);pn(()=>{G&&(ne==null||ne())},[G,ne]);const ee=(o=re.arrow)===null||o===void 0?void 0:o.x,se=(a=re.arrow)===null||a===void 0?void 0:a.y,_e=((i=re.arrow)===null||i===void 0?void 0:i.centerOffset)!==0,[le,pe]=c.useState();return pn(()=>{$&&pe(window.getComputedStyle($).zIndex)},[$]),c.createElement("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:G?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[(l=re.transformOrigin)===null||l===void 0?void 0:l.x,(s=re.transformOrigin)===null||s===void 0?void 0:s.y].join(" ")},dir:e.dir},c.createElement(h2,{scope:d,placedSide:oe,onArrowChange:R,arrowX:ee,arrowY:se,shouldHideArrow:_e},c.createElement(ce.div,N({"data-side":oe,"data-align":ae},T,{ref:L,style:{...T.style,animation:G?void 0:"none",opacity:(u=re.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),y2="PopperArrow",$2={top:"bottom",right:"left",bottom:"top",left:"right"},_2=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=b2(y2,r),i=$2[a.placedSide];return c.createElement("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},c.createElement(d2,N({},o,{ref:n,style:{...o.style,display:"block"}})))});function x2(e){return e!==null}const w2=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;const{placement:l,rects:s,middlewareData:u}=t,f=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=f?0:e.arrowWidth,g=f?0:e.arrowHeight,[h,b]=Uv(l),v={start:"0%",center:"50%",end:"100%"}[b],_=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+m/2,y=((a=(i=u.arrow)===null||i===void 0?void 0:i.y)!==null&&a!==void 0?a:0)+g/2;let w="",S="";return h==="bottom"?(w=f?v:`${_}px`,S=`${-g}px`):h==="top"?(w=f?v:`${_}px`,S=`${s.floating.height+g}px`):h==="right"?(w=`${-g}px`,S=f?v:`${y}px`):h==="left"&&(w=`${s.floating.width+g}px`,S=f?v:`${y}px`),{data:{x:w,y:S}}}});function Uv(e){const[t,n="center"]=e.split("-");return[t,n]}const ml=p2,qu=g2,Xu=v2,Ju=_2,[gl,MV]=Ke("Tooltip",[Vr]),hl=Vr(),E2="TooltipProvider",S2=700,Zu="tooltip.open",[D2,Qu]=gl(E2),P2=e=>{const{__scopeTooltip:t,delayDuration:n=S2,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,l]=c.useState(!0),s=c.useRef(!1),u=c.useRef(0);return c.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),c.createElement(D2,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:c.useCallback(()=>{window.clearTimeout(u.current),l(!1)},[]),onClose:c.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>l(!0),r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:c.useCallback(d=>{s.current=d},[]),disableHoverableContent:o},a)},ed="Tooltip",[T2,aa]=gl(ed),C2=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:l}=e,s=Qu(ed,e.__scopeTooltip),u=hl(t),[d,f]=c.useState(null),m=nt(),g=c.useRef(0),h=i??s.disableHoverableContent,b=l??s.delayDuration,v=c.useRef(!1),[_=!1,y]=Ue({prop:r,defaultProp:o,onChange:M=>{M?(s.onOpen(),document.dispatchEvent(new CustomEvent(Zu))):s.onClose(),a==null||a(M)}}),w=c.useMemo(()=>_?v.current?"delayed-open":"instant-open":"closed",[_]),S=c.useCallback(()=>{window.clearTimeout(g.current),v.current=!1,y(!0)},[y]),P=c.useCallback(()=>{window.clearTimeout(g.current),y(!1)},[y]),T=c.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,y(!0)},b)},[b,y]);return c.useEffect(()=>()=>window.clearTimeout(g.current),[]),c.createElement(ml,u,c.createElement(T2,{scope:t,contentId:m,open:_,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:c.useCallback(()=>{s.isOpenDelayed?T():S()},[s.isOpenDelayed,T,S]),onTriggerLeave:c.useCallback(()=>{h?P():window.clearTimeout(g.current)},[P,h]),onOpen:S,onClose:P,disableHoverableContent:h},n))},Wv="TooltipTrigger",k2=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=aa(Wv,n),a=Qu(Wv,n),i=hl(n),l=c.useRef(null),s=ye(t,l,o.onTriggerChange),u=c.useRef(!1),d=c.useRef(!1),f=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),c.createElement(qu,N({asChild:!0},i),c.createElement(ce.button,N({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:s,onPointerMove:Q(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Q(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:Q(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Q(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Q(e.onBlur,o.onClose),onClick:Q(e.onClick,o.onClose)})))}),Hv="TooltipPortal",[A2,I2]=gl(Hv,{forceMount:void 0}),O2=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=aa(Hv,t);return c.createElement(A2,{scope:t,forceMount:n},c.createElement(We,{present:n||a.open},c.createElement(_o,{asChild:!0,container:o},r)))},ia="TooltipContent",M2=c.forwardRef((e,t)=>{const n=I2(ia,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=aa(ia,e.__scopeTooltip);return c.createElement(We,{present:r||i.open},i.disableHoverableContent?c.createElement(Gv,N({side:o},a,{ref:t})):c.createElement(F2,N({side:o},a,{ref:t})))}),F2=c.forwardRef((e,t)=>{const n=aa(ia,e.__scopeTooltip),r=Qu(ia,e.__scopeTooltip),o=c.useRef(null),a=ye(t,o),[i,l]=c.useState(null),{trigger:s,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,m=c.useCallback(()=>{l(null),f(!1)},[f]),g=c.useCallback((h,b)=>{const v=h.currentTarget,_={x:h.clientX,y:h.clientY},y=K2(_,v.getBoundingClientRect()),w=V2(_,y),S=B2(b.getBoundingClientRect()),P=U2([...w,...S]);l(P),f(!0)},[f]);return c.useEffect(()=>()=>m(),[m]),c.useEffect(()=>{if(s&&d){const h=v=>g(v,d),b=v=>g(v,s);return s.addEventListener("pointerleave",h),d.addEventListener("pointerleave",b),()=>{s.removeEventListener("pointerleave",h),d.removeEventListener("pointerleave",b)}}},[s,d,g,m]),c.useEffect(()=>{if(i){const h=b=>{const v=b.target,_={x:b.clientX,y:b.clientY},y=(s==null?void 0:s.contains(v))||(d==null?void 0:d.contains(v)),w=!j2(_,i);y?m():w&&(m(),u())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[s,d,i,u,m]),c.createElement(Gv,N({},e,{ref:a}))}),[L2,N2]=gl(ed,{isInside:!1}),Gv=c.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...l}=e,s=aa(ia,n),u=hl(n),{onClose:d}=s;return c.useEffect(()=>(document.addEventListener(Zu,d),()=>document.removeEventListener(Zu,d)),[d]),c.useEffect(()=>{if(s.trigger){const f=m=>{const g=m.target;g!=null&&g.contains(s.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[s.trigger,d]),c.createElement($o,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d},c.createElement(Xu,N({"data-state":s.stateAttribute},u,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),c.createElement(as,null,r),c.createElement(L2,{scope:n,isInside:!0},c.createElement(ap,{id:s.contentId,role:"tooltip"},o||r))))}),z2="TooltipArrow",R2=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=hl(n);return N2(z2,n).isInside?null:c.createElement(Ju,N({},o,r,{ref:t}))});function K2(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function V2(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function B2(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function j2(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const l=t[a].x,s=t[a].y,u=t[i].x,d=t[i].y;s>r!=d>r&&n<(u-l)*(r-s)/(d-s)+l&&(o=!o)}return o}function U2(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),W2(t)}function W2(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const H2=P2,G2=C2,Y2=k2,q2=O2,X2=M2,J2=R2,Z2=ie.keyframes`
|
|
1339
|
+
`,L8={xsmall:A8,small:I8,medium:O8,large:M8,xlarge:F8};function Re({children:e,bold:t,size:n="medium",display:r="inline-flex",flexDirection:o="row",pointer:a=!1,srOnly:i,style:l,color:s,...u}){const d=L8[n],f=t?500:300;return E(d,{as:"label",...u,$srOnly:i,style:{...l},$color:s,$pointer:a,display:r,flexDirection:o,fontWeight:f,children:e})}function N8(e,t,n){let{validationBehavior:r,focus:o}=e;Te(()=>{if(r==="native"&&(n!=null&&n.current)){let s=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(s),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(R8(n.current))}});let a=ke(()=>{t.resetValidation()}),i=ke(s=>{var u;t.displayValidation.isInvalid||t.commitValidation();let d=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!s.defaultPrevented&&n&&d&&K8(d)===n.current){var f;o?o():(f=n.current)===null||f===void 0||f.focus(),Rc("keyboard")}s.preventDefault()}),l=ke(()=>{t.commitValidation()});c.useEffect(()=>{let s=n==null?void 0:n.current;if(!s)return;let u=s.form;return s.addEventListener("invalid",i),s.addEventListener("change",l),u==null||u.addEventListener("reset",a),()=>{s.removeEventListener("invalid",i),s.removeEventListener("change",l),u==null||u.removeEventListener("reset",a)}},[n,i,l,a,r])}function z8(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 R8(e){return{isInvalid:!e.validity.valid,validationDetails:z8(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function K8(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const mv={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},gv={...mv,customError:!0,valid:!1},ta={isInvalid:!1,validationDetails:mv,validationErrors:[]},V8=c.createContext({}),hv="__formValidationState"+Date.now();function bv(e){if(e[hv]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:a}=e[hv];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:a}}return B8(e)}function B8(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:a,validate:i,validationBehavior:l="aria"}=e;n&&(t||(t=n==="invalid"));let s=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:gv}:null,u=c.useMemo(()=>vv(j8(i,o)),[i,o]);a!=null&&a.validationDetails.valid&&(a=null);let d=c.useContext(V8),f=c.useMemo(()=>r?Array.isArray(r)?r.flatMap(F=>Ru(d[F])):Ru(d[r]):[],[d,r]),[m,g]=c.useState(d),[h,b]=c.useState(!1);d!==m&&(g(d),b(!1));let v=c.useMemo(()=>vv(h?[]:f),[h,f]),_=c.useRef(ta),[y,w]=c.useState(ta),S=c.useRef(ta),P=()=>{if(!T)return;M(!1);let F=u||a||_.current;Ku(F,S.current)||(S.current=F,w(F))},[T,M]=c.useState(!1);return c.useEffect(P),{realtimeValidation:s||v||u||a||ta,displayValidation:l==="native"?s||v||y:s||v||u||a||y,updateValidation(F){l==="aria"&&!Ku(y,F)?w(F):_.current=F},resetValidation(){let F=ta;Ku(F,S.current)||(S.current=F,w(F)),l==="native"&&M(!1),b(!0)},commitValidation(){l==="native"&&M(!0),b(!0)}}}function Ru(e){return e?Array.isArray(e)?e:[e]:[]}function j8(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Ru(n)}return[]}function vv(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:gv}:null}function Ku(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 U8(e,t,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:a,name:i,children:l,"aria-label":s,"aria-labelledby":u,validationState:d="valid",isInvalid:f}=e,m=T=>{T.stopPropagation(),t.setSelected(T.target.checked)},g=l!=null,h=s!=null||u!=null;!g&&!h&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:b,isPressed:v}=wr({isDisabled:r}),{pressProps:_,isPressed:y}=wr({isDisabled:r||o,onPress(){t.toggle()}}),{focusableProps:w}=qc(e,n),S=fe(b,w),P=$n(e,{labelable:!0});return U7(n,t.isSelected,t.setSelected),{labelProps:fe(_,{onClick:T=>T.preventDefault()}),inputProps:fe(P,{"aria-invalid":f||d==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:m,disabled:r,...a==null?{}:{value:a},name:i,type:"checkbox",...S}),isSelected:t.isSelected,isPressed:v||y,isDisabled:r,isReadOnly:o,isInvalid:f||d==="invalid"}}function yv(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:a="label"}=e;t=ct(t);let i=ct(),l={};n?(r=r?`${i} ${r}`:i,l={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 s=$r({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:l,fieldProps:s}}function ol(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:a,fieldProps:i}=yv(e),l=To([!!t,!!n,r,o]),s=To([!!t,!!n,r,o]);return i=fe(i,{"aria-describedby":[l,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:i,descriptionProps:{id:l},errorMessageProps:{id:s}}}function W8(e={}){let{isReadOnly:t}=e,[n,r]=Ot(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 H8(e,t,n){let r=bv({...e,value:t.isSelected}),{isInvalid:o,validationErrors:a,validationDetails:i}=r.displayValidation,{labelProps:l,inputProps:s,isSelected:u,isPressed:d,isDisabled:f,isReadOnly:m}=U8({...e,isInvalid:o},t,n);N8(e,r,n);let{isIndeterminate:g,isRequired:h,validationBehavior:b="aria"}=e;return c.useEffect(()=>{n.current&&(n.current.indeterminate=!!g)}),{labelProps:l,inputProps:{...s,checked:u,"aria-required":h&&b==="aria"||void 0,required:h&&b==="native"},isSelected:u,isPressed:d,isDisabled:f,isReadOnly:m,isInvalid:o,validationErrors:a,validationDetails:i}}function Nr(e){return e.split("-")[1]}function Vu(e){return e==="y"?"height":"width"}function nn(e){return e.split("-")[0]}function Zn(e){return["top","bottom"].includes(nn(e))?"x":"y"}function $v(e,t,n){let{reference:r,floating:o}=e;const a=r.x+r.width/2-o.width/2,i=r.y+r.height/2-o.height/2,l=Zn(t),s=Vu(l),u=r[s]/2-o[s]/2,d=l==="x";let f;switch(nn(t)){case"top":f={x:a,y:r.y-o.height};break;case"bottom":f={x:a,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:i};break;case"left":f={x:r.x-o.width,y:i};break;default:f={x:r.x,y:r.y}}switch(Nr(t)){case"start":f[l]-=u*(n&&d?-1:1);break;case"end":f[l]+=u*(n&&d?-1:1)}return f}const G8=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),s=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=$v(u,r,s),m=r,g={},h=0;for(let b=0;b<l.length;b++){const{name:v,fn:_}=l[b],{x:y,y:w,data:S,reset:P}=await _({x:d,y:f,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:u,platform:i,elements:{reference:e,floating:t}});d=y??d,f=w??f,g={...g,[v]:{...g[v],...S}},P&&h<=50&&(h++,typeof P=="object"&&(P.placement&&(m=P.placement),P.rects&&(u=P.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:d,y:f}=$v(u,m,s)),b=-1)}return{x:d,y:f,placement:m,strategy:o,middlewareData:g}};function rn(e,t){return typeof e=="function"?e(t):e}function _v(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function al(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function na(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:g=0}=rn(t,e),h=_v(g),b=l[m?f==="floating"?"reference":"floating":f],v=al(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:s})),_=f==="floating"?{...i.floating,x:r,y:o}:i.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),w=await(a.isElement==null?void 0:a.isElement(y))&&await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1},S=al(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:_,offsetParent:y,strategy:s}):_);return{top:(v.top-S.top+h.top)/w.y,bottom:(S.bottom-v.bottom+h.bottom)/w.y,left:(v.left-S.left+h.left)/w.x,right:(S.right-v.right+h.right)/w.x}}const ra=Math.min,Qn=Math.max;function Bu(e,t,n){return Qn(e,ra(t,n))}const xv=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:l}=t,{element:s,padding:u=0}=rn(e,t)||{};if(s==null)return{};const d=_v(u),f={x:n,y:r},m=Zn(o),g=Vu(m),h=await i.getDimensions(s),b=m==="y",v=b?"top":"left",_=b?"bottom":"right",y=b?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[m]-f[m]-a.floating[g],S=f[m]-a.reference[m],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s));let T=P?P[y]:0;T&&await(i.isElement==null?void 0:i.isElement(P))||(T=l.floating[y]||a.floating[g]);const M=w/2-S/2,$=T/2-h[g]/2-1,k=ra(d[v],$),F=ra(d[_],$),x=k,R=T-h[g]-F,O=T/2-h[g]/2+M,A=Bu(x,O,R),V=Nr(o)!=null&&O!=A&&a.reference[g]/2-(O<x?k:F)-h[g]/2<0?O<x?x-O:R-O:0;return{[m]:f[m]-V,data:{[m]:A,centerOffset:O-A+V}}}}),wv=["top","right","bottom","left"];wv.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const Y8={left:"right",right:"left",bottom:"top",top:"bottom"};function il(e){return e.replace(/left|right|bottom|top/g,t=>Y8[t])}function q8(e,t,n){n===void 0&&(n=!1);const r=Nr(e),o=Zn(e),a=Vu(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=il(i)),{main:i,cross:il(i)}}const X8={start:"end",end:"start"};function ju(e){return e.replace(/start|end/g,t=>X8[t])}const J8=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:a,initialPlacement:i,platform:l,elements:s}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...b}=rn(e,t),v=nn(r),_=nn(i)===i,y=await(l.isRTL==null?void 0:l.isRTL(s.floating)),w=f||(_||!h?[il(i)]:function(x){const R=il(x);return[ju(x),R,ju(R)]}(i));f||g==="none"||w.push(...function(x,R,O,A){const V=Nr(x);let I=function(J,j,U){const L=["left","right"],B=["right","left"],Y=["top","bottom"],W=["bottom","top"];switch(J){case"top":case"bottom":return U?j?B:L:j?L:B;case"left":case"right":return j?Y:W;default:return[]}}(nn(x),O==="start",A);return V&&(I=I.map(J=>J+"-"+V),R&&(I=I.concat(I.map(ju)))),I}(i,h,g,y));const S=[i,...w],P=await na(t,b),T=[];let M=((n=o.flip)==null?void 0:n.overflows)||[];if(u&&T.push(P[v]),d){const{main:x,cross:R}=q8(r,a,y);T.push(P[x],P[R])}if(M=[...M,{placement:r,overflows:T}],!T.every(x=>x<=0)){var $,k;const x=((($=o.flip)==null?void 0:$.index)||0)+1,R=S[x];if(R)return{data:{index:x,overflows:M},reset:{placement:R}};let O=(k=M.filter(A=>A.overflows[0]<=0).sort((A,V)=>A.overflows[1]-V.overflows[1])[0])==null?void 0:k.placement;if(!O)switch(m){case"bestFit":{var F;const A=(F=M.map(V=>[V.placement,V.overflows.filter(I=>I>0).reduce((I,J)=>I+J,0)]).sort((V,I)=>V[1]-I[1])[0])==null?void 0:F[0];A&&(O=A);break}case"initialPlacement":O=i}if(r!==O)return{reset:{placement:O}}}return{}}}};function Ev(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Sv(e){return wv.some(t=>e[t]>=0)}const Z8=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=rn(e,t);switch(r){case"referenceHidden":{const a=Ev(await na(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Sv(a)}}}case"escaped":{const a=Ev(await na(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:a,escaped:Sv(a)}}}default:return{}}}}},Q8=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(a,i){const{placement:l,platform:s,elements:u}=a,d=await(s.isRTL==null?void 0:s.isRTL(u.floating)),f=nn(l),m=Nr(l),g=Zn(l)==="x",h=["left","top"].includes(f)?-1:1,b=d&&g?-1:1,v=rn(i,a);let{mainAxis:_,crossAxis:y,alignmentAxis:w}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return m&&typeof w=="number"&&(y=m==="end"?-1*w:w),g?{x:y*b,y:_*h}:{x:_*h,y:y*b}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function Dv(e){return e==="x"?"y":"x"}const e2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:v=>{let{x:_,y}=v;return{x:_,y}}},...s}=rn(e,t),u={x:n,y:r},d=await na(t,s),f=Zn(nn(o)),m=Dv(f);let g=u[f],h=u[m];if(a){const v=f==="y"?"bottom":"right";g=Bu(g+d[f==="y"?"top":"left"],g,g-d[v])}if(i){const v=m==="y"?"bottom":"right";h=Bu(h+d[m==="y"?"top":"left"],h,h-d[v])}const b=l.fn({...t,[f]:g,[m]:h});return{...b,data:{x:b.x-n,y:b.y-r}}}}},t2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=rn(e,t),d={x:n,y:r},f=Zn(o),m=Dv(f);let g=d[f],h=d[m];const b=rn(l,t),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(s){const w=f==="y"?"height":"width",S=a.reference[f]-a.floating[w]+v.mainAxis,P=a.reference[f]+a.reference[w]-v.mainAxis;g<S?g=S:g>P&&(g=P)}if(u){var _,y;const w=f==="y"?"width":"height",S=["top","left"].includes(nn(o)),P=a.reference[m]-a.floating[w]+(S&&((_=i.offset)==null?void 0:_[m])||0)+(S?0:v.crossAxis),T=a.reference[m]+a.reference[w]+(S?0:((y=i.offset)==null?void 0:y[m])||0)-(S?v.crossAxis:0);h<P?h=P:h>T&&(h=T)}return{[f]:g,[m]:h}}}},n2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:i=()=>{},...l}=rn(e,t),s=await na(t,l),u=nn(n),d=Nr(n),f=Zn(n)==="x",{width:m,height:g}=r.floating;let h,b;u==="top"||u==="bottom"?(h=u,b=d===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(b=u,h=d==="end"?"top":"bottom");const v=g-s[h],_=m-s[b],y=!t.middlewareData.shift;let w=v,S=_;if(f){const T=m-s.left-s.right;S=d||y?ra(_,T):T}else{const T=g-s.top-s.bottom;w=d||y?ra(v,T):T}if(y&&!d){const T=Qn(s.left,0),M=Qn(s.right,0),$=Qn(s.top,0),k=Qn(s.bottom,0);f?S=m-2*(T!==0||M!==0?T+M:Qn(s.left,s.right)):w=g-2*($!==0||k!==0?$+k:Qn(s.top,s.bottom))}await i({...t,availableWidth:S,availableHeight:w});const P=await o.getDimensions(a.floating);return m!==P.width||g!==P.height?{reset:{rects:!0}}:{}}}};function it(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ft(e){return it(e).getComputedStyle(e)}function Pv(e){return e instanceof it(e).Node}function Pn(e){return Pv(e)?(e.nodeName||"").toLowerCase():"#document"}function xt(e){return e instanceof HTMLElement||e instanceof it(e).HTMLElement}function Tv(e){return typeof ShadowRoot<"u"&&(e instanceof it(e).ShadowRoot||e instanceof ShadowRoot)}function oa(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function r2(e){return["table","td","th"].includes(Pn(e))}function Uu(e){const t=Wu(),n=Ft(e);return n.transform!=="none"||n.perspective!=="none"||!!n.containerType&&n.containerType!=="normal"||!t&&!!n.backdropFilter&&n.backdropFilter!=="none"||!t&&!!n.filter&&n.filter!=="none"||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Wu(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ll(e){return["html","body","#document"].includes(Pn(e))}const Hu=Math.min,zr=Math.max,sl=Math.round,cl=Math.floor,Tn=e=>({x:e,y:e});function Cv(e){const t=Ft(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xt(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=sl(n)!==a||sl(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function on(e){return e instanceof Element||e instanceof it(e).Element}function Gu(e){return on(e)?e:e.contextElement}function Rr(e){const t=Gu(e);if(!xt(t))return Tn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Cv(t);let i=(a?sl(n.width):n.width)/r,l=(a?sl(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const o2=Tn(0);function kv(e){const t=it(e);return Wu()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:o2}function er(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Gu(e);let i=Tn(1);t&&(r?on(r)&&(i=Rr(r)):i=Rr(e));const l=function(m,g,h){return g===void 0&&(g=!1),!(!h||g&&h!==it(m))&&g}(a,n,r)?kv(a):Tn(0);let s=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(a){const m=it(a),g=r&&on(r)?it(r):r;let h=m.frameElement;for(;h&&r&&g!==m;){const b=Rr(h),v=h.getBoundingClientRect(),_=getComputedStyle(h),y=v.left+(h.clientLeft+parseFloat(_.paddingLeft))*b.x,w=v.top+(h.clientTop+parseFloat(_.paddingTop))*b.y;s*=b.x,u*=b.y,d*=b.x,f*=b.y,s+=y,u+=w,h=it(h).frameElement}}return al({width:d,height:f,x:s,y:u})}function ul(e){return on(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function an(e){var t;return(t=(Pv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Av(e){return er(an(e)).left+ul(e).scrollLeft}function Kr(e){if(Pn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Tv(e)&&e.host||an(e);return Tv(t)?t.host:t}function Iv(e){const t=Kr(e);return ll(t)?e.ownerDocument?e.ownerDocument.body:e.body:xt(t)&&oa(t)?t:Iv(t)}function dl(e,t){var n;t===void 0&&(t=[]);const r=Iv(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=it(r);return o?t.concat(a,a.visualViewport||[],oa(r)?r:[]):t.concat(r,dl(r))}function Ov(e,t,n){let r;if(t==="viewport")r=function(o,a){const i=it(o),l=an(o),s=i.visualViewport;let u=l.clientWidth,d=l.clientHeight,f=0,m=0;if(s){u=s.width,d=s.height;const g=Wu();(!g||g&&a==="fixed")&&(f=s.offsetLeft,m=s.offsetTop)}return{width:u,height:d,x:f,y:m}}(e,n);else if(t==="document")r=function(o){const a=an(o),i=ul(o),l=o.ownerDocument.body,s=zr(a.scrollWidth,a.clientWidth,l.scrollWidth,l.clientWidth),u=zr(a.scrollHeight,a.clientHeight,l.scrollHeight,l.clientHeight);let d=-i.scrollLeft+Av(o);const f=-i.scrollTop;return Ft(l).direction==="rtl"&&(d+=zr(a.clientWidth,l.clientWidth)-s),{width:s,height:u,x:d,y:f}}(an(e));else if(on(t))r=function(o,a){const i=er(o,!0,a==="fixed"),l=i.top+o.clientTop,s=i.left+o.clientLeft,u=xt(o)?Rr(o):Tn(1);return{width:o.clientWidth*u.x,height:o.clientHeight*u.y,x:s*u.x,y:l*u.y}}(t,n);else{const o=kv(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return al(r)}function Mv(e,t){const n=Kr(e);return!(n===t||!on(n)||ll(n))&&(Ft(n).position==="fixed"||Mv(n,t))}function a2(e,t,n){const r=xt(t),o=an(t),a=n==="fixed",i=er(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=Tn(0);if(r||!r&&!a)if((Pn(t)!=="body"||oa(o))&&(l=ul(t)),xt(t)){const u=er(t,!0,a,t);s.x=u.x+t.clientLeft,s.y=u.y+t.clientTop}else o&&(s.x=Av(o));return{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function Fv(e,t){return xt(e)&&Ft(e).position!=="fixed"?t?t(e):e.offsetParent:null}function Lv(e,t){const n=it(e);if(!xt(e))return n;let r=Fv(e,t);for(;r&&r2(r)&&Ft(r).position==="static";)r=Fv(r,t);return r&&(Pn(r)==="html"||Pn(r)==="body"&&Ft(r).position==="static"&&!Uu(r))?n:r||function(o){let a=Kr(o);for(;xt(a)&&!ll(a);){if(Uu(a))return a;a=Kr(a)}return null}(e)||n}const i2={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=xt(n),a=an(n);if(n===a)return t;let i={scrollLeft:0,scrollTop:0},l=Tn(1);const s=Tn(0);if((o||!o&&r!=="fixed")&&((Pn(n)!=="body"||oa(a))&&(i=ul(n)),xt(n))){const u=er(n);l=Rr(n),s.x=u.x+n.clientLeft,s.y=u.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-i.scrollLeft*l.x+s.x,y:t.y*l.y-i.scrollTop*l.y+s.y}},getDocumentElement:an,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?function(s,u){const d=u.get(s);if(d)return d;let f=dl(s).filter(b=>on(b)&&Pn(b)!=="body"),m=null;const g=Ft(s).position==="fixed";let h=g?Kr(s):s;for(;on(h)&&!ll(h);){const b=Ft(h),v=Uu(h);v||b.position!=="fixed"||(m=null),(g?!v&&!m:!v&&b.position==="static"&&m&&["absolute","fixed"].includes(m.position)||oa(h)&&!v&&Mv(s,h))?f=f.filter(_=>_!==h):m=b,h=Kr(h)}return u.set(s,f),f}(t,this._c):[].concat(n),r],i=a[0],l=a.reduce((s,u)=>{const d=Ov(t,u,o);return s.top=zr(d.top,s.top),s.right=Hu(d.right,s.right),s.bottom=Hu(d.bottom,s.bottom),s.left=zr(d.left,s.left),s},Ov(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Lv,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Lv,a=this.getDimensions;return{reference:a2(t,await o(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return Cv(e)},getScale:Rr,isElement:on,isRTL:function(e){return getComputedStyle(e).direction==="rtl"}};function l2(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=Gu(e),d=o||a?[...u?dl(u):[],...dl(t)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const f=u&&l?function(v,_){let y,w=null;const S=an(v);function P(){clearTimeout(y),w&&w.disconnect(),w=null}return function T(M,$){M===void 0&&(M=!1),$===void 0&&($=1),P();const{left:k,top:F,width:x,height:R}=v.getBoundingClientRect();if(M||_(),!x||!R)return;const O={rootMargin:-cl(F)+"px "+-cl(S.clientWidth-(k+x))+"px "+-cl(S.clientHeight-(F+R))+"px "+-cl(k)+"px",threshold:zr(0,Hu(1,$))||1};let A=!0;function V(I){const J=I[0].intersectionRatio;if(J!==$){if(!A)return T();J?T(!1,J):y=setTimeout(()=>{T(!1,1e-7)},100)}A=!1}try{w=new IntersectionObserver(V,{...O,root:S.ownerDocument})}catch{w=new IntersectionObserver(V,O)}w.observe(v)}(!0),P}(u,n):null;let m,g=-1,h=null;i&&(h=new ResizeObserver(v=>{let[_]=v;_&&_.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{h&&h.observe(t)})),n()}),u&&!s&&h.observe(u),h.observe(t));let b=s?er(e):null;return s&&function v(){const _=er(e);!b||_.x===b.x&&_.y===b.y&&_.width===b.width&&_.height===b.height||n(),b=_,m=requestAnimationFrame(v)}(),n(),()=>{d.forEach(v=>{o&&v.removeEventListener("scroll",n),a&&v.removeEventListener("resize",n)}),f&&f(),h&&h.disconnect(),h=null,s&&cancelAnimationFrame(m)}}const s2=(e,t,n)=>{const r=new Map,o={platform:i2,...n},a={...o.platform,_c:r};return G8(e,t,{...o,platform:a})},c2=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?xv({element:r.current,padding:o}).fn(n):{}:r?xv({element:r,padding:o}).fn(n):{}}}};var fl=typeof document<"u"?c.useLayoutEffect:c.useEffect;function pl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!pl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!pl(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Nv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zv(e,t){const n=Nv(e);return Math.round(t*n)/n}function Rv(e){const t=D.useRef(e);return fl(()=>{t.current=e}),t}function u2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[d,f]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=D.useState(r);pl(m,r)||g(r);const[h,b]=D.useState(null),[v,_]=D.useState(null),y=D.useCallback(I=>{I!=T.current&&(T.current=I,b(I))},[b]),w=D.useCallback(I=>{I!==M.current&&(M.current=I,_(I))},[_]),S=a||h,P=i||v,T=D.useRef(null),M=D.useRef(null),$=D.useRef(d),k=Rv(s),F=Rv(o),x=D.useCallback(()=>{if(!T.current||!M.current)return;const I={placement:t,strategy:n,middleware:m};F.current&&(I.platform=F.current),s2(T.current,M.current,I).then(J=>{const j={...J,isPositioned:!0};R.current&&!pl($.current,j)&&($.current=j,Rt.flushSync(()=>{f(j)}))})},[m,t,n,F]);fl(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,f(I=>({...I,isPositioned:!1})))},[u]);const R=D.useRef(!1);fl(()=>(R.current=!0,()=>{R.current=!1}),[]),fl(()=>{if(S&&(T.current=S),P&&(M.current=P),S&&P){if(k.current)return k.current(S,P,x);x()}},[S,P,x,k]);const O=D.useMemo(()=>({reference:T,floating:M,setReference:y,setFloating:w}),[y,w]),A=D.useMemo(()=>({reference:S,floating:P}),[S,P]),V=D.useMemo(()=>{const I={position:n,left:0,top:0};if(!A.floating)return I;const J=zv(A.floating,d.x),j=zv(A.floating,d.y);return l?{...I,transform:"translate("+J+"px, "+j+"px)",...Nv(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:J,top:j}},[n,l,A.floating,d.x,d.y]);return D.useMemo(()=>({...d,update:x,refs:O,elements:A,floatingStyles:V}),[d,x,O,A,V])}const d2=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return c.createElement(ce.svg,N({},a,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:c.createElement("polygon",{points:"0,0 30,0 15,10"}))});function Yu(e){const[t,n]=c.useState(void 0);return pn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,l;if("borderBoxSize"in a){const s=a.borderBoxSize,u=Array.isArray(s)?s[0]:s;i=u.inlineSize,l=u.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Kv="Popper",[Vv,Vr]=Ke(Kv),[f2,Bv]=Vv(Kv),p2=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return c.createElement(f2,{scope:t,anchor:r,onAnchorChange:o},n)},m2="PopperAnchor",g2=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Bv(m2,n),i=c.useRef(null),l=ye(t,i);return c.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:c.createElement(ce.div,N({},o,{ref:l}))}),jv="PopperContent",[h2,b2]=Vv(jv),v2=c.forwardRef((e,t)=>{var n,r,o,a,i,l,s,u;const{__scopePopper:d,side:f="bottom",sideOffset:m=0,align:g="center",alignOffset:h=0,arrowPadding:b=0,collisionBoundary:v=[],collisionPadding:_=0,sticky:y="partial",hideWhenDetached:w=!1,avoidCollisions:S=!0,onPlaced:P,...T}=e,M=Bv(jv,d),[$,k]=c.useState(null),F=ye(t,Se=>k(Se)),[x,R]=c.useState(null),O=Yu(x),A=(n=O==null?void 0:O.width)!==null&&n!==void 0?n:0,V=(r=O==null?void 0:O.height)!==null&&r!==void 0?r:0,I=f+(g!=="center"?"-"+g:""),J=typeof _=="number"?_:{top:0,right:0,bottom:0,left:0,..._},j=Array.isArray(v)?v:[v],U=j.length>0,L={padding:J,boundary:j.filter(x2),altBoundary:U},{refs:B,floatingStyles:Y,placement:W,isPositioned:G,middlewareData:re}=u2({strategy:"fixed",placement:I,whileElementsMounted:l2,elements:{reference:M.anchor},middleware:[Q8({mainAxis:m+V,alignmentAxis:h}),S&&e2({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?t2():void 0,...L}),S&&J8({...L}),n2({...L,apply:({elements:Se,rects:Mn,availableWidth:Fn,availableHeight:io})=>{const{width:lo,height:cn}=Mn.reference,zt=Se.floating.style;zt.setProperty("--radix-popper-available-width",`${Fn}px`),zt.setProperty("--radix-popper-available-height",`${io}px`),zt.setProperty("--radix-popper-anchor-width",`${lo}px`),zt.setProperty("--radix-popper-anchor-height",`${cn}px`)}}),x&&c2({element:x,padding:b}),w2({arrowWidth:A,arrowHeight:V}),w&&Z8({strategy:"referenceHidden"})]}),[oe,ae]=Uv(W),ne=je(P);pn(()=>{G&&(ne==null||ne())},[G,ne]);const ee=(o=re.arrow)===null||o===void 0?void 0:o.x,se=(a=re.arrow)===null||a===void 0?void 0:a.y,_e=((i=re.arrow)===null||i===void 0?void 0:i.centerOffset)!==0,[le,pe]=c.useState();return pn(()=>{$&&pe(window.getComputedStyle($).zIndex)},[$]),c.createElement("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:G?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[(l=re.transformOrigin)===null||l===void 0?void 0:l.x,(s=re.transformOrigin)===null||s===void 0?void 0:s.y].join(" ")},dir:e.dir},c.createElement(h2,{scope:d,placedSide:oe,onArrowChange:R,arrowX:ee,arrowY:se,shouldHideArrow:_e},c.createElement(ce.div,N({"data-side":oe,"data-align":ae},T,{ref:F,style:{...T.style,animation:G?void 0:"none",opacity:(u=re.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),y2="PopperArrow",$2={top:"bottom",right:"left",bottom:"top",left:"right"},_2=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=b2(y2,r),i=$2[a.placedSide];return c.createElement("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},c.createElement(d2,N({},o,{ref:n,style:{...o.style,display:"block"}})))});function x2(e){return e!==null}const w2=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;const{placement:l,rects:s,middlewareData:u}=t,f=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=f?0:e.arrowWidth,g=f?0:e.arrowHeight,[h,b]=Uv(l),v={start:"0%",center:"50%",end:"100%"}[b],_=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+m/2,y=((a=(i=u.arrow)===null||i===void 0?void 0:i.y)!==null&&a!==void 0?a:0)+g/2;let w="",S="";return h==="bottom"?(w=f?v:`${_}px`,S=`${-g}px`):h==="top"?(w=f?v:`${_}px`,S=`${s.floating.height+g}px`):h==="right"?(w=`${-g}px`,S=f?v:`${y}px`):h==="left"&&(w=`${s.floating.width+g}px`,S=f?v:`${y}px`),{data:{x:w,y:S}}}});function Uv(e){const[t,n="center"]=e.split("-");return[t,n]}const ml=p2,qu=g2,Xu=v2,Ju=_2,[gl,MV]=Ke("Tooltip",[Vr]),hl=Vr(),E2="TooltipProvider",S2=700,Zu="tooltip.open",[D2,Qu]=gl(E2),P2=e=>{const{__scopeTooltip:t,delayDuration:n=S2,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,l]=c.useState(!0),s=c.useRef(!1),u=c.useRef(0);return c.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),c.createElement(D2,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:c.useCallback(()=>{window.clearTimeout(u.current),l(!1)},[]),onClose:c.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>l(!0),r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:c.useCallback(d=>{s.current=d},[]),disableHoverableContent:o},a)},ed="Tooltip",[T2,aa]=gl(ed),C2=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:l}=e,s=Qu(ed,e.__scopeTooltip),u=hl(t),[d,f]=c.useState(null),m=nt(),g=c.useRef(0),h=i??s.disableHoverableContent,b=l??s.delayDuration,v=c.useRef(!1),[_=!1,y]=Ue({prop:r,defaultProp:o,onChange:M=>{M?(s.onOpen(),document.dispatchEvent(new CustomEvent(Zu))):s.onClose(),a==null||a(M)}}),w=c.useMemo(()=>_?v.current?"delayed-open":"instant-open":"closed",[_]),S=c.useCallback(()=>{window.clearTimeout(g.current),v.current=!1,y(!0)},[y]),P=c.useCallback(()=>{window.clearTimeout(g.current),y(!1)},[y]),T=c.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,y(!0)},b)},[b,y]);return c.useEffect(()=>()=>window.clearTimeout(g.current),[]),c.createElement(ml,u,c.createElement(T2,{scope:t,contentId:m,open:_,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:c.useCallback(()=>{s.isOpenDelayed?T():S()},[s.isOpenDelayed,T,S]),onTriggerLeave:c.useCallback(()=>{h?P():window.clearTimeout(g.current)},[P,h]),onOpen:S,onClose:P,disableHoverableContent:h},n))},Wv="TooltipTrigger",k2=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=aa(Wv,n),a=Qu(Wv,n),i=hl(n),l=c.useRef(null),s=ye(t,l,o.onTriggerChange),u=c.useRef(!1),d=c.useRef(!1),f=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),c.createElement(qu,N({asChild:!0},i),c.createElement(ce.button,N({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:s,onPointerMove:Q(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Q(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:Q(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Q(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Q(e.onBlur,o.onClose),onClick:Q(e.onClick,o.onClose)})))}),Hv="TooltipPortal",[A2,I2]=gl(Hv,{forceMount:void 0}),O2=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=aa(Hv,t);return c.createElement(A2,{scope:t,forceMount:n},c.createElement(We,{present:n||a.open},c.createElement(_o,{asChild:!0,container:o},r)))},ia="TooltipContent",M2=c.forwardRef((e,t)=>{const n=I2(ia,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=aa(ia,e.__scopeTooltip);return c.createElement(We,{present:r||i.open},i.disableHoverableContent?c.createElement(Gv,N({side:o},a,{ref:t})):c.createElement(F2,N({side:o},a,{ref:t})))}),F2=c.forwardRef((e,t)=>{const n=aa(ia,e.__scopeTooltip),r=Qu(ia,e.__scopeTooltip),o=c.useRef(null),a=ye(t,o),[i,l]=c.useState(null),{trigger:s,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,m=c.useCallback(()=>{l(null),f(!1)},[f]),g=c.useCallback((h,b)=>{const v=h.currentTarget,_={x:h.clientX,y:h.clientY},y=K2(_,v.getBoundingClientRect()),w=V2(_,y),S=B2(b.getBoundingClientRect()),P=U2([...w,...S]);l(P),f(!0)},[f]);return c.useEffect(()=>()=>m(),[m]),c.useEffect(()=>{if(s&&d){const h=v=>g(v,d),b=v=>g(v,s);return s.addEventListener("pointerleave",h),d.addEventListener("pointerleave",b),()=>{s.removeEventListener("pointerleave",h),d.removeEventListener("pointerleave",b)}}},[s,d,g,m]),c.useEffect(()=>{if(i){const h=b=>{const v=b.target,_={x:b.clientX,y:b.clientY},y=(s==null?void 0:s.contains(v))||(d==null?void 0:d.contains(v)),w=!j2(_,i);y?m():w&&(m(),u())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[s,d,i,u,m]),c.createElement(Gv,N({},e,{ref:a}))}),[L2,N2]=gl(ed,{isInside:!1}),Gv=c.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...l}=e,s=aa(ia,n),u=hl(n),{onClose:d}=s;return c.useEffect(()=>(document.addEventListener(Zu,d),()=>document.removeEventListener(Zu,d)),[d]),c.useEffect(()=>{if(s.trigger){const f=m=>{const g=m.target;g!=null&&g.contains(s.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[s.trigger,d]),c.createElement($o,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d},c.createElement(Xu,N({"data-state":s.stateAttribute},u,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),c.createElement(as,null,r),c.createElement(L2,{scope:n,isInside:!0},c.createElement(ap,{id:s.contentId,role:"tooltip"},o||r))))}),z2="TooltipArrow",R2=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=hl(n);return N2(z2,n).isInside?null:c.createElement(Ju,N({},o,r,{ref:t}))});function K2(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function V2(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function B2(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function j2(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const l=t[a].x,s=t[a].y,u=t[i].x,d=t[i].y;s>r!=d>r&&n<(u-l)*(r-s)/(d-s)+l&&(o=!o)}return o}function U2(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),W2(t)}function W2(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const H2=P2,G2=C2,Y2=k2,q2=O2,X2=M2,J2=R2,Z2=ie.keyframes`
|
|
1340
1340
|
from {
|
|
1341
1341
|
opacity: 0;
|
|
1342
1342
|
transform: translateX(-10px);
|
|
@@ -1471,7 +1471,7 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var le=_e(ae,se,G,re,oe+
|
|
|
1471
1471
|
&:disabled {
|
|
1472
1472
|
cursor: not-allowed;
|
|
1473
1473
|
}
|
|
1474
|
-
`,nd=e=>{const{children:t,dir:n="ltr",tooltipContent:r}=e,o=W8(e),a=c.useRef(null),{labelProps:i,inputProps:l}=H8(e,o,a),s=n==="rtl"?"row-reverse":"row",u=l["aria-invalid"]===!0;if(!t){if(!e["aria-label"])throw new Error("If no children are provided, an aria-label must be provided");return X(ge,{flexDirection:s,position:"relative",as:"span",children:[E(Zv,{...l,ref:a,$invalid:u}),l.checked?E(Jv,{}):null]})}const d=l.disabled?"not-allowed":"pointer";return X(Re,{...i,pointer:d,flexDirection:s,children:[X(ge,{flexDirection:s,position:"relative",as:"span",children:[E(Zv,{...l,ref:a,$invalid:u}),l.checked?E(Jv,{}):null]}),X(ge,{as:"span",children:[t,E(ge,{as:"span",ml:p.spacing_100,mr:p.spacing_100,children:r?E(Qe,{children:r}):null})]})]})},Br={top:"top",bottom:"top",left:"left",right:"left"},bl={top:"bottom",bottom:"top",left:"right",right:"left"},s9={top:"left",left:"top"},rd={top:"height",left:"width"},Qv={width:"totalWidth",height:"totalHeight"},vl={};let et=typeof document<"u"&&window.visualViewport;function e0(e){let t=0,n=0,r=0,o=0,a=0,i=0,l={},s=(et==null?void 0:et.scale)>1;if(e.tagName==="BODY"){let f=document.documentElement;r=f.clientWidth,o=f.clientHeight;var u;t=(u=et==null?void 0:et.width)!==null&&u!==void 0?u:r;var d;n=(d=et==null?void 0:et.height)!==null&&d!==void 0?d:o,l.top=f.scrollTop||e.scrollTop,l.left=f.scrollLeft||e.scrollLeft,et&&(a=et.offsetTop,i=et.offsetLeft)}else({width:t,height:n,top:a,left:i}=jr(e)),l.top=e.scrollTop,l.left=e.scrollLeft,r=t,o=n;return wc()&&(e.tagName==="BODY"||e.tagName==="HTML")&&s&&(l.top=0,l.left=0,a=et.pageTop,i=et.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:l,top:a,left:i}}function c9(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function t0(e,t,n,r,o,a,i){let l=o.scroll[e],s=r[rd[e]],u=r.scroll[Br[e]]+a,d=s+r.scroll[Br[e]]-a,f=t-l+i[e]-r[Br[e]],m=t-l+n+i[e]-r[Br[e]];return f<u?u-f:m>d?Math.max(d-m,u-f):0}function u9(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 n0(e){if(vl[e])return vl[e];let[t,n]=e.split(" "),r=Br[t]||"right",o=s9[r];Br[n]||(n="center");let a=rd[r],i=rd[o];return vl[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:a,crossSize:i},vl[e]}function od(e,t,n,r,o,a,i,l,s,u){let{placement:d,crossPlacement:f,axis:m,crossAxis:g,size:h,crossSize:b}=r,v={};v[g]=e[g],f==="center"?v[g]+=(e[b]-n[b])/2:f!==g&&(v[g]+=e[b]-n[b]),v[g]+=a;const _=e[g]-n[b]+s+u,y=e[g]+e[b]-s-u;if(v[g]=fi(v[g],_,y),d===m){const w=l?i[h]:t[Qv[h]];v[bl[m]]=Math.floor(w-e[m]+o)}else v[m]=Math.floor(e[m]+e[h]+o);return v}function d9(e,t,n,r,o,a,i,l){const s=r?n.height:t[Qv.height];let u=e.top!=null?n.top+e.top:n.top+(s-e.bottom-i),d=l!=="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,d)}function r0(e,t,n,r,o,a){let{placement:i,axis:l,size:s}=a;return i===l?Math.max(0,n[l]-e[l]-e.scroll[l]+t[l]-r[l]-r[bl[l]]-o):Math.max(0,e[s]+e[l]+e.scroll[l]-t[l]-n[l]-n[s]-r[l]-r[bl[l]]-o)}function f9(e,t,n,r,o,a,i,l,s,u,d,f,m,g,h,b){let v=n0(e),{size:_,crossAxis:y,crossSize:w,placement:S,crossPlacement:P}=v,T=od(t,l,n,v,d,f,u,m,h,b),M=d,$=r0(l,u,t,o,a+d,v);if(i&&r[_]>$){let U=n0(`${bl[S]} ${P}`),F=od(t,l,n,U,d,f,u,m,h,b);r0(l,u,t,o,a+d,U)>$&&(v=U,T=F,M=d)}let k="bottom";v.axis==="top"?v.placement==="top"?k="top":v.placement==="bottom"&&(k="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?k="bottom":v.crossPlacement==="bottom"&&(k="top"));let L=t0(y,T[y],n[w],l,s,a,u);T[y]+=L;let x=d9(T,l,u,m,o,a,n.height,k);g&&g<x&&(x=g),n.height=Math.min(n.height,x),T=od(t,l,n,v,M,f,u,m,h,b),L=t0(y,T[y],n[w],l,s,a,u),T[y]+=L;let R={},O=t[y]+.5*t[w]-T[y];const A=h/2+b,V=n[w]-h/2-b,I=t[y]-T[y]+h/2,J=t[y]+t[w]-T[y]-h/2,j=fi(O,I,J);return R[y]=fi(j,A,V),{position:T,maxHeight:x,arrowOffsetLeft:R.left,arrowOffsetTop:R.top,placement:v.placement}}function p9(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:a,shouldFlip:i,boundaryElement:l,offset:s,crossOffset:u,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:m=0}=e,g=r instanceof HTMLElement?m9(r):document.documentElement,h=g===document.documentElement;const b=window.getComputedStyle(g).position;let v=!!b&&b!=="static",_=h?jr(n):o0(n,g);if(!h){let{marginTop:$,marginLeft:k}=window.getComputedStyle(n);_.top+=parseInt($,10)||0,_.left+=parseInt(k,10)||0}let y=jr(r),w=u9(r);y.width+=w.left+w.right,y.height+=w.top+w.bottom;let S=c9(o),P=e0(l),T=e0(g),M=l.tagName==="BODY"?jr(g):o0(g,l);return g.tagName==="HTML"&&l.tagName==="BODY"&&(T.scroll.top=0,T.scroll.left=0),f9(t,_,y,S,w,a,i,P,T,M,s,u,v,d,f,m)}function jr(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:i,clientTop:l,clientLeft:s}=document.documentElement;return{top:t+a-l,left:n+i-s,width:r,height:o}}function o0(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:o,left:a,width:i,height:l}=e.getBoundingClientRect();r={top:o,left:a,width:i,height:l}}else{r=jr(e);let o=jr(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 m9(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!a0(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!a0(t);)t=t.parentElement;return t||document.documentElement}function a0(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 i0=new WeakMap;function g9(e){let{triggerRef:t,isOpen:n,onClose:r}=e;c.useEffect(()=>{if(!n||r===null)return;let o=a=>{let i=a.target;if(!t.current||i instanceof Node&&!i.contains(t.current)||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement)return;let l=r||i0.get(t.current);l&&l()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let Me=typeof document<"u"&&window.visualViewport;function h9(e){let{direction:t}=at(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:a=o,placement:i="bottom",containerPadding:l=12,shouldFlip:s=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:m=!0,isOpen:g=!0,onClose:h,maxHeight:b,arrowBoundaryOffset:v=0}=e,[_,y]=c.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),w=[m,i,o.current,r.current,a.current,l,s,u,d,f,g,t,b,v,n],S=c.useRef(Me==null?void 0:Me.scale);c.useEffect(()=>{g&&(S.current=Me==null?void 0:Me.scale)},[g]);let P=c.useCallback(()=>{if(m===!1||!g||!o.current||!r.current||!u||(Me==null?void 0:Me.scale)!==S.current)return;let k=null;if(a.current&&a.current.contains(document.activeElement)){let A=document.activeElement.getBoundingClientRect(),V=a.current.getBoundingClientRect();k={type:"top",offset:A.top-V.top},k.offset>V.height/2&&(k.type="bottom",k.offset=A.bottom-V.bottom)}let L=o.current;if(!b&&o.current){var x;L.style.top="0px",L.style.bottom="";var R;L.style.maxHeight=((R=(x=window.visualViewport)===null||x===void 0?void 0:x.height)!==null&&R!==void 0?R:window.innerHeight)+"px"}let O=p9({placement:v9(i,t),overlayNode:o.current,targetNode:r.current,scrollNode:a.current||o.current,padding:l,shouldFlip:s,boundaryElement:u,offset:d,crossOffset:f,maxHeight:b,arrowSize:n,arrowBoundaryOffset:v});if(L.style.top="",L.style.bottom="",L.style.left="",L.style.right="",Object.keys(O.position).forEach(A=>L.style[A]=O.position[A]+"px"),L.style.maxHeight=O.maxHeight!=null?O.maxHeight+"px":void 0,k){let A=document.activeElement.getBoundingClientRect(),V=a.current.getBoundingClientRect(),I=A[k.type]-V[k.type];a.current.scrollTop+=I-k.offset}y(O)},w);Te(P,w),b9(P),Sg({ref:o,onResize:P}),Sg({ref:r,onResize:P});let T=c.useRef(!1);Te(()=>{let k,L=()=>{T.current=!0,clearTimeout(k),k=setTimeout(()=>{T.current=!1},500),P()},x=()=>{T.current&&L()};return Me==null||Me.addEventListener("resize",L),Me==null||Me.addEventListener("scroll",x),()=>{Me==null||Me.removeEventListener("resize",L),Me==null||Me.removeEventListener("scroll",x)}},[P]);let M=c.useCallback(()=>{T.current||h()},[h,T]);g9({triggerRef:r,isOpen:g,onClose:h&&M});var $;return{overlayProps:{style:{position:"absolute",zIndex:1e5,..._.position,maxHeight:($=_.maxHeight)!==null&&$!==void 0?$:"100vh"}},placement:_.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:_.arrowOffsetLeft,top:_.arrowOffsetTop}},updatePosition:P}}function b9(e){Te(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function v9(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const ln=[];function l0(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:a=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:l}=e;c.useEffect(()=>(o&&ln.push(t),()=>{let h=ln.indexOf(t);h>=0&&ln.splice(h,1)}),[o,t]);let s=()=>{ln[ln.length-1]===t&&n&&n()},u=h=>{(!l||l(h.target))&&ln[ln.length-1]===t&&(h.stopPropagation(),h.preventDefault())},d=h=>{(!l||l(h.target))&&(ln[ln.length-1]===t&&(h.stopPropagation(),h.preventDefault()),s())},f=h=>{h.key==="Escape"&&!i&&!h.nativeEvent.isComposing&&(h.stopPropagation(),h.preventDefault(),s())};uC({ref:t,onInteractOutside:a&&o?d:null,onInteractOutsideStart:u});let{focusWithinProps:m}=Fo({isDisabled:!r,onBlurWithin:h=>{!h.relatedTarget||YC(h.relatedTarget)||(!l||l(h.relatedTarget))&&n()}}),g=h=>{h.target===h.currentTarget&&h.preventDefault()};return{overlayProps:{onKeyDown:f,...m},underlayProps:{onPointerDown:g}}}function ad(e,t,n){let{type:r}=e,{isOpen:o}=t;c.useEffect(()=>{n&&n.current&&i0.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let i=ct();return{triggerProps:{"aria-haspopup":a,"aria-expanded":o,"aria-controls":o?i:null,onPress:t.toggle},overlayProps:{id:i}}}const id=typeof document<"u"&&window.visualViewport,y9=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let yl=0,ld;function $9(e={}){let{isDisabled:t}=e;Te(()=>{if(!t)return yl++,yl===1&&(Co()?ld=x9():ld=_9()),()=>{yl--,yl===0&&ld()}},[t])}function _9(){return Wt(Ur(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Ur(document.documentElement,"overflow","hidden"))}function x9(){let e,t,n=u=>{e=Pc(u.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Ur(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 d=u.target;c0(d)&&d!==document.activeElement&&(u.preventDefault(),l(),d.style.transform="translateY(-2000px)",d.focus(),requestAnimationFrame(()=>{d.style.transform=""})),t&&t()},a=u=>{let d=u.target;c0(d)&&(l(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",id&&(id.height<window.innerHeight?requestAnimationFrame(()=>{s0(d)}):id.addEventListener("resize",()=>s0(d),{once:!0}))}))},i=null,l=()=>{if(i)return;let u=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;i=Wt(la(window,"scroll",u),Ur(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Ur(document.documentElement,"overflow","hidden"),Ur(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},s=Wt(la(document,"touchstart",n,{passive:!1,capture:!0}),la(document,"touchmove",r,{passive:!1,capture:!0}),la(document,"touchend",o,{passive:!1,capture:!0}),la(document,"focus",a,!0));return()=>{t==null||t(),i==null||i(),s()}}function Ur(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function la(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function s0(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=Pc(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 c0(e){return e instanceof HTMLInputElement&&!y9.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var u0={};u0={dismiss:"تجاهل"};var d0={};d0={dismiss:"Отхвърляне"};var f0={};f0={dismiss:"Odstranit"};var p0={};p0={dismiss:"Luk"};var m0={};m0={dismiss:"Schließen"};var g0={};g0={dismiss:"Απόρριψη"};var h0={};h0={dismiss:"Dismiss"};var b0={};b0={dismiss:"Descartar"};var v0={};v0={dismiss:"Lõpeta"};var y0={};y0={dismiss:"Hylkää"};var $0={};$0={dismiss:"Rejeter"};var _0={};_0={dismiss:"התעלם"};var x0={};x0={dismiss:"Odbaci"};var w0={};w0={dismiss:"Elutasítás"};var E0={};E0={dismiss:"Ignora"};var S0={};S0={dismiss:"閉じる"};var D0={};D0={dismiss:"무시"};var P0={};P0={dismiss:"Atmesti"};var T0={};T0={dismiss:"Nerādīt"};var C0={};C0={dismiss:"Lukk"};var k0={};k0={dismiss:"Negeren"};var A0={};A0={dismiss:"Zignoruj"};var I0={};I0={dismiss:"Descartar"};var O0={};O0={dismiss:"Dispensar"};var M0={};M0={dismiss:"Revocare"};var F0={};F0={dismiss:"Пропустить"};var L0={};L0={dismiss:"Zrušiť"};var N0={};N0={dismiss:"Opusti"};var z0={};z0={dismiss:"Odbaci"};var R0={};R0={dismiss:"Avvisa"};var K0={};K0={dismiss:"Kapat"};var V0={};V0={dismiss:"Скасувати"};var B0={};B0={dismiss:"取消"};var j0={};j0={dismiss:"關閉"};var U0={};U0={"ar-AE":u0,"bg-BG":d0,"cs-CZ":f0,"da-DK":p0,"de-DE":m0,"el-GR":g0,"en-US":h0,"es-ES":b0,"et-EE":v0,"fi-FI":y0,"fr-FR":$0,"he-IL":_0,"hr-HR":x0,"hu-HU":w0,"it-IT":E0,"ja-JP":S0,"ko-KR":D0,"lt-LT":P0,"lv-LV":T0,"nb-NO":C0,"nl-NL":k0,"pl-PL":A0,"pt-BR":I0,"pt-PT":O0,"ro-RO":M0,"ru-RU":F0,"sk-SK":L0,"sl-SI":N0,"sr-SP":z0,"sv-SE":R0,"tr-TR":K0,"uk-UA":V0,"zh-CN":B0,"zh-TW":j0};function w9(e){return e&&e.__esModule?e.default:e}function W0(e){let{onDismiss:t,...n}=e,r=_t(w9(U0),"@react-aria/overlays"),o=$r(n,r.format("dismiss")),a=()=>{t&&t()};return D.default.createElement(Si,null,D.default.createElement("button",{...o,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}let sa=new WeakMap,ft=[];function H0(e,t=document.body){let n=new Set(e),r=new Set,o=s=>{for(let m of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(m);let u=m=>{if(n.has(m)||r.has(m.parentElement)&&m.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(m.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),f=u(s);if(f===NodeFilter.FILTER_ACCEPT&&a(s),f!==NodeFilter.FILTER_REJECT){let m=d.nextNode();for(;m!=null;)a(m),m=d.nextNode()}},a=s=>{var u;let d=(u=sa.get(s))!==null&&u!==void 0?u:0;s.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&s.setAttribute("aria-hidden","true"),r.add(s),sa.set(s,d+1))};ft.length&&ft[ft.length-1].disconnect(),o(t);let i=new MutationObserver(s=>{for(let u of s)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(u.target))){for(let d of u.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of u.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&o(d)}});i.observe(t,{childList:!0,subtree:!0});let l={observe(){i.observe(t,{childList:!0,subtree:!0})},disconnect(){i.disconnect()}};return ft.push(l),()=>{i.disconnect();for(let s of r){let u=sa.get(s);u===1?(s.removeAttribute("aria-hidden"),sa.delete(s)):sa.set(s,u-1)}l===ft[ft.length-1]?(ft.pop(),ft.length&&ft[ft.length-1].observe()):ft.splice(ft.indexOf(l),1)}}function E9(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:i,...l}=e,{overlayProps:s,underlayProps:u}=l0({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:i},r),{overlayProps:d,arrowProps:f,placement:m}=h9({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return $9({isDisabled:o||!t.isOpen}),Te(()=>{if(t.isOpen&&!o&&r.current)return H0([r.current])},[o,t.isOpen,r]),{popoverProps:fe(s,d),arrowProps:f,underlayProps:u,placement:m}}const S9=c.createContext({});function D9(){var e;return(e=c.useContext(S9))!==null&&e!==void 0?e:{}}const P9=D.default.createContext(null);function T9(e){let t=li(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,a]=c.useState(!1),i=c.useMemo(()=>({contain:o,setContain:a}),[o,a]),{getContainer:l}=D9();if(!e.portalContainer&&l&&(n=l()),!n)return null;let s=e.children;return e.disableFocusManagement||(s=D.default.createElement(jC,{restoreFocus:!0,contain:o&&!r},s)),s=D.default.createElement(P9.Provider,{value:i},D.default.createElement(eC,null,s)),Rt.default.createPortal(s,n)}function G0(e){return di()?e.altKey:e.ctrlKey}function Wr(e){return Gt()?e.metaKey:e.ctrlKey}const C9=1e3;function sd(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=c.useRef({search:"",timeout:null}).current,a=i=>{let l=k9(i.key);if(!l||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target))return;l===" "&&o.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),o.search+=l;let s=t.getKeyForSearch(o.search,n.focusedKey);s==null&&(s=t.getKeyForSearch(o.search)),s!=null&&(n.setFocusedKey(s),r&&r(s)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},C9)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:null}}}function k9(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Y0(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:a=!1,disallowEmptySelection:i=!1,disallowSelectAll:l=!1,selectOnFocus:s=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:m,scrollRef:g=r}=e,{direction:h}=at(),b=$=>{if($.altKey&&$.key==="Tab"&&$.preventDefault(),!r.current.contains($.target))return;const k=(j,U)=>{j!=null&&(t.setFocusedKey(j,U),$.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(j):s&&!G0($)&&t.replaceSelection(j))};switch($.key){case"ArrowDown":if(n.getKeyBelow){var L,x;$.preventDefault();let j=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n);j==null&&a&&(j=(x=n.getFirstKey)===null||x===void 0?void 0:x.call(n,t.focusedKey)),k(j)}break;case"ArrowUp":if(n.getKeyAbove){var R,O;$.preventDefault();let j=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(R=n.getLastKey)===null||R===void 0?void 0:R.call(n);j==null&&a&&(j=(O=n.getLastKey)===null||O===void 0?void 0:O.call(n,t.focusedKey)),k(j)}break;case"ArrowLeft":if(n.getKeyLeftOf){var A,V;$.preventDefault();let j=n.getKeyLeftOf(t.focusedKey);j==null&&a&&(j=h==="rtl"?(A=n.getFirstKey)===null||A===void 0?void 0:A.call(n,t.focusedKey):(V=n.getLastKey)===null||V===void 0?void 0:V.call(n,t.focusedKey)),k(j,h==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var I,J;$.preventDefault();let j=n.getKeyRightOf(t.focusedKey);j==null&&a&&(j=h==="rtl"?(I=n.getLastKey)===null||I===void 0?void 0:I.call(n,t.focusedKey):(J=n.getFirstKey)===null||J===void 0?void 0:J.call(n,t.focusedKey)),k(j,h==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){$.preventDefault();let j=n.getFirstKey(t.focusedKey,Wr($));t.setFocusedKey(j),Wr($)&&$.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(j):s&&t.replaceSelection(j)}break;case"End":if(n.getLastKey){$.preventDefault();let j=n.getLastKey(t.focusedKey,Wr($));t.setFocusedKey(j),Wr($)&&$.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(j):s&&t.replaceSelection(j)}break;case"PageDown":if(n.getKeyPageBelow){$.preventDefault();let j=n.getKeyPageBelow(t.focusedKey);k(j)}break;case"PageUp":if(n.getKeyPageAbove){$.preventDefault();let j=n.getKeyPageAbove(t.focusedKey);k(j)}break;case"a":Wr($)&&t.selectionMode==="multiple"&&l!==!0&&($.preventDefault(),t.selectAll());break;case"Escape":$.preventDefault(),i||t.clearSelection();break;case"Tab":if(!f){if($.shiftKey)r.current.focus();else{let j=Zt(r.current,{tabbable:!0}),U,F;do F=j.lastChild(),F&&(U=F);while(F);U&&!U.contains(document.activeElement)&&It(U)}break}}},v=c.useRef({top:0,left:0});_r(g,"scroll",m?null:()=>{v.current={top:g.current.scrollTop,left:g.current.scrollLeft}});let _=$=>{if(t.isFocused){$.currentTarget.contains($.target)||t.setFocused(!1);return}if($.currentTarget.contains($.target)){if(t.setFocused(!0),t.focusedKey==null){let x=O=>{O!=null&&(t.setFocusedKey(O),s&&t.replaceSelection(O))},R=$.relatedTarget;var k,L;R&&$.currentTarget.compareDocumentPosition(R)&Node.DOCUMENT_POSITION_FOLLOWING?x((k=t.lastSelectedKey)!==null&&k!==void 0?k:n.getLastKey()):x((L=t.firstSelectedKey)!==null&&L!==void 0?L:n.getFirstKey())}else m||(g.current.scrollTop=v.current.top,g.current.scrollLeft=v.current.left);if(!m&&t.focusedKey!=null){let x=g.current.querySelector(`[data-key="${t.focusedKey}"]`);x&&(It(x),xi()==="keyboard"&&kc(x,{containingElement:r.current}))}}},y=$=>{$.currentTarget.contains($.relatedTarget)||t.setFocused(!1)};const w=c.useRef(o);c.useEffect(()=>{if(w.current){let $=null;o==="first"&&($=n.getFirstKey()),o==="last"&&($=n.getLastKey());let k=t.selectedKeys;k.size&&($=k.values().next().value),t.setFocused(!0),t.setFocusedKey($),$==null&&!d&&No(r.current)}w.current=!1},[]);let S=c.useRef(t.focusedKey);c.useEffect(()=>{let $=xi();if(t.isFocused&&t.focusedKey!=null&&(g!=null&&g.current)){let k=g.current.querySelector(`[data-key="${t.focusedKey}"]`);k&&$==="keyboard"&&(m||Pg(g.current,k),kc(k,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&S.current!=null&&No(r.current),S.current=t.focusedKey},[m,g,t.focusedKey,t.isFocused,r]);let P={onKeyDown:b,onFocus:_,onBlur:y,onMouseDown($){g.current===$.target&&$.preventDefault()}},{typeSelectProps:T}=sd({keyboardDelegate:n,selectionManager:t});u||(P=fe(T,P));let M;return d||(M=t.focusedKey==null?0:-1),{collectionProps:{...P,tabIndex:M}}}function A9(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:a,focus:i,isDisabled:l,onAction:s,allowsDifferentPressOrigin:u}=e,d=x=>{if(x.pointerType==="keyboard"&&G0(x))t.toggleSelection(n);else{if(t.selectionMode==="none")return;t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):x&&x.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||x&&(Wr(x)||x.pointerType==="touch"||x.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};c.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!a&&(i?i():document.activeElement!==r.current&&No(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,a]),l=l||t.isDisabled(n);let f={};!a&&!l?f={tabIndex:n===t.focusedKey?0:-1,onFocus(x){x.target===r.current&&t.setFocusedKey(n)}}:l&&(f.onMouseDown=x=>{x.preventDefault()});let m=!l&&t.canSelectItem(n),g=s&&!l,h=g&&(t.selectionBehavior==="replace"?!m:t.isEmpty),b=g&&m&&t.selectionBehavior==="replace",v=h||b,_=c.useRef(null),y=v&&m,w=c.useRef(!1),S=c.useRef(!1),P={};o?(P.onPressStart=x=>{_.current=x.pointerType,w.current=y,x.pointerType==="keyboard"&&(!v||X0())&&d(x)},u?(P.onPressUp=x=>{x.pointerType!=="keyboard"&&d(x)},P.onPress=h?()=>s():null):P.onPress=x=>{if(h||b&&x.pointerType!=="mouse"){if(x.pointerType==="keyboard"&&!q0())return;s()}else x.pointerType!=="keyboard"&&d(x)}):(P.onPressStart=x=>{_.current=x.pointerType,w.current=y,S.current=h,(x.pointerType==="mouse"&&!h||x.pointerType==="keyboard"&&(!s||X0()))&&d(x)},P.onPress=x=>{(x.pointerType==="touch"||x.pointerType==="pen"||x.pointerType==="virtual"||x.pointerType==="keyboard"&&v&&q0()||x.pointerType==="mouse"&&S.current)&&(v?s():d(x))}),f["data-key"]=n,P.preventFocusOnPress=a;let{pressProps:T,isPressed:M}=wr(P),$=b?x=>{_.current==="mouse"&&(x.stopPropagation(),x.preventDefault(),s())}:void 0,{longPressProps:k}=Wg({isDisabled:!y,onLongPress(x){x.pointerType==="touch"&&(d(x),t.setSelectionBehavior("toggle"))}});return{itemProps:fe(f,m||h?T:{},y?k:{},{onDoubleClick:$,onDragStartCapture:x=>{_.current==="touch"&&w.current&&x.preventDefault()}}),isPressed:M,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:l,allowsSelection:m,hasAction:v}}function q0(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function X0(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class $l{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;){if(this.collection.getItem(t).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="${t}"]`)}getKeyPageAbove(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!Ao(n))return this.getFirstKey();let o=n.getBoundingClientRect(),a=r.getBoundingClientRect();if(this.orientation==="horizontal"){let i=o.x-n.scrollLeft,l=Math.max(0,a.x-i+a.width-o.width);for(;r&&a.x-i>l;)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,l=Math.max(0,a.y-i+a.height-o.height);for(;r&&a.y-i>l;)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(!Ao(n))return this.getLastKey();let o=n.getBoundingClientRect(),a=r.getBoundingClientRect();if(this.orientation==="horizontal"){let i=o.x-n.scrollLeft,l=Math.min(n.scrollWidth,a.x-i-a.width+o.width);for(;r&&a.x-i<l;)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,l=Math.min(n.scrollHeight,a.y-i-a.height+o.height);for(;r&&a.y-i<l;)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.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 I9(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:a,autoFocus:i,shouldFocusWrap:l,isVirtualized:s,disallowEmptySelection:u,selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:f,shouldUseVirtualFocus:m,allowsTabNavigation:g}=e,h=Zi({usage:"search",sensitivity:"base"}),b=t.disabledBehavior,v=c.useMemo(()=>a||new $l(n,b==="selection"?new Set:r,o,h),[a,n,r,o,h,b]),{collectionProps:_}=Y0({ref:o,selectionManager:t,keyboardDelegate:v,autoFocus:i,shouldFocusWrap:l,disallowEmptySelection:u,selectOnFocus:d,disallowTypeAhead:f,shouldUseVirtualFocus:m,allowsTabNavigation:g,isVirtualized:s,scrollRef:o});return{listProps:_}}function J0(e){return null}J0.getCollectionNode=function*(t,n){let{childItems:r,title:o,children:a}=t,i=t.title||t.children,l=t.textValue||(typeof i=="string"?i:"")||t["aria-label"]||"";!l&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:i,textValue:l,"aria-label":t["aria-label"],hasChildNodes:O9(t),*childNodes(){if(r)for(let s of r)yield{type:"item",value:s};else if(o){let s=[];D.default.Children.forEach(a,u=>{s.push({type:"item",element:u})}),yield*s}}}};function O9(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&D.default.Children.count(e.children)>0)}let Hr=J0;function Z0(e){return null}Z0.getCollectionNode=function*(t){let{children:n,title:r,items:o}=t;yield{type:"section",props:t,hasChildNodes:!0,rendered:r,"aria-label":t["aria-label"],*childNodes(){if(typeof n=="function"){if(!o)throw new Error("props.children was a function but props.items is missing");for(let a of o)yield{type:"item",value:a,renderer:n}}else{let a=[];D.default.Children.forEach(n,i=>{a.push({type:"item",element:i})}),yield*a}}}};let cd=Z0;class M9{build(t,n){return this.context=n,Q0(()=>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=[];D.default.Children.forEach(n,i=>{o.push(i)});let a=0;for(let i of o){let l=this.getFullNode({element:i,index:a},{});for(let s of l)a++,yield s}}}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 l=(i=a.key)!==null&&i!==void 0?i:a.id;if(l==null)throw new Error("No key found for item");return l}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 s=this.cache.get(t.value);if(s&&(!s.shouldInvalidate||!s.shouldInvalidate(this.context))){s.index=t.index,s.parentKey=o?o.key:null,yield s;return}a=n.renderer(t.value)}if(D.default.isValidElement(a)){let s=a.type;if(typeof s!="function"&&typeof s.getCollectionNode!="function"){let m=typeof a.type=="function"?a.type.name:a.type;throw new Error(`Unknown element <${m}> in collection.`)}let u=s.getCollectionNode(a.props,this.context),d=t.index,f=u.next();for(;!f.done&&f.value;){let m=f.value;t.index=d;let g=m.key;g||(g=m.element?null:this.getKey(a,t,n,r));let b=[...this.getFullNode({...m,key:g,index:d,wrapper:F9(t.wrapper,m.wrapper)},this.getChildState(n,m),r?`${r}${a.key}`:a.key,o)];for(let v of b){if(v.value=m.value||t.value,v.value&&this.cache.set(v.value,v),t.type&&v.type!==t.type)throw new Error(`Unsupported type <${ud(v.type)}> in <${ud(o.type)}>. Only <${ud(t.type)}> is supported.`);d++,yield v}f=u.next(b)}return}if(t.key==null)return;let i=this,l={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:Q0(function*(){if(!t.hasChildNodes)return;let s=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${l.key}${u.key}`),u.index=s;let d=i.getFullNode(u,i.getChildState(n,u),l.key,l);for(let f of d)s++,yield f}})};yield l}constructor(){this.cache=new WeakMap}}function Q0(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 F9(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function ud(e){return e[0].toUpperCase()+e.slice(1)}function L9(e,t,n){let r=c.useMemo(()=>new M9,[]),{children:o,items:a,collection:i}=e;return c.useMemo(()=>{if(i)return i;let s=r.build({children:o,items:a},n);return t(s)},[r,o,a,i,n,t])}function _l(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function N9(e){return z9(e,0)}function z9(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function dd(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...ey(e,t),t],o=[...ey(e,n),n],a=r.slice(0,o.length).findIndex((i,l)=>i!==o[l]);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 ey(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const ty=new WeakMap;function ny(e){let t=ty.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)o.type==="section"?n(_l(o,e)):t++};return n(e),ty.set(e,t),t}const xl=new WeakMap;function R9(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function ry(e,t){let n=xl.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${R9(t)}`}function oy(e,t,n){let r=$n(e,{labelable:!0}),{listProps:o}=I9({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys}),{focusWithinProps:a}=Fo({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),i=ct(e.id);xl.set(t,{id:i,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction});let{labelProps:l,fieldProps:s}=yv({...e,id:i,labelElementType:"span"});return{labelProps:l,listBoxProps:fe(r,a,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...fe(s,o)})}}function ay(e,t,n){let{key:r}=e,o=xl.get(t);var a;let i=(a=e.isDisabled)!==null&&a!==void 0?a:t.disabledKeys.has(r);var l;let s=(l=e.isSelected)!==null&&l!==void 0?l:t.selectionManager.isSelected(r);var u;let d=(u=e.shouldSelectOnPressUp)!==null&&u!==void 0?u:o==null?void 0:o.shouldSelectOnPressUp;var f;let m=(f=e.shouldFocusOnHover)!==null&&f!==void 0?f:o==null?void 0:o.shouldFocusOnHover;var g;let h=(g=e.shouldUseVirtualFocus)!==null&&g!==void 0?g:o==null?void 0:o.shouldUseVirtualFocus;var b;let v=(b=e.isVirtualized)!==null&&b!==void 0?b:o==null?void 0:o.isVirtualized,_=To(),y=To(),w={role:"option","aria-disabled":i||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?s:void 0};if(Gt()&&wc()||(w["aria-label"]=e["aria-label"],w["aria-labelledby"]=_,w["aria-describedby"]=y),v){var S;let x=Number((S=t.collection.getItem(r))===null||S===void 0?void 0:S.index);w["aria-posinset"]=Number.isNaN(x)?void 0:x+1,w["aria-setsize"]=ny(t.collection)}let{itemProps:P,isPressed:T,isFocused:M,hasAction:$,allowsSelection:k}=A9({selectionManager:t.selectionManager,key:r,ref:n,shouldSelectOnPressUp:d,allowsDifferentPressOrigin:d&&m,isVirtualized:v,shouldUseVirtualFocus:h,isDisabled:i,onAction:o!=null&&o.onAction?()=>{var x;return o==null||(x=o.onAction)===null||x===void 0?void 0:x.call(o,r)}:void 0}),{hoverProps:L}=cC({isDisabled:i||!m,onHoverStart(){_i()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r))}});return{optionProps:{...w,...fe(P,L),id:ry(t,r)},labelProps:{id:_},descriptionProps:{id:y},isFocused:M,isFocusVisible:M&&_i(),isSelected:s,isDisabled:i,isPressed:T,allowsSelection:k,hasAction:$}}function K9(e){return e&&e.__esModule?e.default:e}var iy={},ly={};ly={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var sy={};sy={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var cy={};cy={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var uy={};uy={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var dy={};dy={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var fy={};fy={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var py={};py={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var my={};my={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var gy={};gy={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var hy={};hy={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var by={};by={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var vy={};vy={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var yy={};yy={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var $y={};$y={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var _y={};_y={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var xy={};xy={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var wy={};wy={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Ey={};Ey={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Sy={};Sy={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Dy={};Dy={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Py={};Py={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Ty={};Ty={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Cy={};Cy={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var ky={};ky={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Ay={};Ay={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Iy={};Iy={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Oy={};Oy={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var My={};My={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Fy={};Fy={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Ly={};Ly={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Ny={};Ny={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var zy={};zy={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Ry={};Ry={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Ky={};Ky={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"},iy={"ar-AE":ly,"bg-BG":sy,"cs-CZ":cy,"da-DK":uy,"de-DE":dy,"el-GR":fy,"en-US":py,"es-ES":my,"et-EE":gy,"fi-FI":hy,"fr-FR":by,"he-IL":vy,"hr-HR":yy,"hu-HU":$y,"it-IT":_y,"ja-JP":xy,"ko-KR":wy,"lt-LT":Ey,"lv-LV":Sy,"nb-NO":Dy,"nl-NL":Py,"pl-PL":Ty,"pt-BR":Cy,"pt-PT":ky,"ro-RO":Ay,"ru-RU":Iy,"sk-SK":Oy,"sl-SI":My,"sr-SP":Fy,"sv-SE":Ly,"tr-TR":Ny,"uk-UA":zy,"zh-CN":Ry,"zh-TW":Ky};function fd(e,t,n){let{type:r="menu",isDisabled:o,trigger:a="press"}=e,i=ct(),{triggerProps:l,overlayProps:s}=ad({type:r},t,n),u=g=>{if(!o&&!(a==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(a==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("last");break}},d=_t(K9(iy)),{longPressProps:f}=Wg({isDisabled:o||a!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),m={onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!o&&t.toggle(g.pointerType==="virtual"?"first":null)},onPress(g){g.pointerType==="touch"&&!o&&t.toggle()}};return delete l.onPress,{menuTriggerProps:{...l,...a==="press"?m:f,id:i,onKeyDown:u},menuProps:{...s,"aria-labelledby":i,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function ca(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:a=!1,validationState:i,type:l="text",onChange:s=()=>{}}=e,{focusableProps:u}=qc(e,t),{labelProps:d,fieldProps:f,descriptionProps:m,errorMessageProps:g}=ol(e),h=$n(e,{labelable:!0});const b={type:l,pattern:e.pattern};return{labelProps:d,inputProps:fe(h,n==="input"&&b,{disabled:r,readOnly:a,"aria-required":o||void 0,"aria-invalid":i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:e.value,defaultValue:e.value?void 0:e.defaultValue,onChange:v=>s(v.target.value),autoComplete:e.autoComplete,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...f}),descriptionProps:m,errorMessageProps:g}}function Vy(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function V9(e,t,n){let r=ke(d=>{let f=n.current,m;switch(d.inputType){case"historyUndo":case"historyRedo":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":m=f.value.slice(0,f.selectionStart)+f.value.slice(f.selectionEnd);break;case"deleteContentForward":m=f.selectionEnd===f.selectionStart?f.value.slice(0,f.selectionStart)+f.value.slice(f.selectionEnd+1):f.value.slice(0,f.selectionStart)+f.value.slice(f.selectionEnd);break;case"deleteContentBackward":m=f.selectionEnd===f.selectionStart?f.value.slice(0,f.selectionStart-1)+f.value.slice(f.selectionStart):f.value.slice(0,f.selectionStart)+f.value.slice(f.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":m=f.value.slice(f.selectionStart);break;default:d.data!=null&&(m=f.value.slice(0,f.selectionStart)+d.data+f.value.slice(f.selectionEnd));break}(m==null||!t.validate(m))&&d.preventDefault()});c.useEffect(()=>{if(!Vy())return;let d=n.current;return d.addEventListener("beforeinput",r,!1),()=>{d.removeEventListener("beforeinput",r,!1)}},[n,r]);let o=Vy()?null:d=>{let f=d.target.value.slice(0,d.target.selectionStart)+d.data+d.target.value.slice(d.target.selectionEnd);t.validate(f)||d.preventDefault()},{labelProps:a,inputProps:i,descriptionProps:l,errorMessageProps:s}=ca(e,n),u=c.useRef(null);return{inputProps:fe(i,{onBeforeInput:o,onCompositionStart(){let{value:d,selectionStart:f,selectionEnd:m}=n.current;u.current={value:d,selectionStart:f,selectionEnd:m}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:d,selectionStart:f,selectionEnd:m}=u.current;n.current.value=d,n.current.setSelectionRange(f,m),t.setInputValue(d)}}}),labelProps:a,descriptionProps:l,errorMessageProps:s}}function B9(e){return e&&e.__esModule?e.default:e}var By={},jy={};jy={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 Uy={};Uy={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 Wy={};Wy={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 Hy={};Hy={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 Gy={};Gy={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 Yy={};Yy={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 qy={};qy={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 Xy={};Xy={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 Jy={};Jy={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 Zy={};Zy={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 Qy={};Qy={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} saisi, 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 e$={};e$={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 t$={};t$={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 n$={};n$={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 r$={};r$={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 o$={};o$={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 a$={};a$={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 i$={};i$={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 l$={};l$={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 s$={};s$={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 c$={};c$={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 u$={};u$={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 d$={};d$={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 f$={};f$={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 p$={};p$={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var m$={};m$={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var g$={};g$={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 h$={};h$={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 b$={};b$={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 v$={};v$={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 y$={};y$={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 $$={};$$={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 _$={};_$={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 x$={};x$={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}, 已選取`},By={"ar-AE":jy,"bg-BG":Uy,"cs-CZ":Wy,"da-DK":Hy,"de-DE":Gy,"el-GR":Yy,"en-US":qy,"es-ES":Xy,"et-EE":Jy,"fi-FI":Zy,"fr-FR":Qy,"he-IL":e$,"hr-HR":t$,"hu-HU":n$,"it-IT":r$,"ja-JP":o$,"ko-KR":a$,"lt-LT":i$,"lv-LV":l$,"nb-NO":s$,"nl-NL":c$,"pl-PL":u$,"pt-BR":d$,"pt-PT":f$,"ro-RO":p$,"ru-RU":m$,"sk-SK":g$,"sl-SI":h$,"sr-SP":b$,"sv-SE":v$,"tr-TR":y$,"uk-UA":$$,"zh-CN":_$,"zh-TW":x$};function j9(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:a,keyboardDelegate:i,shouldFocusWrap:l,isReadOnly:s,isDisabled:u}=e,d=_t(B9(By)),{menuTriggerProps:f,menuProps:m}=fd({type:"listbox",isDisabled:u||s},t,n);xl.set(t,{id:m.id});let g=c.useMemo(()=>i||new $l(t.collection,t.disabledKeys,a),[i,t.collection,t.disabledKeys,a]),{collectionProps:h}=Y0({selectionManager:t.selectionManager,keyboardDelegate:g,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:o,isVirtualized:!0}),b=W=>{switch(W.key){case"Enter":case"Tab":t.isOpen&&W.key==="Enter"&&W.preventDefault(),t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&W.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}},v=W=>{var G;W.relatedTarget===(n==null?void 0:n.current)||!((G=r.current)===null||G===void 0)&&G.contains(W.relatedTarget)||(e.onBlur&&e.onBlur(W),t.setFocused(!1))},_=W=>{t.isFocused||(e.onFocus&&e.onFocus(W),t.setFocused(!0))},{labelProps:y,inputProps:w,descriptionProps:S,errorMessageProps:P}=ca({...e,onChange:t.setInputValue,onKeyDown:!s&&Wt(t.isOpen&&h.onKeyDown,b,e.onKeyDown),onBlur:v,value:t.inputValue,onFocus:_,autoComplete:"off"},o),T=W=>{W.pointerType==="touch"&&(o.current.focus(),t.toggle(null,"manual"))},M=W=>{W.pointerType!=="touch"&&(o.current.focus(),t.toggle(W.pointerType==="keyboard"||W.pointerType==="virtual"?"first":null,"manual"))},$=$r({id:f.id,"aria-label":d.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||y.id}),k=$r({id:m.id,"aria-label":d.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||y.id}),L=c.useRef(0),x=W=>{if(u||s)return;if(W.timeStamp-L.current<500){W.preventDefault(),o.current.focus();return}let G=W.target.getBoundingClientRect(),re=W.changedTouches[0],oe=Math.ceil(G.left+.5*G.width),ae=Math.ceil(G.top+.5*G.height);re.clientX===oe&&re.clientY===ae&&(W.preventDefault(),o.current.focus(),t.toggle(null,"manual"),L.current=W.timeStamp)},R=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var O;let A=(O=R==null?void 0:R.parentKey)!==null&&O!==void 0?O:null;var V;let I=(V=t.selectionManager.focusedKey)!==null&&V!==void 0?V:null,J=c.useRef(A),j=c.useRef(I);c.useEffect(()=>{if(di()&&R!=null&&I!==j.current){let W=t.selectionManager.isSelected(I),G=A!=null?t.collection.getItem(A):null,re=(G==null?void 0:G["aria-label"])||(typeof(G==null?void 0:G.rendered)=="string"?G.rendered:"")||"",oe=d.format("focusAnnouncement",{isGroupChange:G&&A!==J.current,groupTitle:re,groupCount:G?[..._l(G,t.collection)].length:0,optionText:R["aria-label"]||R.textValue||"",isSelected:W});Mr(oe)}J.current=A,j.current=I});let U=ny(t.collection),F=c.useRef(U),B=c.useRef(t.isOpen);c.useEffect(()=>{let W=t.isOpen!==B.current&&(t.selectionManager.focusedKey==null||di());if(t.isOpen&&(W||U!==F.current)){let G=d.format("countAnnouncement",{optionCount:U});Mr(G)}F.current=U,B.current=t.isOpen});let Y=c.useRef(t.selectedKey);return c.useEffect(()=>{if(di()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Y.current){let W=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",G=d.format("selectedAnnouncement",{optionText:W});Mr(G)}Y.current=t.selectedKey}),c.useEffect(()=>{if(t.isOpen)return H0([o.current,r.current])},[t.isOpen,o,r]),{labelProps:y,buttonProps:{...f,...$,excludeFromTabOrder:!0,onPress:T,onPressStart:M,isDisabled:u||s},inputProps:fe(w,{role:"combobox","aria-expanded":f["aria-expanded"],"aria-controls":t.isOpen?m.id:void 0,"aria-autocomplete":"list","aria-activedescendant":R?ry(t,R.key):void 0,onTouchEnd:x,autoCorrect:"off",spellCheck:"false"}),listBoxProps:fe(m,k,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0}),descriptionProps:S,errorMessageProps:P}}class pd{*[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}}class wt extends Set{constructor(t,n,r){super(t),t instanceof wt?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function U9(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function W9(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:a="all"}=e,i=c.useRef(!1),[,l]=c.useState(!1),s=c.useRef(null),u=c.useRef(null),[,d]=c.useState(null),f=c.useMemo(()=>w$(e.selectedKeys),[e.selectedKeys]),m=c.useMemo(()=>w$(e.defaultSelectedKeys,new wt),[e.defaultSelectedKeys]),[g,h]=Ot(f,m,e.onSelectionChange),b=c.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,_]=c.useState(o);o==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&_("replace");let y=c.useRef(o);return c.useEffect(()=>{o!==y.current&&(_(o),y.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:_,get isFocused(){return i.current},setFocused(w){i.current=w,l(w)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(w,S="first"){s.current=w,u.current=S,d(w)},selectedKeys:g,setSelectedKeys(w){(r||!U9(w,g))&&h(w)},disabledKeys:b,disabledBehavior:a}}function w$(e,t){return e?e==="all"?"all":new wt(e):t}class H9{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&&dd(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&&dd(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 wt([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new wt(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?dd(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 wt(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 wt([t],t,t):new wt;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new wt;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(N9(_l(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 wt)}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){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}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}}function E$(e){let{filter:t}=e,n=W9(e),r=c.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=c.useCallback(u=>t?new pd(t(u)):new pd(u),[t]),a=c.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),i=L9(e,o,a),l=c.useMemo(()=>new H9(i,n),[i,n]);const s=c.useRef(null);return c.useEffect(()=>{if(n.focusedKey!=null&&!i.getItem(n.focusedKey)){const u=s.current.getItem(n.focusedKey),d=[...s.current.getKeys()].map(b=>{const v=s.current.getItem(b);return v.type==="item"?v:null}).filter(b=>b!==null),f=[...i.getKeys()].map(b=>{const v=i.getItem(b);return v.type==="item"?v:null}).filter(b=>b!==null),m=d.length-f.length;let g=Math.min(m>1?Math.max(u.index-m+1,0):u.index,f.length-1),h;for(;g>=0;){if(!l.isDisabled(f[g].key)){h=f[g];break}g<f.length-1?g++:(g>u.index&&(g=u.index),g--)}n.setFocusedKey(h?h.key:null)}s.current=i},[i,l,n,n.focusedKey]),{collection:i,disabledKeys:r,selectionManager:l}}function S$(e){var t;let[n,r]=Ot(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=c.useMemo(()=>n!=null?[n]:[],[n]),{collection:a,disabledKeys:i,selectionManager:l}=E$({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:u=>{var d;let f=(d=u.values().next().value)!==null&&d!==void 0?d:null;f===n&&e.onSelectionChange&&e.onSelectionChange(f),r(f)}}),s=n!=null?a.getItem(n):null;return{collection:a,disabledKeys:i,selectionManager:l,selectedKey:n,setSelectedKey:r,selectedItem:s}}function ua(e){let[t,n]=Ot(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=c.useCallback(()=>{n(!0)},[n]),o=c.useCallback(()=>{n(!1)},[n]),a=c.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:a}}function D$(e){let t=ua(e),[n,r]=c.useState(null);return{focusStrategy:n,...t,open(o=null){r(o),t.open()},toggle(o=null){r(o),t.toggle()}}}function G9(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:o=!1,allowsCustomValue:a,shouldCloseOnBlur:i=!0}=e,[l,s]=c.useState(!1),[u,d]=c.useState(!1);var f;let[m,g]=Ot(e.inputValue,(f=e.defaultInputValue)!==null&&f!==void 0?f:"",e.onInputChange),h=le=>{e.onSelectionChange&&e.onSelectionChange(le),le===y&&(j(),I())};var b;let{collection:v,selectionManager:_,selectedKey:y,setSelectedKey:w,selectedItem:S,disabledKeys:P}=S$({...e,onSelectionChange:h,items:(b=e.items)!==null&&b!==void 0?b:e.defaultItems}),T=v,M=c.useMemo(()=>e.items!=null||!n?v:Y9(v,m,n),[v,m,n,e.items]),[$,k]=c.useState(M),L=c.useRef("focus"),R=D$({...e,onOpenChange:le=>{e.onOpenChange&&e.onOpenChange(le,le?L.current:void 0),_.setFocused(le),le||_.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),O=(le,pe)=>{let Se=pe==="manual"||pe==="focus"&&r==="focus";(o||M.size>0||Se&&T.size>0||e.items)&&(Se&&!R.isOpen&&e.items===void 0&&s(!0),L.current=pe,R.open(le))},A=(le,pe)=>{let Se=pe==="manual"||pe==="focus"&&r==="focus";!(o||M.size>0||Se&&T.size>0||e.items)&&!R.isOpen||(Se&&!R.isOpen&&e.items===void 0&&s(!0),R.isOpen||(L.current=pe),V(le))},V=c.useCallback(le=>{R.isOpen&&k(M),R.toggle(le)},[R,M]),I=c.useCallback(()=>{R.isOpen&&(k(M),R.close())},[R,M]),J=c.useRef(m),j=()=>{var le,pe;let Se=(pe=(le=v.getItem(y))===null||le===void 0?void 0:le.textValue)!==null&&pe!==void 0?pe:"";J.current=Se,g(Se)},U=c.useRef(!0);var F,B;let Y=c.useRef((B=(F=e.selectedKey)!==null&&F!==void 0?F:e.defaultSelectedKey)!==null&&B!==void 0?B:null);var W;let G=c.useRef((W=(t=v.getItem(y))===null||t===void 0?void 0:t.textValue)!==null&&W!==void 0?W:"");c.useEffect(()=>{var le;u&&(M.size>0||o)&&!R.isOpen&&m!==J.current&&r!=="manual"&&O(null,"input"),!l&&!o&&R.isOpen&&M.size===0&&I(),y!=null&&y!==Y.current&&I(),m!==J.current&&(_.setFocusedKey(null),s(!1),m===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&w(null)),U.current&&e.inputValue===void 0&&e.defaultInputValue===void 0&&j(),y!==Y.current&&(e.inputValue===void 0||e.selectedKey===void 0)?j():J.current=m;var pe;let Se=(pe=(le=v.getItem(y))===null||le===void 0?void 0:le.textValue)!==null&&pe!==void 0?pe:"";!u&&y!=null&&e.inputValue===void 0&&y===Y.current&&G.current!==Se&&(J.current=Se,g(Se)),U.current=!1,Y.current=y,G.current=Se});let re=()=>{a&&y==null?oe():ae()},oe=()=>{Y.current=null,w(null),I()},ae=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var le;e.onSelectionChange(y);var pe;let Se=(pe=(le=v.getItem(y))===null||le===void 0?void 0:le.textValue)!==null&&pe!==void 0?pe:"";J.current=Se,I()}else j(),I()},ne=()=>{R.isOpen&&_.focusedKey!=null?y===_.focusedKey?ae():w(_.focusedKey):a?oe():ae()},ee=()=>{var le,pe;let Se=(pe=(le=v.getItem(y))===null||le===void 0?void 0:le.textValue)!==null&&pe!==void 0?pe:"";a&&m!==Se?oe():ae(),I()},se=le=>{le?r==="focus"&&O(null,"focus"):i&&ee(),d(le)},_e=c.useMemo(()=>R.isOpen?l?T:M:$,[R.isOpen,T,M,l,$]);return{...R,toggle:A,open:O,close:ee,selectionManager:_,selectedKey:y,setSelectedKey:w,disabledKeys:P,isFocused:u,setFocused:se,selectedItem:S,collection:_e,inputValue:m,setInputValue:g,commit:ne,revert:re}}function Y9(e,t,n){return new pd(P$(e,e,t,n))}function P$(e,t,n,r){let o=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let i=P$(e,_l(a,e),n,r);[...i].some(l=>l.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}const q9=z.default.div`
|
|
1474
|
+
`,nd=e=>{const{children:t,dir:n="ltr",tooltipContent:r}=e,o=W8(e),a=c.useRef(null),{labelProps:i,inputProps:l}=H8(e,o,a),s=n==="rtl"?"row-reverse":"row",u=l["aria-invalid"]===!0;if(!t){if(!e["aria-label"])throw new Error("If no children are provided, an aria-label must be provided");return X(ge,{flexDirection:s,position:"relative",as:"span",children:[E(Zv,{...l,ref:a,$invalid:u}),l.checked?E(Jv,{}):null]})}const d=l.disabled?"not-allowed":"pointer";return X(Re,{...i,pointer:d,flexDirection:s,children:[X(ge,{flexDirection:s,position:"relative",as:"span",children:[E(Zv,{...l,ref:a,$invalid:u}),l.checked?E(Jv,{}):null]}),X(ge,{as:"span",children:[t,E(ge,{as:"span",ml:p.spacing_100,mr:p.spacing_100,children:r?E(Qe,{children:r}):null})]})]})},Br={top:"top",bottom:"top",left:"left",right:"left"},bl={top:"bottom",bottom:"top",left:"right",right:"left"},s9={top:"left",left:"top"},rd={top:"height",left:"width"},Qv={width:"totalWidth",height:"totalHeight"},vl={};let et=typeof document<"u"&&window.visualViewport;function e0(e){let t=0,n=0,r=0,o=0,a=0,i=0,l={},s=(et==null?void 0:et.scale)>1;if(e.tagName==="BODY"){let f=document.documentElement;r=f.clientWidth,o=f.clientHeight;var u;t=(u=et==null?void 0:et.width)!==null&&u!==void 0?u:r;var d;n=(d=et==null?void 0:et.height)!==null&&d!==void 0?d:o,l.top=f.scrollTop||e.scrollTop,l.left=f.scrollLeft||e.scrollLeft,et&&(a=et.offsetTop,i=et.offsetLeft)}else({width:t,height:n,top:a,left:i}=jr(e)),l.top=e.scrollTop,l.left=e.scrollLeft,r=t,o=n;return wc()&&(e.tagName==="BODY"||e.tagName==="HTML")&&s&&(l.top=0,l.left=0,a=et.pageTop,i=et.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:l,top:a,left:i}}function c9(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function t0(e,t,n,r,o,a,i){let l=o.scroll[e],s=r[rd[e]],u=r.scroll[Br[e]]+a,d=s+r.scroll[Br[e]]-a,f=t-l+i[e]-r[Br[e]],m=t-l+n+i[e]-r[Br[e]];return f<u?u-f:m>d?Math.max(d-m,u-f):0}function u9(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 n0(e){if(vl[e])return vl[e];let[t,n]=e.split(" "),r=Br[t]||"right",o=s9[r];Br[n]||(n="center");let a=rd[r],i=rd[o];return vl[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:a,crossSize:i},vl[e]}function od(e,t,n,r,o,a,i,l,s,u){let{placement:d,crossPlacement:f,axis:m,crossAxis:g,size:h,crossSize:b}=r,v={};v[g]=e[g],f==="center"?v[g]+=(e[b]-n[b])/2:f!==g&&(v[g]+=e[b]-n[b]),v[g]+=a;const _=e[g]-n[b]+s+u,y=e[g]+e[b]-s-u;if(v[g]=fi(v[g],_,y),d===m){const w=l?i[h]:t[Qv[h]];v[bl[m]]=Math.floor(w-e[m]+o)}else v[m]=Math.floor(e[m]+e[h]+o);return v}function d9(e,t,n,r,o,a,i,l){const s=r?n.height:t[Qv.height];let u=e.top!=null?n.top+e.top:n.top+(s-e.bottom-i),d=l!=="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,d)}function r0(e,t,n,r,o,a){let{placement:i,axis:l,size:s}=a;return i===l?Math.max(0,n[l]-e[l]-e.scroll[l]+t[l]-r[l]-r[bl[l]]-o):Math.max(0,e[s]+e[l]+e.scroll[l]-t[l]-n[l]-n[s]-r[l]-r[bl[l]]-o)}function f9(e,t,n,r,o,a,i,l,s,u,d,f,m,g,h,b){let v=n0(e),{size:_,crossAxis:y,crossSize:w,placement:S,crossPlacement:P}=v,T=od(t,l,n,v,d,f,u,m,h,b),M=d,$=r0(l,u,t,o,a+d,v);if(i&&r[_]>$){let U=n0(`${bl[S]} ${P}`),L=od(t,l,n,U,d,f,u,m,h,b);r0(l,u,t,o,a+d,U)>$&&(v=U,T=L,M=d)}let k="bottom";v.axis==="top"?v.placement==="top"?k="top":v.placement==="bottom"&&(k="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?k="bottom":v.crossPlacement==="bottom"&&(k="top"));let F=t0(y,T[y],n[w],l,s,a,u);T[y]+=F;let x=d9(T,l,u,m,o,a,n.height,k);g&&g<x&&(x=g),n.height=Math.min(n.height,x),T=od(t,l,n,v,M,f,u,m,h,b),F=t0(y,T[y],n[w],l,s,a,u),T[y]+=F;let R={},O=t[y]+.5*t[w]-T[y];const A=h/2+b,V=n[w]-h/2-b,I=t[y]-T[y]+h/2,J=t[y]+t[w]-T[y]-h/2,j=fi(O,I,J);return R[y]=fi(j,A,V),{position:T,maxHeight:x,arrowOffsetLeft:R.left,arrowOffsetTop:R.top,placement:v.placement}}function p9(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:a,shouldFlip:i,boundaryElement:l,offset:s,crossOffset:u,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:m=0}=e,g=r instanceof HTMLElement?m9(r):document.documentElement,h=g===document.documentElement;const b=window.getComputedStyle(g).position;let v=!!b&&b!=="static",_=h?jr(n):o0(n,g);if(!h){let{marginTop:$,marginLeft:k}=window.getComputedStyle(n);_.top+=parseInt($,10)||0,_.left+=parseInt(k,10)||0}let y=jr(r),w=u9(r);y.width+=w.left+w.right,y.height+=w.top+w.bottom;let S=c9(o),P=e0(l),T=e0(g),M=l.tagName==="BODY"?jr(g):o0(g,l);return g.tagName==="HTML"&&l.tagName==="BODY"&&(T.scroll.top=0,T.scroll.left=0),f9(t,_,y,S,w,a,i,P,T,M,s,u,v,d,f,m)}function jr(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:i,clientTop:l,clientLeft:s}=document.documentElement;return{top:t+a-l,left:n+i-s,width:r,height:o}}function o0(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:o,left:a,width:i,height:l}=e.getBoundingClientRect();r={top:o,left:a,width:i,height:l}}else{r=jr(e);let o=jr(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 m9(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!a0(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!a0(t);)t=t.parentElement;return t||document.documentElement}function a0(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 i0=new WeakMap;function g9(e){let{triggerRef:t,isOpen:n,onClose:r}=e;c.useEffect(()=>{if(!n||r===null)return;let o=a=>{let i=a.target;if(!t.current||i instanceof Node&&!i.contains(t.current)||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement)return;let l=r||i0.get(t.current);l&&l()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let Me=typeof document<"u"&&window.visualViewport;function h9(e){let{direction:t}=at(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:a=o,placement:i="bottom",containerPadding:l=12,shouldFlip:s=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:m=!0,isOpen:g=!0,onClose:h,maxHeight:b,arrowBoundaryOffset:v=0}=e,[_,y]=c.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),w=[m,i,o.current,r.current,a.current,l,s,u,d,f,g,t,b,v,n],S=c.useRef(Me==null?void 0:Me.scale);c.useEffect(()=>{g&&(S.current=Me==null?void 0:Me.scale)},[g]);let P=c.useCallback(()=>{if(m===!1||!g||!o.current||!r.current||!u||(Me==null?void 0:Me.scale)!==S.current)return;let k=null;if(a.current&&a.current.contains(document.activeElement)){let A=document.activeElement.getBoundingClientRect(),V=a.current.getBoundingClientRect();k={type:"top",offset:A.top-V.top},k.offset>V.height/2&&(k.type="bottom",k.offset=A.bottom-V.bottom)}let F=o.current;if(!b&&o.current){var x;F.style.top="0px",F.style.bottom="";var R;F.style.maxHeight=((R=(x=window.visualViewport)===null||x===void 0?void 0:x.height)!==null&&R!==void 0?R:window.innerHeight)+"px"}let O=p9({placement:v9(i,t),overlayNode:o.current,targetNode:r.current,scrollNode:a.current||o.current,padding:l,shouldFlip:s,boundaryElement:u,offset:d,crossOffset:f,maxHeight:b,arrowSize:n,arrowBoundaryOffset:v});if(F.style.top="",F.style.bottom="",F.style.left="",F.style.right="",Object.keys(O.position).forEach(A=>F.style[A]=O.position[A]+"px"),F.style.maxHeight=O.maxHeight!=null?O.maxHeight+"px":void 0,k){let A=document.activeElement.getBoundingClientRect(),V=a.current.getBoundingClientRect(),I=A[k.type]-V[k.type];a.current.scrollTop+=I-k.offset}y(O)},w);Te(P,w),b9(P),Sg({ref:o,onResize:P}),Sg({ref:r,onResize:P});let T=c.useRef(!1);Te(()=>{let k,F=()=>{T.current=!0,clearTimeout(k),k=setTimeout(()=>{T.current=!1},500),P()},x=()=>{T.current&&F()};return Me==null||Me.addEventListener("resize",F),Me==null||Me.addEventListener("scroll",x),()=>{Me==null||Me.removeEventListener("resize",F),Me==null||Me.removeEventListener("scroll",x)}},[P]);let M=c.useCallback(()=>{T.current||h()},[h,T]);g9({triggerRef:r,isOpen:g,onClose:h&&M});var $;return{overlayProps:{style:{position:"absolute",zIndex:1e5,..._.position,maxHeight:($=_.maxHeight)!==null&&$!==void 0?$:"100vh"}},placement:_.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:_.arrowOffsetLeft,top:_.arrowOffsetTop}},updatePosition:P}}function b9(e){Te(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function v9(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const ln=[];function l0(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:a=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:l}=e;c.useEffect(()=>(o&&ln.push(t),()=>{let h=ln.indexOf(t);h>=0&&ln.splice(h,1)}),[o,t]);let s=()=>{ln[ln.length-1]===t&&n&&n()},u=h=>{(!l||l(h.target))&&ln[ln.length-1]===t&&(h.stopPropagation(),h.preventDefault())},d=h=>{(!l||l(h.target))&&(ln[ln.length-1]===t&&(h.stopPropagation(),h.preventDefault()),s())},f=h=>{h.key==="Escape"&&!i&&!h.nativeEvent.isComposing&&(h.stopPropagation(),h.preventDefault(),s())};uC({ref:t,onInteractOutside:a&&o?d:null,onInteractOutsideStart:u});let{focusWithinProps:m}=Fo({isDisabled:!r,onBlurWithin:h=>{!h.relatedTarget||YC(h.relatedTarget)||(!l||l(h.relatedTarget))&&n()}}),g=h=>{h.target===h.currentTarget&&h.preventDefault()};return{overlayProps:{onKeyDown:f,...m},underlayProps:{onPointerDown:g}}}function ad(e,t,n){let{type:r}=e,{isOpen:o}=t;c.useEffect(()=>{n&&n.current&&i0.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let i=ct();return{triggerProps:{"aria-haspopup":a,"aria-expanded":o,"aria-controls":o?i:null,onPress:t.toggle},overlayProps:{id:i}}}const id=typeof document<"u"&&window.visualViewport,y9=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let yl=0,ld;function $9(e={}){let{isDisabled:t}=e;Te(()=>{if(!t)return yl++,yl===1&&(Co()?ld=x9():ld=_9()),()=>{yl--,yl===0&&ld()}},[t])}function _9(){return Wt(Ur(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Ur(document.documentElement,"overflow","hidden"))}function x9(){let e,t,n=u=>{e=Pc(u.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Ur(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 d=u.target;c0(d)&&d!==document.activeElement&&(u.preventDefault(),l(),d.style.transform="translateY(-2000px)",d.focus(),requestAnimationFrame(()=>{d.style.transform=""})),t&&t()},a=u=>{let d=u.target;c0(d)&&(l(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",id&&(id.height<window.innerHeight?requestAnimationFrame(()=>{s0(d)}):id.addEventListener("resize",()=>s0(d),{once:!0}))}))},i=null,l=()=>{if(i)return;let u=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;i=Wt(la(window,"scroll",u),Ur(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Ur(document.documentElement,"overflow","hidden"),Ur(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},s=Wt(la(document,"touchstart",n,{passive:!1,capture:!0}),la(document,"touchmove",r,{passive:!1,capture:!0}),la(document,"touchend",o,{passive:!1,capture:!0}),la(document,"focus",a,!0));return()=>{t==null||t(),i==null||i(),s()}}function Ur(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function la(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function s0(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=Pc(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 c0(e){return e instanceof HTMLInputElement&&!y9.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var u0={};u0={dismiss:"تجاهل"};var d0={};d0={dismiss:"Отхвърляне"};var f0={};f0={dismiss:"Odstranit"};var p0={};p0={dismiss:"Luk"};var m0={};m0={dismiss:"Schließen"};var g0={};g0={dismiss:"Απόρριψη"};var h0={};h0={dismiss:"Dismiss"};var b0={};b0={dismiss:"Descartar"};var v0={};v0={dismiss:"Lõpeta"};var y0={};y0={dismiss:"Hylkää"};var $0={};$0={dismiss:"Rejeter"};var _0={};_0={dismiss:"התעלם"};var x0={};x0={dismiss:"Odbaci"};var w0={};w0={dismiss:"Elutasítás"};var E0={};E0={dismiss:"Ignora"};var S0={};S0={dismiss:"閉じる"};var D0={};D0={dismiss:"무시"};var P0={};P0={dismiss:"Atmesti"};var T0={};T0={dismiss:"Nerādīt"};var C0={};C0={dismiss:"Lukk"};var k0={};k0={dismiss:"Negeren"};var A0={};A0={dismiss:"Zignoruj"};var I0={};I0={dismiss:"Descartar"};var O0={};O0={dismiss:"Dispensar"};var M0={};M0={dismiss:"Revocare"};var F0={};F0={dismiss:"Пропустить"};var L0={};L0={dismiss:"Zrušiť"};var N0={};N0={dismiss:"Opusti"};var z0={};z0={dismiss:"Odbaci"};var R0={};R0={dismiss:"Avvisa"};var K0={};K0={dismiss:"Kapat"};var V0={};V0={dismiss:"Скасувати"};var B0={};B0={dismiss:"取消"};var j0={};j0={dismiss:"關閉"};var U0={};U0={"ar-AE":u0,"bg-BG":d0,"cs-CZ":f0,"da-DK":p0,"de-DE":m0,"el-GR":g0,"en-US":h0,"es-ES":b0,"et-EE":v0,"fi-FI":y0,"fr-FR":$0,"he-IL":_0,"hr-HR":x0,"hu-HU":w0,"it-IT":E0,"ja-JP":S0,"ko-KR":D0,"lt-LT":P0,"lv-LV":T0,"nb-NO":C0,"nl-NL":k0,"pl-PL":A0,"pt-BR":I0,"pt-PT":O0,"ro-RO":M0,"ru-RU":F0,"sk-SK":L0,"sl-SI":N0,"sr-SP":z0,"sv-SE":R0,"tr-TR":K0,"uk-UA":V0,"zh-CN":B0,"zh-TW":j0};function w9(e){return e&&e.__esModule?e.default:e}function W0(e){let{onDismiss:t,...n}=e,r=_t(w9(U0),"@react-aria/overlays"),o=$r(n,r.format("dismiss")),a=()=>{t&&t()};return D.default.createElement(Si,null,D.default.createElement("button",{...o,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}let sa=new WeakMap,ft=[];function H0(e,t=document.body){let n=new Set(e),r=new Set,o=s=>{for(let m of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(m);let u=m=>{if(n.has(m)||r.has(m.parentElement)&&m.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(m.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),f=u(s);if(f===NodeFilter.FILTER_ACCEPT&&a(s),f!==NodeFilter.FILTER_REJECT){let m=d.nextNode();for(;m!=null;)a(m),m=d.nextNode()}},a=s=>{var u;let d=(u=sa.get(s))!==null&&u!==void 0?u:0;s.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&s.setAttribute("aria-hidden","true"),r.add(s),sa.set(s,d+1))};ft.length&&ft[ft.length-1].disconnect(),o(t);let i=new MutationObserver(s=>{for(let u of s)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(u.target))){for(let d of u.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of u.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&o(d)}});i.observe(t,{childList:!0,subtree:!0});let l={observe(){i.observe(t,{childList:!0,subtree:!0})},disconnect(){i.disconnect()}};return ft.push(l),()=>{i.disconnect();for(let s of r){let u=sa.get(s);u===1?(s.removeAttribute("aria-hidden"),sa.delete(s)):sa.set(s,u-1)}l===ft[ft.length-1]?(ft.pop(),ft.length&&ft[ft.length-1].observe()):ft.splice(ft.indexOf(l),1)}}function E9(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:i,...l}=e,{overlayProps:s,underlayProps:u}=l0({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:i},r),{overlayProps:d,arrowProps:f,placement:m}=h9({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return $9({isDisabled:o||!t.isOpen}),Te(()=>{if(t.isOpen&&!o&&r.current)return H0([r.current])},[o,t.isOpen,r]),{popoverProps:fe(s,d),arrowProps:f,underlayProps:u,placement:m}}const S9=c.createContext({});function D9(){var e;return(e=c.useContext(S9))!==null&&e!==void 0?e:{}}const P9=D.default.createContext(null);function T9(e){let t=li(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,a]=c.useState(!1),i=c.useMemo(()=>({contain:o,setContain:a}),[o,a]),{getContainer:l}=D9();if(!e.portalContainer&&l&&(n=l()),!n)return null;let s=e.children;return e.disableFocusManagement||(s=D.default.createElement(jC,{restoreFocus:!0,contain:o&&!r},s)),s=D.default.createElement(P9.Provider,{value:i},D.default.createElement(eC,null,s)),Rt.default.createPortal(s,n)}function G0(e){return di()?e.altKey:e.ctrlKey}function Wr(e){return Gt()?e.metaKey:e.ctrlKey}const C9=1e3;function sd(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=c.useRef({search:"",timeout:null}).current,a=i=>{let l=k9(i.key);if(!l||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target))return;l===" "&&o.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),o.search+=l;let s=t.getKeyForSearch(o.search,n.focusedKey);s==null&&(s=t.getKeyForSearch(o.search)),s!=null&&(n.setFocusedKey(s),r&&r(s)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},C9)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:null}}}function k9(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Y0(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:a=!1,disallowEmptySelection:i=!1,disallowSelectAll:l=!1,selectOnFocus:s=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:m,scrollRef:g=r}=e,{direction:h}=at(),b=$=>{if($.altKey&&$.key==="Tab"&&$.preventDefault(),!r.current.contains($.target))return;const k=(j,U)=>{j!=null&&(t.setFocusedKey(j,U),$.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(j):s&&!G0($)&&t.replaceSelection(j))};switch($.key){case"ArrowDown":if(n.getKeyBelow){var F,x;$.preventDefault();let j=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(F=n.getFirstKey)===null||F===void 0?void 0:F.call(n);j==null&&a&&(j=(x=n.getFirstKey)===null||x===void 0?void 0:x.call(n,t.focusedKey)),k(j)}break;case"ArrowUp":if(n.getKeyAbove){var R,O;$.preventDefault();let j=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(R=n.getLastKey)===null||R===void 0?void 0:R.call(n);j==null&&a&&(j=(O=n.getLastKey)===null||O===void 0?void 0:O.call(n,t.focusedKey)),k(j)}break;case"ArrowLeft":if(n.getKeyLeftOf){var A,V;$.preventDefault();let j=n.getKeyLeftOf(t.focusedKey);j==null&&a&&(j=h==="rtl"?(A=n.getFirstKey)===null||A===void 0?void 0:A.call(n,t.focusedKey):(V=n.getLastKey)===null||V===void 0?void 0:V.call(n,t.focusedKey)),k(j,h==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var I,J;$.preventDefault();let j=n.getKeyRightOf(t.focusedKey);j==null&&a&&(j=h==="rtl"?(I=n.getLastKey)===null||I===void 0?void 0:I.call(n,t.focusedKey):(J=n.getFirstKey)===null||J===void 0?void 0:J.call(n,t.focusedKey)),k(j,h==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){$.preventDefault();let j=n.getFirstKey(t.focusedKey,Wr($));t.setFocusedKey(j),Wr($)&&$.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(j):s&&t.replaceSelection(j)}break;case"End":if(n.getLastKey){$.preventDefault();let j=n.getLastKey(t.focusedKey,Wr($));t.setFocusedKey(j),Wr($)&&$.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(j):s&&t.replaceSelection(j)}break;case"PageDown":if(n.getKeyPageBelow){$.preventDefault();let j=n.getKeyPageBelow(t.focusedKey);k(j)}break;case"PageUp":if(n.getKeyPageAbove){$.preventDefault();let j=n.getKeyPageAbove(t.focusedKey);k(j)}break;case"a":Wr($)&&t.selectionMode==="multiple"&&l!==!0&&($.preventDefault(),t.selectAll());break;case"Escape":$.preventDefault(),i||t.clearSelection();break;case"Tab":if(!f){if($.shiftKey)r.current.focus();else{let j=Zt(r.current,{tabbable:!0}),U,L;do L=j.lastChild(),L&&(U=L);while(L);U&&!U.contains(document.activeElement)&&It(U)}break}}},v=c.useRef({top:0,left:0});_r(g,"scroll",m?null:()=>{v.current={top:g.current.scrollTop,left:g.current.scrollLeft}});let _=$=>{if(t.isFocused){$.currentTarget.contains($.target)||t.setFocused(!1);return}if($.currentTarget.contains($.target)){if(t.setFocused(!0),t.focusedKey==null){let x=O=>{O!=null&&(t.setFocusedKey(O),s&&t.replaceSelection(O))},R=$.relatedTarget;var k,F;R&&$.currentTarget.compareDocumentPosition(R)&Node.DOCUMENT_POSITION_FOLLOWING?x((k=t.lastSelectedKey)!==null&&k!==void 0?k:n.getLastKey()):x((F=t.firstSelectedKey)!==null&&F!==void 0?F:n.getFirstKey())}else m||(g.current.scrollTop=v.current.top,g.current.scrollLeft=v.current.left);if(!m&&t.focusedKey!=null){let x=g.current.querySelector(`[data-key="${t.focusedKey}"]`);x&&(It(x),xi()==="keyboard"&&kc(x,{containingElement:r.current}))}}},y=$=>{$.currentTarget.contains($.relatedTarget)||t.setFocused(!1)};const w=c.useRef(o);c.useEffect(()=>{if(w.current){let $=null;o==="first"&&($=n.getFirstKey()),o==="last"&&($=n.getLastKey());let k=t.selectedKeys;k.size&&($=k.values().next().value),t.setFocused(!0),t.setFocusedKey($),$==null&&!d&&No(r.current)}w.current=!1},[]);let S=c.useRef(t.focusedKey);c.useEffect(()=>{let $=xi();if(t.isFocused&&t.focusedKey!=null&&(g!=null&&g.current)){let k=g.current.querySelector(`[data-key="${t.focusedKey}"]`);k&&$==="keyboard"&&(m||Pg(g.current,k),kc(k,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&S.current!=null&&No(r.current),S.current=t.focusedKey},[m,g,t.focusedKey,t.isFocused,r]);let P={onKeyDown:b,onFocus:_,onBlur:y,onMouseDown($){g.current===$.target&&$.preventDefault()}},{typeSelectProps:T}=sd({keyboardDelegate:n,selectionManager:t});u||(P=fe(T,P));let M;return d||(M=t.focusedKey==null?0:-1),{collectionProps:{...P,tabIndex:M}}}function A9(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:a,focus:i,isDisabled:l,onAction:s,allowsDifferentPressOrigin:u}=e,d=x=>{if(x.pointerType==="keyboard"&&G0(x))t.toggleSelection(n);else{if(t.selectionMode==="none")return;t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):x&&x.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||x&&(Wr(x)||x.pointerType==="touch"||x.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};c.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!a&&(i?i():document.activeElement!==r.current&&No(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,a]),l=l||t.isDisabled(n);let f={};!a&&!l?f={tabIndex:n===t.focusedKey?0:-1,onFocus(x){x.target===r.current&&t.setFocusedKey(n)}}:l&&(f.onMouseDown=x=>{x.preventDefault()});let m=!l&&t.canSelectItem(n),g=s&&!l,h=g&&(t.selectionBehavior==="replace"?!m:t.isEmpty),b=g&&m&&t.selectionBehavior==="replace",v=h||b,_=c.useRef(null),y=v&&m,w=c.useRef(!1),S=c.useRef(!1),P={};o?(P.onPressStart=x=>{_.current=x.pointerType,w.current=y,x.pointerType==="keyboard"&&(!v||X0())&&d(x)},u?(P.onPressUp=x=>{x.pointerType!=="keyboard"&&d(x)},P.onPress=h?()=>s():null):P.onPress=x=>{if(h||b&&x.pointerType!=="mouse"){if(x.pointerType==="keyboard"&&!q0())return;s()}else x.pointerType!=="keyboard"&&d(x)}):(P.onPressStart=x=>{_.current=x.pointerType,w.current=y,S.current=h,(x.pointerType==="mouse"&&!h||x.pointerType==="keyboard"&&(!s||X0()))&&d(x)},P.onPress=x=>{(x.pointerType==="touch"||x.pointerType==="pen"||x.pointerType==="virtual"||x.pointerType==="keyboard"&&v&&q0()||x.pointerType==="mouse"&&S.current)&&(v?s():d(x))}),f["data-key"]=n,P.preventFocusOnPress=a;let{pressProps:T,isPressed:M}=wr(P),$=b?x=>{_.current==="mouse"&&(x.stopPropagation(),x.preventDefault(),s())}:void 0,{longPressProps:k}=Wg({isDisabled:!y,onLongPress(x){x.pointerType==="touch"&&(d(x),t.setSelectionBehavior("toggle"))}});return{itemProps:fe(f,m||h?T:{},y?k:{},{onDoubleClick:$,onDragStartCapture:x=>{_.current==="touch"&&w.current&&x.preventDefault()}}),isPressed:M,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:l,allowsSelection:m,hasAction:v}}function q0(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function X0(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class $l{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;){if(this.collection.getItem(t).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="${t}"]`)}getKeyPageAbove(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!Ao(n))return this.getFirstKey();let o=n.getBoundingClientRect(),a=r.getBoundingClientRect();if(this.orientation==="horizontal"){let i=o.x-n.scrollLeft,l=Math.max(0,a.x-i+a.width-o.width);for(;r&&a.x-i>l;)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,l=Math.max(0,a.y-i+a.height-o.height);for(;r&&a.y-i>l;)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(!Ao(n))return this.getLastKey();let o=n.getBoundingClientRect(),a=r.getBoundingClientRect();if(this.orientation==="horizontal"){let i=o.x-n.scrollLeft,l=Math.min(n.scrollWidth,a.x-i-a.width+o.width);for(;r&&a.x-i<l;)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,l=Math.min(n.scrollHeight,a.y-i-a.height+o.height);for(;r&&a.y-i<l;)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.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 I9(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:a,autoFocus:i,shouldFocusWrap:l,isVirtualized:s,disallowEmptySelection:u,selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:f,shouldUseVirtualFocus:m,allowsTabNavigation:g}=e,h=Zi({usage:"search",sensitivity:"base"}),b=t.disabledBehavior,v=c.useMemo(()=>a||new $l(n,b==="selection"?new Set:r,o,h),[a,n,r,o,h,b]),{collectionProps:_}=Y0({ref:o,selectionManager:t,keyboardDelegate:v,autoFocus:i,shouldFocusWrap:l,disallowEmptySelection:u,selectOnFocus:d,disallowTypeAhead:f,shouldUseVirtualFocus:m,allowsTabNavigation:g,isVirtualized:s,scrollRef:o});return{listProps:_}}function J0(e){return null}J0.getCollectionNode=function*(t,n){let{childItems:r,title:o,children:a}=t,i=t.title||t.children,l=t.textValue||(typeof i=="string"?i:"")||t["aria-label"]||"";!l&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:i,textValue:l,"aria-label":t["aria-label"],hasChildNodes:O9(t),*childNodes(){if(r)for(let s of r)yield{type:"item",value:s};else if(o){let s=[];D.default.Children.forEach(a,u=>{s.push({type:"item",element:u})}),yield*s}}}};function O9(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&D.default.Children.count(e.children)>0)}let Hr=J0;function Z0(e){return null}Z0.getCollectionNode=function*(t){let{children:n,title:r,items:o}=t;yield{type:"section",props:t,hasChildNodes:!0,rendered:r,"aria-label":t["aria-label"],*childNodes(){if(typeof n=="function"){if(!o)throw new Error("props.children was a function but props.items is missing");for(let a of o)yield{type:"item",value:a,renderer:n}}else{let a=[];D.default.Children.forEach(n,i=>{a.push({type:"item",element:i})}),yield*a}}}};let cd=Z0;class M9{build(t,n){return this.context=n,Q0(()=>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=[];D.default.Children.forEach(n,i=>{o.push(i)});let a=0;for(let i of o){let l=this.getFullNode({element:i,index:a},{});for(let s of l)a++,yield s}}}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 l=(i=a.key)!==null&&i!==void 0?i:a.id;if(l==null)throw new Error("No key found for item");return l}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 s=this.cache.get(t.value);if(s&&(!s.shouldInvalidate||!s.shouldInvalidate(this.context))){s.index=t.index,s.parentKey=o?o.key:null,yield s;return}a=n.renderer(t.value)}if(D.default.isValidElement(a)){let s=a.type;if(typeof s!="function"&&typeof s.getCollectionNode!="function"){let m=typeof a.type=="function"?a.type.name:a.type;throw new Error(`Unknown element <${m}> in collection.`)}let u=s.getCollectionNode(a.props,this.context),d=t.index,f=u.next();for(;!f.done&&f.value;){let m=f.value;t.index=d;let g=m.key;g||(g=m.element?null:this.getKey(a,t,n,r));let b=[...this.getFullNode({...m,key:g,index:d,wrapper:F9(t.wrapper,m.wrapper)},this.getChildState(n,m),r?`${r}${a.key}`:a.key,o)];for(let v of b){if(v.value=m.value||t.value,v.value&&this.cache.set(v.value,v),t.type&&v.type!==t.type)throw new Error(`Unsupported type <${ud(v.type)}> in <${ud(o.type)}>. Only <${ud(t.type)}> is supported.`);d++,yield v}f=u.next(b)}return}if(t.key==null)return;let i=this,l={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:Q0(function*(){if(!t.hasChildNodes)return;let s=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${l.key}${u.key}`),u.index=s;let d=i.getFullNode(u,i.getChildState(n,u),l.key,l);for(let f of d)s++,yield f}})};yield l}constructor(){this.cache=new WeakMap}}function Q0(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 F9(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function ud(e){return e[0].toUpperCase()+e.slice(1)}function L9(e,t,n){let r=c.useMemo(()=>new M9,[]),{children:o,items:a,collection:i}=e;return c.useMemo(()=>{if(i)return i;let s=r.build({children:o,items:a},n);return t(s)},[r,o,a,i,n,t])}function _l(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function N9(e){return z9(e,0)}function z9(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function dd(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...ey(e,t),t],o=[...ey(e,n),n],a=r.slice(0,o.length).findIndex((i,l)=>i!==o[l]);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 ey(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const ty=new WeakMap;function ny(e){let t=ty.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)o.type==="section"?n(_l(o,e)):t++};return n(e),ty.set(e,t),t}const xl=new WeakMap;function R9(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function ry(e,t){let n=xl.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${R9(t)}`}function oy(e,t,n){let r=$n(e,{labelable:!0}),{listProps:o}=I9({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys}),{focusWithinProps:a}=Fo({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),i=ct(e.id);xl.set(t,{id:i,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction});let{labelProps:l,fieldProps:s}=yv({...e,id:i,labelElementType:"span"});return{labelProps:l,listBoxProps:fe(r,a,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...fe(s,o)})}}function ay(e,t,n){let{key:r}=e,o=xl.get(t);var a;let i=(a=e.isDisabled)!==null&&a!==void 0?a:t.disabledKeys.has(r);var l;let s=(l=e.isSelected)!==null&&l!==void 0?l:t.selectionManager.isSelected(r);var u;let d=(u=e.shouldSelectOnPressUp)!==null&&u!==void 0?u:o==null?void 0:o.shouldSelectOnPressUp;var f;let m=(f=e.shouldFocusOnHover)!==null&&f!==void 0?f:o==null?void 0:o.shouldFocusOnHover;var g;let h=(g=e.shouldUseVirtualFocus)!==null&&g!==void 0?g:o==null?void 0:o.shouldUseVirtualFocus;var b;let v=(b=e.isVirtualized)!==null&&b!==void 0?b:o==null?void 0:o.isVirtualized,_=To(),y=To(),w={role:"option","aria-disabled":i||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?s:void 0};if(Gt()&&wc()||(w["aria-label"]=e["aria-label"],w["aria-labelledby"]=_,w["aria-describedby"]=y),v){var S;let x=Number((S=t.collection.getItem(r))===null||S===void 0?void 0:S.index);w["aria-posinset"]=Number.isNaN(x)?void 0:x+1,w["aria-setsize"]=ny(t.collection)}let{itemProps:P,isPressed:T,isFocused:M,hasAction:$,allowsSelection:k}=A9({selectionManager:t.selectionManager,key:r,ref:n,shouldSelectOnPressUp:d,allowsDifferentPressOrigin:d&&m,isVirtualized:v,shouldUseVirtualFocus:h,isDisabled:i,onAction:o!=null&&o.onAction?()=>{var x;return o==null||(x=o.onAction)===null||x===void 0?void 0:x.call(o,r)}:void 0}),{hoverProps:F}=cC({isDisabled:i||!m,onHoverStart(){_i()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r))}});return{optionProps:{...w,...fe(P,F),id:ry(t,r)},labelProps:{id:_},descriptionProps:{id:y},isFocused:M,isFocusVisible:M&&_i(),isSelected:s,isDisabled:i,isPressed:T,allowsSelection:k,hasAction:$}}function K9(e){return e&&e.__esModule?e.default:e}var iy={},ly={};ly={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var sy={};sy={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var cy={};cy={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var uy={};uy={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var dy={};dy={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var fy={};fy={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var py={};py={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var my={};my={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var gy={};gy={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var hy={};hy={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var by={};by={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var vy={};vy={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var yy={};yy={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var $y={};$y={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var _y={};_y={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var xy={};xy={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var wy={};wy={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Ey={};Ey={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Sy={};Sy={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Dy={};Dy={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Py={};Py={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Ty={};Ty={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Cy={};Cy={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var ky={};ky={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Ay={};Ay={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Iy={};Iy={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Oy={};Oy={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var My={};My={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Fy={};Fy={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Ly={};Ly={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Ny={};Ny={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var zy={};zy={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Ry={};Ry={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Ky={};Ky={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"},iy={"ar-AE":ly,"bg-BG":sy,"cs-CZ":cy,"da-DK":uy,"de-DE":dy,"el-GR":fy,"en-US":py,"es-ES":my,"et-EE":gy,"fi-FI":hy,"fr-FR":by,"he-IL":vy,"hr-HR":yy,"hu-HU":$y,"it-IT":_y,"ja-JP":xy,"ko-KR":wy,"lt-LT":Ey,"lv-LV":Sy,"nb-NO":Dy,"nl-NL":Py,"pl-PL":Ty,"pt-BR":Cy,"pt-PT":ky,"ro-RO":Ay,"ru-RU":Iy,"sk-SK":Oy,"sl-SI":My,"sr-SP":Fy,"sv-SE":Ly,"tr-TR":Ny,"uk-UA":zy,"zh-CN":Ry,"zh-TW":Ky};function fd(e,t,n){let{type:r="menu",isDisabled:o,trigger:a="press"}=e,i=ct(),{triggerProps:l,overlayProps:s}=ad({type:r},t,n),u=g=>{if(!o&&!(a==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(a==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("last");break}},d=_t(K9(iy)),{longPressProps:f}=Wg({isDisabled:o||a!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),m={onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!o&&t.toggle(g.pointerType==="virtual"?"first":null)},onPress(g){g.pointerType==="touch"&&!o&&t.toggle()}};return delete l.onPress,{menuTriggerProps:{...l,...a==="press"?m:f,id:i,onKeyDown:u},menuProps:{...s,"aria-labelledby":i,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function ca(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:a=!1,validationState:i,type:l="text",onChange:s=()=>{}}=e,{focusableProps:u}=qc(e,t),{labelProps:d,fieldProps:f,descriptionProps:m,errorMessageProps:g}=ol(e),h=$n(e,{labelable:!0});const b={type:l,pattern:e.pattern};return{labelProps:d,inputProps:fe(h,n==="input"&&b,{disabled:r,readOnly:a,"aria-required":o||void 0,"aria-invalid":i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:e.value,defaultValue:e.value?void 0:e.defaultValue,onChange:v=>s(v.target.value),autoComplete:e.autoComplete,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...f}),descriptionProps:m,errorMessageProps:g}}function Vy(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function V9(e,t,n){let r=ke(d=>{let f=n.current,m;switch(d.inputType){case"historyUndo":case"historyRedo":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":m=f.value.slice(0,f.selectionStart)+f.value.slice(f.selectionEnd);break;case"deleteContentForward":m=f.selectionEnd===f.selectionStart?f.value.slice(0,f.selectionStart)+f.value.slice(f.selectionEnd+1):f.value.slice(0,f.selectionStart)+f.value.slice(f.selectionEnd);break;case"deleteContentBackward":m=f.selectionEnd===f.selectionStart?f.value.slice(0,f.selectionStart-1)+f.value.slice(f.selectionStart):f.value.slice(0,f.selectionStart)+f.value.slice(f.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":m=f.value.slice(f.selectionStart);break;default:d.data!=null&&(m=f.value.slice(0,f.selectionStart)+d.data+f.value.slice(f.selectionEnd));break}(m==null||!t.validate(m))&&d.preventDefault()});c.useEffect(()=>{if(!Vy())return;let d=n.current;return d.addEventListener("beforeinput",r,!1),()=>{d.removeEventListener("beforeinput",r,!1)}},[n,r]);let o=Vy()?null:d=>{let f=d.target.value.slice(0,d.target.selectionStart)+d.data+d.target.value.slice(d.target.selectionEnd);t.validate(f)||d.preventDefault()},{labelProps:a,inputProps:i,descriptionProps:l,errorMessageProps:s}=ca(e,n),u=c.useRef(null);return{inputProps:fe(i,{onBeforeInput:o,onCompositionStart(){let{value:d,selectionStart:f,selectionEnd:m}=n.current;u.current={value:d,selectionStart:f,selectionEnd:m}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:d,selectionStart:f,selectionEnd:m}=u.current;n.current.value=d,n.current.setSelectionRange(f,m),t.setInputValue(d)}}}),labelProps:a,descriptionProps:l,errorMessageProps:s}}function B9(e){return e&&e.__esModule?e.default:e}var By={},jy={};jy={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 Uy={};Uy={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 Wy={};Wy={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 Hy={};Hy={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 Gy={};Gy={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 Yy={};Yy={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 qy={};qy={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 Xy={};Xy={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 Jy={};Jy={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 Zy={};Zy={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 Qy={};Qy={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} saisi, 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 e$={};e$={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 t$={};t$={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 n$={};n$={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 r$={};r$={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 o$={};o$={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 a$={};a$={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 i$={};i$={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 l$={};l$={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 s$={};s$={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 c$={};c$={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 u$={};u$={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 d$={};d$={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 f$={};f$={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 p$={};p$={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var m$={};m$={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var g$={};g$={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 h$={};h$={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 b$={};b$={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 v$={};v$={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 y$={};y$={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 $$={};$$={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 _$={};_$={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 x$={};x$={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}, 已選取`},By={"ar-AE":jy,"bg-BG":Uy,"cs-CZ":Wy,"da-DK":Hy,"de-DE":Gy,"el-GR":Yy,"en-US":qy,"es-ES":Xy,"et-EE":Jy,"fi-FI":Zy,"fr-FR":Qy,"he-IL":e$,"hr-HR":t$,"hu-HU":n$,"it-IT":r$,"ja-JP":o$,"ko-KR":a$,"lt-LT":i$,"lv-LV":l$,"nb-NO":s$,"nl-NL":c$,"pl-PL":u$,"pt-BR":d$,"pt-PT":f$,"ro-RO":p$,"ru-RU":m$,"sk-SK":g$,"sl-SI":h$,"sr-SP":b$,"sv-SE":v$,"tr-TR":y$,"uk-UA":$$,"zh-CN":_$,"zh-TW":x$};function j9(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:a,keyboardDelegate:i,shouldFocusWrap:l,isReadOnly:s,isDisabled:u}=e,d=_t(B9(By)),{menuTriggerProps:f,menuProps:m}=fd({type:"listbox",isDisabled:u||s},t,n);xl.set(t,{id:m.id});let g=c.useMemo(()=>i||new $l(t.collection,t.disabledKeys,a),[i,t.collection,t.disabledKeys,a]),{collectionProps:h}=Y0({selectionManager:t.selectionManager,keyboardDelegate:g,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:o,isVirtualized:!0}),b=W=>{switch(W.key){case"Enter":case"Tab":t.isOpen&&W.key==="Enter"&&W.preventDefault(),t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&W.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}},v=W=>{var G;W.relatedTarget===(n==null?void 0:n.current)||!((G=r.current)===null||G===void 0)&&G.contains(W.relatedTarget)||(e.onBlur&&e.onBlur(W),t.setFocused(!1))},_=W=>{t.isFocused||(e.onFocus&&e.onFocus(W),t.setFocused(!0))},{labelProps:y,inputProps:w,descriptionProps:S,errorMessageProps:P}=ca({...e,onChange:t.setInputValue,onKeyDown:!s&&Wt(t.isOpen&&h.onKeyDown,b,e.onKeyDown),onBlur:v,value:t.inputValue,onFocus:_,autoComplete:"off"},o),T=W=>{W.pointerType==="touch"&&(o.current.focus(),t.toggle(null,"manual"))},M=W=>{W.pointerType!=="touch"&&(o.current.focus(),t.toggle(W.pointerType==="keyboard"||W.pointerType==="virtual"?"first":null,"manual"))},$=$r({id:f.id,"aria-label":d.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||y.id}),k=$r({id:m.id,"aria-label":d.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||y.id}),F=c.useRef(0),x=W=>{if(u||s)return;if(W.timeStamp-F.current<500){W.preventDefault(),o.current.focus();return}let G=W.target.getBoundingClientRect(),re=W.changedTouches[0],oe=Math.ceil(G.left+.5*G.width),ae=Math.ceil(G.top+.5*G.height);re.clientX===oe&&re.clientY===ae&&(W.preventDefault(),o.current.focus(),t.toggle(null,"manual"),F.current=W.timeStamp)},R=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var O;let A=(O=R==null?void 0:R.parentKey)!==null&&O!==void 0?O:null;var V;let I=(V=t.selectionManager.focusedKey)!==null&&V!==void 0?V:null,J=c.useRef(A),j=c.useRef(I);c.useEffect(()=>{if(di()&&R!=null&&I!==j.current){let W=t.selectionManager.isSelected(I),G=A!=null?t.collection.getItem(A):null,re=(G==null?void 0:G["aria-label"])||(typeof(G==null?void 0:G.rendered)=="string"?G.rendered:"")||"",oe=d.format("focusAnnouncement",{isGroupChange:G&&A!==J.current,groupTitle:re,groupCount:G?[..._l(G,t.collection)].length:0,optionText:R["aria-label"]||R.textValue||"",isSelected:W});Mr(oe)}J.current=A,j.current=I});let U=ny(t.collection),L=c.useRef(U),B=c.useRef(t.isOpen);c.useEffect(()=>{let W=t.isOpen!==B.current&&(t.selectionManager.focusedKey==null||di());if(t.isOpen&&(W||U!==L.current)){let G=d.format("countAnnouncement",{optionCount:U});Mr(G)}L.current=U,B.current=t.isOpen});let Y=c.useRef(t.selectedKey);return c.useEffect(()=>{if(di()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Y.current){let W=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",G=d.format("selectedAnnouncement",{optionText:W});Mr(G)}Y.current=t.selectedKey}),c.useEffect(()=>{if(t.isOpen)return H0([o.current,r.current])},[t.isOpen,o,r]),{labelProps:y,buttonProps:{...f,...$,excludeFromTabOrder:!0,onPress:T,onPressStart:M,isDisabled:u||s},inputProps:fe(w,{role:"combobox","aria-expanded":f["aria-expanded"],"aria-controls":t.isOpen?m.id:void 0,"aria-autocomplete":"list","aria-activedescendant":R?ry(t,R.key):void 0,onTouchEnd:x,autoCorrect:"off",spellCheck:"false"}),listBoxProps:fe(m,k,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0}),descriptionProps:S,errorMessageProps:P}}class pd{*[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}}class wt extends Set{constructor(t,n,r){super(t),t instanceof wt?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function U9(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function W9(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:a="all"}=e,i=c.useRef(!1),[,l]=c.useState(!1),s=c.useRef(null),u=c.useRef(null),[,d]=c.useState(null),f=c.useMemo(()=>w$(e.selectedKeys),[e.selectedKeys]),m=c.useMemo(()=>w$(e.defaultSelectedKeys,new wt),[e.defaultSelectedKeys]),[g,h]=Ot(f,m,e.onSelectionChange),b=c.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,_]=c.useState(o);o==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&_("replace");let y=c.useRef(o);return c.useEffect(()=>{o!==y.current&&(_(o),y.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:_,get isFocused(){return i.current},setFocused(w){i.current=w,l(w)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(w,S="first"){s.current=w,u.current=S,d(w)},selectedKeys:g,setSelectedKeys(w){(r||!U9(w,g))&&h(w)},disabledKeys:b,disabledBehavior:a}}function w$(e,t){return e?e==="all"?"all":new wt(e):t}class H9{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&&dd(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&&dd(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 wt([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new wt(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?dd(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 wt(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 wt([t],t,t):new wt;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new wt;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(N9(_l(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 wt)}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){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}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}}function E$(e){let{filter:t}=e,n=W9(e),r=c.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=c.useCallback(u=>t?new pd(t(u)):new pd(u),[t]),a=c.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),i=L9(e,o,a),l=c.useMemo(()=>new H9(i,n),[i,n]);const s=c.useRef(null);return c.useEffect(()=>{if(n.focusedKey!=null&&!i.getItem(n.focusedKey)){const u=s.current.getItem(n.focusedKey),d=[...s.current.getKeys()].map(b=>{const v=s.current.getItem(b);return v.type==="item"?v:null}).filter(b=>b!==null),f=[...i.getKeys()].map(b=>{const v=i.getItem(b);return v.type==="item"?v:null}).filter(b=>b!==null),m=d.length-f.length;let g=Math.min(m>1?Math.max(u.index-m+1,0):u.index,f.length-1),h;for(;g>=0;){if(!l.isDisabled(f[g].key)){h=f[g];break}g<f.length-1?g++:(g>u.index&&(g=u.index),g--)}n.setFocusedKey(h?h.key:null)}s.current=i},[i,l,n,n.focusedKey]),{collection:i,disabledKeys:r,selectionManager:l}}function S$(e){var t;let[n,r]=Ot(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=c.useMemo(()=>n!=null?[n]:[],[n]),{collection:a,disabledKeys:i,selectionManager:l}=E$({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:u=>{var d;let f=(d=u.values().next().value)!==null&&d!==void 0?d:null;f===n&&e.onSelectionChange&&e.onSelectionChange(f),r(f)}}),s=n!=null?a.getItem(n):null;return{collection:a,disabledKeys:i,selectionManager:l,selectedKey:n,setSelectedKey:r,selectedItem:s}}function ua(e){let[t,n]=Ot(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=c.useCallback(()=>{n(!0)},[n]),o=c.useCallback(()=>{n(!1)},[n]),a=c.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:a}}function D$(e){let t=ua(e),[n,r]=c.useState(null);return{focusStrategy:n,...t,open(o=null){r(o),t.open()},toggle(o=null){r(o),t.toggle()}}}function G9(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:o=!1,allowsCustomValue:a,shouldCloseOnBlur:i=!0}=e,[l,s]=c.useState(!1),[u,d]=c.useState(!1);var f;let[m,g]=Ot(e.inputValue,(f=e.defaultInputValue)!==null&&f!==void 0?f:"",e.onInputChange),h=le=>{e.onSelectionChange&&e.onSelectionChange(le),le===y&&(j(),I())};var b;let{collection:v,selectionManager:_,selectedKey:y,setSelectedKey:w,selectedItem:S,disabledKeys:P}=S$({...e,onSelectionChange:h,items:(b=e.items)!==null&&b!==void 0?b:e.defaultItems}),T=v,M=c.useMemo(()=>e.items!=null||!n?v:Y9(v,m,n),[v,m,n,e.items]),[$,k]=c.useState(M),F=c.useRef("focus"),R=D$({...e,onOpenChange:le=>{e.onOpenChange&&e.onOpenChange(le,le?F.current:void 0),_.setFocused(le),le||_.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),O=(le,pe)=>{let Se=pe==="manual"||pe==="focus"&&r==="focus";(o||M.size>0||Se&&T.size>0||e.items)&&(Se&&!R.isOpen&&e.items===void 0&&s(!0),F.current=pe,R.open(le))},A=(le,pe)=>{let Se=pe==="manual"||pe==="focus"&&r==="focus";!(o||M.size>0||Se&&T.size>0||e.items)&&!R.isOpen||(Se&&!R.isOpen&&e.items===void 0&&s(!0),R.isOpen||(F.current=pe),V(le))},V=c.useCallback(le=>{R.isOpen&&k(M),R.toggle(le)},[R,M]),I=c.useCallback(()=>{R.isOpen&&(k(M),R.close())},[R,M]),J=c.useRef(m),j=()=>{var le,pe;let Se=(pe=(le=v.getItem(y))===null||le===void 0?void 0:le.textValue)!==null&&pe!==void 0?pe:"";J.current=Se,g(Se)},U=c.useRef(!0);var L,B;let Y=c.useRef((B=(L=e.selectedKey)!==null&&L!==void 0?L:e.defaultSelectedKey)!==null&&B!==void 0?B:null);var W;let G=c.useRef((W=(t=v.getItem(y))===null||t===void 0?void 0:t.textValue)!==null&&W!==void 0?W:"");c.useEffect(()=>{var le;u&&(M.size>0||o)&&!R.isOpen&&m!==J.current&&r!=="manual"&&O(null,"input"),!l&&!o&&R.isOpen&&M.size===0&&I(),y!=null&&y!==Y.current&&I(),m!==J.current&&(_.setFocusedKey(null),s(!1),m===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&w(null)),U.current&&e.inputValue===void 0&&e.defaultInputValue===void 0&&j(),y!==Y.current&&(e.inputValue===void 0||e.selectedKey===void 0)?j():J.current=m;var pe;let Se=(pe=(le=v.getItem(y))===null||le===void 0?void 0:le.textValue)!==null&&pe!==void 0?pe:"";!u&&y!=null&&e.inputValue===void 0&&y===Y.current&&G.current!==Se&&(J.current=Se,g(Se)),U.current=!1,Y.current=y,G.current=Se});let re=()=>{a&&y==null?oe():ae()},oe=()=>{Y.current=null,w(null),I()},ae=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var le;e.onSelectionChange(y);var pe;let Se=(pe=(le=v.getItem(y))===null||le===void 0?void 0:le.textValue)!==null&&pe!==void 0?pe:"";J.current=Se,I()}else j(),I()},ne=()=>{R.isOpen&&_.focusedKey!=null?y===_.focusedKey?ae():w(_.focusedKey):a?oe():ae()},ee=()=>{var le,pe;let Se=(pe=(le=v.getItem(y))===null||le===void 0?void 0:le.textValue)!==null&&pe!==void 0?pe:"";a&&m!==Se?oe():ae(),I()},se=le=>{le?r==="focus"&&O(null,"focus"):i&&ee(),d(le)},_e=c.useMemo(()=>R.isOpen?l?T:M:$,[R.isOpen,T,M,l,$]);return{...R,toggle:A,open:O,close:ee,selectionManager:_,selectedKey:y,setSelectedKey:w,disabledKeys:P,isFocused:u,setFocused:se,selectedItem:S,collection:_e,inputValue:m,setInputValue:g,commit:ne,revert:re}}function Y9(e,t,n){return new pd(P$(e,e,t,n))}function P$(e,t,n,r){let o=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let i=P$(e,_l(a,e),n,r);[...i].some(l=>l.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}const q9=z.default.div`
|
|
1475
1475
|
z-index: 100;
|
|
1476
1476
|
font-family: ${p.font_family_pingo};
|
|
1477
1477
|
overflow: hidden;
|
|
@@ -1757,7 +1757,7 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var le=_e(ae,se,G,re,oe+
|
|
|
1757
1757
|
height: ${p.sizing_450};
|
|
1758
1758
|
margin-top: -3px;
|
|
1759
1759
|
}
|
|
1760
|
-
`,hA=c.forwardRef(function(t,n){const{onClose:r}=c.useContext(da);return X(gA,{name:"Close",as:"button",type:"button",ref:n,"data-id":"drawer-close",...t,onClick:r,width:p.sizing_600,height:p.sizing_600,children:[E(De.Close,{}),E(Si,{children:"Close"})]})}),Yr=c.forwardRef(function(t,n){const{children:r,closeOnEscape:o=!0,closeOnOutsideClick:a=!0,id:i,onChange:l=()=>{},onClose:s,open:u,portalTargetId:d="root",position:f="right",loading:m,width:g="80vw",maxWidth:h="32rem",dialogTitle:b="Details Drawer"}=t,[v,_]=c.useState(!1),[y,w]=c.useState(null),S=c.useRef(null);c.useEffect(()=>{c.Children.forEach(r,M=>{const $=M.props;c.isValidElement(M)&&M.type===_d&&typeof $.title=="string"?w($.title):c.isValidElement(M)&&M.type===_d&&typeof $.dialogTitle=="string"&&w($.dialogTitle)})},[r]);function P(M){var k;if(!a)return;!((k=S.current)!=null&&k.contains(M.target))&&u&&s()}function T(M){o&&u&&hp("escape",s)(M)}return vr("keydown",T),vr("click",P),c.useEffect(()=>{l(u)},[l,u]),c.useLayoutEffect(()=>{let M;return u&&(M=gs().setTimeout(()=>{var $;($=S==null?void 0:S.current)==null||$.focus()},ni(p.motion_duration_medium))),()=>{gs().clearTimeout(M)}},[u]),vr("blur",()=>{_(!0)}),vr("focus",M=>{_(!1)}),X(fn,{children:[E(cg,{isActive:u}),E(mc,{containerId:d,children:E(fg,{mountOnEnter:!0,unmountOnExit:!0,in:u,timeout:{enter:0,exit:ni(p.motion_duration_medium)},children:M=>E(ge,{"data-id":"drawer-wrapper",height:"100vh",left:"0",position:"fixed",ref:n,style:{pointerEvents:"none"},tabIndex:-1,top:"0",width:"100vw",zIndex:Number(p.z_index_foreground_highest),children:E(fA,{"aria-modal":"true","data-id":"drawer-container",id:i,name:y??b,"aria-label":y??b,ref:S,role:"dialog",$state:M,$viewportPosition:f,tabIndex:-1,bg:"white",position:"absolute",top:"0",bottom:"0",maxWidth:h,width:g,right:f==="right"?"0":"auto",left:f==="left"?"0":"auto",boxShadow:p.elevation_static_low,m:p.spacing_300,borderRadius:p.border_radius_400,overflowX:"hidden",children:E(ei.TouchScrollable,{children:E(ht,{overflowY:"auto",overflowX:"hidden",position:"relative",height:"100%",flexDirection:"column",children:E(da.Provider,{value:{onClose:s,loading:m},children:r})})})})})})})]})});Yr.displayName="Drawer",Yr.Content=uA,Yr.Header=_d,Yr.Close=hA,Yr.Footer=mA;const U$=Yr;function bA({initialOpen:e=!1,triggerToggle:t=!1,id:n="pingo-drawer"}={}){const[r,o]=c.useState(e),a=c.useCallback(()=>{o(!r)},[r]),i=c.useCallback(()=>{o(!0)},[]),l=c.useCallback(()=>{o(!1)},[]);function s(d={}){return{"aria-controls":n,onClick:t?a:i,...d}}function u(d={}){return{id:n,onClose:l,open:r,...d}}return{isOpen:r,toggleDrawer:a,openDrawer:i,closeDrawer:l,getActivatorProps:s,getDrawerProps:u}}const xd=["Enter"," "],vA=["ArrowDown","PageUp","Home"],W$=["ArrowUp","PageDown","End"],yA=[...vA,...W$],$A={ltr:[...xd,"ArrowRight"],rtl:[...xd,"ArrowLeft"]},_A={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Tl="Menu",[fa,xA,wA]=Aa(Tl),[tr,H$]=Ke(Tl,[wA,Vr,wn]),pa=Vr(),G$=wn(),[Y$,Cn]=tr(Tl),[EA,ma]=tr(Tl),SA=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,l=pa(t),[s,u]=c.useState(null),d=c.useRef(!1),f=je(a),m=ar(o);return c.useEffect(()=>{const g=()=>{d.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>d.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),c.createElement(ml,l,c.createElement(Y$,{scope:t,open:n,onOpenChange:f,content:s,onContentChange:u},c.createElement(EA,{scope:t,onClose:c.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:m,modal:i},r)))},q$=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=pa(n);return c.createElement(qu,N({},o,r,{ref:t}))}),X$="MenuPortal",[DA,J$]=tr(X$,{forceMount:void 0}),PA=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Cn(X$,t);return c.createElement(DA,{scope:t,forceMount:n},c.createElement(We,{present:n||a.open},c.createElement(_o,{asChild:!0,container:o},r)))},Dt="MenuContent",[TA,wd]=tr(Dt),CA=c.forwardRef((e,t)=>{const n=J$(Dt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Cn(Dt,e.__scopeMenu),i=ma(Dt,e.__scopeMenu);return c.createElement(fa.Provider,{scope:e.__scopeMenu},c.createElement(We,{present:r||a.open},c.createElement(fa.Slot,{scope:e.__scopeMenu},i.modal?c.createElement(kA,N({},o,{ref:t})):c.createElement(AA,N({},o,{ref:t})))))}),kA=c.forwardRef((e,t)=>{const n=Cn(Dt,e.__scopeMenu),r=c.useRef(null),o=ye(t,r);return c.useEffect(()=>{const a=r.current;if(a)return Ns(a)},[]),c.createElement(Ed,N({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Q(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),AA=c.forwardRef((e,t)=>{const n=Cn(Dt,e.__scopeMenu);return c.createElement(Ed,N({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Ed=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:s,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:g,disableOutsideScroll:h,...b}=e,v=Cn(Dt,n),_=ma(Dt,n),y=pa(n),w=G$(n),S=xA(n),[P,T]=c.useState(null),M=c.useRef(null),$=ye(t,M,v.onContentChange),k=c.useRef(0),L=c.useRef(""),x=c.useRef(0),R=c.useRef(null),O=c.useRef("right"),A=c.useRef(0),V=h?Fs:c.Fragment,I=h?{as:Ln,allowPinchZoom:!0}:void 0,J=U=>{var F,B;const Y=L.current+U,W=S().filter(ee=>!ee.disabled),G=document.activeElement,re=(F=W.find(ee=>ee.ref.current===G))===null||F===void 0?void 0:F.textValue,oe=W.map(ee=>ee.textValue),ae=JA(oe,Y,re),ne=(B=W.find(ee=>ee.textValue===ae))===null||B===void 0?void 0:B.ref.current;(function ee(se){L.current=se,window.clearTimeout(k.current),se!==""&&(k.current=window.setTimeout(()=>ee(""),1e3))})(Y),ne&&setTimeout(()=>ne.focus())};c.useEffect(()=>()=>window.clearTimeout(k.current),[]),ks();const j=c.useCallback(U=>{var F,B;return O.current===((F=R.current)===null||F===void 0?void 0:F.side)&&QA(U,(B=R.current)===null||B===void 0?void 0:B.area)},[]);return c.createElement(TA,{scope:n,searchRef:L,onItemEnter:c.useCallback(U=>{j(U)&&U.preventDefault()},[j]),onItemLeave:c.useCallback(U=>{var F;j(U)||((F=M.current)===null||F===void 0||F.focus(),T(null))},[j]),onTriggerLeave:c.useCallback(U=>{j(U)&&U.preventDefault()},[j]),pointerGraceTimerRef:x,onPointerGraceIntentChange:c.useCallback(U=>{R.current=U},[])},c.createElement(V,I,c.createElement(Ts,{asChild:!0,trapped:o,onMountAutoFocus:Q(a,U=>{var F;U.preventDefault(),(F=M.current)===null||F===void 0||F.focus()}),onUnmountAutoFocus:i},c.createElement($o,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:g},c.createElement(Ai,N({asChild:!0},w,{dir:_.dir,orientation:"vertical",loop:r,currentTabStopId:P,onCurrentTabStopIdChange:T,onEntryFocus:Q(s,U=>{_.isUsingKeyboardRef.current||U.preventDefault()})}),c.createElement(Xu,N({role:"menu","aria-orientation":"vertical","data-state":a_(v.open),"data-radix-menu-content":"",dir:_.dir},y,b,{ref:$,style:{outline:"none",...b.style},onKeyDown:Q(b.onKeyDown,U=>{const B=U.target.closest("[data-radix-menu-content]")===U.currentTarget,Y=U.ctrlKey||U.altKey||U.metaKey,W=U.key.length===1;B&&(U.key==="Tab"&&U.preventDefault(),!Y&&W&&J(U.key));const G=M.current;if(U.target!==G||!yA.includes(U.key))return;U.preventDefault();const oe=S().filter(ae=>!ae.disabled).map(ae=>ae.ref.current);W$.includes(U.key)&&oe.reverse(),qA(oe)}),onBlur:Q(e.onBlur,U=>{U.currentTarget.contains(U.target)||(window.clearTimeout(k.current),L.current="")}),onPointerMove:Q(e.onPointerMove,ga(U=>{const F=U.target,B=A.current!==U.clientX;if(U.currentTarget.contains(F)&&B){const Y=U.clientX>A.current?"right":"left";O.current=Y,A.current=U.clientX}}))})))))))}),Z$=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.createElement(ce.div,N({role:"group"},r,{ref:t}))}),IA=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.createElement(ce.div,N({},r,{ref:t}))}),Sd="MenuItem",Q$="menu.itemSelect",Dd=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=c.useRef(null),i=ma(Sd,e.__scopeMenu),l=wd(Sd,e.__scopeMenu),s=ye(t,a),u=c.useRef(!1),d=()=>{const f=a.current;if(!n&&f){const m=new CustomEvent(Q$,{bubbles:!0,cancelable:!0});f.addEventListener(Q$,g=>r==null?void 0:r(g),{once:!0}),is(f,m),m.defaultPrevented?u.current=!1:i.onClose()}};return c.createElement(e_,N({},o,{ref:s,disabled:n,onClick:Q(e.onClick,d),onPointerDown:f=>{var m;(m=e.onPointerDown)===null||m===void 0||m.call(e,f),u.current=!0},onPointerUp:Q(e.onPointerUp,f=>{var m;u.current||(m=f.currentTarget)===null||m===void 0||m.click()}),onKeyDown:Q(e.onKeyDown,f=>{const m=l.searchRef.current!=="";n||m&&f.key===" "||xd.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})}))}),e_=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=wd(Sd,n),l=G$(n),s=c.useRef(null),u=ye(t,s),[d,f]=c.useState(!1),[m,g]=c.useState("");return c.useEffect(()=>{const h=s.current;if(h){var b;g(((b=h.textContent)!==null&&b!==void 0?b:"").trim())}},[a.children]),c.createElement(fa.ItemSlot,{scope:n,disabled:r,textValue:o??m},c.createElement(Ii,N({asChild:!0},l,{focusable:!r}),c.createElement(ce.div,N({role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:u,onPointerMove:Q(e.onPointerMove,ga(h=>{r?i.onItemLeave(h):(i.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus())})),onPointerLeave:Q(e.onPointerLeave,ga(h=>i.onItemLeave(h))),onFocus:Q(e.onFocus,()=>f(!0)),onBlur:Q(e.onBlur,()=>f(!1))}))))}),OA=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return c.createElement(n_,{scope:e.__scopeMenu,checked:n},c.createElement(Dd,N({role:"menuitemcheckbox","aria-checked":kl(n)?"mixed":n},o,{ref:t,"data-state":Pd(n),onSelect:Q(o.onSelect,()=>r==null?void 0:r(kl(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),MA="MenuRadioGroup",[FA,LA]=tr(MA,{value:void 0,onValueChange:()=>{}}),NA=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=je(r);return c.createElement(FA,{scope:e.__scopeMenu,value:n,onValueChange:a},c.createElement(Z$,N({},o,{ref:t})))}),zA="MenuRadioItem",RA=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=LA(zA,e.__scopeMenu),a=n===o.value;return c.createElement(n_,{scope:e.__scopeMenu,checked:a},c.createElement(Dd,N({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":Pd(a),onSelect:Q(r.onSelect,()=>{var i;return(i=o.onValueChange)===null||i===void 0?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})))}),t_="MenuItemIndicator",[n_,KA]=tr(t_,{checked:!1}),VA=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=KA(t_,n);return c.createElement(We,{present:r||kl(a.checked)||a.checked===!0},c.createElement(ce.span,N({},o,{ref:t,"data-state":Pd(a.checked)})))}),BA=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.createElement(ce.div,N({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),jA=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=pa(n);return c.createElement(Ju,N({},o,r,{ref:t}))}),r_="MenuSub",[UA,o_]=tr(r_),WA=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Cn(r_,t),i=pa(t),[l,s]=c.useState(null),[u,d]=c.useState(null),f=je(o);return c.useEffect(()=>(a.open===!1&&f(!1),()=>f(!1)),[a.open,f]),c.createElement(ml,i,c.createElement(Y$,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:d},c.createElement(UA,{scope:t,contentId:nt(),triggerId:nt(),trigger:l,onTriggerChange:s},n)))},Cl="MenuSubTrigger",HA=c.forwardRef((e,t)=>{const n=Cn(Cl,e.__scopeMenu),r=ma(Cl,e.__scopeMenu),o=o_(Cl,e.__scopeMenu),a=wd(Cl,e.__scopeMenu),i=c.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:s}=a,u={__scopeMenu:e.__scopeMenu},d=c.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return c.useEffect(()=>d,[d]),c.useEffect(()=>{const f=l.current;return()=>{window.clearTimeout(f),s(null)}},[l,s]),c.createElement(q$,N({asChild:!0},u),c.createElement(e_,N({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":a_(n.open)},e,{ref:ka(t,o.onTriggerChange),onClick:f=>{var m;(m=e.onClick)===null||m===void 0||m.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Q(e.onPointerMove,ga(f=>{a.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:Q(e.onPointerLeave,ga(f=>{var m;d();const g=(m=n.content)===null||m===void 0?void 0:m.getBoundingClientRect();if(g){var h;const b=(h=n.content)===null||h===void 0?void 0:h.dataset.side,v=b==="right",_=v?-5:5,y=g[v?"left":"right"],w=g[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:f.clientX+_,y:f.clientY},{x:y,y:g.top},{x:w,y:g.top},{x:w,y:g.bottom},{x:y,y:g.bottom}],side:b}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(f),f.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Q(e.onKeyDown,f=>{const m=a.searchRef.current!=="";if(!(e.disabled||m&&f.key===" ")&&$A[r.dir].includes(f.key)){var g;n.onOpenChange(!0),(g=n.content)===null||g===void 0||g.focus(),f.preventDefault()}})})))}),GA="MenuSubContent",YA=c.forwardRef((e,t)=>{const n=J$(Dt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Cn(Dt,e.__scopeMenu),i=ma(Dt,e.__scopeMenu),l=o_(GA,e.__scopeMenu),s=c.useRef(null),u=ye(t,s);return c.createElement(fa.Provider,{scope:e.__scopeMenu},c.createElement(We,{present:r||a.open},c.createElement(fa.Slot,{scope:e.__scopeMenu},c.createElement(Ed,N({id:l.contentId,"aria-labelledby":l.triggerId},o,{ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;i.isUsingKeyboardRef.current&&((f=s.current)===null||f===void 0||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:Q(e.onFocusOutside,d=>{d.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Q(e.onEscapeKeyDown,d=>{i.onClose(),d.preventDefault()}),onKeyDown:Q(e.onKeyDown,d=>{const f=d.currentTarget.contains(d.target),m=_A[i.dir].includes(d.key);if(f&&m){var g;a.onOpenChange(!1),(g=l.trigger)===null||g===void 0||g.focus(),d.preventDefault()}})})))))});function a_(e){return e?"open":"closed"}function kl(e){return e==="indeterminate"}function Pd(e){return kl(e)?"indeterminate":e?"checked":"unchecked"}function qA(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function XA(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function JA(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=XA(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==n));const s=i.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return s!==n?s:void 0}function ZA(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const l=t[a].x,s=t[a].y,u=t[i].x,d=t[i].y;s>r!=d>r&&n<(u-l)*(r-s)/(d-s)+l&&(o=!o)}return o}function QA(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return ZA(n,t)}function ga(e){return t=>t.pointerType==="mouse"?e(t):void 0}const eI=SA,tI=q$,nI=PA,rI=CA,oI=Z$,aI=IA,iI=Dd,lI=OA,sI=NA,cI=RA,uI=VA,dI=BA,fI=jA,pI=WA,mI=HA,gI=YA,i_="DropdownMenu",[hI,NV]=Ke(i_,[H$]),Ge=H$(),[bI,l_]=hI(i_),vI=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,s=Ge(t),u=c.useRef(null),[d=!1,f]=Ue({prop:o,defaultProp:a,onChange:i});return c.createElement(bI,{scope:t,triggerId:nt(),triggerRef:u,contentId:nt(),open:d,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(m=>!m),[f]),modal:l},c.createElement(eI,N({},s,{open:d,onOpenChange:f,dir:r,modal:l}),n))},yI="DropdownMenuTrigger",$I=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=l_(yI,n),i=Ge(n);return c.createElement(tI,N({asChild:!0},i),c.createElement(ce.button,N({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:ka(t,a.triggerRef),onPointerDown:Q(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:Q(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})))}),_I=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ge(t);return c.createElement(nI,N({},r,n))},xI="DropdownMenuContent",wI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=l_(xI,n),a=Ge(n),i=c.useRef(!1);return c.createElement(rI,N({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:Q(e.onCloseAutoFocus,l=>{var s;i.current||(s=o.triggerRef.current)===null||s===void 0||s.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:Q(e.onInteractOutside,l=>{const s=l.detail.originalEvent,u=s.button===0&&s.ctrlKey===!0,d=s.button===2||u;(!o.modal||d)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),EI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(oI,N({},o,r,{ref:t}))}),SI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(aI,N({},o,r,{ref:t}))}),DI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(iI,N({},o,r,{ref:t}))}),PI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(lI,N({},o,r,{ref:t}))}),TI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(sI,N({},o,r,{ref:t}))}),CI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(cI,N({},o,r,{ref:t}))}),kI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(uI,N({},o,r,{ref:t}))}),AI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(dI,N({},o,r,{ref:t}))}),II=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(fI,N({},o,r,{ref:t}))}),OI=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=Ge(t),[l=!1,s]=Ue({prop:r,defaultProp:a,onChange:o});return c.createElement(pI,N({},i,{open:l,onOpenChange:s}),n)},MI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(mI,N({},o,r,{ref:t}))}),FI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(gI,N({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),LI=vI,NI=$I,s_=_I,zI=wI,RI=EI,KI=SI,VI=DI,BI=PI,jI=TI,UI=CI,WI=kI,HI=AI,GI=II,YI=OI,qI=MI,XI=FI,JI=ie.keyframes`
|
|
1760
|
+
`,hA=c.forwardRef(function(t,n){const{onClose:r}=c.useContext(da);return X(gA,{name:"Close",as:"button",type:"button",ref:n,"data-id":"drawer-close",...t,onClick:r,width:p.sizing_600,height:p.sizing_600,children:[E(De.Close,{}),E(Si,{children:"Close"})]})}),Yr=c.forwardRef(function(t,n){const{children:r,closeOnEscape:o=!0,closeOnOutsideClick:a=!0,id:i,onChange:l=()=>{},onClose:s,open:u,portalTargetId:d="root",position:f="right",loading:m,width:g="80vw",maxWidth:h="32rem",dialogTitle:b="Details Drawer"}=t,[v,_]=c.useState(!1),[y,w]=c.useState(null),S=c.useRef(null);c.useEffect(()=>{c.Children.forEach(r,M=>{const $=M.props;c.isValidElement(M)&&M.type===_d&&typeof $.title=="string"?w($.title):c.isValidElement(M)&&M.type===_d&&typeof $.dialogTitle=="string"&&w($.dialogTitle)})},[r]);function P(M){var k;if(!a)return;!((k=S.current)!=null&&k.contains(M.target))&&u&&s()}function T(M){o&&u&&hp("escape",s)(M)}return vr("keydown",T),vr("click",P),c.useEffect(()=>{l(u)},[l,u]),c.useLayoutEffect(()=>{let M;return u&&(M=gs().setTimeout(()=>{var $;($=S==null?void 0:S.current)==null||$.focus()},ni(p.motion_duration_medium))),()=>{gs().clearTimeout(M)}},[u]),vr("blur",()=>{_(!0)}),vr("focus",M=>{_(!1)}),X(fn,{children:[E(cg,{isActive:u}),E(mc,{containerId:d,children:E(fg,{mountOnEnter:!0,unmountOnExit:!0,in:u,timeout:{enter:0,exit:ni(p.motion_duration_medium)},children:M=>E(ge,{"data-id":"drawer-wrapper",height:"100vh",left:"0",position:"fixed",ref:n,style:{pointerEvents:"none"},tabIndex:-1,top:"0",width:"100vw",zIndex:Number(p.z_index_foreground_highest),children:E(fA,{"aria-modal":"true","data-id":"drawer-container",id:i,name:y??b,"aria-label":y??b,ref:S,role:"dialog",$state:M,$viewportPosition:f,tabIndex:-1,bg:"white",position:"absolute",top:"0",bottom:"0",maxWidth:h,width:g,right:f==="right"?"0":"auto",left:f==="left"?"0":"auto",boxShadow:p.elevation_static_low,m:p.spacing_300,borderRadius:p.border_radius_400,overflowX:"hidden",children:E(ei.TouchScrollable,{children:E(ht,{overflowY:"auto",overflowX:"hidden",position:"relative",height:"100%",flexDirection:"column",children:E(da.Provider,{value:{onClose:s,loading:m},children:r})})})})})})})]})});Yr.displayName="Drawer",Yr.Content=uA,Yr.Header=_d,Yr.Close=hA,Yr.Footer=mA;const U$=Yr;function bA({initialOpen:e=!1,triggerToggle:t=!1,id:n="pingo-drawer"}={}){const[r,o]=c.useState(e),a=c.useCallback(()=>{o(!r)},[r]),i=c.useCallback(()=>{o(!0)},[]),l=c.useCallback(()=>{o(!1)},[]);function s(d={}){return{"aria-controls":n,onClick:t?a:i,...d}}function u(d={}){return{id:n,onClose:l,open:r,...d}}return{isOpen:r,toggleDrawer:a,openDrawer:i,closeDrawer:l,getActivatorProps:s,getDrawerProps:u}}const xd=["Enter"," "],vA=["ArrowDown","PageUp","Home"],W$=["ArrowUp","PageDown","End"],yA=[...vA,...W$],$A={ltr:[...xd,"ArrowRight"],rtl:[...xd,"ArrowLeft"]},_A={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Tl="Menu",[fa,xA,wA]=Aa(Tl),[tr,H$]=Ke(Tl,[wA,Vr,wn]),pa=Vr(),G$=wn(),[Y$,Cn]=tr(Tl),[EA,ma]=tr(Tl),SA=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,l=pa(t),[s,u]=c.useState(null),d=c.useRef(!1),f=je(a),m=ar(o);return c.useEffect(()=>{const g=()=>{d.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>d.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),c.createElement(ml,l,c.createElement(Y$,{scope:t,open:n,onOpenChange:f,content:s,onContentChange:u},c.createElement(EA,{scope:t,onClose:c.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:m,modal:i},r)))},q$=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=pa(n);return c.createElement(qu,N({},o,r,{ref:t}))}),X$="MenuPortal",[DA,J$]=tr(X$,{forceMount:void 0}),PA=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Cn(X$,t);return c.createElement(DA,{scope:t,forceMount:n},c.createElement(We,{present:n||a.open},c.createElement(_o,{asChild:!0,container:o},r)))},Dt="MenuContent",[TA,wd]=tr(Dt),CA=c.forwardRef((e,t)=>{const n=J$(Dt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Cn(Dt,e.__scopeMenu),i=ma(Dt,e.__scopeMenu);return c.createElement(fa.Provider,{scope:e.__scopeMenu},c.createElement(We,{present:r||a.open},c.createElement(fa.Slot,{scope:e.__scopeMenu},i.modal?c.createElement(kA,N({},o,{ref:t})):c.createElement(AA,N({},o,{ref:t})))))}),kA=c.forwardRef((e,t)=>{const n=Cn(Dt,e.__scopeMenu),r=c.useRef(null),o=ye(t,r);return c.useEffect(()=>{const a=r.current;if(a)return Ns(a)},[]),c.createElement(Ed,N({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Q(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),AA=c.forwardRef((e,t)=>{const n=Cn(Dt,e.__scopeMenu);return c.createElement(Ed,N({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Ed=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:s,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:g,disableOutsideScroll:h,...b}=e,v=Cn(Dt,n),_=ma(Dt,n),y=pa(n),w=G$(n),S=xA(n),[P,T]=c.useState(null),M=c.useRef(null),$=ye(t,M,v.onContentChange),k=c.useRef(0),F=c.useRef(""),x=c.useRef(0),R=c.useRef(null),O=c.useRef("right"),A=c.useRef(0),V=h?Fs:c.Fragment,I=h?{as:Ln,allowPinchZoom:!0}:void 0,J=U=>{var L,B;const Y=F.current+U,W=S().filter(ee=>!ee.disabled),G=document.activeElement,re=(L=W.find(ee=>ee.ref.current===G))===null||L===void 0?void 0:L.textValue,oe=W.map(ee=>ee.textValue),ae=JA(oe,Y,re),ne=(B=W.find(ee=>ee.textValue===ae))===null||B===void 0?void 0:B.ref.current;(function ee(se){F.current=se,window.clearTimeout(k.current),se!==""&&(k.current=window.setTimeout(()=>ee(""),1e3))})(Y),ne&&setTimeout(()=>ne.focus())};c.useEffect(()=>()=>window.clearTimeout(k.current),[]),ks();const j=c.useCallback(U=>{var L,B;return O.current===((L=R.current)===null||L===void 0?void 0:L.side)&&QA(U,(B=R.current)===null||B===void 0?void 0:B.area)},[]);return c.createElement(TA,{scope:n,searchRef:F,onItemEnter:c.useCallback(U=>{j(U)&&U.preventDefault()},[j]),onItemLeave:c.useCallback(U=>{var L;j(U)||((L=M.current)===null||L===void 0||L.focus(),T(null))},[j]),onTriggerLeave:c.useCallback(U=>{j(U)&&U.preventDefault()},[j]),pointerGraceTimerRef:x,onPointerGraceIntentChange:c.useCallback(U=>{R.current=U},[])},c.createElement(V,I,c.createElement(Ts,{asChild:!0,trapped:o,onMountAutoFocus:Q(a,U=>{var L;U.preventDefault(),(L=M.current)===null||L===void 0||L.focus()}),onUnmountAutoFocus:i},c.createElement($o,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:g},c.createElement(Ai,N({asChild:!0},w,{dir:_.dir,orientation:"vertical",loop:r,currentTabStopId:P,onCurrentTabStopIdChange:T,onEntryFocus:Q(s,U=>{_.isUsingKeyboardRef.current||U.preventDefault()})}),c.createElement(Xu,N({role:"menu","aria-orientation":"vertical","data-state":a_(v.open),"data-radix-menu-content":"",dir:_.dir},y,b,{ref:$,style:{outline:"none",...b.style},onKeyDown:Q(b.onKeyDown,U=>{const B=U.target.closest("[data-radix-menu-content]")===U.currentTarget,Y=U.ctrlKey||U.altKey||U.metaKey,W=U.key.length===1;B&&(U.key==="Tab"&&U.preventDefault(),!Y&&W&&J(U.key));const G=M.current;if(U.target!==G||!yA.includes(U.key))return;U.preventDefault();const oe=S().filter(ae=>!ae.disabled).map(ae=>ae.ref.current);W$.includes(U.key)&&oe.reverse(),qA(oe)}),onBlur:Q(e.onBlur,U=>{U.currentTarget.contains(U.target)||(window.clearTimeout(k.current),F.current="")}),onPointerMove:Q(e.onPointerMove,ga(U=>{const L=U.target,B=A.current!==U.clientX;if(U.currentTarget.contains(L)&&B){const Y=U.clientX>A.current?"right":"left";O.current=Y,A.current=U.clientX}}))})))))))}),Z$=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.createElement(ce.div,N({role:"group"},r,{ref:t}))}),IA=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.createElement(ce.div,N({},r,{ref:t}))}),Sd="MenuItem",Q$="menu.itemSelect",Dd=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=c.useRef(null),i=ma(Sd,e.__scopeMenu),l=wd(Sd,e.__scopeMenu),s=ye(t,a),u=c.useRef(!1),d=()=>{const f=a.current;if(!n&&f){const m=new CustomEvent(Q$,{bubbles:!0,cancelable:!0});f.addEventListener(Q$,g=>r==null?void 0:r(g),{once:!0}),is(f,m),m.defaultPrevented?u.current=!1:i.onClose()}};return c.createElement(e_,N({},o,{ref:s,disabled:n,onClick:Q(e.onClick,d),onPointerDown:f=>{var m;(m=e.onPointerDown)===null||m===void 0||m.call(e,f),u.current=!0},onPointerUp:Q(e.onPointerUp,f=>{var m;u.current||(m=f.currentTarget)===null||m===void 0||m.click()}),onKeyDown:Q(e.onKeyDown,f=>{const m=l.searchRef.current!=="";n||m&&f.key===" "||xd.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})}))}),e_=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=wd(Sd,n),l=G$(n),s=c.useRef(null),u=ye(t,s),[d,f]=c.useState(!1),[m,g]=c.useState("");return c.useEffect(()=>{const h=s.current;if(h){var b;g(((b=h.textContent)!==null&&b!==void 0?b:"").trim())}},[a.children]),c.createElement(fa.ItemSlot,{scope:n,disabled:r,textValue:o??m},c.createElement(Ii,N({asChild:!0},l,{focusable:!r}),c.createElement(ce.div,N({role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:u,onPointerMove:Q(e.onPointerMove,ga(h=>{r?i.onItemLeave(h):(i.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus())})),onPointerLeave:Q(e.onPointerLeave,ga(h=>i.onItemLeave(h))),onFocus:Q(e.onFocus,()=>f(!0)),onBlur:Q(e.onBlur,()=>f(!1))}))))}),OA=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return c.createElement(n_,{scope:e.__scopeMenu,checked:n},c.createElement(Dd,N({role:"menuitemcheckbox","aria-checked":kl(n)?"mixed":n},o,{ref:t,"data-state":Pd(n),onSelect:Q(o.onSelect,()=>r==null?void 0:r(kl(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),MA="MenuRadioGroup",[FA,LA]=tr(MA,{value:void 0,onValueChange:()=>{}}),NA=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=je(r);return c.createElement(FA,{scope:e.__scopeMenu,value:n,onValueChange:a},c.createElement(Z$,N({},o,{ref:t})))}),zA="MenuRadioItem",RA=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=LA(zA,e.__scopeMenu),a=n===o.value;return c.createElement(n_,{scope:e.__scopeMenu,checked:a},c.createElement(Dd,N({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":Pd(a),onSelect:Q(r.onSelect,()=>{var i;return(i=o.onValueChange)===null||i===void 0?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})))}),t_="MenuItemIndicator",[n_,KA]=tr(t_,{checked:!1}),VA=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=KA(t_,n);return c.createElement(We,{present:r||kl(a.checked)||a.checked===!0},c.createElement(ce.span,N({},o,{ref:t,"data-state":Pd(a.checked)})))}),BA=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.createElement(ce.div,N({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),jA=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=pa(n);return c.createElement(Ju,N({},o,r,{ref:t}))}),r_="MenuSub",[UA,o_]=tr(r_),WA=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Cn(r_,t),i=pa(t),[l,s]=c.useState(null),[u,d]=c.useState(null),f=je(o);return c.useEffect(()=>(a.open===!1&&f(!1),()=>f(!1)),[a.open,f]),c.createElement(ml,i,c.createElement(Y$,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:d},c.createElement(UA,{scope:t,contentId:nt(),triggerId:nt(),trigger:l,onTriggerChange:s},n)))},Cl="MenuSubTrigger",HA=c.forwardRef((e,t)=>{const n=Cn(Cl,e.__scopeMenu),r=ma(Cl,e.__scopeMenu),o=o_(Cl,e.__scopeMenu),a=wd(Cl,e.__scopeMenu),i=c.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:s}=a,u={__scopeMenu:e.__scopeMenu},d=c.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return c.useEffect(()=>d,[d]),c.useEffect(()=>{const f=l.current;return()=>{window.clearTimeout(f),s(null)}},[l,s]),c.createElement(q$,N({asChild:!0},u),c.createElement(e_,N({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":a_(n.open)},e,{ref:ka(t,o.onTriggerChange),onClick:f=>{var m;(m=e.onClick)===null||m===void 0||m.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Q(e.onPointerMove,ga(f=>{a.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:Q(e.onPointerLeave,ga(f=>{var m;d();const g=(m=n.content)===null||m===void 0?void 0:m.getBoundingClientRect();if(g){var h;const b=(h=n.content)===null||h===void 0?void 0:h.dataset.side,v=b==="right",_=v?-5:5,y=g[v?"left":"right"],w=g[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:f.clientX+_,y:f.clientY},{x:y,y:g.top},{x:w,y:g.top},{x:w,y:g.bottom},{x:y,y:g.bottom}],side:b}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(f),f.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Q(e.onKeyDown,f=>{const m=a.searchRef.current!=="";if(!(e.disabled||m&&f.key===" ")&&$A[r.dir].includes(f.key)){var g;n.onOpenChange(!0),(g=n.content)===null||g===void 0||g.focus(),f.preventDefault()}})})))}),GA="MenuSubContent",YA=c.forwardRef((e,t)=>{const n=J$(Dt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Cn(Dt,e.__scopeMenu),i=ma(Dt,e.__scopeMenu),l=o_(GA,e.__scopeMenu),s=c.useRef(null),u=ye(t,s);return c.createElement(fa.Provider,{scope:e.__scopeMenu},c.createElement(We,{present:r||a.open},c.createElement(fa.Slot,{scope:e.__scopeMenu},c.createElement(Ed,N({id:l.contentId,"aria-labelledby":l.triggerId},o,{ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;i.isUsingKeyboardRef.current&&((f=s.current)===null||f===void 0||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:Q(e.onFocusOutside,d=>{d.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Q(e.onEscapeKeyDown,d=>{i.onClose(),d.preventDefault()}),onKeyDown:Q(e.onKeyDown,d=>{const f=d.currentTarget.contains(d.target),m=_A[i.dir].includes(d.key);if(f&&m){var g;a.onOpenChange(!1),(g=l.trigger)===null||g===void 0||g.focus(),d.preventDefault()}})})))))});function a_(e){return e?"open":"closed"}function kl(e){return e==="indeterminate"}function Pd(e){return kl(e)?"indeterminate":e?"checked":"unchecked"}function qA(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function XA(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function JA(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=XA(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==n));const s=i.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return s!==n?s:void 0}function ZA(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const l=t[a].x,s=t[a].y,u=t[i].x,d=t[i].y;s>r!=d>r&&n<(u-l)*(r-s)/(d-s)+l&&(o=!o)}return o}function QA(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return ZA(n,t)}function ga(e){return t=>t.pointerType==="mouse"?e(t):void 0}const eI=SA,tI=q$,nI=PA,rI=CA,oI=Z$,aI=IA,iI=Dd,lI=OA,sI=NA,cI=RA,uI=VA,dI=BA,fI=jA,pI=WA,mI=HA,gI=YA,i_="DropdownMenu",[hI,NV]=Ke(i_,[H$]),Ge=H$(),[bI,l_]=hI(i_),vI=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,s=Ge(t),u=c.useRef(null),[d=!1,f]=Ue({prop:o,defaultProp:a,onChange:i});return c.createElement(bI,{scope:t,triggerId:nt(),triggerRef:u,contentId:nt(),open:d,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(m=>!m),[f]),modal:l},c.createElement(eI,N({},s,{open:d,onOpenChange:f,dir:r,modal:l}),n))},yI="DropdownMenuTrigger",$I=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=l_(yI,n),i=Ge(n);return c.createElement(tI,N({asChild:!0},i),c.createElement(ce.button,N({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:ka(t,a.triggerRef),onPointerDown:Q(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:Q(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})))}),_I=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ge(t);return c.createElement(nI,N({},r,n))},xI="DropdownMenuContent",wI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=l_(xI,n),a=Ge(n),i=c.useRef(!1);return c.createElement(rI,N({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:Q(e.onCloseAutoFocus,l=>{var s;i.current||(s=o.triggerRef.current)===null||s===void 0||s.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:Q(e.onInteractOutside,l=>{const s=l.detail.originalEvent,u=s.button===0&&s.ctrlKey===!0,d=s.button===2||u;(!o.modal||d)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),EI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(oI,N({},o,r,{ref:t}))}),SI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(aI,N({},o,r,{ref:t}))}),DI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(iI,N({},o,r,{ref:t}))}),PI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(lI,N({},o,r,{ref:t}))}),TI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(sI,N({},o,r,{ref:t}))}),CI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(cI,N({},o,r,{ref:t}))}),kI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(uI,N({},o,r,{ref:t}))}),AI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(dI,N({},o,r,{ref:t}))}),II=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(fI,N({},o,r,{ref:t}))}),OI=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=Ge(t),[l=!1,s]=Ue({prop:r,defaultProp:a,onChange:o});return c.createElement(pI,N({},i,{open:l,onOpenChange:s}),n)},MI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(mI,N({},o,r,{ref:t}))}),FI=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ge(n);return c.createElement(gI,N({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),LI=vI,NI=$I,s_=_I,zI=wI,RI=EI,KI=SI,VI=DI,BI=PI,jI=TI,UI=CI,WI=kI,HI=AI,GI=II,YI=OI,qI=MI,XI=FI,JI=ie.keyframes`
|
|
1761
1761
|
0% { opacity: 0; transform: translateY(2px); }
|
|
1762
1762
|
100% { opacity: 1; transform: translateY(0); }
|
|
1763
1763
|
`,ZI=ie.keyframes`
|
|
@@ -1969,11 +1969,11 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var le=_e(ae,se,G,re,oe+
|
|
|
1969
1969
|
right: 0;
|
|
1970
1970
|
}
|
|
1971
1971
|
`,lM=new Intl.ListFormat("en",{style:"long",type:"conjunction"}),u1=c.forwardRef((e,t)=>{const{file:n,onAddFile:r,onDeleteFile:o,fileTypes:a=[{name:"CSV",mime:"text/csv"}]}=e,i=_n(t),l=c.useId(),{dropProps:s,isDropTarget:u}=YO({ref:i,onDrop:async f=>{const m=f.items.find(g=>g.kind==="file");if(m&&m.kind==="file"){const g=await m.getFile();r(g)}}}),d=f=>{var m;(m=f.target.files)!=null&&m[0]&&r(f.target.files[0])};return E(eM,{...s,role:"button",tabIndex:0,ref:i,"data-state":u?"dropping":"",children:n?X(rM,{children:[E(tt,{size:"large",children:n.name}),X(p_,{children:[E(m_,{asChild:!0,children:E(Jo,{label:"Remove file",size:"small",variant:"danger",children:E(De.Delete,{})})}),X(c1,{children:[E(tt,{children:"Are you sure you want to remove this file?"}),X(aM,{children:[E(Od,{asChild:!0,children:E(Dr,{variant:"secondary",size:"small",children:"Cancel"})}),E(Od,{asChild:!0,children:E(Dr,{variant:"danger",size:"small",onClick:()=>o==null?void 0:o(),children:"Confirm"})})]})]})]})]}):X(nM,{children:[E(tM,{children:E(De.CloudUpload,{})}),X(oM,{children:[X(tt,{children:["Drag and drop to upload, or"," ",E(iM,{htmlFor:l,children:"browse files"})]}),X(tt,{weak:!0,size:"small",children:["Supported formats:"," ",lM.format(a.map(f=>f.name))]})]}),E("input",{onChange:d,type:"file",hidden:!0,id:l,accept:a.map(f=>f.mime).join(",")})]})})});u1.displayName="FileUpload";var d1={},sM="Expected a function",f1=0/0,cM="[object Symbol]",uM=/^\s+|\s+$/g,dM=/^[-+]0x[0-9a-f]+$/i,fM=/^0b[01]+$/i,pM=/^0o[0-7]+$/i,mM=parseInt,gM=typeof Ta=="object"&&Ta&&Ta.Object===Object&&Ta,hM=typeof self=="object"&&self&&self.Object===Object&&self,bM=gM||hM||Function("return this")(),vM=Object.prototype,yM=vM.toString,$M=Math.max,_M=Math.min,Md=function(){return bM.Date.now()};function xM(e,t,n){var r,o,a,i,l,s,u=0,d=!1,f=!1,m=!0;if(typeof e!="function")throw new TypeError(sM);t=p1(t)||0,Fd(n)&&(d=!!n.leading,f="maxWait"in n,a=f?$M(p1(n.maxWait)||0,t):a,m="trailing"in n?!!n.trailing:m);function g(T){var M=r,$=o;return r=o=void 0,u=T,i=e.apply($,M),i}function h(T){return u=T,l=setTimeout(_,t),d?g(T):i}function b(T){var M=T-s,$=T-u,k=t-M;return f?_M(k,a-$):k}function v(T){var M=T-s,$=T-u;return s===void 0||M>=t||M<0||f&&$>=a}function _(){var T=Md();if(v(T))return y(T);l=setTimeout(_,b(T))}function y(T){return l=void 0,m&&r?g(T):(r=o=void 0,i)}function w(){l!==void 0&&clearTimeout(l),u=0,r=s=o=l=void 0}function S(){return l===void 0?i:y(Md())}function P(){var T=Md(),M=v(T);if(r=arguments,o=this,s=T,M){if(l===void 0)return h(s);if(f)return l=setTimeout(_,t),g(s)}return l===void 0&&(l=setTimeout(_,t)),i}return P.cancel=w,P.flush=S,P}function Fd(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function wM(e){return!!e&&typeof e=="object"}function EM(e){return typeof e=="symbol"||wM(e)&&yM.call(e)==cM}function p1(e){if(typeof e=="number")return e;if(EM(e))return f1;if(Fd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(uM,"");var n=fM.test(e);return n||pM.test(e)?mM(e.slice(2),n?2:8):dM.test(e)?f1:+e}var SM=xM,qr={};Object.defineProperty(qr,"__esModule",{value:!0}),qr.loadGoogleMapScript=qr.isBrowser=void 0;var m1=typeof window<"u"&&window.document;qr.isBrowser=m1;var DM=function(t,n){if(!m1||typeof google<"u"&&google.maps&&google.maps.api)return Promise.resolve();var r=document.querySelectorAll('script[src*="'.concat(t,'"]'));if(r&&r.length)return new Promise(function(i){if(typeof google<"u")return i();r[0].addEventListener("load",function(){return i()})});var o=new URL(n);o.searchParams.set("callback","__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__");var a=document.createElement("script");return a.src=o.toString(),new Promise(function(i){window.__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__=i,document.body.appendChild(a)})};qr.loadGoogleMapScript=DM;var Ll={};Object.defineProperty(Ll,"__esModule",{value:!0}),Ll.GOOGLE_MAP_SCRIPT_BASE_URL=void 0;var PM="https://maps.googleapis.com/maps/api/js";Ll.GOOGLE_MAP_SCRIPT_BASE_URL=PM,Object.defineProperty(d1,"__esModule",{value:!0});var TM=d1.default=LM,lt=D.default,g1=kM(SM),h1=qr,CM=Ll;function kM(e){return e&&e.__esModule?e:{default:e}}function b1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Xr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b1(Object(n),!0).forEach(function(r){AM(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jr(e,t){return FM(e)||MM(e,t)||OM(e,t)||IM()}function IM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1972
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OM(e,t){if(e){if(typeof e=="string")return v1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v1(e,t)}}function v1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MM(e,t){var n=e&&(typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"]);if(n!=null){var r=[],o=!0,a=!1,i,l;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));o=!0);}catch(s){a=!0,l=s}finally{try{!o&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function FM(e){if(Array.isArray(e))return e}function LM(e){var t=e.apiKey,n=e.libraries,r=n===void 0?"places":n,o=e.googleMapsScriptBaseUrl,a=o===void 0?CM.GOOGLE_MAP_SCRIPT_BASE_URL:o,i=e.debounce,l=i===void 0?300:i,s=e.options,u=s===void 0?{}:s,d=e.sessionToken,f=e.language,m=f?"&language=".concat(f):"",g="".concat(a,"?key=").concat(t,"&libraries=").concat(r).concat(m),h=(0,lt.useState)([]),b=Jr(h,2),v=b[0],_=b[1],y=(0,lt.useState)(!1),w=Jr(y,2),S=w[0],P=w[1],T=(0,lt.useState)(null),M=Jr(T,2),$=M[0],k=M[1],
|
|
1972
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OM(e,t){if(e){if(typeof e=="string")return v1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v1(e,t)}}function v1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MM(e,t){var n=e&&(typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"]);if(n!=null){var r=[],o=!0,a=!1,i,l;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));o=!0);}catch(s){a=!0,l=s}finally{try{!o&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function FM(e){if(Array.isArray(e))return e}function LM(e){var t=e.apiKey,n=e.libraries,r=n===void 0?"places":n,o=e.googleMapsScriptBaseUrl,a=o===void 0?CM.GOOGLE_MAP_SCRIPT_BASE_URL:o,i=e.debounce,l=i===void 0?300:i,s=e.options,u=s===void 0?{}:s,d=e.sessionToken,f=e.language,m=f?"&language=".concat(f):"",g="".concat(a,"?key=").concat(t,"&libraries=").concat(r).concat(m),h=(0,lt.useState)([]),b=Jr(h,2),v=b[0],_=b[1],y=(0,lt.useState)(!1),w=Jr(y,2),S=w[0],P=w[1],T=(0,lt.useState)(null),M=Jr(T,2),$=M[0],k=M[1],F=(0,lt.useState)(!1),x=Jr(F,2),R=x[0],O=x[1],A=(0,lt.useState)(!1),V=Jr(A,2),I=V[0],J=V[1],j=(0,lt.useState)([]),U=Jr(j,2),L=U[0],B=U[1],Y=(0,lt.useRef)(null),W=(0,lt.useRef)(null),G=(0,lt.useRef)(null),re=(0,lt.useCallback)(function(){return(0,h1.loadGoogleMapScript)(a,g)},[a,g]),oe=(0,lt.useCallback)((0,g1.default)(function(ne){Y.current&&ne.input&&Y.current.getPlacePredictions(Xr(Xr(Xr({},d&&G.current?{sessionToken:G.current}:{}),u),ne),function(ee){P(!1),_(ee||[])})},l),[l]),ae=(0,lt.useCallback)((0,g1.default)(function(ne){Y.current&&ne.input&&Y.current.getQueryPredictions(Xr(Xr(Xr({},d&&G.current?{sessionToken:G.current}:{}),u),ne),function(ee){O(!1),B(ee||[])})},l),[l]);return(0,lt.useEffect)(function(){if(h1.isBrowser){var ne=function(){if(!google)return console.error("Google has not been found. Make sure your provide apiKey prop.");Y.current=new google.maps.places.AutocompleteService,W.current=new google.maps.places.PlacesService(document.createElement("div")),d&&(G.current=new google.maps.places.AutocompleteSessionToken)};t?re().then(function(){return ne()}):ne()}},[]),{placesService:W.current,autocompleteSessionToken:G.current,placesAutocompleteService:Y.current,placePredictions:$?v:[],isPlacePredictionsLoading:S,getPlacePredictions:function(ee){if(ee.input){k(ee.input),P(!0),oe(ee);return}_([]),k(null),oe(ee),P(!1)},queryPredictions:I?L:[],isQueryPredictionsLoading:R,getQueryPredictions:function(ee){if(ee.input){J(ee.input),O(!0),ae(ee);return}B([]),J(null),ae(ee),O(!1)},refreshSessionToken:function(){G.current=new google.maps.places.AutocompleteSessionToken}}}const y1=z.default(tt)`
|
|
1973
1973
|
:hover {
|
|
1974
1974
|
background-color: ${p.color_gray_opacity_5};
|
|
1975
1975
|
}
|
|
1976
|
-
`,$1=e=>{var r,o,a;const t=((r=e.formatted_address)==null?void 0:r.length)&&((o=e.name)==null?void 0:o.length)&&!e.formatted_address.startsWith(e.name),n=(a=e.formatted_address)==null?void 0:a.length;return t&&e.name&&e.formatted_address?`${e.name}, ${e.formatted_address}`:n?e.formatted_address:""},NM=({googleApiKey:e,placeholder:t="Location...",options:n,libraries:r=["places"],googleMapsScriptBaseUrl:o,debounce:a=300,defaultValue:i,value:l,onChange:s,disabled:u,isInvalid:d,label:f,labelId:m="time-input-label",inputId:g="time-input",hideLabel:h=!1,boldLabel:b=!1,autoFocus:v,extraMenuActions:_=[],showExtraActionsWithResults:y=!1,...w})=>{var U;const[S,P]=c.useState(i??l??""),T=c.createRef(),M=c.useRef(null),$=ua({}),{overlayProps:k}=l0({},T),L=oi(l);c.useEffect(()=>{l!==L&&P(l??"")},[L,l]);const{placesService:x,placePredictions:R,getPlacePredictions:O,isPlacePredictionsLoading:A}=TM({apiKey:e,libraries:r,googleMapsScriptBaseUrl:o,debounce:a,options:{input:S,...n}}),[V,I]=c.useState(-1),J=S.length>0&&!A&&R.length===0,j=c.useCallback(F=>{console.log("prediction",F),F&&(x==null||x.getDetails({placeId:F.place_id??""},(B,Y)=>{if(B&&Y===google.maps.places.PlacesServiceStatus.OK){const W=$1(B);W&&P(W),s==null||s(B),$.close(),I(-1)}else console.error("Error getting place details."),console.error("status: ",Y),console.error("place: ",B)}))},[s,$,x]);return ri(()=>{document.activeElement===T.current&&$.close()}),X(Et,{children:[f?X(Re,{id:m,htmlFor:g,srOnly:h,mb:p.spacing_100,bold:b,children:[f,w.tooltipContent?E(Qe,{children:w.tooltipContent}):null]}):null,E(Lt,{height:p.spacing_600,type:"text",autoComplete:"off",autoFocus:v,"data-id":(w==null?void 0:w["data-id"])??g,id:g,disabled:u,"data-state":d?"invalid":void 0,value:((U=R[V])==null?void 0:U.description)??S,placeholder:t,ref:T,onChange:F=>{const B=F.target.value;O({input:B,locationRestriction:n==null?void 0:n.bounds}),P(B),I(-1)},onFocus:F=>{F.target.select(),$.isOpen||$.open()},onBlur:()=>{$.isOpen&&$.close()},onKeyDown:F=>{F.key==="Enter"?F.preventDefault():F.key==="ArrowDown"?(V===-1&&(F.preventDefault(),I(0)),V<R.length-1&&(F.preventDefault(),I(V+1)),V===R.length-1&&(F.preventDefault(),I(-1))):F.key==="ArrowUp"?(V===-1&&(F.preventDefault(),I(R.length-1)),V===0&&(F.preventDefault(),I(-1)),V>0&&(F.preventDefault(),I(V-1))):(I(-1),$.isOpen||$.open())},onKeyUp:F=>{F.key==="Enter"&&V!==-1&&j(R[V])},onMouseUp:F=>{F.preventDefault()}}),w.errorMessage?E(St,{children:w.errorMessage}):null,$.isOpen&&(_.length||R.length)?E(Gr,{className:"google-input-popover",targetRef:T,popoverRef:M,state:$,...k,isTargetWidth:!0,placement:"bottom start",isNonModal:!0,children:X(ge,{onMouseDown:F=>F.preventDefault(),children:[!A&&R.length>0?R.map((F,B)=>E(y1,{p:p.spacing_200,truncate:!0,onClick:()=>{console.log("prediction",F),j(F)},style:{cursor:"pointer"},backgroundColor:V===B?p.color_gray_opacity_5:"transparent",children:F.description},F.place_id)):null,A?E(tt,{as:"span",italic:!0,p:p.spacing_200,style:{cursor:"pointer"},children:"Loading..."}):null,_.length===0&&J?E(tt,{as:"span",p:p.spacing_200,style:{cursor:"pointer"},children:"No results found"}):null,_.length&&y&&(A||R.length)?E("hr",{style:{margin:0}}):null,_.length&&y&&(A||R.length)||!A&&R.length===0?_.map(F=>E(y1,{p:p.spacing_200,truncate:!0,onClick:()=>{F.onClick(),$.close()},style:{cursor:"pointer"},children:F.label},F.id)):null]})}):null]})};var _1={};_1={Empty:"فارغ"};var x1={};x1={Empty:"Изпразни"};var w1={};w1={Empty:"Prázdné"};var E1={};E1={Empty:"Tom"};var S1={};S1={Empty:"Leer"};var D1={};D1={Empty:"Άδειο"};var P1={};P1={Empty:"Empty"};var T1={};T1={Empty:"Vacío"};var C1={};C1={Empty:"Tühjenda"};var k1={};k1={Empty:"Tyhjä"};var A1={};A1={Empty:"Vide"};var I1={};I1={Empty:"ריק"};var O1={};O1={Empty:"Prazno"};var M1={};M1={Empty:"Üres"};var F1={};F1={Empty:"Vuoto"};var L1={};L1={Empty:"空"};var N1={};N1={Empty:"비어 있음"};var z1={};z1={Empty:"Tuščias"};var R1={};R1={Empty:"Tukšs"};var K1={};K1={Empty:"Tom"};var V1={};V1={Empty:"Leeg"};var B1={};B1={Empty:"Pusty"};var j1={};j1={Empty:"Vazio"};var U1={};U1={Empty:"Vazio"};var W1={};W1={Empty:"Gol"};var H1={};H1={Empty:"Не заполнено"};var G1={};G1={Empty:"Prázdne"};var Y1={};Y1={Empty:"Prazen"};var q1={};q1={Empty:"Prazno"};var X1={};X1={Empty:"Tomt"};var J1={};J1={Empty:"Boş"};var Z1={};Z1={Empty:"Пусто"};var Q1={};Q1={Empty:"空"};var ex={};ex={Empty:"空白"};function zM(e){return e&&e.__esModule?e.default:e}var tx={};tx={"ar-AE":_1,"bg-BG":x1,"cs-CZ":w1,"da-DK":E1,"de-DE":S1,"el-GR":D1,"en-US":P1,"es-ES":T1,"et-EE":C1,"fi-FI":k1,"fr-FR":A1,"he-IL":I1,"hr-HR":O1,"hu-HU":M1,"it-IT":F1,"ja-JP":L1,"ko-KR":N1,"lt-LT":z1,"lv-LV":R1,"nb-NO":K1,"nl-NL":V1,"pl-PL":B1,"pt-BR":j1,"pt-PT":U1,"ro-RO":W1,"ru-RU":H1,"sk-SK":G1,"sl-SI":Y1,"sr-SP":q1,"sv-SE":X1,"tr-TR":J1,"uk-UA":Z1,"zh-CN":Q1,"zh-TW":ex};function RM(e){const t=c.useRef();let{value:n,textValue:r,minValue:o,maxValue:a,isDisabled:i,isReadOnly:l,isRequired:s,onIncrement:u,onIncrementPage:d,onDecrement:f,onDecrementPage:m,onDecrementToMin:g,onIncrementToMax:h}=e;const b=_t(zM(tx),"@react-aria/spinbutton"),v=()=>clearTimeout(t.current);c.useEffect(()=>()=>v(),[]);let _=x=>{if(!(x.ctrlKey||x.metaKey||x.shiftKey||x.altKey||l))switch(x.key){case"PageUp":if(d){x.preventDefault(),d==null||d();break}case"ArrowUp":case"Up":u&&(x.preventDefault(),u==null||u());break;case"PageDown":if(m){x.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":f&&(x.preventDefault(),f==null||f());break;case"Home":g&&(x.preventDefault(),g==null||g());break;case"End":h&&(x.preventDefault(),h==null||h());break}},y=c.useRef(!1),w=()=>{y.current=!0},S=()=>{y.current=!1},P=r===""?b.format("Empty"):(r||`${n}`).replace("-","−");c.useEffect(()=>{y.current&&(F4("assertive"),Mr(P,"assertive"))},[P]);const T=ke(x=>{v(),u==null||u(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&T(60)},x)}),M=ke(x=>{v(),f==null||f(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&M(60)},x)});let $=x=>{x.preventDefault()},{addGlobalListener:k,removeAllGlobalListeners:L}=Dc();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":l||void 0,"aria-required":s||void 0,onKeyDown:_,onFocus:w,onBlur:S},incrementButtonProps:{onPressStart:()=>{T(400),k(window,"contextmenu",$)},onPressEnd:()=>{v(),L()},onFocus:w,onBlur:S},decrementButtonProps:{onPressStart:()=>{M(400),k(window,"contextmenu",$)},onPressEnd:()=>{v(),L()},onFocus:w,onBlur:S}}}function KM(e){return e&&e.__esModule?e.default:e}var nx={},rx={};rx={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var ox={};ox={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var ax={};ax={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var ix={};ix={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var lx={};lx={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var sx={};sx={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var cx={};cx={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var ux={};ux={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var dx={};dx={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var fx={};fx={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var px={};px={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var mx={};mx={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var gx={};gx={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var hx={};hx={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var bx={};bx={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var vx={};vx={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var yx={};yx={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var $x={};$x={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var _x={};_x={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var xx={};xx={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var wx={};wx={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var Ex={};Ex={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var Sx={};Sx={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var Dx={};Dx={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var Px={};Px={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var Tx={};Tx={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var Cx={};Cx={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var kx={};kx={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var Ax={};Ax={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var Ix={};Ix={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var Ox={};Ox={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var Mx={};Mx={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var Fx={};Fx={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var Lx={};Lx={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"},nx={"ar-AE":rx,"bg-BG":ox,"cs-CZ":ax,"da-DK":ix,"de-DE":lx,"el-GR":sx,"en-US":cx,"es-ES":ux,"et-EE":dx,"fi-FI":fx,"fr-FR":px,"he-IL":mx,"hr-HR":gx,"hu-HU":hx,"it-IT":bx,"ja-JP":vx,"ko-KR":yx,"lt-LT":$x,"lv-LV":_x,"nb-NO":xx,"nl-NL":wx,"pl-PL":Ex,"pt-BR":Sx,"pt-PT":Dx,"ro-RO":Px,"ru-RU":Tx,"sk-SK":Cx,"sl-SI":kx,"sr-SP":Ax,"sv-SE":Ix,"tr-TR":Ox,"uk-UA":Mx,"zh-CN":Fx,"zh-TW":Lx};function VM(e,t,n){let{id:r,decrementAriaLabel:o,incrementAriaLabel:a,isDisabled:i,isReadOnly:l,isRequired:s,minValue:u,maxValue:d,autoFocus:f,validationState:m,label:g,formatOptions:h,onBlur:b=()=>{},onFocus:v,onFocusChange:_,onKeyDown:y,onKeyUp:w,description:S,errorMessage:P,...T}=e,{increment:M,incrementToMax:$,decrement:k,decrementToMin:L,numberValue:x,inputValue:R,commit:O}=t;const A=_t(KM(nx));let V=ct(r),{focusProps:I}=Nc({onBlur:()=>{O()}}),J=wb(h),j=c.useMemo(()=>J.resolvedOptions(),[J]),U=wb({...h,currencySign:void 0}),F=c.useMemo(()=>isNaN(x)?"":U.format(x),[U,x]),{spinButtonProps:B,incrementButtonProps:Y,decrementButtonProps:W}=RM({isDisabled:i,isReadOnly:l,isRequired:s,maxValue:d,minValue:u,onIncrement:M,onIncrementToMax:$,onDecrement:k,onDecrementToMin:L,value:x,textValue:F}),[G,re]=c.useState(!1),{focusWithinProps:oe}=Fo({isDisabled:i,onFocusWithinChange:re}),ae=c.useCallback(st=>{Math.abs(st.deltaY)<=Math.abs(st.deltaX)||(st.deltaY>0?M():st.deltaY<0&&k())},[k,M]);fC({onScroll:ae,isDisabled:i||l||!G},n);let ee=j.maximumFractionDigits>0,se=isNaN(t.minValue)||t.minValue<0,_e="numeric";_g()?se?_e="text":ee&&(_e="decimal"):Ec()&&(se?_e="numeric":ee&&(_e="decimal"));let le=st=>{t.validate(st)&&t.setInputValue(st)},pe=$n(e),{labelProps:Se,inputProps:Mn,descriptionProps:Fn,errorMessageProps:io}=V9({...T,...pe,label:g,autoFocus:f,isDisabled:i,isReadOnly:l,isRequired:s,validationState:m,value:R,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||null,"aria-labelledby":e["aria-labelledby"]||null,id:V,type:"text",inputMode:_e,onChange:le,onBlur:b,onFocus:v,onFocusChange:_,onKeyDown:y,onKeyUp:w,description:S,errorMessage:P},t,n),lo=fe(B,I,Mn,{role:null,"aria-roledescription":Co()?null:A.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"}),cn=st=>{document.activeElement!==n.current&&(st.pointerType==="mouse"?n.current.focus():st.target.focus())},zt=e["aria-label"]||(typeof e.label=="string"?e.label:""),un;zt||(un=e.label!=null?Se.id:e["aria-labelledby"]);let so=ct(),Zl=ct(),Xf=fe(Y,{"aria-label":a||A.format("increase",{fieldLabel:zt}).trim(),id:un&&!a?so:null,"aria-labelledby":un&&!a?`${so} ${un}`:null,"aria-controls":V,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:cn}),Ql=fe(W,{"aria-label":o||A.format("decrease",{fieldLabel:zt}).trim(),id:un&&!o?Zl:null,"aria-labelledby":un&&!o?`${Zl} ${un}`:null,"aria-controls":V,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:cn});return{groupProps:{role:"group","aria-disabled":i,"aria-invalid":m==="invalid"?"true":void 0,...oe},labelProps:Se,inputProps:lo,incrementButtonProps:Xf,decrementButtonProps:Ql,errorMessageProps:io,descriptionProps:Fn}}function BM(e){let{minValue:t,maxValue:n,step:r,formatOptions:o,value:a,defaultValue:i,onChange:l,locale:s,isDisabled:u,isReadOnly:d}=e,[f,m]=Ot(a,isNaN(i)?NaN:i,l),[g,h]=c.useState(()=>isNaN(f)?"":new Xi(s,o).format(f)),b=c.useMemo(()=>new vb(s,o),[s,o]),v=c.useMemo(()=>b.getNumberingSystem(g),[b,g]),_=c.useMemo(()=>new Xi(s,{...o,numberingSystem:v}),[s,o,v]),y=c.useMemo(()=>_.resolvedOptions(),[_]),w=c.useCallback(B=>isNaN(B)||B===null?"":_.format(B),[_]),S=isNaN(r)?1:r;y.style==="percent"&&isNaN(r)&&(S=.01);let[P,T]=c.useState(f),[M,$]=c.useState(s),[k,L]=c.useState(o);(!Object.is(f,P)||s!==M||o!==k)&&(h(w(f)),T(f),$(s),L(o));let x=c.useMemo(()=>b.parse(g),[b,g]),R=()=>{if(!g.length){m(NaN),h(a===void 0?"":w(f));return}if(isNaN(x)){h(w(f));return}let B;isNaN(r)?B=fi(x,t,n):B=jn(x,t,n,r),B=b.parse(w(B)),m(B),h(w(a===void 0?B:f))},O=(B,Y)=>{let W=x;if(isNaN(W)){let G=isNaN(Y)?0:Y;return jn(G,t,n,S)}else{let G=jn(W,t,n,S);return B==="+"&&G>W||B==="-"&&G<W?G:jn(Ld(B,W,S),t,n,S)}},A=()=>{let B=O("+",t);B===f&&h(w(B)),m(B)},V=()=>{let B=O("-",n);B===f&&h(w(B)),m(B)},I=()=>{n!=null&&m(jn(n,t,n,S))},J=()=>{t!=null&&m(t)},j=c.useMemo(()=>!u&&!d&&(isNaN(x)||isNaN(n)||jn(x,t,n,S)>x||Ld("+",x,S)<=n),[u,d,t,n,S,x]),U=c.useMemo(()=>!u&&!d&&(isNaN(x)||isNaN(t)||jn(x,t,n,S)<x||Ld("-",x,S)>=t),[u,d,t,n,S,x]);return{validate:B=>b.isValidPartialNumber(B,t,n),increment:A,incrementToMax:I,decrement:V,decrementToMin:J,canIncrement:j,canDecrement:U,minValue:t,maxValue:n,numberValue:x,setInputValue:h,inputValue:g,commit:R}}function Ld(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,l=a[1]&&a[1].length||0,s=Math.pow(10,Math.max(i,l));t=Math.round(t*s),n=Math.round(n*s),r=e==="+"?t+n:t-n,r/=s}return r}function Nx(e){const t=c.useRef(null),{buttonProps:n,isPressed:r}=Sr(e,t),{children:o,className:a}=e;return E("button",{"data-state":r?"pressed":void 0,ref:t,...n,className:a,children:o})}const jM=z.default.div`
|
|
1976
|
+
`,$1=e=>{var r,o,a;const t=((r=e.formatted_address)==null?void 0:r.length)&&((o=e.name)==null?void 0:o.length)&&!e.formatted_address.startsWith(e.name),n=(a=e.formatted_address)==null?void 0:a.length;return t&&e.name&&e.formatted_address?`${e.name}, ${e.formatted_address}`:n?e.formatted_address:""},NM=({googleApiKey:e,placeholder:t="Location...",options:n,libraries:r=["places"],googleMapsScriptBaseUrl:o,debounce:a=300,defaultValue:i,value:l,onChange:s,disabled:u,isInvalid:d,label:f,labelId:m="time-input-label",inputId:g="time-input",hideLabel:h=!1,boldLabel:b=!1,autoFocus:v,extraMenuActions:_=[],showExtraActionsWithResults:y=!1,...w})=>{var U;const[S,P]=c.useState(i??l??""),T=c.createRef(),M=c.useRef(null),$=ua({}),{overlayProps:k}=l0({},T),F=oi(l);c.useEffect(()=>{l!==F&&P(l??"")},[F,l]);const{placesService:x,placePredictions:R,getPlacePredictions:O,isPlacePredictionsLoading:A}=TM({apiKey:e,libraries:r,googleMapsScriptBaseUrl:o,debounce:a,options:{input:S,...n}}),[V,I]=c.useState(-1),J=S.length>0&&!A&&R.length===0,j=c.useCallback(L=>{L&&(x==null||x.getDetails({placeId:L.place_id??""},(B,Y)=>{if(B&&Y===google.maps.places.PlacesServiceStatus.OK){const W=$1(B);W&&P(W),s==null||s(B),$.close(),I(-1)}else console.error("Error getting place details."),console.error("status: ",Y),console.error("place: ",B)}))},[s,$,x]);return ri(()=>{document.activeElement===T.current&&$.close()}),X(Et,{children:[f?X(Re,{id:m,htmlFor:g,srOnly:h,mb:p.spacing_100,bold:b,children:[f,w.tooltipContent?E(Qe,{children:w.tooltipContent}):null]}):null,E(Lt,{height:p.spacing_600,type:"text",autoComplete:"off",autoFocus:v,"data-id":(w==null?void 0:w["data-id"])??g,id:g,disabled:u,"data-state":d?"invalid":void 0,value:((U=R[V])==null?void 0:U.description)??S,placeholder:t,ref:T,onChange:L=>{const B=L.target.value;O({input:B,locationRestriction:n==null?void 0:n.bounds}),P(B),I(-1)},onFocus:L=>{L.target.select(),$.isOpen||$.open()},onBlur:()=>{$.isOpen&&$.close()},onKeyDown:L=>{L.key==="Enter"?L.preventDefault():L.key==="ArrowDown"?(V===-1&&(L.preventDefault(),I(0)),V<R.length-1&&(L.preventDefault(),I(V+1)),V===R.length-1&&(L.preventDefault(),I(-1))):L.key==="ArrowUp"?(V===-1&&(L.preventDefault(),I(R.length-1)),V===0&&(L.preventDefault(),I(-1)),V>0&&(L.preventDefault(),I(V-1))):(I(-1),$.isOpen||$.open())},onKeyUp:L=>{L.key==="Enter"&&V!==-1&&j(R[V])},onMouseUp:L=>{L.preventDefault()}}),w.errorMessage?E(St,{children:w.errorMessage}):null,$.isOpen&&(_.length||R.length)?E(Gr,{className:"google-input-popover",targetRef:T,popoverRef:M,state:$,...k,isTargetWidth:!0,placement:"bottom start",isNonModal:!0,children:X(ge,{onMouseDown:L=>L.preventDefault(),children:[!A&&R.length>0?R.map((L,B)=>E(y1,{p:p.spacing_200,truncate:!0,onClick:()=>{console.log("prediction",L),j(L)},style:{cursor:"pointer"},backgroundColor:V===B?p.color_gray_opacity_5:"transparent",children:L.description},L.place_id)):null,A?E(tt,{as:"span",italic:!0,p:p.spacing_200,style:{cursor:"pointer"},children:"Loading..."}):null,_.length===0&&J?E(tt,{as:"span",p:p.spacing_200,style:{cursor:"pointer"},children:"No results found"}):null,_.length&&y&&(A||R.length)?E("hr",{style:{margin:0}}):null,_.length&&y&&(A||R.length)||!A&&R.length===0?_.map(L=>E(y1,{p:p.spacing_200,truncate:!0,onClick:()=>{L.onClick(),$.close()},style:{cursor:"pointer"},children:L.label},L.id)):null]})}):null]})};var _1={};_1={Empty:"فارغ"};var x1={};x1={Empty:"Изпразни"};var w1={};w1={Empty:"Prázdné"};var E1={};E1={Empty:"Tom"};var S1={};S1={Empty:"Leer"};var D1={};D1={Empty:"Άδειο"};var P1={};P1={Empty:"Empty"};var T1={};T1={Empty:"Vacío"};var C1={};C1={Empty:"Tühjenda"};var k1={};k1={Empty:"Tyhjä"};var A1={};A1={Empty:"Vide"};var I1={};I1={Empty:"ריק"};var O1={};O1={Empty:"Prazno"};var M1={};M1={Empty:"Üres"};var F1={};F1={Empty:"Vuoto"};var L1={};L1={Empty:"空"};var N1={};N1={Empty:"비어 있음"};var z1={};z1={Empty:"Tuščias"};var R1={};R1={Empty:"Tukšs"};var K1={};K1={Empty:"Tom"};var V1={};V1={Empty:"Leeg"};var B1={};B1={Empty:"Pusty"};var j1={};j1={Empty:"Vazio"};var U1={};U1={Empty:"Vazio"};var W1={};W1={Empty:"Gol"};var H1={};H1={Empty:"Не заполнено"};var G1={};G1={Empty:"Prázdne"};var Y1={};Y1={Empty:"Prazen"};var q1={};q1={Empty:"Prazno"};var X1={};X1={Empty:"Tomt"};var J1={};J1={Empty:"Boş"};var Z1={};Z1={Empty:"Пусто"};var Q1={};Q1={Empty:"空"};var ex={};ex={Empty:"空白"};function zM(e){return e&&e.__esModule?e.default:e}var tx={};tx={"ar-AE":_1,"bg-BG":x1,"cs-CZ":w1,"da-DK":E1,"de-DE":S1,"el-GR":D1,"en-US":P1,"es-ES":T1,"et-EE":C1,"fi-FI":k1,"fr-FR":A1,"he-IL":I1,"hr-HR":O1,"hu-HU":M1,"it-IT":F1,"ja-JP":L1,"ko-KR":N1,"lt-LT":z1,"lv-LV":R1,"nb-NO":K1,"nl-NL":V1,"pl-PL":B1,"pt-BR":j1,"pt-PT":U1,"ro-RO":W1,"ru-RU":H1,"sk-SK":G1,"sl-SI":Y1,"sr-SP":q1,"sv-SE":X1,"tr-TR":J1,"uk-UA":Z1,"zh-CN":Q1,"zh-TW":ex};function RM(e){const t=c.useRef();let{value:n,textValue:r,minValue:o,maxValue:a,isDisabled:i,isReadOnly:l,isRequired:s,onIncrement:u,onIncrementPage:d,onDecrement:f,onDecrementPage:m,onDecrementToMin:g,onIncrementToMax:h}=e;const b=_t(zM(tx),"@react-aria/spinbutton"),v=()=>clearTimeout(t.current);c.useEffect(()=>()=>v(),[]);let _=x=>{if(!(x.ctrlKey||x.metaKey||x.shiftKey||x.altKey||l))switch(x.key){case"PageUp":if(d){x.preventDefault(),d==null||d();break}case"ArrowUp":case"Up":u&&(x.preventDefault(),u==null||u());break;case"PageDown":if(m){x.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":f&&(x.preventDefault(),f==null||f());break;case"Home":g&&(x.preventDefault(),g==null||g());break;case"End":h&&(x.preventDefault(),h==null||h());break}},y=c.useRef(!1),w=()=>{y.current=!0},S=()=>{y.current=!1},P=r===""?b.format("Empty"):(r||`${n}`).replace("-","−");c.useEffect(()=>{y.current&&(F4("assertive"),Mr(P,"assertive"))},[P]);const T=ke(x=>{v(),u==null||u(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&T(60)},x)}),M=ke(x=>{v(),f==null||f(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&M(60)},x)});let $=x=>{x.preventDefault()},{addGlobalListener:k,removeAllGlobalListeners:F}=Dc();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":l||void 0,"aria-required":s||void 0,onKeyDown:_,onFocus:w,onBlur:S},incrementButtonProps:{onPressStart:()=>{T(400),k(window,"contextmenu",$)},onPressEnd:()=>{v(),F()},onFocus:w,onBlur:S},decrementButtonProps:{onPressStart:()=>{M(400),k(window,"contextmenu",$)},onPressEnd:()=>{v(),F()},onFocus:w,onBlur:S}}}function KM(e){return e&&e.__esModule?e.default:e}var nx={},rx={};rx={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var ox={};ox={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var ax={};ax={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var ix={};ix={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var lx={};lx={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var sx={};sx={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var cx={};cx={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var ux={};ux={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var dx={};dx={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var fx={};fx={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var px={};px={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var mx={};mx={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var gx={};gx={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var hx={};hx={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var bx={};bx={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var vx={};vx={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var yx={};yx={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var $x={};$x={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var _x={};_x={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var xx={};xx={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var wx={};wx={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var Ex={};Ex={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var Sx={};Sx={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var Dx={};Dx={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var Px={};Px={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var Tx={};Tx={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var Cx={};Cx={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var kx={};kx={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var Ax={};Ax={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var Ix={};Ix={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var Ox={};Ox={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var Mx={};Mx={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var Fx={};Fx={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var Lx={};Lx={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"},nx={"ar-AE":rx,"bg-BG":ox,"cs-CZ":ax,"da-DK":ix,"de-DE":lx,"el-GR":sx,"en-US":cx,"es-ES":ux,"et-EE":dx,"fi-FI":fx,"fr-FR":px,"he-IL":mx,"hr-HR":gx,"hu-HU":hx,"it-IT":bx,"ja-JP":vx,"ko-KR":yx,"lt-LT":$x,"lv-LV":_x,"nb-NO":xx,"nl-NL":wx,"pl-PL":Ex,"pt-BR":Sx,"pt-PT":Dx,"ro-RO":Px,"ru-RU":Tx,"sk-SK":Cx,"sl-SI":kx,"sr-SP":Ax,"sv-SE":Ix,"tr-TR":Ox,"uk-UA":Mx,"zh-CN":Fx,"zh-TW":Lx};function VM(e,t,n){let{id:r,decrementAriaLabel:o,incrementAriaLabel:a,isDisabled:i,isReadOnly:l,isRequired:s,minValue:u,maxValue:d,autoFocus:f,validationState:m,label:g,formatOptions:h,onBlur:b=()=>{},onFocus:v,onFocusChange:_,onKeyDown:y,onKeyUp:w,description:S,errorMessage:P,...T}=e,{increment:M,incrementToMax:$,decrement:k,decrementToMin:F,numberValue:x,inputValue:R,commit:O}=t;const A=_t(KM(nx));let V=ct(r),{focusProps:I}=Nc({onBlur:()=>{O()}}),J=wb(h),j=c.useMemo(()=>J.resolvedOptions(),[J]),U=wb({...h,currencySign:void 0}),L=c.useMemo(()=>isNaN(x)?"":U.format(x),[U,x]),{spinButtonProps:B,incrementButtonProps:Y,decrementButtonProps:W}=RM({isDisabled:i,isReadOnly:l,isRequired:s,maxValue:d,minValue:u,onIncrement:M,onIncrementToMax:$,onDecrement:k,onDecrementToMin:F,value:x,textValue:L}),[G,re]=c.useState(!1),{focusWithinProps:oe}=Fo({isDisabled:i,onFocusWithinChange:re}),ae=c.useCallback(st=>{Math.abs(st.deltaY)<=Math.abs(st.deltaX)||(st.deltaY>0?M():st.deltaY<0&&k())},[k,M]);fC({onScroll:ae,isDisabled:i||l||!G},n);let ee=j.maximumFractionDigits>0,se=isNaN(t.minValue)||t.minValue<0,_e="numeric";_g()?se?_e="text":ee&&(_e="decimal"):Ec()&&(se?_e="numeric":ee&&(_e="decimal"));let le=st=>{t.validate(st)&&t.setInputValue(st)},pe=$n(e),{labelProps:Se,inputProps:Mn,descriptionProps:Fn,errorMessageProps:io}=V9({...T,...pe,label:g,autoFocus:f,isDisabled:i,isReadOnly:l,isRequired:s,validationState:m,value:R,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||null,"aria-labelledby":e["aria-labelledby"]||null,id:V,type:"text",inputMode:_e,onChange:le,onBlur:b,onFocus:v,onFocusChange:_,onKeyDown:y,onKeyUp:w,description:S,errorMessage:P},t,n),lo=fe(B,I,Mn,{role:null,"aria-roledescription":Co()?null:A.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"}),cn=st=>{document.activeElement!==n.current&&(st.pointerType==="mouse"?n.current.focus():st.target.focus())},zt=e["aria-label"]||(typeof e.label=="string"?e.label:""),un;zt||(un=e.label!=null?Se.id:e["aria-labelledby"]);let so=ct(),Zl=ct(),Xf=fe(Y,{"aria-label":a||A.format("increase",{fieldLabel:zt}).trim(),id:un&&!a?so:null,"aria-labelledby":un&&!a?`${so} ${un}`:null,"aria-controls":V,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:cn}),Ql=fe(W,{"aria-label":o||A.format("decrease",{fieldLabel:zt}).trim(),id:un&&!o?Zl:null,"aria-labelledby":un&&!o?`${Zl} ${un}`:null,"aria-controls":V,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:cn});return{groupProps:{role:"group","aria-disabled":i,"aria-invalid":m==="invalid"?"true":void 0,...oe},labelProps:Se,inputProps:lo,incrementButtonProps:Xf,decrementButtonProps:Ql,errorMessageProps:io,descriptionProps:Fn}}function BM(e){let{minValue:t,maxValue:n,step:r,formatOptions:o,value:a,defaultValue:i,onChange:l,locale:s,isDisabled:u,isReadOnly:d}=e,[f,m]=Ot(a,isNaN(i)?NaN:i,l),[g,h]=c.useState(()=>isNaN(f)?"":new Xi(s,o).format(f)),b=c.useMemo(()=>new vb(s,o),[s,o]),v=c.useMemo(()=>b.getNumberingSystem(g),[b,g]),_=c.useMemo(()=>new Xi(s,{...o,numberingSystem:v}),[s,o,v]),y=c.useMemo(()=>_.resolvedOptions(),[_]),w=c.useCallback(B=>isNaN(B)||B===null?"":_.format(B),[_]),S=isNaN(r)?1:r;y.style==="percent"&&isNaN(r)&&(S=.01);let[P,T]=c.useState(f),[M,$]=c.useState(s),[k,F]=c.useState(o);(!Object.is(f,P)||s!==M||o!==k)&&(h(w(f)),T(f),$(s),F(o));let x=c.useMemo(()=>b.parse(g),[b,g]),R=()=>{if(!g.length){m(NaN),h(a===void 0?"":w(f));return}if(isNaN(x)){h(w(f));return}let B;isNaN(r)?B=fi(x,t,n):B=jn(x,t,n,r),B=b.parse(w(B)),m(B),h(w(a===void 0?B:f))},O=(B,Y)=>{let W=x;if(isNaN(W)){let G=isNaN(Y)?0:Y;return jn(G,t,n,S)}else{let G=jn(W,t,n,S);return B==="+"&&G>W||B==="-"&&G<W?G:jn(Ld(B,W,S),t,n,S)}},A=()=>{let B=O("+",t);B===f&&h(w(B)),m(B)},V=()=>{let B=O("-",n);B===f&&h(w(B)),m(B)},I=()=>{n!=null&&m(jn(n,t,n,S))},J=()=>{t!=null&&m(t)},j=c.useMemo(()=>!u&&!d&&(isNaN(x)||isNaN(n)||jn(x,t,n,S)>x||Ld("+",x,S)<=n),[u,d,t,n,S,x]),U=c.useMemo(()=>!u&&!d&&(isNaN(x)||isNaN(t)||jn(x,t,n,S)<x||Ld("-",x,S)>=t),[u,d,t,n,S,x]);return{validate:B=>b.isValidPartialNumber(B,t,n),increment:A,incrementToMax:I,decrement:V,decrementToMin:J,canIncrement:j,canDecrement:U,minValue:t,maxValue:n,numberValue:x,setInputValue:h,inputValue:g,commit:R}}function Ld(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,l=a[1]&&a[1].length||0,s=Math.pow(10,Math.max(i,l));t=Math.round(t*s),n=Math.round(n*s),r=e==="+"?t+n:t-n,r/=s}return r}function Nx(e){const t=c.useRef(null),{buttonProps:n,isPressed:r}=Sr(e,t),{children:o,className:a}=e;return E("button",{"data-state":r?"pressed":void 0,ref:t,...n,className:a,children:o})}const jM=z.default.div`
|
|
1977
1977
|
/*
|
|
1978
1978
|
--border-color: ${p.color_deprecated_outline_secondary_enabled};
|
|
1979
1979
|
*/
|
|
@@ -2068,7 +2068,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2068
2068
|
/* border-top-width: 0.5px; */
|
|
2069
2069
|
margin-top: -1px;
|
|
2070
2070
|
grid-area: decrement;
|
|
2071
|
-
`;function Rx(e,t){var n;if(e.length&&((n=e[0])!=null&&n.value)){const r=e[0].value;return t.indexOf(r)}}const Nd=c.forwardRef((e,t)=>{const{disabled:n,readOnly:r,required:o,paddingSize:a="small",label:i,errorMessage:l,placeholder:s="Enter number...",showStepper:u=!0,min:d,max:f,height:m=wl.small,locale:g="en-US",isInvalid:h,boldLabel:b,tooltipContent:v,..._}=e,y=Mt(),w=n??y,S=r,P=_n(t),T=BM({..._,isDisabled:w,isReadOnly:S,minValue:d,maxValue:f,placeholder:s,locale:g}),{labelProps:M,groupProps:$,inputProps:k,incrementButtonProps:
|
|
2071
|
+
`;function Rx(e,t){var n;if(e.length&&((n=e[0])!=null&&n.value)){const r=e[0].value;return t.indexOf(r)}}const Nd=c.forwardRef((e,t)=>{const{disabled:n,readOnly:r,required:o,paddingSize:a="small",label:i,errorMessage:l,placeholder:s="Enter number...",showStepper:u=!0,min:d,max:f,height:m=wl.small,locale:g="en-US",isInvalid:h,boldLabel:b,tooltipContent:v,..._}=e,y=Mt(),w=n??y,S=r,P=_n(t),T=BM({..._,isDisabled:w,isReadOnly:S,minValue:d,maxValue:f,placeholder:s,locale:g}),{labelProps:M,groupProps:$,inputProps:k,incrementButtonProps:F,decrementButtonProps:x,errorMessageProps:R}=VM({..._,isDisabled:w,isReadOnly:S,minValue:d,maxValue:f,placeholder:s,label:i},T,P);let O=null;typeof i=="string"?O=X(Re,{...M,mb:p.spacing_150,bold:b,children:[i,v?E(Qe,{children:v}):null]}):c.isValidElement(i)&&(O=c.cloneElement(i,{...M}));const A=V=>{const{formatOptions:I}=e;if((I==null?void 0:I.style)==="unit"){const j=Intl.NumberFormat(g,I),U=j.formatToParts(1).filter(G=>G.type==="unit"),L=j.formatToParts(3).filter(G=>G.type==="unit"),B=Rx(U,T.inputValue),Y=Rx(L,T.inputValue);let W;if(B&&B>-1?W=B:Y&&Y>-1&&(W=Y),W){const G=V.target.selectionStart;if(G&&G>W){const re=W-1;V.target.setSelectionRange(re,re)}}}};return X(Et,{children:[O,u?X(jM,{...$,height:typeof m=="string"?m:void 0,children:[E(UM,{height:m,...k,"data-value":T.numberValue,paddingSize:a,ref:P,onClick:A,onFocus:A,required:o,"data-state":h?"invalid":void 0}),E(WM,{...F,children:E(De.KeyboardArrowUp,{})}),E(HM,{...x,children:E(De.KeyboardArrowDown,{})})]}):E(Lt,{height:m,ref:P,...k,"data-value":T.numberValue,paddingSize:a,required:o,"data-state":h?"invalid":void 0}),l?E(St,{...R,children:l}):null]})});Nd.displayName="NumberInput";const GM=e=>{var n;const t=Object.fromEntries(new FormData(e));for(let r=0;r<e.elements.length;r++){const o=e.elements[r];o.attributes["data-value"]&&(t[o.name]=(n=o.attributes["data-value"])==null?void 0:n.value)}return t},Kx=c.forwardRef((e,t)=>{const{errorMessage:n,disabled:r,readOnly:o,paddingSize:a="large",label:i,validationState:l,placeholder:s="Enter text...",rows:u=5,...d}=e,f=_n(t),m=Mt(),g=r??m,{labelProps:h,inputProps:b,errorMessageProps:v}=ca({...d,isDisabled:g,isReadOnly:o,placeholder:s,label:i,inputElementType:"textarea"},f);let _=null;return typeof i=="string"?_=E(Re,{...h,mb:p.spacing_150,children:i}):c.isValidElement(i)&&(_=c.cloneElement(i,{...h,mb:p.spacing_150})),X(Et,{children:[_,E(Lt,{as:"textarea","data-state":l,paddingSize:a,ref:f,placeholder:"Enter...",...b,rows:u}),n?E(St,{...v,children:n}):null]})});Kx.displayName="TextAreaInput";const zd=c.forwardRef((e,t)=>{const{isInvalid:n,...r}=e,{focus:o,height:a=wl.small,inputBorderRadius:i,connectLeft:l=null,connectRight:s=null,errorMessage:u,disabled:d,readOnly:f,required:m,paddingSize:g,label:h,validationState:b=n===!0?"invalid":"valid",placeholder:v="Enter text...",className:_,fontSize:y,lineHeight:w,boldLabel:S,...P}=r,T=_n(t),M=Mt(),$=d??M,{labelProps:k,inputProps:F,errorMessageProps:x}=ca({...P,isDisabled:$,isReadOnly:f,placeholder:v,label:h},T);let R=null;return typeof h=="string"?R=X(Re,{...k,mb:p.spacing_150,bold:S,children:[h,r.tooltipContent?E(Qe,{children:r.tooltipContent}):null]}):c.isValidElement(h)&&(R=c.cloneElement(h,{...k,mb:p.spacing_100})),c.useEffect(()=>{o&&T.current&&T.current.focus()},[o,T]),X(Et,{"data-id":"input-wrapper",children:[R,E(gd,{left:l,right:s,children:E(Lt,{height:a,fontSize:y,lineHeight:w,"data-id":"input-base",borderRadius:i,"data-state":b,paddingSize:g,ref:T,placeholder:"Enter...",type:"text",...F,required:m,className:_})}),u?E(St,{...x,children:u}):null]})});zd.displayName="TextInput";const Rd=c.createContext({});Rd.displayName="FormControlContext";function Nl(){return c.useContext(Rd)}function YM({children:e,label:t,errorMessage:n,tooltipContent:r,tooltipIcon:o,validationState:a,id:i,...l}){const{errorMessageProps:s,fieldProps:u,labelProps:d}=ol({errorMessage:n,label:t,validationState:a,id:i,...l});return E(Rd.Provider,{value:u,children:X(Et,{children:[X(Re,{...d,display:"flex",mb:p.spacing_150,children:[t,r?E(Qe,{icon:o,children:r}):null]}),e,n?E(St,{...s,children:n}):null]})})}const Vx=c.forwardRef((e,t)=>{const{label:n,tooltipContent:r,tooltipIcon:o,...a}=e;return E(zd,{paddingSize:"small",ref:t,label:X(Re,{mb:p.spacing_150,children:[n,r?E(Qe,{icon:o,children:r}):null]}),...a})});Vx.displayName="TextFormControl";const Bx=c.forwardRef((e,t)=>{const{label:n,tooltipContent:r,tooltipIcon:o,...a}=e;return E(Kx,{ref:t,label:X(Re,{mb:p.spacing_150,children:[n,r?E(Qe,{icon:o,children:r}):null]}),...a})});Bx.displayName="TextAreaFormControl";const jx=c.forwardRef((e,t)=>{const{label:n,tooltipContent:r,tooltipIcon:o,...a}=e;return E(Nd,{ref:t,label:X(Re,{mb:p.spacing_150,children:[n,r?E(Qe,{icon:o,children:r}):null]}),...a})});jx.displayName="NumberFormControl";const Ux=(e,t,n,r=[])=>{let o=!1,a=e.target;for(;a;){if(a.classList&&Array.from(a.classList).some(l=>r.includes(l))){o=!0;break}a=a.parentElement}o||t.current&&!t.current.contains(e.target)&&n()},Wx=z.default(Dr)`
|
|
2072
2072
|
width: 32px;
|
|
2073
2073
|
height: 32px;
|
|
2074
2074
|
padding: 0;
|
|
@@ -2117,7 +2117,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2117
2117
|
`,ZM=z.default.span`
|
|
2118
2118
|
display: none !important;
|
|
2119
2119
|
position: absolute;
|
|
2120
|
-
`,Hx=({children:e,placeholder:t,value:n="",editValue:r,hideIcon:o,p:a="7px 8px",onChange:i=()=>!1,onToggle:l=b=>b,onCancel:s=()=>!1,disabled:u=!1,valid:d=!0,label:f,labelId:m,allowedOutsideClickContainers:g,...h})=>{const b=c.useRef(null),[v,_]=c.useState(!1),[y,w]=c.useState(!1),S=Pt(h,Bt.propNames??[]),P=Pt(h,Pi.propNames??[]),T=c.useCallback(()=>{_(!1),l(!1),w(!1)},[l]),M=c.useCallback(()=>{l(!0),w(!0)},[l]),$=c.useCallback(R=>{if(r&&r===n){T();return}_(!0),(async()=>{try{await i()}catch{throw new Error("failed to handle async inline edit change")}})().then(()=>{T()}).catch(()=>{T()})},[r,i,T,n]),k=c.useRef(s);k.current=s,c.useEffect(()=>{const R=()=>{T(),k.current()};return document.addEventListener("mousedown",O=>Ux(O,b,R,g)),()=>{document.removeEventListener("mousedown",O=>Ux(O,b,R,g))}},[g,T]),c.useEffect(()=>T,[]);const
|
|
2120
|
+
`,Hx=({children:e,placeholder:t,value:n="",editValue:r,hideIcon:o,p:a="7px 8px",onChange:i=()=>!1,onToggle:l=b=>b,onCancel:s=()=>!1,disabled:u=!1,valid:d=!0,label:f,labelId:m,allowedOutsideClickContainers:g,...h})=>{const b=c.useRef(null),[v,_]=c.useState(!1),[y,w]=c.useState(!1),S=Pt(h,Bt.propNames??[]),P=Pt(h,Pi.propNames??[]),T=c.useCallback(()=>{_(!1),l(!1),w(!1)},[l]),M=c.useCallback(()=>{l(!0),w(!0)},[l]),$=c.useCallback(R=>{if(r&&r===n){T();return}_(!0),(async()=>{try{await i()}catch{throw new Error("failed to handle async inline edit change")}})().then(()=>{T()}).catch(()=>{T()})},[r,i,T,n]),k=c.useRef(s);k.current=s,c.useEffect(()=>{const R=()=>{T(),k.current()};return document.addEventListener("mousedown",O=>Ux(O,b,R,g)),()=>{document.removeEventListener("mousedown",O=>Ux(O,b,R,g))}},[g,T]),c.useEffect(()=>T,[]);const F=c.useCallback(()=>f&&typeof f=="string"?E(Re,{bold:!0,size:"medium",htmlFor:f,color:p.color_gray_52,onClick:()=>!u&&M(),mb:p.spacing_100,children:f}):E(fn,{children:f}),[u,M,f]);if(y)return X(fn,{children:[E(F,{}),E(gd,{tabIndex:0,ref:b,right:E(ht,{ml:p.spacing_100,children:E(Wx,{onClick:$,disabled:v,"aria-label":"save",children:v?E(De.Loop,{}):E(De.Check,{})})}),children:E(qM,{saving:v,children:e})})]});const x={p:a,...S,...P};return m?x.id=m:f!==void 0&&(x.id=f),X(fn,{children:[E(F,{}),X(JM,{onClick:M,...x,"data-id":h["data-id"],disabled:u,children:[`${n}`||E(XM,{children:t}),!o&&!u&&E(ZM,{valid:d,children:E(De.Edit,{})})]})]})};Hx.displayName="InlineEdit";const Gx=(e,t,n)=>{var i;let r=0;if(e.value){const l=e.value.minute;r=l-l%t}const o=zl(null,new kr(((i=e.value)==null?void 0:i.hour)??0,r));return n==="24"?va(o):ba(o)},QM=(e,t,n)=>{var i;let r=0;if(e.value){const l=e.value.minute;r=l+t-l%t}const o=zl(null,new kr(((i=e.value)==null?void 0:i.hour)??0,r));return n==="24"?va(o):ba(o)},eF=e=>{const t=new Date;t.setHours(16),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0);const n=new Intl.DateTimeFormat(e,{hour:"numeric"}).resolvedOptions().hourCycle;return n==="h12"||n==="h11"?"12":"24"},zl=(e,t)=>{let n="";return e?typeof e=="string"?n=e:n=e.toString().slice(0,5):t&&(typeof t=="string"?n=t:n=t.toString().slice(0,5)),n},tF=z.default.ul`
|
|
2121
2121
|
list-style-type: none;
|
|
2122
2122
|
margin: 0;
|
|
2123
2123
|
padding: 0;
|
|
@@ -2145,7 +2145,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2145
2145
|
&:focus-within {
|
|
2146
2146
|
border-color: ${p.color_deprecated_fill_inverse_enabled};
|
|
2147
2147
|
}
|
|
2148
|
-
`;function sF({label:e,labelId:t="time-input-label",inputId:n="time-input",hideLabel:r,boldLabel:o,interval:a=5,hourCycle:i="",defaultValue:l,onChange:s,placeholder:u="Enter a time",isInvalid:d,isDisabled:f,...m}){const{locale:g}=at(),h=i===""?eF(g):i,[b,v]=c.useState(m.hideIcon),_=h==="24"?aF(a):oF(a),y=zl(l,m.value),w=h==="24"?va(y):ba(y),[S,P]=c.useState(w),T=c.createRef(),M=c.createRef(),$=c.useRef(null),k=c.createRef(),
|
|
2148
|
+
`;function sF({label:e,labelId:t="time-input-label",inputId:n="time-input",hideLabel:r,boldLabel:o,interval:a=5,hourCycle:i="",defaultValue:l,onChange:s,placeholder:u="Enter a time",isInvalid:d,isDisabled:f,...m}){const{locale:g}=at(),h=i===""?eF(g):i,[b,v]=c.useState(m.hideIcon),_=h==="24"?aF(a):oF(a),y=zl(l,m.value),w=h==="24"?va(y):ba(y),[S,P]=c.useState(w),T=c.createRef(),M=c.createRef(),$=c.useRef(null),k=c.createRef(),F=ua({}),x=oi(m.value);c.useEffect(()=>{if(m.value&&(x==null?void 0:x.compare(m.value))!==0&&!F.isOpen){const j=zl(null,m.value),U=h==="24"?va(j):ba(j);P(U)}},[m.value,x,h,F.isOpen]);const R=c.useCallback(j=>{var B;const U=k.current,L=(B=U==null?void 0:U.getElementsByClassName(`${j}`))==null?void 0:B[0];if(U&&L){const Y=U.getBoundingClientRect().top+U.scrollTop,G=L.getBoundingClientRect().top+U.scrollTop-Y+U.scrollTop;U.scrollTo({top:G,behavior:"smooth"})}},[k]),O=c.useCallback(j=>{var B;const U=k.current,L=(B=U==null?void 0:U.getElementsByClassName(`${j}`))==null?void 0:B[0];if(U&&L){const Y=U.getBoundingClientRect().top+U.scrollTop,G=L.getBoundingClientRect().top+U.scrollTop-Y+U.scrollTop;U.scrollTop=G}},[k]),A=oi(F.isOpen);c.useEffect(()=>{if(!A&&F.isOpen){const j=Gx(m,a,h);O(j)}},[S,F.isOpen,A,l,m.value,R,O,a,h,m]);const{overlayProps:V}=ad({type:"dialog"},F,M);c.useEffect(()=>{const j=()=>{M.current&&M.current.offsetWidth<100?b||v(!0):b&&v(!1)};return window.addEventListener("resize",j),j(),()=>window.removeEventListener("resize",j)},[M,b]);const I=c.useCallback(j=>{const U=h=="24"?va(j??S):ba(j??S);let L,B,Y,W="";if(h==="12"){B="0",Y="0";const re=U.match(/(\d{2}):(\d{2})|PM|AM/gi);re&&(W=re[1]??"",[L="",B="",Y=""]=re[0].split(/(\d{2}):(\d{2})/),W.replace(" ","")==="AM"&&B==="12"&&(B="0"),W.replace(" ","")==="PM"&&B!=="12"&&(B=(parseInt(B)+12).toString()))}else[B="0",Y="0"]=U.split(":");const G=new kr(parseInt(B),parseInt(Y));s==null||s(G),P(U),F.close()},[s,h,S,F]),J=c.useCallback(j=>{P(j.target.value),R(j.target.value),F.isOpen||F.open()},[F,R]);return ri(()=>{document.activeElement===T.current&&F.close()}),X(Et,{ref:M,children:[e?X(Re,{id:t,htmlFor:n,srOnly:r,mb:p.spacing_150,bold:o,children:[e,m.tooltipContent?E(Qe,{icon:m.tooltipIcon,children:m.tooltipContent}):null]}):null,X(ge,{width:"100%",position:"relative",children:[E(Lt,{type:"text",autoComplete:"off",placeholder:u,id:n,value:S,fontSize:p.font_size_175,lineHeight:p.font_size_200,height:p.font_size_400,"data-state":d?"invalid":void 0,disabled:f,ref:T,onFocus:j=>{F.isOpen||F.open()},onBlur:j=>{k.current&&j.relatedTarget&&k.current.contains(j.relatedTarget)||I(S)},onKeyDown:j=>{j.key==="Enter"&&F.isOpen&&j.preventDefault();let U=_.findIndex(L=>L===S);U===-1&&(U=_.findIndex(L=>{if(j.key==="ArrowDown")return L===Gx(m,a,h);if(j.key==="ArrowUp")return L===QM(m,a,h)})),j.key==="ArrowDown"&&_[U+1]&&(F.isOpen||F.open(),P(_[U+1]??S),R(_[U+1]??"")),j.key==="ArrowUp"&&_[U-1]&&(F.isOpen||F.open(),P(_[U-1]??S),R(_[U-1]??""))},onKeyUp:j=>{j.key==="Enter"&&I(S)},onMouseUp:j=>{j.preventDefault()},onChange:J,...ms(m)}),b?null:E(De.AccessTime,{"aria-hidden":"true",style:{position:"absolute",pointerEvents:"none",width:"1.1rem",height:"1.1rem",top:".45rem",right:".5rem"}})]}),m.errorMessage?E(St,{children:m.errorMessage}):null,F.isOpen?E(Gr,{state:F,targetRef:M,popoverRef:$,...V,placement:"bottom start",width:"fit-content",isNonModal:!0,children:E(tF,{ref:k,onMouseDown:j=>j.preventDefault(),children:_.map((j,U)=>E(nF,{value:j,selected:j===S,className:j||"",onClick:()=>{I(j)},children:E(tt,{as:"span",children:j})},U))})}):null]})}const Jx=e=>{if(!e)return;let t=e.year,n=e.month;const r=1;return n===1?(n=12,t-=1):n-=1,new Ae(t,n,r)},Zx=e=>{if(!e)return;let t=e.year,n=e.month;const r=1;return n===12?(n=1,t+=1):n+=1,new Ae(t,n,r)},Kd=["january","february","march","april","may","june","july","august","september","october","november","december"];function Rl(e){return e&&e.getFullYear()===new Date().getFullYear()?new Intl.DateTimeFormat("en-US",{weekday:"long",month:"long",day:"numeric"}).format(e):new Intl.DateTimeFormat("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}).format(e)}function cF({label:e,labelId:t="date-input-label",inputId:n="date-input",timeZone:r=Intl.DateTimeFormat().resolvedOptions().timeZone,hideLabel:o,boldLabel:a,onChange:i,isInvalid:l,isDisabled:s,placeholder:u="Enter a date",...d}){const[f,m]=c.useState(!!d.hideIcon),g=c.createRef(),h=c.createRef(),b=c.createRef(),v=c.useRef(null),_=ua({}),y=d.defaultValue?Rl(new Date(d.defaultValue.year,d.defaultValue.month-1,d.defaultValue.day)):void 0,w=d.value?Rl(new Date(d.value.year,d.value.month-1,d.value.day)):"",[S,P]=c.useState(y??w),[T,M]=c.useState(d.value??d.defaultValue),[$,k]=c.useState(T),{overlayProps:F}=ad({type:"dialog"},_,g),x=oi(d.value);c.useEffect(()=>{d.value&&(x==null?void 0:x.compare(d.value))!==0&&!_.isOpen&&(M(d.value),k(d.value),P(Rl(new Date(d.value.year,d.value.month-1,d.value.day))))},[d.value,x,_.isOpen]);const R=c.useCallback(V=>{const I=V??$;I&&(M(I),k(I),P(Rl(new Date(I.year,I.month-1,I.day))),i==null||i(I),_.close())},[i,$,_]),O=c.useCallback(V=>{const I=Kd.findIndex(J=>J.startsWith(V.toLowerCase()));if(I>=0)return Kd[I]},[]);c.useEffect(()=>{const V=()=>{!d.hideIcon&&g.current&&g.current.offsetWidth<=155?f||m(!0):d.hideIcon||f&&m(!1)};return window.addEventListener("resize",V),V(),()=>window.removeEventListener("resize",V)},[g,f,d.hideIcon]);const A=c.useCallback(V=>{P(V.target.value),_.isOpen||_.open();const J=V.target.value.replace(",","").split(" ");let j,U,L;for(const Y of J){if(Y.match(/[a-zA-Z]+/)){const W=O(Y);W&&(j=W)}if(Y.match(/^[0-9]+$/)){if(Y.length===1||Y.length===2){const W=parseInt(Y,10);W>=1&&W<=31&&(U=W)}if(Y.length===4){const W=parseInt(Y,10);W>=1e3&&W<=9999&&(L=W)}}}const B=new Ae(L??new Date().getFullYear(),Kd.findIndex(Y=>Y===j)+1,U??1);M(B),k(B)},[O,_]);return ri(()=>{document.activeElement===b.current&&_.close()}),X(Et,{ref:g,children:[e?X(Re,{id:t,htmlFor:n,srOnly:o,mb:p.spacing_150,bold:a,children:[e,d.tooltipContent?E(Qe,{icon:d.tooltipIcon,children:d.tooltipContent}):null]}):null,X(ge,{width:"100%",position:"relative",children:[E(Lt,{type:"text",autoComplete:"off",placeholder:u,id:n,value:S,fontSize:p.font_size_175,lineHeight:p.font_size_200,height:p.font_size_400,"data-state":l?"invalid":void 0,disabled:s,ref:b,onFocus:V=>{V.target.select(),_.isOpen||_.open()},onBlur:V=>{h.current&&V.relatedTarget&&h.current.contains(V.relatedTarget)||R()},onKeyDown:V=>{V.key==="Enter"&&_.isOpen&&V.preventDefault(),_.isOpen||_.open()},onKeyUp:V=>{V.key==="Enter"&&R()},onMouseUp:V=>{V.preventDefault()},onChange:A,...ms(d)}),f?null:E(De.CalendarToday,{"aria-hidden":"true",style:{position:"absolute",pointerEvents:"none",width:".875rem",height:".875rem",top:".5rem",right:"10px"}})]}),d.errorMessage?E(St,{children:d.errorMessage}):null,_.isOpen?E(Gr,{state:_,targetRef:g,popoverRef:v,...F,placement:"bottom start",isNonModal:!0,children:E(zu,{ref:h,value:T,focusedValue:$,onChange:V=>{const I=new Ae(V.year,V.month,V.day);R(I)},onPrev:()=>{const V=Jx($);V&&k(V)},onNext:()=>{const V=Zx($);V&&k(V)},timeZone:r})}):null]})}const uF=z.default(tt)`
|
|
2149
2149
|
font-family: ${p.font_family_pingo};
|
|
2150
2150
|
font-size: 0.875rem;
|
|
2151
2151
|
font-style: normal;
|
|
@@ -2210,7 +2210,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2210
2210
|
justify-content: center;
|
|
2211
2211
|
align-items: center;
|
|
2212
2212
|
color: ${p.color_deprecated_fill_secondary_enabled};
|
|
2213
|
-
`,jd=e=>{const{label:t,boldLabel:n,autoFocus:r,className:o,excludeFromTabOrder:a,isClearable:i=!0,isDisabled:l,isSelectableAll:s=!1,isAllSelectedText:u,placeholder:d="Select...",tooltipContent:f,tooltipIcon:m,errorMessage:g,isInvalid:h=!1}=e,b=D.default.useRef(null),v=!i,_=_F({...e,disallowEmptySelection:v}),{labelProps:y,triggerProps:w,valueProps:S,menuProps:P,errorMessageProps:T}=yF({...e,disallowEmptySelection:v},_,b),{buttonProps:M}=Sr({...w,autoFocus:r,excludeFromTabOrder:a,isDisabled:l},b),$=_.selectionManager.isSelectAll,[k,
|
|
2213
|
+
`,jd=e=>{const{label:t,boldLabel:n,autoFocus:r,className:o,excludeFromTabOrder:a,isClearable:i=!0,isDisabled:l,isSelectableAll:s=!1,isAllSelectedText:u,placeholder:d="Select...",tooltipContent:f,tooltipIcon:m,errorMessage:g,isInvalid:h=!1}=e,b=D.default.useRef(null),v=!i,_=_F({...e,disallowEmptySelection:v}),{labelProps:y,triggerProps:w,valueProps:S,menuProps:P,errorMessageProps:T}=yF({...e,disallowEmptySelection:v},_,b),{buttonProps:M}=Sr({...w,autoFocus:r,excludeFromTabOrder:a,isDisabled:l},b),$=_.selectionManager.isSelectAll,[k,F]=D.default.useState(!1),x=()=>_.selectionManager.toggleSelectAll(),R=()=>_.selectionManager.setFocusedKey(null),O=(A,V=!1,I)=>E(ht,{children:V&&I?E("span",{children:I}):E("span",{children:A.map(J=>J.textValue).join(", ")})});return X(Et,{className:ew("select-wrapper",{"select-wrapper--opens":_.isOpen},o),children:[t?X(Re,{...y,mb:p.spacing_150,onClick:()=>_.open(),bold:n,children:[t,f?E(Qe,{icon:m,children:f}):null]}):null,E(ek,{focusRingClass:"select--focused",autoFocus:r,children:X(Bd,{...M,ref:b,isOpen:_.isOpen,"data-state":h?"invalid":void 0,children:[E("span",{...S,children:_.selectedItems?O(_.selectedItems,$,u):E(Vd,{children:d})}),E(xF,{children:E(Dl,{style:{width:"18px",height:"18px"},"aria-hidden":"true"})})]})}),g?E(St,{...T,children:g}):null,_.isOpen?X(Gr,{state:_,targetRef:b,isTargetWidth:!0,children:[s?X(fn,{children:[X(hd,{onMouseOver:()=>{F(!0),R()},onMouseOut:()=>F(!1),isFocused:k,tabIndex:k?0:-1,onClick:x,"aria-label":"Select All",children:[E(nd,{isDisabled:l??!1,isSelected:$,"aria-label":"Select All",onChange:x}),X(bd,{children:[E(tt,{as:"span",children:u??"All"}),E(vd,{children:$?E(De.Check,{"aria-hidden":"true",style:{width:18,height:18}}):null})]})]}),E(L$,{})]}):null,E(eA,{...P,state:_,isSelectableAll:!0})]}):null]})};jd.displayName="MultiSelectComponent";const nw=({items:e,...t})=>{const{children:n}=t,r=o=>o.textValue?E(Hr,{textValue:o.textValue,children:o.textValue},o.id):E(Hr,{children:o.name},o.id);if(!e)throw new Error("MultiSelect requires items");return E(jd,{...t,items:e,children:n||r})};nw.displayName="MultiSelect";const Ud="nav-menu-portal";var rw=(e=>(e.Up="Up",e.Down="Down",e))(rw||{});const Wd=D.default.createContext({direction:"Down",menuRef:null,open:!1,setOpen:function(){throw new Error("Function not implemented.")}}),wF=z.default.div`
|
|
2214
2214
|
position: relative;
|
|
2215
2215
|
`,Zr=c.forwardRef((e,t)=>{const[n,r]=c.useState(!1),o=_n(t);return c.useEffect(()=>{const a=document.getElementById(Ud);function i(l){const s=l.target;o.current&&!o.current.contains(s)&&!(a!=null&&a.contains(s))&&r(!1)}return document.addEventListener("mousedown",i),()=>{document.removeEventListener("mousedown",i)}},[o]),E(Wd.Provider,{value:{menuRef:o,open:n,setOpen:r,direction:e.direction??"Down"},children:E(wF,{ref:o,role:"menu",children:e.children})})});Zr.displayName="NavigationMenu";const EF=z.default.button`
|
|
2216
2216
|
cursor: pointer;
|
|
@@ -2450,8 +2450,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2450
2450
|
paddingRight: theme.spacing(3),
|
|
2451
2451
|
},
|
|
2452
2452
|
`].join(`
|
|
2453
|
-
`)),N({paddingLeft:t(2),paddingRight:t(2)},a,ur({},e.up("sm"),N({paddingLeft:t(3),paddingRight:t(3)},a[e.up("sm")])))},toolbar:(r={minHeight:56},ur(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),ur(r,e.up("sm"),{minHeight:64}),r)},n)}var Oz={black:"#000",white:"#fff"};const Hl=Oz;var Mz={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};const Tf=Mz;var Fz={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};const Cf=Fz;var Lz={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};const kf=Lz;var Nz={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};const Af=Nz;var zz={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};const If=zz;var Rz={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};const Of=Rz;var Kz={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const Mf=Kz;function dE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error("Material-UI: The value provided ".concat(e," is out of range [").concat(t,", ").concat(n,"].")),Math.min(Math.max(t,e),n)}function Vz(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&n[0].length===1&&(n=n.map(function(r){return r+r})),n?"rgb".concat(n.length===4?"a":"","(").concat(n.map(function(r,o){return o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3}).join(", "),")"):""}function Bz(e){e=oo(e);var t=e,n=t.values,r=n[0],o=n[1]/100,a=n[2]/100,i=o*Math.min(a,1-a),l=function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(f+r/30)%12;return a-i*Math.max(Math.min(m-3,9-m,1),-1)},s="rgb",u=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(s+="a",u.push(n[3])),Ff({type:s,values:u})}function oo(e){if(e.type)return e;if(e.charAt(0)==="#")return oo(Vz(e));var t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?"Material-UI: Unsupported `".concat(e,"` color.\nWe support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()."):Kl(3,e));var r=e.substring(t+1,e.length-1).split(",");return r=r.map(function(o){return parseFloat(o)}),{type:n,values:r}}function Ff(e){var t=e.type,n=e.values;return t.indexOf("rgb")!==-1?n=n.map(function(r,o){return o<3?parseInt(r,10):r}):t.indexOf("hsl")!==-1&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function fE(e,t){var n=pE(e),r=pE(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function pE(e){e=oo(e);var t=e.type==="hsl"?oo(Bz(e)).values:e.values;return t=t.map(function(n){return n/=255,n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function jz(e,t){if(e=oo(e),t=dE(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1)for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Ff(e)}function Uz(e,t){if(e=oo(e),t=dE(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Ff(e)}var mE={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Hl.white,default:Tf[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Lf={text:{primary:Hl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:Tf[800],default:"#303030"},action:{active:Hl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function gE(e,t,n,r){var o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Uz(e.main,o):t==="dark"&&(e.dark=jz(e.main,a)))}function Wz(e){var t=e.primary,n=t===void 0?{light:Cf[300],main:Cf[500],dark:Cf[700]}:t,r=e.secondary,o=r===void 0?{light:kf.A200,main:kf.A400,dark:kf.A700}:r,a=e.error,i=a===void 0?{light:Af[300],main:Af[500],dark:Af[700]}:a,l=e.warning,s=l===void 0?{light:If[300],main:If[500],dark:If[700]}:l,u=e.info,d=u===void 0?{light:Of[300],main:Of[500],dark:Of[700]}:u,f=e.success,m=f===void 0?{light:Mf[300],main:Mf[500],dark:Mf[700]}:f,g=e.type,h=g===void 0?"light":g,b=e.contrastThreshold,v=b===void 0?3:b,_=e.tonalOffset,y=_===void 0?.2:_,w=Nt(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function S($){var k=fE($,Lf.text.primary)>=v?Lf.text.primary:mE.text.primary;if(process.env.NODE_ENV!=="production"){var
|
|
2454
|
-
`))}return k}var P=function(k){var
|
|
2453
|
+
`)),N({paddingLeft:t(2),paddingRight:t(2)},a,ur({},e.up("sm"),N({paddingLeft:t(3),paddingRight:t(3)},a[e.up("sm")])))},toolbar:(r={minHeight:56},ur(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),ur(r,e.up("sm"),{minHeight:64}),r)},n)}var Oz={black:"#000",white:"#fff"};const Hl=Oz;var Mz={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};const Tf=Mz;var Fz={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};const Cf=Fz;var Lz={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};const kf=Lz;var Nz={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};const Af=Nz;var zz={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};const If=zz;var Rz={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};const Of=Rz;var Kz={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const Mf=Kz;function dE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error("Material-UI: The value provided ".concat(e," is out of range [").concat(t,", ").concat(n,"].")),Math.min(Math.max(t,e),n)}function Vz(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&n[0].length===1&&(n=n.map(function(r){return r+r})),n?"rgb".concat(n.length===4?"a":"","(").concat(n.map(function(r,o){return o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3}).join(", "),")"):""}function Bz(e){e=oo(e);var t=e,n=t.values,r=n[0],o=n[1]/100,a=n[2]/100,i=o*Math.min(a,1-a),l=function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(f+r/30)%12;return a-i*Math.max(Math.min(m-3,9-m,1),-1)},s="rgb",u=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(s+="a",u.push(n[3])),Ff({type:s,values:u})}function oo(e){if(e.type)return e;if(e.charAt(0)==="#")return oo(Vz(e));var t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?"Material-UI: Unsupported `".concat(e,"` color.\nWe support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()."):Kl(3,e));var r=e.substring(t+1,e.length-1).split(",");return r=r.map(function(o){return parseFloat(o)}),{type:n,values:r}}function Ff(e){var t=e.type,n=e.values;return t.indexOf("rgb")!==-1?n=n.map(function(r,o){return o<3?parseInt(r,10):r}):t.indexOf("hsl")!==-1&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function fE(e,t){var n=pE(e),r=pE(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function pE(e){e=oo(e);var t=e.type==="hsl"?oo(Bz(e)).values:e.values;return t=t.map(function(n){return n/=255,n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function jz(e,t){if(e=oo(e),t=dE(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1)for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Ff(e)}function Uz(e,t){if(e=oo(e),t=dE(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Ff(e)}var mE={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Hl.white,default:Tf[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Lf={text:{primary:Hl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:Tf[800],default:"#303030"},action:{active:Hl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function gE(e,t,n,r){var o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Uz(e.main,o):t==="dark"&&(e.dark=jz(e.main,a)))}function Wz(e){var t=e.primary,n=t===void 0?{light:Cf[300],main:Cf[500],dark:Cf[700]}:t,r=e.secondary,o=r===void 0?{light:kf.A200,main:kf.A400,dark:kf.A700}:r,a=e.error,i=a===void 0?{light:Af[300],main:Af[500],dark:Af[700]}:a,l=e.warning,s=l===void 0?{light:If[300],main:If[500],dark:If[700]}:l,u=e.info,d=u===void 0?{light:Of[300],main:Of[500],dark:Of[700]}:u,f=e.success,m=f===void 0?{light:Mf[300],main:Mf[500],dark:Mf[700]}:f,g=e.type,h=g===void 0?"light":g,b=e.contrastThreshold,v=b===void 0?3:b,_=e.tonalOffset,y=_===void 0?.2:_,w=Nt(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function S($){var k=fE($,Lf.text.primary)>=v?Lf.text.primary:mE.text.primary;if(process.env.NODE_ENV!=="production"){var F=fE($,k);F<3&&console.error(["Material-UI: The contrast ratio of ".concat(F,":1 for ").concat(k," on ").concat($),"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
2454
|
+
`))}return k}var P=function(k){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300,R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:700;if(k=N({},k),!k.main&&k[F]&&(k.main=k[F]),!k.main)throw new Error(process.env.NODE_ENV!=="production"?"Material-UI: The color provided to augmentColor(color) is invalid.\nThe color object needs to have a `main` property or a `".concat(F,"` property."):Kl(4,F));if(typeof k.main!="string")throw new Error(process.env.NODE_ENV!=="production"?"Material-UI: The color provided to augmentColor(color) is invalid.\n`color.main` should be a string, but `".concat(JSON.stringify(k.main),`\` was provided instead.
|
|
2455
2455
|
|
|
2456
2456
|
Did you intend to use one of the following approaches?
|
|
2457
2457
|
|
|
@@ -2464,7 +2464,7 @@ const theme1 = createTheme({ palette: {
|
|
|
2464
2464
|
const theme2 = createTheme({ palette: {
|
|
2465
2465
|
primary: { main: green[500] },
|
|
2466
2466
|
} });`):Kl(5,JSON.stringify(k.main)));return gE(k,"light",x,y),gE(k,"dark",R,y),k.contrastText||(k.contrastText=S(k.main)),k},T={dark:Lf,light:mE};process.env.NODE_ENV!=="production"&&(T[h]||console.error("Material-UI: The palette type `".concat(h,"` is not supported.")));var M=Qr(N({common:Hl,type:h,primary:P(n),secondary:P(o,"A400","A200","A700"),error:P(i),warning:P(s),info:P(d),success:P(m),grey:Tf,contrastThreshold:v,getContrastText:S,augmentColor:P,tonalOffset:y},T[h]),w);return M}function hE(e){return Math.round(e*1e5)/1e5}var bE=!1;function Hz(e){return process.env.NODE_ENV!=="production"&&(bE||(console.warn(["Material-UI: The `theme.typography.round` helper is deprecated.","Head to https://mui.com/r/migration-v4/#theme for a migration path."].join(`
|
|
2467
|
-
`)),bE=!0)),hE(e)}var vE={textTransform:"uppercase"},yE='"Roboto", "Helvetica", "Arial", sans-serif';function Gz(e,t){var n=typeof t=="function"?t(e):t,r=n.fontFamily,o=r===void 0?yE:r,a=n.fontSize,i=a===void 0?14:a,l=n.fontWeightLight,s=l===void 0?300:l,u=n.fontWeightRegular,d=u===void 0?400:u,f=n.fontWeightMedium,m=f===void 0?500:f,g=n.fontWeightBold,h=g===void 0?700:g,b=n.htmlFontSize,v=b===void 0?16:b,_=n.allVariants,y=n.pxToRem,w=Nt(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("Material-UI: `fontSize` is required to be a number."),typeof v!="number"&&console.error("Material-UI: `htmlFontSize` is required to be a number."));var S=i/14,P=y||function($){return"".concat($/v*S,"rem")},T=function(k,
|
|
2467
|
+
`)),bE=!0)),hE(e)}var vE={textTransform:"uppercase"},yE='"Roboto", "Helvetica", "Arial", sans-serif';function Gz(e,t){var n=typeof t=="function"?t(e):t,r=n.fontFamily,o=r===void 0?yE:r,a=n.fontSize,i=a===void 0?14:a,l=n.fontWeightLight,s=l===void 0?300:l,u=n.fontWeightRegular,d=u===void 0?400:u,f=n.fontWeightMedium,m=f===void 0?500:f,g=n.fontWeightBold,h=g===void 0?700:g,b=n.htmlFontSize,v=b===void 0?16:b,_=n.allVariants,y=n.pxToRem,w=Nt(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("Material-UI: `fontSize` is required to be a number."),typeof v!="number"&&console.error("Material-UI: `htmlFontSize` is required to be a number."));var S=i/14,P=y||function($){return"".concat($/v*S,"rem")},T=function(k,F,x,R,O){return N({fontFamily:o,fontWeight:k,fontSize:P(F),lineHeight:x},o===yE?{letterSpacing:"".concat(hE(R/F),"em")}:{},O,_)},M={h1:T(s,96,1.167,-1.5),h2:T(s,60,1.2,-.5),h3:T(d,48,1.167,0),h4:T(d,34,1.235,.25),h5:T(d,24,1.334,0),h6:T(m,20,1.6,.15),subtitle1:T(d,16,1.75,.15),subtitle2:T(m,14,1.57,.1),body1:T(d,16,1.5,.15),body2:T(d,14,1.43,.15),button:T(m,14,1.75,.4,vE),caption:T(d,12,1.66,.4),overline:T(d,12,2.66,1,vE)};return Qr(N({htmlFontSize:v,pxToRem:P,round:Hz,fontFamily:o,fontSize:i,fontWeightLight:s,fontWeightRegular:d,fontWeightMedium:m,fontWeightBold:h},M),w,{clone:!1})}var Yz=.2,qz=.14,Xz=.12;function Ce(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(Yz,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(qz,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(Xz,")")].join(",")}var Jz=["none",Ce(0,2,1,-1,0,1,1,0,0,1,3,0),Ce(0,3,1,-2,0,2,2,0,0,1,5,0),Ce(0,3,3,-2,0,3,4,0,0,1,8,0),Ce(0,2,4,-1,0,4,5,0,0,1,10,0),Ce(0,3,5,-1,0,5,8,0,0,1,14,0),Ce(0,3,5,-1,0,6,10,0,0,1,18,0),Ce(0,4,5,-2,0,7,10,1,0,2,16,1),Ce(0,5,5,-3,0,8,10,1,0,3,14,2),Ce(0,5,6,-3,0,9,12,1,0,3,16,2),Ce(0,6,6,-3,0,10,14,1,0,4,18,3),Ce(0,6,7,-4,0,11,15,1,0,4,20,3),Ce(0,7,8,-4,0,12,17,2,0,5,22,4),Ce(0,7,8,-4,0,13,19,2,0,5,24,4),Ce(0,7,9,-4,0,14,21,2,0,5,26,4),Ce(0,8,9,-5,0,15,22,2,0,6,28,5),Ce(0,8,10,-5,0,16,24,2,0,6,30,5),Ce(0,8,11,-5,0,17,26,2,0,6,32,5),Ce(0,9,11,-5,0,18,28,2,0,7,34,6),Ce(0,9,12,-6,0,19,29,2,0,7,36,6),Ce(0,10,13,-6,0,20,31,3,0,8,38,7),Ce(0,10,13,-6,0,21,33,3,0,8,40,7),Ce(0,10,14,-6,0,22,35,3,0,8,42,7),Ce(0,11,14,-7,0,23,36,3,0,9,44,8),Ce(0,11,15,-7,0,24,38,3,0,9,46,8)];const Zz=Jz;var Qz={borderRadius:4};const eR=Qz;var tR=process.env.NODE_ENV!=="production"?te.oneOfType([te.number,te.string,te.object,te.array]):{};const nR=tR;var rR=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function oR(e){var t=e.spacing||8;return typeof t=="number"?function(n){return process.env.NODE_ENV!=="production"&&typeof n!="number"&&console.error("Material-UI: Expected spacing argument to be a number, got ".concat(n,".")),t*n}:Array.isArray(t)?function(n){return process.env.NODE_ENV!=="production"&&n>t.length-1&&console.error(["Material-UI: The value provided (".concat(n,") overflows."),"The supported values are: ".concat(JSON.stringify(t),"."),"".concat(n," > ").concat(t.length-1,", you need to add the missing values.")].join(`
|
|
2468
2468
|
`)),t[n]}:typeof t=="function"?t:(process.env.NODE_ENV!=="production"&&console.error(["Material-UI: The `theme.spacing` value (".concat(t,") is invalid."),"It should be a number, an array or a function."].join(`
|
|
2469
2469
|
`)),function(){})}process.env.NODE_ENV!=="production"&&rR.reduce(function(e,t){return e[t]=nR,e},{});var $E;function aR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(e.mui)return e;var t=oR({spacing:e}),n=function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return process.env.NODE_ENV!=="production"&&(a.length<=4||console.error("Material-UI: Too many arguments provided, expected between 0 and 4, got ".concat(a.length))),a.length===0?t(1):a.length===1?t(a[0]):a.map(function(l){if(typeof l=="string")return l;var s=t(l);return typeof s=="number"?"".concat(s,"px"):s}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return process.env.NODE_ENV!=="production"&&((!$E||process.env.NODE_ENV==="test")&&console.error(["Material-UI: theme.spacing.unit usage has been deprecated.","It will be removed in v5.","You can replace `theme.spacing.unit * y` with `theme.spacing(y)`.","","You can use the `https://github.com/mui-org/material-ui/tree/master/packages/material-ui-codemod/README.md#theme-spacing-api` migration helper to make the process smoother."].join(`
|
|
2470
2470
|
`)),$E=!0),e}}),n.mui=!0,n}var _E={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},xE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wE(e){return"".concat(Math.round(e),"ms")}const iR={easing:_E,duration:xE,create:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["all"],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.duration,o=r===void 0?xE.standard:r,a=n.easing,i=a===void 0?_E.easeInOut:a,l=n.delay,s=l===void 0?0:l,u=Nt(n,["duration","easing","delay"]);if(process.env.NODE_ENV!=="production"){var d=function(g){return typeof g=="string"},f=function(g){return!isNaN(parseFloat(g))};!d(t)&&!Array.isArray(t)&&console.error('Material-UI: Argument "props" must be a string or Array.'),!f(o)&&!d(o)&&console.error('Material-UI: Argument "duration" must be a number or a string but found '.concat(o,".")),d(i)||console.error('Material-UI: Argument "easing" must be a string.'),!f(s)&&!d(s)&&console.error('Material-UI: Argument "delay" must be a number or a string.'),Object.keys(u).length!==0&&console.error("Material-UI: Unrecognized argument(s) [".concat(Object.keys(u).join(","),"]."))}return(Array.isArray(t)?t:[t]).map(function(m){return"".concat(m," ").concat(typeof o=="string"?o:wE(o)," ").concat(i," ").concat(typeof s=="string"?s:wE(s))}).join(",")},getAutoHeightDuration:function(t){if(!t)return 0;var n=t/36;return Math.round((4+15*Math.pow(n,.25)+n/5)*10)}};var lR={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const sR=lR;function cR(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.breakpoints,n=t===void 0?{}:t,r=e.mixins,o=r===void 0?{}:r,a=e.palette,i=a===void 0?{}:a,l=e.spacing,s=e.typography,u=s===void 0?{}:s,d=Nt(e,["breakpoints","mixins","palette","spacing","typography"]),f=Wz(i),m=Az(n),g=aR(l),h=Qr({breakpoints:m,direction:"ltr",mixins:Iz(m,g,o),overrides:{},palette:f,props:{},shadows:Zz,typography:Gz(f,u),spacing:g,shape:eR,transitions:iR,zIndex:sR},d),b=arguments.length,v=new Array(b>1?b-1:0),_=1;_<b;_++)v[_-1]=arguments[_];if(h=v.reduce(function(S,P){return Qr(S,P)},h),process.env.NODE_ENV!=="production"){var y=["checked","disabled","error","focused","focusVisible","required","expanded","selected"],w=function S(P,T){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,$;for($ in P){var k=P[$];M===1?$.indexOf("Mui")===0&&k&&S(k,$,M+1):y.indexOf($)!==-1&&Object.keys(k).length>0&&(process.env.NODE_ENV!=="production"&&console.error(["Material-UI: The `".concat(T,"` component increases ")+"the CSS specificity of the `".concat($,"` internal state."),"You can not override it like this: ",JSON.stringify(P,null,2),"","Instead, you need to use the $ruleName syntax:",JSON.stringify({root:ur({},"&$".concat($),k)},null,2),"","https://mui.com/r/pseudo-classes-guide"].join(`
|
|
@@ -2732,7 +2732,7 @@ const theme2 = createTheme({ palette: {
|
|
|
2732
2732
|
- horizontal
|
|
2733
2733
|
- vertical
|
|
2734
2734
|
|
|
2735
|
-
Defaulting to \`${jf}\`.`}function IS(e){return xK.includes(e)}const EK=AS,OS="ToastProvider",[Uf,SK,DK]=Aa("Toast"),[MS,WV]=Ke("Toast",[DK]),[PK,ql]=MS(OS),FS=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:i}=e,[l,s]=c.useState(null),[u,d]=c.useState(0),f=c.useRef(!1),m=c.useRef(!1);return c.createElement(Uf.Provider,{scope:t},c.createElement(PK,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:a,toastCount:u,viewport:l,onViewportChange:s,onToastAdd:c.useCallback(()=>d(g=>g+1),[]),onToastRemove:c.useCallback(()=>d(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:m},i))};FS.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${OS}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const TK="ToastViewport",CK=["F8"],Wf="toast.viewportPause",Hf="toast.viewportResume",kK=c.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=CK,label:o="Notifications ({hotkey})",...a}=e,i=ql(TK,n),l=SK(n),s=c.useRef(null),u=c.useRef(null),d=c.useRef(null),f=c.useRef(null),m=ye(t,f,i.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),h=i.toastCount>0;c.useEffect(()=>{const v=_=>{var y;r.every(S=>_[S]||_.code===S)&&((y=f.current)===null||y===void 0||y.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),c.useEffect(()=>{const v=s.current,_=f.current;if(h&&v&&_){const y=()=>{if(!i.isClosePausedRef.current){const T=new CustomEvent(Wf);_.dispatchEvent(T),i.isClosePausedRef.current=!0}},w=()=>{if(i.isClosePausedRef.current){const T=new CustomEvent(Hf);_.dispatchEvent(T),i.isClosePausedRef.current=!1}},S=T=>{!v.contains(T.relatedTarget)&&w()},P=()=>{v.contains(document.activeElement)||w()};return v.addEventListener("focusin",y),v.addEventListener("focusout",S),v.addEventListener("pointermove",y),v.addEventListener("pointerleave",P),window.addEventListener("blur",y),window.addEventListener("focus",w),()=>{v.removeEventListener("focusin",y),v.removeEventListener("focusout",S),v.removeEventListener("pointermove",y),v.removeEventListener("pointerleave",P),window.removeEventListener("blur",y),window.removeEventListener("focus",w)}}},[h,i.isClosePausedRef]);const b=c.useCallback(({tabbingDirection:v})=>{const y=l().map(w=>{const S=w.ref.current,P=[S,...WK(S)];return v==="forwards"?P:P.reverse()});return(v==="forwards"?y.reverse():y).flat()},[l]);return c.useEffect(()=>{const v=f.current;if(v){const _=y=>{const w=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!w){const $=document.activeElement,k=y.shiftKey;if(y.target===v&&k){var P;(P=u.current)===null||P===void 0||P.focus();return}const R=b({tabbingDirection:k?"backwards":"forwards"}),O=R.findIndex(A=>A===$);if(Gf(R.slice(O+1)))y.preventDefault();else{var T,M;k?(T=u.current)===null||T===void 0||T.focus():(M=d.current)===null||M===void 0||M.focus()}}};return v.addEventListener("keydown",_),()=>v.removeEventListener("keydown",_)}},[l,b]),c.createElement(JD,{ref:s,role:"region","aria-label":o.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:h?void 0:"none"}},h&&c.createElement(LS,{ref:u,onFocusFromOutsideViewport:()=>{const v=b({tabbingDirection:"forwards"});Gf(v)}}),c.createElement(Uf.Slot,{scope:n},c.createElement(ce.ol,N({tabIndex:-1},a,{ref:m}))),h&&c.createElement(LS,{ref:d,onFocusFromOutsideViewport:()=>{const v=b({tabbingDirection:"backwards"});Gf(v)}}))}),AK="ToastFocusProxy",LS=c.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=ql(AK,n);return c.createElement(ls,N({"aria-hidden":!0,tabIndex:0},o,{ref:t,style:{position:"fixed"},onFocus:i=>{var l;const s=i.relatedTarget;!((l=a.viewport)!==null&&l!==void 0&&l.contains(s))&&r()}}))}),Xl="Toast",IK="toast.swipeStart",OK="toast.swipeMove",MK="toast.swipeCancel",FK="toast.swipeEnd",LK=c.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...i}=e,[l=!0,s]=Ue({prop:r,defaultProp:o,onChange:a});return c.createElement(We,{present:n||l},c.createElement(NS,N({open:l},i,{ref:t,onClose:()=>s(!1),onPause:je(e.onPause),onResume:je(e.onResume),onSwipeStart:Q(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Q(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Q(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Q(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),s(!1)})})))}),[NK,zK]=MS(Xl,{onClose(){}}),NS=c.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:a,onClose:i,onEscapeKeyDown:l,onPause:s,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:m,onSwipeEnd:g,...h}=e,b=ql(Xl,n),[v,_]=c.useState(null),y=ye(t,A=>_(A)),w=c.useRef(null),S=c.useRef(null),P=o||b.duration,T=c.useRef(0),M=c.useRef(P),$=c.useRef(0),{onToastAdd:k,onToastRemove:L}=b,x=je(()=>{var A;(v==null?void 0:v.contains(document.activeElement))&&((A=b.viewport)===null||A===void 0||A.focus()),i()}),R=c.useCallback(A=>{!A||A===1/0||(window.clearTimeout($.current),T.current=new Date().getTime(),$.current=window.setTimeout(x,A))},[x]);c.useEffect(()=>{const A=b.viewport;if(A){const V=()=>{R(M.current),u==null||u()},I=()=>{const J=new Date().getTime()-T.current;M.current=M.current-J,window.clearTimeout($.current),s==null||s()};return A.addEventListener(Wf,I),A.addEventListener(Hf,V),()=>{A.removeEventListener(Wf,I),A.removeEventListener(Hf,V)}}},[b.viewport,P,s,u,R]),c.useEffect(()=>{a&&!b.isClosePausedRef.current&&R(P)},[a,P,b.isClosePausedRef,R]),c.useEffect(()=>(k(),()=>L()),[k,L]);const O=c.useMemo(()=>v?VS(v):null,[v]);return b.viewport?c.createElement(c.Fragment,null,O&&c.createElement(RK,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0},O),c.createElement(NK,{scope:n,onClose:x},fo.createPortal(c.createElement(Uf.ItemSlot,{scope:n},c.createElement(XD,{asChild:!0,onEscapeKeyDown:Q(l,()=>{b.isFocusedToastEscapeKeyDownRef.current||x(),b.isFocusedToastEscapeKeyDownRef.current=!1})},c.createElement(ce.li,N({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":b.swipeDirection},h,{ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Q(e.onKeyDown,A=>{A.key==="Escape"&&(l==null||l(A.nativeEvent),A.nativeEvent.defaultPrevented||(b.isFocusedToastEscapeKeyDownRef.current=!0,x()))}),onPointerDown:Q(e.onPointerDown,A=>{A.button===0&&(w.current={x:A.clientX,y:A.clientY})}),onPointerMove:Q(e.onPointerMove,A=>{if(!w.current)return;const V=A.clientX-w.current.x,I=A.clientY-w.current.y,J=!!S.current,j=["left","right"].includes(b.swipeDirection),U=["left","up"].includes(b.swipeDirection)?Math.min:Math.max,F=j?U(0,V):0,B=j?0:U(0,I),Y=A.pointerType==="touch"?10:2,W={x:F,y:B},G={originalEvent:A,delta:W};J?(S.current=W,Jl(OK,f,G,{discrete:!1})):BS(W,b.swipeDirection,Y)?(S.current=W,Jl(IK,d,G,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(V)>Y||Math.abs(I)>Y)&&(w.current=null)}),onPointerUp:Q(e.onPointerUp,A=>{const V=S.current,I=A.target;if(I.hasPointerCapture(A.pointerId)&&I.releasePointerCapture(A.pointerId),S.current=null,w.current=null,V){const J=A.currentTarget,j={originalEvent:A,delta:V};BS(V,b.swipeDirection,b.swipeThreshold)?Jl(FK,g,j,{discrete:!0}):Jl(MK,m,j,{discrete:!0}),J.addEventListener("click",U=>U.preventDefault(),{once:!0})}})})))),b.viewport))):null});NS.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${Xl}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const RK=e=>{const{__scopeToast:t,children:n,...r}=e,o=ql(Xl,t),[a,i]=c.useState(!1),[l,s]=c.useState(!1);return jK(()=>i(!0)),c.useEffect(()=>{const u=window.setTimeout(()=>s(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:c.createElement(_o,{asChild:!0},c.createElement(ls,r,a&&c.createElement(c.Fragment,null,o.label," ",n)))},KK=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.createElement(ce.div,N({},r,{ref:t}))}),VK="ToastAction",zS=c.forwardRef((e,t)=>{const{altText:n,...r}=e;return n?c.createElement(KS,{altText:n,asChild:!0},c.createElement(RS,N({},r,{ref:t}))):null});zS.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${VK}\``)}};const BK="ToastClose",RS=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=zK(BK,n);return c.createElement(KS,{asChild:!0},c.createElement(ce.button,N({type:"button"},r,{ref:t,onClick:Q(e.onClick,o.onClose)})))}),KS=c.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return c.createElement(ce.div,N({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},o,{ref:t}))});function VS(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),UK(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...VS(r))}}),t}function Jl(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?is(o,a):o.dispatchEvent(a)}const BS=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return t==="left"||t==="right"?a&&r>n:!a&&o>n};function jK(e=()=>{}){const t=je(e);pn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function UK(e){return e.nodeType===e.ELEMENT_NODE}function WK(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 Gf(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}const HK=FS,GK=kK,YK=LK,qK=KK,XK=zS,JK=RS,Yf=25,ZK=ie.keyframes`
|
|
2735
|
+
Defaulting to \`${jf}\`.`}function IS(e){return xK.includes(e)}const EK=AS,OS="ToastProvider",[Uf,SK,DK]=Aa("Toast"),[MS,WV]=Ke("Toast",[DK]),[PK,ql]=MS(OS),FS=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:i}=e,[l,s]=c.useState(null),[u,d]=c.useState(0),f=c.useRef(!1),m=c.useRef(!1);return c.createElement(Uf.Provider,{scope:t},c.createElement(PK,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:a,toastCount:u,viewport:l,onViewportChange:s,onToastAdd:c.useCallback(()=>d(g=>g+1),[]),onToastRemove:c.useCallback(()=>d(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:m},i))};FS.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${OS}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const TK="ToastViewport",CK=["F8"],Wf="toast.viewportPause",Hf="toast.viewportResume",kK=c.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=CK,label:o="Notifications ({hotkey})",...a}=e,i=ql(TK,n),l=SK(n),s=c.useRef(null),u=c.useRef(null),d=c.useRef(null),f=c.useRef(null),m=ye(t,f,i.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),h=i.toastCount>0;c.useEffect(()=>{const v=_=>{var y;r.every(S=>_[S]||_.code===S)&&((y=f.current)===null||y===void 0||y.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),c.useEffect(()=>{const v=s.current,_=f.current;if(h&&v&&_){const y=()=>{if(!i.isClosePausedRef.current){const T=new CustomEvent(Wf);_.dispatchEvent(T),i.isClosePausedRef.current=!0}},w=()=>{if(i.isClosePausedRef.current){const T=new CustomEvent(Hf);_.dispatchEvent(T),i.isClosePausedRef.current=!1}},S=T=>{!v.contains(T.relatedTarget)&&w()},P=()=>{v.contains(document.activeElement)||w()};return v.addEventListener("focusin",y),v.addEventListener("focusout",S),v.addEventListener("pointermove",y),v.addEventListener("pointerleave",P),window.addEventListener("blur",y),window.addEventListener("focus",w),()=>{v.removeEventListener("focusin",y),v.removeEventListener("focusout",S),v.removeEventListener("pointermove",y),v.removeEventListener("pointerleave",P),window.removeEventListener("blur",y),window.removeEventListener("focus",w)}}},[h,i.isClosePausedRef]);const b=c.useCallback(({tabbingDirection:v})=>{const y=l().map(w=>{const S=w.ref.current,P=[S,...WK(S)];return v==="forwards"?P:P.reverse()});return(v==="forwards"?y.reverse():y).flat()},[l]);return c.useEffect(()=>{const v=f.current;if(v){const _=y=>{const w=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!w){const $=document.activeElement,k=y.shiftKey;if(y.target===v&&k){var P;(P=u.current)===null||P===void 0||P.focus();return}const R=b({tabbingDirection:k?"backwards":"forwards"}),O=R.findIndex(A=>A===$);if(Gf(R.slice(O+1)))y.preventDefault();else{var T,M;k?(T=u.current)===null||T===void 0||T.focus():(M=d.current)===null||M===void 0||M.focus()}}};return v.addEventListener("keydown",_),()=>v.removeEventListener("keydown",_)}},[l,b]),c.createElement(JD,{ref:s,role:"region","aria-label":o.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:h?void 0:"none"}},h&&c.createElement(LS,{ref:u,onFocusFromOutsideViewport:()=>{const v=b({tabbingDirection:"forwards"});Gf(v)}}),c.createElement(Uf.Slot,{scope:n},c.createElement(ce.ol,N({tabIndex:-1},a,{ref:m}))),h&&c.createElement(LS,{ref:d,onFocusFromOutsideViewport:()=>{const v=b({tabbingDirection:"backwards"});Gf(v)}}))}),AK="ToastFocusProxy",LS=c.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=ql(AK,n);return c.createElement(ls,N({"aria-hidden":!0,tabIndex:0},o,{ref:t,style:{position:"fixed"},onFocus:i=>{var l;const s=i.relatedTarget;!((l=a.viewport)!==null&&l!==void 0&&l.contains(s))&&r()}}))}),Xl="Toast",IK="toast.swipeStart",OK="toast.swipeMove",MK="toast.swipeCancel",FK="toast.swipeEnd",LK=c.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...i}=e,[l=!0,s]=Ue({prop:r,defaultProp:o,onChange:a});return c.createElement(We,{present:n||l},c.createElement(NS,N({open:l},i,{ref:t,onClose:()=>s(!1),onPause:je(e.onPause),onResume:je(e.onResume),onSwipeStart:Q(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Q(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Q(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Q(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),s(!1)})})))}),[NK,zK]=MS(Xl,{onClose(){}}),NS=c.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:a,onClose:i,onEscapeKeyDown:l,onPause:s,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:m,onSwipeEnd:g,...h}=e,b=ql(Xl,n),[v,_]=c.useState(null),y=ye(t,A=>_(A)),w=c.useRef(null),S=c.useRef(null),P=o||b.duration,T=c.useRef(0),M=c.useRef(P),$=c.useRef(0),{onToastAdd:k,onToastRemove:F}=b,x=je(()=>{var A;(v==null?void 0:v.contains(document.activeElement))&&((A=b.viewport)===null||A===void 0||A.focus()),i()}),R=c.useCallback(A=>{!A||A===1/0||(window.clearTimeout($.current),T.current=new Date().getTime(),$.current=window.setTimeout(x,A))},[x]);c.useEffect(()=>{const A=b.viewport;if(A){const V=()=>{R(M.current),u==null||u()},I=()=>{const J=new Date().getTime()-T.current;M.current=M.current-J,window.clearTimeout($.current),s==null||s()};return A.addEventListener(Wf,I),A.addEventListener(Hf,V),()=>{A.removeEventListener(Wf,I),A.removeEventListener(Hf,V)}}},[b.viewport,P,s,u,R]),c.useEffect(()=>{a&&!b.isClosePausedRef.current&&R(P)},[a,P,b.isClosePausedRef,R]),c.useEffect(()=>(k(),()=>F()),[k,F]);const O=c.useMemo(()=>v?VS(v):null,[v]);return b.viewport?c.createElement(c.Fragment,null,O&&c.createElement(RK,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0},O),c.createElement(NK,{scope:n,onClose:x},fo.createPortal(c.createElement(Uf.ItemSlot,{scope:n},c.createElement(XD,{asChild:!0,onEscapeKeyDown:Q(l,()=>{b.isFocusedToastEscapeKeyDownRef.current||x(),b.isFocusedToastEscapeKeyDownRef.current=!1})},c.createElement(ce.li,N({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":b.swipeDirection},h,{ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Q(e.onKeyDown,A=>{A.key==="Escape"&&(l==null||l(A.nativeEvent),A.nativeEvent.defaultPrevented||(b.isFocusedToastEscapeKeyDownRef.current=!0,x()))}),onPointerDown:Q(e.onPointerDown,A=>{A.button===0&&(w.current={x:A.clientX,y:A.clientY})}),onPointerMove:Q(e.onPointerMove,A=>{if(!w.current)return;const V=A.clientX-w.current.x,I=A.clientY-w.current.y,J=!!S.current,j=["left","right"].includes(b.swipeDirection),U=["left","up"].includes(b.swipeDirection)?Math.min:Math.max,L=j?U(0,V):0,B=j?0:U(0,I),Y=A.pointerType==="touch"?10:2,W={x:L,y:B},G={originalEvent:A,delta:W};J?(S.current=W,Jl(OK,f,G,{discrete:!1})):BS(W,b.swipeDirection,Y)?(S.current=W,Jl(IK,d,G,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(V)>Y||Math.abs(I)>Y)&&(w.current=null)}),onPointerUp:Q(e.onPointerUp,A=>{const V=S.current,I=A.target;if(I.hasPointerCapture(A.pointerId)&&I.releasePointerCapture(A.pointerId),S.current=null,w.current=null,V){const J=A.currentTarget,j={originalEvent:A,delta:V};BS(V,b.swipeDirection,b.swipeThreshold)?Jl(FK,g,j,{discrete:!0}):Jl(MK,m,j,{discrete:!0}),J.addEventListener("click",U=>U.preventDefault(),{once:!0})}})})))),b.viewport))):null});NS.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${Xl}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const RK=e=>{const{__scopeToast:t,children:n,...r}=e,o=ql(Xl,t),[a,i]=c.useState(!1),[l,s]=c.useState(!1);return jK(()=>i(!0)),c.useEffect(()=>{const u=window.setTimeout(()=>s(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:c.createElement(_o,{asChild:!0},c.createElement(ls,r,a&&c.createElement(c.Fragment,null,o.label," ",n)))},KK=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.createElement(ce.div,N({},r,{ref:t}))}),VK="ToastAction",zS=c.forwardRef((e,t)=>{const{altText:n,...r}=e;return n?c.createElement(KS,{altText:n,asChild:!0},c.createElement(RS,N({},r,{ref:t}))):null});zS.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${VK}\``)}};const BK="ToastClose",RS=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=zK(BK,n);return c.createElement(KS,{asChild:!0},c.createElement(ce.button,N({type:"button"},r,{ref:t,onClick:Q(e.onClick,o.onClose)})))}),KS=c.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return c.createElement(ce.div,N({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},o,{ref:t}))});function VS(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),UK(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...VS(r))}}),t}function Jl(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?is(o,a):o.dispatchEvent(a)}const BS=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return t==="left"||t==="right"?a&&r>n:!a&&o>n};function jK(e=()=>{}){const t=je(e);pn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function UK(e){return e.nodeType===e.ELEMENT_NODE}function WK(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 Gf(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}const HK=FS,GK=kK,YK=LK,qK=KK,XK=zS,JK=RS,Yf=25,ZK=ie.keyframes`
|
|
2736
2736
|
0% {
|
|
2737
2737
|
opacity: 1
|
|
2738
2738
|
}
|