@protonradio/proton-ui 0.6.17 → 0.6.18-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),_=require("./utils.cjs.js"),G=require("./index-Dcfu6hWE.js"),Mt=require("react-dom");var _n={exports:{}},xt={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),we=require("react-dom"),y=require("react-aria"),q=require("react-stately"),E=require("./utils-Cs9qWW9j.js"),Z=require("./constants.cjs.js"),ne=require("color2k"),k=require("./colors-BdogYmJi.js");var Ye={exports:{}},he={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Gr;function Hs(){if(Gr)return xt;Gr=1;var e=d,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(u,a,s){var c,f={},v=null,p=null;s!==void 0&&(v=""+s),a.key!==void 0&&(v=""+a.key),a.ref!==void 0&&(p=a.ref);for(c in a)r.call(a,c)&&!i.hasOwnProperty(c)&&(f[c]=a[c]);if(u&&u.defaultProps)for(c in a=u.defaultProps,a)f[c]===void 0&&(f[c]=a[c]);return{$$typeof:t,type:u,key:v,ref:p,props:f,_owner:l.current}}return xt.Fragment=n,xt.jsx=o,xt.jsxs=o,xt}var Et={};/**
9
+ */var Ct;function Wn(){if(Ct)return he;Ct=1;var t=i,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(u,d,p){var f,v={},h=null,m=null;p!==void 0&&(h=""+p),d.key!==void 0&&(h=""+d.key),d.ref!==void 0&&(m=d.ref);for(f in d)r.call(d,f)&&!s.hasOwnProperty(f)&&(v[f]=d[f]);if(u&&u.defaultProps)for(f in d=u.defaultProps,d)v[f]===void 0&&(v[f]=d[f]);return{$$typeof:e,type:u,key:h,ref:m,props:v,_owner:o.current}}return he.Fragment=n,he.jsx=l,he.jsxs=l,he}var ve={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,19 +14,34 @@
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 Yr;function Ws(){return Yr||(Yr=1,process.env.NODE_ENV!=="production"&&function(){var e=d,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),b=Symbol.iterator,x="@@iterator";function $(m){if(m===null||typeof m!="object")return null;var k=b&&m[b]||m[x];return typeof k=="function"?k:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function P(m){{for(var k=arguments.length,F=new Array(k>1?k-1:0),j=1;j<k;j++)F[j-1]=arguments[j];S("error",m,F)}}function S(m,k,F){{var j=C.ReactDebugCurrentFrame,U=j.getStackAddendum();U!==""&&(k+="%s",F=F.concat([U]));var Y=F.map(function(H){return String(H)});Y.unshift("Warning: "+k),Function.prototype.apply.call(console[m],console,Y)}}var A=!1,w=!1,B=!1,I=!1,h=!1,K;K=Symbol.for("react.module.reference");function y(m){return!!(typeof m=="string"||typeof m=="function"||m===r||m===i||h||m===l||m===s||m===c||I||m===p||A||w||B||typeof m=="object"&&m!==null&&(m.$$typeof===v||m.$$typeof===f||m.$$typeof===o||m.$$typeof===u||m.$$typeof===a||m.$$typeof===K||m.getModuleId!==void 0))}function D(m,k,F){var j=m.displayName;if(j)return j;var U=k.displayName||k.name||"";return U!==""?F+"("+U+")":F}function N(m){return m.displayName||"Context"}function E(m){if(m==null)return null;if(typeof m.tag=="number"&&P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case l:return"StrictMode";case s:return"Suspense";case c:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case u:var k=m;return N(k)+".Consumer";case o:var F=m;return N(F._context)+".Provider";case a:return D(m,m.render,"ForwardRef");case f:var j=m.displayName||null;return j!==null?j:E(m.type)||"Memo";case v:{var U=m,Y=U._payload,H=U._init;try{return E(H(Y))}catch{return null}}}return null}var R=Object.assign,T=0,z,M,W,ne,oe,Ce,he;function _e(){}_e.__reactDisabledLog=!0;function L(){{if(T===0){z=console.log,M=console.info,W=console.warn,ne=console.error,oe=console.group,Ce=console.groupCollapsed,he=console.groupEnd;var m={configurable:!0,enumerable:!0,value:_e,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}T++}}function xe(){{if(T--,T===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},m,{value:z}),info:R({},m,{value:M}),warn:R({},m,{value:W}),error:R({},m,{value:ne}),group:R({},m,{value:oe}),groupCollapsed:R({},m,{value:Ce}),groupEnd:R({},m,{value:he})})}T<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var me=C.ReactCurrentDispatcher,ze;function lt(m,k,F){{if(ze===void 0)try{throw Error()}catch(U){var j=U.stack.trim().match(/\n( *(at )?)/);ze=j&&j[1]||""}return`
18
- `+ze+m}}var it=!1,ot;{var J=typeof WeakMap=="function"?WeakMap:Map;ot=new J}function ut(m,k){if(!m||it)return"";{var F=ot.get(m);if(F!==void 0)return F}var j;it=!0;var U=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Y;Y=me.current,me.current=null,L();try{if(k){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(ce){j=ce}Reflect.construct(m,[],H)}else{try{H.call()}catch(ce){j=ce}m.call(H.prototype)}}else{try{throw Error()}catch(ce){j=ce}m()}}catch(ce){if(ce&&j&&typeof ce.stack=="string"){for(var V=ce.stack.split(`
19
- `),ae=j.stack.split(`
20
- `),Q=V.length-1,re=ae.length-1;Q>=1&&re>=0&&V[Q]!==ae[re];)re--;for(;Q>=1&&re>=0;Q--,re--)if(V[Q]!==ae[re]){if(Q!==1||re!==1)do if(Q--,re--,re<0||V[Q]!==ae[re]){var be=`
21
- `+V[Q].replace(" at new "," at ");return m.displayName&&be.includes("<anonymous>")&&(be=be.replace("<anonymous>",m.displayName)),typeof m=="function"&&ot.set(m,be),be}while(Q>=1&&re>=0);break}}}finally{it=!1,me.current=Y,xe(),Error.prepareStackTrace=U}var st=m?m.displayName||m.name:"",Xe=st?lt(st):"";return typeof m=="function"&&ot.set(m,Xe),Xe}function gn(m,k,F){return ut(m,!1)}function xs(m){var k=m.prototype;return!!(k&&k.isReactComponent)}function Lt(m,k,F){if(m==null)return"";if(typeof m=="function")return ut(m,xs(m));if(typeof m=="string")return lt(m);switch(m){case s:return lt("Suspense");case c:return lt("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case a:return gn(m.render);case f:return Lt(m.type,k,F);case v:{var j=m,U=j._payload,Y=j._init;try{return Lt(Y(U),k,F)}catch{}}}return""}var $t=Object.prototype.hasOwnProperty,Fr={},Ir=C.ReactDebugCurrentFrame;function _t(m){if(m){var k=m._owner,F=Lt(m.type,m._source,k?k.type:null);Ir.setExtraStackFrame(F)}else Ir.setExtraStackFrame(null)}function Es(m,k,F,j,U){{var Y=Function.call.bind($t);for(var H in m)if(Y(m,H)){var V=void 0;try{if(typeof m[H]!="function"){var ae=Error((j||"React class")+": "+F+" type `"+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[H]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ae.name="Invariant Violation",ae}V=m[H](k,H,j,F,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Q){V=Q}V&&!(V instanceof Error)&&(_t(U),P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",j||"React class",F,H,typeof V),_t(null)),V instanceof Error&&!(V.message in Fr)&&(Fr[V.message]=!0,_t(U),P("Failed %s type: %s",F,V.message),_t(null))}}}var Cs=Array.isArray;function $n(m){return Cs(m)}function Ss(m){{var k=typeof Symbol=="function"&&Symbol.toStringTag,F=k&&m[Symbol.toStringTag]||m.constructor.name||"Object";return F}}function Ps(m){try{return Rr(m),!1}catch{return!0}}function Rr(m){return""+m}function Nr(m){if(Ps(m))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ss(m)),Rr(m)}var yt=C.ReactCurrentOwner,ws={key:!0,ref:!0,__self:!0,__source:!0},Lr,_r,yn;yn={};function Ds(m){if($t.call(m,"ref")){var k=Object.getOwnPropertyDescriptor(m,"ref").get;if(k&&k.isReactWarning)return!1}return m.ref!==void 0}function Ts(m){if($t.call(m,"key")){var k=Object.getOwnPropertyDescriptor(m,"key").get;if(k&&k.isReactWarning)return!1}return m.key!==void 0}function Bs(m,k){if(typeof m.ref=="string"&&yt.current&&k&&yt.current.stateNode!==k){var F=E(yt.current.type);yn[F]||(P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',E(yt.current.type),m.ref),yn[F]=!0)}}function ks(m,k){{var F=function(){Lr||(Lr=!0,P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",k))};F.isReactWarning=!0,Object.defineProperty(m,"key",{get:F,configurable:!0})}}function As(m,k){{var F=function(){_r||(_r=!0,P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",k))};F.isReactWarning=!0,Object.defineProperty(m,"ref",{get:F,configurable:!0})}}var Ks=function(m,k,F,j,U,Y,H){var V={$$typeof:t,type:m,key:k,ref:F,props:H,_owner:Y};return V._store={},Object.defineProperty(V._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(V,"_self",{configurable:!1,enumerable:!1,writable:!1,value:j}),Object.defineProperty(V,"_source",{configurable:!1,enumerable:!1,writable:!1,value:U}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V};function Ms(m,k,F,j,U){{var Y,H={},V=null,ae=null;F!==void 0&&(Nr(F),V=""+F),Ts(k)&&(Nr(k.key),V=""+k.key),Ds(k)&&(ae=k.ref,Bs(k,U));for(Y in k)$t.call(k,Y)&&!ws.hasOwnProperty(Y)&&(H[Y]=k[Y]);if(m&&m.defaultProps){var Q=m.defaultProps;for(Y in Q)H[Y]===void 0&&(H[Y]=Q[Y])}if(V||ae){var re=typeof m=="function"?m.displayName||m.name||"Unknown":m;V&&ks(H,re),ae&&As(H,re)}return Ks(m,V,ae,U,j,yt.current,H)}}var xn=C.ReactCurrentOwner,zr=C.ReactDebugCurrentFrame;function at(m){if(m){var k=m._owner,F=Lt(m.type,m._source,k?k.type:null);zr.setExtraStackFrame(F)}else zr.setExtraStackFrame(null)}var En;En=!1;function Cn(m){return typeof m=="object"&&m!==null&&m.$$typeof===t}function jr(){{if(xn.current){var m=E(xn.current.type);if(m)return`
17
+ */var wt;function Kn(){return wt||(wt=1,process.env.NODE_ENV!=="production"&&function(){var t=i,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),x=Symbol.iterator,S="@@iterator";function _(a){if(a===null||typeof a!="object")return null;var b=x&&a[x]||a[S];return typeof b=="function"?b:null}var C=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(a){{for(var b=arguments.length,g=new Array(b>1?b-1:0),$=1;$<b;$++)g[$-1]=arguments[$];M("error",a,g)}}function M(a,b,g){{var $=C.ReactDebugCurrentFrame,N=$.getStackAddendum();N!==""&&(b+="%s",g=g.concat([N]));var A=g.map(function(T){return String(T)});A.unshift("Warning: "+b),Function.prototype.apply.call(console[a],console,A)}}var P=!1,O=!1,j=!1,W=!1,F=!1,V;V=Symbol.for("react.module.reference");function Q(a){return!!(typeof a=="string"||typeof a=="function"||a===r||a===s||F||a===o||a===p||a===f||W||a===m||P||O||j||typeof a=="object"&&a!==null&&(a.$$typeof===h||a.$$typeof===v||a.$$typeof===l||a.$$typeof===u||a.$$typeof===d||a.$$typeof===V||a.getModuleId!==void 0))}function ie(a,b,g){var $=a.displayName;if($)return $;var N=b.displayName||b.name||"";return N!==""?g+"("+N+")":g}function I(a){return a.displayName||"Context"}function B(a){if(a==null)return null;if(typeof a.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case o:return"StrictMode";case p:return"Suspense";case f:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case u:var b=a;return I(b)+".Consumer";case l:var g=a;return I(g._context)+".Provider";case d:return ie(a,a.render,"ForwardRef");case v:var $=a.displayName||null;return $!==null?$:B(a.type)||"Memo";case h:{var N=a,A=N._payload,T=N._init;try{return B(T(A))}catch{return null}}}return null}var J=Object.assign,L=0,K,G,Y,oe,ae,lt,ct;function ut(){}ut.__reactDisabledLog=!0;function vn(){{if(L===0){K=console.log,G=console.info,Y=console.warn,oe=console.error,ae=console.group,lt=console.groupCollapsed,ct=console.groupEnd;var a={configurable:!0,enumerable:!0,value:ut,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}L++}}function mn(){{if(L--,L===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J({},a,{value:K}),info:J({},a,{value:G}),warn:J({},a,{value:Y}),error:J({},a,{value:oe}),group:J({},a,{value:ae}),groupCollapsed:J({},a,{value:lt}),groupEnd:J({},a,{value:ct})})}L<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var je=C.ReactCurrentDispatcher,Ae;function ye(a,b,g){{if(Ae===void 0)try{throw Error()}catch(N){var $=N.stack.trim().match(/\n( *(at )?)/);Ae=$&&$[1]||""}return`
18
+ `+Ae+a}}var ke=!1,xe;{var bn=typeof WeakMap=="function"?WeakMap:Map;xe=new bn}function dt(a,b){if(!a||ke)return"";{var g=xe.get(a);if(g!==void 0)return g}var $;ke=!0;var N=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var A;A=je.current,je.current=null,vn();try{if(b){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(z){$=z}Reflect.construct(a,[],T)}else{try{T.call()}catch(z){$=z}a.call(T.prototype)}}else{try{throw Error()}catch(z){$=z}a()}}catch(z){if(z&&$&&typeof z.stack=="string"){for(var w=z.stack.split(`
19
+ `),U=$.stack.split(`
20
+ `),D=w.length-1,H=U.length-1;D>=1&&H>=0&&w[D]!==U[H];)H--;for(;D>=1&&H>=0;D--,H--)if(w[D]!==U[H]){if(D!==1||H!==1)do if(D--,H--,H<0||w[D]!==U[H]){var X=`
21
+ `+w[D].replace(" at new "," at ");return a.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",a.displayName)),typeof a=="function"&&xe.set(a,X),X}while(D>=1&&H>=0);break}}}finally{ke=!1,je.current=A,mn(),Error.prepareStackTrace=N}var ce=a?a.displayName||a.name:"",se=ce?ye(ce):"";return typeof a=="function"&&xe.set(a,se),se}function gn(a,b,g){return dt(a,!1)}function yn(a){var b=a.prototype;return!!(b&&b.isReactComponent)}function Se(a,b,g){if(a==null)return"";if(typeof a=="function")return dt(a,yn(a));if(typeof a=="string")return ye(a);switch(a){case p:return ye("Suspense");case f:return ye("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case d:return gn(a.render);case v:return Se(a.type,b,g);case h:{var $=a,N=$._payload,A=$._init;try{return Se(A(N),b,g)}catch{}}}return""}var fe=Object.prototype.hasOwnProperty,ft={},pt=C.ReactDebugCurrentFrame;function _e(a){if(a){var b=a._owner,g=Se(a.type,a._source,b?b.type:null);pt.setExtraStackFrame(g)}else pt.setExtraStackFrame(null)}function xn(a,b,g,$,N){{var A=Function.call.bind(fe);for(var T in a)if(A(a,T)){var w=void 0;try{if(typeof a[T]!="function"){var U=Error(($||"React class")+": "+g+" type `"+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[T]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw U.name="Invariant Violation",U}w=a[T](b,T,$,g,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(D){w=D}w&&!(w instanceof Error)&&(_e(N),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",$||"React class",g,T,typeof w),_e(null)),w instanceof Error&&!(w.message in ft)&&(ft[w.message]=!0,_e(N),R("Failed %s type: %s",g,w.message),_e(null))}}}var Sn=Array.isArray;function Ie(a){return Sn(a)}function _n(a){{var b=typeof Symbol=="function"&&Symbol.toStringTag,g=b&&a[Symbol.toStringTag]||a.constructor.name||"Object";return g}}function $n(a){try{return ht(a),!1}catch{return!0}}function ht(a){return""+a}function vt(a){if($n(a))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_n(a)),ht(a)}var pe=C.ReactCurrentOwner,En={key:!0,ref:!0,__self:!0,__source:!0},mt,bt,Oe;Oe={};function Cn(a){if(fe.call(a,"ref")){var b=Object.getOwnPropertyDescriptor(a,"ref").get;if(b&&b.isReactWarning)return!1}return a.ref!==void 0}function wn(a){if(fe.call(a,"key")){var b=Object.getOwnPropertyDescriptor(a,"key").get;if(b&&b.isReactWarning)return!1}return a.key!==void 0}function Rn(a,b){if(typeof a.ref=="string"&&pe.current&&b&&pe.current.stateNode!==b){var g=B(pe.current.type);Oe[g]||(R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',B(pe.current.type),a.ref),Oe[g]=!0)}}function Pn(a,b){{var g=function(){mt||(mt=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",b))};g.isReactWarning=!0,Object.defineProperty(a,"key",{get:g,configurable:!0})}}function Tn(a,b){{var g=function(){bt||(bt=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",b))};g.isReactWarning=!0,Object.defineProperty(a,"ref",{get:g,configurable:!0})}}var Mn=function(a,b,g,$,N,A,T){var w={$$typeof:e,type:a,key:b,ref:g,props:T,_owner:A};return w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(w,"_self",{configurable:!1,enumerable:!1,writable:!1,value:$}),Object.defineProperty(w,"_source",{configurable:!1,enumerable:!1,writable:!1,value:N}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w};function Nn(a,b,g,$,N){{var A,T={},w=null,U=null;g!==void 0&&(vt(g),w=""+g),wn(b)&&(vt(b.key),w=""+b.key),Cn(b)&&(U=b.ref,Rn(b,N));for(A in b)fe.call(b,A)&&!En.hasOwnProperty(A)&&(T[A]=b[A]);if(a&&a.defaultProps){var D=a.defaultProps;for(A in D)T[A]===void 0&&(T[A]=D[A])}if(w||U){var H=typeof a=="function"?a.displayName||a.name||"Unknown":a;w&&Pn(T,H),U&&Tn(T,H)}return Mn(a,w,U,N,$,pe.current,T)}}var Le=C.ReactCurrentOwner,gt=C.ReactDebugCurrentFrame;function le(a){if(a){var b=a._owner,g=Se(a.type,a._source,b?b.type:null);gt.setExtraStackFrame(g)}else gt.setExtraStackFrame(null)}var De;De=!1;function Be(a){return typeof a=="object"&&a!==null&&a.$$typeof===e}function yt(){{if(Le.current){var a=B(Le.current.type);if(a)return`
22
22
 
23
- Check the render method of \``+m+"`."}return""}}function Fs(m){return""}var Or={};function Is(m){{var k=jr();if(!k){var F=typeof m=="string"?m:m.displayName||m.name;F&&(k=`
23
+ Check the render method of \``+a+"`."}return""}}function jn(a){return""}var xt={};function An(a){{var b=yt();if(!b){var g=typeof a=="string"?a:a.displayName||a.name;g&&(b=`
24
24
 
25
- Check the top-level render call using <`+F+">.")}return k}}function Vr(m,k){{if(!m._store||m._store.validated||m.key!=null)return;m._store.validated=!0;var F=Is(k);if(Or[F])return;Or[F]=!0;var j="";m&&m._owner&&m._owner!==xn.current&&(j=" It was passed a child from "+E(m._owner.type)+"."),at(m),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',F,j),at(null)}}function Hr(m,k){{if(typeof m!="object")return;if($n(m))for(var F=0;F<m.length;F++){var j=m[F];Cn(j)&&Vr(j,k)}else if(Cn(m))m._store&&(m._store.validated=!0);else if(m){var U=$(m);if(typeof U=="function"&&U!==m.entries)for(var Y=U.call(m),H;!(H=Y.next()).done;)Cn(H.value)&&Vr(H.value,k)}}}function Rs(m){{var k=m.type;if(k==null||typeof k=="string")return;var F;if(typeof k=="function")F=k.propTypes;else if(typeof k=="object"&&(k.$$typeof===a||k.$$typeof===f))F=k.propTypes;else return;if(F){var j=E(k);Es(F,m.props,"prop",j,m)}else if(k.PropTypes!==void 0&&!En){En=!0;var U=E(k);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",U||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ns(m){{for(var k=Object.keys(m.props),F=0;F<k.length;F++){var j=k[F];if(j!=="children"&&j!=="key"){at(m),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",j),at(null);break}}m.ref!==null&&(at(m),P("Invalid attribute `ref` supplied to `React.Fragment`."),at(null))}}var Wr={};function Ur(m,k,F,j,U,Y){{var H=y(m);if(!H){var V="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(V+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ae=Fs();ae?V+=ae:V+=jr();var Q;m===null?Q="null":$n(m)?Q="array":m!==void 0&&m.$$typeof===t?(Q="<"+(E(m.type)||"Unknown")+" />",V=" Did you accidentally export a JSX literal instead of a component?"):Q=typeof m,P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Q,V)}var re=Ms(m,k,F,U,Y);if(re==null)return re;if(H){var be=k.children;if(be!==void 0)if(j)if($n(be)){for(var st=0;st<be.length;st++)Hr(be[st],m);Object.freeze&&Object.freeze(be)}else P("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 Hr(be,m)}if($t.call(k,"key")){var Xe=E(m),ce=Object.keys(k).filter(function(Vs){return Vs!=="key"}),Sn=ce.length>0?"{key: someKey, "+ce.join(": ..., ")+": ...}":"{key: someKey}";if(!Wr[Xe+Sn]){var Os=ce.length>0?"{"+ce.join(": ..., ")+": ...}":"{}";P(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+g+">.")}return b}}function St(a,b){{if(!a._store||a._store.validated||a.key!=null)return;a._store.validated=!0;var g=An(b);if(xt[g])return;xt[g]=!0;var $="";a&&a._owner&&a._owner!==Le.current&&($=" It was passed a child from "+B(a._owner.type)+"."),le(a),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',g,$),le(null)}}function _t(a,b){{if(typeof a!="object")return;if(Ie(a))for(var g=0;g<a.length;g++){var $=a[g];Be($)&&St($,b)}else if(Be(a))a._store&&(a._store.validated=!0);else if(a){var N=_(a);if(typeof N=="function"&&N!==a.entries)for(var A=N.call(a),T;!(T=A.next()).done;)Be(T.value)&&St(T.value,b)}}}function kn(a){{var b=a.type;if(b==null||typeof b=="string")return;var g;if(typeof b=="function")g=b.propTypes;else if(typeof b=="object"&&(b.$$typeof===d||b.$$typeof===v))g=b.propTypes;else return;if(g){var $=B(b);xn(g,a.props,"prop",$,a)}else if(b.PropTypes!==void 0&&!De){De=!0;var N=B(b);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",N||"Unknown")}typeof b.getDefaultProps=="function"&&!b.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function In(a){{for(var b=Object.keys(a.props),g=0;g<b.length;g++){var $=b[g];if($!=="children"&&$!=="key"){le(a),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",$),le(null);break}}a.ref!==null&&(le(a),R("Invalid attribute `ref` supplied to `React.Fragment`."),le(null))}}var $t={};function Et(a,b,g,$,N,A){{var T=Q(a);if(!T){var w="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(w+=" 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 U=jn();U?w+=U:w+=yt();var D;a===null?D="null":Ie(a)?D="array":a!==void 0&&a.$$typeof===e?(D="<"+(B(a.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):D=typeof a,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",D,w)}var H=Nn(a,b,g,N,A);if(H==null)return H;if(T){var X=b.children;if(X!==void 0)if($)if(Ie(X)){for(var ce=0;ce<X.length;ce++)_t(X[ce],a);Object.freeze&&Object.freeze(X)}else R("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 _t(X,a)}if(fe.call(b,"key")){var se=B(a),z=Object.keys(b).filter(function(Vn){return Vn!=="key"}),He=z.length>0?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}";if(!$t[se+He]){var Hn=z.length>0?"{"+z.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Sn,Xe,Os,Xe),Wr[Xe+Sn]=!0}}return m===r?Ns(re):Rs(re),re}}function Ls(m,k,F){return Ur(m,k,F,!0)}function _s(m,k,F){return Ur(m,k,F,!1)}var zs=_s,js=Ls;Et.Fragment=r,Et.jsx=zs,Et.jsxs=js}()),Et}process.env.NODE_ENV==="production"?_n.exports=Hs():_n.exports=Ws();var g=_n.exports;const _l=d.createContext(void 0),Re=()=>{const e=d.useContext(_l);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},Us={[G.THEMES.DARK]:"proton-ui__theme--dark",[G.THEMES.LIGHT]:"proton-ui__theme--light"},Gs=({theme:e,children:t,baseColor:n})=>{const r=d.useRef(null),l=Us[e],i=d.useMemo(()=>qs(n),[n]),o=d.useMemo(()=>Ys(n),[n]);return d.useEffect(()=>{if(r.current){r.current.className=l;const u=i[e];Object.entries(u).forEach(([a,s])=>{r.current.style.setProperty(a,s)})}},[e,l,n,i]),g.jsx(_l.Provider,{value:{theme:e,style:i[e],baseColor:n,themedRGBArray:o,className:l},children:g.jsx("div",{ref:r,children:t})})},zl=[83,82,83],qr=.98,jl=.394;function Ys(e){return e?_.darkenRGBColor(e,jl):zl}function qs(e){const t=e?_.arrayToRgbString(_.darkenRGBColor(e,jl),qr):_.arrayToRgbString(zl,qr);return{[G.THEMES.DARK]:{"--proton-control__background-color":t,"--proton-control__text-color":G.GRAYSCALE.WHITE,"--proton-control__border-color":G.GRAYSCALE.GRAY_DARK},[G.THEMES.LIGHT]:{"--proton-control__background-color":G.GRAYSCALE.WHITE,"--proton-control__text-color":G.GRAYSCALE.GRAY_DARK,"--proton-control__border-color":G.GRAYSCALE.GRAY_LIGHT}}}const Xs={primary:"primary",secondary:"secondary",transparent:"transparent",success:"success",warning:"warning",danger:"danger"},Zs=({variant:e,children:t,...n})=>{const{className:r}=Re();return g.jsx("div",{role:"status","aria-live":"polite","data-testid":n["data-testid"],className:_.csx("proton-Badge",e&&`proton-Badge--${e}`,r),children:t})},q=typeof document<"u"?d.useLayoutEffect:()=>{};function te(e){const t=d.useRef(null);return q(()=>{t.current=e},[e]),d.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function Js(e){let[t,n]=d.useState(e),r=d.useRef(null),l=te(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?l():n(o.value)});q(()=>{r.current&&l()});let i=te(o=>{r.current=o(t),l()});return[t,i]}const Yt={prefix:String(Math.round(Math.random()*1e10)),current:0},Ol=d.createContext(Yt),Qs=d.createContext(!1);let ec=!!(typeof window<"u"&&window.document&&window.document.createElement),Pn=new WeakMap;function tc(e=!1){let t=d.useContext(Ol),n=d.useRef(null);if(n.current===null&&!e){var r,l;let i=(l=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||l===void 0||(r=l.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let o=Pn.get(i);o==null?Pn.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==o.state&&(t.current=o.id,Pn.delete(i))}n.current=++t.current}return n.current}function nc(e){let t=d.useContext(Ol);t===Yt&&!ec&&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=tc(!!e),r=t===Yt&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function rc(e){let t=d.useId(),[n]=d.useState(Ft()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Yt.prefix}`;return e||`${r}-${t}`}const lc=typeof d.useId=="function"?rc:nc;function ic(){return!1}function oc(){return!0}function uc(e){return()=>{}}function Ft(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(uc,ic,oc):d.useContext(Qs)}let ac=!!(typeof window<"u"&&window.document&&window.document.createElement),Oe=new Map;function fe(e){let[t,n]=d.useState(e),r=d.useRef(null),l=lc(t),i=d.useCallback(o=>{r.current=o},[]);return ac&&(Oe.has(l)&&!Oe.get(l).includes(i)?Oe.set(l,[...Oe.get(l),i]):Oe.set(l,[i])),q(()=>{let o=l;return()=>{Oe.delete(o)}},[l]),d.useEffect(()=>{let o=r.current;o&&(r.current=null,n(o))}),l}function sc(e,t){if(e===t)return e;let n=Oe.get(e);if(n)return n.forEach(l=>l(t)),t;let r=Oe.get(t);return r?(r.forEach(l=>l(e)),e):t}function Ge(e=[]){let t=fe(),[n,r]=Js(t),l=d.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return q(l,[t,l,...e]),n}function we(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Z=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ye=e=>e&&"window"in e&&e.window===e?e:Z(e).defaultView||window;function Vl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(n=Vl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function cc(){for(var e,t,n=0,r="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=Vl(e))&&(r&&(r+=" "),r+=t);return r}function O(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let l in r){let i=t[l],o=r[l];typeof i=="function"&&typeof o=="function"&&l[0]==="o"&&l[1]==="n"&&l.charCodeAt(2)>=65&&l.charCodeAt(2)<=90?t[l]=we(i,o):(l==="className"||l==="UNSAFE_className")&&typeof i=="string"&&typeof o=="string"?t[l]=cc(i,o):l==="id"&&i&&o?t.id=sc(i,o):t[l]=o!==void 0?o:i}}return t}function dc(...e){return e.length===1&&e[0]?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const fc=new Set(["id"]),pc=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),vc=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),hc=/^(data-.*)$/;function pe(e,t={}){let{labelable:n,isLink:r,propNames:l}=t,i={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(fc.has(o)||n&&pc.has(o)||r&&vc.has(o)||l!=null&&l.has(o)||hc.test(o))&&(i[o]=e[o]);return i}function Ke(e){if(mc())e.focus({preventScroll:!0});else{let t=bc(e);e.focus(),gc(t)}}let zt=null;function mc(){if(zt==null){zt=!1;try{document.createElement("div").focus({get preventScroll(){return zt=!0,!0}})}catch{}}return zt}function bc(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 gc(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function on(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 ur(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 Ne(e){let t=null;return()=>(t==null&&(t=e()),t)}const Ye=Ne(function(){return ur(/^Mac/i)}),$c=Ne(function(){return ur(/^iPhone/i)}),Hl=Ne(function(){return ur(/^iPad/i)||Ye()&&navigator.maxTouchPoints>1}),un=Ne(function(){return $c()||Hl()}),yc=Ne(function(){return Ye()||un()}),ar=Ne(function(){return on(/AppleWebKit/i)&&!xc()}),xc=Ne(function(){return on(/Chrome/i)}),qt=Ne(function(){return on(/Android/i)}),Ec=Ne(function(){return on(/Firefox/i)}),Cc=d.createContext({isNative:!0,open:Pc,useHref:e=>e});function It(){return d.useContext(Cc)}function et(e,t,n=!0){var r,l;let{metaKey:i,ctrlKey:o,altKey:u,shiftKey:a}=t;Ec()&&(!((l=window.event)===null||l===void 0||(r=l.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Ye()?i=!0:o=!0);let s=ar()&&Ye()&&!Hl()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:o,altKey:u,shiftKey:a}):new MouseEvent("click",{metaKey:i,ctrlKey:o,altKey:u,shiftKey:a,bubbles:!0,cancelable:!0});et.isOpening=n,Ke(e),e.dispatchEvent(s),et.isOpening=!1}et.isOpening=!1;function Sc(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function Pc(e,t){Sc(e,n=>et(n,t))}function wc(e){let t=It();var n;const r=t.useHref((n=e.href)!==null&&n!==void 0?n:"");return{"data-href":e.href?r:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function Wl(e){let t=It();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let pt=new Map,zn=new Set;function Xr(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let l=pt.get(r.target);l||(l=new Set,pt.set(r.target,l),r.target.addEventListener("transitioncancel",n,{once:!0})),l.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let l=pt.get(r.target);if(l&&(l.delete(r.propertyName),l.size===0&&(r.target.removeEventListener("transitioncancel",n),pt.delete(r.target)),pt.size===0)){for(let i of zn)i();zn.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Xr():document.addEventListener("DOMContentLoaded",Xr));function Ul(e){requestAnimationFrame(()=>{pt.size===0?e():zn.add(e)})}function Gl(){let e=d.useRef(new Map),t=d.useCallback((l,i,o,u)=>{let a=u!=null&&u.once?(...s)=>{e.current.delete(o),o(...s)}:o;e.current.set(o,{type:i,eventTarget:l,fn:a,options:u}),l.addEventListener(i,o,u)},[]),n=d.useCallback((l,i,o,u)=>{var a;let s=((a=e.current.get(o))===null||a===void 0?void 0:a.fn)||o;l.removeEventListener(i,s,u),e.current.delete(o)},[]),r=d.useCallback(()=>{e.current.forEach((l,i)=>{n(l.eventTarget,l.type,i,l.options)})},[n]);return d.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Yl(e,t){let{id:n,"aria-label":r,"aria-labelledby":l}=e;return n=fe(n),l&&r?l=[...new Set([n,...l.trim().split(/\s+/)])].join(" "):l&&(l=l.trim().split(/\s+/).join(" ")),!r&&!l&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":l}}function ql(e){const t=d.useRef(null);return d.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function Xl(e,t){const n=d.useRef(!0),r=d.useRef(null);d.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),d.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((l,i)=>!Object.is(l,r[i])))&&e(),r.current=t},t)}function Dc(){return typeof window.ResizeObserver<"u"}function Zr(e){const{ref:t,box:n,onResize:r}=e;d.useEffect(()=>{let l=t==null?void 0:t.current;if(l)if(Dc()){const i=new window.ResizeObserver(o=>{o.length&&r()});return i.observe(l,{box:n}),()=>{l&&i.unobserve(l)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function Zl(e,t){q(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function kt(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 Ve(e,t){let n=e;for(kt(n,t)&&(n=n.parentElement);n&&!kt(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Tc(e,t){const n=[];for(;e&&e!==document.documentElement;)kt(e,t)&&n.push(e),e=e.parentElement;return n}let Bc=0;const wn=new Map;function an(e){let[t,n]=d.useState();return q(()=>{if(!e)return;let r=wn.get(e);if(r)n(r.element.id);else{let l=`react-aria-description-${Bc++}`;n(l);let i=document.createElement("div");i.id=l,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},wn.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),wn.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Jr(e,t,n,r){let l=te(n),i=n==null;d.useEffect(()=>{if(i||!e.current)return;let o=e.current;return o.addEventListener(t,l,r),()=>{o.removeEventListener(t,l,r)}},[e,t,r,i,l])}function Jl(e,t){let n=Qr(e,t,"left"),r=Qr(e,t,"top"),l=t.offsetWidth,i=t.offsetHeight,o=e.scrollLeft,u=e.scrollTop,{borderTopWidth:a,borderLeftWidth:s}=getComputedStyle(e),c=e.scrollLeft+parseInt(s,10),f=e.scrollTop+parseInt(a,10),v=c+e.clientWidth,p=f+e.clientHeight;n<=o?o=n-parseInt(s,10):n+l>v&&(o+=n+l-v),r<=f?u=r-parseInt(a,10):r+i>p&&(u+=r+i-p),e.scrollLeft=o,e.scrollTop=u}function Qr(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let l=0;for(;t.offsetParent&&(l+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){l-=e[r];break}t=t.offsetParent}return l}function He(e,t){if(document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let a=Tc(e);for(let s of a)Jl(s,e)}else{var n;let{left:a,top:s}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:f}=e.getBoundingClientRect();if(Math.abs(a-c)>1||Math.abs(s-f)>1){var r,l,i;t==null||(l=t.containingElement)===null||l===void 0||(r=l.scrollIntoView)===null||r===void 0||r.call(l,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function jn(e){return e.mozInputSource===0&&e.isTrusted?!0:qt()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function kc(e){return!qt()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function sn(e,t,n){let r=d.useRef(t),l=te(()=>{n&&n(r.current)});d.useEffect(()=>{var i;let o=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return o==null||o.addEventListener("reset",l),()=>{o==null||o.removeEventListener("reset",l)}},[e,l])}function qe(e,t,n){let[r,l]=d.useState(e||t),i=d.useRef(e!==void 0),o=e!==void 0;d.useEffect(()=>{let s=i.current;s!==o&&console.warn(`WARN: A component changed from ${s?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),i.current=o},[o]);let u=o?e:r,a=d.useCallback((s,...c)=>{let f=(v,...p)=>{n&&(Object.is(u,v)||n(v,...p)),o||(u=v)};typeof s=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),l((p,...b)=>{let x=s(o?u:p,...b);return f(x,...c),o?p:x})):(o||l(s),f(s,...c))},[o,u,n]);return[u,a]}function On(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}let ht="default",Vn="",Gt=new WeakMap;function el(e){if(un()){if(ht==="default"){const t=Z(e);Vn=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ht="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Gt.set(e,e.style.userSelect),e.style.userSelect="none")}function jt(e){if(un()){if(ht!=="disabled")return;ht="restoring",setTimeout(()=>{Ul(()=>{if(ht==="restoring"){const t=Z(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Vn||""),Vn="",ht="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Gt.has(e)){let t=Gt.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Gt.delete(e)}}const sr=d.createContext({register:()=>{}});sr.displayName="PressResponderContext";function Ac(e,t){return t.get?t.get.call(e):t.value}function Ql(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Kc(e,t){var n=Ql(e,t,"get");return Ac(e,n)}function Mc(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Fc(e,t,n){Mc(e,t),t.set(e,n)}function Ic(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 tl(e,t,n){var r=Ql(e,t,"set");return Ic(e,r,n),n}function Rc(e){let t=d.useContext(sr);if(t){let{register:n,...r}=t;e=O(r,e),n()}return Zl(t,e.ref),e}var Ot=new WeakMap;class Vt{continuePropagation(){tl(this,Ot,!1)}get shouldStopPropagation(){return Kc(this,Ot)}constructor(t,n,r,l){Fc(this,Ot,{writable:!0,value:void 0}),tl(this,Ot,!0);var i;let o=(i=l==null?void 0:l.target)!==null&&i!==void 0?i:r.currentTarget;const u=o==null?void 0:o.getBoundingClientRect();let a,s=0,c,f=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,f=r.clientY),u&&(c!=null&&f!=null?(a=c-u.left,s=f-u.top):(a=u.width/2,s=u.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=a,this.y=s}}const nl=Symbol("linkClicked");function Fe(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:l,onPressUp:i,isDisabled:o,isPressed:u,preventFocusOnPress:a,shouldCancelOnPointerExit:s,allowTextSelectionOnPress:c,ref:f,...v}=Rc(e),[p,b]=d.useState(!1),x=d.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:$,removeAllGlobalListeners:C}=Gl(),P=te((h,K)=>{let y=x.current;if(o||y.didFirePressStart)return!1;let D=!0;if(y.isTriggeringEvent=!0,r){let N=new Vt("pressstart",K,h);r(N),D=N.shouldStopPropagation}return n&&n(!0),y.isTriggeringEvent=!1,y.didFirePressStart=!0,b(!0),D}),S=te((h,K,y=!0)=>{let D=x.current;if(!D.didFirePressStart)return!1;D.ignoreClickAfterPress=!0,D.didFirePressStart=!1,D.isTriggeringEvent=!0;let N=!0;if(l){let E=new Vt("pressend",K,h);l(E),N=E.shouldStopPropagation}if(n&&n(!1),b(!1),t&&y&&!o){let E=new Vt("press",K,h);t(E),N&&(N=E.shouldStopPropagation)}return D.isTriggeringEvent=!1,N}),A=te((h,K)=>{let y=x.current;if(o)return!1;if(i){y.isTriggeringEvent=!0;let D=new Vt("pressup",K,h);return i(D),y.isTriggeringEvent=!1,D.shouldStopPropagation}return!0}),w=te(h=>{let K=x.current;K.isPressed&&K.target&&(K.isOverTarget&&K.pointerType!=null&&S(Te(K.target,h),K.pointerType,!1),K.isPressed=!1,K.isOverTarget=!1,K.activePointerId=null,K.pointerType=null,C(),c||jt(K.target))}),B=te(h=>{s&&w(h)}),I=d.useMemo(()=>{let h=x.current,K={onKeyDown(D){if(Dn(D.nativeEvent,D.currentTarget)&&D.currentTarget.contains(D.target)){var N;ll(D.target,D.key)&&D.preventDefault();let E=!0;if(!h.isPressed&&!D.repeat){h.target=D.currentTarget,h.isPressed=!0,E=P(D,"keyboard");let R=D.currentTarget,T=z=>{Dn(z,R)&&!z.repeat&&R.contains(z.target)&&h.target&&A(Te(h.target,z),"keyboard")};$(Z(D.currentTarget),"keyup",we(T,y),!0)}E&&D.stopPropagation(),D.metaKey&&Ye()&&((N=h.metaKeyEvents)===null||N===void 0||N.set(D.key,D.nativeEvent))}else D.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick(D){if(!(D&&!D.currentTarget.contains(D.target))&&D&&D.button===0&&!h.isTriggeringEvent&&!et.isOpening){let N=!0;if(o&&D.preventDefault(),!h.ignoreClickAfterPress&&!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||jn(D.nativeEvent))){!o&&!a&&Ke(D.currentTarget);let E=P(D,"virtual"),R=A(D,"virtual"),T=S(D,"virtual");N=E&&R&&T}h.ignoreEmulatedMouseEvents=!1,h.ignoreClickAfterPress=!1,N&&D.stopPropagation()}}},y=D=>{var N;if(h.isPressed&&h.target&&Dn(D,h.target)){var E;ll(D.target,D.key)&&D.preventDefault();let T=D.target;S(Te(h.target,D),"keyboard",h.target.contains(T)),C(),D.key!=="Enter"&&cr(h.target)&&h.target.contains(T)&&!D[nl]&&(D[nl]=!0,et(h.target,D,!1)),h.isPressed=!1,(E=h.metaKeyEvents)===null||E===void 0||E.delete(D.key)}else if(D.key==="Meta"&&(!((N=h.metaKeyEvents)===null||N===void 0)&&N.size)){var R;let T=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let z of T.values())(R=h.target)===null||R===void 0||R.dispatchEvent(new KeyboardEvent("keyup",z))}};if(typeof PointerEvent<"u"){K.onPointerDown=T=>{if(T.button!==0||!T.currentTarget.contains(T.target))return;if(kc(T.nativeEvent)){h.pointerType="virtual";return}Tn(T.currentTarget)&&T.preventDefault(),h.pointerType=T.pointerType;let z=!0;h.isPressed||(h.isPressed=!0,h.isOverTarget=!0,h.activePointerId=T.pointerId,h.target=T.currentTarget,!o&&!a&&Ke(T.currentTarget),c||el(h.target),z=P(T,h.pointerType),$(Z(T.currentTarget),"pointermove",D,!1),$(Z(T.currentTarget),"pointerup",N,!1),$(Z(T.currentTarget),"pointercancel",R,!1)),z&&T.stopPropagation()},K.onMouseDown=T=>{T.currentTarget.contains(T.target)&&T.button===0&&(Tn(T.currentTarget)&&T.preventDefault(),T.stopPropagation())},K.onPointerUp=T=>{!T.currentTarget.contains(T.target)||h.pointerType==="virtual"||T.button===0&&ct(T,T.currentTarget)&&A(T,h.pointerType||T.pointerType)};let D=T=>{T.pointerId===h.activePointerId&&(h.target&&ct(T,h.target)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,P(Te(h.target,T),h.pointerType)):h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,S(Te(h.target,T),h.pointerType,!1),B(T)))},N=T=>{T.pointerId===h.activePointerId&&h.isPressed&&T.button===0&&h.target&&(ct(T,h.target)&&h.pointerType!=null?S(Te(h.target,T),h.pointerType):h.isOverTarget&&h.pointerType!=null&&S(Te(h.target,T),h.pointerType,!1),h.isPressed=!1,h.isOverTarget=!1,h.activePointerId=null,h.pointerType=null,C(),c||jt(h.target),"ontouchend"in h.target&&T.pointerType!=="mouse"&&$(h.target,"touchend",E,{once:!0}))},E=T=>{ei(T.currentTarget)&&T.preventDefault()},R=T=>{w(T)};K.onDragStart=T=>{T.currentTarget.contains(T.target)&&w(T)}}else{K.onMouseDown=E=>{if(E.button!==0||!E.currentTarget.contains(E.target))return;if(Tn(E.currentTarget)&&E.preventDefault(),h.ignoreEmulatedMouseEvents){E.stopPropagation();return}h.isPressed=!0,h.isOverTarget=!0,h.target=E.currentTarget,h.pointerType=jn(E.nativeEvent)?"virtual":"mouse",!o&&!a&&Ke(E.currentTarget),P(E,h.pointerType)&&E.stopPropagation(),$(Z(E.currentTarget),"mouseup",D,!1)},K.onMouseEnter=E=>{if(!E.currentTarget.contains(E.target))return;let R=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,R=P(E,h.pointerType)),R&&E.stopPropagation()},K.onMouseLeave=E=>{if(!E.currentTarget.contains(E.target))return;let R=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,R=S(E,h.pointerType,!1),B(E)),R&&E.stopPropagation()},K.onMouseUp=E=>{E.currentTarget.contains(E.target)&&!h.ignoreEmulatedMouseEvents&&E.button===0&&A(E,h.pointerType||"mouse")};let D=E=>{if(E.button===0){if(h.isPressed=!1,C(),h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&ct(E,h.target)&&h.pointerType!=null?S(Te(h.target,E),h.pointerType):h.target&&h.isOverTarget&&h.pointerType!=null&&S(Te(h.target,E),h.pointerType,!1),h.isOverTarget=!1}};K.onTouchStart=E=>{if(!E.currentTarget.contains(E.target))return;let R=Nc(E.nativeEvent);if(!R)return;h.activePointerId=R.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,h.target=E.currentTarget,h.pointerType="touch",!o&&!a&&Ke(E.currentTarget),c||el(h.target),P(je(h.target,E),h.pointerType)&&E.stopPropagation(),$(ye(E.currentTarget),"scroll",N,!0)},K.onTouchMove=E=>{if(!E.currentTarget.contains(E.target))return;if(!h.isPressed){E.stopPropagation();return}let R=rl(E.nativeEvent,h.activePointerId),T=!0;R&&ct(R,E.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,T=P(je(h.target,E),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,T=S(je(h.target,E),h.pointerType,!1),B(je(h.target,E))),T&&E.stopPropagation()},K.onTouchEnd=E=>{if(!E.currentTarget.contains(E.target))return;if(!h.isPressed){E.stopPropagation();return}let R=rl(E.nativeEvent,h.activePointerId),T=!0;R&&ct(R,E.currentTarget)&&h.pointerType!=null?(A(je(h.target,E),h.pointerType),T=S(je(h.target,E),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(T=S(je(h.target,E),h.pointerType,!1)),T&&E.stopPropagation(),h.isPressed=!1,h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!c&&jt(h.target),C()},K.onTouchCancel=E=>{E.currentTarget.contains(E.target)&&(E.stopPropagation(),h.isPressed&&w(je(h.target,E)))};let N=E=>{h.isPressed&&E.target.contains(h.target)&&w({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};K.onDragStart=E=>{E.currentTarget.contains(E.target)&&w(E)}}return K},[$,o,a,C,c,w,B,S,P,A]);return d.useEffect(()=>()=>{var h;c||jt((h=x.current.target)!==null&&h!==void 0?h:void 0)},[c]),{isPressed:u||p,pressProps:O(v,I)}}function cr(e){return e.tagName==="A"&&e.hasAttribute("href")}function Dn(e,t){const{key:n,code:r}=e,l=t,i=l.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(l instanceof ye(l).HTMLInputElement&&!ti(l,n)||l instanceof ye(l).HTMLTextAreaElement||l.isContentEditable)&&!((i==="link"||!i&&cr(l))&&n!=="Enter")}function Nc(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function rl(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const l=n[r];if(l.identifier===t)return l}return null}function je(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 Te(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 Lc(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 _c(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function ct(e,t){let n=t.getBoundingClientRect(),r=Lc(e);return _c(n,r)}function Tn(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function ei(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!cr(e)}function ll(e,t){return e instanceof HTMLInputElement?!ti(e,t):ei(e)}const zc=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ti(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":zc.has(e.type)}function jc({children:e}){let t=d.useMemo(()=>({register:()=>{}}),[]);return d.createElement(sr.Provider,{value:t},e)}class Oc{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 ni(e){let t=d.useRef({isFocused:!1,observer:null});q(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=te(r=>{e==null||e(r)});return d.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let l=r.target,i=o=>{t.current.isFocused=!1,l.disabled&&n(new Oc("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};l.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&l.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let u=l===document.activeElement?null:document.activeElement;l.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),l.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(l,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function cn(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:l}=e;const i=d.useCallback(a=>{if(a.target===a.currentTarget)return r&&r(a),l&&l(!1),!0},[r,l]),o=ni(i),u=d.useCallback(a=>{const s=Z(a.target);a.target===a.currentTarget&&s.activeElement===a.target&&(n&&n(a),l&&l(!0),o(a))},[l,n,o]);return{focusProps:{onFocus:!t&&(n||l||r)?u:void 0,onBlur:!t&&(r||l)?i:void 0}}}let Ie=null,At=new Set,Bt=new Map,tt=!1,Hn=!1;const Vc={Tab:!0,Escape:!0};function dn(e,t){for(let n of At)n(e,t)}function Hc(e){return!(e.metaKey||!Ye()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Xt(e){tt=!0,Hc(e)&&(Ie="keyboard",dn("keyboard",e))}function $e(e){Ie="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(tt=!0,dn("pointer",e))}function ri(e){jn(e)&&(tt=!0,Ie="virtual")}function li(e){e.target===window||e.target===document||(!tt&&!Hn&&(Ie="virtual",dn("virtual",e)),tt=!1,Hn=!1)}function ii(){tt=!1,Hn=!0}function Zt(e){if(typeof window>"u"||Bt.get(ye(e)))return;const t=ye(e),n=Z(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){tt=!0,r.apply(this,arguments)},n.addEventListener("keydown",Xt,!0),n.addEventListener("keyup",Xt,!0),n.addEventListener("click",ri,!0),t.addEventListener("focus",li,!0),t.addEventListener("blur",ii,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",$e,!0),n.addEventListener("pointermove",$e,!0),n.addEventListener("pointerup",$e,!0)):(n.addEventListener("mousedown",$e,!0),n.addEventListener("mousemove",$e,!0),n.addEventListener("mouseup",$e,!0)),t.addEventListener("beforeunload",()=>{oi(e)},{once:!0}),Bt.set(t,{focus:r})}const oi=(e,t)=>{const n=ye(e),r=Z(e);t&&r.removeEventListener("DOMContentLoaded",t),Bt.has(n)&&(n.HTMLElement.prototype.focus=Bt.get(n).focus,r.removeEventListener("keydown",Xt,!0),r.removeEventListener("keyup",Xt,!0),r.removeEventListener("click",ri,!0),n.removeEventListener("focus",li,!0),n.removeEventListener("blur",ii,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",$e,!0),r.removeEventListener("pointermove",$e,!0),r.removeEventListener("pointerup",$e,!0)):(r.removeEventListener("mousedown",$e,!0),r.removeEventListener("mousemove",$e,!0),r.removeEventListener("mouseup",$e,!0)),Bt.delete(n))};function Wc(e){const t=Z(e);let n;return t.readyState!=="loading"?Zt(e):(n=()=>{Zt(e)},t.addEventListener("DOMContentLoaded",n)),()=>oi(e,n)}typeof document<"u"&&Wc();function nt(){return Ie!=="pointer"}function Jt(){return Ie}function ui(e){Ie=e,dn(e,null)}function ai(){Zt();let[e,t]=d.useState(Ie);return d.useEffect(()=>{let n=()=>{t(Ie)};return At.add(n),()=>{At.delete(n)}},[]),Ft()?null:e}const Uc=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Gc(e,t,n){var r;const l=typeof window<"u"?ye(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?ye(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?ye(n==null?void 0:n.target).HTMLElement:HTMLElement,u=typeof window<"u"?ye(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof l&&!Uc.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof i||(n==null?void 0:n.target)instanceof o&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof u&&!Vc[n.key])}function Yc(e,t,n){Zt(),d.useEffect(()=>{let r=(l,i)=>{Gc(!!(n!=null&&n.isTextInput),l,i)&&e(nt())};return At.add(r),()=>{At.delete(r)}},t)}function Rt(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:l}=e,i=d.useRef({isFocusWithin:!1}),o=d.useCallback(s=>{i.current.isFocusWithin&&!s.currentTarget.contains(s.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(s),l&&l(!1))},[n,l,i]),u=ni(o),a=d.useCallback(s=>{!i.current.isFocusWithin&&document.activeElement===s.target&&(r&&r(s),l&&l(!0),i.current.isFocusWithin=!0,u(s))},[r,l,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:a,onBlur:o}}}let Qt=!1,Bn=0;function Wn(){Qt=!0,setTimeout(()=>{Qt=!1},50)}function il(e){e.pointerType==="touch"&&Wn()}function qc(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",il):document.addEventListener("touchend",Wn),Bn++,()=>{Bn--,!(Bn>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",il):document.removeEventListener("touchend",Wn))}}function Nt(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:l}=e,[i,o]=d.useState(!1),u=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(qc,[]);let{hoverProps:a,triggerHoverEnd:s}=d.useMemo(()=>{let c=(p,b)=>{if(u.pointerType=b,l||b==="touch"||u.isHovered||!p.currentTarget.contains(p.target))return;u.isHovered=!0;let x=p.currentTarget;u.target=x,t&&t({type:"hoverstart",target:x,pointerType:b}),n&&n(!0),o(!0)},f=(p,b)=>{if(u.pointerType="",u.target=null,b==="touch"||!u.isHovered)return;u.isHovered=!1;let x=p.currentTarget;r&&r({type:"hoverend",target:x,pointerType:b}),n&&n(!1),o(!1)},v={};return typeof PointerEvent<"u"?(v.onPointerEnter=p=>{Qt&&p.pointerType==="mouse"||c(p,p.pointerType)},v.onPointerLeave=p=>{!l&&p.currentTarget.contains(p.target)&&f(p,p.pointerType)}):(v.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},v.onMouseEnter=p=>{!u.ignoreEmulatedMouseEvents&&!Qt&&c(p,"mouse"),u.ignoreEmulatedMouseEvents=!1},v.onMouseLeave=p=>{!l&&p.currentTarget.contains(p.target)&&f(p,"mouse")}),{hoverProps:v,triggerHoverEnd:f}},[t,n,r,l,u]);return d.useEffect(()=>{l&&s({currentTarget:u.target},u.pointerType)},[l]),{hoverProps:a,isHovered:i}}function Xc(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:l}=e,i=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=te(a=>{n&&Ht(a,t)&&(l&&l(a),i.current.isPointerDown=!0)}),u=te(a=>{n&&n(a)});d.useEffect(()=>{let a=i.current;if(r)return;const s=t.current,c=Z(s);if(typeof PointerEvent<"u"){let f=v=>{a.isPointerDown&&Ht(v,t)&&u(v),a.isPointerDown=!1};return c.addEventListener("pointerdown",o,!0),c.addEventListener("pointerup",f,!0),()=>{c.removeEventListener("pointerdown",o,!0),c.removeEventListener("pointerup",f,!0)}}else{let f=p=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&Ht(p,t)&&u(p),a.isPointerDown=!1},v=p=>{a.ignoreEmulatedMouseEvents=!0,a.isPointerDown&&Ht(p,t)&&u(p),a.isPointerDown=!1};return c.addEventListener("mousedown",o,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",o,!0),c.addEventListener("touchend",v,!0),()=>{c.removeEventListener("mousedown",o,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",o,!0),c.removeEventListener("touchend",v,!0)}}},[t,r,o,u])}function Ht(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 ol(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 si(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ol(e.onKeyDown),onKeyUp:ol(e.onKeyUp)}}}const Zc=500;function ci(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:l,threshold:i=Zc,accessibilityDescription:o}=e;const u=d.useRef(void 0);let{addGlobalListener:a,removeGlobalListener:s}=Gl(),{pressProps:c}=Fe({isDisabled:t,onPressStart(v){if(v.continuePropagation(),(v.pointerType==="mouse"||v.pointerType==="touch")&&(n&&n({...v,type:"longpressstart"}),u.current=setTimeout(()=>{v.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),l&&l({...v,type:"longpress"}),u.current=void 0},i),v.pointerType==="touch")){let p=b=>{b.preventDefault()};a(v.target,"contextmenu",p,{once:!0}),a(window,"pointerup",()=>{setTimeout(()=>{s(v.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(v){u.current&&clearTimeout(u.current),r&&(v.pointerType==="mouse"||v.pointerType==="touch")&&r({...v,type:"longpressend"})}}),f=an(l&&!t?o:void 0);return{longPressProps:O(c,f)}}function se(e){const t=Z(e);if(Jt()==="virtual"){let n=t.activeElement;Ul(()=>{t.activeElement===n&&e.isConnected&&Ke(e)})}else Ke(e)}function Jc(e){const t=ye(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,l=n!=="none"&&r!=="hidden"&&r!=="collapse";if(l){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:o,visibility:u}=i(e);l=o!=="none"&&u!=="hidden"&&u!=="collapse"}return l}function Qc(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function di(e,t){return e.nodeName!=="#comment"&&Jc(e)&&Qc(e,t)&&(!e.parentElement||di(e.parentElement,e))}const ul=d.createContext(null),Un="react-aria-focus-scope-restore";let X=null;function dr(e){let{children:t,contain:n,restoreFocus:r,autoFocus:l}=e,i=d.useRef(null),o=d.useRef(null),u=d.useRef([]),{parentNode:a}=d.useContext(ul)||{},s=d.useMemo(()=>new Yn({scopeRef:u}),[u]);q(()=>{let v=a||ie.root;if(ie.getTreeNode(v.scopeRef)&&X&&!tn(X,v.scopeRef)){let p=ie.getTreeNode(X);p&&(v=p)}v.addChild(s),ie.addNode(s)},[s,a]),q(()=>{let v=ie.getTreeNode(u);v&&(v.contain=!!n)},[n]),q(()=>{var v;let p=(v=i.current)===null||v===void 0?void 0:v.nextSibling,b=[],x=$=>$.stopPropagation();for(;p&&p!==o.current;)b.push(p),p.addEventListener(Un,x),p=p.nextSibling;return u.current=b,()=>{for(let $ of b)$.removeEventListener(Un,x)}},[t]),od(u,r,n),rd(u,n),ad(u,r,n),id(u,l),d.useEffect(()=>{const v=Z(u.current?u.current[0]:void 0).activeElement;let p=null;if(ue(v,u.current)){for(let b of ie.traverse())b.scopeRef&&ue(v,b.scopeRef.current)&&(p=b);p===ie.getTreeNode(u)&&(X=p.scopeRef)}},[u]),q(()=>()=>{var v,p,b;let x=(b=(p=ie.getTreeNode(u))===null||p===void 0||(v=p.parent)===null||v===void 0?void 0:v.scopeRef)!==null&&b!==void 0?b:null;(u===X||tn(u,X))&&(!x||ie.getTreeNode(x))&&(X=x),ie.removeTreeNode(u)},[u]);let c=d.useMemo(()=>ed(u),[]),f=d.useMemo(()=>({focusManager:c,parentNode:s}),[s,c]);return d.createElement(ul.Provider,{value:f},d.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,d.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function ed(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:l,wrap:i,accept:o}=t,u=r||Z(n[0]).activeElement,a=n[0].previousElementSibling,s=Qe(n),c=ve(s,{tabbable:l,accept:o},n);c.currentNode=ue(u,n)?u:a;let f=c.nextNode();return!f&&i&&(c.currentNode=a,f=c.nextNode()),f&&Me(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:l,wrap:i,accept:o}=t,u=r||Z(n[0]).activeElement,a=n[n.length-1].nextElementSibling,s=Qe(n),c=ve(s,{tabbable:l,accept:o},n);c.currentNode=ue(u,n)?u:a;let f=c.previousNode();return!f&&i&&(c.currentNode=a,f=c.previousNode()),f&&Me(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:l}=t,i=Qe(n),o=ve(i,{tabbable:r,accept:l},n);o.currentNode=n[0].previousElementSibling;let u=o.nextNode();return u&&Me(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:r,accept:l}=t,i=Qe(n),o=ve(i,{tabbable:r,accept:l},n);o.currentNode=n[n.length-1].nextElementSibling;let u=o.previousNode();return u&&Me(u,!0),u}}}const fr=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],td=fr.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";fr.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const nd=fr.join(':not([hidden]):not([tabindex="-1"]),');function Qe(e){return e[0].parentElement}function Dt(e){let t=ie.getTreeNode(X);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function rd(e,t){let n=d.useRef(void 0),r=d.useRef(void 0);q(()=>{let l=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=Z(l?l[0]:void 0);let o=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!Dt(e)||s.isComposing)return;let c=i.activeElement,f=e.current;if(!f||!ue(c,f))return;let v=Qe(f),p=ve(v,{tabbable:!0},f);if(!c)return;p.currentNode=c;let b=s.shiftKey?p.previousNode():p.nextNode();b||(p.currentNode=s.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=s.shiftKey?p.previousNode():p.nextNode()),s.preventDefault(),b&&Me(b,!0)},u=s=>{(!X||tn(X,e))&&ue(s.target,e.current)?(X=e,n.current=s.target):Dt(e)&&!en(s.target,e)?n.current?n.current.focus():X&&X.current&&Gn(X.current):Dt(e)&&(n.current=s.target)},a=s=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(i.activeElement&&Dt(e)&&!en(i.activeElement,e))if(X=e,i.body.contains(s.target)){var c;n.current=s.target,(c=n.current)===null||c===void 0||c.focus()}else X.current&&Gn(X.current)})};return i.addEventListener("keydown",o,!1),i.addEventListener("focusin",u,!1),l==null||l.forEach(s=>s.addEventListener("focusin",u,!1)),l==null||l.forEach(s=>s.addEventListener("focusout",a,!1)),()=>{i.removeEventListener("keydown",o,!1),i.removeEventListener("focusin",u,!1),l==null||l.forEach(s=>s.removeEventListener("focusin",u,!1)),l==null||l.forEach(s=>s.removeEventListener("focusout",a,!1))}},[e,t]),q(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function fi(e){return en(e)}function ue(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function en(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of ie.traverse(ie.getTreeNode(t)))if(n&&ue(e,n.current))return!0;return!1}function ld(e){return en(e,X)}function tn(e,t){var n;let r=(n=ie.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Me(e,t=!1){if(e!=null&&!t)try{se(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function pi(e,t=!0){let n=e[0].previousElementSibling,r=Qe(e),l=ve(r,{tabbable:t},e);l.currentNode=n;let i=l.nextNode();return t&&!i&&(r=Qe(e),l=ve(r,{tabbable:!1},e),l.currentNode=n,i=l.nextNode()),i}function Gn(e,t=!0){Me(pi(e,t))}function id(e,t){const n=d.useRef(t);d.useEffect(()=>{if(n.current){X=e;const r=Z(e.current?e.current[0]:void 0);!ue(r.activeElement,X.current)&&e.current&&Gn(e.current)}n.current=!1},[e])}function od(e,t,n){q(()=>{if(t||n)return;let r=e.current;const l=Z(r?r[0]:void 0);let i=o=>{let u=o.target;ue(u,e.current)?X=e:fi(u)||(X=null)};return l.addEventListener("focusin",i,!1),r==null||r.forEach(o=>o.addEventListener("focusin",i,!1)),()=>{l.removeEventListener("focusin",i,!1),r==null||r.forEach(o=>o.removeEventListener("focusin",i,!1))}},[e,t,n])}function ud(e){let t=ie.getTreeNode(X);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function ad(e,t,n){const r=d.useRef(typeof document<"u"?Z(e.current?e.current[0]:void 0).activeElement:null);q(()=>{let l=e.current;const i=Z(l?l[0]:void 0);if(!t||n)return;let o=()=>{(!X||tn(X,e))&&ue(i.activeElement,e.current)&&(X=e)};return i.addEventListener("focusin",o,!1),l==null||l.forEach(u=>u.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),l==null||l.forEach(u=>u.removeEventListener("focusin",o,!1))}},[e,n]),q(()=>{const l=Z(e.current?e.current[0]:void 0);if(!t)return;let i=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!Dt(e)||o.isComposing)return;let u=l.activeElement;if(!ue(u,e.current))return;let a=ie.getTreeNode(e);if(!a)return;let s=a.nodeToRestore,c=ve(l.body,{tabbable:!0});c.currentNode=u;let f=o.shiftKey?c.previousNode():c.nextNode();if((!s||!l.body.contains(s)||s===l.body)&&(s=void 0,a.nodeToRestore=void 0),(!f||!ue(f,e.current))&&s){c.currentNode=s;do f=o.shiftKey?c.previousNode():c.nextNode();while(ue(f,e.current));o.preventDefault(),o.stopPropagation(),f?Me(f,!0):fi(s)?Me(s,!0):u.blur()}};return n||l.addEventListener("keydown",i,!0),()=>{n||l.removeEventListener("keydown",i,!0)}},[e,t,n]),q(()=>{const l=Z(e.current?e.current[0]:void 0);if(!t)return;let i=ie.getTreeNode(e);if(i){var o;return i.nodeToRestore=(o=r.current)!==null&&o!==void 0?o:void 0,()=>{let u=ie.getTreeNode(e);if(!u)return;let a=u.nodeToRestore;if(t&&a&&(ue(l.activeElement,e.current)||l.activeElement===l.body&&ud(e))){let s=ie.clone();requestAnimationFrame(()=>{if(l.activeElement===l.body){let c=s.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){al(c.nodeToRestore);return}c=c.parent}for(c=s.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&ie.getTreeNode(c.scopeRef)){let f=pi(c.scopeRef.current,!0);al(f);return}c=c.parent}}})}}}},[e,t])}function al(e){e.dispatchEvent(new CustomEvent(Un,{bubbles:!0,cancelable:!0}))&&Me(e)}function ve(e,t,n){let r=t!=null&&t.tabbable?nd:td,l=Z(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var o;return!(t==null||(o=t.from)===null||o===void 0)&&o.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&di(i)&&(!n||ue(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(l.currentNode=t.from),l}class pr{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let l=this.fastMap.get(n??null);if(!l)return;let i=new Yn({scopeRef:t});l.addChild(i),i.parent=l,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ue(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let l=n.children;r&&(r.removeChild(n),l.size>0&&l.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new pr;var r;for(let l of this.traverse())n.addTreeNode(l.scopeRef,(r=(t=l.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,l.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Yn({scopeRef:null}),this.fastMap.set(null,this.root)}}class Yn{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let ie=new pr;function fn(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,l=d.useRef({isFocused:!1,isFocusVisible:t||nt()}),[i,o]=d.useState(!1),[u,a]=d.useState(()=>l.current.isFocused&&l.current.isFocusVisible),s=d.useCallback(()=>a(l.current.isFocused&&l.current.isFocusVisible),[]),c=d.useCallback(p=>{l.current.isFocused=p,o(p),s()},[s]);Yc(p=>{l.current.isFocusVisible=p,s()},[],{isTextInput:n});let{focusProps:f}=cn({isDisabled:r,onFocusChange:c}),{focusWithinProps:v}=Rt({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:u,focusProps:r?v:f}}let vi=d.createContext(null);function sd(e){let t=d.useContext(vi)||{};Zl(t,e);let{ref:n,...r}=t;return r}function cd(e,t){let{children:n,...r}=e,l=ql(t),i={...r,ref:l};return d.createElement(vi.Provider,{value:i},n)}let dd=d.forwardRef(cd);function gt(e,t){let{focusProps:n}=cn(e),{keyboardProps:r}=si(e),l=O(n,r),i=sd(t),o=e.isDisabled?{}:i,u=d.useRef(e.autoFocus);return d.useEffect(()=>{u.current&&t.current&&se(t.current),u.current=!1},[t]),{focusableProps:O({...l,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},o)}}function fd(e,t){let n=t==null?void 0:t.isDisabled,[r,l]=d.useState(!1);return q(()=>{if(e!=null&&e.current&&!n){let i=()=>{if(e.current){let u=ve(e.current,{tabbable:!0});l(!!u.nextNode())}};i();let o=new MutationObserver(i);return o.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{o.disconnect()}}}),n?!1:r}const pd=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),vd=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function hd(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 pd.has(n.script)}let t=e.split("-")[0];return vd.has(t)}const md=Symbol.for("react-aria.i18n.locale");function hi(){let e=typeof window<"u"&&window[md]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:hd(e)?"rtl":"ltr"}}let qn=hi(),Tt=new Set;function sl(){qn=hi();for(let e of Tt)e(qn)}function bd(){let e=Ft(),[t,n]=d.useState(qn);return d.useEffect(()=>(Tt.size===0&&window.addEventListener("languagechange",sl),Tt.add(n),()=>{Tt.delete(n),Tt.size===0&&window.removeEventListener("languagechange",sl)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const gd=d.createContext(null);function Le(){let e=bd();return d.useContext(gd)||e}const $d=Symbol.for("react-aria.i18n.locale"),yd=Symbol.for("react-aria.i18n.strings");let dt;class pn{getStringForLocale(t,n){let l=this.getStringsForLocale(n)[t];if(!l)throw new Error(`Could not find intl message ${t} in ${n} locale`);return l}getStringsForLocale(t){let n=this.strings[t];return n||(n=xd(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[$d];if(dt===void 0){let l=window[yd];if(!l)return null;dt={};for(let i in l)dt[i]=new pn({[n]:l[i]},n)}let r=dt==null?void 0:dt[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 xd(e,t,n="en-US"){if(t[e])return t[e];let r=Ed(e);if(t[r])return t[r];for(let l in t)if(l.startsWith(r+"-"))return t[l];return t[n]}function Ed(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const cl=new Map,dl=new Map;class Cd{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 l=n["="+t];if(l)return typeof l=="function"?l():l;let i=this.locale+":"+r,o=cl.get(i);o||(o=new Intl.PluralRules(this.locale,{type:r}),cl.set(i,o));let u=o.select(t);return l=n[u]||n.other,typeof l=="function"?l():l}number(t){let n=dl.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),dl.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 fl=new WeakMap;function Sd(e){let t=fl.get(e);return t||(t=new pn(e),fl.set(e,t)),t}function Pd(e,t){return t&&pn.getGlobalDictionaryForPackage(t)||Sd(e)}function rt(e,t){let{locale:n}=Le(),r=Pd(e,t);return d.useMemo(()=>new Cd(n,r),[n,r])}let kn=new Map;function vn(e){let{locale:t}=Le(),n=t+(e?Object.entries(e).sort((l,i)=>l[0]<i[0]?-1:1).join():"");if(kn.has(n))return kn.get(n);let r=new Intl.Collator(t,e);return kn.set(n,r),r}function hn(e,t){let{elementType:n="button",isDisabled:r,onPress:l,onPressStart:i,onPressEnd:o,onPressUp:u,onPressChange:a,preventFocusOnPress:s,allowFocusWhenDisabled:c,onClick:f,href:v,target:p,rel:b,type:x="button"}=e,$;n==="button"?$={type:x,disabled:r}:$={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:v,target:n==="a"?p:void 0,type:n==="input"?x:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?b:void 0};let{pressProps:C,isPressed:P}=Fe({onPressStart:i,onPressEnd:o,onPressChange:a,onPress:l,onPressUp:u,isDisabled:r,preventFocusOnPress:s,ref:t}),{focusableProps:S}=gt(e,t);c&&(S.tabIndex=r?-1:S.tabIndex);let A=O(S,C,pe(e,{labelable:!0}));return{isPressed:P,buttonProps:O($,A,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:w=>{f&&(f(w),console.warn("onClick is deprecated, please use onPress"))}})}}const mi=7e3;let Se=null;function nn(e,t="assertive",n=mi){Se?Se.announce(e,t,n):(Se=new wd,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Se.announce(e,t,n):setTimeout(()=>{Se!=null&&Se.isAttached()&&(Se==null||Se.announce(e,t,n))},100))}class wd{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}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=mi){var l,i;if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,n==="assertive"?(l=this.assertiveLog)===null||l===void 0||l.appendChild(o):(i=this.politeLog)===null||i===void 0||i.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function vr(e,t,n){let{validationBehavior:r,focus:l}=e;q(()=>{if(r==="native"&&(n!=null&&n.current)){let a=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(a),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(Td(n.current))}});let i=te(()=>{t.resetValidation()}),o=te(a=>{var s;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(s=n.current)===null||s===void 0?void 0:s.form;if(!a.defaultPrevented&&n&&c&&Bd(c)===n.current){var f;l?l():(f=n.current)===null||f===void 0||f.focus(),ui("keyboard")}a.preventDefault()}),u=te(()=>{t.commitValidation()});d.useEffect(()=>{let a=n==null?void 0:n.current;if(!a)return;let s=a.form;return a.addEventListener("invalid",o),a.addEventListener("change",u),s==null||s.addEventListener("reset",i),()=>{a.removeEventListener("invalid",o),a.removeEventListener("change",u),s==null||s.removeEventListener("reset",i)}},[n,o,u,i,r])}function Dd(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function Td(e){return{isInvalid:!e.validity.valid,validationDetails:Dd(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function Bd(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const bi={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},gi={...bi,customError:!0,valid:!1},Ct={isInvalid:!1,validationDetails:bi,validationErrors:[]},kd=d.createContext({}),pl="__formValidationState"+Date.now();function hr(e){if(e[pl]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:l,commitValidation:i}=e[pl];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:l,commitValidation:i}}return Ad(e)}function Ad(e){let{isInvalid:t,validationState:n,name:r,value:l,builtinValidation:i,validate:o,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let a=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:gi}:null,s=d.useMemo(()=>vl(Kd(o,l)),[o,l]);i!=null&&i.validationDetails.valid&&(i=null);let c=d.useContext(kd),f=d.useMemo(()=>r?Array.isArray(r)?r.flatMap(y=>Xn(c[y])):Xn(c[r]):[],[c,r]),[v,p]=d.useState(c),[b,x]=d.useState(!1);c!==v&&(p(c),x(!1));let $=d.useMemo(()=>vl(b?[]:f),[b,f]),C=d.useRef(Ct),[P,S]=d.useState(Ct),A=d.useRef(Ct),w=()=>{if(!B)return;I(!1);let y=s||i||C.current;An(y,A.current)||(A.current=y,S(y))},[B,I]=d.useState(!1);return d.useEffect(w),{realtimeValidation:a||$||s||i||Ct,displayValidation:u==="native"?a||$||P:a||$||s||i||P,updateValidation(y){u==="aria"&&!An(P,y)?S(y):C.current=y},resetValidation(){let y=Ct;An(y,A.current)||(A.current=y,S(y)),u==="native"&&I(!1),x(!0)},commitValidation(){u==="native"&&I(!0),x(!0)}}}function Xn(e){return e?Array.isArray(e)?e:[e]:[]}function Kd(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Xn(n)}return[]}function vl(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:gi}:null}function An(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 Md(e,t,n){let{isDisabled:r=!1,isReadOnly:l=!1,value:i,name:o,children:u,"aria-label":a,"aria-labelledby":s,validationState:c="valid",isInvalid:f}=e,v=B=>{B.stopPropagation(),t.setSelected(B.target.checked)},p=u!=null,b=a!=null||s!=null;!p&&!b&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:x,isPressed:$}=Fe({isDisabled:r}),{pressProps:C,isPressed:P}=Fe({isDisabled:r||l,onPress(){t.toggle()}}),{focusableProps:S}=gt(e,n),A=O(x,S),w=pe(e,{labelable:!0});return sn(n,t.isSelected,t.setSelected),{labelProps:O(C,{onClick:B=>B.preventDefault()}),inputProps:O(w,{"aria-invalid":f||c==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":l||void 0,onChange:v,disabled:r,...i==null?{}:{value:i},name:o,type:"checkbox",...A}),isSelected:t.isSelected,isPressed:$||P,isDisabled:r,isReadOnly:l,isInvalid:f||c==="invalid"}}function $i(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":l,labelElementType:i="label"}=e;t=fe(t);let o=fe(),u={};n?(r=r?`${o} ${r}`:o,u={id:o,htmlFor:i==="label"?t:void 0}):!r&&!l&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let a=Yl({id:t,"aria-label":l,"aria-labelledby":r});return{labelProps:u,fieldProps:a}}function mr(e){let{description:t,errorMessage:n,isInvalid:r,validationState:l}=e,{labelProps:i,fieldProps:o}=$i(e),u=Ge([!!t,!!n,r,l]),a=Ge([!!t,!!n,r,l]);return o=O(o,{"aria-describedby":[u,a,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:o,descriptionProps:{id:u},errorMessageProps:{id:a}}}function Fd(e={}){let{isReadOnly:t}=e,[n,r]=qe(e.isSelected,e.defaultSelected||!1,e.onChange);function l(o){t||r(o)}function i(){t||r(!n)}return{isSelected:n,setSelected:l,toggle:i}}const hl={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 yi(e={}){let{style:t,isFocusable:n}=e,[r,l]=d.useState(!1),{focusWithinProps:i}=Rt({isDisabled:!n,onFocusWithinChange:u=>l(u)}),o=d.useMemo(()=>r?t:t?{...hl,...t}:hl,[r]);return{visuallyHiddenProps:{...i,style:o}}}function br(e){let{children:t,elementType:n="div",isFocusable:r,style:l,...i}=e,{visuallyHiddenProps:o}=yi(e);return d.createElement(n,O(i,o),t)}function xi(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:l=!1,isReadOnly:i=!1,type:o="text",validationBehavior:u="aria"}=e,[a,s]=qe(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=gt(e,t),f=hr({...e,value:a}),{isInvalid:v,validationErrors:p,validationDetails:b}=f.displayValidation,{labelProps:x,fieldProps:$,descriptionProps:C,errorMessageProps:P}=mr({...e,isInvalid:v,errorMessage:e.errorMessage||p}),S=pe(e,{labelable:!0});const A={type:o,pattern:e.pattern};return sn(t,a,s),vr(e,f,t),d.useEffect(()=>{if(t.current instanceof ye(t.current).HTMLTextAreaElement){let w=t.current;Object.defineProperty(w,"defaultValue",{get:()=>w.value,set:()=>{},configurable:!0})}},[t]),{labelProps:x,inputProps:O(S,n==="input"?A:void 0,{disabled:r,readOnly:i,required:l&&u==="native","aria-required":l&&u==="aria"||void 0,"aria-invalid":v||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:a,onChange:w=>s(w.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...$}),descriptionProps:C,errorMessageProps:P,isInvalid:v,validationErrors:p,validationDetails:b}}const Pe={top:"top",bottom:"top",left:"left",right:"left"},rn={top:"bottom",bottom:"top",left:"right",right:"left"},Id={top:"left",left:"top"},Zn={top:"height",left:"width"},Ei={width:"totalWidth",height:"totalHeight"},Wt={};let de=typeof document<"u"&&window.visualViewport;function ml(e){let t=0,n=0,r=0,l=0,i=0,o=0,u={},a=(de==null?void 0:de.scale)>1;if(e.tagName==="BODY"){let f=document.documentElement;r=f.clientWidth,l=f.clientHeight;var s;t=(s=de==null?void 0:de.width)!==null&&s!==void 0?s:r;var c;n=(c=de==null?void 0:de.height)!==null&&c!==void 0?c:l,u.top=f.scrollTop||e.scrollTop,u.left=f.scrollLeft||e.scrollLeft,de&&(i=de.offsetTop,o=de.offsetLeft)}else({width:t,height:n,top:i,left:o}=bt(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,l=n;return ar()&&(e.tagName==="BODY"||e.tagName==="HTML")&&a&&(u.top=0,u.left=0,i=de.pageTop,o=de.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:l,scroll:u,top:i,left:o}}function Rd(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function bl(e,t,n,r,l,i,o){let u=l.scroll[e],a=r[Zn[e]],s=r.scroll[Pe[e]]+i,c=a+r.scroll[Pe[e]]-i,f=t-u+o[e]-r[Pe[e]],v=t-u+n+o[e]-r[Pe[e]];return f<s?s-f:v>c?Math.max(c-v,s-f):0}function Nd(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 gl(e){if(Wt[e])return Wt[e];let[t,n]=e.split(" "),r=Pe[t]||"right",l=Id[r];Pe[n]||(n="center");let i=Zn[r],o=Zn[l];return Wt[e]={placement:t,crossPlacement:n,axis:r,crossAxis:l,size:i,crossSize:o},Wt[e]}function Kn(e,t,n,r,l,i,o,u,a,s){let{placement:c,crossPlacement:f,axis:v,crossAxis:p,size:b,crossSize:x}=r,$={};$[p]=e[p],f==="center"?$[p]+=(e[x]-n[x])/2:f!==p&&($[p]+=e[x]-n[x]),$[p]+=i;const C=e[p]-n[x]+a+s,P=e[p]+e[x]-a-s;if($[p]=On($[p],C,P),c===v){const S=u?o[b]:t[Ei[b]];$[rn[v]]=Math.floor(S-e[v]+l)}else $[v]=Math.floor(e[v]+e[b]+l);return $}function Ld(e,t,n,r,l,i,o,u){const a=r?n.height:t[Ei.height];let s=e.top!=null?n.top+e.top:n.top+(a-e.bottom-o),c=u!=="top"?Math.max(0,t.height+t.top+t.scroll.top-s-(l.top+l.bottom+i)):Math.max(0,s+o-(t.top+t.scroll.top)-(l.top+l.bottom+i));return Math.min(t.height-i*2,c)}function $l(e,t,n,r,l,i){let{placement:o,axis:u,size:a}=i;return o===u?Math.max(0,n[u]-e[u]-e.scroll[u]+t[u]-r[u]-r[rn[u]]-l):Math.max(0,e[a]+e[u]+e.scroll[u]-t[u]-n[u]-n[a]-r[u]-r[rn[u]]-l)}function _d(e,t,n,r,l,i,o,u,a,s,c,f,v,p,b,x){let $=gl(e),{size:C,crossAxis:P,crossSize:S,placement:A,crossPlacement:w}=$,B=Kn(t,u,n,$,c,f,s,v,b,x),I=c,h=$l(u,s,t,l,i+c,$);if(o&&r[C]>h){let oe=gl(`${rn[A]} ${w}`),Ce=Kn(t,u,n,oe,c,f,s,v,b,x);$l(u,s,t,l,i+c,oe)>h&&($=oe,B=Ce,I=c)}let K="bottom";$.axis==="top"?$.placement==="top"?K="top":$.placement==="bottom"&&(K="bottom"):$.crossAxis==="top"&&($.crossPlacement==="top"?K="bottom":$.crossPlacement==="bottom"&&(K="top"));let y=bl(P,B[P],n[S],u,a,i,s);B[P]+=y;let D=Ld(B,u,s,v,l,i,n.height,K);p&&p<D&&(D=p),n.height=Math.min(n.height,D),B=Kn(t,u,n,$,I,f,s,v,b,x),y=bl(P,B[P],n[S],u,a,i,s),B[P]+=y;let N={},E=t[P]+.5*t[S]-B[P]-l[Pe[P]];const R=b/2+x,T=Pe[P]==="left"?l.left+l.right:l.top+l.bottom,z=n[S]-T-b/2-x,M=t[P]+b/2-(B[P]+l[Pe[P]]),W=t[P]+t[S]-b/2-(B[P]+l[Pe[P]]),ne=On(E,M,W);return N[P]=On(ne,R,z),{position:B,maxHeight:D,arrowOffsetLeft:N.left,arrowOffsetTop:N.top,placement:$.placement}}function zd(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:l,padding:i,shouldFlip:o,boundaryElement:u,offset:a,crossOffset:s,maxHeight:c,arrowSize:f=0,arrowBoundaryOffset:v=0}=e,p=r instanceof HTMLElement?jd(r):document.documentElement,b=p===document.documentElement;const x=window.getComputedStyle(p).position;let $=!!x&&x!=="static",C=b?bt(n):yl(n,p);if(!b){let{marginTop:h,marginLeft:K}=window.getComputedStyle(n);C.top+=parseInt(h,10)||0,C.left+=parseInt(K,10)||0}let P=bt(r),S=Nd(r);P.width+=S.left+S.right,P.height+=S.top+S.bottom;let A=Rd(l),w=ml(u),B=ml(p),I=u.tagName==="BODY"?bt(p):yl(p,u);return p.tagName==="HTML"&&u.tagName==="BODY"&&(B.scroll.top=0,B.scroll.left=0),_d(t,C,P,A,S,i,o,w,B,I,a,s,$,c,f,v)}function bt(e){let{top:t,left:n,width:r,height:l}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:o,clientTop:u,clientLeft:a}=document.documentElement;return{top:t+i-u,left:n+o-a,width:r,height:l}}function yl(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:l,left:i,width:o,height:u}=e.getBoundingClientRect();r={top:l,left:i,width:o,height:u}}else{r=bt(e);let l=bt(t),i=window.getComputedStyle(t);l.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,l.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=l.top,r.left-=l.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function jd(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!xl(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!xl(t);)t=t.parentElement;return t||document.documentElement}function xl(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 Ci=new WeakMap;function Od(e){let{triggerRef:t,isOpen:n,onClose:r}=e;d.useEffect(()=>{if(!n||r===null)return;let l=i=>{let o=i.target;if(!t.current||o instanceof Node&&!o.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let u=r||Ci.get(t.current);u&&u()};return window.addEventListener("scroll",l,!0),()=>{window.removeEventListener("scroll",l,!0)}},[n,r,t])}let ee=typeof document<"u"&&window.visualViewport;function Si(e){let{direction:t}=Le(),{arrowSize:n=0,targetRef:r,overlayRef:l,scrollRef:i=l,placement:o="bottom",containerPadding:u=12,shouldFlip:a=!0,boundaryElement:s=typeof document<"u"?document.body:null,offset:c=0,crossOffset:f=0,shouldUpdatePosition:v=!0,isOpen:p=!0,onClose:b,maxHeight:x,arrowBoundaryOffset:$=0}=e,[C,P]=d.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),S=[v,o,l.current,r.current,i.current,u,a,s,c,f,p,t,x,$,n],A=d.useRef(ee==null?void 0:ee.scale);d.useEffect(()=>{p&&(A.current=ee==null?void 0:ee.scale)},[p]);let w=d.useCallback(()=>{if(v===!1||!p||!l.current||!r.current||!s||(ee==null?void 0:ee.scale)!==A.current)return;let K=null;if(i.current&&i.current.contains(document.activeElement)){let R=document.activeElement.getBoundingClientRect(),T=i.current.getBoundingClientRect();K={type:"top",offset:R.top-T.top},K.offset>T.height/2&&(K.type="bottom",K.offset=R.bottom-T.bottom)}let y=l.current;if(!x&&l.current){var D;y.style.top="0px",y.style.bottom="";var N;y.style.maxHeight=((N=(D=window.visualViewport)===null||D===void 0?void 0:D.height)!==null&&N!==void 0?N:window.innerHeight)+"px"}let E=zd({placement:Hd(o,t),overlayNode:l.current,targetNode:r.current,scrollNode:i.current||l.current,padding:u,shouldFlip:a,boundaryElement:s,offset:c,crossOffset:f,maxHeight:x,arrowSize:n,arrowBoundaryOffset:$});if(y.style.top="",y.style.bottom="",y.style.left="",y.style.right="",Object.keys(E.position).forEach(R=>y.style[R]=E.position[R]+"px"),y.style.maxHeight=E.maxHeight!=null?E.maxHeight+"px":void 0,K){let R=document.activeElement.getBoundingClientRect(),T=i.current.getBoundingClientRect(),z=R[K.type]-T[K.type];i.current.scrollTop+=z-K.offset}P(E)},S);q(w,S),Vd(w),Zr({ref:l,onResize:w}),Zr({ref:r,onResize:w});let B=d.useRef(!1);q(()=>{let K,y=()=>{B.current=!0,clearTimeout(K),K=setTimeout(()=>{B.current=!1},500),w()},D=()=>{B.current&&y()};return ee==null||ee.addEventListener("resize",y),ee==null||ee.addEventListener("scroll",D),()=>{ee==null||ee.removeEventListener("resize",y),ee==null||ee.removeEventListener("scroll",D)}},[w]);let I=d.useCallback(()=>{B.current||b()},[b,B]);Od({triggerRef:r,isOpen:p,onClose:b&&I});var h;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...C.position,maxHeight:(h=C.maxHeight)!==null&&h!==void 0?h:"100vh"}},placement:C.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:C.arrowOffsetLeft,top:C.arrowOffsetTop}},updatePosition:w}}function Vd(e){q(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function Hd(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Be=[];function Pi(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:l,isDismissable:i=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:u}=e;d.useEffect(()=>(l&&Be.push(t),()=>{let b=Be.indexOf(t);b>=0&&Be.splice(b,1)}),[l,t]);let a=()=>{Be[Be.length-1]===t&&n&&n()},s=b=>{(!u||u(b.target))&&Be[Be.length-1]===t&&(b.stopPropagation(),b.preventDefault())},c=b=>{(!u||u(b.target))&&(Be[Be.length-1]===t&&(b.stopPropagation(),b.preventDefault()),a())},f=b=>{b.key==="Escape"&&!o&&!b.nativeEvent.isComposing&&(b.stopPropagation(),b.preventDefault(),a())};Xc({ref:t,onInteractOutside:i&&l?c:null,onInteractOutsideStart:s});let{focusWithinProps:v}=Rt({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||ld(b.relatedTarget)||(!u||u(b.relatedTarget))&&n()}}),p=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:f,...v},underlayProps:{onPointerDown:p}}}function wi(e,t,n){let{type:r}=e,{isOpen:l}=t;d.useEffect(()=>{n&&n.current&&Ci.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let o=fe();return{triggerProps:{"aria-haspopup":i,"aria-expanded":l,"aria-controls":l?o:null,onPress:t.toggle},overlayProps:{id:o}}}const Mn=typeof document<"u"&&window.visualViewport,Wd=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Ut=0,Fn;function Ud(e={}){let{isDisabled:t}=e;q(()=>{if(!t)return Ut++,Ut===1&&(un()?Fn=Yd():Fn=Gd()),()=>{Ut--,Ut===0&&Fn()}},[t])}function Gd(){return we(mt(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),mt(document.documentElement,"overflow","hidden"))}function Yd(){let e,t,n=s=>{e=Ve(s.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=mt(e,"overscrollBehavior","contain"))},r=s=>{if(!e||e===document.documentElement||e===document.body){s.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&s.preventDefault()},l=s=>{let c=s.target;Cl(c)&&c!==document.activeElement&&(s.preventDefault(),u(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},i=s=>{let c=s.target;Cl(c)&&(u(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",Mn&&(Mn.height<window.innerHeight?requestAnimationFrame(()=>{El(c)}):Mn.addEventListener("resize",()=>El(c),{once:!0}))}))},o=null,u=()=>{if(o)return;let s=()=>{window.scrollTo(0,0)},c=window.pageXOffset,f=window.pageYOffset;o=we(St(window,"scroll",s),mt(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),mt(document.documentElement,"overflow","hidden"),mt(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(c,f)}),window.scrollTo(0,0)},a=we(St(document,"touchstart",n,{passive:!1,capture:!0}),St(document,"touchmove",r,{passive:!1,capture:!0}),St(document,"touchend",l,{passive:!1,capture:!0}),St(document,"focus",i,!0));return()=>{t==null||t(),o==null||o(),a()}}function mt(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function St(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function El(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=Ve(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,l=e.getBoundingClientRect().top;l>r+e.clientHeight&&(n.scrollTop+=l-r)}e=n.parentElement}}function Cl(e){return e instanceof HTMLInputElement&&!Wd.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const Jn=d.createContext(null);function qd(e){let{children:t}=e,n=d.useContext(Jn),[r,l]=d.useState(0),i=d.useMemo(()=>({parent:n,modalCount:r,addModal(){l(o=>o+1),n&&n.addModal()},removeModal(){l(o=>o-1),n&&n.removeModal()}}),[n,r]);return d.createElement(Jn.Provider,{value:i},t)}function Xd(){let e=d.useContext(Jn);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function Zd(e){let{modalProviderProps:t}=Xd();return d.createElement("div",{"data-overlay-container":!0,...e,...t})}function Jd(e){return d.createElement(qd,null,d.createElement(Zd,e))}function Qd(e){let t=Ft(),{portalContainer:n=t?null:document.body,...r}=e;if(d.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let l=d.createElement(Jd,r);return Mt.createPortal(l,n)}var Di={};Di={dismiss:"تجاهل"};var Ti={};Ti={dismiss:"Отхвърляне"};var Bi={};Bi={dismiss:"Odstranit"};var ki={};ki={dismiss:"Luk"};var Ai={};Ai={dismiss:"Schließen"};var Ki={};Ki={dismiss:"Απόρριψη"};var Mi={};Mi={dismiss:"Dismiss"};var Fi={};Fi={dismiss:"Descartar"};var Ii={};Ii={dismiss:"Lõpeta"};var Ri={};Ri={dismiss:"Hylkää"};var Ni={};Ni={dismiss:"Rejeter"};var Li={};Li={dismiss:"התעלם"};var _i={};_i={dismiss:"Odbaci"};var zi={};zi={dismiss:"Elutasítás"};var ji={};ji={dismiss:"Ignora"};var Oi={};Oi={dismiss:"閉じる"};var Vi={};Vi={dismiss:"무시"};var Hi={};Hi={dismiss:"Atmesti"};var Wi={};Wi={dismiss:"Nerādīt"};var Ui={};Ui={dismiss:"Lukk"};var Gi={};Gi={dismiss:"Negeren"};var Yi={};Yi={dismiss:"Zignoruj"};var qi={};qi={dismiss:"Descartar"};var Xi={};Xi={dismiss:"Dispensar"};var Zi={};Zi={dismiss:"Revocare"};var Ji={};Ji={dismiss:"Пропустить"};var Qi={};Qi={dismiss:"Zrušiť"};var eo={};eo={dismiss:"Opusti"};var to={};to={dismiss:"Odbaci"};var no={};no={dismiss:"Avvisa"};var ro={};ro={dismiss:"Kapat"};var lo={};lo={dismiss:"Скасувати"};var io={};io={dismiss:"取消"};var oo={};oo={dismiss:"關閉"};var uo={};uo={"ar-AE":Di,"bg-BG":Ti,"cs-CZ":Bi,"da-DK":ki,"de-DE":Ai,"el-GR":Ki,"en-US":Mi,"es-ES":Fi,"et-EE":Ii,"fi-FI":Ri,"fr-FR":Ni,"he-IL":Li,"hr-HR":_i,"hu-HU":zi,"it-IT":ji,"ja-JP":Oi,"ko-KR":Vi,"lt-LT":Hi,"lv-LV":Wi,"nb-NO":Ui,"nl-NL":Gi,"pl-PL":Yi,"pt-BR":qi,"pt-PT":Xi,"ro-RO":Zi,"ru-RU":Ji,"sk-SK":Qi,"sl-SI":eo,"sr-SP":to,"sv-SE":no,"tr-TR":ro,"uk-UA":lo,"zh-CN":io,"zh-TW":oo};function ef(e){return e&&e.__esModule?e.default:e}function tf(e){let{onDismiss:t,...n}=e,r=rt(ef(uo),"@react-aria/overlays"),l=Yl(n,r.format("dismiss")),i=()=>{t&&t()};return d.createElement(br,null,d.createElement("button",{...l,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let Pt=new WeakMap,ge=[];function nf(e,t=document.body){let n=new Set(e),r=new Set,l=a=>{for(let v of a.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(v);let s=v=>{if(n.has(v)||r.has(v.parentElement)&&v.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let p of n)if(v.contains(p))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:s}),f=s(a);if(f===NodeFilter.FILTER_ACCEPT&&i(a),f!==NodeFilter.FILTER_REJECT){let v=c.nextNode();for(;v!=null;)i(v),v=c.nextNode()}},i=a=>{var s;let c=(s=Pt.get(a))!==null&&s!==void 0?s:0;a.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&a.setAttribute("aria-hidden","true"),r.add(a),Pt.set(a,c+1))};ge.length&&ge[ge.length-1].disconnect(),l(t);let o=new MutationObserver(a=>{for(let s of a)if(!(s.type!=="childList"||s.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(s.target))){for(let c of s.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of s.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&l(c)}});o.observe(t,{childList:!0,subtree:!0});let u={observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return ge.push(u),()=>{o.disconnect();for(let a of r){let s=Pt.get(a);s===1?(a.removeAttribute("aria-hidden"),Pt.delete(a)):Pt.set(a,s-1)}u===ge[ge.length-1]?(ge.pop(),ge.length&&ge[ge.length-1].observe()):ge.splice(ge.indexOf(u),1)}}function rf(e,t){let{triggerRef:n,popoverRef:r,isNonModal:l,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:o,...u}=e,{overlayProps:a,underlayProps:s}=Pi({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!l,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:o},r),{overlayProps:c,arrowProps:f,placement:v}=Si({...u,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:l?t.close:null});return Ud({isDisabled:l||!t.isOpen}),q(()=>{if(t.isOpen&&!l&&r.current)return nf([r.current])},[l,t.isOpen,r]),{popoverProps:O(a,c),arrowProps:f,underlayProps:s,placement:v}}const lf=d.createContext({});function of(){var e;return(e=d.useContext(lf))!==null&&e!==void 0?e:{}}const ao=d.createContext(null);function uf(e){let t=Ft(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[l,i]=d.useState(!1),o=d.useMemo(()=>({contain:l,setContain:i}),[l,i]),{getContainer:u}=of();if(!e.portalContainer&&u&&(n=u()),!n)return null;let a=e.children;return e.disableFocusManagement||(a=d.createElement(dr,{restoreFocus:!0,contain:l&&!r},a)),a=d.createElement(ao.Provider,{value:o},d.createElement(jc,null,a)),Mt.createPortal(a,n)}function af(){let e=d.useContext(ao),t=e==null?void 0:e.setContain;q(()=>{t==null||t(!0)},[t])}const gr=new WeakMap;function sf(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function cf(e,t){let n=gr.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${sf(t)}`}function Qn(e){return yc()?e.altKey:e.ctrlKey}function vt(e){return Ye()?e.metaKey:e.ctrlKey}const df=1e3;function so(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,l=d.useRef({search:"",timeout:null}).current,i=o=>{let u=ff(o.key);if(!u||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))return;u===" "&&l.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),l.search+=u;let a=t.getKeyForSearch(l.search,n.focusedKey);a==null&&(a=t.getKeyForSearch(l.search)),a!=null&&(n.setFocusedKey(a),r&&r(a)),clearTimeout(l.timeout),l.timeout=setTimeout(()=>{l.search=""},df)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function ff(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function co(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:l=!1,shouldFocusWrap:i=!1,disallowEmptySelection:o=!1,disallowSelectAll:u=!1,selectOnFocus:a=t.selectionBehavior==="replace",disallowTypeAhead:s=!1,shouldUseVirtualFocus:c,allowsTabNavigation:f=!1,isVirtualized:v,scrollRef:p=r,linkBehavior:b="action"}=e,{direction:x}=Le(),$=It(),C=y=>{if(y.altKey&&y.key==="Tab"&&y.preventDefault(),!r.current.contains(y.target))return;const D=(L,xe)=>{if(L!=null){if(t.isLink(L)&&b==="selection"&&a&&!Qn(y)){Mt.flushSync(()=>{t.setFocusedKey(L,xe)});let me=p.current.querySelector(`[data-key="${CSS.escape(L.toString())}"]`),ze=t.getItemProps(L);$.open(me,y,ze.href,ze.routerOptions);return}if(t.setFocusedKey(L,xe),t.isLink(L)&&b==="override")return;y.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(L):a&&!Qn(y)&&t.replaceSelection(L)}};switch(y.key){case"ArrowDown":if(n.getKeyBelow){var N,E,R;let L=t.focusedKey!=null?(N=n.getKeyBelow)===null||N===void 0?void 0:N.call(n,t.focusedKey):(E=n.getFirstKey)===null||E===void 0?void 0:E.call(n);L==null&&i&&(L=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n,t.focusedKey)),L!=null&&(y.preventDefault(),D(L))}break;case"ArrowUp":if(n.getKeyAbove){var T,z,M;let L=t.focusedKey!=null?(T=n.getKeyAbove)===null||T===void 0?void 0:T.call(n,t.focusedKey):(z=n.getLastKey)===null||z===void 0?void 0:z.call(n);L==null&&i&&(L=(M=n.getLastKey)===null||M===void 0?void 0:M.call(n,t.focusedKey)),L!=null&&(y.preventDefault(),D(L))}break;case"ArrowLeft":if(n.getKeyLeftOf){var W,ne,oe;let L=(W=n.getKeyLeftOf)===null||W===void 0?void 0:W.call(n,t.focusedKey);L==null&&i&&(L=x==="rtl"?(ne=n.getFirstKey)===null||ne===void 0?void 0:ne.call(n,t.focusedKey):(oe=n.getLastKey)===null||oe===void 0?void 0:oe.call(n,t.focusedKey)),L!=null&&(y.preventDefault(),D(L,x==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Ce,he,_e;let L=(Ce=n.getKeyRightOf)===null||Ce===void 0?void 0:Ce.call(n,t.focusedKey);L==null&&i&&(L=x==="rtl"?(he=n.getLastKey)===null||he===void 0?void 0:he.call(n,t.focusedKey):(_e=n.getFirstKey)===null||_e===void 0?void 0:_e.call(n,t.focusedKey)),L!=null&&(y.preventDefault(),D(L,x==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){y.preventDefault();let L=n.getFirstKey(t.focusedKey,vt(y));t.setFocusedKey(L),vt(y)&&y.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(L):a&&t.replaceSelection(L)}break;case"End":if(n.getLastKey){y.preventDefault();let L=n.getLastKey(t.focusedKey,vt(y));t.setFocusedKey(L),vt(y)&&y.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(L):a&&t.replaceSelection(L)}break;case"PageDown":if(n.getKeyPageBelow){let L=n.getKeyPageBelow(t.focusedKey);L!=null&&(y.preventDefault(),D(L))}break;case"PageUp":if(n.getKeyPageAbove){let L=n.getKeyPageAbove(t.focusedKey);L!=null&&(y.preventDefault(),D(L))}break;case"a":vt(y)&&t.selectionMode==="multiple"&&u!==!0&&(y.preventDefault(),t.selectAll());break;case"Escape":!o&&t.selectedKeys.size!==0&&(y.stopPropagation(),y.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(y.shiftKey)r.current.focus();else{let L=ve(r.current,{tabbable:!0}),xe,me;do me=L.lastChild(),me&&(xe=me);while(me);xe&&!xe.contains(document.activeElement)&&Ke(xe)}break}}},P=d.useRef({top:0,left:0});Jr(p,"scroll",v?null:()=>{P.current={top:p.current.scrollTop,left:p.current.scrollLeft}});let S=y=>{if(t.isFocused){y.currentTarget.contains(y.target)||t.setFocused(!1);return}if(y.currentTarget.contains(y.target)){if(t.setFocused(!0),t.focusedKey==null){let E=T=>{T!=null&&(t.setFocusedKey(T),a&&t.replaceSelection(T))},R=y.relatedTarget;var D,N;R&&y.currentTarget.compareDocumentPosition(R)&Node.DOCUMENT_POSITION_FOLLOWING?E((D=t.lastSelectedKey)!==null&&D!==void 0?D:n.getLastKey()):E((N=t.firstSelectedKey)!==null&&N!==void 0?N:n.getFirstKey())}else v||(p.current.scrollTop=P.current.top,p.current.scrollLeft=P.current.left);if(t.focusedKey!=null){let E=p.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);E&&(E.contains(document.activeElement)||Ke(E),Jt()==="keyboard"&&He(E,{containingElement:r.current}))}}},A=y=>{y.currentTarget.contains(y.relatedTarget)||t.setFocused(!1)};const w=d.useRef(l);d.useEffect(()=>{if(w.current){let y=null;l==="first"&&(y=n.getFirstKey()),l==="last"&&(y=n.getLastKey());let D=t.selectedKeys;if(D.size){for(let N of D)if(t.canSelectItem(N)){y=N;break}}t.setFocused(!0),t.setFocusedKey(y),y==null&&!c&&se(r.current)}},[]);let B=d.useRef(t.focusedKey);d.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==B.current||w.current)&&(p!=null&&p.current)){let y=Jt(),D=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!D)return;(y==="keyboard"||w.current)&&(Jl(p.current,D),y!=="virtual"&&He(D,{containingElement:r.current}))}!c&&t.isFocused&&t.focusedKey==null&&B.current!=null&&se(r.current),B.current=t.focusedKey,w.current=!1}),Jr(r,"react-aria-focus-scope-restore",y=>{y.preventDefault(),t.setFocused(!0)});let I={onKeyDown:C,onFocus:S,onBlur:A,onMouseDown(y){p.current===y.target&&y.preventDefault()}},{typeSelectProps:h}=so({keyboardDelegate:n,selectionManager:t});s||(I=O(h,I));let K;return c||(K=t.focusedKey==null?0:-1),{collectionProps:{...I,tabIndex:K}}}function mn(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:l,shouldUseVirtualFocus:i,focus:o,isDisabled:u,onAction:a,allowsDifferentPressOrigin:s,linkBehavior:c="action"}=e,f=It(),v=M=>{if(M.pointerType==="keyboard"&&Qn(M))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(c==="selection"){let W=t.getItemProps(n);f.open(r.current,M,W.href,W.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(c==="override"||c==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):M&&M.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||M&&(vt(M)||M.pointerType==="touch"||M.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};d.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!i&&(o?o():document.activeElement!==r.current&&se(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,i]),u=u||t.isDisabled(n);let p={};!i&&!u?p={tabIndex:n===t.focusedKey?0:-1,onFocus(M){M.target===r.current&&t.setFocusedKey(n)}}:u&&(p.onMouseDown=M=>{M.preventDefault()});let b=t.isLink(n)&&c==="override",x=t.isLink(n)&&c!=="selection"&&c!=="none",$=!u&&t.canSelectItem(n)&&!b,C=(a||x)&&!u,P=C&&(t.selectionBehavior==="replace"?!$:!$||t.isEmpty),S=C&&$&&t.selectionBehavior==="replace",A=P||S,w=d.useRef(null),B=A&&$,I=d.useRef(!1),h=d.useRef(!1),K=M=>{if(a&&a(),x){let W=t.getItemProps(n);f.open(r.current,M,W.href,W.routerOptions)}},y={};l?(y.onPressStart=M=>{w.current=M.pointerType,I.current=B,M.pointerType==="keyboard"&&(!A||Pl())&&v(M)},s?(y.onPressUp=P?null:M=>{M.pointerType!=="keyboard"&&$&&v(M)},y.onPress=P?K:null):y.onPress=M=>{if(P||S&&M.pointerType!=="mouse"){if(M.pointerType==="keyboard"&&!Sl())return;K(M)}else M.pointerType!=="keyboard"&&$&&v(M)}):(y.onPressStart=M=>{w.current=M.pointerType,I.current=B,h.current=P,$&&(M.pointerType==="mouse"&&!P||M.pointerType==="keyboard"&&(!C||Pl()))&&v(M)},y.onPress=M=>{(M.pointerType==="touch"||M.pointerType==="pen"||M.pointerType==="virtual"||M.pointerType==="keyboard"&&A&&Sl()||M.pointerType==="mouse"&&h.current)&&(A?K(M):$&&v(M))}),p["data-key"]=n,y.preventFocusOnPress=i;let{pressProps:D,isPressed:N}=Fe(y),E=S?M=>{w.current==="mouse"&&(M.stopPropagation(),M.preventDefault(),K(M))}:void 0,{longPressProps:R}=ci({isDisabled:!B,onLongPress(M){M.pointerType==="touch"&&(v(M),t.setSelectionBehavior("toggle"))}}),T=M=>{w.current==="touch"&&I.current&&M.preventDefault()},z=t.isLink(n)?M=>{et.isOpening||M.preventDefault()}:void 0;return{itemProps:O(p,$||P?D:{},B?R:{},{onDoubleClick:E,onDragStartCapture:T,onClick:z}),isPressed:N,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:u,allowsSelection:$,hasAction:A}}function Sl(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Pl(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class er{getItemRect(t){let n=this.ref.current,r=t!=null?n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!r)return null;let l=n.getBoundingClientRect(),i=r.getBoundingClientRect();return{x:i.left-l.left+n.scrollLeft,y:i.top-l.top+n.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;return{width:t.scrollWidth,height:t.scrollHeight}}getVisibleRect(){let t=this.ref.current;return{x:t.scrollLeft,y:t.scrollTop,width:t.offsetWidth,height:t.offsetHeight}}constructor(t){this.ref=t}}class fo{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){for(;t!=null;){let r=this.collection.getItem(t);if((r==null?void 0:r.type)==="item"&&!this.isDisabled(r))return t;t=n(t)}return null}getNextKey(t){return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getPreviousKey(t){return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}findKey(t,n,r){let l=this.layoutDelegate.getItemRect(t);if(!l)return null;let i=l;do t=n(t),l=this.layoutDelegate.getItemRect(t);while(l&&r(i,l));return t}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}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){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(!kt(n))return this.getFirstKey();if(this.orientation==="horizontal"){let l=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>l;)t=this.getKeyAbove(t),r=t==null?null:this.layoutDelegate.getItemRect(t)}else{let l=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>l;)t=this.getKeyAbove(t),r=t==null?null:this.layoutDelegate.getItemRect(t)}return t??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(!kt(n))return this.getLastKey();if(this.orientation==="horizontal"){let l=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<l;)t=this.getKeyBelow(t),r=t==null?null:this.layoutDelegate.getItemRect(t)}else{let l=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<l;)t=this.getKeyBelow(t),r=t==null?null:this.layoutDelegate.getItemRect(t)}return t??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,l=n||this.getFirstKey();for(;l!=null;){let i=r.getItem(l),o=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(o,t)===0)return l;l=this.getNextKey(l)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new er(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new er(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function po(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:l,keyboardDelegate:i,layoutDelegate:o}=e,u=vn({usage:"search",sensitivity:"base"}),a=t.disabledBehavior,s=d.useMemo(()=>i||new fo({collection:n,disabledKeys:r,disabledBehavior:a,ref:l,collator:u,layoutDelegate:o}),[i,o,n,r,l,u,a]),{collectionProps:c}=co({...e,ref:l,selectionManager:t,keyboardDelegate:s});return{listProps:c}}function pf(e,t,n){let r=pe(e,{labelable:!0}),l=e.selectionBehavior||"toggle",i=e.linkBehavior||(l==="replace"?"action":"override");l==="toggle"&&i==="action"&&(i="override");let{listProps:o}=po({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:u}=Rt({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),a=fe(e.id);gr.set(t,{id:a,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:s,fieldProps:c}=$i({...e,id:a,labelElementType:"span"});return{labelProps:s,listBoxProps:O(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...O(c,o)})}}function vo(e){return null}vo.getCollectionNode=function*(t,n){let{childItems:r,title:l,children:i}=t,o=t.title||t.children,u=t.textValue||(typeof o=="string"?o:"")||t["aria-label"]||"";!u&&!(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:o,textValue:u,"aria-label":t["aria-label"],hasChildNodes:vf(t),*childNodes(){if(r)for(let a of r)yield{type:"item",value:a};else if(l){let a=[];d.Children.forEach(i,s=>{a.push({type:"item",element:s})}),yield*a}}}};function vf(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&d.Children.count(e.children)>0)}let $r=vo;function ho(e){return null}ho.getCollectionNode=function*(t){let{children:n,title:r,items:l}=t;yield{type:"section",props:t,hasChildNodes:!0,rendered:r,"aria-label":t["aria-label"],*childNodes(){if(typeof n=="function"){if(!l)throw new Error("props.children was a function but props.items is missing");for(let i of l)yield{type:"item",value:i,renderer:n}}else{let i=[];d.Children.forEach(n,o=>{i.push({type:"item",element:o})}),yield*i}}}};let hf=ho;class mf{build(t,n){return this.context=n,wl(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(d.isValidElement(n)&&n.type===d.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let l of t.items)yield*this.getFullNode({value:l},{renderer:n})}else{let l=[];d.Children.forEach(n,o=>{l.push(o)});let i=0;for(let o of l){let u=this.getFullNode({element:o,index:i},{});for(let a of u)i++,yield a}}}getKey(t,n,r,l){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${l}${n.key}`;let i=n.value;if(i!=null){var o;let u=(o=i.key)!==null&&o!==void 0?o:i.id;if(u==null)throw new Error("No key found for item");return u}return l?`${l}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,l){if(d.isValidElement(t.element)&&t.element.type===d.Fragment){let a=[];d.Children.forEach(t.element.props.children,c=>{a.push(c)});let s=t.index;for(const c of a)yield*this.getFullNode({element:c,index:s++},n,r,l);return}let i=t.element;if(!i&&t.value&&n&&n.renderer){let a=this.cache.get(t.value);if(a&&(!a.shouldInvalidate||!a.shouldInvalidate(this.context))){a.index=t.index,a.parentKey=l?l.key:null,yield a;return}i=n.renderer(t.value)}if(d.isValidElement(i)){let a=i.type;if(typeof a!="function"&&typeof a.getCollectionNode!="function"){let v=typeof i.type=="function"?i.type.name:i.type;throw new Error(`Unknown element <${v}> in collection.`)}let s=a.getCollectionNode(i.props,this.context),c=t.index,f=s.next();for(;!f.done&&f.value;){let v=f.value;t.index=c;let p=v.key;p||(p=v.element?null:this.getKey(i,t,n,r));let x=[...this.getFullNode({...v,key:p,index:c,wrapper:bf(t.wrapper,v.wrapper)},this.getChildState(n,v),r?`${r}${i.key}`:i.key,l)];for(let $ of x){if($.value=v.value||t.value,$.value&&this.cache.set($.value,$),t.type&&$.type!==t.type)throw new Error(`Unsupported type <${In($.type)}> in <${In(l.type)}>. Only <${In(t.type)}> is supported.`);c++,yield $}f=s.next(x)}return}if(t.key==null)return;let o=this,u={type:t.type,props:t.props,key:t.key,parentKey:l?l.key:null,value:t.value,level:l?l.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:wl(function*(){if(!t.hasChildNodes)return;let a=0;for(let s of t.childNodes()){s.key!=null&&(s.key=`${u.key}${s.key}`),s.index=a;let c=o.getFullNode(s,o.getChildState(n,s),u.key,u);for(let f of c)a++,yield f}})};yield u}constructor(){this.cache=new WeakMap}}function wl(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 bf(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function In(e){return e[0].toUpperCase()+e.slice(1)}function yr(e,t,n){let r=d.useMemo(()=>new mf,[]),{children:l,items:i,collection:o}=e;return d.useMemo(()=>{if(o)return o;let a=r.build({children:l,items:i},n);return t(a)},[r,l,i,o,n,t])}function le(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Ae(e){return We(e,0)}function We(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Ue(e){let t;for(let n of e)t=n;return t}function Rn(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Dl(e,t),t],l=[...Dl(e,n),n],i=r.slice(0,l.length).findIndex((o,u)=>o!==l[u]);return i!==-1?(t=r[i],n=l[i],t.index-n.index):r.findIndex(o=>o===n)>=0?1:(l.findIndex(o=>o===t)>=0,-1)}function Dl(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const Tl=new WeakMap;function mo(e){let t=Tl.get(e);if(t!=null)return t;t=0;let n=r=>{for(let l of r)l.type==="section"?n(le(l,e)):t++};return n(e),Tl.set(e,t),t}function gf(e,t,n){var r,l;let{key:i}=e,o=gr.get(t);var u;let a=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(i);var s;let c=(s=e.isSelected)!==null&&s!==void 0?s:t.selectionManager.isSelected(i);var f;let v=(f=e.shouldSelectOnPressUp)!==null&&f!==void 0?f:o==null?void 0:o.shouldSelectOnPressUp;var p;let b=(p=e.shouldFocusOnHover)!==null&&p!==void 0?p:o==null?void 0:o.shouldFocusOnHover;var x;let $=(x=e.shouldUseVirtualFocus)!==null&&x!==void 0?x:o==null?void 0:o.shouldUseVirtualFocus;var C;let P=(C=e.isVirtualized)!==null&&C!==void 0?C:o==null?void 0:o.isVirtualized,S=Ge(),A=Ge(),w={role:"option","aria-disabled":a||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0};Ye()&&ar()||(w["aria-label"]=e["aria-label"],w["aria-labelledby"]=S,w["aria-describedby"]=A);let B=t.collection.getItem(i);if(P){let z=Number(B==null?void 0:B.index);w["aria-posinset"]=Number.isNaN(z)?void 0:z+1,w["aria-setsize"]=mo(t.collection)}let I=o!=null&&o.onAction?()=>{var z;return o==null||(z=o.onAction)===null||z===void 0?void 0:z.call(o,i)}:void 0,{itemProps:h,isPressed:K,isFocused:y,hasAction:D,allowsSelection:N}=mn({selectionManager:t.selectionManager,key:i,ref:n,shouldSelectOnPressUp:v,allowsDifferentPressOrigin:v&&b,isVirtualized:P,shouldUseVirtualFocus:$,isDisabled:a,onAction:I||!(B==null||(r=B.props)===null||r===void 0)&&r.onAction?we(B==null||(l=B.props)===null||l===void 0?void 0:l.onAction,I):void 0,linkBehavior:o==null?void 0:o.linkBehavior}),{hoverProps:E}=Nt({isDisabled:a||!b,onHoverStart(){nt()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i))}}),R=pe(B==null?void 0:B.props);delete R.id;let T=Wl(B==null?void 0:B.props);return{optionProps:{...w,...O(R,h,E,T),id:cf(t,i)},labelProps:{id:S},descriptionProps:{id:A},isFocused:y,isFocusVisible:y&&nt(),isSelected:c,isDisabled:a,isPressed:K,allowsSelection:N,hasAction:D}}var bo={};bo={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var go={};go={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var $o={};$o={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var yo={};yo={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var xo={};xo={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Eo={};Eo={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Co={};Co={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var So={};So={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Po={};Po={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var wo={};wo={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Do={};Do={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var To={};To={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Bo={};Bo={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var ko={};ko={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Ao={};Ao={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Ko={};Ko={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Mo={};Mo={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Fo={};Fo={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Io={};Io={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Ro={};Ro={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var No={};No={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Lo={};Lo={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var _o={};_o={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var zo={};zo={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var jo={};jo={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Oo={};Oo={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Vo={};Vo={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Ho={};Ho={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Wo={};Wo={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Uo={};Uo={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Go={};Go={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Yo={};Yo={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var qo={};qo={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Xo={};Xo={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Zo={};Zo={"ar-AE":bo,"bg-BG":go,"cs-CZ":$o,"da-DK":yo,"de-DE":xo,"el-GR":Eo,"en-US":Co,"es-ES":So,"et-EE":Po,"fi-FI":wo,"fr-FR":Do,"he-IL":To,"hr-HR":Bo,"hu-HU":ko,"it-IT":Ao,"ja-JP":Ko,"ko-KR":Mo,"lt-LT":Fo,"lv-LV":Io,"nb-NO":Ro,"nl-NL":No,"pl-PL":Lo,"pt-BR":_o,"pt-PT":zo,"ro-RO":jo,"ru-RU":Oo,"sk-SK":Vo,"sl-SI":Ho,"sr-SP":Wo,"sv-SE":Uo,"tr-TR":Go,"uk-UA":Yo,"zh-CN":qo,"zh-TW":Xo};function $f(e){return e&&e.__esModule?e.default:e}function yf(e,t,n){let{type:r="menu",isDisabled:l,trigger:i="press"}=e,o=fe(),{triggerProps:u,overlayProps:a}=wi({type:r},t,n),s=p=>{if(!l&&!(i==="longPress"&&!p.altKey)&&n&&n.current)switch(p.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("last");break;default:"continuePropagation"in p&&p.continuePropagation()}},c=rt($f(Zo),"@react-aria/menu"),{longPressProps:f}=ci({isDisabled:l||i!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),v={onPressStart(p){p.pointerType!=="touch"&&p.pointerType!=="keyboard"&&!l&&t.open(p.pointerType==="virtual"?"first":null)},onPress(p){p.pointerType==="touch"&&!l&&t.toggle()}};return delete u.onPress,{menuTriggerProps:{...u,...i==="press"?v:f,id:o,onKeyDown:s},menuProps:{...a,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const Jo=new WeakMap;function xf(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:l,onKeyUp:i,...o}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let u=pe(e,{labelable:!0}),{listProps:a}=po({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Jo.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:O(u,{onKeyDown:l,onKeyUp:i},{role:"menu",...a,onKeyDown:s=>{s.key!=="Escape"&&a.onKeyDown(s)}})}}function Ef(e,t,n){let{id:r,key:l,closeOnSelect:i,isVirtualized:o,"aria-haspopup":u,onPressStart:a,onPressUp:s,onPress:c,onPressChange:f,onPressEnd:v,onHoverStart:p,onHoverChange:b,onHoverEnd:x,onKeyDown:$,onKeyUp:C,onFocus:P,onFocusChange:S,onBlur:A}=e,w=!!u;var B;let I=(B=e.isDisabled)!==null&&B!==void 0?B:t.selectionManager.isDisabled(l);var h;let K=(h=e.isSelected)!==null&&h!==void 0?h:t.selectionManager.isSelected(l),y=Jo.get(t),D=t.collection.getItem(l),N=e.onClose||y.onClose,E=It(),R=J=>{var ut;if(!w){if(!(D==null||(ut=D.props)===null||ut===void 0)&&ut.onAction?D.props.onAction():e.onAction&&e.onAction(l),y.onAction){let gn=y.onAction;gn(l)}J.target instanceof HTMLAnchorElement&&E.open(J.target,J,D.props.href,D.props.routerOptions)}},T="menuitem";w||(t.selectionManager.selectionMode==="single"?T="menuitemradio":t.selectionManager.selectionMode==="multiple"&&(T="menuitemcheckbox"));let z=Ge(),M=Ge(),W=Ge(),ne={id:r,"aria-disabled":I||void 0,role:T,"aria-label":e["aria-label"],"aria-labelledby":z,"aria-describedby":[M,W].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":u,"aria-expanded":e["aria-expanded"]};t.selectionManager.selectionMode!=="none"&&!w&&(ne["aria-checked"]=K),o&&(ne["aria-posinset"]=D==null?void 0:D.index,ne["aria-setsize"]=mo(t.collection));let oe=J=>{J.pointerType==="keyboard"&&R(J),a==null||a(J)},Ce=J=>{J.pointerType!=="keyboard"&&(R(J),!w&&N&&(i??(t.selectionManager.selectionMode!=="multiple"||t.selectionManager.isLink(l)))&&N()),s==null||s(J)},{itemProps:he,isFocused:_e}=mn({selectionManager:t.selectionManager,key:l,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:L,isPressed:xe}=Fe({onPressStart:oe,onPress:c,onPressUp:Ce,onPressChange:f,onPressEnd:v,isDisabled:I}),{hoverProps:me}=Nt({isDisabled:I,onHoverStart(J){nt()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(l)),p==null||p(J)},onHoverChange:b,onHoverEnd:x}),{keyboardProps:ze}=si({onKeyDown:J=>{if(J.repeat){J.continuePropagation();return}switch(J.key){case" ":!I&&t.selectionManager.selectionMode==="none"&&!w&&i!==!1&&N&&N();break;case"Enter":!I&&i!==!1&&!w&&N&&N();break;default:w||J.continuePropagation(),$==null||$(J);break}},onKeyUp:C}),{focusProps:lt}=cn({onBlur:A,onFocus:P,onFocusChange:S}),it=pe(D.props);delete it.id;let ot=Wl(D.props);return{menuItemProps:{...ne,...O(it,ot,w?{onFocus:he.onFocus,"data-key":he["data-key"]}:he,L,me,ze,lt),tabIndex:he.tabIndex!=null?-1:void 0},labelProps:{id:z},descriptionProps:{id:M},keyboardShortcutProps:{id:W},isFocused:_e,isSelected:K,isPressed:xe,isDisabled:I}}function Cf(e,t){let{role:n="dialog"}=e,r=Ge();r=e["aria-label"]?void 0:r;let l=d.useRef(!1);return d.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){se(t.current);let i=setTimeout(()=>{document.activeElement===t.current&&(l.current=!0,t.current&&(t.current.blur(),se(t.current)),l.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),af(),{dialogProps:{...pe(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:i=>{l.current&&i.stopPropagation()}},titleProps:{id:r}}}var Kt;(function(e){e[e.none=0]="none",e[e.cancel=0]="cancel",e[e.move=1]="move",e[e.copy=2]="copy",e[e.link=4]="link",e[e.all=7]="all"})(Kt||(Kt={}));const Sf={...Kt,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},Pf=xr(Sf);Pf[7]="all";xr(Kt);const wf={none:"cancel",link:"link",copy:"copy",move:"move"};xr(wf);function xr(e){let t={};for(let n in e)t[e[n]]=n;return t}const Df=new Set(["text/plain","text/uri-list","text/html"]),tr="application/vnd.react-aria.items+json",Qo="application/octet-stream";function Bl(e,t){let n=new Map,r=!1,l=[];for(let i of t){let o=Object.keys(i);o.length>1&&(r=!0);let u={};for(let a of o){let s=n.get(a);s?r=!0:(s=[],n.set(a,s));let c=i[a];u[a]=c,s.push(c)}l.push(u)}for(let[i,o]of n)if(Df.has(i)){let u=o.join(`
31
- `);e.items.add(u,i)}else e.items.add(o[0],i);if(r){let i=JSON.stringify(l);e.items.add(i,tr)}}function Tf(e){let t=[],n=!1;if(e.types.includes(tr))try{let r=e.getData(tr),l=JSON.parse(r);for(let i of l)t.push({kind:"text",types:new Set(Object.keys(i)),getText:o=>Promise.resolve(i[o])});n=!0}catch{}if(!n){let r=new Map;for(let l of e.items)if(l.kind==="string")r.set(l.type||Qo,e.getData(l.type));else if(l.kind==="file")if(typeof l.webkitGetAsEntry=="function"){let i=l.webkitGetAsEntry();if(!i)continue;i.isFile?t.push(nr(l.getAsFile())):i.isDirectory&&t.push(eu(i))}else t.push(nr(l.getAsFile()));r.size>0&&t.push({kind:"text",types:new Set(r.keys()),getText:l=>Promise.resolve(r.get(l))})}return t}function Bf(e){return typeof e.text=="function"?e.text():new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{t(r.result)},r.onerror=n,r.readAsText(e)})}function nr(e){return{kind:"file",type:e.type||Qo,name:e.name,getText:()=>Bf(e),getFile:()=>Promise.resolve(e)}}function eu(e){return{kind:"directory",name:e.name,getEntries:()=>kf(e)}}async function*kf(e){let t=e.createReader(),n;do{n=await new Promise((r,l)=>{t.readEntries(r,l)});for(let r of n)if(r.isFile){let l=await Af(r);yield nr(l)}else r.isDirectory&&(yield eu(r))}while(n.length>0)}function Af(e){return new Promise((t,n)=>e.file(t,n))}Kt.none;const Nn=new Map;function ft(e,t){let n=Nn.get(e);if(!n){let r=new Set,l=i=>{for(let o of r)o(i)};n={listener:l,handlers:r},Nn.set(e,n),document.addEventListener(e,l)}return n.handlers.add(t),()=>{n.handlers.delete(t),n.handlers.size===0&&(document.removeEventListener(e,n.listener),Nn.delete(e))}}function Kf(e){let{isDisabled:t}=e,n=d.useRef(!1),{focusProps:r}=cn({onFocusChange:c=>{n.current=c}}),l=te(c=>{n.current&&e.getItems&&c.preventDefault()}),i=te(c=>{var f;!n.current||!e.getItems||(c.preventDefault(),Bl(c.clipboardData,e.getItems()),(f=e.onCopy)===null||f===void 0||f.call(e))}),o=te(c=>{n.current&&e.onCut&&e.getItems&&c.preventDefault()}),u=te(c=>{!n.current||!e.onCut||!e.getItems||(c.preventDefault(),Bl(c.clipboardData,e.getItems()),e.onCut())}),a=te(c=>{n.current&&e.onPaste&&c.preventDefault()}),s=te(c=>{if(!n.current||!e.onPaste)return;c.preventDefault();let f=Tf(c.clipboardData);e.onPaste(f)});return d.useEffect(()=>{if(!t)return we(ft("beforecopy",l),ft("copy",i),ft("beforecut",o),ft("cut",u),ft("beforepaste",a),ft("paste",s))},[t,l,i,o,u,a,s]),{clipboardProps:r}}class tu{isCell(t){return t.type==="cell"}isRow(t){return t.type==="row"||t.type==="item"}isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findPreviousKey(t,n){let r=t!=null?this.collection.getKeyBefore(t):this.collection.getLastKey();for(;r!=null;){let l=this.collection.getItem(r);if(!this.isDisabled(l)&&(!n||n(l)))return r;r=this.collection.getKeyBefore(r)}}findNextKey(t,n){let r=t!=null?this.collection.getKeyAfter(t):this.collection.getFirstKey();for(;r!=null;){let l=this.collection.getItem(r);if(!this.isDisabled(l)&&(!n||n(l)))return r;r=this.collection.getKeyAfter(r)}}getKeyBelow(t){let n=this.collection.getItem(t);if(n&&(this.isCell(n)&&(t=n.parentKey),t=this.findNextKey(t,r=>r.type==="item"),t!=null)){if(this.isCell(n)){let r=this.collection.getItem(t);return We(le(r,this.collection),n.index).key}if(this.focusMode==="row")return t}}getKeyAbove(t){let n=this.collection.getItem(t);if(n&&(this.isCell(n)&&(t=n.parentKey),t=this.findPreviousKey(t,r=>r.type==="item"),t!=null)){if(this.isCell(n)){let r=this.collection.getItem(t);return We(le(r,this.collection),n.index).key}if(this.focusMode==="row")return t}}getKeyRightOf(t){let n=this.collection.getItem(t);if(n){if(this.isRow(n)){let r=le(n,this.collection);return this.direction==="rtl"?Ue(r).key:Ae(r).key}if(this.isCell(n)){let r=this.collection.getItem(n.parentKey),l=le(r,this.collection),i=this.direction==="rtl"?We(l,n.index-1):We(l,n.index+1);return i?i.key:this.focusMode==="row"?n.parentKey:this.direction==="rtl"?this.getFirstKey(t):this.getLastKey(t)}}}getKeyLeftOf(t){let n=this.collection.getItem(t);if(n){if(this.isRow(n)){let r=le(n,this.collection);return this.direction==="rtl"?Ae(r).key:Ue(r).key}if(this.isCell(n)){let r=this.collection.getItem(n.parentKey),l=le(r,this.collection),i=this.direction==="rtl"?We(l,n.index+1):We(l,n.index-1);return i?i.key:this.focusMode==="row"?n.parentKey:this.direction==="rtl"?this.getLastKey(t):this.getFirstKey(t)}}}getFirstKey(t,n){let r;if(t!=null){if(r=this.collection.getItem(t),!r)return;if(this.isCell(r)&&!n){let l=this.collection.getItem(r.parentKey);return Ae(le(l,this.collection)).key}}if(t=this.findNextKey(null,l=>l.type==="item"),t!=null&&r&&this.isCell(r)&&n||this.focusMode==="cell"){let l=this.collection.getItem(t);t=Ae(le(l,this.collection)).key}return t}getLastKey(t,n){let r;if(t!=null){if(r=this.collection.getItem(t),!r)return;if(this.isCell(r)&&!n){let l=this.collection.getItem(r.parentKey),i=le(l,this.collection);return Ue(i).key}}if(t=this.findPreviousKey(null,l=>l.type==="item"),t!=null&&r&&this.isCell(r)&&n||this.focusMode==="cell"){let l=this.collection.getItem(t),i=le(l,this.collection);t=Ue(i).key}return t}getKeyPageAbove(t){let n=this.layoutDelegate.getItemRect(t);if(!n)return null;let r=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>r;)t=this.getKeyAbove(t),n=this.layoutDelegate.getItemRect(t);return t}getKeyPageBelow(t){let n=this.layoutDelegate.getItemRect(t);if(!n)return null;let r=this.layoutDelegate.getVisibleRect().height,l=Math.min(this.layoutDelegate.getContentSize().height,n.y+r);for(;n&&n.y+n.height<l;){let i=this.getKeyBelow(t);if(i==null)break;n=this.layoutDelegate.getItemRect(i),t=i}return t}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,l=n??this.getFirstKey(),i=r.getItem(l);i.type==="cell"&&(l=i.parentKey);let o=!1;for(;l!=null;){let u=r.getItem(l);if(u.textValue){let a=u.textValue.slice(0,t.length);if(this.collator.compare(a,t)===0)return this.isRow(u)&&this.focusMode==="cell"?Ae(le(u,this.collection)).key:u.key}l=this.findNextKey(l,a=>a.type==="item"),l==null&&!o&&(l=this.getFirstKey(),o=!0)}return null}constructor(t){this.collection=t.collection,this.disabledKeys=t.disabledKeys,this.disabledBehavior=t.disabledBehavior||"all",this.direction=t.direction,this.collator=t.collator,this.layoutDelegate=t.layoutDelegate||(t.layout?new Mf(t.layout):new er(t.ref)),this.focusMode=t.focusMode||"row"}}class Mf{getContentSize(){return this.layout.getContentSize()}getItemRect(t){var n;return((n=this.layout.getLayoutInfo(t))===null||n===void 0?void 0:n.rect)||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}constructor(t){this.layout=t}}const Er=new WeakMap;var nu={};nu={deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`};var ru={};ru={deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`};var lu={};lu={deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`};var iu={};iu={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var ou={};ou={deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`};var uu={};uu={deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`};var au={};au={deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var su={};su={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var cu={};cu={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var du={};du={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var fu={};fu={deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`};var pu={};pu={deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`};var vu={};vu={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var hu={};hu={deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`};var mu={};mu={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var bu={};bu={deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`};var gu={};gu={deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`};var $u={};$u={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var yu={};yu={deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`};var xu={};xu={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var Eu={};Eu={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var Cu={};Cu={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var Su={};Su={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var Pu={};Pu={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var wu={};wu={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var Du={};Du={deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`};var Tu={};Tu={deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`};var Bu={};Bu={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var ku={};ku={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var Au={};Au={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var Ku={};Ku={deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`};var Mu={};Mu={deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`};var Fu={};Fu={deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`};var Iu={};Iu={deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`};var Cr={};Cr={"ar-AE":nu,"bg-BG":ru,"cs-CZ":lu,"da-DK":iu,"de-DE":ou,"el-GR":uu,"en-US":au,"es-ES":su,"et-EE":cu,"fi-FI":du,"fr-FR":fu,"he-IL":pu,"hr-HR":vu,"hu-HU":hu,"it-IT":mu,"ja-JP":bu,"ko-KR":gu,"lt-LT":$u,"lv-LV":yu,"nb-NO":xu,"nl-NL":Eu,"pl-PL":Cu,"pt-BR":Su,"pt-PT":Pu,"ro-RO":wu,"ru-RU":Du,"sk-SK":Tu,"sl-SI":Bu,"sr-SP":ku,"sv-SE":Au,"tr-TR":Ku,"uk-UA":Mu,"zh-CN":Fu,"zh-TW":Iu};function Ff(e){return e&&e.__esModule?e.default:e}function If(e,t){let{getRowText:n=o=>{var u,a,s,c;return(c=(u=(a=t.collection).getTextValue)===null||u===void 0?void 0:u.call(a,o))!==null&&c!==void 0?c:(s=t.collection.getItem(o))===null||s===void 0?void 0:s.textValue}}=e,r=rt(Ff(Cr),"@react-aria/grid"),l=t.selectionManager.rawSelection,i=d.useRef(l);Xl(()=>{var o;if(!t.selectionManager.isFocused){i.current=l;return}let u=kl(l,i.current),a=kl(i.current,l),s=t.selectionManager.selectionBehavior==="replace",c=[];if(t.selectionManager.selectedKeys.size===1&&s){if(t.collection.getItem(t.selectionManager.selectedKeys.keys().next().value)){let f=n(t.selectionManager.selectedKeys.keys().next().value);f&&c.push(r.format("selectedItem",{item:f}))}}else if(u.size===1&&a.size===0){let f=n(u.keys().next().value);f&&c.push(r.format("selectedItem",{item:f}))}else if(a.size===1&&u.size===0&&t.collection.getItem(a.keys().next().value)){let f=n(a.keys().next().value);f&&c.push(r.format("deselectedItem",{item:f}))}t.selectionManager.selectionMode==="multiple"&&(c.length===0||l==="all"||l.size>1||i.current==="all"||((o=i.current)===null||o===void 0?void 0:o.size)>1)&&c.push(l==="all"?r.format("selectedAll"):r.format("selectedCount",{count:l.size})),c.length>0&&nn(c.join(" ")),i.current=l},[l])}function kl(e,t){let n=new Set;if(e==="all"||t==="all")return n;for(let r of e.keys())t.has(r)||n.add(r);return n}function Rf(e){return e&&e.__esModule?e.default:e}function Nf(e){let t=rt(Rf(Cr),"@react-aria/grid"),n=ai(),r=(n==="pointer"||n==="virtual"||n==null)&&typeof window<"u"&&"ontouchstart"in window,l=d.useMemo(()=>{let o=e.selectionManager.selectionMode,u=e.selectionManager.selectionBehavior,a;return r&&(a=t.format("longPressToSelect")),u==="replace"&&o!=="none"&&e.hasItemActions?a:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,r]);return an(l)}function Lf(e,t,n){let{isVirtualized:r,keyboardDelegate:l,focusMode:i,scrollRef:o,getRowText:u,onRowAction:a,onCellAction:s}=e,{selectionManager:c}=t;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let f=vn({usage:"search",sensitivity:"base"}),{direction:v}=Le(),p=t.selectionManager.disabledBehavior,b=d.useMemo(()=>l||new tu({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:p,ref:n,direction:v,collator:f,focusMode:i}),[l,t.collection,t.disabledKeys,p,n,v,f,i]),{collectionProps:x}=co({ref:n,selectionManager:c,keyboardDelegate:b,isVirtualized:r,scrollRef:o}),$=fe(e.id);Er.set(t,{keyboardDelegate:b,actions:{onRowAction:a,onCellAction:s}});let C=Nf({selectionManager:c,hasItemActions:!!(a||s)}),P=pe(e,{labelable:!0}),S=d.useCallback(I=>{if(c.isFocused){I.currentTarget.contains(I.target)||c.setFocused(!1);return}I.currentTarget.contains(I.target)&&c.setFocused(!0)},[c]),A=d.useMemo(()=>({onBlur:x.onBlur,onFocus:S}),[S,x.onBlur]),w=fd(n,{isDisabled:t.collection.size!==0}),B=O(P,{role:"grid",id:$,"aria-multiselectable":c.selectionMode==="multiple"?"true":void 0},t.isKeyboardNavigationDisabled?A:x,t.collection.size===0&&{tabIndex:w?-1:0},C);return r&&(B["aria-rowcount"]=t.collection.size,B["aria-colcount"]=t.collection.columnCount),If({getRowText:u},t),{gridProps:B}}function _f(){return{rowGroupProps:{role:"rowgroup"}}}function zf(e,t,n){var r,l;let{node:i,isVirtualized:o,shouldSelectOnPressUp:u,onAction:a}=e,{actions:s}=Er.get(t),c=s.onRowAction?()=>s.onRowAction(i.key):a,{itemProps:f,...v}=mn({selectionManager:t.selectionManager,key:i.key,ref:n,isVirtualized:o,shouldSelectOnPressUp:u,onAction:c||!(i==null||(r=i.props)===null||r===void 0)&&r.onAction?we(i==null||(l=i.props)===null||l===void 0?void 0:l.onAction,c):void 0,isDisabled:t.collection.size===0}),p=t.selectionManager.isSelected(i.key),b={role:"row","aria-selected":t.selectionManager.selectionMode!=="none"?p:void 0,"aria-disabled":v.isDisabled||void 0,...f};return o&&(b["aria-rowindex"]=i.index+1),{rowProps:b,...v}}function Ru(e,t,n){let{node:r,isVirtualized:l,focusMode:i="child",shouldSelectOnPressUp:o,onAction:u}=e,{direction:a}=Le(),{keyboardDelegate:s,actions:{onCellAction:c}}=Er.get(t),f=d.useRef(null),v=()=>{let S=ve(n.current);if(i==="child"){if(n.current.contains(document.activeElement)&&n.current!==document.activeElement)return;let A=t.selectionManager.childFocusStrategy==="last"?Ln(S):S.firstChild();if(A){se(A);return}}(f.current!=null&&r.key!==f.current||!n.current.contains(document.activeElement))&&se(n.current)},{itemProps:p,isPressed:b}=mn({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:l,focus:v,shouldSelectOnPressUp:o,onAction:c?()=>c(r.key):u,isDisabled:t.collection.size===0}),C=O(p,{role:"gridcell",onKeyDownCapture:S=>{if(!S.currentTarget.contains(S.target)||t.isKeyboardNavigationDisabled)return;let A=ve(n.current);switch(A.currentNode=document.activeElement,S.key){case"ArrowLeft":{let w=a==="rtl"?A.nextNode():A.previousNode();if(i==="child"&&w===n.current&&(w=null),S.preventDefault(),S.stopPropagation(),w)se(w),He(w,{containingElement:Ve(n.current)});else{if(s.getKeyLeftOf(r.key)!==r.key){n.current.parentElement.dispatchEvent(new KeyboardEvent(S.nativeEvent.type,S.nativeEvent));break}i==="cell"&&a==="rtl"?(se(n.current),He(n.current,{containingElement:Ve(n.current)})):(A.currentNode=n.current,w=a==="rtl"?A.firstChild():Ln(A),w&&(se(w),He(w,{containingElement:Ve(n.current)})))}break}case"ArrowRight":{let w=a==="rtl"?A.previousNode():A.nextNode();if(i==="child"&&w===n.current&&(w=null),S.preventDefault(),S.stopPropagation(),w)se(w),He(w,{containingElement:Ve(n.current)});else{if(s.getKeyRightOf(r.key)!==r.key){n.current.parentElement.dispatchEvent(new KeyboardEvent(S.nativeEvent.type,S.nativeEvent));break}i==="cell"&&a==="ltr"?(se(n.current),He(n.current,{containingElement:Ve(n.current)})):(A.currentNode=n.current,w=a==="rtl"?Ln(A):A.firstChild(),w&&(se(w),He(w,{containingElement:Ve(n.current)})))}break}case"ArrowUp":case"ArrowDown":!S.altKey&&n.current.contains(S.target)&&(S.stopPropagation(),S.preventDefault(),n.current.parentElement.dispatchEvent(new KeyboardEvent(S.nativeEvent.type,S.nativeEvent)));break}},onFocus:S=>{if(f.current=r.key,S.target!==n.current){nt()||t.selectionManager.setFocusedKey(r.key);return}requestAnimationFrame(()=>{i==="child"&&document.activeElement===n.current&&v()})}});var P;return l&&(C["aria-colindex"]=((P=r.colIndex)!==null&&P!==void 0?P:r.index)+1),o&&C.tabIndex!=null&&C.onPointerDown==null&&(C.onPointerDown=S=>{let A=S.currentTarget,w=A.getAttribute("tabindex");A.removeAttribute("tabindex"),requestAnimationFrame(()=>{A.setAttribute("tabindex",w)})}),{gridCellProps:C,isPressed:b}}function Ln(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}const Nu=new WeakMap;function jf(e,t,n){let{value:r,children:l,"aria-label":i,"aria-labelledby":o}=e;const u=e.isDisabled||t.isDisabled;let a=l!=null,s=i!=null||o!=null;!a&&!s&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let c=t.selectedValue===r,f=h=>{h.stopPropagation(),t.setSelectedValue(r)},{pressProps:v,isPressed:p}=Fe({isDisabled:u}),{pressProps:b,isPressed:x}=Fe({isDisabled:u,onPress(){t.setSelectedValue(r)}}),{focusableProps:$}=gt(O(e,{onFocus:()=>t.setLastFocusedValue(r)}),n),C=O(v,$),P=pe(e,{labelable:!0}),S=-1;t.selectedValue!=null?t.selectedValue===r&&(S=0):(t.lastFocusedValue===r||t.lastFocusedValue==null)&&(S=0),u&&(S=void 0);let{name:A,descriptionId:w,errorMessageId:B,validationBehavior:I}=Nu.get(t);return sn(n,t.selectedValue,t.setSelectedValue),vr({validationBehavior:I},t,n),{labelProps:O(b,{onClick:h=>h.preventDefault()}),inputProps:O(P,{...C,type:"radio",name:A,tabIndex:S,disabled:u,required:t.isRequired&&I==="native",checked:c,value:r,onChange:f,"aria-describedby":[e["aria-describedby"],t.isInvalid?B:null,w].filter(Boolean).join(" ")||void 0}),isDisabled:u,isSelected:c,isPressed:p||x}}function Of(e,t){let{name:n,isReadOnly:r,isRequired:l,isDisabled:i,orientation:o="vertical",validationBehavior:u="aria"}=e,{direction:a}=Le(),{isInvalid:s,validationErrors:c,validationDetails:f}=t.displayValidation,{labelProps:v,fieldProps:p,descriptionProps:b,errorMessageProps:x}=mr({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||c}),$=pe(e,{labelable:!0}),{focusWithinProps:C}=Rt({onBlurWithin(A){var w;(w=e.onBlur)===null||w===void 0||w.call(e,A),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),P=A=>{let w;switch(A.key){case"ArrowRight":a==="rtl"&&o!=="vertical"?w="prev":w="next";break;case"ArrowLeft":a==="rtl"&&o!=="vertical"?w="next":w="prev";break;case"ArrowDown":w="next";break;case"ArrowUp":w="prev";break;default:return}A.preventDefault();let B=ve(A.currentTarget,{from:A.target}),I;w==="next"?(I=B.nextNode(),I||(B.currentNode=A.currentTarget,I=B.firstChild())):(I=B.previousNode(),I||(B.currentNode=A.currentTarget,I=B.lastChild())),I&&(I.focus(),t.setSelectedValue(I.value))},S=fe(n);return Nu.set(t,{name:S,descriptionId:b.id,errorMessageId:x.id,validationBehavior:u}),{radioGroupProps:O($,{role:"radiogroup",onKeyDown:P,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":r||void 0,"aria-required":l||void 0,"aria-disabled":i||void 0,"aria-orientation":o,...p,...C}),labelProps:v,descriptionProps:b,errorMessageProps:x,isInvalid:s,validationErrors:c,validationDetails:f}}var Lu={};Lu={"Clear search":"مسح البحث"};var _u={};_u={"Clear search":"Изчистване на търсене"};var zu={};zu={"Clear search":"Vymazat hledání"};var ju={};ju={"Clear search":"Ryd søgning"};var Ou={};Ou={"Clear search":"Suche zurücksetzen"};var Vu={};Vu={"Clear search":"Απαλοιφή αναζήτησης"};var Hu={};Hu={"Clear search":"Clear search"};var Wu={};Wu={"Clear search":"Borrar búsqueda"};var Uu={};Uu={"Clear search":"Tühjenda otsing"};var Gu={};Gu={"Clear search":"Tyhjennä haku"};var Yu={};Yu={"Clear search":"Effacer la recherche"};var qu={};qu={"Clear search":"נקה חיפוש"};var Xu={};Xu={"Clear search":"Obriši pretragu"};var Zu={};Zu={"Clear search":"Keresés törlése"};var Ju={};Ju={"Clear search":"Cancella ricerca"};var Qu={};Qu={"Clear search":"検索をクリア"};var ea={};ea={"Clear search":"검색 지우기"};var ta={};ta={"Clear search":"Išvalyti iešką"};var na={};na={"Clear search":"Notīrīt meklēšanu"};var ra={};ra={"Clear search":"Tøm søk"};var la={};la={"Clear search":"Zoekactie wissen"};var ia={};ia={"Clear search":"Wyczyść zawartość wyszukiwania"};var oa={};oa={"Clear search":"Limpar pesquisa"};var ua={};ua={"Clear search":"Limpar pesquisa"};var aa={};aa={"Clear search":"Ştergeţi căutarea"};var sa={};sa={"Clear search":"Очистить поиск"};var ca={};ca={"Clear search":"Vymazať vyhľadávanie"};var da={};da={"Clear search":"Počisti iskanje"};var fa={};fa={"Clear search":"Obriši pretragu"};var pa={};pa={"Clear search":"Rensa sökning"};var va={};va={"Clear search":"Aramayı temizle"};var ha={};ha={"Clear search":"Очистити пошук"};var ma={};ma={"Clear search":"清除搜索"};var ba={};ba={"Clear search":"清除搜尋條件"};var ga={};ga={"ar-AE":Lu,"bg-BG":_u,"cs-CZ":zu,"da-DK":ju,"de-DE":Ou,"el-GR":Vu,"en-US":Hu,"es-ES":Wu,"et-EE":Uu,"fi-FI":Gu,"fr-FR":Yu,"he-IL":qu,"hr-HR":Xu,"hu-HU":Zu,"it-IT":Ju,"ja-JP":Qu,"ko-KR":ea,"lt-LT":ta,"lv-LV":na,"nb-NO":ra,"nl-NL":la,"pl-PL":ia,"pt-BR":oa,"pt-PT":ua,"ro-RO":aa,"ru-RU":sa,"sk-SK":ca,"sl-SI":da,"sr-SP":fa,"sv-SE":pa,"tr-TR":va,"uk-UA":ha,"zh-CN":ma,"zh-TW":ba};function Vf(e){return e&&e.__esModule?e.default:e}function Hf(e,t,n){let r=rt(Vf(ga),"@react-aria/searchfield"),{isDisabled:l,isReadOnly:i,onSubmit:o,onClear:u,type:a="search"}=e,s=C=>{const P=C.key;P==="Enter"&&(l||i)&&C.preventDefault(),!(l||i)&&(P==="Enter"&&o&&(C.preventDefault(),o(t.value)),P==="Escape"&&(t.value===""?C.continuePropagation():(t.setValue(""),u&&u())))},c=()=>{t.setValue(""),u&&u()},f=()=>{var C;(C=n.current)===null||C===void 0||C.focus()},{labelProps:v,inputProps:p,descriptionProps:b,errorMessageProps:x,...$}=xi({...e,value:t.value,onChange:t.setValue,onKeyDown:i?e.onKeyDown:we(s,e.onKeyDown),type:a},n);return{labelProps:v,inputProps:{...p,defaultValue:void 0},clearButtonProps:{"aria-label":r.format("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:l||i,onPress:c,onPressStart:f},descriptionProps:b,errorMessageProps:x,...$}}const $a=new WeakMap;function ya(e,t,n){let{keyboardDelegate:r,isDisabled:l,isRequired:i,name:o,validationBehavior:u="aria"}=e,a=vn({usage:"search",sensitivity:"base"}),s=d.useMemo(()=>r||new fo(t.collection,t.disabledKeys,null,a),[r,t.collection,t.disabledKeys,a]),{menuTriggerProps:c,menuProps:f}=yf({isDisabled:l,type:"listbox"},t,n),v=h=>{switch(h.key){case"ArrowLeft":{h.preventDefault();let K=t.selectedKey!=null?s.getKeyAbove(t.selectedKey):s.getFirstKey();K&&t.setSelectedKey(K);break}case"ArrowRight":{h.preventDefault();let K=t.selectedKey!=null?s.getKeyBelow(t.selectedKey):s.getFirstKey();K&&t.setSelectedKey(K);break}}},{typeSelectProps:p}=so({keyboardDelegate:s,selectionManager:t.selectionManager,onTypeSelect(h){t.setSelectedKey(h)}}),{isInvalid:b,validationErrors:x,validationDetails:$}=t.displayValidation,{labelProps:C,fieldProps:P,descriptionProps:S,errorMessageProps:A}=mr({...e,labelElementType:"span",isInvalid:b,errorMessage:e.errorMessage||x});p.onKeyDown=p.onKeyDownCapture,delete p.onKeyDownCapture;let w=pe(e,{labelable:!0}),B=O(p,c,P),I=fe();return $a.set(t,{isDisabled:l,isRequired:i,name:o,validationBehavior:u}),{labelProps:{...C,onClick:()=>{e.isDisabled||(n.current.focus(),ui("keyboard"))}},triggerProps:O(w,{...B,isDisabled:l,onKeyDown:we(B.onKeyDown,v,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[I,B["aria-labelledby"],B["aria-label"]&&!B["aria-labelledby"]?B.id:null].filter(Boolean).join(" "),onFocus(h){t.isFocused||(e.onFocus&&e.onFocus(h),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(h){t.isOpen||(e.onBlur&&e.onBlur(h),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:I},menuProps:{...f,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:h=>{h.currentTarget.contains(h.relatedTarget)||(e.onBlur&&e.onBlur(h),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[P["aria-labelledby"],B["aria-label"]&&!P["aria-labelledby"]?B.id:null].filter(Boolean).join(" ")},descriptionProps:S,errorMessageProps:A,isInvalid:b,validationErrors:x,validationDetails:$}}function Wf(e,t,n){let r=$a.get(t)||{},{autoComplete:l,name:i=r.name,isDisabled:o=r.isDisabled}=e,{validationBehavior:u,isRequired:a}=r,s=ai(),{visuallyHiddenProps:c}=yi();sn(e.selectRef,t.selectedKey,t.setSelectedKey),vr({validationBehavior:u,focus:()=>n.current.focus()},t,e.selectRef);var f;return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{type:"text",tabIndex:s==null||t.isFocused||t.isOpen?-1:0,style:{fontSize:16},onFocus:()=>n.current.focus(),disabled:o},selectProps:{tabIndex:-1,autoComplete:l,disabled:o,required:u==="native"&&a,name:i,value:(f=t.selectedKey)!==null&&f!==void 0?f:"",onChange:v=>t.setSelectedKey(v.target.value)}}}function xa(e){let{state:t,triggerRef:n,label:r,name:l,isDisabled:i}=e,o=d.useRef(null),{containerProps:u,inputProps:a,selectProps:s}=Wf({...e,selectRef:o},t,n);var c;return t.collection.size<=300?d.createElement("div",{...u,"data-testid":"hidden-select-container"},d.createElement("input",a),d.createElement("label",null,r,d.createElement("select",{...s,ref:o},d.createElement("option",null),[...t.collection.getKeys()].map(f=>{let v=t.collection.getItem(f);if(v.type==="item")return d.createElement("option",{key:v.key,value:v.key},v.textValue)})))):l?d.createElement("input",{type:"hidden",autoComplete:s.autoComplete,name:l,disabled:i,value:(c=t.selectedKey)!==null&&c!==void 0?c:""}):null}function Uf(e,t,n){let{labelProps:r,inputProps:l,isSelected:i,isPressed:o,isDisabled:u,isReadOnly:a}=Md(e,t,n);return{labelProps:r,inputProps:{...l,role:"switch",checked:i},isSelected:i,isPressed:o,isDisabled:u,isReadOnly:a}}const Sr=new WeakMap;function rr(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Gf(e,t){let n=Sr.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${rr(t)}`}function Ea(e,t,n){let r=Sr.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${rr(t)}-${rr(n)}`}function Yf(e,t){return[...e.collection.rowHeaderColumnKeys].map(n=>Ea(e,t,n)).join(" ")}var Ca={};Ca={ascending:"تصاعدي",ascendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,columnSize:e=>`${e.value} بالبكسل`,descending:"تنازلي",descendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var Sa={};Sa={ascending:"възходящ",ascendingSort:e=>`сортирано по колона ${e.columnName} във възходящ ред`,columnSize:e=>`${e.value} пиксела`,descending:"низходящ",descendingSort:e=>`сортирано по колона ${e.columnName} в низходящ ред`,resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var Pa={};Pa={ascending:"vzestupně",ascendingSort:e=>`řazeno vzestupně podle sloupce ${e.columnName}`,columnSize:e=>`${e.value} pixelů`,descending:"sestupně",descendingSort:e=>`řazeno sestupně podle sloupce ${e.columnName}`,resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var wa={};wa={ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende rækkefølge`,columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende rækkefølge`,resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var Da={};Da={ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var Ta={};Ta={ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var Ba={};Ba={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:"Press Enter to start resizing"};var ka={};ka={ascending:"de subida",ascendingSort:e=>`ordenado por columna ${e.columnName} en orden de subida`,columnSize:e=>`${e.value} píxeles`,descending:"de bajada",descendingSort:e=>`ordenado por columna ${e.columnName} en orden de bajada`,resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var Aa={};Aa={ascending:"tõusev järjestus",ascendingSort:e=>`sorditud veeru järgi ${e.columnName} tõusvas järjestuses`,columnSize:e=>`${e.value} pikslit`,descending:"laskuv järjestus",descendingSort:e=>`sorditud veeru järgi ${e.columnName} laskuvas järjestuses`,resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var Ka={};Ka={ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa järjestyksessä`,columnSize:e=>`${e.value} pikseliä`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa järjestyksessä`,resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var Ma={};Ma={ascending:"croissant",ascendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre croissant`,columnSize:e=>`${e.value} pixels`,descending:"décroissant",descendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre décroissant`,resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var Fa={};Fa={ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var Ia={};Ia={ascending:"rastući",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastućem redoslijedom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padajućim redoslijedom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var Ra={};Ra={ascending:"növekvő",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, növekvő sorrendben`,columnSize:e=>`${e.value} képpont`,descending:"csökkenő",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, csökkenő sorrendben`,resizerDescription:"Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"};var Na={};Na={ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var La={};La={ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var _a={};_a={ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var za={};za={ascending:"didėjančia tvarka",ascendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} didėjančia tvarka`,columnSize:e=>`${e.value} piks.`,descending:"mažėjančia tvarka",descendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} mažėjančia tvarka`,resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var ja={};ja={ascending:"augošā secībā",ascendingSort:e=>`kārtots pēc kolonnas ${e.columnName} augošā secībā`,columnSize:e=>`${e.value} pikseļi`,descending:"dilstošā secībā",descendingSort:e=>`kārtots pēc kolonnas ${e.columnName} dilstošā secībā`,resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var Oa={};Oa={ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkefølge`,columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkefølge`,resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var Va={};Va={ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var Ha={};Ha={ascending:"rosnąco",ascendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku rosnącym`,columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malejąco",descendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku malejącym`,resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var Wa={};Wa={ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var Ua={};Ua={ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var Ga={};Ga={ascending:"crescătoare",ascendingSort:e=>`sortate după coloana ${e.columnName} în ordine crescătoare`,columnSize:e=>`${e.value} pixeli`,descending:"descrescătoare",descendingSort:e=>`sortate după coloana ${e.columnName} în ordine descrescătoare`,resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var Ya={};Ya={ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var qa={};qa={ascending:"vzostupne",ascendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,columnSize:e=>`Počet pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var Xa={};Xa={ascending:"naraščajoče",ascendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v naraščajočem vrstnem redu`,columnSize:e=>`${e.value} slikovnih pik`,descending:"padajoče",descendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v padajočem vrstnem redu`,resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var Za={};Za={ascending:"rastući",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastućim redosledom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`sortirano po kolonama ${e.columnName} padajućim redosledom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var Ja={};Ja={ascending:"stigande",ascendingSort:e=>`sorterat på kolumn ${e.columnName} i stigande ordning`,columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat på kolumn ${e.columnName} i fallande ordning`,resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var Qa={};Qa={ascending:"artan sırada",ascendingSort:e=>`${e.columnName} sütuna göre artan düzende sırala`,columnSize:e=>`${e.value} piksel`,descending:"azalan sırada",descendingSort:e=>`${e.columnName} sütuna göre azalan düzende sırala`,resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var es={};es={ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var ts={};ts={ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,resizerDescription:"按“输入”键开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var ns={};ns={ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var Pr={};Pr={"ar-AE":Ca,"bg-BG":Sa,"cs-CZ":Pa,"da-DK":wa,"de-DE":Da,"el-GR":Ta,"en-US":Ba,"es-ES":ka,"et-EE":Aa,"fi-FI":Ka,"fr-FR":Ma,"he-IL":Fa,"hr-HR":Ia,"hu-HU":Ra,"it-IT":Na,"ja-JP":La,"ko-KR":_a,"lt-LT":za,"lv-LV":ja,"nb-NO":Oa,"nl-NL":Va,"pl-PL":Ha,"pt-BR":Wa,"pt-PT":Ua,"ro-RO":Ga,"ru-RU":Ya,"sk-SK":qa,"sl-SI":Xa,"sr-SP":Za,"sv-SE":Ja,"tr-TR":Qa,"uk-UA":es,"zh-CN":ts,"zh-TW":ns};class qf extends tu{isCell(t){return t.type==="cell"||t.type==="rowheader"||t.type==="column"}getKeyBelow(t){let n=this.collection.getItem(t);if(n){if(n.type==="column"){let r=Ae(le(n,this.collection));if(r)return r.key;let l=this.getFirstKey();if(l==null)return;let i=this.collection.getItem(l);return We(le(i,this.collection),n.index).key}return super.getKeyBelow(t)}}getKeyAbove(t){let n=this.collection.getItem(t);if(!n)return;if(n.type==="column"){let l=this.collection.getItem(n.parentKey);return l&&l.type==="column"?l.key:void 0}let r=super.getKeyAbove(t);return r!=null&&this.collection.getItem(r).type!=="headerrow"?r:this.isCell(n)?this.collection.columns[n.index].key:this.collection.columns[0].key}findNextColumnKey(t){let n=this.findNextKey(t.key,l=>l.type==="column");if(n!=null)return n;let r=this.collection.headerRows[t.level];for(let l of le(r,this.collection))if(l.type==="column")return l.key}findPreviousColumnKey(t){let n=this.findPreviousKey(t.key,i=>i.type==="column");if(n!=null)return n;let r=this.collection.headerRows[t.level],l=[...le(r,this.collection)];for(let i=l.length-1;i>=0;i--){let o=l[i];if(o.type==="column")return o.key}}getKeyRightOf(t){let n=this.collection.getItem(t);if(n)return n.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(n):this.findNextColumnKey(n):super.getKeyRightOf(t)}getKeyLeftOf(t){let n=this.collection.getItem(t);if(n)return n.type==="column"?this.direction==="rtl"?this.findNextColumnKey(n):this.findPreviousColumnKey(n):super.getKeyLeftOf(t)}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,l=n??this.getFirstKey();if(l==null)return null;let i=r.getItem(l);i.type==="cell"&&(l=i.parentKey);let o=!1;for(;l!=null;){let u=r.getItem(l);for(let a of le(u,this.collection)){let s=r.columns[a.index];if(r.rowHeaderColumnKeys.has(s.key)&&a.textValue){let c=a.textValue.slice(0,t.length);if(this.collator.compare(c,t)===0)return(n!=null?r.getItem(n):i).type==="cell"?a.key:u.key}}l=this.getKeyBelow(l),l==null&&!o&&(l=this.getFirstKey(),o=!0)}return null}}let Xf=!1;function ln(){return Xf}function Zf(e){return e&&e.__esModule?e.default:e}function Jf(e,t,n){let{keyboardDelegate:r,isVirtualized:l,layoutDelegate:i,layout:o}=e,u=vn({usage:"search",sensitivity:"base"}),{direction:a}=Le(),s=t.selectionManager.disabledBehavior,c=d.useMemo(()=>r||new qf({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:s,ref:n,direction:a,collator:u,layoutDelegate:i,layout:o}),[r,t.collection,t.disabledKeys,s,n,a,u,i,o]),f=fe(e.id);Sr.set(t,f);let{gridProps:v}=Lf({...e,id:f,keyboardDelegate:c},t,n);l&&(v["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),ln()&&"expandedKeys"in t&&(v.role="treegrid");let{column:p,direction:b}=t.sortDescriptor||{},x=rt(Zf(Pr),"@react-aria/table"),$=d.useMemo(()=>{var P;let S=(P=t.collection.columns.find(A=>A.key===p))===null||P===void 0?void 0:P.textValue;return b&&p?x.format(`${b}Sort`,{columnName:S}):void 0},[b,p,t.collection.columns]),C=an($);return Xl(()=>{nn($,"assertive",500)},[$]),{gridProps:O(v,C,{"aria-describedby":[C["aria-describedby"],v["aria-describedby"]].filter(Boolean).join(" ")})}}function Qf(e){return e&&e.__esModule?e.default:e}function ep(e,t,n){var r,l;let{node:i}=e,o=i.props.allowsSorting,{gridCellProps:u}=Ru({...e,focusMode:"child"},t,n),a=i.props.isSelectionCell&&t.selectionManager.selectionMode==="single",{pressProps:s}=Fe({isDisabled:!o||a,onPress(){t.sort(i.key)},ref:n}),{focusableProps:c}=gt({},n),f=null,v=((r=t.sortDescriptor)===null||r===void 0?void 0:r.column)===i.key,p=(l=t.sortDescriptor)===null||l===void 0?void 0:l.direction;i.props.allowsSorting&&!qt()&&(f=v?p:"none");let b=rt(Qf(Pr),"@react-aria/table"),x;o&&(x=`${b.format("sortable")}`,v&&p&&qt()&&(x=`${x}, ${b.format(p)}`));let $=an(x),C=t.collection.size===0;return d.useEffect(()=>{C&&t.selectionManager.focusedKey===i.key&&t.selectionManager.setFocusedKey(null)},[C,t.selectionManager,i.key]),{columnHeaderProps:{...O(u,s,c,$,C&&{tabIndex:-1}),role:"columnheader",id:Gf(t,i.key),"aria-colspan":i.colspan&&i.colspan>1?i.colspan:null,"aria-sort":f}}}const Al={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function tp(e,t,n){let{node:r,isVirtualized:l}=e,{rowProps:i,...o}=zf(e,t,n),{direction:u}=Le();l&&!(ln()&&"expandedKeys"in t)?i["aria-rowindex"]=r.index+1+t.collection.headerRows.length:delete i["aria-rowindex"];let a={};if(ln()&&"expandedKeys"in t){let b=t.keyMap.get(r.key);if(b!=null){var s,c,f;let x=((s=b.props)===null||s===void 0?void 0:s.UNSTABLE_childItems)||((f=b.props)===null||f===void 0||(c=f.children)===null||c===void 0?void 0:c.length)>t.userColumnCount;a={onKeyDown:$=>{($.key===Al.expand[u]&&t.selectionManager.focusedKey===b.key&&x&&t.expandedKeys!=="all"&&!t.expandedKeys.has(b.key)||$.key===Al.collapse[u]&&t.selectionManager.focusedKey===b.key&&x&&(t.expandedKeys==="all"||t.expandedKeys.has(b.key)))&&(t.toggleKey(b.key),$.stopPropagation())},"aria-expanded":x?t.expandedKeys==="all"||t.expandedKeys.has(r.key):void 0,"aria-level":b.level,"aria-posinset":b.indexOfType+1,"aria-setsize":b.level>1?Ue(t.keyMap.get(b==null?void 0:b.parentKey).childNodes).indexOfType+1:Ue(t.keyMap.get(t.collection.body.key).childNodes).indexOfType+1}}}let v=wc(r.props),p=o.hasAction?v:{};return{rowProps:{...O(i,a,p),"aria-labelledby":Yf(t,r.key)},...o}}function np(e,t,n){let{node:r,isVirtualized:l}=e,i={role:"row"};return l&&!(ln()&&"expandedKeys"in t)&&(i["aria-rowindex"]=r.index+1),{rowProps:i}}function rp(e,t,n){let{gridCellProps:r,isPressed:l}=Ru(e,t,n),i=e.node.column.key;return t.collection.rowHeaderColumnKeys.has(i)&&(r.role="rowheader",r.id=Ea(t,e.node.parentKey,i)),{gridCellProps:r,isPressed:l}}function lp(){return _f()}function ip(e,t){let n=pe(e,{labelable:!0}),{hoverProps:r}=Nt({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:O(n,r,{role:"tooltip"})}}function op(e,t,n){let{isDisabled:r,trigger:l}=e,i=fe(),o=d.useRef(!1),u=d.useRef(!1),a=()=>{(o.current||u.current)&&t.open(u.current)},s=C=>{!o.current&&!u.current&&t.close(C)};d.useEffect(()=>{let C=P=>{n&&n.current&&P.key==="Escape"&&(P.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",C,!0),()=>{document.removeEventListener("keydown",C,!0)}},[n,t]);let c=()=>{l!=="focus"&&(Jt()==="pointer"?o.current=!0:o.current=!1,a())},f=()=>{l!=="focus"&&(u.current=!1,o.current=!1,s())},v=()=>{u.current=!1,o.current=!1,s(!0)},p=()=>{nt()&&(u.current=!0,a())},b=()=>{u.current=!1,o.current=!1,s(!0)},{hoverProps:x}=Nt({isDisabled:r,onHoverStart:c,onHoverEnd:f}),{focusableProps:$}=gt({isDisabled:r,onFocus:p,onBlur:b},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...O($,x,{onPointerDown:v,onKeyDown:v})},tooltipProps:{id:i}}}function wr({variant:e="primary",href:t,onPress:n,type:r,isDisabled:l,"data-testid":i,children:o}){const u=t?"a":"button",a=u!=="a"?{}:{target:"_blank",href:t},s=d.useRef(null),{buttonProps:c}=hn({onPress:n,elementType:u,type:r||"button",isDisabled:l},s);return g.jsxs(u,{...c,...a,className:_.csx("proton-Button",`proton-Button--${e}`,l&&"proton-Button--disabled"),ref:s,"data-testid":i,children:[o,t&&_.isUrlExternal(t)&&g.jsx("svg",{viewBox:"0 0 512 512",width:"0.8em",height:"0.8em",children:g.jsx("path",{d:"M384 224v184a40 40 0 01-40 40H104a40 40 0 01-40-40V168a40 40 0 0140-40h167.48M336 64h112v112M224 288L440 72",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"})})]})}const rs={success:g.jsx("svg",{viewBox:"0 0 20 20",height:"18",width:"18",children:g.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z"})}),warning:g.jsx("svg",{viewBox:"0 0 56 56",height:"17",width:"17",children:g.jsx("path",{d:"M9.59 50.207h36.82c3.516 0 5.719-2.531 5.719-5.719a5.56 5.56 0 0 0-.75-2.812l-18.445-33c-1.055-1.899-2.977-2.883-4.922-2.883c-1.922 0-3.89.984-4.946 2.883L4.645 41.699c-.516.89-.774 1.828-.774 2.79c0 3.187 2.227 5.718 5.719 5.718m18.422-16.055c-1.242 0-1.922-.703-1.969-1.968l-.328-11.578c-.047-1.266.937-2.204 2.273-2.204c1.313 0 2.344.961 2.297 2.227l-.351 11.555c-.047 1.289-.727 1.968-1.922 1.968m0 8.649c-1.36 0-2.625-1.078-2.625-2.532s1.242-2.53 2.625-2.53s2.625 1.054 2.625 2.53c0 1.477-1.266 2.532-2.625 2.532"})}),danger:g.jsx("svg",{viewBox:"0 0 20 20",height:"18",width:"18",children:g.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z"})})},up={default:{background:G.GRAYSCALE.GRAY_LIGHTEST,title:G.GRAYSCALE.GRAY_DARK,content:G.GRAYSCALE.GRAY_MEDIUM,icon:G.GRAYSCALE.GRAY_MEDIUM_LIGHT},success:{background:G.SUCCESS.SUPER_LIGHT,title:G.SUCCESS.DARK,content:G.SUCCESS.MEDIUM,icon:G.SUCCESS.LIGHT},warning:{background:G.WARNING.SUPER_LIGHT,title:G.WARNING.DARK,content:G.WARNING.MEDIUM,icon:G.WARNING.LIGHT},danger:{background:G.DANGER.SUPER_LIGHT,title:G.DANGER.DARK,content:G.DANGER.MEDIUM,icon:G.DANGER.LIGHT}},ap={default:"default",success:"success",warning:"warning",danger:"danger"},bn=d.createContext(void 0),De=({variant:e="default",rounded:t=!0,icon:n=!1,compact:r=!0,children:l,...i})=>g.jsx(bn.Provider,{value:e,children:g.jsx("div",{role:"status","aria-live":"polite",className:_.csx("proton-Banner",`proton-Banner--${e}`,t&&"proton-Banner--rounded"),"data-testid":i["data-testid"],children:g.jsxs("div",{className:_.csx("proton-Banner__wrapper",r&&"proton-Banner__wrapper--compact"),children:[g.jsx(De.Icon,{icon:n}),g.jsx("div",{className:"proton-Banner__content-wrapper",children:g.jsx("div",{className:"proton-Banner__container",children:l})})]})})}),sp=({children:e,...t})=>{const n=d.useContext(bn);if(!n)throw new Error("BannerTitle must be used within a Banner");return g.jsx("h3",{className:_.csx("proton-Banner","proton-Banner__title",`proton-Banner--${n}__title`),"data-testid":t["data-testid"],children:e})},cp=({children:e,...t})=>{const n=d.useContext(bn);if(!n)throw new Error("BannerContent must be used within a Banner");return g.jsx("p",{className:_.csx("proton-Banner","proton-Banner__content",`proton-Banner--${n}__content`),"data-testid":t["data-testid"],children:e})},dp=({children:e,icon:t,...n})=>{const r=d.useContext(bn);if(!r)throw new Error("BannerIcon must be used within a Banner");const i=d.isValidElement(t)?t:t===!0?rs[r]:e||null;return i?g.jsx("span",{"aria-hidden":"true","data-testid":n["data-testid"],className:_.csx("proton-Banner__icon",`proton-Banner--${r}__icon`),children:i}):null},fp=({children:e,...t})=>g.jsx(wr,{...t,children:e}),pp=({children:e})=>g.jsx("div",{className:"proton-Banner__actions",children:e});De.Title=sp;De.Content=cp;De.Icon=dp;De.Action=fp;De.Actions=pp;De.colors=up;De.icons=rs;De.variants=ap;class Kl{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}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.firstKey=null,this.lastKey=null,this.iterable=t;let n=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&o.type==="section")for(let u of o.childNodes)n(u)};for(let o of t)n(o);let r=null,l=0;for(let[o,u]of this.keyMap)r?(r.nextKey=o,u.prevKey=r.key):(this.firstKey=o,u.prevKey=void 0),u.type==="item"&&(u.index=l++),r=u,r.nextKey=void 0;var i;this.lastKey=(i=r==null?void 0:r.key)!==null&&i!==void 0?i:null}}class Ee extends Set{constructor(t,n,r){super(t),t instanceof Ee?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function vp(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Dr(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:l="toggle",disabledBehavior:i="all"}=e,o=d.useRef(!1),[,u]=d.useState(!1),a=d.useRef(null),s=d.useRef(null),[,c]=d.useState(null),f=d.useMemo(()=>Ml(e.selectedKeys),[e.selectedKeys]),v=d.useMemo(()=>Ml(e.defaultSelectedKeys,new Ee),[e.defaultSelectedKeys]),[p,b]=qe(f,v,e.onSelectionChange),x=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[$,C]=d.useState(l);l==="replace"&&$==="toggle"&&typeof p=="object"&&p.size===0&&C("replace");let P=d.useRef(l);return d.useEffect(()=>{l!==P.current&&(C(l),P.current=l)},[l]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:$,setSelectionBehavior:C,get isFocused(){return o.current},setFocused(S){o.current=S,u(S)},get focusedKey(){return a.current},get childFocusStrategy(){return s.current},setFocusedKey(S,A="first"){a.current=S,s.current=A,c(S)},selectedKeys:p,setSelectedKeys(S){(r||!vp(S,p))&&b(S)},disabledKeys:x,disabledBehavior:i}}function Ml(e,t){return e?e==="all"?"all":new Ee(e):t}class Tr{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&&Rn(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&&Rn(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 Ee([t],t,t);else{let i=this.state.selectedKeys;var r;let o=(r=i.anchorKey)!==null&&r!==void 0?r:t;n=new Ee(i,o,t);var l;for(let u of this.getKeyRange(o,(l=i.currentKey)!==null&&l!==void 0?l:t))n.delete(u);for(let u of this.getKeyRange(t,o))this.canSelectItem(u)&&n.add(u)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),l=this.collection.getItem(n);return r&&l?Rn(this.collection,r,l)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let l=[],i=t;for(;i!=null;){let o=this.collection.getItem(i);if((o&&o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&l.push(i),i===n)return l;i=this.collection.getKeyAfter(i)}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 Ee(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 Ee([t],t,t):new Ee;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Ee;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!=null;){if(this.canSelectItem(r)){let l=this.collection.getItem(r);l.type==="item"&&t.push(r),l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n(Ae(le(l,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 Ee)}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 l;this.allowsCellSelection=(l=r==null?void 0:r.allowsCellSelection)!==null&&l!==void 0?l:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function hp(e){let{filter:t,layoutDelegate:n}=e,r=Dr(e),l=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=d.useCallback(c=>t?new Kl(t(c)):new Kl(c),[t]),o=d.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=yr(e,i,o),a=d.useMemo(()=>new Tr(u,r,{layoutDelegate:n}),[u,r,n]);const s=d.useRef(null);return d.useEffect(()=>{if(r.focusedKey!=null&&!u.getItem(r.focusedKey)&&s.current){const C=s.current.getItem(r.focusedKey),P=[...s.current.getKeys()].map(h=>{const K=s.current.getItem(h);return(K==null?void 0:K.type)==="item"?K:null}).filter(h=>h!==null),S=[...u.getKeys()].map(h=>{const K=u.getItem(h);return(K==null?void 0:K.type)==="item"?K:null}).filter(h=>h!==null);var c,f;const A=((c=P==null?void 0:P.length)!==null&&c!==void 0?c:0)-((f=S==null?void 0:S.length)!==null&&f!==void 0?f:0);var v,p,b;let w=Math.min(A>1?Math.max(((v=C==null?void 0:C.index)!==null&&v!==void 0?v:0)-A+1,0):(p=C==null?void 0:C.index)!==null&&p!==void 0?p:0,((b=S==null?void 0:S.length)!==null&&b!==void 0?b:0)-1),B=null,I=!1;for(;w>=0;){if(!a.isDisabled(S[w].key)){B=S[w];break}if(w<S.length-1&&!I)w++;else{I=!0;var x,$;w>((x=C==null?void 0:C.index)!==null&&x!==void 0?x:0)&&(w=($=C==null?void 0:C.index)!==null&&$!==void 0?$:0),w--}}r.setFocusedKey(B?B.key:null)}s.current=u},[u,a,r,r.focusedKey]),{collection:u,disabledKeys:l,selectionManager:a}}function mp(e){var t;let[n,r]=qe(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),l=d.useMemo(()=>n!=null?[n]:[],[n]),{collection:i,disabledKeys:o,selectionManager:u}=hp({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:l,onSelectionChange:s=>{if(s==="all")return;var c;let f=(c=s.values().next().value)!==null&&c!==void 0?c:null;f===n&&e.onSelectionChange&&e.onSelectionChange(f),r(f)}}),a=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:o,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:a}}function Br(e){let[t,n]=qe(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=d.useCallback(()=>{n(!0)},[n]),l=d.useCallback(()=>{n(!1)},[n]),i=d.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:l,toggle:i}}let bp=Math.round(Math.random()*1e10),gp=0;function $p(e){let t=d.useMemo(()=>e.name||`radio-group-${bp}-${++gp}`,[e.name]);var n;let[r,l]=qe(e.value,(n=e.defaultValue)!==null&&n!==void 0?n:null,e.onChange),[i,o]=d.useState(null),u=hr({...e,value:r}),a=c=>{!e.isReadOnly&&!e.isDisabled&&(l(c),u.commitValidation())},s=u.displayValidation.isInvalid;return{...u,name:t,selectedValue:r,setSelectedValue:a,lastFocusedValue:i,setLastFocusedValue:o,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(s?"invalid":null),isInvalid:s}}function yp(e){let[t,n]=qe(Fl(e.value),Fl(e.defaultValue)||"",e.onChange);return{value:t,setValue:n}}function Fl(e){if(e!=null)return e.toString()}function ls(e){let t=Br(e),[n,r]=d.useState(null),l=mp({...e,onSelectionChange:a=>{e.onSelectionChange!=null&&e.onSelectionChange(a),t.close(),i.commitValidation()}}),i=hr({...e,value:l.selectedKey}),[o,u]=d.useState(!1);return{...i,...l,...t,focusStrategy:n,open(a=null){l.collection.size!==0&&(r(a),t.open())},toggle(a=null){l.collection.size!==0&&(r(a),t.toggle())},isFocused:o,setFocused:u}}function xp(e){let{collection:t,focusMode:n}=e,r=e.UNSAFE_selectionState||Dr(e),l=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=r.setFocusedKey;r.setFocusedKey=(a,s)=>{if(n==="cell"&&a!=null){let v=t.getItem(a);if((v==null?void 0:v.type)==="item"){var c,f;let p=le(v,t);s==="last"?a=(c=Ue(p))===null||c===void 0?void 0:c.key:a=(f=Ae(p))===null||f===void 0?void 0:f.key}}i(a,s)};let o=d.useMemo(()=>new Tr(t,r),[t,r]);const u=d.useRef(null);return d.useEffect(()=>{if(r.focusedKey!=null&&!t.getItem(r.focusedKey)){const a=u.current.getItem(r.focusedKey),s=a.parentKey!=null&&(a.type==="cell"||a.type==="rowheader"||a.type==="column")?u.current.getItem(a.parentKey):a,c=u.current.rows,f=t.rows,v=c.length-f.length;let p=Math.min(v>1?Math.max(s.index-v+1,0):s.index,f.length-1),b;for(;p>=0;){if(!o.isDisabled(f[p].key)&&f[p].type!=="headerrow"){b=f[p];break}p<f.length-1?p++:(p>s.index&&(p=s.index),p--)}if(b){const x=b.hasChildNodes?[...le(b,t)]:[],$=b.hasChildNodes&&s!==a&&a.index<x.length?x[a.index].key:b.key;r.setFocusedKey($)}else r.setFocusedKey(null)}u.current=t},[t,o,r,r.focusedKey]),{collection:t,disabledKeys:l,isKeyboardNavigationDisabled:!1,selectionManager:o}}class Ep{*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}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(){var t;return(t=[...this.rows][0])===null||t===void 0?void 0:t.key}getLastKey(){var t;let n=[...this.rows];return(t=n[n.length-1])===null||t===void 0?void 0:t.key}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.keyMap=new Map,this.columnCount=t==null?void 0:t.columnCount,this.rows=[];let n=i=>{let o=this.keyMap.get(i.key);t.visitNode&&(i=t.visitNode(i)),this.keyMap.set(i.key,i);let u=new Set,a;for(let s of i.childNodes)s.type==="cell"&&s.parentKey==null&&(s.parentKey=i.key),u.add(s.key),a?(a.nextKey=s.key,s.prevKey=a.key):s.prevKey=null,n(s),a=s;if(a&&(a.nextKey=null),o)for(let s of o.childNodes)u.has(s.key)||r(s)},r=i=>{this.keyMap.delete(i.key);for(let o of i.childNodes)this.keyMap.get(o.key)===o&&r(o)},l;t.items.forEach((i,o)=>{let u={level:0,key:"row-"+o,type:"row",value:void 0,hasChildNodes:!0,childNodes:[...i.childNodes],rendered:void 0,textValue:void 0,...i};l?(l.nextKey=u.key,u.prevKey=l.key):u.prevKey=null,this.rows.push(u),n(u),l=u}),l&&(l.nextKey=null)}}const is="row-header-column-"+Math.random().toString(36).slice(2);let lr="row-header-column-"+Math.random().toString(36).slice(2);for(;is===lr;)lr="row-header-column-"+Math.random().toString(36).slice(2);function Cp(e,t){if(t.length===0)return[];let n=[],r=new Map;for(let a of t){let s=a.parentKey,c=[a];for(;s;){let f=e.get(s);if(!f)break;if(r.has(f)){f.colspan++;let{column:v,index:p}=r.get(f);if(p>c.length)break;for(let b=p;b<c.length;b++)v.splice(b,0,null);for(let b=c.length;b<v.length;b++)v[b]&&r.has(v[b])&&(r.get(v[b]).index=b)}else f.colspan=1,c.push(f),r.set(f,{column:c,index:c.length-1});s=f.parentKey}n.push(c),a.index=n.length-1}let l=Math.max(...n.map(a=>a.length)),i=Array(l).fill(0).map(()=>[]),o=0;for(let a of n){let s=l-1;for(let c of a){if(c){let f=i[s],v=f.reduce((p,b)=>p+b.colspan,0);if(v<o){let p={type:"placeholder",key:"placeholder-"+c.key,colspan:o-v,index:v,value:null,rendered:null,level:s,hasChildNodes:!1,childNodes:[],textValue:null};f.length>0&&(f[f.length-1].nextKey=p.key,p.prevKey=f[f.length-1].key),f.push(p)}f.length>0&&(f[f.length-1].nextKey=c.key,c.prevKey=f[f.length-1].key),c.level=s,c.colIndex=o,f.push(c)}s--}o++}let u=0;for(let a of i){let s=a.reduce((c,f)=>c+f.colspan,0);if(s<t.length){let c={type:"placeholder",key:"placeholder-"+a[a.length-1].key,colspan:t.length-s,index:s,value:null,rendered:null,level:u,hasChildNodes:!1,childNodes:[],textValue:null,prevKey:a[a.length-1].key};a.push(c)}u++}return i.map((a,s)=>({type:"headerrow",key:"headerrow-"+s,index:s,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:a,textValue:null}))}class Sp extends Ep{*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._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(){var t;return(t=Ae(this.body.childNodes))===null||t===void 0?void 0:t.key}getLastKey(){var t;return(t=Ue(this.body.childNodes))===null||t===void 0?void 0:t.key}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){return t===this.body.key?this.body.childNodes:super.getChildren(t)}getTextValue(t){let n=this.getItem(t);if(!n)return"";if(n.textValue)return n.textValue;let r=this.rowHeaderColumnKeys;if(r){let l=[];for(let i of n.childNodes){let o=this.columns[i.index];if(r.has(o.key)&&i.textValue&&l.push(i.textValue),l.length===r.size)break}return l.join(" ")}return""}constructor(t,n,r){let l=new Set,i,o=[];if(r!=null&&r.showSelectionCheckboxes){let f={type:"column",key:is,value:null,textValue:"",level:0,index:r!=null&&r.showDragButtons?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};o.unshift(f)}if(r!=null&&r.showDragButtons){let f={type:"column",key:lr,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};o.unshift(f)}let u=[],a=new Map,s=f=>{switch(f.type){case"body":i=f;break;case"column":a.set(f.key,f),f.hasChildNodes||(o.push(f),f.props.isRowHeader&&l.add(f.key));break;case"item":u.push(f);return}for(let v of f.childNodes)s(v)};for(let f of t)s(f);let c=Cp(a,o);c.forEach((f,v)=>u.splice(v,0,f)),super({columnCount:o.length,items:u,visitNode:f=>(f.column=o[f.index],f)}),this._size=0,this.columns=o,this.rowHeaderColumnKeys=l,this.body=i,this.headerRows=c,this._size=[...i.childNodes].length,this.rowHeaderColumnKeys.size===0&&this.rowHeaderColumnKeys.add(this.columns.find(f=>{var v,p;return!(!((v=f.props)===null||v===void 0)&&v.isDragButtonCell)&&!(!((p=f.props)===null||p===void 0)&&p.isSelectionCell)}).key)}}const Pp={ascending:"descending",descending:"ascending"};function wp(e){let[t,n]=d.useState(!1),{selectionMode:r="none",showSelectionCheckboxes:l,showDragButtons:i}=e,o=d.useMemo(()=>({showSelectionCheckboxes:l&&r!=="none",showDragButtons:i,selectionMode:r,columns:[]}),[e.children,l,r,i]),u=yr(e,d.useCallback(c=>new Sp(c,null,o),[o]),o),{disabledKeys:a,selectionManager:s}=xp({...e,collection:u,disabledBehavior:e.disabledBehavior||"selection"});return{collection:u,disabledKeys:a,selectionManager:s,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor,isKeyboardNavigationDisabled:u.size===0||t,setKeyboardNavigationDisabled:n,sort(c,f){var v;e.onSortChange({column:c,direction:f??(((v=e.sortDescriptor)===null||v===void 0?void 0:v.column)===c?Pp[e.sortDescriptor.direction]:"ascending")})}}}function os(e){return null}os.getCollectionNode=function*(t,n){let{children:r,columns:l}=t;if(n.columns=[],typeof r=="function"){if(!l)throw new Error("props.children was a function but props.columns is missing");for(let i of l)yield{type:"column",value:i,renderer:r}}else{let i=[];d.Children.forEach(r,o=>{i.push({type:"column",element:o})}),yield*i}};let Dp=os;function us(e){return null}us.getCollectionNode=function*(t){let{children:n,items:r}=t;yield{type:"body",hasChildNodes:!0,props:t,*childNodes(){if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let l of r)yield{type:"item",value:l,renderer:n}}else{let l=[];d.Children.forEach(n,i=>{l.push({type:"item",element:i})}),yield*l}}}};let Tp=us;function as(e){return null}as.getCollectionNode=function*(t,n){let{title:r,children:l,childColumns:i}=t,o=r||l,u=t.textValue||(typeof o=="string"?o:"")||t["aria-label"],a=yield{type:"column",hasChildNodes:!!i||r&&d.Children.count(l)>0,rendered:o,textValue:u,props:t,*childNodes(){if(i)for(let c of i)yield{type:"column",value:c};else if(r){let c=[];d.Children.forEach(l,f=>{c.push({type:"column",element:f})}),yield*c}},shouldInvalidate(c){return s(c),!1}},s=c=>{for(let f of a)f.hasChildNodes||c.columns.push(f)};s(n)};let Bp=as;function ir(e){return null}ir.getCollectionNode=function*(t,n){let{children:r,textValue:l,UNSTABLE_childItems:i}=t;yield{type:"item",props:t,textValue:l,"aria-label":t["aria-label"],hasChildNodes:!0,*childNodes(){if(n.showDragButtons&&(yield{type:"cell",key:"header-drag",props:{isDragButtonCell:!0}}),n.showSelectionCheckboxes&&n.selectionMode!=="none"&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),typeof r=="function"){for(let o of n.columns)yield{type:"cell",element:r(o.key),key:o.key};if(i)for(let o of i)yield{type:"item",value:o}}else{let o=[],u=[];if(d.Children.forEach(r,a=>{if(a.type===ir){if(o.length<n.columns.length)throw new Error("All of a Row's child Cells must be positioned before any child Rows.");u.push({type:"item",element:a})}else o.push({type:"cell",element:a})}),o.length!==n.columns.length)throw new Error(`Cell count must match column count. Found ${o.length} cells and ${n.columns.length} columns.`);yield*o,yield*u}},shouldInvalidate(o){return o.columns.length!==n.columns.length||o.columns.some((u,a)=>u.key!==n.columns[a].key)||o.showSelectionCheckboxes!==n.showSelectionCheckboxes||o.showDragButtons!==n.showDragButtons||o.selectionMode!==n.selectionMode}}};let kp=ir;function ss(e){return null}ss.getCollectionNode=function*(t){let{children:n}=t,r=t.textValue||(typeof n=="string"?n:"")||t["aria-label"]||"";yield{type:"cell",props:t,rendered:n,textValue:r,"aria-label":t["aria-label"],hasChildNodes:!1}};let Ap=ss;const Kp=1500,Il=500;let Ze={},Mp=0,wt=!1,ke=null,Je=null;function cs(e={}){let{delay:t=Kp,closeDelay:n=Il}=e,{isOpen:r,open:l,close:i}=Br(e),o=d.useMemo(()=>`${++Mp}`,[]),u=d.useRef(void 0),a=d.useRef(i),s=()=>{Ze[o]=v},c=()=>{for(let b in Ze)b!==o&&(Ze[b](!0),delete Ze[b])},f=()=>{clearTimeout(u.current),u.current=null,c(),s(),wt=!0,l(),ke&&(clearTimeout(ke),ke=null),Je&&(clearTimeout(Je),Je=null)},v=b=>{b||n<=0?(clearTimeout(u.current),u.current=null,a.current()):u.current||(u.current=setTimeout(()=>{u.current=null,a.current()},n)),ke&&(clearTimeout(ke),ke=null),wt&&(Je&&clearTimeout(Je),Je=setTimeout(()=>{delete Ze[o],Je=null,wt=!1},Math.max(Il,n)))},p=()=>{c(),s(),!r&&!ke&&!wt?ke=setTimeout(()=>{ke=null,wt=!0,f()},t):r||f()};return d.useEffect(()=>{a.current=i},[i]),d.useEffect(()=>()=>{clearTimeout(u.current),Ze[o]&&delete Ze[o]},[o]),{isOpen:r,open:b=>{!b&&t>0&&!u.current?p():f()},close:v}}class Fp{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.iterable=t,n=n||new Set;let r=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&(o.type==="section"||n.has(o.key)))for(let u of o.childNodes)r(u)};for(let o of t)r(o);let l,i=0;for(let[o,u]of this.keyMap)l?(l.nextKey=o,u.prevKey=l.key):(this.firstKey=o,u.prevKey=void 0),u.type==="item"&&(u.index=i++),l=u,l.nextKey=void 0;this.lastKey=l==null?void 0:l.key}}function Ip(e){let{onExpandedChange:t}=e,[n,r]=qe(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),l=Dr(e),i=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=yr(e,d.useCallback(a=>new Fp(a,{expandedKeys:n}),[n]),null);return d.useEffect(()=>{l.focusedKey!=null&&!o.getItem(l.focusedKey)&&l.setFocusedKey(null)},[o,l.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:i,toggleKey:a=>{r(Rp(n,a))},setExpandedKeys:r,selectionManager:new Tr(o,l)}}function Rp(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}let ds=d.createContext(null);function fs(e){let t={...e,"data-testid":void 0},n=$p(t),{radioGroupProps:r}=Of(t,n);return g.jsx("div",{...r,className:"proton-ButtonGroup","data-value":n.selectedValue,"data-testid":e["data-testid"]||void 0,children:g.jsx(ds.Provider,{value:n,children:e.children})})}fs.Option=function(t){let n={...t,"data-testid":void 0},r=d.useContext(ds),l=d.useRef(null),{inputProps:i,isSelected:o}=jf(n,r,l);return g.jsxs("label",{className:_.csx("proton-ButtonGroup__option",o&&"proton-ButtonGroup__option--selected"),"data-selected":o||void 0,"data-testid":t["data-testid"]||void 0,children:[g.jsx(br,{children:g.jsx("input",{...i,ref:l})}),t.children]})};function Np({title:e,children:t,...n}){let r=d.useRef(null),{dialogProps:l,titleProps:i}=Cf(n,r);return g.jsxs("div",{...l,ref:r,className:_.csx("proton-Dialog"),children:[e&&g.jsx("h3",{...i,className:"proton-Dialog__header",children:e}),t]})}const Lp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3csymbol%20id='external-link'%20viewBox='0%200%20512%20512'%3e%3cpath%20d='M384%20224v184a40%2040%200%2001-40%2040H104a40%2040%200%2001-40-40V168a40%2040%200%200140-40h167.48M336%2064h112v112M224%20288L440%2072'%20fill='none'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='32'/%3e%3c/symbol%3e%3csymbol%20id='caret-down'%20viewBox='0%200%20512%20512'%3e%3cpath%20fill='currentColor'%20d='M233.4%20406.6c12.5%2012.5%2032.8%2012.5%2045.3%200l192-192c12.5-12.5%2012.5-32.8%200-45.3s-32.8-12.5-45.3%200L256%20338.7L86.6%20169.4c-12.5-12.5-32.8-12.5-45.3%200s-12.5%2032.8%200%2045.3l192%20192z'/%3e%3c/symbol%3e%3c/defs%3e%3c/svg%3e";function _p(e){let t={height:e.size||void 0,width:e.size||void 0,color:e.color||void 0};return g.jsx("svg",{style:t,...e,children:g.jsx("use",{href:`${Lp}#${e.id}`})})}function zp(e){const[t,n]=d.useState("");return d.useEffect(()=>{},[]),t?g.jsxs(g.Fragment,{children:[g.jsx("div",{dangerouslySetInnerHTML:{__html:t},style:{display:"none"}}),g.jsx(_p,{...e})]}):null}function jp(e){const t=d.useRef(null),n=Br(e||{}),{triggerProps:r,overlayProps:l}=wi({type:"dialog"},n,t),{buttonProps:i}=hn(r,t);return{buttonProps:i,overlayProps:l,buttonRef:t,state:n}}function kr({children:e,state:t,arrow:n=!0,offset:r,...l}){const i=d.useRef(null),{popoverRef:o=i}=l,{className:u,style:a}=Re();let{popoverProps:s,underlayProps:c,arrowProps:f,placement:v}=rf({...l,offset:r,popoverRef:o},t);return g.jsxs(uf,{children:[g.jsx("div",{...c,style:{position:"fixed",inset:0}}),g.jsxs("div",{...s,ref:o,className:_.csx("proton-Popover",u),style:{...a,...s.style},"data-testid":l["data-testid"]||void 0,children:[g.jsx(tf,{onDismiss:t.close}),n&&g.jsxs("svg",{...f,className:"arrow","data-placement":v,viewBox:"0 0 12 12",children:[g.jsx("title",{children:"arrow"}),g.jsx("path",{d:"M0 0 L6 6 L12 0"})]}),e]})]})}const or=e=>{let t=d.useRef(null),{state:n}=e,{listBoxProps:r}=pf(e,n,t);return g.jsx(dr,{contain:!0,restoreFocus:!0,autoFocus:!0,children:g.jsx("ul",{...r,ref:t,"data-testid":"listbox",className:"proton-ListBox",children:[...n.collection].map(l=>g.jsx(Op,{item:l,state:n},l.key))})})};function Op({item:e,state:t}){let n=d.useRef(null),{optionProps:r,isSelected:l,isFocused:i,isDisabled:o}=gf({key:e.key},t,n);return g.jsx("li",{...r,className:_.csx("proton-ListBox__item",i&&"proton-ListBox__item--focused",l&&"proton-ListBox__item--selected",o&&"proton-ListBox__item--disabled"),ref:n,children:e.rendered})}function Vp(e=!0){d.useLayoutEffect(()=>{if(!e)return;const t=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e])}const Hp=({children:e})=>{const{className:t,style:n}=Re(),r=(()=>{let l=document.getElementById("action-menus-root");return l||(l=document.createElement("div"),l.id="action-menus-root",document.body.appendChild(l)),l.className=t,Object.entries(n).forEach(([i,o])=>{l.style.setProperty(i,o)}),l})();return Mt.createPortal(e,r)},ps=({isOpen:e,selectionMode:t="single",selectedKeys:n,disabledKeys:r,children:l,showCancel:i=!0,actions:o,closeOnNavigation:u=!0,onSelectionChange:a,onClose:s,"data-testid":c})=>{Vp(e);const{className:f,theme:v}=Re(),[p,b]=d.useState(!1),[x,$]=d.useState(0),C=d.useRef(null),P=d.useRef(null),S=d.useRef(window.location.pathname),A=o&&o.length>0,w=()=>{b(!0),$(0),setTimeout(()=>{s==null||s(),b(!1)},300)},B=A?Ip({items:o,children:o.map(y=>d.createElement($r,{...y,key:y.key},y.label)),selectedKeys:new Set(n),onSelectionChange:y=>a==null?void 0:a(y),selectionMode:t,disabledKeys:r}):null,{menuProps:I}=A?xf({autoFocus:!0,shouldFocusWrap:!0,onAction:y=>{var D,N;return(N=(D=o.find(E=>E.key===y))==null?void 0:D.onAction)==null?void 0:N.call(D,y)},onClose:()=>s==null?void 0:s(),disabledKeys:r,onSelectionChange:y=>a==null?void 0:a(y),selectionMode:t,selectedKeys:n,"aria-label":"Action Menu"},B,P):{menuProps:{}},{overlayProps:h}=Pi({isOpen:e,onClose:()=>s==null?void 0:s(),isDismissable:!1},P);d.useEffect(()=>{e&&C.current&&$(C.current.scrollHeight)},[e,C]),d.useEffect(()=>{const y=D=>{D.key==="Escape"&&w()};return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[p]),d.useEffect(()=>{u&&(S.current&&S.current!==location.pathname&&w(),S.current=location.pathname)},[p,u]);const K=C.current?C.current.getBoundingClientRect().height>window.innerHeight:!1;return e?g.jsxs(Hp,{children:[g.jsx("div",{...h,className:"proton-ActionMenu__background",style:{opacity:x>0?1:0},onClick:w,children:g.jsx("div",{className:"proton-ActionMenu__close-button","data-testid":"ActionMenu-close",children:"ESC"})}),g.jsx("div",{"data-testid":c||"ActionMenu-wrapper",className:_.csx("proton-ActionMenu__wrapper",K&&"proton-ActionMenu__wrapper--scrollable"),children:g.jsx("div",{className:_.csx("proton-ActionMenu__card",f),"data-testid":"ActionMenu-content",style:{height:`${x}px`},children:g.jsx("div",{ref:P,children:g.jsx("div",{...I,ref:C,children:g.jsxs(dr,{autoFocus:!0,contain:!0,children:[g.jsx("div",{className:"proton-ActionMenu__content",children:typeof l=="function"?l({close:w}):l}),A&&g.jsx("div",{className:_.csx("proton-ActionMenu__list",t==="none"&&"proton-ActionMenu__list--disabled"),children:Array.from(B.collection).map(y=>g.jsx(Wp,{item:y,state:B,to:y.props.to},y.key))}),i&&g.jsx("div",{className:"proton-ActionMenu__cancel-button",tabIndex:-1,children:g.jsx(wr,{variant:v==="dark"?"translucent":"secondary",onPress:w,"data-testid":"ActionMenuItem-cancel",children:"Cancel"})})]})})})})})]}):null},Wp=({to:e,state:t,item:n})=>{const r=d.useRef(null),{menuItemProps:l}=Ef({key:n.key},t,r),i=e?"a":"div",o=e&&_.isUrlExternal(e),u=e?{href:e,target:o?"_blank":void 0,rel:o?"noopener noreferrer":void 0,onClick:o||!e?()=>{}:a=>_.handleInternalNavigation(a,e)}:{};return d.createElement(i,{...l,...u,key:n.key,className:"proton-ActionMenu__item","aria-label":`ActionMenu-Item-${n.key}`,ref:r},n.rendered)};function Up(e,t="down"){const n=t==="down"?`(max-width: ${e}px)`:`(min-width: ${e}px)`,[r,l]=d.useState(()=>typeof window<"u"?window.matchMedia(n).matches:!1);return d.useEffect(()=>{if(typeof window>"u")return;const i=window.matchMedia(n),o=u=>{l(u.matches)};return i.addEventListener("change",o),()=>i.removeEventListener("change",o)},[n]),r}const vs=d.forwardRef((e,t)=>{let{buttonProps:n}=hn({...e,isDisabled:e.disabled},t);return g.jsx("button",{...n,ref:t,className:_.csx("proton-Select__trigger",e.disabled&&"proton-Select__trigger--disabled",!e.isOpen&&"proton-Select__trigger--closed",e.isOpen&&"proton-Select__trigger--opened"),children:e.children})});function Gp({label:e,name:t,isDisabled:n,disabledKeys:r,selectedKey:l,onSelectionChange:i,onOpen:o,onClose:u,items:a,"data-testid":s,children:c}){const f={label:e,isDisabled:n,disabledKeys:r,selectedKey:l,items:a,"data-testid":s,children:c,onSelectionChange:i,onOpenChange:S=>{S?o==null||o():u==null||u()}},v=ls(f),p=d.useRef(null),b=d.useRef(null),{labelProps:x,triggerProps:$,valueProps:C,menuProps:P}=ya({...f,label:e||t},v,p);return d.useEffect(()=>{v.isOpen&&b.current&&p.current&&!b.current.style.minWidth&&(b.current.style.minWidth=`${p.current.offsetWidth}px`)}),g.jsxs("div",{className:"proton-Select","aria-label":e||t,"aria-disabled":n,children:[e?g.jsx("div",{...x,className:"proton-Select__label","data-testid":"select-label",children:e}):g.jsx("div",{...x}),g.jsx(xa,{isDisabled:n,state:v,triggerRef:p,label:e||t,name:t,"data-testid":"hidden-select-container"}),g.jsxs(vs,{...$,isOpen:v.isOpen,ref:p,disabled:n,"data-testid":s,children:[g.jsx("div",{...C,className:"proton-Select__value",children:v.selectedItem?v.selectedItem.rendered:"Select an option"}),g.jsx("div",{className:_.csx("proton-Select__trigger_icon",v.isOpen&&"proton-Select__trigger_icon--flipped"),"aria-hidden":"true",children:g.jsxs("svg",{id:"caret-down",viewBox:"0 0 512 512",children:[g.jsx("title",{children:v.isOpen?"caret down":"caret up"}),g.jsx("path",{fill:"currentColor",d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7L86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})]})})]}),v.isOpen&&g.jsx("div",{className:"proton-Select__popover",children:g.jsx(kr,{state:v,triggerRef:p,popoverRef:b,placement:"bottom start","data-testid":"select-popover",children:g.jsx(or,{...P,state:v})})})]})}const Yp={Menu:Gp,Option:$r};function qp({label:e,name:t,isDisabled:n,disabledKeys:r,selectedKey:l,onSelectionChange:i,onOpen:o,onClose:u,items:a,"data-testid":s,children:c}){const f={label:e,isDisabled:n,disabledKeys:r,selectedKey:l,onSelectionChange:i,onOpenChange:A=>{A?o==null||o():u==null||u()},items:a,"data-testid":s,children:c},v=ls(f),p=Up(G.BREAKPOINTS.MEDIUM),b=d.useRef(null),x=d.useRef(null),{labelProps:$,triggerProps:C,valueProps:P,menuProps:S}=ya({...f,label:e||t},v,b);return d.useEffect(()=>{v.isOpen&&x.current&&b.current&&!x.current.style.minWidth&&(x.current.style.minWidth=`${b.current.offsetWidth}px`)}),g.jsxs("div",{className:"proton-Select","aria-label":e||t,"aria-disabled":n,children:[e?g.jsx("div",{...$,className:"proton-Select__label","data-testid":"select-label",children:e}):g.jsx("div",{...$}),g.jsx(xa,{isDisabled:n,state:v,triggerRef:b,label:e||t,name:t,"data-testid":"hidden-select-container"}),g.jsxs(vs,{...C,isOpen:v.isOpen,ref:b,disabled:n,"data-testid":s,children:[g.jsx("div",{...P,children:v.selectedItem?v.selectedItem.rendered:"Select an option"}),g.jsx("div",{className:_.csx("proton-Select__trigger_icon",v.isOpen&&"proton-Select__trigger_icon--flipped"),"aria-hidden":"true",children:g.jsxs("svg",{id:"caret-down",viewBox:"0 0 512 512",children:[g.jsx("title",{children:v.isOpen?"caret down":"caret up"}),g.jsx("path",{fill:"currentColor",d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7L86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})]})})]}),v.isOpen&&g.jsx(g.Fragment,{children:p?g.jsx(ps,{isOpen:v.isOpen,onClose:()=>v.close(),children:g.jsx(or,{...S,state:v})}):g.jsx("div",{className:"proton-Select__popover",children:g.jsx(kr,{state:v,triggerRef:b,popoverRef:x,placement:"bottom start","data-testid":"select-popover",children:g.jsx(or,{...S,state:v})})})})]})}const Xp={Menu:qp,Option:$r};function Zp(e){let t={...e,isSelected:e.isOn,"data-testid":void 0},n=d.useRef(null),r=Fd(t),{inputProps:l}=Uf(t,r,n);return g.jsxs("label",{className:_.csx("proton-Switch",e.isDisabled&&"proton-Switch--disabled",r.isSelected&&"proton-Switch--on"),"data-on":r.isSelected||void 0,"data-disabled":e.isDisabled||void 0,"data-testid":e["data-testid"]||void 0,"aria-label":e.label||void 0,children:[g.jsx(br,{children:g.jsx("input",{...l,ref:n})}),e.label&&g.jsx("div",{className:"proton-Switch__label",children:e.label}),g.jsxs("div",{className:"proton-Switch__wrapper",children:[g.jsx("div",{className:"proton-Switch__toggle",children:g.jsx("div",{className:"proton-Switch__slider"})}),e.children&&g.jsx("div",{className:"proton-Switch__description",children:e.children})]})]})}function Jp({item:e,state:t,children:n}){let r=d.useRef(),{rowProps:l}=np({node:e},t);return g.jsx("tr",{className:_.csx("proton-Table__headerRow"),...l,ref:r,children:n})}function Qp({column:e,state:t}){var a,s;let n=d.useRef(),{columnHeaderProps:r}=ep({node:e},t,n);const{align:l="left"}=e.props;let{isFocusVisible:i,focusProps:o}=fn(),u=((a=t.sortDescriptor)==null?void 0:a.direction)==="ascending"?"▲":"▼";return g.jsxs("th",{...O(r,o),colSpan:e.colspan,className:_.csx("proton-Table__header",`proton-Table__header--${l}`,i?"proton-Table__header--focused":null),ref:n,children:[e.rendered,e.props.allowsSorting&&g.jsx("span",{"aria-hidden":"true",className:_.csx("proton-Table__headerSortIcon"),style:{visibility:((s=t.sortDescriptor)==null?void 0:s.column)===e.key?"visible":"hidden"},children:u})]})}function Rl({type:e,children:t}){let{rowGroupProps:n}=lp();return g.jsx(e,{...n,className:_.csx("proton-Table__rowGroup",e==="thead"?"proton-Table__rowGroup--header":"proton-Table__rowGroup--body"),children:t})}function e4({item:e,children:t,state:n}){let r=d.useRef(),l=n.selectionManager.isSelected(e.key),{rowProps:i,isPressed:o}=tp({node:e},n,r),{isFocusVisible:u,focusProps:a}=fn();return g.jsx("tr",{className:_.csx("proton-Table__row",l?"proton-Table__row--selected":null,o?"proton-Table__row--pressed":null,u?"proton-Table__row--focused":null),...O(i,a),ref:r,children:t})}function t4({cell:e,state:t,...n}){let r=d.useRef(),{gridCellProps:l}=rp({node:e},t,r),{isFocusVisible:i,focusProps:o}=fn();const{align:u}=e.props;return g.jsx("td",{...O(l,o),className:_.csx("proton-Table__cell",i?"proton-Table__cell--focused":null,`proton-Table__cell--${u}`),ref:r,children:e.rendered})}const n4=Bp,r4=Ap;function l4(e){let t=wp({...e}),n=d.useRef(),{collection:r}=t,{gridProps:l}=Jf({...e,"aria-label":e["aria-label"]||"Table"},t,n);return g.jsxs("table",{...l,ref:n,className:_.csx("proton-Table"),children:[g.jsx(Rl,{type:"thead",children:r.headerRows.map(i=>g.jsx(Jp,{item:i,state:t,children:Array.from(r.getChildren(i.key)).map(o=>g.jsx(Qp,{column:o,state:t},o.key))},i.key))}),g.jsx(Rl,{type:"tbody",children:Array.from(r.body.childNodes).map(i=>g.jsx(e4,{item:i,state:t,children:Array.from(r.getChildren(i.key)).map(o=>g.jsx(t4,{cell:o,state:t},o.key))},i.key))})]})}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const i4=d.createContext(!1);typeof DocumentFragment<"u"&&new DocumentFragment;function o4(e){let t=(n,r)=>d.useContext(i4)?null:e(n,r);return t.displayName=e.displayName||e.name,d.forwardRef(t)}const Nl=Symbol("default");function u4({values:e,children:t}){for(let[n,r]of e)t=d.createElement(n.Provider,{value:r},t);return t}function Ar(e){let{className:t,style:n,children:r,defaultClassName:l,defaultChildren:i,defaultStyle:o,values:u}=e;return d.useMemo(()=>{let a,s,c;return typeof t=="function"?a=t({...u,defaultClassName:l}):a=t,typeof n=="function"?s=n({...u,defaultStyle:o||{}}):s=n,typeof r=="function"?c=r({...u,defaultChildren:i}):r==null?c=i:c=r,{className:a??l,style:s||o?{...o,...s}:void 0,children:c??i,"data-rac":""}},[t,n,r,l,i,o,u])}function a4(e,t){let n=d.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(i=>`"${i}"`));if(!t&&!n.slots[Nl])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let l=t||Nl;if(!n.slots[l])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[l]}return n}function Kr(e,t,n){let r=a4(n,e.slot)||{},{ref:l,...i}=r,o=ql(d.useMemo(()=>dc(t,l),[t,l])),u=O(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?u.style=a=>{let s=typeof i.style=="function"?i.style(a):i.style,c={...a.defaultStyle,...s},f=typeof e.style=="function"?e.style({...a,defaultStyle:c}):e.style;return{...c,...f}}:u.style={...i.style,...e.style}),[u,o]}function s4(e,t=!0){let[n,r]=d.useState(!0);return hs(e,n&&t,d.useCallback(()=>r(!1),[])),n&&t}function c4(e,t){let[n,r]=d.useState(!1),[l,i]=d.useState("idle");return!t&&e.current&&l==="idle"&&(n=!0,r(!0),i("exiting")),!e.current&&l==="exited"&&i("idle"),hs(e,n,d.useCallback(()=>{i("exited"),r(!1)},[])),n}function hs(e,t,n){let r=d.useRef(null);t&&e.current&&(r.current=window.getComputedStyle(e.current).animation),q(()=>{if(t&&e.current){let l=window.getComputedStyle(e.current);if(l.animationName&&l.animationName!=="none"&&l.animation!==r.current){let i=u=>{u.target===e.current&&(o.removeEventListener("animationend",i),Mt.flushSync(()=>{n()}))},o=e.current;return o.addEventListener("animationend",i),()=>{o.removeEventListener("animationend",i)}}else n()}},[e,t,n])}const d4=d.createContext(null),f4=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),p4=d.createContext({});function v4(e,t){[e,t]=Kr(e,t,p4),e=h4(e);let n=e,{isPending:r}=n,{buttonProps:l,isPressed:i}=hn(e,t),{focusProps:o,isFocused:u,isFocusVisible:a}=fn(e),{hoverProps:s,isHovered:c}=Nt({...e,isDisabled:e.isDisabled||r}),f={isHovered:c,isPressed:(n.isPressed||i)&&!r,isFocused:u,isFocusVisible:a,isDisabled:e.isDisabled||!1,isPending:r??!1},v=Ar({...e,values:f,defaultClassName:"react-aria-Button"}),p=fe(l.id),b=fe(),x=l["aria-labelledby"];r&&(x?x=`${x} ${b}`:l["aria-label"]&&(x=`${p} ${b}`));let $=d.useRef(r);return d.useEffect(()=>{let C={"aria-labelledby":x||p};(!$.current&&u&&r||$.current&&u&&!r)&&nn(C,"assertive"),$.current=r},[r,u,x,p]),d.createElement("button",{...pe(e,{propNames:f4}),...O(l,o,s),...v,id:p,ref:t,"aria-labelledby":x,slot:e.slot||void 0,"aria-disabled":r?"true":l["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":f.isPressed||void 0,"data-hovered":c||void 0,"data-focused":u||void 0,"data-pending":r||void 0,"data-focus-visible":a||void 0},d.createElement(d4.Provider,{value:{id:b}},v.children))}function h4(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}const m4=o4(v4),ms=d.createContext({placement:"bottom"});function b4(e,t){[e,t]=Kr(e,t,ms);let n=e.placement,r={position:"absolute",[n]:"100%",transform:n==="top"||n==="bottom"?"translateX(-50%)":"translateY(-50%)"},l=Ar({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:n}});return l.style&&Object.keys(l.style).forEach(i=>l.style[i]===void 0&&delete l.style[i]),d.createElement("div",{...e,...l,style:{...r,...l.style},ref:t,"data-placement":n})}const g4=d.forwardRef(b4),Mr=d.createContext(null),bs=d.createContext(null);function $4(e){let t=cs(e),n=d.useRef(null),{triggerProps:r,tooltipProps:l}=op(e,t,n);return d.createElement(u4,{values:[[Mr,t],[bs,{...l,triggerRef:n}]]},d.createElement(dd,{...r,ref:n},e.children))}function y4({UNSTABLE_portalContainer:e,...t},n){[t,n]=Kr(t,n,bs);let r=d.useContext(Mr),l=cs(t),i=t.isOpen!=null||t.defaultOpen!=null||!r?l:r,o=c4(n,i.isOpen)||t.isExiting||!1;return!i.isOpen&&!o?null:d.createElement(Qd,{portalContainer:e},d.createElement(E4,{...t,tooltipRef:n,isExiting:o}))}const x4=d.forwardRef(y4);function E4(e){let t=d.useContext(Mr),n=d.useRef(null),[r,l]=d.useState(0);q(()=>{n.current&&t.isOpen&&l(n.current.getBoundingClientRect().width)},[t.isOpen,n]);let{overlayProps:i,arrowProps:o,placement:u}=Si({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowSize:r,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip}),a=s4(e.tooltipRef,!!u)||e.isEntering||!1,s=Ar({...e,defaultClassName:"react-aria-Tooltip",values:{placement:u,isEntering:a,isExiting:e.isExiting,state:t}});e=O(e,i);let{tooltipProps:c}=ip(e,t);return d.createElement("div",{...c,ref:e.tooltipRef,...s,style:{...i.style,...s.style},"data-placement":u,"data-entering":a||void 0,"data-exiting":e.isExiting||void 0},d.createElement(ms.Provider,{value:{...o,placement:u,ref:n}},s.children))}function gs({children:e,arrow:t,...n}){const{className:r,style:l}=Re();return g.jsxs(x4,{...n,className:`proton__Tooltip proton-Dialog ${r}`,style:l,children:[t&&g.jsx(g4,{className:"proton__TooltipArrow",children:g.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",children:g.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),e]})}function $s({children:e,delay:t=500,closeDelay:n=500,isDisabled:r,defaultOpen:l,onOpenChange:i,disableTriggerClick:o,content:u,...a}){const[s,c]=d.useState(!1),f=d.useRef(!1),v=d.useRef(!1);return g.jsxs($4,{delay:t,closeDelay:n,isDisabled:r,isOpen:s,defaultOpen:l,onOpenChange:p=>{p&&!f.current&&(v.current=!0),i&&i(p),f.current||c(p),f.current=!1},children:[g.jsx(m4,{className:"proton__TooltipTrigger","aria-label":"Show tooltip",onPress:()=>{o||v.current||(f.current=!0,c(!s))},children:e}),g.jsx(gs,{...a,children:u})]})}const C4=({to:e,children:t,tooltipProps:n,"data-testid":r})=>{const{className:l}=Re(),i=n?g.jsx($s,{delay:50,closeDelay:75,...n,children:t}):t;if(e){const o=_.isUrlExternal(e);return g.jsx("span",{className:_.csx("proton-TextEmphasis",n&&"proton-TextEmphasis--tooltip",l),children:g.jsx("a",{"data-testid":r,href:e,target:o?"_blank":void 0,rel:o?"noopener noreferrer":void 0,onClick:o?void 0:u=>_.handleInternalNavigation(u,e),children:i})})}return g.jsx("span",{className:_.csx("proton-TextEmphasis",n&&"proton-TextEmphasis--tooltip",l),"data-testid":r,children:i})};function S4({amplitude:e,isDisabled:t,isPlayed:n,isHovered:r,isVisible:l,hasAnimated:i,resolution:o,spacing:u,index:a}){const s=l?`${Math.max(e*100,4)}%`:"0%";return g.jsxs("div",{className:_.csx("proton-Waveform__bar-wrapper"),style:{width:`${o}px`,marginRight:`${u}px`},children:[g.jsx("div",{className:_.csx("proton-Waveform__bar","proton-Waveform__bar--upper",t&&"proton-Waveform__bar--disabled",n&&"proton-Waveform__bar--played",l&&"proton-Waveform__bar--visible",i&&"proton-Waveform__bar--animated"),style:{"--target-height":`calc(${s} / 2)`,"--index":a}}),g.jsx("div",{className:_.csx("proton-Waveform__bar","proton-Waveform__bar--lower",t&&"proton-Waveform__bar--disabled",n&&"proton-Waveform__bar--played",l&&"proton-Waveform__bar--visible",i&&"proton-Waveform__bar--animated"),style:{"--target-height":`calc(${s} / 2)`,"--index":a}}),r&&!t&&!n&&g.jsx("div",{className:"proton-Waveform__bar--hover",style:{"--hover-height":s}})]})}const P4=k4(100);function w4({data:e,resolution:t=2,startDuration:n,endDuration:r,currentTime:l=0,showTimestamps:i=!1,totalDuration:o,onClick:u,timestampColor:a,"data-testid":s}){var R;const{className:c,themedRGBArray:f,theme:v}=Re(),p=d.useRef(null),[b,x]=d.useState([]),[$,C]=d.useState(null),[P,S]=d.useState(!1),[A,w]=d.useState(!1),B=e||P4,I=a||(v==="dark"?_.arrayToRgbString(_.lightenRGBColor(f,-.1),.8):void 0),h=t;d.useEffect(()=>{if(!p.current)return;const T=W=>{const ne=Math.floor(W/(t+h)),oe=T4(B,ne);x(oe)},z=p.current.clientWidth;T(z);const M=new ResizeObserver(W=>{W&&W[0]&&T(W[0].contentRect.width)});return M.observe(p.current),()=>M.disconnect()},[B,t,h]),d.useEffect(()=>{const T=setTimeout(()=>S(!0),50),z=setTimeout(()=>w(!0),500);return()=>{clearTimeout(T),clearTimeout(z)}},[]);const K=T=>{if(!p.current)return;const z=p.current.getBoundingClientRect(),W=(T.clientX-z.left)/z.width*o;C(W)},y=()=>{C(null)},D=t+h,N=(T,z)=>{var ne;const M=T/o*100;return(z==="start"?Math.floor(M/100*b.length):Math.ceil(M/100*b.length))*D/((ne=p.current)==null?void 0:ne.clientWidth)*100},E=(R=p.current)==null?void 0:R.clientWidth;return g.jsxs("div",{className:_.csx("proton-Waveform",c),"data-testid":s,children:[i&&g.jsx(Ll,{direction:"left",seconds:l,color:I}),g.jsxs("div",{ref:p,className:"proton-Waveform__container",onMouseMove:K,onMouseLeave:y,onClick:T=>{if(!p.current)return;const z=p.current.getBoundingClientRect(),W=(T.clientX-z.left)/z.width*o;u==null||u(W,T)},children:[n!==void 0&&r!==void 0&&g.jsx("div",{className:"proton-Waveform__active-region",style:{left:p.current?`calc(${N(n,"start")}%`:"0%",right:p.current?`calc(${100-N(r,"end")}% - 2px)`:"0%"}}),$!==null&&g.jsx("div",{className:"proton-Waveform__hover-line",style:{left:`${$/o*100}%`}}),b.map((T,z)=>{const M=z/b.length*o,W=n!==void 0&&r!==void 0&&(M<n||M>r),ne=l===0?!1:M<=l,oe=$!==null&&M<=$;return g.jsx(S4,{amplitude:T,isDisabled:W,isPlayed:ne,isHovered:oe,isVisible:P,hasAnimated:A,resolution:t,spacing:h,index:z},z)})]}),!e&&g.jsx("div",{className:"proton-Waveform__bar-unavailable",style:{backgroundColor:I,fontSize:E<325?"0.85rem":"1rem"},children:E<277?"Unavailable":"Waveform Unavailable"}),i&&g.jsx(Ll,{direction:"right",seconds:o,color:I})]})}function Ll({direction:e,color:t,seconds:n}){return g.jsx("div",{className:_.csx("proton-Waveform__timestamp",`proton-Waveform__timestamp--${e}`),style:{backgroundColor:t},children:D4(n)})}function D4(e){const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n<10?"0":""}${n.toFixed(0)}`}function T4(e,t){const n=e.length,r=n/t,l=new Array(t).fill(0).map((i,o)=>{const u=o*r,a=Math.floor(u),s=Math.min(a+1,n-1),c=u-a;return e[a]*(1-c)+e[s]*c});return B4(l)}function B4(e){const t=Math.min(...e),n=Math.max(...e);return e.map(r=>{const l=(r-t)/(n-t);return Math.max(l*.8+.1,.1)})}function k4(e){return Array.from({length:e},(t,n)=>{const l=n/(e-1)*6*2*Math.PI-Math.PI/2;return Math.sin(l)*.5+.5})}const ys=d.forwardRef(({prefix:e,suffix:t,description:n,descriptionPosition:r="top",isDisabled:l,error:i,onChange:o,label:u,name:a,placeholder:s,type:c="text",value:f,autoFocus:v,autoComplete:p,"data-testid":b},x)=>{const $=d.useRef(null),{className:C}=Re(),P=x||$,{labelProps:S,inputProps:A,descriptionProps:w,errorMessageProps:B}=xi({label:u,name:a,type:c,autoFocus:v,autoComplete:p?"on":"off","aria-label":u||a,"aria-describedby":i?`${a}-input-error`:`${a}-input`,errorMessage:i,isDisabled:l,placeholder:s,validationState:i?"invalid":"valid",value:f,onChange:o},P),{clipboardProps:I}=Kf({getItems(){return[{"text/plain":f}]}});return g.jsxs("div",{className:"proton-Input__container",children:[n&&r==="top"&&g.jsx("div",{...w,className:"proton-Input__text",children:n}),g.jsxs("div",{className:"proton-Input__container-inner",children:[e&&g.jsx("div",{className:_.csx("proton-Input__descriptor","proton-Input__prefix"),children:e}),g.jsx("input",{...A,...I,"data-testid":b,id:`${a}-input`,"aria-invalid":!!i,ref:P,className:_.csx("proton-Input",i&&"proton-Input--error",u&&!s&&"proton-Input__label-top",C)}),g.jsx("label",{...S,className:_.csx("proton-Input__label",s&&"proton-Input__label--hide",f&&"proton-Input__label--filled"),children:u}),t&&g.jsx("div",{className:_.csx("proton-Input__descriptor","proton-Input__suffix"),children:t})]}),i?g.jsx("div",{...B,role:"alert",className:_.csx("proton-Input__error","proton-Input__text"),id:`${a}-error`,children:i}):n&&r==="bottom"?g.jsx("div",{...w,className:"proton-Input__text",children:n}):null]})}),A4=({name:e="search",placeholder:t="Search...",autoComplete:n,isClearable:r=!0,error:l,defaultValue:i,value:o,"data-testid":u="proton-SearchInput",onChange:a,onClear:s})=>{const c=yp({defaultValue:i,value:o,onChange:C=>a==null?void 0:a(C),onClear:()=>s==null?void 0:s(),label:t}),f=d.useRef(null),{inputProps:v,clearButtonProps:p}=Hf({...c,placeholder:t},c,f),{value:b,setValue:x}=c,$=()=>{s&&s(),a==null||a(""),x("")};return g.jsx("div",{className:"proton-SearchInput__wrapper","data-testid":u,role:"search",children:g.jsx(ys,{...v,type:"search",onChange:C=>c.setValue(C),value:b,name:e,placeholder:t,autoComplete:n,error:l,ref:f,prefix:g.jsxs("svg",{"aria-hidden":"true",width:"1.6em",height:"1.6em",viewBox:"0 0 24 24",onClick:()=>{var C;return(C=f.current)==null?void 0:C.focus()},children:[g.jsx("title",{children:"Magnifying Glass"}),g.jsx("path",{fill:"currentColor",d:"M10.5 18.5a8 8 0 1 1 0-16 8 8 0 0 1 0 16Zm0-1a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm5.25-.75 4.5 4.5-1.25 1.25-4.5-4.5 1.25-1.25Z"})]}),suffix:g.jsx("button",{"aria-label":p["aria-label"],type:"button",className:_.csx("proton-SearchInput__button","proton-Input__descriptor","proton-Input__suffix",!(r&&(b==null?void 0:b.length)>0)&&"proton-SearchInput__button--hide"),"data-testid":`${u}-clear`,onClick:()=>{var C;$(),(C=f.current)==null||C.focus()},children:g.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 50 50",width:"1.2em",height:"1.2em",children:[g.jsx("title",{children:"Clear"}),g.jsx("path",{fill:"currentColor",d:"m37.304 11.282l1.414 1.414l-26.022 26.02l-1.414-1.413z"}),g.jsx("path",{fill:"currentColor",d:"m12.696 11.282l26.022 26.02l-1.414 1.415l-26.022-26.02z"})]})})})})};exports.COLORS=G.colors;exports.THEMES=G.THEMES;exports.ActionMenu=ps;exports.Badge=Zs;exports.BadgeVariants=Xs;exports.Banner=De;exports.Button=wr;exports.ButtonGroup=fs;exports.Cell=r4;exports.Column=n4;exports.Dialog=Np;exports.Icon=zp;exports.Input=ys;exports.Popover=kr;exports.ResponsiveSelect=Xp;exports.Row=kp;exports.SearchInput=A4;exports.Section=hf;exports.Select=Yp;exports.Switch=Zp;exports.Table=l4;exports.TableBody=Tp;exports.TableHeader=Dp;exports.TextEmphasis=C4;exports.ThemeProvider=Gs;exports.Tooltip=gs;exports.TooltipTrigger=$s;exports.Waveform=w4;exports.usePopoverTrigger=jp;exports.useTheme=Re;
30
+ <%s key={someKey} {...props} />`,He,se,Hn,se),$t[se+He]=!0}}return a===r?In(H):kn(H),H}}function On(a,b,g){return Et(a,b,g,!0)}function Ln(a,b,g){return Et(a,b,g,!1)}var Dn=Ln,Bn=On;ve.Fragment=r,ve.jsx=Dn,ve.jsxs=Bn}()),ve}process.env.NODE_ENV==="production"?Ye.exports=Wn():Ye.exports=Kn();var c=Ye.exports;function Fn(t=!0){i.useLayoutEffect(()=>{if(!t)return;const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[t])}const Gn=({children:t})=>{const{className:e,style:n}=ee(),r=(()=>{let o=document.getElementById("action-menus-root");return o||(o=document.createElement("div"),o.id="action-menus-root",document.body.appendChild(o)),o.className=e,Object.entries(n).forEach(([s,l])=>{o.style.setProperty(s,l)}),o})();return we.createPortal(t,r)},nt=({id:t,isOpen:e,selectionMode:n="single",selectedKeys:r,disabledKeys:o,children:s,showCancel:l=!0,actions:u,closeOnNavigation:d=!0,onSelectionChange:p,onClose:f,"data-testid":v})=>{Fn(e);const{className:h,theme:m}=ee(),[x,S]=i.useState(!1),[_,C]=i.useState(0),R=i.useRef(null),M=i.useRef(null),P=i.useRef(window.location.pathname),O=u&&u.length>0,j=()=>{S(!0),C(0),setTimeout(()=>{f==null||f(),S(!1)},300)},W=O?q.useTreeState({items:u,children:u.map(I=>i.createElement(q.Item,{...I,key:I.key},I.label)),selectedKeys:new Set(r),onSelectionChange:I=>p==null?void 0:p(I),selectionMode:n,disabledKeys:o}):null,{menuProps:F}=O?y.useMenu({autoFocus:!0,shouldFocusWrap:!0,onAction:I=>{var B,J;return(J=(B=u.find(L=>L.key===I))==null?void 0:B.onAction)==null?void 0:J.call(B,I)},onClose:()=>f==null?void 0:f(),disabledKeys:o,onSelectionChange:I=>p==null?void 0:p(I),selectionMode:n,selectedKeys:r,"aria-label":"Action Menu"},W,M):{menuProps:{}},{overlayProps:V}=y.useOverlay({isOpen:e,onClose:()=>f==null?void 0:f(),isDismissable:!1},M);i.useEffect(()=>{e&&R.current&&C(R.current.scrollHeight)},[e,R]),i.useEffect(()=>{const I=B=>{B.key==="Escape"&&j()};return document.addEventListener("keydown",I),()=>{document.removeEventListener("keydown",I)}},[x]),i.useEffect(()=>{d&&(P.current&&P.current!==location.pathname&&j(),P.current=location.pathname)},[x,d]);const Q=R.current?R.current.getBoundingClientRect().height>window.innerHeight:!1,ie=s||O||l;return e?c.jsxs(Gn,{children:[c.jsx("div",{...V,className:"proton-ActionMenu__background",style:{opacity:_>0?1:0},onClick:j,id:t,children:c.jsx("div",{className:"proton-ActionMenu__close-button","data-testid":"ActionMenu-close",children:"ESC"})}),c.jsx("div",{"data-testid":v||"ActionMenu-wrapper",className:E.csx("proton-ActionMenu__wrapper",Q&&"proton-ActionMenu__wrapper--scrollable"),children:c.jsx("div",{className:E.csx("proton-ActionMenu__card",h),"data-testid":"ActionMenu-content",style:{height:`${_}px`},children:c.jsx("div",{ref:M,children:c.jsx("div",{...F,ref:R,children:ie?c.jsxs(y.FocusScope,{autoFocus:!0,contain:!0,children:[s&&c.jsx("div",{className:"proton-ActionMenu__content",children:typeof s=="function"?s({close:j}):s}),O&&c.jsx("div",{className:E.csx("proton-ActionMenu__list",n==="none"&&"proton-ActionMenu__list--disabled"),children:Array.from(W.collection).map(I=>c.jsx(Yn,{item:I,state:W,to:I.props.to},I.key))}),l&&c.jsx("div",{className:"proton-ActionMenu__cancel-button",tabIndex:-1,children:c.jsx(rt,{variant:m==="dark"||m==="custom-dark"?"translucent":"secondary",onPress:j,"data-testid":"ActionMenuItem-cancel",children:"Cancel"})})]}):null})})})})]}):null},Yn=({to:t,state:e,item:n})=>{const r=i.useRef(null),{menuItemProps:o}=y.useMenuItem({key:n.key},e,r),s=t?"a":"div",l=t&&E.isUrlExternal(t),u=t?{href:t,target:l?"_blank":void 0,rel:l?"noopener noreferrer":void 0,onClick:l||!t?()=>{}:d=>E.handleInternalNavigation(d,t)}:{};return i.createElement(s,{...o,...u,key:n.key,className:"proton-ActionMenu__item","aria-label":`ActionMenu-Item-${n.key}`,ref:r},n.rendered)},Bt=i.createContext(void 0),ee=()=>{const t=i.useContext(Bt);if(t===void 0)throw new Error("useTheme must be used within a ThemeProvider");return t},Un={[Z.THEMES.DARK]:"proton-ui__theme--dark",[Z.THEMES.CUSTOM_DARK]:"proton-ui__theme--custom-dark",[Z.THEMES.LIGHT]:"proton-ui__theme--light"},zn=({theme:t,children:e,palette:n})=>{const r=i.useRef(null),o=Un[t],s=i.useMemo(()=>qn(n),[n]);return i.useEffect(()=>{if(r.current){r.current.className=o;const l=s[t];Object.entries(l).forEach(([u,d])=>{r.current.style.setProperty(u,d)})}},[t,o,n,s]),c.jsx(Bt.Provider,{value:{theme:t,style:s[t],palette:n,className:o},children:c.jsx("div",{ref:r,children:e})})},Ve="rgb(83, 82, 83)";function qn(t){const e=ne.transparentize(t.PRIMARY.PRIMARY_LIGHTEST,.4),n=ne.transparentize(t.PRIMARY.PRIMARY_LIGHTEST,.8);return{[Z.THEMES.DARK]:{"--proton-control__background-color":ne.toRgba(Ve),"--proton-control__text-color":k.GRAYSCALE.WHITE,"--proton-control__border-color":k.GRAYSCALE.GRAY_DARK,"--proton-control__shadow-color":k.GRAYSCALE.GRAY_DARK,"--proton-color__primary":t.BRAND.PRIMARY,"--proton-color__primary-light":t.BRAND.PRIMARY_LIGHT,"--proton-color__secondary":t.BRAND.SECONDARY},[Z.THEMES.LIGHT]:{"--proton-control__background-color":k.GRAYSCALE.WHITE,"--proton-control__text-color":k.GRAYSCALE.GRAY_DARK,"--proton-control__border-color":k.GRAYSCALE.GRAY_LIGHT,"--proton-control__shadow-color":ne.transparentize(ne.toRgba(Ve),.9),"--proton-color__primary":t.BRAND.PRIMARY,"--proton-color__primary-light":t.BRAND.PRIMARY_LIGHT,"--proton-color__secondary":t.BRAND.SECONDARY},[Z.THEMES.CUSTOM_DARK]:{"--proton-control__background-color":ne.toRgba(Ve),"--proton-control__text-color":k.GRAYSCALE.WHITE,"--proton-control__border-color":n,"--proton-control__shadow-color":e,"--proton-color__primary":t.BRAND.PRIMARY,"--proton-color__primary-light":t.BRAND.PRIMARY_LIGHT,"--proton-color__secondary":t.BRAND.SECONDARY}}}const Jn={primary:"primary",secondary:"secondary",transparent:"transparent",success:"success",warning:"warning",danger:"danger"},Xn=({variant:t,children:e,...n})=>{const{className:r}=ee();return c.jsx("div",{role:"status","aria-live":"polite","data-testid":n["data-testid"],className:E.csx("proton-Badge",t&&`proton-Badge--${t}`,r),children:e})};function rt({variant:t="primary",href:e,onPress:n,type:r,isDisabled:o,"data-testid":s,children:l}){const u=e?"a":"button",d=u!=="a"?{}:{target:"_blank",href:e},p=i.useRef(null),{buttonProps:f}=y.useButton({onPress:n,elementType:u,type:r||"button",isDisabled:o},p);return c.jsxs(u,{...f,...d,className:E.csx("proton-Button",`proton-Button--${t}`,o&&"proton-Button--disabled"),ref:p,"data-testid":s,children:[l,e&&E.isUrlExternal(e)&&c.jsx("svg",{viewBox:"0 0 512 512",width:"0.8em",height:"0.8em",children:c.jsx("path",{d:"M384 224v184a40 40 0 01-40 40H104a40 40 0 01-40-40V168a40 40 0 0140-40h167.48M336 64h112v112M224 288L440 72",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"})})]})}const Ht={success:c.jsx("svg",{viewBox:"0 0 20 20",height:"18",width:"18",children:c.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z"})}),warning:c.jsx("svg",{viewBox:"0 0 56 56",height:"17",width:"17",children:c.jsx("path",{d:"M9.59 50.207h36.82c3.516 0 5.719-2.531 5.719-5.719a5.56 5.56 0 0 0-.75-2.812l-18.445-33c-1.055-1.899-2.977-2.883-4.922-2.883c-1.922 0-3.89.984-4.946 2.883L4.645 41.699c-.516.89-.774 1.828-.774 2.79c0 3.187 2.227 5.718 5.719 5.718m18.422-16.055c-1.242 0-1.922-.703-1.969-1.968l-.328-11.578c-.047-1.266.937-2.204 2.273-2.204c1.313 0 2.344.961 2.297 2.227l-.351 11.555c-.047 1.289-.727 1.968-1.922 1.968m0 8.649c-1.36 0-2.625-1.078-2.625-2.532s1.242-2.53 2.625-2.53s2.625 1.054 2.625 2.53c0 1.477-1.266 2.532-2.625 2.532"})}),danger:c.jsx("svg",{viewBox:"0 0 20 20",height:"18",width:"18",children:c.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z"})})},Zn={default:{background:k.GRAYSCALE.GRAY_LIGHTEST,title:k.GRAYSCALE.GRAY_DARK,content:k.GRAYSCALE.GRAY_MEDIUM,icon:k.GRAYSCALE.GRAY_MEDIUM_LIGHT},success:{background:k.SUCCESS.SUPER_LIGHT,title:k.SUCCESS.DARK,content:k.SUCCESS.MEDIUM,icon:k.SUCCESS.LIGHT},warning:{background:k.WARNING.SUPER_LIGHT,title:k.WARNING.DARK,content:k.WARNING.MEDIUM,icon:k.WARNING.LIGHT},danger:{background:k.DANGER.SUPER_LIGHT,title:k.DANGER.DARK,content:k.DANGER.MEDIUM,icon:k.DANGER.LIGHT}},Qn={default:"default",success:"success",warning:"warning",danger:"danger"},Re=i.createContext(void 0),re=({variant:t="default",rounded:e=!0,icon:n=!1,compact:r=!0,children:o,...s})=>c.jsx(Re.Provider,{value:t,children:c.jsx("div",{role:"status","aria-live":"polite",className:E.csx("proton-Banner",`proton-Banner--${t}`,e&&"proton-Banner--rounded"),"data-testid":s["data-testid"],children:c.jsxs("div",{className:E.csx("proton-Banner__wrapper",r&&"proton-Banner__wrapper--compact"),children:[c.jsx(re.Icon,{icon:n}),c.jsx("div",{className:"proton-Banner__content-wrapper",children:c.jsx("div",{className:"proton-Banner__container",children:o})})]})})}),er=({children:t,...e})=>{const n=i.useContext(Re);if(!n)throw new Error("BannerTitle must be used within a Banner");return c.jsx("h3",{className:E.csx("proton-Banner","proton-Banner__title",`proton-Banner--${n}__title`),"data-testid":e["data-testid"],children:t})},tr=({children:t,...e})=>{const n=i.useContext(Re);if(!n)throw new Error("BannerContent must be used within a Banner");return c.jsx("p",{className:E.csx("proton-Banner","proton-Banner__content",`proton-Banner--${n}__content`),"data-testid":e["data-testid"],children:t})},nr=({children:t,icon:e,...n})=>{const r=i.useContext(Re);if(!r)throw new Error("BannerIcon must be used within a Banner");const s=i.isValidElement(e)?e:e===!0?Ht[r]:t||null;return s?c.jsx("span",{"aria-hidden":"true","data-testid":n["data-testid"],className:E.csx("proton-Banner__icon",`proton-Banner--${r}__icon`),children:s}):null},rr=({children:t,...e})=>c.jsx(rt,{...e,children:t}),or=({children:t})=>c.jsx("div",{className:"proton-Banner__actions",children:t});re.Title=er;re.Content=tr;re.Icon=nr;re.Action=rr;re.Actions=or;re.colors=Zn;re.icons=Ht;re.variants=Qn;let Vt=i.createContext(null);function Wt(t){let e={...t,"data-testid":void 0},n=q.useRadioGroupState(e),{radioGroupProps:r}=y.useRadioGroup(e,n);return c.jsx("div",{...r,className:"proton-ButtonGroup","data-value":n.selectedValue,"data-testid":t["data-testid"]||void 0,children:c.jsx(Vt.Provider,{value:n,children:t.children})})}Wt.Option=function(e){let n={...e,"data-testid":void 0},r=i.useContext(Vt),o=i.useRef(null),{inputProps:s,isSelected:l}=y.useRadio(n,r,o);return c.jsxs("label",{className:E.csx("proton-ButtonGroup__option",l&&"proton-ButtonGroup__option--selected"),"data-selected":l||void 0,"data-testid":e["data-testid"]||void 0,children:[c.jsx(y.VisuallyHidden,{children:c.jsx("input",{...s,ref:o})}),e.children]})};function ir({title:t,children:e,...n}){let r=i.useRef(null),{dialogProps:o,titleProps:s}=y.useDialog(n,r);const{className:l}=ee();return c.jsxs("div",{...o,ref:r,className:E.csx("proton-Dialog",l),children:[t&&c.jsx("h3",{...s,className:"proton-Dialog__header",children:t}),e]})}const sr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3csymbol%20id='external-link'%20viewBox='0%200%20512%20512'%3e%3cpath%20d='M384%20224v184a40%2040%200%2001-40%2040H104a40%2040%200%2001-40-40V168a40%2040%200%200140-40h167.48M336%2064h112v112M224%20288L440%2072'%20fill='none'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='32'/%3e%3c/symbol%3e%3csymbol%20id='caret-down'%20viewBox='0%200%20512%20512'%3e%3cpath%20fill='currentColor'%20d='M233.4%20406.6c12.5%2012.5%2032.8%2012.5%2045.3%200l192-192c12.5-12.5%2012.5-32.8%200-45.3s-32.8-12.5-45.3%200L256%20338.7L86.6%20169.4c-12.5-12.5-32.8-12.5-45.3%200s-12.5%2032.8%200%2045.3l192%20192z'/%3e%3c/symbol%3e%3c/defs%3e%3c/svg%3e";function ar(t){let e={height:t.size||void 0,width:t.size||void 0,color:t.color||void 0};return c.jsx("svg",{style:e,...t,children:c.jsx("use",{href:`${sr}#${t.id}`})})}function lr(t){const[e,n]=i.useState("");return i.useEffect(()=>{},[]),e?c.jsxs(c.Fragment,{children:[c.jsx("div",{dangerouslySetInnerHTML:{__html:e},style:{display:"none"}}),c.jsx(ar,{...t})]}):null}const Kt=i.forwardRef(({prefix:t,suffix:e,description:n,descriptionPosition:r="top",isDisabled:o,error:s,onChange:l,label:u,name:d,placeholder:p,type:f="text",value:v,autoFocus:h,autoComplete:m,"data-testid":x},S)=>{const _=i.useRef(null),{className:C,palette:R,theme:M}=ee(),P=S||_,{labelProps:O,inputProps:j,descriptionProps:W,errorMessageProps:F}=y.useTextField({label:u,name:d,type:f,autoFocus:h,autoComplete:m?"on":"off","aria-label":u||d,"aria-describedby":s?`${d}-input-error`:`${d}-input`,errorMessage:s,isDisabled:o,placeholder:p,validationState:s?"invalid":"valid",value:v,onChange:l},P),{clipboardProps:V}=y.useClipboard({getItems(){return[{"text/plain":v}]}}),Q={"--input-background":(()=>{switch(M){case Z.THEMES.CUSTOM_DARK:return ne.transparentize(R.PRIMARY.PRIMARY_SUPER_LIGHT,.6);case Z.THEMES.DARK:return ne.transparentize(k.GRAYSCALE.GRAY_MEDIUM,.5);default:return k.GRAYSCALE.WHITE}})()};return c.jsxs("div",{className:"proton-Input__container",children:[n&&r==="top"&&c.jsx("div",{...W,className:"proton-Input__text",children:n}),c.jsxs("div",{className:"proton-Input__container-inner",children:[t&&c.jsx("div",{className:E.csx("proton-Input__descriptor","proton-Input__prefix"),children:t}),c.jsx("input",{...j,...V,"data-testid":x,id:`${d}-input`,"aria-invalid":!!s,ref:P,style:Q,className:E.csx("proton-Input",s&&"proton-Input--error",u&&!p&&"proton-Input__label-top",C)}),c.jsx("label",{...O,className:E.csx("proton-Input__label",p&&"proton-Input__label--hide",v&&"proton-Input__label--filled"),children:u}),e&&c.jsx("div",{className:E.csx("proton-Input__descriptor","proton-Input__suffix"),children:e})]}),s?c.jsx("div",{...F,role:"alert",className:E.csx("proton-Input__error","proton-Input__text"),id:`${d}-error`,children:s}):n&&r==="bottom"?c.jsx("div",{...W,className:"proton-Input__text",children:n}):null]})});function cr(t,e,n){let[r,o]=i.useState(t||e),s=i.useRef(t!==void 0),l=t!==void 0;i.useEffect(()=>{let p=s.current;p!==l&&console.warn(`WARN: A component changed from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),s.current=l},[l]);let u=l?t:r,d=i.useCallback((p,...f)=>{let v=(h,...m)=>{n&&(Object.is(u,h)||n(h,...m)),l||(u=h)};typeof p=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((m,...x)=>{let S=p(l?u:m,...x);return v(S,...f),l?m:S})):(l||o(p),v(p,...f))},[l,u,n]);return[u,d]}function ur(t){let[e,n]=cr(Rt(t.value),Rt(t.defaultValue)||"",t.onChange);return{value:e,setValue:n}}function Rt(t){if(t!=null)return t.toString()}const dr=({name:t="search",placeholder:e="Search...",autoComplete:n,isClearable:r=!0,error:o,defaultValue:s,value:l,"data-testid":u="proton-SearchInput",onChange:d,onClear:p})=>{const f=ur({defaultValue:s,value:l,onChange:C=>d==null?void 0:d(C),onClear:()=>p==null?void 0:p(),label:e}),v=i.useRef(null),{inputProps:h,clearButtonProps:m}=y.useSearchField({...f,placeholder:e},f,v),{value:x,setValue:S}=f,_=()=>{p&&p(),d==null||d(""),S("")};return c.jsx("div",{className:"proton-SearchInput__wrapper","data-testid":u,role:"search",children:c.jsx(Kt,{...h,type:"search",onChange:C=>f.setValue(C),value:x,name:t,placeholder:e,autoComplete:n,error:o,ref:v,prefix:c.jsxs("svg",{"aria-hidden":"true",width:"1.6em",height:"1.6em",viewBox:"0 0 24 24",onClick:()=>{var C;return(C=v.current)==null?void 0:C.focus()},children:[c.jsx("title",{children:"Magnifying Glass"}),c.jsx("path",{fill:"currentColor",d:"M10.5 18.5a8 8 0 1 1 0-16 8 8 0 0 1 0 16Zm0-1a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm5.25-.75 4.5 4.5-1.25 1.25-4.5-4.5 1.25-1.25Z"})]}),suffix:c.jsx("button",{"aria-label":m["aria-label"],type:"button",className:E.csx("proton-SearchInput__button","proton-Input__descriptor","proton-Input__suffix",!(r&&(x==null?void 0:x.length)>0)&&"proton-SearchInput__button--hide"),"data-testid":`${u}-clear`,onClick:()=>{var C;_(),(C=v.current)==null||C.focus()},children:c.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 50 50",width:"1.2em",height:"1.2em",children:[c.jsx("title",{children:"Clear"}),c.jsx("path",{fill:"currentColor",d:"m37.304 11.282l1.414 1.414l-26.022 26.02l-1.414-1.413z"}),c.jsx("path",{fill:"currentColor",d:"m12.696 11.282l26.022 26.02l-1.414 1.415l-26.022-26.02z"})]})})})})};function fr(t){const e=i.useRef(null),n=q.useOverlayTriggerState(t||{}),{triggerProps:r,overlayProps:o}=y.useOverlayTrigger({type:"dialog"},n,e),{buttonProps:s}=y.useButton(r,e);return{buttonProps:s,overlayProps:o,buttonRef:e,state:n}}function Pe({children:t,state:e,arrow:n=!0,offset:r,...o}){const s=i.useRef(null),{popoverRef:l=s}=o,{className:u,style:d}=ee();let{popoverProps:p,underlayProps:f,arrowProps:v,placement:h}=y.usePopover({...o,offset:r,popoverRef:l},e);return c.jsxs(y.Overlay,{children:[c.jsx("div",{...f,style:{position:"fixed",inset:0}}),c.jsxs("div",{...p,ref:l,className:E.csx("proton-Popover",u),style:{...d,...p.style},"data-testid":o["data-testid"]||void 0,children:[c.jsx(y.DismissButton,{onDismiss:e.close}),n&&c.jsxs("svg",{...v,className:"arrow","data-placement":h,viewBox:"0 0 12 12",children:[c.jsx("title",{children:"arrow"}),c.jsx("path",{d:"M0 0 L6 6 L12 0"})]}),t]})]})}class ot{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new ot(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e}constructor(e,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=e,this.key=n}}class pr{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(e),o=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class Ft{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}appendChild(e){this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode;let r=n;for(;r;)r.index++,r=r.nextSibling;e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(e){if(e.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let n=e.nextSibling;for(;n;)n.index--,n=n.nextSibling;e.nextSibling&&(e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.removeNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=e}}class me extends Ft{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof me?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var e,n,r,o;let s=this.ownerDocument.getMutableNode(this);s.index=this.index,s.level=this.level,s.parentKey=this.parentNode instanceof me?this.parentNode.node.key:null;var l;s.prevKey=(l=(e=this.previousSibling)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var u;s.nextKey=(u=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&u!==void 0?u:null,s.hasChildNodes=!!this.firstChild;var d;s.firstChildKey=(d=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&d!==void 0?d:null;var p;s.lastChildKey=(p=(o=this.lastChild)===null||o===void 0?void 0:o.node.key)!==null&&p!==void 0?p:null}setProps(e,n,r,o){let s=this.ownerDocument.getMutableNode(this),{value:l,textValue:u,id:d,...p}=e;if(p.ref=n,s.props=p,s.rendered=r,s.render=o,s.value=l,s.textValue=u||(typeof p.children=="string"?p.children:"")||e["aria-label"]||"",d!=null&&d!==s.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");s.key=d}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new ot(e,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class hr extends Ft{get isConnected(){return this.isMounted}createElement(e){return new me(e,this)}getMutableNode(e){let n=e.node;return this.mutatedNodes.has(e)||(n=e.node.clone(),this.mutatedNodes.add(e),e.node=n),this.markDirty(e),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(e){this.dirtyNodes.add(e)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(e){let n=this.getMutableCollection();if(!n.getItem(e.node.key)){n.addNode(e.node);for(let r of e)this.addNode(r)}this.markDirty(e)}removeNode(e){for(let r of e)this.removeNode(r);this.getMutableCollection().removeNode(e.node.key),this.markDirty(e)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let s of this.dirtyNodes)s instanceof me&&s.isConnected&&s.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var e,n;let s=this.getMutableCollection();for(let l of this.mutatedNodes)l.isConnected&&s.addNode(l.node);var r,o;s.commit((r=(e=this.firstChild)===null||e===void 0?void 0:e.node.key)!==null&&r!==void 0?r:null,(o=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&o!==void 0?o:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let e of this.subscriptions)e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=e,this.collectionMutated=!0}}function Gt(t){let{children:e,items:n,idScope:r,addIdAndValue:o,dependencies:s=[]}=t,l=i.useMemo(()=>new WeakMap,s);return i.useMemo(()=>{if(n&&typeof e=="function"){let p=[];for(let f of n){let v=l.get(f);if(!v){v=e(f);var u,d;let h=(d=(u=v.props.id)!==null&&u!==void 0?u:f.key)!==null&&d!==void 0?d:f.id;if(h==null)throw new Error("Could not determine key for item");r&&(h=r+":"+h),v=i.cloneElement(v,o?{key:h,id:h,value:f}:{key:h}),l.set(f,v)}p.push(v)}return p}else if(typeof e!="function")return e},[e,n,l,r,o])}const Ee={prefix:String(Math.round(Math.random()*1e10)),current:0},Yt=i.createContext(Ee),vr=i.createContext(!1);let mr=!!(typeof window<"u"&&window.document&&window.document.createElement),We=new WeakMap;function br(t=!1){let e=i.useContext(Yt),n=i.useRef(null);if(n.current===null&&!t){var r,o;let s=(o=i.__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(s){let l=We.get(s);l==null?We.set(s,{id:e.current,state:s.memoizedState}):s.memoizedState!==l.state&&(e.current=l.id,We.delete(s))}n.current=++e.current}return n.current}function gr(t){let e=i.useContext(Yt);e===Ee&&!mr&&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=br(!!t),r=e===Ee&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function yr(t){let e=i.useId(),[n]=i.useState(Te()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ee.prefix}`;return t||`${r}-${e}`}i.useId;function xr(){return!1}function Sr(){return!0}function _r(t){return()=>{}}function Te(){return typeof i.useSyncExternalStore=="function"?i.useSyncExternalStore(_r,xr,Sr):i.useContext(vr)}if(typeof HTMLTemplateElement<"u"){const t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:t.call(this)}})}const Ue=i.createContext(!1),$r=typeof DocumentFragment<"u"?new DocumentFragment:null;function Er(t){let e=i.useContext(Ue),n=Te();if(e)return i.createElement(i.Fragment,null,t.children);let r=i.createElement(Ue.Provider,{value:!0},t.children);return n?i.createElement("template",{"data-react-aria-hidden":!0},r):we.createPortal(r,$r)}function Cr(t){let e=(n,r)=>i.useContext(Ue)?null:t(n,r);return e.displayName=t.displayName||t.name,i.forwardRef(e)}const ue=typeof document<"u"?i.useLayoutEffect:()=>{};function Pt(t){const e=i.useRef(null);return ue(()=>{e.current=t},[t]),i.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}let Tt=new Map;function wr(t,e){if(t===e)return t;let n=Tt.get(t);if(n)return n.forEach(o=>o(e)),e;let r=Tt.get(e);return r?(r.forEach(o=>o(t)),t):e}function Rr(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const Pr=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document};function Ut(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=Ut(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Tr(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=Ut(t))&&(r&&(r+=" "),r+=e);return r}function zt(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let o in r){let s=e[o],l=r[o];typeof s=="function"&&typeof l=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?e[o]=Rr(s,l):(o==="className"||o==="UNSAFE_className")&&typeof s=="string"&&typeof l=="string"?e[o]=Tr(s,l):o==="id"&&s&&l?e.id=wr(s,l):e[o]=l!==void 0?l:s}}return e}function Mr(...t){return t.length===1&&t[0]?t[0]:e=>{for(let n of t)typeof n=="function"?n(e):n!=null&&(n.current=e)}}const Nr=new Set(["id"]),jr=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ar=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),kr=/^(data-.*)$/;function it(t,e={}){let{labelable:n,isLink:r,propNames:o}=e,s={};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&(Nr.has(l)||n&&jr.has(l)||r&&Ar.has(l)||o!=null&&o.has(l)||kr.test(l))&&(s[l]=t[l]);return s}function Me(t){const e=i.useRef(null);return i.useMemo(()=>({get current(){return e.current},set current(n){e.current=n,typeof t=="function"?t(n):t&&(t.current=n)}}),[t])}function Ir(){return typeof window.ResizeObserver<"u"}function Or(t){const{ref:e,box:n,onResize:r}=t;i.useEffect(()=>{let o=e==null?void 0:e.current;if(o)if(Ir()){const s=new window.ResizeObserver(l=>{l.length&&r()});return s.observe(o,{box:n}),()=>{o&&s.unobserve(o)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,n])}function Lr(t,e){ue(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}var ze={exports:{}},Ke={};/**
31
+ * @license React
32
+ * use-sync-external-store-shim.production.min.js
33
+ *
34
+ * Copyright (c) Facebook, Inc. and its affiliates.
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE file in the root directory of this source tree.
38
+ */var Mt;function Dr(){if(Mt)return Ke;Mt=1;var t=i;function e(v,h){return v===h&&(v!==0||1/v===1/h)||v!==v&&h!==h}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,o=t.useEffect,s=t.useLayoutEffect,l=t.useDebugValue;function u(v,h){var m=h(),x=r({inst:{value:m,getSnapshot:h}}),S=x[0].inst,_=x[1];return s(function(){S.value=m,S.getSnapshot=h,d(S)&&_({inst:S})},[v,m,h]),o(function(){return d(S)&&_({inst:S}),v(function(){d(S)&&_({inst:S})})},[v]),l(m),m}function d(v){var h=v.getSnapshot;v=v.value;try{var m=h();return!n(v,m)}catch{return!0}}function p(v,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:u;return Ke.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:f,Ke}var Fe={};/**
39
+ * @license React
40
+ * use-sync-external-store-shim.development.js
41
+ *
42
+ * Copyright (c) Facebook, Inc. and its affiliates.
43
+ *
44
+ * This source code is licensed under the MIT license found in the
45
+ * LICENSE file in the root directory of this source tree.
46
+ */var Nt;function Br(){return Nt||(Nt=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=i,e=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(M){{for(var P=arguments.length,O=new Array(P>1?P-1:0),j=1;j<P;j++)O[j-1]=arguments[j];r("error",M,O)}}function r(M,P,O){{var j=e.ReactDebugCurrentFrame,W=j.getStackAddendum();W!==""&&(P+="%s",O=O.concat([W]));var F=O.map(function(V){return String(V)});F.unshift("Warning: "+P),Function.prototype.apply.call(console[M],console,F)}}function o(M,P){return M===P&&(M!==0||1/M===1/P)||M!==M&&P!==P}var s=typeof Object.is=="function"?Object.is:o,l=t.useState,u=t.useEffect,d=t.useLayoutEffect,p=t.useDebugValue,f=!1,v=!1;function h(M,P,O){f||t.startTransition!==void 0&&(f=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var j=P();if(!v){var W=P();s(j,W)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),v=!0)}var F=l({inst:{value:j,getSnapshot:P}}),V=F[0].inst,Q=F[1];return d(function(){V.value=j,V.getSnapshot=P,m(V)&&Q({inst:V})},[M,j,P]),u(function(){m(V)&&Q({inst:V});var ie=function(){m(V)&&Q({inst:V})};return M(ie)},[M]),p(j),j}function m(M){var P=M.getSnapshot,O=M.value;try{var j=P();return!s(O,j)}catch{return!0}}function x(M,P,O){return P()}var S=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_=!S,C=_?x:h,R=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:C;Fe.useSyncExternalStore=R,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Fe}process.env.NODE_ENV==="production"?ze.exports=Dr():ze.exports=Br();var Hr=ze.exports;const qt=i.createContext(!1),be=i.createContext(null);function Vr(t){if(i.useContext(be))return t.content;let{collection:n,document:r}=Gr(t.createCollection);return i.createElement(i.Fragment,null,i.createElement(Er,null,i.createElement(be.Provider,{value:r},t.content)),i.createElement(Wr,{render:t.children,collection:n}))}function Wr({collection:t,render:e}){return e(t)}function Kr(t,e,n){let r=Te(),o=i.useRef(r);o.current=r;let s=i.useCallback(()=>o.current?n():e(),[e,n]);return Hr.useSyncExternalStore(t,s)}const Fr=typeof i.useSyncExternalStore=="function"?i.useSyncExternalStore:Kr;function Gr(t){let[e]=i.useState(()=>new hr((t==null?void 0:t())||new pr)),n=i.useCallback(l=>e.subscribe(l),[e]),r=i.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),o=i.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),s=Fr(n,r,o);return ue(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:s,document:e}}const qe=i.createContext(null);function Yr(t,e,n,r,o,s){let l=i.useCallback(d=>{d==null||d.setProps(e,n,r,s)},[e,n,r,s]),u=i.useContext(qe);if(u){let d=u.ownerDocument.nodesByProps.get(e);return d||(d=u.ownerDocument.createElement(t),d.setProps(e,n,r,s),u.appendChild(d),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(e,d)),o?i.createElement(qe.Provider,{value:d},o):null}return i.createElement(t,{ref:l},o)}function Ur(t,e){let n=({node:o})=>e(o.props,o.props.ref,o),r=i.forwardRef((o,s)=>{if(!i.useContext(qt)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(o,s)}return Yr(t,o,s,"children"in o?o.children:null,null,u=>i.createElement(n,{node:u}))});return r.displayName=e.name,r}function zr(t){return Gt({...t,addIdAndValue:!0})}const jt=i.createContext(null);function qr(t){let e=i.useContext(jt),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope||(e==null?void 0:e.idScope),o=zr({...t,idScope:r,dependencies:n});return i.useContext(be)&&(o=i.createElement(Jr,null,o)),e=i.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),i.createElement(jt.Provider,{value:e},o)}function Jr({children:t}){let e=i.useContext(be),n=i.useMemo(()=>i.createElement(be.Provider,{value:null},i.createElement(qt.Provider,{value:!0},t)),[t]);return Te()?i.createElement(qe.Provider,{value:e},n):we.createPortal(n,e)}const Xr=i.createContext(null),Zr={CollectionRoot({collection:t,renderDropIndicator:e}){return At(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return At(t,e,n)}};function At(t,e,n){return Gt({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){var o;let s=r.render(r);if(!n||r.type!=="item")return s;let l=r.key,u=t.getKeyAfter(l);return i.createElement(i.Fragment,null,n({type:"item",key:l,dropPosition:"before"}),s,(u==null||((o=t.getItem(u))===null||o===void 0?void 0:o.type)!=="item")&&n({type:"item",key:l,dropPosition:"after"}))}})}const Jt=i.createContext(Zr);function Qr(t){return i.useMemo(()=>t!=null?new Set([t]):null,[t])}const kt=Symbol("default");function Ne({values:t,children:e}){for(let[n,r]of t)e=i.createElement(n.Provider,{value:r},e);return e}function de(t){let{className:e,style:n,children:r,defaultClassName:o,defaultChildren:s,defaultStyle:l,values:u}=t;return i.useMemo(()=>{let d,p,f;return typeof e=="function"?d=e({...u,defaultClassName:o}):d=e,typeof n=="function"?p=n({...u,defaultStyle:l||{}}):p=n,typeof r=="function"?f=r({...u,defaultChildren:s}):r==null?f=s:f=r,{className:d??o,style:p||l?{...l,...p}:void 0,children:f??s,"data-rac":""}},[e,n,r,o,s,l,u])}function Xt(t,e){let n=i.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(s=>`"${s}"`));if(!e&&!n.slots[kt])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let o=e||kt;if(!n.slots[o])throw new Error(`Invalid slot "${e}". Valid slot names are ${r}.`);return n.slots[o]}return n}function ge(t,e,n){let r=Xt(n,t.slot)||{},{ref:o,...s}=r,l=Me(i.useMemo(()=>Mr(e,o),[e,o])),u=zt(s,t);return"style"in s&&s.style&&"style"in t&&t.style&&(typeof s.style=="function"||typeof t.style=="function"?u.style=d=>{let p=typeof s.style=="function"?s.style(d):s.style,f={...d.defaultStyle,...p},v=typeof t.style=="function"?t.style({...d,defaultStyle:f}):t.style;return{...f,...v}}:u.style={...s.style,...t.style}),[u,l]}function eo(){let[t,e]=i.useState(!0),n=i.useRef(!1),r=i.useCallback(o=>{n.current=!0,e(!!o)},[]);return ue(()=>{n.current||e(!1)},[]),[r,t]}function to(t,e=!0){let[n,r]=i.useState(!0);return Zt(t,n&&e,i.useCallback(()=>r(!1),[])),n&&e}function no(t,e){let[n,r]=i.useState(!1),[o,s]=i.useState("idle");return!e&&t.current&&o==="idle"&&(n=!0,r(!0),s("exiting")),!t.current&&o==="exited"&&s("idle"),Zt(t,n,i.useCallback(()=>{s("exited"),r(!1)},[])),n}function Zt(t,e,n){let r=i.useRef(null);e&&t.current&&(r.current=window.getComputedStyle(t.current).animation),ue(()=>{if(e&&t.current){let o=window.getComputedStyle(t.current);if(o.animationName&&o.animationName!=="none"&&o.animation!==r.current){let s=u=>{u.target===t.current&&(l.removeEventListener("animationend",s),we.flushSync(()=>{n()}))},l=t.current;return l.addEventListener("animationend",s),()=>{l.removeEventListener("animationend",s)}}else n()}},[t,e,n])}const ro=i.createContext(null),Qt=7e3;let te=null;function It(t,e="assertive",n=Qt){te?te.announce(t,e,n):(te=new oo,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?te.announce(t,e,n):setTimeout(()=>{te!=null&&te.isAttached()&&(te==null||te.announce(t,e,n))},100))}class oo{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=Qt){var o,s;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,n==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(l):(s=this.politeLog)===null||s===void 0||s.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(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 io=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),so=i.createContext({});function ao(t,e){[t,e]=ge(t,e,so),t=lo(t);let n=t,{isPending:r}=n,{buttonProps:o,isPressed:s}=y.useButton(t,e),{focusProps:l,isFocused:u,isFocusVisible:d}=y.useFocusRing(t),{hoverProps:p,isHovered:f}=y.useHover({...t,isDisabled:t.isDisabled||r}),v={isHovered:f,isPressed:(n.isPressed||s)&&!r,isFocused:u,isFocusVisible:d,isDisabled:t.isDisabled||!1,isPending:r??!1},h=de({...t,values:v,defaultClassName:"react-aria-Button"}),m=y.useId(o.id),x=y.useId(),S=o["aria-labelledby"];r&&(S?S=`${S} ${x}`:o["aria-label"]&&(S=`${m} ${x}`));let _=i.useRef(r);return i.useEffect(()=>{let C={"aria-labelledby":S||m};(!_.current&&u&&r||_.current&&u&&!r)&&It(C,"assertive"),_.current=r},[r,u,S,m]),i.createElement("button",{...it(t,{propNames:io}),...y.mergeProps(o,l,p),...h,id:m,ref:e,"aria-labelledby":S,slot:t.slot||void 0,"aria-disabled":r?"true":o["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":v.isPressed||void 0,"data-hovered":f||void 0,"data-focused":u||void 0,"data-pending":r||void 0,"data-focus-visible":d||void 0},i.createElement(ro.Provider,{value:{id:x}},h.children))}function lo(t){return t.isPending&&(t.onPress=void 0,t.onPressStart=void 0,t.onPressEnd=void 0,t.onPressChange=void 0,t.onPressUp=void 0,t.onKeyDown=void 0,t.onKeyUp=void 0,t.onClick=void 0,t.href=void 0),t}const en=Cr(ao),co=i.createContext({}),Je=i.createContext({register:()=>{}});Je.displayName="PressResponderContext";const uo=i.forwardRef(({children:t,...e},n)=>{let r=i.useRef(!1),o=i.useContext(Je);n=Me(n||(o==null?void 0:o.ref));let s=zt(o||{},{...e,ref:n,register(){r.current=!0,o&&o.register()}});return Lr(o,n),i.useEffect(()=>{r.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),i.createElement(Je.Provider,{value:s},t)});let Ce=!1,Ge=0;function Xe(){Ce=!0,setTimeout(()=>{Ce=!1},50)}function Ot(t){t.pointerType==="touch"&&Xe()}function fo(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Ot):document.addEventListener("touchend",Xe),Ge++,()=>{Ge--,!(Ge>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Ot):document.removeEventListener("touchend",Xe))}}function po(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:o}=t,[s,l]=i.useState(!1),u=i.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;i.useEffect(fo,[]);let{hoverProps:d,triggerHoverEnd:p}=i.useMemo(()=>{let f=(m,x)=>{if(u.pointerType=x,o||x==="touch"||u.isHovered||!m.currentTarget.contains(m.target))return;u.isHovered=!0;let S=m.currentTarget;u.target=S,e&&e({type:"hoverstart",target:S,pointerType:x}),n&&n(!0),l(!0)},v=(m,x)=>{if(u.pointerType="",u.target=null,x==="touch"||!u.isHovered)return;u.isHovered=!1;let S=m.currentTarget;r&&r({type:"hoverend",target:S,pointerType:x}),n&&n(!1),l(!1)},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=m=>{Ce&&m.pointerType==="mouse"||f(m,m.pointerType)},h.onPointerLeave=m=>{!o&&m.currentTarget.contains(m.target)&&v(m,m.pointerType)}):(h.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=m=>{!u.ignoreEmulatedMouseEvents&&!Ce&&f(m,"mouse"),u.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=m=>{!o&&m.currentTarget.contains(m.target)&&v(m,"mouse")}),{hoverProps:h,triggerHoverEnd:v}},[e,n,r,o,u]);return i.useEffect(()=>{o&&p({currentTarget:u.target},u.pointerType)},[o]),{hoverProps:d,isHovered:s}}function ho(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=t,s=i.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=Pt(d=>{n&&$e(d,e)&&(o&&o(d),s.current.isPointerDown=!0)}),u=Pt(d=>{n&&n(d)});i.useEffect(()=>{let d=s.current;if(r)return;const p=e.current,f=Pr(p);if(typeof PointerEvent<"u"){let v=h=>{d.isPointerDown&&$e(h,e)&&u(h),d.isPointerDown=!1};return f.addEventListener("pointerdown",l,!0),f.addEventListener("pointerup",v,!0),()=>{f.removeEventListener("pointerdown",l,!0),f.removeEventListener("pointerup",v,!0)}}else{let v=m=>{d.ignoreEmulatedMouseEvents?d.ignoreEmulatedMouseEvents=!1:d.isPointerDown&&$e(m,e)&&u(m),d.isPointerDown=!1},h=m=>{d.ignoreEmulatedMouseEvents=!0,d.isPointerDown&&$e(m,e)&&u(m),d.isPointerDown=!1};return f.addEventListener("mousedown",l,!0),f.addEventListener("mouseup",v,!0),f.addEventListener("touchstart",l,!0),f.addEventListener("touchend",h,!0),()=>{f.removeEventListener("mousedown",l,!0),f.removeEventListener("mouseup",v,!0),f.removeEventListener("touchstart",l,!0),f.removeEventListener("touchend",h,!0)}}},[e,r,l,u])}function $e(t,e){if(t.button>0)return!1;if(t.target){const n=t.target.ownerDocument;if(!n||!n.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current&&!e.current.contains(t.target)}let vo=i.createContext(null);function mo(t,e){let{children:n,...r}=t,o=Me(e),s={...r,ref:o};return i.createElement(vo.Provider,{value:s},n)}let bo=i.forwardRef(mo);const go=i.createContext({}),yo=i.createContext({}),tn=i.createContext({placement:"bottom"});function xo(t,e){[t,e]=ge(t,e,tn);let n=t.placement,r={position:"absolute",[n]:"100%",transform:n==="top"||n==="bottom"?"translateX(-50%)":"translateY(-50%)"},o=de({...t,defaultClassName:"react-aria-OverlayArrow",values:{placement:n}});return o.style&&Object.keys(o.style).forEach(s=>o.style[s]===void 0&&delete o.style[s]),i.createElement("div",{...t,...o,style:{...r,...o.style},ref:e,"data-placement":n})}const So=i.forwardRef(xo),Ze=i.createContext(null),_o=i.createContext(null),$o=i.createContext({});function nn(t){return null}nn.getCollectionNode=function*(e){let{children:n,title:r,items:o}=e;yield{type:"section",props:e,hasChildNodes:!0,rendered:r,"aria-label":e["aria-label"],*childNodes(){if(typeof n=="function"){if(!o)throw new Error("props.children was a function but props.items is missing");for(let s of o)yield{type:"item",value:s,renderer:n}}else{let s=[];i.Children.forEach(n,l=>{s.push({type:"item",element:l})}),yield*s}}}};let Eo=nn;const rn=i.createContext(null),st=i.createContext(null),on=i.createContext(null);function Co(t){let e=q.useMenuTriggerState(t),n=i.useRef(null),{menuTriggerProps:r,menuProps:o}=y.useMenuTrigger({...t,type:"menu"},e,n),[s,l]=i.useState(null),u=i.useCallback(()=>{n.current&&l(n.current.offsetWidth+"px")},[n]);Or({ref:n,onResize:u});let d=i.useRef(null);return i.createElement(Ne,{values:[[rn,{...o,ref:d}],[_o,e],[on,e],[Ze,{trigger:"MenuTrigger",triggerRef:n,scrollRef:d,placement:"bottom start",style:{"--trigger-width":s}}]]},i.createElement(uo,{...r,ref:n,isPressed:e.isOpen},t.children))}const wo=i.createContext(null);function Ro(t,e){return[t,e]=ge(t,e,rn),i.createElement(Vr,{content:i.createElement(qr,t)},n=>n.size>0&&i.createElement(Po,{props:t,collection:n,menuRef:e}))}function Po({props:t,collection:e,menuRef:n}){let r=q.useTreeState({...t,collection:e,children:void 0}),[o,s]=i.useState(null),{isVirtualized:l,CollectionRoot:u}=i.useContext(Jt),{menuProps:d}=y.useMenu({...t,isVirtualized:l},r,n),p=i.useContext(on),f=i.useContext(Ze),v=(f==null?void 0:f.trigger)==="SubmenuTrigger";ho({ref:n,onInteractOutside:_=>{p&&!(o!=null&&o.contains(_.target))&&p.close()},isDisabled:v||(p==null?void 0:p.expandedKeysStack.length)===0});let h=i.useRef(null),[m,x]=i.useState({left:0});i.useEffect(()=>{if(o&&h.current!==o&&m.left===0){h.current=o;let{left:_}=o.getBoundingClientRect();x({left:-1*_})}},[m,o]);let S=de({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{}});return i.createElement(y.FocusScope,null,i.createElement("div",{...it(t),...d,...S,ref:n,slot:t.slot||void 0,onScroll:t.onScroll},i.createElement(Ne,{values:[[st,r],[yo,{elementType:"div"}],[Ze,{UNSTABLE_portalContainer:o||void 0}],[Xr,{render:Mo}],[wo,{parentMenuRef:n}],[Qe,null]]},i.createElement(u,{collection:e,persistedKeys:Qr(r.selectionManager.focusedKey),scrollRef:n}))),i.createElement("div",{ref:s,style:{width:"100vw",position:"absolute",top:0,...m}}))}const To=i.forwardRef(Ro);function Mo(t,e,n){var r,o;let s=i.useContext(st),{CollectionBranch:l}=i.useContext(Jt),[u,d]=eo();var p;let{headingProps:f,groupProps:v}=y.useMenuSection({heading:d,"aria-label":(p=n.props["aria-label"])!==null&&p!==void 0?p:void 0}),h=de({defaultClassName:"react-aria-Section",className:(r=n.props)===null||r===void 0?void 0:r.className,style:(o=n.props)===null||o===void 0?void 0:o.style,values:{}});return i.createElement("section",{...it(t),...v,...h,ref:e},i.createElement(go.Provider,{value:{...f,ref:u}},i.createElement(l,{collection:s.collection,parent:n})))}const Qe=i.createContext(null),No=Ur("item",function(e,n,r){var o;[e,n]=ge(e,n,Qe);let s=(o=Xt(Qe))===null||o===void 0?void 0:o.id,l=i.useContext(st),u=Me(n),{menuItemProps:d,labelProps:p,descriptionProps:f,keyboardShortcutProps:v,...h}=y.useMenuItem({...e,id:s,key:r.key},l,u),{isFocusVisible:m,focusProps:x}=y.useFocusRing(),{hoverProps:S,isHovered:_}=po({isDisabled:h.isDisabled}),C=de({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...h,isHovered:_,isFocusVisible:m,selectionMode:l.selectionManager.selectionMode,selectionBehavior:l.selectionManager.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),R=e.href?"a":"div";return i.createElement(R,{...y.mergeProps(d,x,S),...C,ref:u,"data-disabled":h.isDisabled||void 0,"data-hovered":_||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":m||void 0,"data-pressed":h.isPressed||void 0,"data-selected":h.isSelected||void 0,"data-selection-mode":l.selectionManager.selectionMode==="none"?void 0:l.selectionManager.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},i.createElement(Ne,{values:[[co,{slots:{label:p,description:f}}],[$o,v]]},C.children))});function sn(t){return null}sn.getCollectionNode=function*(e,n){let{children:r,columns:o}=e;if(n.columns=[],typeof r=="function"){if(!o)throw new Error("props.children was a function but props.columns is missing");for(let s of o)yield{type:"column",value:s,renderer:r}}else{let s=[];i.Children.forEach(r,l=>{s.push({type:"column",element:l})}),yield*s}};let jo=sn;function an(t){return null}an.getCollectionNode=function*(e){let{children:n,items:r}=e;yield{type:"body",hasChildNodes:!0,props:e,*childNodes(){if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let o of r)yield{type:"item",value:o,renderer:n}}else{let o=[];i.Children.forEach(n,s=>{o.push({type:"item",element:s})}),yield*o}}}};let Ao=an;function ln(t){return null}ln.getCollectionNode=function*(e,n){let{title:r,children:o,childColumns:s}=e,l=r||o,u=e.textValue||(typeof l=="string"?l:"")||e["aria-label"],d=yield{type:"column",hasChildNodes:!!s||r&&i.Children.count(o)>0,rendered:l,textValue:u,props:e,*childNodes(){if(s)for(let f of s)yield{type:"column",value:f};else if(r){let f=[];i.Children.forEach(o,v=>{f.push({type:"column",element:v})}),yield*f}},shouldInvalidate(f){return p(f),!1}},p=f=>{for(let v of d)v.hasChildNodes||f.columns.push(v)};p(n)};let ko=ln;function et(t){return null}et.getCollectionNode=function*(e,n){let{children:r,textValue:o,UNSTABLE_childItems:s}=e;yield{type:"item",props:e,textValue:o,"aria-label":e["aria-label"],hasChildNodes:!0,*childNodes(){if(n.showDragButtons&&(yield{type:"cell",key:"header-drag",props:{isDragButtonCell:!0}}),n.showSelectionCheckboxes&&n.selectionMode!=="none"&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),typeof r=="function"){for(let l of n.columns)yield{type:"cell",element:r(l.key),key:l.key};if(s)for(let l of s)yield{type:"item",value:l}}else{let l=[],u=[];if(i.Children.forEach(r,d=>{if(d.type===et){if(l.length<n.columns.length)throw new Error("All of a Row's child Cells must be positioned before any child Rows.");u.push({type:"item",element:d})}else l.push({type:"cell",element:d})}),l.length!==n.columns.length)throw new Error(`Cell count must match column count. Found ${l.length} cells and ${n.columns.length} columns.`);yield*l,yield*u}},shouldInvalidate(l){return l.columns.length!==n.columns.length||l.columns.some((u,d)=>u.key!==n.columns[d].key)||l.showSelectionCheckboxes!==n.showSelectionCheckboxes||l.showDragButtons!==n.showDragButtons||l.selectionMode!==n.selectionMode}}};let Io=et;function cn(t){return null}cn.getCollectionNode=function*(e){let{children:n}=e,r=e.textValue||(typeof n=="string"?n:"")||e["aria-label"]||"";yield{type:"cell",props:e,rendered:n,textValue:r,"aria-label":e["aria-label"],hasChildNodes:!1}};let Oo=cn;const at=i.createContext(null),un=i.createContext(null);function Lo(t){let e=q.useTooltipTriggerState(t),n=i.useRef(null),{triggerProps:r,tooltipProps:o}=y.useTooltipTrigger(t,e,n);return i.createElement(Ne,{values:[[at,e],[un,{...o,triggerRef:n}]]},i.createElement(bo,{...r,ref:n},t.children))}function Do({UNSTABLE_portalContainer:t,...e},n){[e,n]=ge(e,n,un);let r=i.useContext(at),o=q.useTooltipTriggerState(e),s=e.isOpen!=null||e.defaultOpen!=null||!r?o:r,l=no(n,s.isOpen)||e.isExiting||!1;return!s.isOpen&&!l?null:i.createElement(y.OverlayContainer,{portalContainer:t},i.createElement(Ho,{...e,tooltipRef:n,isExiting:l}))}const Bo=i.forwardRef(Do);function Ho(t){let e=i.useContext(at),n=i.useRef(null),[r,o]=i.useState(0);ue(()=>{n.current&&e.isOpen&&o(n.current.getBoundingClientRect().width)},[e.isOpen,n]);let{overlayProps:s,arrowProps:l,placement:u}=y.useOverlayPosition({placement:t.placement||"top",targetRef:t.triggerRef,overlayRef:t.tooltipRef,offset:t.offset,crossOffset:t.crossOffset,isOpen:e.isOpen,arrowSize:r,arrowBoundaryOffset:t.arrowBoundaryOffset,shouldFlip:t.shouldFlip}),d=to(t.tooltipRef,!!u)||t.isEntering||!1,p=de({...t,defaultClassName:"react-aria-Tooltip",values:{placement:u,isEntering:d,isExiting:t.isExiting,state:e}});t=y.mergeProps(t,s);let{tooltipProps:f}=y.useTooltip(t,e);return i.createElement("div",{...f,ref:t.tooltipRef,...p,style:{...s.style,...p.style},"data-placement":u,"data-entering":d||void 0,"data-exiting":t.isExiting||void 0},i.createElement(tn.Provider,{value:{...l,placement:u,ref:n}},p.children))}function dn(t,e="down"){const n=e==="down"?`(max-width: ${t}px)`:`(min-width: ${t}px)`,[r,o]=i.useState(()=>typeof window<"u"?window.matchMedia(n).matches:!1);return i.useEffect(()=>{if(typeof window>"u")return;const s=window.matchMedia(n),l=u=>{o(u.matches)};return s.addEventListener("change",l),()=>s.removeEventListener("change",l)},[n]),r}const Vo=({size:t})=>c.jsx("svg",{viewBox:"0 0 24 24",width:t,height:t,children:c.jsx("path",{fill:"currentColor",d:"M4 14c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm8 0c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm8 0c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})});function Wo({renderTrigger:t,menuId:e,size:n=24,actions:r,disabled:o,onClose:s,testId:l,menuTestId:u}){const{className:d}=ee(),p=dn(Z.BREAKPOINTS.SMALL),[f,v]=i.useState(!1),h=i.useRef(null),m={disabled:o,"data-testid":l,"aria-label":"Menu"},x=c.jsx(en,{...m,ref:h,onPress:()=>v(_=>!_),isDisabled:o,className:`proton-ResponsiveMenuTrigger__button ${d}`,children:c.jsx(Vo,{size:n})}),S=t?t({...m,onClick:()=>v(_=>!_)},f):x;return i.useEffect(()=>()=>{f&&(s==null||s())},[f,s]),p?c.jsxs(c.Fragment,{children:[S,f&&c.jsx(nt,{id:e,actions:r,isOpen:f,onClose:()=>{v(!1)},showCancel:!0,"data-testid":u})]}):c.jsxs(Co,{children:[S,f&&c.jsx(Pe,{state:{isOpen:f,setOpen:v,open:()=>v(!0),close:()=>v(!1),toggle:()=>v(!f)},triggerRef:h,arrow:!1,children:c.jsx(To,{className:"proton-ListBox proton-ResponsiveMenuTrigger__menu",id:e,autoFocus:!0,"data-testid":u,children:r.map(_=>c.jsx(No,{href:_.to,target:"_blank",rel:"noopener noreferrer",onAction:()=>{var C;(C=_.onAction)==null||C.call(_,_.key),setTimeout(()=>{v(!1)},200)},className:"proton-ListBox__item proton-ResponsiveMenuTrigger__menu-item",children:_.label},_.key))})})]})}const tt=t=>{let e=i.useRef(null),{state:n}=t,{listBoxProps:r}=y.useListBox(t,n,e);return c.jsx(y.FocusScope,{contain:!0,restoreFocus:!0,autoFocus:!0,children:c.jsx("ul",{...r,ref:e,"data-testid":"listbox",className:"proton-ListBox",children:[...n.collection].map(o=>c.jsx(Ko,{item:o,state:n},o.key))})})};function Ko({item:t,state:e}){let n=i.useRef(null),{optionProps:r,isSelected:o,isFocused:s,isDisabled:l}=y.useOption({key:t.key},e,n);return c.jsx("li",{...r,className:E.csx("proton-ListBox__item",s&&"proton-ListBox__item--focused",o&&"proton-ListBox__item--selected",l&&"proton-ListBox__item--disabled"),ref:n,children:t.rendered})}const fn=i.forwardRef((t,e)=>{let{buttonProps:n}=y.useButton({...t,isDisabled:t.disabled},e);return c.jsx("button",{...n,ref:e,className:E.csx("proton-Select__trigger",t.disabled&&"proton-Select__trigger--disabled",!t.isOpen&&"proton-Select__trigger--closed",t.isOpen&&"proton-Select__trigger--opened"),children:t.children})});function Fo({label:t,name:e,isDisabled:n,disabledKeys:r,selectedKey:o,onSelectionChange:s,onOpen:l,onClose:u,items:d,"data-testid":p,children:f}){const v={label:t,isDisabled:n,disabledKeys:r,selectedKey:o,items:d,"data-testid":p,children:f,onSelectionChange:s,onOpenChange:M=>{M?l==null||l():u==null||u()}},h=q.useSelectState(v),m=i.useRef(null),x=i.useRef(null),{labelProps:S,triggerProps:_,valueProps:C,menuProps:R}=y.useSelect({...v,label:t||e},h,m);return i.useEffect(()=>{h.isOpen&&x.current&&m.current&&!x.current.style.minWidth&&(x.current.style.minWidth=`${m.current.offsetWidth}px`)}),c.jsxs("div",{className:"proton-Select","aria-label":t||e,"aria-disabled":n,children:[t?c.jsx("div",{...S,className:"proton-Select__label","data-testid":"select-label",children:t}):c.jsx("div",{...S}),c.jsx(y.HiddenSelect,{isDisabled:n,state:h,triggerRef:m,label:t||e,name:e,"data-testid":"hidden-select-container"}),c.jsxs(fn,{..._,isOpen:h.isOpen,ref:m,disabled:n,"data-testid":p,children:[c.jsx("div",{...C,className:"proton-Select__value",children:h.selectedItem?h.selectedItem.rendered:"Select an option"}),c.jsx("div",{className:E.csx("proton-Select__trigger_icon",h.isOpen&&"proton-Select__trigger_icon--flipped"),"aria-hidden":"true",children:c.jsxs("svg",{id:"caret-down",viewBox:"0 0 512 512",children:[c.jsx("title",{children:h.isOpen?"caret down":"caret up"}),c.jsx("path",{fill:"currentColor",d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7L86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})]})})]}),h.isOpen&&c.jsx("div",{className:"proton-Select__popover",children:c.jsx(Pe,{state:h,triggerRef:m,popoverRef:x,placement:"bottom start","data-testid":"select-popover",children:c.jsx(tt,{...R,state:h})})})]})}const Go={Menu:Fo,Option:q.Item};function Yo({label:t,name:e,isDisabled:n,disabledKeys:r,selectedKey:o,onSelectionChange:s,onOpen:l,onClose:u,items:d,"data-testid":p,children:f}){const v={label:t,isDisabled:n,disabledKeys:r,selectedKey:o,onSelectionChange:s,onOpenChange:P=>{P?l==null||l():u==null||u()},items:d,"data-testid":p,children:f},h=q.useSelectState(v),m=dn(Z.BREAKPOINTS.MEDIUM),x=i.useRef(null),S=i.useRef(null),{labelProps:_,triggerProps:C,valueProps:R,menuProps:M}=y.useSelect({...v,label:t||e},h,x);return i.useEffect(()=>{h.isOpen&&S.current&&x.current&&!S.current.style.minWidth&&(S.current.style.minWidth=`${x.current.offsetWidth}px`)}),c.jsxs("div",{className:"proton-Select","aria-label":t||e,"aria-disabled":n,children:[t?c.jsx("div",{..._,className:"proton-Select__label","data-testid":"select-label",children:t}):c.jsx("div",{..._}),c.jsx(y.HiddenSelect,{isDisabled:n,state:h,triggerRef:x,label:t||e,name:e,"data-testid":"hidden-select-container"}),c.jsxs(fn,{...C,isOpen:h.isOpen,ref:x,disabled:n,"data-testid":p,children:[c.jsx("div",{...R,children:h.selectedItem?h.selectedItem.rendered:"Select an option"}),c.jsx("div",{className:E.csx("proton-Select__trigger_icon",h.isOpen&&"proton-Select__trigger_icon--flipped"),"aria-hidden":"true",children:c.jsxs("svg",{id:"caret-down",viewBox:"0 0 512 512",children:[c.jsx("title",{children:h.isOpen?"caret down":"caret up"}),c.jsx("path",{fill:"currentColor",d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7L86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})]})})]}),h.isOpen&&c.jsx(c.Fragment,{children:m?c.jsx(nt,{isOpen:h.isOpen,onClose:()=>h.close(),children:c.jsx(tt,{...M,state:h})}):c.jsx("div",{className:"proton-Select__popover",children:c.jsx(Pe,{state:h,triggerRef:x,popoverRef:S,placement:"bottom start","data-testid":"select-popover",children:c.jsx(tt,{...M,state:h})})})})]})}const Uo={Menu:Yo,Option:q.Item};function zo(t){let e={...t,isSelected:t.isOn,"data-testid":void 0},n=i.useRef(null),r=q.useToggleState(e),{inputProps:o}=y.useSwitch(e,r,n);return c.jsxs("label",{className:E.csx("proton-Switch",t.isDisabled&&"proton-Switch--disabled",r.isSelected&&"proton-Switch--on"),"data-on":r.isSelected||void 0,"data-disabled":t.isDisabled||void 0,"data-testid":t["data-testid"]||void 0,"aria-label":t.label||void 0,children:[c.jsx(y.VisuallyHidden,{children:c.jsx("input",{...o,ref:n})}),t.label&&c.jsx("div",{className:"proton-Switch__label",children:t.label}),c.jsxs("div",{className:"proton-Switch__wrapper",children:[c.jsx("div",{className:"proton-Switch__toggle",children:c.jsx("div",{className:"proton-Switch__slider"})}),t.children&&c.jsx("div",{className:"proton-Switch__description",children:t.children})]})]})}function qo({item:t,state:e,children:n}){let r=i.useRef(),{rowProps:o}=y.useTableHeaderRow({node:t},e,r);return c.jsx("tr",{className:E.csx("proton-Table__headerRow"),...o,ref:r,children:n})}function Jo({column:t,state:e}){var d,p;let n=i.useRef(),{columnHeaderProps:r}=y.useTableColumnHeader({node:t},e,n);const{align:o="left"}=t.props;let{isFocusVisible:s,focusProps:l}=y.useFocusRing(),u=((d=e.sortDescriptor)==null?void 0:d.direction)==="ascending"?"▲":"▼";return c.jsxs("th",{...y.mergeProps(r,l),colSpan:t.colspan,className:E.csx("proton-Table__header",`proton-Table__header--${o}`,s?"proton-Table__header--focused":null),ref:n,children:[t.rendered,t.props.allowsSorting&&c.jsx("span",{"aria-hidden":"true",className:E.csx("proton-Table__headerSortIcon"),style:{visibility:((p=e.sortDescriptor)==null?void 0:p.column)===t.key?"visible":"hidden"},children:u})]})}function Lt({type:t,children:e}){let{rowGroupProps:n}=y.useTableRowGroup();return c.jsx(t,{...n,className:E.csx("proton-Table__rowGroup",t==="thead"?"proton-Table__rowGroup--header":"proton-Table__rowGroup--body"),children:e})}function Xo({item:t,children:e,state:n}){let r=i.useRef(),o=n.selectionManager.isSelected(t.key),{rowProps:s,isPressed:l}=y.useTableRow({node:t},n,r),{isFocusVisible:u,focusProps:d}=y.useFocusRing();return c.jsx("tr",{className:E.csx("proton-Table__row",o?"proton-Table__row--selected":null,l?"proton-Table__row--pressed":null,u?"proton-Table__row--focused":null),...y.mergeProps(s,d),ref:r,children:e})}function Zo({cell:t,state:e,...n}){let r=i.useRef(),{gridCellProps:o}=y.useTableCell({node:t},e,r),{isFocusVisible:s,focusProps:l}=y.useFocusRing();const{align:u}=t.props;return c.jsx("td",{...y.mergeProps(o,l),className:E.csx("proton-Table__cell",s?"proton-Table__cell--focused":null,`proton-Table__cell--${u}`),ref:r,children:t.rendered})}const Qo=ko,ei=Oo;function ti(t){let e=q.useTableState({...t}),n=i.useRef(),{collection:r}=e,{gridProps:o}=y.useTable({...t,"aria-label":t["aria-label"]||"Table"},e,n);return c.jsxs("table",{...o,ref:n,className:E.csx("proton-Table"),children:[c.jsx(Lt,{type:"thead",children:r.headerRows.map(s=>c.jsx(qo,{item:s,state:e,children:Array.from(r.getChildren(s.key)).map(l=>c.jsx(Jo,{column:l,state:e},l.key))},s.key))}),c.jsx(Lt,{type:"tbody",children:Array.from(r.body.childNodes).map(s=>c.jsx(Xo,{item:s,state:e,children:Array.from(r.getChildren(s.key)).map(l=>c.jsx(Zo,{cell:l,state:e},l.key))},s.key))})]})}function pn({children:t,arrow:e,...n}){const{className:r,style:o}=ee();return c.jsxs(Bo,{...n,className:E.csx("proton__Tooltip","proton-Dialog",r),style:o,children:[e&&c.jsx(So,{className:E.csx("proton__TooltipArrow",r),children:c.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",children:c.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),t]})}function hn({children:t,delay:e=500,closeDelay:n=500,isDisabled:r,defaultOpen:o,onOpenChange:s,disableTriggerClick:l,content:u,...d}){const[p,f]=i.useState(!1),v=i.useRef(!1),h=i.useRef(!1);return c.jsxs(Lo,{delay:e,closeDelay:n,isDisabled:r,isOpen:p,defaultOpen:o,onOpenChange:m=>{m&&!v.current&&(h.current=!0),s&&s(m),v.current||f(m),v.current=!1},children:[c.jsx(en,{className:"proton__TooltipTrigger","aria-label":"Show tooltip",onPress:()=>{l||h.current||(v.current=!0,f(!p))},children:t}),c.jsx(pn,{...d,children:u})]})}const ni=({to:t,children:e,tooltipProps:n,"data-testid":r})=>{const{className:o,palette:s,theme:l}=ee(),u=n?c.jsx(hn,{delay:50,closeDelay:75,...n,children:e}):e,d={"--text-emphasis-highlight":l===Z.THEMES.CUSTOM_DARK?ne.transparentize(s.SECONDARY.SECONDARY_LIGHT,.3):ne.transparentize(k.BRAND.PRIMARY,.5)};if(t){const p=E.isUrlExternal(t);return c.jsx("span",{className:E.csx("proton-TextEmphasis",n&&"proton-TextEmphasis--tooltip",o),style:d,children:c.jsx("a",{"data-testid":r,href:t,target:p?"_blank":void 0,rel:p?"noopener noreferrer":void 0,onClick:p?void 0:f=>E.handleInternalNavigation(f,t),children:u})})}return c.jsx("span",{className:E.csx("proton-TextEmphasis",n&&"proton-TextEmphasis--tooltip",o),style:d,"data-testid":r,children:u})};function ri({amplitude:t,isDisabled:e,isPlayed:n,isHovered:r,isVisible:o,hasAnimated:s,resolution:l,spacing:u,index:d}){const p=o?`${Math.max(t*100,4)}%`:"0%";return c.jsxs("div",{className:E.csx("proton-Waveform__bar-wrapper"),style:{width:`${l}px`,marginRight:`${u}px`},children:[c.jsx("div",{className:E.csx("proton-Waveform__bar","proton-Waveform__bar--upper",e&&"proton-Waveform__bar--disabled",n&&"proton-Waveform__bar--played",o&&"proton-Waveform__bar--visible",s&&"proton-Waveform__bar--animated"),style:{"--target-height":`calc(${p} / 2)`,"--index":d}}),c.jsx("div",{className:E.csx("proton-Waveform__bar","proton-Waveform__bar--lower",e&&"proton-Waveform__bar--disabled",n&&"proton-Waveform__bar--played",o&&"proton-Waveform__bar--visible",s&&"proton-Waveform__bar--animated"),style:{"--target-height":`calc(${p} / 2)`,"--index":d}}),r&&!e&&!n&&c.jsx("div",{className:"proton-Waveform__bar--hover",style:{"--hover-height":p}})]})}const oi=ci(100);function ii({data:t,resolution:e=2,startDuration:n,endDuration:r,currentTime:o=0,showTimestamps:s=!1,totalDuration:l,onClick:u,timestampColor:d,"data-testid":p}){var J;const{className:f,palette:v,theme:h}=ee(),m=i.useRef(null),[x,S]=i.useState([]),[_,C]=i.useState(null),[R,M]=i.useState(!1),[P,O]=i.useState(!1),j=t||oi,W=d||(h==="custom-dark"?v.BRAND.PRIMARY:void 0),F=e;i.useEffect(()=>{if(!m.current)return;const L=Y=>{const oe=Math.floor(Y/(e+F)),ae=ai(j,oe);S(ae)},K=m.current.clientWidth;L(K);const G=new ResizeObserver(Y=>{Y&&Y[0]&&L(Y[0].contentRect.width)});return G.observe(m.current),()=>G.disconnect()},[j,e,F]),i.useEffect(()=>{const L=setTimeout(()=>M(!0),50),K=setTimeout(()=>O(!0),500);return()=>{clearTimeout(L),clearTimeout(K)}},[]);const V=L=>{if(!m.current)return;const K=m.current.getBoundingClientRect(),Y=(L.clientX-K.left)/K.width*l;C(Y)},Q=()=>{C(null)},ie=e+F,I=(L,K)=>{var oe;const G=L/l*100;return(K==="start"?Math.floor(G/100*x.length):Math.ceil(G/100*x.length))*ie/((oe=m.current)==null?void 0:oe.clientWidth)*100},B=(J=m.current)==null?void 0:J.clientWidth;return c.jsxs("div",{className:E.csx("proton-Waveform",f),"data-testid":p,children:[s&&c.jsx(Dt,{direction:"left",seconds:o,color:W}),c.jsxs("div",{ref:m,className:"proton-Waveform__container",onMouseMove:V,onMouseLeave:Q,onClick:L=>{if(!m.current)return;const K=m.current.getBoundingClientRect(),Y=(L.clientX-K.left)/K.width*l;u==null||u(Y,L)},children:[n!==void 0&&r!==void 0&&c.jsx("div",{className:"proton-Waveform__active-region",style:{left:m.current?`calc(${I(n,"start")}%`:"0%",right:m.current?`calc(${100-I(r,"end")}% - 2px)`:"0%"}}),_!==null&&c.jsx("div",{className:"proton-Waveform__hover-line",style:{left:`${_/l*100}%`}}),x.map((L,K)=>{const G=K/x.length*l,Y=n!==void 0&&r!==void 0&&(G<n||G>r),oe=o===0?!1:G<=o,ae=_!==null&&G<=_;return c.jsx(ri,{amplitude:L,isDisabled:Y,isPlayed:oe,isHovered:ae,isVisible:R,hasAnimated:P,resolution:e,spacing:F,index:K},K)})]}),!t&&c.jsx("div",{className:"proton-Waveform__bar-unavailable",style:{backgroundColor:W,fontSize:B<325?"0.85rem":"1rem"},children:B<277?"Unavailable":"Waveform Unavailable"}),s&&c.jsx(Dt,{direction:"right",seconds:l,color:W})]})}function Dt({direction:t,color:e,seconds:n}){return c.jsx("div",{className:E.csx("proton-Waveform__timestamp",`proton-Waveform__timestamp--${t}`),style:{backgroundColor:e},children:si(n)})}function si(t){const e=Math.floor(t/60),n=Math.floor(t%60);return`${e}:${n<10?"0":""}${n.toFixed(0)}`}function ai(t,e){const n=t.length,r=n/e,o=new Array(e).fill(0).map((s,l)=>{const u=l*r,d=Math.floor(u),p=Math.min(d+1,n-1),f=u-d;return t[d]*(1-f)+t[p]*f});return li(o)}function li(t){const e=Math.min(...t),n=Math.max(...t);return t.map(r=>{const o=(r-e)/(n-e);return Math.max(o*.8+.1,.1)})}function ci(t){return Array.from({length:t},(e,n)=>{const o=n/(t-1)*6*2*Math.PI-Math.PI/2;return Math.sin(o)*.5+.5})}exports.THEMES=Z.THEMES;exports.COLORS=k.colors;exports.ActionMenu=nt;exports.Badge=Xn;exports.BadgeVariants=Jn;exports.Banner=re;exports.Button=rt;exports.ButtonGroup=Wt;exports.Cell=ei;exports.Column=Qo;exports.Dialog=ir;exports.Icon=lr;exports.Input=Kt;exports.Popover=Pe;exports.ResponsiveMenuTrigger=Wo;exports.ResponsiveSelect=Uo;exports.Row=Io;exports.SearchInput=dr;exports.Section=Eo;exports.Select=Go;exports.Switch=zo;exports.Table=ti;exports.TableBody=Ao;exports.TableHeader=jo;exports.TextEmphasis=ni;exports.ThemeProvider=zn;exports.Tooltip=pn;exports.TooltipTrigger=hn;exports.Waveform=ii;exports.usePopoverTrigger=fr;exports.useTheme=ee;
32
47
  //# sourceMappingURL=index.cjs.js.map