@helpscout/ui-kit-react 0.4.1 → 0.5.0

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.
@@ -7,6 +7,9 @@ declare const textStyles: (props?: ({
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  export type TextVariantProps = VariantProps<typeof textStyles>;
9
9
  export type Element = "dt" | "dd" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "legend" | "p" | "span" | "strong";
10
+ type BaseColor = "red" | "green" | "yellow" | "orange" | "purple" | "magenta" | "cobalt" | "charcoal" | "clay" | "slate";
11
+ type Shade = "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "1000" | "1100" | "1200" | "accent";
12
+ type TextColor = `${BaseColor}-${Shade}`;
10
13
  export interface TextProps {
11
14
  /** Optional HTML element type to render as.
12
15
  * @default 'span'
@@ -20,6 +23,8 @@ export interface TextProps {
20
23
  id?: string;
21
24
  /** Optional tone of the text. */
22
25
  tone?: TextVariantProps["tone"];
26
+ /** Optional custom color to apply to the text. */
27
+ color?: TextColor;
23
28
  /** Optional variant of the text. */
24
29
  variant?: TextVariantProps["variant"];
25
30
  /** Optional boolean to visually hide the text.
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../lib/components/text/text.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AASlE,QAAA,MAAM,UAAU;;;;8EAyBd,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/D,MAAM,MAAM,OAAO,GACf,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,QAAQ,GACR,GAAG,GACH,MAAM,GACN,QAAQ,CAAC;AAEb,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;IAEb,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,2BAA2B;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,4BAA4B;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,iCAAiC;IACjC,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAEhC,oCAAoC;IACpC,OAAO,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAEtC;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAID,eAAO,MAAM,IAAI,mGA8BhB,CAAC"}
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../lib/components/text/text.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AASlE,QAAA,MAAM,UAAU;;;;8EAyBd,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/D,MAAM,MAAM,OAAO,GACf,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,QAAQ,GACR,GAAG,GACH,MAAM,GACN,QAAQ,CAAC;AAEb,KAAK,SAAS,GACV,KAAK,GACL,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,UAAU,GACV,MAAM,GACN,OAAO,CAAC;AAEZ,KAAK,KAAK,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,QAAQ,CAAC;AAEb,KAAK,SAAS,GAAG,GAAG,SAAS,IAAI,KAAK,EAAE,CAAC;AAEzC,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;IAEb,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,2BAA2B;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,4BAA4B;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,iCAAiC;IACjC,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAEhC,kDAAkD;IAClD,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB,oCAAoC;IACpC,OAAO,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAEtC;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAID,eAAO,MAAM,IAAI,mGAoChB,CAAC"}
@@ -5318,6 +5318,25 @@
5318
5318
  "name": "\"default\" | \"headline\" | \"dark\" | \"light\" | \"disabled\" | \"critical\" | \"error\" | \"info\" | \"success\" | \"warning\" | null"
5319
5319
  }
5320
5320
  },
5321
+ "color": {
5322
+ "defaultValue": null,
5323
+ "description": "Optional custom color to apply to the text.",
5324
+ "name": "color",
5325
+ "parent": {
5326
+ "fileName": "ui-kit-react/lib/components/text/text.tsx",
5327
+ "name": "TextProps"
5328
+ },
5329
+ "declarations": [
5330
+ {
5331
+ "fileName": "ui-kit-react/lib/components/text/text.tsx",
5332
+ "name": "TextProps"
5333
+ }
5334
+ ],
5335
+ "required": false,
5336
+ "type": {
5337
+ "name": "\"red-100\" | \"red-200\" | \"red-300\" | \"red-400\" | \"red-500\" | \"red-600\" | \"red-700\" | \"red-800\" | \"red-900\" | \"red-1000\" | \"red-1100\" | \"red-1200\" | \"red-accent\" | \"green-100\" | ... 116 more ..."
5338
+ }
5339
+ },
5321
5340
  "variant": {
5322
5341
  "defaultValue": null,
5323
5342
  "description": "Optional variant of the text.",
@@ -30718,23 +30718,25 @@ const IB = "ui-kit__input-module__base", UB = "ui-kit__input-module__error", HB
30718
30718
  as: r = "span",
30719
30719
  variant: o,
30720
30720
  tone: s,
30721
- children: f,
30722
- visuallyHidden: h = !1,
30723
- ...p
30724
- }, b) => {
30725
- const { variant: $, tone: C } = ez({
30721
+ color: f,
30722
+ children: h,
30723
+ visuallyHidden: p = !1,
30724
+ ...b
30725
+ }, $) => {
30726
+ const { variant: C, tone: T } = ez({
30726
30727
  as: r,
30727
30728
  variant: o,
30728
30729
  tone: s
30729
- });
30730
+ }), w = f ? { "--ui-kit-text-color": `var(--ui-kit-color-${f})` } : void 0;
30730
30731
  return T2(
30731
30732
  r,
30732
30733
  {
30733
- className: dz({ className: n, variant: $, tone: C, visuallyHidden: h }),
30734
- ref: b,
30735
- ...p
30734
+ className: dz({ className: n, variant: C, tone: T, visuallyHidden: p }),
30735
+ style: w,
30736
+ ref: $,
30737
+ ...b
30736
30738
  },
30737
- f
30739
+ h
30738
30740
  );
30739
30741
  }
30740
30742
  );
@@ -184,7 +184,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
184
184
  *
185
185
  * This source code is licensed under the MIT license found in the
186
186
  * LICENSE file in the root directory of this source tree.
187
- */var S2;function q9(){return S2||(S2=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 n=x,r=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function l(B){{for(var W=arguments.length,R=new Array(W>1?W-1:0),j=1;j<W;j++)R[j-1]=arguments[j];s("error",B,R)}}function s(B,W,R){{var j=r.ReactDebugCurrentFrame,ne=j.getStackAddendum();ne!==""&&(W+="%s",R=R.concat([ne]));var M=R.map(function(ue){return String(ue)});M.unshift("Warning: "+W),Function.prototype.apply.call(console[B],console,M)}}function f(B,W){return B===W&&(B!==0||1/B===1/W)||B!==B&&W!==W}var m=typeof Object.is=="function"?Object.is:f,p=n.useState,b=n.useEffect,E=n.useLayoutEffect,_=n.useDebugValue,T=!1,w=!1;function D(B,W,R){T||n.startTransition!==void 0&&(T=!0,l("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=W();if(!w){var ne=W();m(j,ne)||(l("The result of getSnapshot should be cached to avoid an infinite loop"),w=!0)}var M=p({inst:{value:j,getSnapshot:W}}),ue=M[0].inst,K=M[1];return E(function(){ue.value=j,ue.getSnapshot=W,$(ue)&&K({inst:ue})},[B,j,W]),b(function(){$(ue)&&K({inst:ue});var G=function(){$(ue)&&K({inst:ue})};return B(G)},[B]),_(j),j}function $(B){var W=B.getSnapshot,R=B.value;try{var j=W();return!m(R,j)}catch{return!0}}function A(B,W,R){return W()}var F=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",I=!F,re=I?A:D,q=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:re;D1.useSyncExternalStore=q,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),D1}process.env.NODE_ENV==="production"?w1.exports=Y9():w1.exports=q9();var Q9=w1.exports;class $1{get childNodes(){throw new Error("childNodes is not supported")}clone(){let r=new $1(this.type,this.key);return r.value=this.value,r.level=this.level,r.hasChildNodes=this.hasChildNodes,r.rendered=this.rendered,r.textValue=this.textValue,r["aria-label"]=this["aria-label"],r.index=this.index,r.parentKey=this.parentKey,r.prevKey=this.prevKey,r.nextKey=this.nextKey,r.firstChildKey=this.firstChildKey,r.lastChildKey=this.lastChildKey,r.props=this.props,r}constructor(r,l){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=r,this.key=l}}class w2{*[Symbol.iterator](){let r=this.firstChild;for(;r;)yield r,r=r.nextSibling}get firstChild(){return this._firstChild}set firstChild(r){this._firstChild=r,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(r){this._lastChild=r,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(r){this._previousSibling=r,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(r){this._nextSibling=r,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(r){this._parentNode=r,this.ownerDocument.markDirty(this)}get isConnected(){var r;return((r=this.parentNode)===null||r===void 0?void 0:r.isConnected)||!1}appendChild(r){this.ownerDocument.startTransaction(),r.parentNode&&r.parentNode.removeChild(r),this.firstChild==null&&(this.firstChild=r),this.lastChild?(this.lastChild.nextSibling=r,r.index=this.lastChild.index+1,r.previousSibling=this.lastChild):(r.previousSibling=null,r.index=0),r.parentNode=this,r.nextSibling=null,this.lastChild=r,this.ownerDocument.markDirty(this),r.hasSetProps&&this.ownerDocument.addNode(r),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(r,l){if(l==null)return this.appendChild(r);this.ownerDocument.startTransaction(),r.parentNode&&r.parentNode.removeChild(r),r.nextSibling=l,r.previousSibling=l.previousSibling,r.index=l.index,this.firstChild===l?this.firstChild=r:l.previousSibling&&(l.previousSibling.nextSibling=r),l.previousSibling=r,r.parentNode=l.parentNode;let s=l;for(;s;)s.index++,s=s.nextSibling;r.hasSetProps&&this.ownerDocument.addNode(r),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(r){if(r.parentNode!==this)return;this.ownerDocument.startTransaction();let l=r.nextSibling;for(;l;)l.index--,l=l.nextSibling;r.nextSibling&&(r.nextSibling.previousSibling=r.previousSibling),r.previousSibling&&(r.previousSibling.nextSibling=r.nextSibling),this.firstChild===r&&(this.firstChild=r.nextSibling),this.lastChild===r&&(this.lastChild=r.previousSibling),r.parentNode=null,r.nextSibling=null,r.previousSibling=null,r.index=0,this.ownerDocument.removeNode(r),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(r){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=r}}class yp extends w2{get index(){return this._index}set index(r){this._index=r,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof yp?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var r,l,s,f;let m=this.ownerDocument.getMutableNode(this);m.index=this.index,m.level=this.level,m.parentKey=this.parentNode instanceof yp?this.parentNode.node.key:null;var p;m.prevKey=(p=(r=this.previousSibling)===null||r===void 0?void 0:r.node.key)!==null&&p!==void 0?p:null;var b;m.nextKey=(b=(l=this.nextSibling)===null||l===void 0?void 0:l.node.key)!==null&&b!==void 0?b:null,m.hasChildNodes=!!this.firstChild;var E;m.firstChildKey=(E=(s=this.firstChild)===null||s===void 0?void 0:s.node.key)!==null&&E!==void 0?E:null;var _;m.lastChildKey=(_=(f=this.lastChild)===null||f===void 0?void 0:f.node.key)!==null&&_!==void 0?_:null}setProps(r,l,s){let f=this.ownerDocument.getMutableNode(this),{value:m,textValue:p,id:b,...E}=r;if(E.ref=l,f.props=E,f.rendered=s,f.value=m,f.textValue=p||(typeof s=="string"?s:"")||r["aria-label"]||"",b!=null&&b!==f.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");f.key=b}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(r,l){super(l),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new $1(r,`react-aria-${++l.nodeId}`),this.ownerDocument.startTransaction()}}class X9{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let r=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;r;)yield r,r=r.nextKey!=null?this.keyMap.get(r.nextKey):void 0}getChildren(r){let l=this.keyMap;return{*[Symbol.iterator](){let s=l.get(r),f=(s==null?void 0:s.firstChildKey)!=null?l.get(s.firstChildKey):null;for(;f;)yield f,f=f.nextKey!=null?l.get(f.nextKey):void 0}}}getKeyBefore(r){let l=this.keyMap.get(r);if(!l)return null;if(l.prevKey!=null){for(l=this.keyMap.get(l.prevKey);l&&l.type!=="item"&&l.lastChildKey!=null;)l=this.keyMap.get(l.lastChildKey);var s;return(s=l==null?void 0:l.key)!==null&&s!==void 0?s:null}return l.parentKey}getKeyAfter(r){let l=this.keyMap.get(r);if(!l)return null;if(l.type!=="item"&&l.firstChildKey!=null)return l.firstChildKey;for(;l;){if(l.nextKey!=null)return l.nextKey;if(l.parentKey!=null)l=this.keyMap.get(l.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let r=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(r==null?void 0:r.lastChildKey)!=null;)r=this.keyMap.get(r.lastChildKey);var l;return(l=r==null?void 0:r.key)!==null&&l!==void 0?l:null}getItem(r){var l;return(l=this.keyMap.get(r))!==null&&l!==void 0?l:null}at(){throw new Error("Not implemented")}clone(){let r=this.constructor,l=new r;return l.keyMap=new Map(this.keyMap),l.firstKey=this.firstKey,l.lastKey=this.lastKey,l}addNode(r){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(r.key,r)}removeNode(r){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(r)}commit(r,l,s=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=r,this.lastKey=l,this.frozen=!s}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class Z9 extends w2{get isConnected(){return!0}createElement(r){return new yp(r,this)}getMutableNode(r){let l=r.node;return this.mutatedNodes.has(r)||(l=r.node.clone(),this.mutatedNodes.add(r),r.node=l),this.markDirty(r),l}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(r){this.dirtyNodes.add(r)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(r){let l=this.getMutableCollection();if(!l.getItem(r.node.key)){l.addNode(r.node);for(let s of r)this.addNode(s)}this.markDirty(r)}removeNode(r){for(let s of r)this.removeNode(s);this.getMutableCollection().removeNode(r.node.key),this.markDirty(r)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let m of this.dirtyNodes)m instanceof yp&&m.isConnected&&m.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var r,l;let m=this.getMutableCollection();for(let p of this.mutatedNodes)p.isConnected&&m.addNode(p.node);var s,f;m.commit((s=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&s!==void 0?s:null,(f=(l=this.lastChild)===null||l===void 0?void 0:l.node.key)!==null&&f!==void 0?f:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let r of this.subscriptions)r()}subscribe(r){return this.subscriptions.add(r),()=>this.subscriptions.delete(r)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(r){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=r,this.collectionMutated=!0}}function Kc(n){let{children:r,items:l,idScope:s,addIdAndValue:f,dependencies:m=[]}=n,p=x.useMemo(()=>new WeakMap,m);return x.useMemo(()=>{if(l&&typeof r=="function"){let _=[];for(let T of l){let w=p.get(T);if(!w){w=r(T);var b,E;let D=(E=(b=w.props.id)!==null&&b!==void 0?b:T.key)!==null&&E!==void 0?E:T.id;if(D==null)throw new Error("Could not determine key for item");s&&(D=s+":"+D),w=x.cloneElement(w,f?{key:D,id:D,value:T}:{key:D}),p.set(T,w)}_.push(w)}return _}else if(typeof r!="function")return r},[r,l,p,s,f])}function J9(n){return Kc({...n,addIdAndValue:!0})}const T2=x.createContext(!1);function D2(n,r){let{collection:l,document:s}=P1(r);return{portal:$2(n,s),collection:l}}function eL(n,r,l){let s=Hl(),f=x.useRef(s);f.current=s;let m=x.useCallback(()=>f.current?l():r(),[r,l]);return Q9.useSyncExternalStore(n,m)}const tL=typeof x.useSyncExternalStore=="function"?x.useSyncExternalStore:eL;function P1(n){let r=x.useMemo(()=>new Z9(n||new X9),[n]),l=x.useCallback(p=>r.subscribe(p),[r]),s=x.useCallback(()=>{let p=r.getCollection();return r.isSSR&&r.resetAfterSSR(),p},[r]),f=x.useCallback(()=>(r.isSSR=!0,r.getCollection()),[r]);return{collection:tL(l,s,f),document:r}}const L1=x.createContext(null),zh=x.createContext(null);function $2(n,r){let l=x.useContext(zh),s=r??l,f=J9(n),m=x.useMemo(()=>x.createElement(T2.Provider,{value:!0},f),[f]);return Hl()?x.createElement(L1.Provider,{value:s},m):Ob.createPortal(m,s)}function nL(n){return x.createElement(x.Fragment,null,$2(n))}function P2(n,r,l){let s=x.useContext(T2);var f;return s?(f=M1(n,r,l,"children"in r?r.children:null))!==null&&f!==void 0?f:x.createElement(x.Fragment,null):null}function rL(n,r,l){return x.useCallback(s=>{s==null||s.setProps(n,r,l)},[n,r,l])}function M1(n,r,l,s,f){let m=rL(r,l,s),p=x.useContext(L1);if(p){let b=p.ownerDocument.nodesByProps.get(r);return b||(b=p.ownerDocument.createElement(n),b.setProps(r,l,s),p.appendChild(b),p.ownerDocument.updateCollection(),p.ownerDocument.nodesByProps.set(r,b)),f?x.createElement(L1.Provider,{value:b},f):null}return x.createElement(n,{ref:m},f)}const N1=Symbol("default");function ei({values:n,children:r}){for(let[l,s]of n)r=x.createElement(l.Provider,{value:s},r);return r}function Yn(n){let{className:r,style:l,children:s,defaultClassName:f,defaultChildren:m,defaultStyle:p,values:b}=n;return x.useMemo(()=>{let E,_,T;return typeof r=="function"?E=r({...b,defaultClassName:f}):E=r,typeof l=="function"?_=l({...b,defaultStyle:p||{}}):_=l,typeof s=="function"?T=s({...b,defaultChildren:m}):s==null?T=m:T=s,{className:E??f,style:_||p?{...p,..._}:void 0,children:T??m,"data-rac":""}},[r,l,s,f,m,p,b])}function vs(n,r){let l=x.useContext(n);if(r===null)return null;if(l&&typeof l=="object"&&"slots"in l&&l.slots){let s=new Intl.ListFormat().format(Object.keys(l.slots).map(m=>`"${m}"`));if(!r&&!l.slots[N1])throw new Error(`A slot prop is required. Valid slot names are ${s}.`);let f=r||N1;if(!l.slots[f])throw new Error(`Invalid slot "${r}". Valid slot names are ${s}.`);return l.slots[f]}return l}function qn(n,r,l){let s=vs(l,n.slot)||{},{ref:f,...m}=s,p=Qa(x.useMemo(()=>ih(r,f),[r,f])),b=ft(m,n);return"style"in m&&m.style&&"style"in n&&n.style&&(typeof m.style=="function"||typeof n.style=="function"?b.style=E=>{let _=typeof m.style=="function"?m.style(E):m.style,T={...E.defaultStyle,..._},w=typeof n.style=="function"?n.style({...E,defaultStyle:T}):n.style;return{...T,...w}}:b.style={...m.style,...n.style}),[b,p]}function jc(){let[n,r]=x.useState(!0),l=x.useRef(!1),s=x.useCallback(f=>{l.current=!0,r(!!f)},[]);return jt(()=>{l.current||r(!1)},[]),[s,n]}function A1(n,r=!0){let[l,s]=x.useState(!0);return L2(n,l&&r,x.useCallback(()=>s(!1),[])),l&&r}function O1(n,r){let[l,s]=x.useState(!1),[f,m]=x.useState("idle");return!r&&n.current&&f==="idle"&&(l=!0,s(!0),m("exiting")),!n.current&&f==="exited"&&m("idle"),L2(n,l,x.useCallback(()=>{m("exited"),s(!1)},[])),l}function L2(n,r,l){let s=x.useRef(null);r&&n.current&&(s.current=window.getComputedStyle(n.current).animation),jt(()=>{if(r&&n.current){let f=window.getComputedStyle(n.current);if(f.animationName&&f.animationName!=="none"&&f.animation!==s.current){let m=b=>{b.target===n.current&&(p.removeEventListener("animationend",m),Fb.flushSync(()=>{l()}))},p=n.current;return p.addEventListener("animationend",m),()=>{p.removeEventListener("animationend",m)}}else l()}},[n,r,l])}if(typeof HTMLTemplateElement<"u"){const n=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:n.call(this)}})}const bp=x.createContext(!1),iL=typeof DocumentFragment<"u"?new DocumentFragment:null;function M2(n){let r=x.useContext(bp),l=Hl();if(r)return x.createElement(x.Fragment,null,n.children);let s=x.createElement(bp.Provider,{value:!0},n.children);return l?x.createElement("template",{"data-react-aria-hidden":!0},s):Fb.createPortal(s,iL)}function F1(n){let r=(l,s)=>x.useContext(bp)?null:n(l,s);return r.displayName=n.displayName||n.name,x.forwardRef(r)}function Bh(n){const r=/^(data-.*)$/;let l={};for(const s in n)r.test(s)||(l[s]=n[s]);return l}const oL=x.createContext(null);function lL(n,r){[n,r]=qn(n,r,oL);let l=n.href?"a":"span",{linkProps:s,isPressed:f}=EP({...n,elementType:l},r),{hoverProps:m,isHovered:p}=ol(n),{focusProps:b,isFocused:E,isFocusVisible:_}=Ql(),T=Yn({...n,defaultClassName:"react-aria-Link",values:{isCurrent:!!n["aria-current"],isDisabled:n.isDisabled||!1,isPressed:f,isHovered:p,isFocused:E,isFocusVisible:_}});return x.createElement(l,{ref:r,slot:n.slot||void 0,...ft(T,s,m,b),"data-focused":E||void 0,"data-hovered":p||void 0,"data-pressed":f||void 0,"data-focus-visible":_||void 0,"data-current":!!n["aria-current"]||void 0,"data-disabled":n.isDisabled||void 0},T.children)}const aL=x.forwardRef(lL),uL=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Ih=x.createContext({});function sL(n,r){[n,r]=qn(n,r,Ih);let l=n,{buttonProps:s,isPressed:f}=KP(n,r),{focusProps:m,isFocused:p,isFocusVisible:b}=Ql(n),{hoverProps:E,isHovered:_}=ol(n),T=Yn({...n,values:{isHovered:_,isPressed:f,isFocused:p,isFocusVisible:b,isDisabled:n.isDisabled||!1},defaultClassName:"react-aria-Button"});return x.createElement("button",{...Zt(n,{propNames:uL}),...ft(s,m,E),...T,ref:r,slot:n.slot||void 0,"data-disabled":n.isDisabled||void 0,"data-pressed":l.isPressed||f||void 0,"data-hovered":_||void 0,"data-focused":p||void 0,"data-focus-visible":b||void 0})}const R1=F1(sL),Zl=x.createContext({});function cL(n,r){[n,r]=qn(n,r,Zl);let{elementType:l="span",...s}=n;return x.createElement(l,{className:"react-aria-Text",...s,ref:r})}const dL=x.forwardRef(cL);class z1{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(r){let l=this.keyMap.get(r);return l?l.prevKey:null}getKeyAfter(r){let l=this.keyMap.get(r);return l?l.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(r){return this.keyMap.get(r)}at(r){const l=[...this.getKeys()];return this.getItem(l[r])}getChildren(r){let l=this.keyMap.get(r);return(l==null?void 0:l.childNodes)||[]}constructor(r){this.keyMap=new Map,this.iterable=r;let l=m=>{if(this.keyMap.set(m.key,m),m.childNodes&&m.type==="section")for(let p of m.childNodes)l(p)};for(let m of r)l(m);let s,f=0;for(let[m,p]of this.keyMap)s?(s.nextKey=m,p.prevKey=s.key):(this.firstKey=m,p.prevKey=void 0),p.type==="item"&&(p.index=f++),s=p,s.nextKey=void 0;this.lastKey=s==null?void 0:s.key}}class To extends Set{constructor(r,l,s){super(r),r instanceof To?(this.anchorKey=l||r.anchorKey,this.currentKey=s||r.currentKey):(this.anchorKey=l,this.currentKey=s)}}function fL(n,r){if(n.size!==r.size)return!1;for(let l of n)if(!r.has(l))return!1;return!0}function N2(n){let{selectionMode:r="none",disallowEmptySelection:l,allowDuplicateSelectionEvents:s,selectionBehavior:f="toggle",disabledBehavior:m="all"}=n,p=x.useRef(!1),[,b]=x.useState(!1),E=x.useRef(null),_=x.useRef(null),[,T]=x.useState(null),w=x.useMemo(()=>A2(n.selectedKeys),[n.selectedKeys]),D=x.useMemo(()=>A2(n.defaultSelectedKeys,new To),[n.defaultSelectedKeys]),[$,A]=cs(w,D,n.onSelectionChange),F=x.useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),[I,re]=x.useState(f);f==="replace"&&I==="toggle"&&typeof $=="object"&&$.size===0&&re("replace");let q=x.useRef(f);return x.useEffect(()=>{f!==q.current&&(re(f),q.current=f)},[f]),{selectionMode:r,disallowEmptySelection:l,selectionBehavior:I,setSelectionBehavior:re,get isFocused(){return p.current},setFocused(B){p.current=B,b(B)},get focusedKey(){return E.current},get childFocusStrategy(){return _.current},setFocusedKey(B,W="first"){E.current=B,_.current=W,T(B)},selectedKeys:$,setSelectedKeys(B){(s||!fL(B,$))&&A(B)},disabledKeys:F,disabledBehavior:m}}function A2(n,r){return n?n==="all"?"all":new To(n):r}class O2{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(r){this.state.setSelectionBehavior(r)}get isFocused(){return this.state.isFocused}setFocused(r){this.state.setFocused(r)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(r,l){(r==null||this.collection.getItem(r))&&this.state.setFocusedKey(r,l)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(r){return this.state.selectionMode==="none"?!1:(r=this.getKey(r),this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r))}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 r=this.getSelectAllKeys(),l=this.state.selectedKeys;return this._isSelectAll=r.every(s=>l.has(s)),this._isSelectAll}get firstSelectedKey(){let r=null;for(let l of this.state.selectedKeys){let s=this.collection.getItem(l);(!r||s&&E1(this.collection,s,r)<0)&&(r=s)}return r==null?void 0:r.key}get lastSelectedKey(){let r=null;for(let l of this.state.selectedKeys){let s=this.collection.getItem(l);(!r||s&&E1(this.collection,s,r)>0)&&(r=s)}return r==null?void 0:r.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(r){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(r);return}r=this.getKey(r);let l;if(this.state.selectedKeys==="all")l=new To([r],r,r);else{let s=this.state.selectedKeys,f=s.anchorKey||r;l=new To(s,f,r);for(let m of this.getKeyRange(f,s.currentKey||r))l.delete(m);for(let m of this.getKeyRange(r,f))this.canSelectItem(m)&&l.add(m)}this.state.setSelectedKeys(l)}getKeyRange(r,l){let s=this.collection.getItem(r),f=this.collection.getItem(l);return s&&f?E1(this.collection,s,f)<=0?this.getKeyRangeInternal(r,l):this.getKeyRangeInternal(l,r):[]}getKeyRangeInternal(r,l){let s=[],f=r;for(;f;){let m=this.collection.getItem(f);if((m&&m.type==="item"||m.type==="cell"&&this.allowsCellSelection)&&s.push(f),f===l)return s;f=this.collection.getKeyAfter(f)}return[]}getKey(r){let l=this.collection.getItem(r);if(!l||l.type==="cell"&&this.allowsCellSelection)return r;for(;l.type!=="item"&&l.parentKey!=null;)l=this.collection.getItem(l.parentKey);return!l||l.type!=="item"?null:l.key}toggleSelection(r){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(r)){this.replaceSelection(r);return}if(r=this.getKey(r),r==null)return;let l=new To(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);l.has(r)?l.delete(r):this.canSelectItem(r)&&(l.add(r),l.anchorKey=r,l.currentKey=r),!(this.disallowEmptySelection&&l.size===0)&&this.state.setSelectedKeys(l)}replaceSelection(r){if(this.selectionMode==="none"||(r=this.getKey(r),r==null))return;let l=this.canSelectItem(r)?new To([r],r,r):new To;this.state.setSelectedKeys(l)}setSelectedKeys(r){if(this.selectionMode==="none")return;let l=new To;for(let s of r)if(s=this.getKey(s),s!=null&&(l.add(s),this.selectionMode==="single"))break;this.state.setSelectedKeys(l)}getSelectAllKeys(){let r=[],l=s=>{for(;s;){if(this.canSelectItem(s)){let f=this.collection.getItem(s);f.type==="item"&&r.push(s),f.hasChildNodes&&(this.allowsCellSelection||f.type!=="item")&&l(S9(Fh(f,this.collection)).key)}s=this.collection.getKeyAfter(s)}};return l(this.collection.getFirstKey()),r}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 To)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(r,l){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(r)&&!this.disallowEmptySelection?this.toggleSelection(r):this.replaceSelection(r):this.selectionBehavior==="toggle"||l&&(l.pointerType==="touch"||l.pointerType==="virtual")?this.toggleSelection(r):this.replaceSelection(r))}isSelectionEqual(r){if(r===this.state.selectedKeys)return!0;let l=this.selectedKeys;if(r.size!==l.size)return!1;for(let s of r)if(!l.has(s))return!1;for(let s of l)if(!r.has(s))return!1;return!0}canSelectItem(r){var l;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(r))return!1;let s=this.collection.getItem(r);return!(!s||!(s==null||(l=s.props)===null||l===void 0)&&l.isDisabled||s.type==="cell"&&!this.allowsCellSelection)}isDisabled(r){var l,s;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(r)||!!(!((s=this.collection.getItem(r))===null||s===void 0||(l=s.props)===null||l===void 0)&&l.isDisabled))}isLink(r){var l,s;return!!(!((s=this.collection.getItem(r))===null||s===void 0||(l=s.props)===null||l===void 0)&&l.href)}getItemProps(r){var l;return(l=this.collection.getItem(r))===null||l===void 0?void 0:l.props}constructor(r,l,s){this.collection=r,this.state=l;var f;this.allowsCellSelection=(f=s==null?void 0:s.allowsCellSelection)!==null&&f!==void 0?f:!1,this._isSelectAll=null}}function F2(n){let{filter:r}=n,l=N2(n),s=x.useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),f=x.useCallback(_=>r?new z1(r(_)):new z1(_),[r]),m=x.useMemo(()=>({suppressTextValueWarning:n.suppressTextValueWarning}),[n.suppressTextValueWarning]),p=bS(n,f,m),b=x.useMemo(()=>new O2(p,l),[p,l]);const E=x.useRef(null);return x.useEffect(()=>{if(l.focusedKey!=null&&!p.getItem(l.focusedKey)){const _=E.current.getItem(l.focusedKey),T=[...E.current.getKeys()].map(F=>{const I=E.current.getItem(F);return I.type==="item"?I:null}).filter(F=>F!==null),w=[...p.getKeys()].map(F=>{const I=p.getItem(F);return I.type==="item"?I:null}).filter(F=>F!==null),D=T.length-w.length;let $=Math.min(D>1?Math.max(_.index-D+1,0):_.index,w.length-1),A;for(;$>=0;){if(!b.isDisabled(w[$].key)){A=w[$];break}$<w.length-1?$++:($>_.index&&($=_.index),$--)}l.setFocusedKey(A?A.key:null)}E.current=p},[p,b,l,l.focusedKey]),{collection:p,disabledKeys:s,selectionManager:b}}function R2(n){var r;let[l,s]=cs(n.selectedKey,(r=n.defaultSelectedKey)!==null&&r!==void 0?r:null,n.onSelectionChange),f=x.useMemo(()=>l!=null?[l]:[],[l]),{collection:m,disabledKeys:p,selectionManager:b}=F2({...n,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:f,onSelectionChange:_=>{var T;let w=(T=_.values().next().value)!==null&&T!==void 0?T:null;w===l&&n.onSelectionChange&&n.onSelectionChange(w),s(w)}}),E=l!=null?m.getItem(l):null;return{collection:m,disabledKeys:p,selectionManager:b,selectedKey:l,setSelectedKey:s,selectedItem:E}}function Wc(n){let[r,l]=cs(n.isOpen,n.defaultOpen||!1,n.onOpenChange);const s=x.useCallback(()=>{l(!0)},[l]),f=x.useCallback(()=>{l(!1)},[l]),m=x.useCallback(()=>{l(!r)},[l,r]);return{isOpen:r,setOpen:l,open:s,close:f,toggle:m}}function pL(n){var r,l;let{defaultFilter:s,menuTrigger:f="input",allowsEmptyCollection:m=!1,allowsCustomValue:p,shouldCloseOnBlur:b=!0}=n,[E,_]=x.useState(!1),[T,w]=x.useState(!1),[D,$]=x.useState(null),A=dt=>{n.onSelectionChange&&n.onSelectionChange(dt),dt===q&&(Ue(),ke())};var F;let{collection:I,selectionManager:re,selectedKey:q,setSelectedKey:B,selectedItem:W,disabledKeys:R}=R2({...n,onSelectionChange:A,items:(F=n.items)!==null&&F!==void 0?F:n.defaultItems});var j,ne;let[M,ue]=cs(n.inputValue,(ne=(j=n.defaultInputValue)!==null&&j!==void 0?j:(r=I.getItem(q))===null||r===void 0?void 0:r.textValue)!==null&&ne!==void 0?ne:"",n.onInputChange),K=I,G=x.useMemo(()=>n.items!=null||!s?I:vL(I,M,s),[I,M,s,n.items]),[be,Q]=x.useState(G),oe=x.useRef("focus"),Ce=Wc({...n,onOpenChange:dt=>{n.onOpenChange&&n.onOpenChange(dt,dt?oe.current:void 0),re.setFocused(dt),dt||re.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),ye=(dt=null,_t)=>{let Ot=_t==="manual"||_t==="focus"&&f==="focus";(m||G.size>0||Ot&&K.size>0||n.items)&&(Ot&&!Ce.isOpen&&n.items===void 0&&_(!0),oe.current=_t,$(dt),Ce.open())},pe=(dt=null,_t)=>{let Ot=_t==="manual"||_t==="focus"&&f==="focus";!(m||G.size>0||Ot&&K.size>0||n.items)&&!Ce.isOpen||(Ot&&!Ce.isOpen&&n.items===void 0&&_(!0),Ce.isOpen||(oe.current=_t),Y(dt))},X=x.useCallback(()=>{Q(E?K:G)},[E,K,G]),Y=x.useCallback((dt=null)=>{Ce.isOpen&&X(),$(dt),Ce.toggle()},[Ce,X]),ke=x.useCallback(()=>{Ce.isOpen&&(X(),Ce.close())},[Ce,X]),[fe,Me]=x.useState(M),Ue=()=>{var dt,_t;let Ot=(_t=(dt=I.getItem(q))===null||dt===void 0?void 0:dt.textValue)!==null&&_t!==void 0?_t:"";Me(Ot),ue(Ot)};var Be,Fe;let we=x.useRef((Fe=(Be=n.selectedKey)!==null&&Be!==void 0?Be:n.defaultSelectedKey)!==null&&Fe!==void 0?Fe:null);var $e;let je=x.useRef(($e=(l=I.getItem(q))===null||l===void 0?void 0:l.textValue)!==null&&$e!==void 0?$e:"");x.useEffect(()=>{var dt;T&&(G.size>0||m)&&!Ce.isOpen&&M!==fe&&f!=="manual"&&ye(null,"input"),!E&&!m&&Ce.isOpen&&G.size===0&&ke(),q!=null&&q!==we.current&&ke(),M!==fe&&(re.setFocusedKey(null),_(!1),M===""&&(n.inputValue===void 0||n.selectedKey===void 0)&&B(null)),q!==we.current&&(n.inputValue===void 0||n.selectedKey===void 0)?Ue():fe!==M&&Me(M);var _t;let Ot=(_t=(dt=I.getItem(q))===null||dt===void 0?void 0:dt.textValue)!==null&&_t!==void 0?_t:"";!T&&q!=null&&n.inputValue===void 0&&q===we.current&&je.current!==Ot&&(Me(Ot),ue(Ot)),we.current=q,je.current=Ot});let Xe=Ph({...n,value:x.useMemo(()=>({inputValue:M,selectedKey:q}),[M,q])}),mt=()=>{p&&q==null?De():It()},De=()=>{we.current=null,B(null),ke()},It=()=>{if(n.selectedKey!==void 0&&n.inputValue!==void 0){var dt;n.onSelectionChange(q);var _t;let Ot=(_t=(dt=I.getItem(q))===null||dt===void 0?void 0:dt.textValue)!==null&&_t!==void 0?_t:"";Me(Ot),ke()}else Ue(),ke()};const Wt=()=>{if(p){var dt,_t;const Ot=(_t=(dt=I.getItem(q))===null||dt===void 0?void 0:dt.textValue)!==null&&_t!==void 0?_t:"";M===Ot?It():De()}else It()};let bn=()=>{Ce.isOpen&&re.focusedKey!=null?q===re.focusedKey?It():B(re.focusedKey):Wt()},Qn=x.useRef(M),Xn=dt=>{dt?(Qn.current=M,f==="focus"&&ye(null,"focus")):(b&&Wt(),M!==Qn.current&&Xe.commitValidation()),w(dt)},ni=x.useMemo(()=>Ce.isOpen?E?K:G:be,[Ce.isOpen,K,G,E,be]);return{...Xe,...Ce,focusStrategy:D,toggle:pe,open:ye,close:Wt,selectionManager:re,selectedKey:q,setSelectedKey:B,disabledKeys:R,isFocused:T,setFocused:Xn,selectedItem:W,collection:ni,inputValue:M,setInputValue:ue,commit:bn,revert:mt}}function vL(n,r,l){return new z1(z2(n,n,r,l))}function z2(n,r,l,s){let f=[];for(let m of r)if(m.type==="section"&&m.hasChildNodes){let p=z2(n,Fh(m,n),l,s);[...p].some(b=>b.type==="item")&&f.push({...m,childNodes:p})}else m.type==="item"&&s(m.textValue,l)?f.push({...m}):m.type!=="item"&&f.push({...m});return f}function mL(n){let r=Wc(n),[l,s]=x.useState(null),[f,m]=x.useState([]),p=()=>{m([]),r.close()};return{focusStrategy:l,...r,open(_=null){s(_),r.open()},toggle(_=null){s(_),r.toggle()},close(){p()},expandedKeysStack:f,openSubmenu:(_,T)=>{m(w=>T>w.length?w:[...w.slice(0,T),_])},closeSubmenu:(_,T)=>{m(w=>w[T]===_?w.slice(0,T):w)}}}function hL(n,r){let{triggerKey:l}=n,{expandedKeysStack:s,openSubmenu:f,closeSubmenu:m,close:p}=r,[b]=x.useState(s==null?void 0:s.length),E=x.useMemo(()=>s[b]===l,[s,l,b]),[_,T]=x.useState(null),w=x.useCallback((A=null)=>{T(A),f(l,b)},[f,b,l]),D=x.useCallback(()=>{T(null),m(l,b)},[m,b,l]),$=x.useCallback((A=null)=>{T(A),E?D():w(A)},[D,w,E]);return x.useMemo(()=>({focusStrategy:_,isOpen:E,open:w,close:D,closeAll:p,submenuLevel:b,setOpen:()=>{},toggle:$}),[E,w,D,p,_,$,b])}function gL(n){let{minValue:r,maxValue:l,step:s,formatOptions:f,value:m,defaultValue:p=NaN,onChange:b,locale:E,isDisabled:_,isReadOnly:T}=n;m===null&&(m=NaN),m!==void 0&&!isNaN(m)&&(s!==void 0&&!isNaN(s)?m=jl(m,r,l,s):m=Oc(m,r,l)),isNaN(p)||(s!==void 0&&!isNaN(s)?p=jl(p,r,l,s):p=Oc(p,r,l));let[w,D]=cs(m,isNaN(p)?NaN:p,b),[$,A]=x.useState(()=>isNaN(w)?"":new Sh(E,f).format(w)),F=x.useMemo(()=>new yC(E,f),[E,f]),I=x.useMemo(()=>F.getNumberingSystem($),[F,$]),re=x.useMemo(()=>new Sh(E,{...f,numberingSystem:I}),[E,f,I]),q=x.useMemo(()=>re.resolvedOptions(),[re]),B=x.useCallback(fe=>isNaN(fe)||fe===null?"":re.format(fe),[re]),W=Ph({...n,value:w}),R=s!==void 0&&!isNaN(s)?s:1;q.style==="percent"&&(s===void 0||isNaN(s))&&(R=.01);let[j,ne]=x.useState(w),[M,ue]=x.useState(E),[K,G]=x.useState(f);(!Object.is(w,j)||E!==M||f!==K)&&(A(B(w)),ne(w),ue(E),G(f));let be=x.useMemo(()=>F.parse($),[F,$]),Q=()=>{if(!$.length){D(NaN),A(m===void 0?"":B(w));return}if(isNaN(be)){A(B(w));return}let fe;s===void 0||isNaN(s)?fe=Oc(be,r,l):fe=jl(be,r,l,s),fe=F.parse(B(fe)),D(fe),A(B(m===void 0?fe:w))},oe=(fe,Me=0)=>{let Ue=be;if(isNaN(Ue)){let Be=isNaN(Me)?0:Me;return jl(Be,r,l,R)}else{let Be=jl(Ue,r,l,R);return fe==="+"&&Be>Ue||fe==="-"&&Be<Ue?Be:jl(B1(fe,Ue,R),r,l,R)}},_e=()=>{let fe=oe("+",r);fe===w&&A(B(fe)),D(fe),W.commitValidation()},Ce=()=>{let fe=oe("-",l);fe===w&&A(B(fe)),D(fe),W.commitValidation()},ye=()=>{l!=null&&(D(jl(l,r,l,R)),W.commitValidation())},pe=()=>{r!=null&&(D(r),W.commitValidation())},X=x.useMemo(()=>!_&&!T&&(isNaN(be)||l===void 0||isNaN(l)||jl(be,r,l,R)>be||B1("+",be,R)<=l),[_,T,r,l,R,be]),Y=x.useMemo(()=>!_&&!T&&(isNaN(be)||r===void 0||isNaN(r)||jl(be,r,l,R)<be||B1("-",be,R)>=r),[_,T,r,l,R,be]);return{...W,validate:fe=>F.isValidPartialNumber(fe,r,l),increment:_e,incrementToMax:ye,decrement:Ce,decrementToMin:pe,canIncrement:X,canDecrement:Y,minValue:r,maxValue:l,numberValue:be,setNumberValue:D,setInputValue:A,inputValue:$,commit:Q}}function B1(n,r,l){let s=n==="+"?r+l:r-l;if(r%1!==0||l%1!==0){const f=r.toString().split("."),m=l.toString().split("."),p=f[1]&&f[1].length||0,b=m[1]&&m[1].length||0,E=Math.pow(10,Math.max(p,b));r=Math.round(r*E),l=Math.round(l*E),s=n==="+"?r+l:r-l,s/=E}return s}function yL(n){let r=Wc(n),[l,s]=x.useState(null),f=R2({...n,onSelectionChange:E=>{n.onSelectionChange!=null&&n.onSelectionChange(E),r.close(),m.commitValidation()}}),m=Ph({...n,value:f.selectedKey}),[p,b]=x.useState(!1);return{...m,...f,...r,focusStrategy:l,open(E=null){f.collection.size!==0&&(s(E),r.open())},toggle(E=null){f.collection.size!==0&&(s(E),r.toggle())},isFocused:p,setFocused:b}}class bL{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(r){let l=this.keyMap.get(r);return l?l.prevKey:null}getKeyAfter(r){let l=this.keyMap.get(r);return l?l.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(r){return this.keyMap.get(r)}at(r){const l=[...this.getKeys()];return this.getItem(l[r])}constructor(r,{expandedKeys:l}={}){this.keyMap=new Map,this.iterable=r,l=l||new Set;let s=p=>{if(this.keyMap.set(p.key,p),p.childNodes&&(p.type==="section"||l.has(p.key)))for(let b of p.childNodes)s(b)};for(let p of r)s(p);let f,m=0;for(let[p,b]of this.keyMap)f?(f.nextKey=p,b.prevKey=f.key):(this.firstKey=p,b.prevKey=void 0),b.type==="item"&&(b.index=m++),f=b,f.nextKey=void 0;this.lastKey=f==null?void 0:f.key}}function xL(n){let{onExpandedChange:r}=n,[l,s]=cs(n.expandedKeys?new Set(n.expandedKeys):void 0,n.defaultExpandedKeys?new Set(n.defaultExpandedKeys):new Set,r),f=N2(n),m=x.useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),p=bS(n,x.useCallback(E=>new bL(E,{expandedKeys:l}),[l]),null);return x.useEffect(()=>{f.focusedKey!=null&&!p.getItem(f.focusedKey)&&f.setFocusedKey(null)},[p,f.focusedKey]),{collection:p,expandedKeys:l,disabledKeys:m,toggleKey:E=>{s(kL(l,E))},setExpandedKeys:s,selectionManager:new O2(p,f)}}function kL(n,r){let l=new Set(n);return l.has(r)?l.delete(r):l.add(r),l}const Gc=x.createContext(null);function EL(n,r){let l=x.useContext(Gc);return l!=null&&l.isInvalid?x.createElement(_L,{...n,ref:r}):null}const CL=x.forwardRef(EL),_L=x.forwardRef((n,r)=>{let l=x.useContext(Gc),s=Yn({...n,defaultClassName:"react-aria-FieldError",defaultChildren:l.validationErrors.length===0?void 0:l.validationErrors.join(" "),values:l});return s.children==null?null:x.createElement(dL,{slot:"errorMessage",...s,ref:r})}),Uh=x.createContext(null),xp=x.createContext({});function SL(n,r){[n,r]=qn(n,r,xp);let{elementType:l="label",...s}=n;return x.createElement(l,{className:"react-aria-Label",...s,ref:r})}const Hh=F1(SL),Vh=x.createContext({});let wL=n=>{let{onHoverStart:r,onHoverChange:l,onHoverEnd:s,...f}=n;return f};function TL(n,r){[n,r]=qn(n,r,Vh);let{hoverProps:l,isHovered:s}=ol(n),{isFocused:f,isFocusVisible:m,focusProps:p}=Ql({isTextInput:!0,autoFocus:n.autoFocus}),b=!!n["aria-invalid"]&&n["aria-invalid"]!=="false",E=Yn({...n,values:{isHovered:s,isFocused:f,isFocusVisible:m,isDisabled:n.disabled||!1,isInvalid:b},defaultClassName:"react-aria-Input"});return x.createElement("input",{...ft(wL(n),p,l),...E,ref:r,"data-focused":f||void 0,"data-disabled":n.disabled||void 0,"data-hovered":s||void 0,"data-focus-visible":m||void 0,"data-invalid":b||void 0})}const B2=F1(TL);var I2={};I2={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var U2={};U2={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var H2={};H2={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var V2={};V2={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var K2={};K2={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var j2={};j2={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var W2={};W2={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var G2={};G2={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var Y2={};Y2={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var q2={};q2={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var Q2={};Q2={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var X2={};X2={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var Z2={};Z2={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var J2={};J2={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var eT={};eT={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var tT={};tT={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var nT={};nT={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var rT={};rT={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var iT={};iT={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var oT={};oT={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var lT={};lT={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var aT={};aT={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var uT={};uT={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var sT={};sT={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var cT={};cT={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var dT={};dT={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var fT={};fT={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var pT={};pT={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var vT={};vT={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var mT={};mT={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var hT={};hT={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var gT={};gT={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var yT={};yT={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var bT={};bT={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var xT={};xT={"ar-AE":I2,"bg-BG":U2,"cs-CZ":H2,"da-DK":V2,"de-DE":K2,"el-GR":j2,"en-US":W2,"es-ES":G2,"et-EE":Y2,"fi-FI":q2,"fr-FR":Q2,"he-IL":X2,"hr-HR":Z2,"hu-HU":J2,"it-IT":eT,"ja-JP":tT,"ko-KR":nT,"lt-LT":rT,"lv-LV":iT,"nb-NO":oT,"nl-NL":lT,"pl-PL":aT,"pt-BR":uT,"pt-PT":sT,"ro-RO":cT,"ru-RU":dT,"sk-SK":fT,"sl-SI":pT,"sr-SP":vT,"sv-SE":mT,"tr-TR":hT,"uk-UA":gT,"zh-CN":yT,"zh-TW":bT};const kT=x.createContext(null);function DL(n,r){let{render:l}=x.useContext(kT);return x.createElement(x.Fragment,null,l(n,r))}const $L=x.forwardRef(DL),I1=x.createContext({}),PL=x.createContext({});function LL(n,r){let[l,s]=qn(n,r,PL),f=P2("header",n,r);return f||x.createElement("header",{className:"react-aria-Header",...l,ref:s},l.children)}const ET=x.forwardRef(LL),U1=x.createContext({});function ML(n,r){let[l,s]=qn(n,r,U1),{elementType:f,orientation:m,style:p,className:b}=l,E=f||"hr";E==="hr"&&m==="vertical"&&(E="div");let{separatorProps:_}=G9({elementType:f,orientation:m}),T=P2("separator",n,r);return T||x.createElement(E,{...Zt(l),..._,style:p,className:b??"react-aria-Separator",ref:s,slot:l.slot||void 0})}const CT=x.forwardRef(ML),kp=x.createContext(null),Yc=x.createContext(null);function NL(n,r){[n,r]=qn(n,r,kp);let l=x.useContext(bp),s=x.useContext(Yc);return x.useContext(zh)?x.createElement(nL,n):s?l?null:x.createElement(_T,{state:s,props:n,listBoxRef:r}):x.createElement(AL,{props:n,listBoxRef:r})}function AL({props:n,listBoxRef:r}){let{portal:l,collection:s}=D2(n);n={...n,collection:s,children:null,items:null};let f=F2(n);return x.createElement(x.Fragment,null,l,x.createElement(_T,{state:f,props:n,listBoxRef:r}))}const OL=x.forwardRef(NL);function _T({state:n,props:r,listBoxRef:l}){let{dragAndDropHooks:s,layout:f="stack",orientation:m="vertical"}=r,{collection:p,selectionManager:b}=n,E=!!(s!=null&&s.useDraggableCollectionState),_=!!(s!=null&&s.useDroppableCollectionState),{direction:T}=Xa(),{disabledBehavior:w,disabledKeys:D}=b,$=Th({usage:"search",sensitivity:"base"}),A=x.useMemo(()=>r.keyboardDelegate||new Oh({collection:p,collator:$,ref:l,disabledKeys:D,disabledBehavior:w,layout:f,orientation:m,direction:T}),[p,$,l,w,D,m,T,r.keyboardDelegate,f]),{listBoxProps:F}=E9({...r,shouldSelectOnPressUp:E||r.shouldSelectOnPressUp,keyboardDelegate:A},n,l),I=Kc({items:p,children:_e=>{switch(_e.type){case"section":return x.createElement(FL,{section:_e});case"separator":return x.createElement(CT,_e.props);case"item":return x.createElement(ST,{item:_e});default:throw new Error("Unsupported node type in Menu: "+_e.type)}}}),re=x.useRef(E),q=x.useRef(_);x.useEffect(()=>{re.current!==E&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),q.current!==_&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[E,_]);let B,W,R,j=!1,ne=null,M=x.useRef(null);if(E&&s){B=s.useDraggableCollectionState({collection:p,selectionManager:b,preview:s.renderDragPreview?M:void 0}),s.useDraggableCollection({},B,l);let _e=s.DragPreview;ne=s.renderDragPreview?x.createElement(_e,{ref:M},s.renderDragPreview):null}if(_&&s){W=s.useDroppableCollectionState({collection:p,selectionManager:b});let _e=s.dropTargetDelegate||new s.ListDropTargetDelegate(p,l,{orientation:m,layout:f,direction:T});R=s.useDroppableCollection({keyboardDelegate:A,dropTargetDelegate:_e},W,l),j=W.isDropTarget({type:"root"})}let{focusProps:ue,isFocused:K,isFocusVisible:G}=Ql(),be={isDropTarget:j,isEmpty:n.collection.size===0,isFocused:K,isFocusVisible:G,layout:r.layout||"stack",state:n},Q=Yn({className:r.className,style:r.style,defaultClassName:"react-aria-ListBox",values:be}),oe=null;return n.collection.size===0&&r.renderEmptyState&&(oe=x.createElement("div",{role:"option",style:{display:"contents"}},r.renderEmptyState(be))),x.createElement(n1,null,x.createElement("div",{...Zt(r),...ft(F,ue,R==null?void 0:R.collectionProps),...Q,ref:l,slot:r.slot||void 0,onScroll:r.onScroll,"data-drop-target":j||void 0,"data-empty":n.collection.size===0||void 0,"data-focused":K||void 0,"data-focus-visible":G||void 0,"data-layout":r.layout||"stack","data-orientation":r.orientation||"vertical"},x.createElement(ei,{values:[[kp,r],[Yc,n],[I1,{dragAndDropHooks:s,dragState:B,dropState:W}],[U1,{elementType:"div"}],[kT,{render:IL}]]},I),oe,ne))}function FL({section:n,className:r,style:l}){var s,f;let m=x.useContext(Yc),[p,b]=jc();var E;let{headingProps:_,groupProps:T}=D9({heading:b,"aria-label":(E=n.props["aria-label"])!==null&&E!==void 0?E:void 0}),w=Kc({items:m.collection.getChildren(n.key),children:D=>{switch(D.type){case"header":return x.createElement(RL,{item:D,headingProps:_,headingRef:p});case"item":return x.createElement(ST,{item:D});default:throw new Error("Unsupported element type in Section: "+D.type)}}});return x.createElement("section",{...Zt(n.props),...T,className:r||((s=n.props)===null||s===void 0?void 0:s.className)||"react-aria-Section",style:l||((f=n.props)===null||f===void 0?void 0:f.style),ref:n.props.ref},w)}function RL({item:n,headingProps:r,headingRef:l}){let{ref:s,...f}=n.props;return x.createElement(ET,{...r,...f,ref:ih(l,s)},n.rendered)}function zL(n,r){return M1("item",n,r,n.children)}const BL=x.forwardRef(zL);function ST({item:n}){var r;let l=Qa(n.props.ref),s=x.useContext(Yc),{dragAndDropHooks:f,dragState:m,dropState:p}=x.useContext(I1),{optionProps:b,labelProps:E,descriptionProps:_,...T}=T9({key:n.key,"aria-label":(r=n.props)===null||r===void 0?void 0:r["aria-label"]},s,l),{hoverProps:w,isHovered:D}=ol({isDisabled:!T.allowsSelection&&!T.hasAction,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),$=null;m&&f&&($=f.useDraggableItem({key:n.key},m));let A=null;p&&f&&(A=f.useDroppableItem({target:{type:"item",key:n.key,dropPosition:"on"}},p,l));let F=n.props,I=m&&m.isDragging(n.key),re=Yn({...F,id:void 0,children:n.rendered,defaultClassName:"react-aria-ListBoxItem",values:{...T,isHovered:D,selectionMode:s.selectionManager.selectionMode,selectionBehavior:s.selectionManager.selectionBehavior,allowsDragging:!!m,isDragging:I,isDropTarget:A==null?void 0:A.isDropTarget}}),q=(f==null?void 0:f.renderDropIndicator)||(W=>x.createElement($L,{target:W}));x.useEffect(()=>{n.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[n.textValue]);let B=F.href?"a":"div";return x.createElement(x.Fragment,null,(f==null?void 0:f.useDropIndicator)&&q({type:"item",key:n.key,dropPosition:"before"}),x.createElement(B,{...ft(b,w,$==null?void 0:$.dragProps,A==null?void 0:A.dropProps),...re,ref:l,"data-allows-dragging":!!m||void 0,"data-selected":T.isSelected||void 0,"data-disabled":T.isDisabled||void 0,"data-hovered":D||void 0,"data-focused":T.isFocused||void 0,"data-focus-visible":T.isFocusVisible||void 0,"data-pressed":T.isPressed||void 0,"data-dragging":I||void 0,"data-drop-target":(A==null?void 0:A.isDropTarget)||void 0,"data-selection-mode":s.selectionManager.selectionMode==="none"?void 0:s.selectionManager.selectionMode},x.createElement(ei,{values:[[Zl,{slots:{label:E,description:_}}]]},re.children)),(f==null?void 0:f.useDropIndicator)&&s.collection.getKeyAfter(n.key)==null&&q({type:"item",key:n.key,dropPosition:"after"}))}function IL(n,r){r=Qa(r);let{dragAndDropHooks:l,dropState:s}=x.useContext(I1),{dropIndicatorProps:f,isHidden:m,isDropTarget:p}=l.useDropIndicator(n,s,r);return m?null:x.createElement(HL,{...n,dropIndicatorProps:f,isDropTarget:p,ref:r})}function UL(n,r){let{dropIndicatorProps:l,isDropTarget:s,...f}=n,m=Yn({...f,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:s}});return x.createElement("div",{...l,...m,role:"option",ref:r,"data-drop-target":s||void 0})}const HL=x.forwardRef(UL),H1=x.createContext({});function VL(n,r){[n,r]=qn(n,r,H1);let{isDisabled:l,isInvalid:s,onHoverStart:f,onHoverChange:m,onHoverEnd:p,...b}=n,{hoverProps:E,isHovered:_}=ol({onHoverStart:f,onHoverChange:m,onHoverEnd:p,isDisabled:l}),{isFocused:T,isFocusVisible:w,focusProps:D}=Ql({within:!0});l??(l=!!n["aria-disabled"]&&n["aria-disabled"]!=="false"),s??(s=!!n["aria-invalid"]&&n["aria-invalid"]!=="false");let $=Yn({...n,values:{isHovered:_,isFocusWithin:T,isFocusVisible:w,isDisabled:l,isInvalid:s},defaultClassName:"react-aria-Group"});var A,F;return x.createElement("div",{...ft(b,D,E),...$,ref:r,role:(A=n.role)!==null&&A!==void 0?A:"group",slot:(F=n.slot)!==null&&F!==void 0?F:void 0,"data-focus-within":T||void 0,"data-hovered":_||void 0,"data-focus-visible":w||void 0,"data-disabled":l||void 0,"data-invalid":s||void 0},$.children)}const V1=x.forwardRef(VL),KL=x.createContext({placement:"bottom"}),Jl=x.createContext(null);function jL(n,r){[n,r]=qn(n,r,Jl);let l=x.useContext(ll),s=Wc(n),f=n.isOpen!=null||n.defaultOpen!=null||!l?s:l,m=O1(r,f.isOpen)||n.isExiting||!1;if(x.useContext(bp)){let b=n.children;return typeof b=="function"&&(b=b({trigger:n.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),x.createElement(x.Fragment,null,b)}return f&&!f.isOpen&&!m?null:x.createElement(WL,{...n,triggerRef:n.triggerRef,state:f,popoverRef:r,isExiting:m})}const wT=x.forwardRef(jL);function WL({state:n,isExiting:r,UNSTABLE_portalContainer:l,...s}){let f=x.useRef(null),[m,p]=x.useState(0);jt(()=>{f.current&&n.isOpen&&p(f.current.getBoundingClientRect().width)},[n.isOpen,f]);var b;let{popoverProps:E,underlayProps:_,arrowProps:T,placement:w}=m9({...s,offset:(b=s.offset)!==null&&b!==void 0?b:8,arrowSize:m},n),D=s.popoverRef,$=A1(D,!!w)||s.isEntering||!1,A=Yn({...s,defaultClassName:"react-aria-Popover",values:{trigger:s.trigger||null,placement:w,isEntering:$,isExiting:r}}),F={...E.style,...A.style};return x.createElement(sS,{isExiting:r,portalContainer:l},!s.isNonModal&&n.isOpen&&x.createElement("div",{"data-testid":"underlay",..._,style:{position:"fixed",inset:0}}),x.createElement("div",{...ft(Zt(s),E),...A,ref:D,slot:s.slot||void 0,style:F,"data-trigger":s.trigger,"data-placement":w,"data-entering":$||void 0,"data-exiting":r||void 0},!s.isNonModal&&x.createElement(y1,{onDismiss:n.close}),x.createElement(KL.Provider,{value:{...T,placement:w,ref:f}},A.children),x.createElement(y1,{onDismiss:n.close})))}const TT=x.createContext(null),ll=x.createContext(null);function GL(n){let r=Wc(n),l=x.useRef(null),{triggerProps:s,overlayProps:f}=k_({type:"dialog"},r,l);return s.id=Or(),f["aria-labelledby"]=s.id,x.createElement(ei,{values:[[ll,r],[TT,f],[Jl,{trigger:"DialogTrigger",triggerRef:l}]]},x.createElement(Q3,{...s,ref:l,isPressed:r.isOpen},n.children))}function YL(n,r){let l=n["aria-labelledby"];[n,r]=qn(n,r,TT);let{dialogProps:s,titleProps:f}=U9({...n,"aria-labelledby":l},r),m=x.useContext(ll),p=n.children;typeof p=="function"&&(p=p({close:(m==null?void 0:m.close)||(()=>{})})),!s["aria-label"]&&!s["aria-labelledby"]&&(n["aria-labelledby"]?s["aria-labelledby"]=n["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));var b;return x.createElement("section",{...Zt(n),...s,ref:r,slot:n.slot||void 0,style:n.style,className:(b=n.className)!==null&&b!==void 0?b:"react-aria-Dialog"},x.createElement(ei,{values:[[m7,{slots:{[N1]:{},title:{...f,level:2}}}]]},p))}const qL=x.forwardRef(YL),QL=x.createContext(null),XL=x.createContext(null);function ZL(n,r){[n,r]=qn(n,r,QL);let{collection:l,document:s}=P1(),{children:f,isDisabled:m=!1,isInvalid:p=!1,isRequired:b=!1}=n;f=x.useMemo(()=>typeof f=="function"?f({isOpen:!1,isDisabled:m,isInvalid:p,isRequired:b,defaultChildren:null}):f,[f,m,p,b]);var E;return x.createElement(x.Fragment,null,x.createElement(M2,null,x.createElement(ei,{values:[[zh,s],[kp,{items:(E=n.items)!==null&&E!==void 0?E:n.defaultItems}]]},f)),x.createElement(JL,{props:n,collection:l,comboBoxRef:r}))}function JL({props:n,collection:r,comboBoxRef:l}){let{name:s,formValue:f="key",allowsCustomValue:m}=n;m&&(f="text");let{validationBehavior:p}=vs(Uh)||{};var b,E;let _=(E=(b=n.validationBehavior)!==null&&b!==void 0?b:p)!==null&&E!==void 0?E:"native",{contains:T}=VP({sensitivity:"base"}),w=pL({defaultFilter:n.defaultFilter||T,...n,items:n.items,children:void 0,collection:r,validationBehavior:_}),D=x.useRef(null),$=x.useRef(null),A=x.useRef(null),F=x.useRef(null),[I,re]=jc(),{buttonProps:q,inputProps:B,listBoxProps:W,labelProps:R,descriptionProps:j,errorMessageProps:ne,...M}=z9({...Bh(n),label:re,inputRef:$,buttonRef:D,listBoxRef:A,popoverRef:F,name:f==="text"?s:void 0,validationBehavior:_},w),[ue,K]=x.useState(null),G=x.useCallback(()=>{if($.current){var _e;let Ce=(_e=D.current)===null||_e===void 0?void 0:_e.getBoundingClientRect(),ye=$.current.getBoundingClientRect(),pe=Ce?Math.min(Ce.left,ye.left):ye.left,X=Ce?Math.max(Ce.right,ye.right):ye.right;K(X-pe+"px")}},[D,$,K]);ip({ref:$,onResize:G});let be=x.useMemo(()=>({isOpen:w.isOpen,isDisabled:n.isDisabled||!1,isInvalid:M.isInvalid||!1,isRequired:n.isRequired||!1}),[w.isOpen,n.isDisabled,M.isInvalid,n.isRequired]),Q=Yn({...n,values:be,defaultClassName:"react-aria-ComboBox"}),oe=Zt(n);return delete oe.id,x.createElement(ei,{values:[[XL,w],[xp,{...R,ref:I}],[Ih,{...q,ref:D,isPressed:w.isOpen}],[Vh,{...B,ref:$}],[ll,w],[Jl,{ref:F,triggerRef:$,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":ue}}],[kp,{...W,ref:A}],[Yc,w],[Zl,{slots:{description:j,errorMessage:ne}}],[H1,{isInvalid:M.isInvalid,isDisabled:n.isDisabled||!1}],[Gc,M]]},x.createElement("div",{...oe,...Q,ref:l,slot:n.slot||void 0,"data-focused":w.isFocused||void 0,"data-open":w.isOpen||void 0,"data-disabled":n.isDisabled||void 0,"data-invalid":M.isInvalid||void 0,"data-required":n.isRequired||void 0}),s&&f==="key"&&x.createElement("input",{type:"hidden",name:s,value:w.selectedKey}))}const eM=x.forwardRef(ZL),DT=x.createContext({}),K1=x.createContext(null),Ep=x.createContext(null),j1=x.createContext(null);function tM(n){let r=mL(n),l=x.useRef(null),{menuTriggerProps:s,menuProps:f}=_1({...n,type:"menu"},r,l),[m,p]=x.useState(null),b=x.useCallback(()=>{l.current&&p(l.current.offsetWidth+"px")},[l]);return ip({ref:l,onResize:b}),x.createElement(ei,{values:[[K1,f],[ll,r],[j1,r],[Jl,{trigger:"MenuTrigger",triggerRef:l,placement:"bottom start",style:{"--trigger-width":m}}]]},x.createElement(Q3,{...s,ref:l,isPressed:r.isOpen},n.children))}function $T(n){let{item:r,parentMenuRef:l}=n,s=x.useContext(Ep);return Kc({items:s.collection.getChildren(r.key),children:m=>{switch(m.type){case"item":return x.createElement(uM,{item:m,popover:r.rendered[1],parentMenuRef:l,delay:r.props.delay});default:throw new Error("Unsupported element type in SubmenuTrigger: "+r.type)}}})}function nM(n,r){[n,r]=qn(n,r,K1);let{portal:l,collection:s}=D2(n);return x.createElement(x.Fragment,null,s.size>0&&x.createElement(rM,{props:n,collection:s,menuRef:r}),l)}function rM({props:n,collection:r,menuRef:l}){let s=xL({...n,collection:r,children:void 0}),[f,m]=x.useState(null),{menuProps:p}=P9(n,s,l),b=x.useContext(j1),E=x.useContext(Jl),_=Kc({items:s.collection,children:F=>{switch(F.type){case"section":return x.createElement(oM,{section:F,parentMenuRef:l});case"separator":return x.createElement(CT,F.props);case"item":return x.createElement(PT,{item:F});case"submenutrigger":return x.createElement($T,{item:F,parentMenuRef:l});default:throw new Error("Unsupported node type in Menu: "+F.type)}}}),T=(E==null?void 0:E.trigger)==="SubmenuTrigger";oC({ref:l,onInteractOutside:F=>{b&&!(f!=null&&f.contains(F.target))&&b.close()},isDisabled:T||(b==null?void 0:b.expandedKeysStack.length)===0});let w=x.useRef(null),[D,$]=x.useState({left:0});x.useEffect(()=>{if(f&&w.current!==f&&D.left===0){w.current=f;let{left:F}=f.getBoundingClientRect();$({left:-1*F})}},[D,f]);var A;return x.createElement(n1,null,x.createElement("div",{...Zt(n),...p,ref:l,slot:n.slot||void 0,onScroll:n.onScroll,style:n.style,className:(A=n.className)!==null&&A!==void 0?A:"react-aria-Menu"},x.createElement(ei,{values:[[Ep,s],[U1,{elementType:"div"}],[Jl,{UNSTABLE_portalContainer:f||void 0}]]},_)),x.createElement("div",{ref:m,style:{width:"100vw",position:"absolute",top:0,...D}}))}const iM=x.forwardRef(nM);function oM({section:n,className:r,style:l,parentMenuRef:s,...f}){var m,p;let b=x.useContext(Ep),[E,_]=jc();var T;let{headingProps:w,groupProps:D}=L9({heading:_,"aria-label":(T=n["aria-label"])!==null&&T!==void 0?T:void 0}),$=Kc({items:b.collection.getChildren(n.key),children:A=>{switch(A.type){case"header":{let{ref:F,...I}=A.props;return x.createElement(ET,{...w,...I,ref:ih(E,F)},A.rendered)}case"item":return x.createElement(PT,{item:A});case"submenutrigger":return x.createElement($T,{item:A,parentMenuRef:s});default:throw new Error("Unsupported element type in Section: "+A.type)}}});return x.createElement("section",{...Zt(f),...D,className:r||((m=n.props)===null||m===void 0?void 0:m.className)||"react-aria-Section",style:l||((p=n.props)===null||p===void 0?void 0:p.style),ref:n.props.ref},$)}function lM(n,r){return M1("item",n,r,n.children)}const aM=x.forwardRef(lM);function PT({item:n}){var r;let l=x.useContext(Ep),s=Qa(n.props.ref),{menuItemProps:f,labelProps:m,descriptionProps:p,keyboardShortcutProps:b,...E}=iw({key:n.key,"aria-label":(r=n.props)===null||r===void 0?void 0:r["aria-label"]},l,s),_=n.props,{isFocusVisible:T,focusProps:w}=Ql(),{hoverProps:D,isHovered:$}=ol({isDisabled:E.isDisabled,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),A=Yn({..._,id:void 0,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...E,isHovered:$,isFocusVisible:T,selectionMode:l.selectionManager.selectionMode,selectionBehavior:l.selectionManager.selectionBehavior,hasSubmenu:!1,isOpen:!1}}),F=_.href?"a":"div";return x.createElement(F,{...ft(f,w,D),...A,ref:s,"data-disabled":E.isDisabled||void 0,"data-hovered":$||void 0,"data-focused":E.isFocused||void 0,"data-focus-visible":T||void 0,"data-pressed":E.isPressed||void 0,"data-selected":E.isSelected||void 0,"data-selection-mode":l.selectionManager.selectionMode==="none"?void 0:l.selectionManager.selectionMode},x.createElement(ei,{values:[[Zl,{slots:{label:m,description:p}}],[DT,b]]},A.children))}function uM({item:n,popover:r,parentMenuRef:l,delay:s}){let f=x.useContext(Ep),m=vs(Jl),p=Qa(n.props.ref),b=x.useContext(j1),E=hL({triggerKey:n.key},b),_=x.useRef(null),{submenuTriggerProps:T,submenuProps:w,popoverProps:D}=O9({node:n,parentMenuRef:l,submenuRef:_,delay:s},E,p),{menuItemProps:$,labelProps:A,descriptionProps:F,keyboardShortcutProps:I,...re}=iw({key:n.key,...T},f,p),q=n.props,{hoverProps:B,isHovered:W}=ol({isDisabled:re.isDisabled}),{isFocusVisible:R,focusProps:j}=Ql(),ne=Yn({...q,id:void 0,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...re,isHovered:W,isFocusVisible:R,selectionMode:f.selectionManager.selectionMode,selectionBehavior:f.selectionManager.selectionBehavior,hasSubmenu:!0,isOpen:E.isOpen}});return x.createElement(ei,{values:[[Zl,{slots:{label:A,description:F}}],[DT,I],[K1,w],[ll,E],[Jl,{ref:_,trigger:"SubmenuTrigger",triggerRef:p,placement:"end top",UNSTABLE_portalContainer:m.UNSTABLE_portalContainer||void 0,...D}]]},x.createElement("div",{...ft($,j,B),...ne,ref:p,"data-disabled":re.isDisabled||void 0,"data-hovered":W||void 0,"data-focused":re.isFocused||void 0,"data-focus-visible":R||void 0,"data-pressed":re.isPressed||void 0,"data-selected":re.isSelected||void 0,"data-selection-mode":f.selectionManager.selectionMode==="none"?void 0:f.selectionManager.selectionMode,"data-has-submenu":!0,"data-open":E.isOpen||void 0},ne.children),r)}const sM=x.createContext(null),W1=x.createContext(null);function cM(n,r){if(x.useContext(W1))return x.createElement(MT,{...n,modalRef:r},n.children);let{isDismissable:s,isKeyboardDismissDisabled:f,isOpen:m,defaultOpen:p,onOpenChange:b,children:E,isEntering:_,isExiting:T,UNSTABLE_portalContainer:w,shouldCloseOnInteractOutside:D,...$}=n;return x.createElement(LT,{isDismissable:s,isKeyboardDismissDisabled:f,isOpen:m,defaultOpen:p,onOpenChange:b,isEntering:_,isExiting:T,UNSTABLE_portalContainer:w,shouldCloseOnInteractOutside:D},x.createElement(MT,{...$,modalRef:r},E))}const dM=x.forwardRef(cM);function fM(n,r){[n,r]=qn(n,r,sM);let l=x.useContext(ll),s=Wc(n),f=n.isOpen!=null||n.defaultOpen!=null||!l?s:l,m=Qa(r),p=x.useRef(null),b=O1(m,f.isOpen),E=O1(p,f.isOpen),_=b||E||n.isExiting||!1,T=Hl();return!f.isOpen&&!_||T?null:x.createElement(pM,{...n,state:f,isExiting:_,overlayRef:m,modalRef:p})}const LT=x.forwardRef(fM);function pM({UNSTABLE_portalContainer:n,...r}){let l=r.modalRef,{state:s}=r,{modalProps:f,underlayProps:m}=y9(r,s,l),p=A1(r.overlayRef)||r.isEntering||!1,b=Yn({...r,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:p,isExiting:r.isExiting,state:s}}),E=V7(),_={...b.style,"--visual-viewport-height":E.height+"px"};return x.createElement(sS,{isExiting:r.isExiting,portalContainer:n},x.createElement("div",{...ft(Zt(r),m),...b,style:_,ref:r.overlayRef,"data-entering":p||void 0,"data-exiting":r.isExiting||void 0},x.createElement(ei,{values:[[W1,{modalProps:f,modalRef:l,isExiting:r.isExiting,isDismissable:r.isDismissable}],[ll,s]]},b.children)))}function MT(n){let{modalProps:r,modalRef:l,isExiting:s,isDismissable:f}=x.useContext(W1),m=x.useContext(ll),p=x.useMemo(()=>ih(n.modalRef,l),[n.modalRef,l]),b=Qa(p),E=A1(b),_=Yn({...n,defaultClassName:"react-aria-Modal",values:{isEntering:E,isExiting:s,state:m}});return x.createElement("div",{...ft(Zt(n),r),..._,ref:b,"data-entering":E||void 0,"data-exiting":s||void 0},f&&x.createElement(y1,{onDismiss:m.close}),_.children)}const vM=x.createContext(null),mM=x.createContext(null);function hM(n,r){[n,r]=qn(n,r,vM);let{validationBehavior:l}=vs(Uh)||{};var s,f;let m=(f=(s=n.validationBehavior)!==null&&s!==void 0?s:l)!==null&&f!==void 0?f:"native",{locale:p}=Xa(),b=gL({...n,locale:p,validationBehavior:m}),E=x.useRef(null),[_,T]=jc(),{labelProps:w,groupProps:D,inputProps:$,incrementButtonProps:A,decrementButtonProps:F,descriptionProps:I,errorMessageProps:re,...q}=V9({...Bh(n),label:T,validationBehavior:m},b,E),B=Yn({...n,values:{state:b,isDisabled:n.isDisabled||!1,isInvalid:q.isInvalid||!1},defaultClassName:"react-aria-NumberField"}),W=Zt(n);return delete W.id,x.createElement(ei,{values:[[mM,b],[H1,D],[Vh,{...$,ref:E}],[xp,{...w,ref:_}],[Ih,{slots:{increment:A,decrement:F}}],[Zl,{slots:{description:I,errorMessage:re}}],[Gc,q]]},x.createElement("div",{...W,...B,ref:r,slot:n.slot||void 0,"data-disabled":n.isDisabled||void 0,"data-invalid":q.isInvalid||void 0}),n.name&&x.createElement("input",{type:"hidden",name:n.name,value:isNaN(b.numberValue)?"":b.numberValue}))}const gM=x.forwardRef(hM);function yM(n){return n&&n.__esModule?n.default:n}const Kh=x.createContext(null),G1=x.createContext(null);function bM(n,r){[n,r]=qn(n,r,Kh);let{validationBehavior:l}=vs(Uh)||{};var s,f;let m=(f=(s=n.validationBehavior)!==null&&s!==void 0?s:l)!==null&&f!==void 0?f:"native",{collection:p,document:b}=P1(),E=yL({...n,collection:p,children:void 0,validationBehavior:m}),{isFocusVisible:_,focusProps:T}=Ql({within:!0}),w=x.useRef(null),[D,$]=jc(),{labelProps:A,triggerProps:F,valueProps:I,menuProps:re,descriptionProps:q,errorMessageProps:B,...W}=K9({...Bh(n),label:$,validationBehavior:m},E,w),[R,j]=x.useState(null),ne=x.useCallback(()=>{w.current&&j(w.current.offsetWidth+"px")},[w]);ip({ref:w,onResize:ne});let M=x.useMemo(()=>({isOpen:E.isOpen,isFocused:E.isFocused,isFocusVisible:_,isDisabled:n.isDisabled||!1,isInvalid:W.isInvalid||!1,isRequired:n.isRequired||!1}),[E.isOpen,E.isFocused,_,n.isDisabled,W.isInvalid,n.isRequired]),ue=Yn({...n,values:M,defaultClassName:"react-aria-Select"}),K=Zt(n);return delete K.id,x.createElement(x.Fragment,null,x.createElement(M2,null,x.createElement(ei,{values:[[Kh,n],[G1,E],[zh,b]]},ue.children)),x.createElement(ei,{values:[[Kh,n],[G1,E],[NT,I],[xp,{...A,ref:D,elementType:"span"}],[Ih,{...F,ref:w,isPressed:E.isOpen}],[ll,E],[Jl,{trigger:"Select",triggerRef:w,placement:"bottom start",style:{"--trigger-width":R}}],[kp,re],[Yc,E],[Zl,{slots:{description:q,errorMessage:B}}],[Gc,W]]},x.createElement("div",{...K,...ue,...T,ref:r,slot:n.slot||void 0,"data-focused":E.isFocused||void 0,"data-focus-visible":_||void 0,"data-open":E.isOpen||void 0,"data-disabled":n.isDisabled||void 0,"data-invalid":W.isInvalid||void 0,"data-required":n.isRequired||void 0}),x.createElement(W9,{state:E,triggerRef:w,label:$,name:n.name,isDisabled:n.isDisabled})))}const xM=x.forwardRef(bM),NT=x.createContext(null);function kM(n,r){var l,s;[n,r]=qn(n,r,NT);let f=x.useContext(G1),{placeholder:m}=vs(Kh),p=f.selectedKey!=null?f.collection.getItem(f.selectedKey):null,b=p==null?void 0:p.rendered;typeof b=="function"&&(b=b({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"}));let E=Bc(yM(xT),"react-aria-components");var _,T;let w=Yn({...n,defaultChildren:b||m||E.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:(_=(l=f.selectedItem)===null||l===void 0?void 0:l.value)!==null&&_!==void 0?_:null,selectedText:(T=(s=f.selectedItem)===null||s===void 0?void 0:s.textValue)!==null&&T!==void 0?T:null,isPlaceholder:!p}}),D=Zt(n);return x.createElement("span",{ref:r,...D,...w,"data-placeholder":!p||void 0},x.createElement(Zl.Provider,{value:void 0},w.children))}const EM=x.forwardRef(kM),AT=x.createContext({});let CM=n=>{let{onHoverStart:r,onHoverChange:l,onHoverEnd:s,...f}=n;return f};function _M(n,r){[n,r]=qn(n,r,AT);let{hoverProps:l,isHovered:s}=ol(n),{isFocused:f,isFocusVisible:m,focusProps:p}=Ql({isTextInput:!0,autoFocus:n.autoFocus}),b=!!n["aria-invalid"]&&n["aria-invalid"]!=="false",E=Yn({...n,values:{isHovered:s,isFocused:f,isFocusVisible:m,isDisabled:n.disabled||!1,isInvalid:b},defaultClassName:"react-aria-TextArea"});return x.createElement("textarea",{...ft(CM(n),p,l),...E,ref:r,"data-focused":f||void 0,"data-disabled":n.disabled||void 0,"data-hovered":s||void 0,"data-focus-visible":m||void 0,"data-invalid":b||void 0})}const SM=x.forwardRef(_M),wM=x.createContext(null);function TM(n,r){[n,r]=qn(n,r,wM);let{validationBehavior:l}=vs(Uh)||{};var s,f;let m=(f=(s=n.validationBehavior)!==null&&s!==void 0?s:l)!==null&&f!==void 0?f:"native",p=x.useRef(null),[b,E]=jc(),[_,T]=x.useState("input"),{labelProps:w,inputProps:D,descriptionProps:$,errorMessageProps:A,...F}=S1({...Bh(n),inputElementType:_,label:E,validationBehavior:m},p),I=x.useCallback(B=>{p.current=B,B&&T(B instanceof HTMLTextAreaElement?"textarea":"input")},[]),re=Yn({...n,values:{isDisabled:n.isDisabled||!1,isInvalid:F.isInvalid,isReadOnly:n.isReadOnly||!1,isRequired:n.isRequired||!1},defaultClassName:"react-aria-TextField"}),q=Zt(n);return delete q.id,x.createElement("div",{...q,...re,ref:r,slot:n.slot||void 0,"data-disabled":n.isDisabled||void 0,"data-invalid":F.isInvalid||void 0,"data-readonly":n.isReadOnly||void 0,"data-required":n.isRequired||void 0},x.createElement(ei,{values:[[xp,{...w,ref:b}],[Vh,{...D,ref:I}],[AT,{...D,ref:I}],[Zl,{slots:{description:$,errorMessage:A}}],[Gc,F]]},re.children))}const OT=x.forwardRef(TM),DM=wn({base:"ui-kit__useFocusRing-module__base"}.base);function qc(n={}){const r=s7(n),l=DM(),s={...r.focusProps,"data-focused":r.isFocused,"data-focus-visible":r.isFocusVisible};return{...r,focusProps:s,focusRingClassnames:l}}const Cp={base:"ui-kit__button-module__base",primary:"ui-kit__button-module__primary",secondary:"ui-kit__button-module__secondary",critical:"ui-kit__button-module__critical",tertiary:"ui-kit__button-module__tertiary"},$M=wn(Cp.base,{variants:{variant:{critical:Cp.critical,primary:Cp.primary,secondary:Cp.secondary,tertiary:Cp.tertiary}}});function _p({className:n,variant:r="secondary",...l}){const{focusRingClassnames:s,focusProps:f}=qc(),m=Tb(l,f);return me.jsx(R1,{className:Mt($M({className:n,variant:r}),s),...m})}_p.displayName="Button";const FT={base:"ui-kit__button-group-module__base",fit:"ui-kit__button-group-module__fit"};function PM({className:n,children:r,...l}){return me.jsx("div",{className:Mt(FT.base,n),...l,children:r})}function LM({children:n,expand:r=!0}){return x.cloneElement(n,{className:Mt(n.props.className,!r&&FT.fit)})}const MM={base:"ui-kit__divider-module__base"};function NM({className:n,...r}){return me.jsx("hr",{className:Mt(MM.base,n),...r})}const Sp={base:"ui-kit__icon-module__base",xs:"ui-kit__icon-module__xs",sm:"ui-kit__icon-module__sm",md:"ui-kit__icon-module__md",lg:"ui-kit__icon-module__lg"},AM=wn(Sp.base,{variants:{size:{xs:Sp.xs,sm:Sp.sm,md:Sp.md,lg:Sp.lg}}});function ms({className:n,icon:r,size:l="md",...s}){return me.jsx("span",{role:"img",className:AM({className:n,size:l}),...s,children:r&&me.jsx(r,{})})}ms.displayName="Icon";const kr={base:"ui-kit__input-module__base",error:"ui-kit__input-module__error",success:"ui-kit__input-module__success",warning:"ui-kit__input-module__warning",group:"ui-kit__input-module__group",disabled:"ui-kit__input-module__disabled",prefix:"ui-kit__input-module__prefix",input:"ui-kit__input-module__input",left:"ui-kit__input-module__left",right:"ui-kit__input-module__right",suffix:"ui-kit__input-module__suffix"},OM={h1:{variant:"heading-md",tone:"headline"},h2:{variant:"heading-md",tone:"headline"},h3:{variant:"heading-md",tone:"headline"},h4:{variant:"heading-md",tone:"headline"},h5:{variant:"heading-md",tone:"headline"},h6:{variant:"heading-md",tone:"headline"},dd:{variant:"body-md"},dt:{variant:"body-md"},legend:{variant:"body-md"},p:{variant:"body-md"},span:{variant:"body-md"},strong:{variant:"body-md-strong"}},FM="body-md",RM="default",zM=({as:n="span",variant:r,tone:l})=>{const s=OM[n]||{},f=r||s.variant||FM,m=l||s.tone||RM;return{variant:f,tone:m}},Er={base:"ui-kit__text-module__base","visually-hidden":"ui-kit__text-module__visually-hidden","heading-lg":"ui-kit__text-module__heading-lg","heading-md":"ui-kit__text-module__heading-md","body-md-strong":"ui-kit__text-module__body-md-strong","body-md":"ui-kit__text-module__body-md","body-sm":"ui-kit__text-module__body-sm",default:"ui-kit__text-module__default",headline:"ui-kit__text-module__headline",dark:"ui-kit__text-module__dark",light:"ui-kit__text-module__light",disabled:"ui-kit__text-module__disabled",info:"ui-kit__text-module__info",success:"ui-kit__text-module__success",warning:"ui-kit__text-module__warning",critical:"ui-kit__text-module__critical",error:"ui-kit__text-module__error"},BM=wn(Er.base,{variants:{tone:{default:Er.default,headline:Er.headline,dark:Er.dark,light:Er.light,disabled:Er.disabled,critical:Er.critical,error:Er.error,info:Er.info,success:Er.success,warning:Er.warning},variant:{"heading-lg":Er["heading-lg"],"heading-md":Er["heading-md"],"body-md-strong":Er["body-md-strong"],"body-md":Er["body-md"],"body-sm":Er["body-sm"]},visuallyHidden:{true:Er["visually-hidden"]}}}),Za=x.forwardRef(({className:n,as:r="span",variant:l,tone:s,children:f,visuallyHidden:m=!1,...p},b)=>{const{variant:E,tone:_}=zM({as:r,variant:l,tone:s});return x.createElement(r,{className:BM({className:n,variant:E,tone:_,visuallyHidden:m}),ref:b,...p},f)});Za.displayName="Text";const IM=wn(kr.base,{variants:{state:{error:kr.error,success:kr.success,warning:kr.warning}}}),UM=wn(kr.group,{variants:{disabled:{true:kr.disabled},state:{error:kr.error,success:kr.success,warning:kr.warning}}}),HM=wn(kr.input,{variants:{align:{left:kr.left,right:kr.right},state:{error:kr.error,success:kr.success,warning:kr.warning}}});function RT(n,r){return typeof n=="string"?me.jsx(Za,{className:r,variant:"body-md",tone:"disabled",children:n}):me.jsx("span",{className:r,children:n})}function jh({className:n,align:r="left",disabled:l,prefix:s,state:f,suffix:m,...p}){const{focusProps:b,focusRingClassnames:E}=qc({within:!0});return me.jsx("div",{...b,className:Mt(IM({className:n,state:f}),E),children:me.jsxs(V1,{className:UM({disabled:l,state:f}),children:[s&&RT(s,kr.prefix),me.jsx(B2,{...p,className:HM({align:r,state:f}),disabled:l}),m&&RT(m,kr.suffix)]})})}jh.displayName="Input";const wp={base:"ui-kit__label-module__base","label-group":"ui-kit__label-module__label-group"},VM=wn(wp.base,{variants:{required:{true:wp.required}}});function Wh({className:n,...r}){return me.jsxs(Hh,{className:VM({className:n}),...r,children:[r.children,r.required&&me.jsx(Za,{className:wp.required,tone:"error",children:"*"})]})}function Gh({children:n}){return me.jsx(Za,{className:wp.description,tone:"disabled",children:n})}function Yh(n){return me.jsx(V1,{className:wp["label-group"],...n})}Wh.displayName="Label",Gh.displayName="LabelDescription",Yh.displayName="LabelGroup";const KM=wn({base:"ui-kit__link-module__base"}.base);function zT({className:n,...r}){const{focusRingClassnames:l,focusProps:s}=qc(),f=Tb(r,s);return me.jsx(aL,{className:Mt(KM({className:n}),l),...f})}zT.displayName="Link";const Tp={base:"ui-kit__list-module__base",bullet:"ui-kit__list-module__bullet",numbered:"ui-kit__list-module__numbered",item:"ui-kit__list-module__item"},jM=wn(Tp.base,{variants:{decoration:{none:Tp.none,bullet:Tp.bullet,numbered:Tp.numbered}}}),WM=wn(Tp.item);function BT({decoration:n="none",...r}){const l=n!=="numbered"?"ul":"ol";return me.jsx(l,{...r,className:jM({decoration:n})})}function GM({...n}){return me.jsx("li",{...n,className:WM()})}BT.displayName="List";const qh={menu:"ui-kit__menu-module__menu",menuItem:"ui-kit__menu-module__menuItem",menuItemWrapper:"ui-kit__menu-module__menuItemWrapper"};function YM({className:n,...r}){return me.jsx(wT,{children:me.jsx(iM,{className:Mt(qh.menu,n),...r})})}function qM({className:n,isDisabled:r,title:l="",children:s,...f}){return me.jsx(aM,{className:Mt(qh.menuItem,n,r&&qh.disabled),...f,children:me.jsx("span",{className:qh.menuItemWrapper,title:l,children:s})})}const ea={entering:"ui-kit__modal-module__entering",fadeIn:"ui-kit__modal-module__fadeIn",exiting:"ui-kit__modal-module__exiting",fadeOut:"ui-kit__modal-module__fadeOut",dialog:"ui-kit__modal-module__dialog",modal:"ui-kit__modal-module__modal",modalContent:"ui-kit__modal-module__modalContent",modalOverlay:"ui-kit__modal-module__modalOverlay",title:"ui-kit__modal-module__title",description:"ui-kit__modal-module__description",footer:"ui-kit__modal-module__footer"};function QM({children:n,role:r="dialog",...l}){return me.jsx(LT,{...l,className:({isEntering:s,isExiting:f})=>Mt(ea.modalOverlay,{[ea.entering]:s,[ea.exiting]:f}),children:me.jsx(dM,{className:Mt(ea.modal),children:me.jsx(qL,{className:Mt(ea.dialog),role:r,children:n})})})}function XM({title:n,description:r,footer:l,className:s}){return me.jsxs("div",{className:Mt(ea.modalContent,s),children:[n&&me.jsx(Za,{as:"h1",className:ea.title,children:n}),r&&me.jsx(Za,{className:ea.description,children:r}),l&&me.jsx("div",{className:ea.footer,children:l})]})}function ZM(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function JM(n){if(n.__esModule)return n;var r=n.default;if(typeof r=="function"){var l=function s(){return this instanceof s?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};l.prototype=r.prototype}else l={};return Object.defineProperty(l,"__esModule",{value:!0}),Object.keys(n).forEach(function(s){var f=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(l,s,f.get?f:{enumerable:!0,get:function(){return n[s]}})}),l}var lo={},Y1={exports:{}},q1={exports:{}},Nt={};/** @license React v16.13.1
187
+ */var S2;function q9(){return S2||(S2=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 n=x,r=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function l(B){{for(var W=arguments.length,R=new Array(W>1?W-1:0),j=1;j<W;j++)R[j-1]=arguments[j];s("error",B,R)}}function s(B,W,R){{var j=r.ReactDebugCurrentFrame,ne=j.getStackAddendum();ne!==""&&(W+="%s",R=R.concat([ne]));var M=R.map(function(ue){return String(ue)});M.unshift("Warning: "+W),Function.prototype.apply.call(console[B],console,M)}}function f(B,W){return B===W&&(B!==0||1/B===1/W)||B!==B&&W!==W}var m=typeof Object.is=="function"?Object.is:f,p=n.useState,b=n.useEffect,E=n.useLayoutEffect,_=n.useDebugValue,T=!1,w=!1;function D(B,W,R){T||n.startTransition!==void 0&&(T=!0,l("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=W();if(!w){var ne=W();m(j,ne)||(l("The result of getSnapshot should be cached to avoid an infinite loop"),w=!0)}var M=p({inst:{value:j,getSnapshot:W}}),ue=M[0].inst,K=M[1];return E(function(){ue.value=j,ue.getSnapshot=W,$(ue)&&K({inst:ue})},[B,j,W]),b(function(){$(ue)&&K({inst:ue});var G=function(){$(ue)&&K({inst:ue})};return B(G)},[B]),_(j),j}function $(B){var W=B.getSnapshot,R=B.value;try{var j=W();return!m(R,j)}catch{return!0}}function A(B,W,R){return W()}var F=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",I=!F,re=I?A:D,q=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:re;D1.useSyncExternalStore=q,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),D1}process.env.NODE_ENV==="production"?w1.exports=Y9():w1.exports=q9();var Q9=w1.exports;class $1{get childNodes(){throw new Error("childNodes is not supported")}clone(){let r=new $1(this.type,this.key);return r.value=this.value,r.level=this.level,r.hasChildNodes=this.hasChildNodes,r.rendered=this.rendered,r.textValue=this.textValue,r["aria-label"]=this["aria-label"],r.index=this.index,r.parentKey=this.parentKey,r.prevKey=this.prevKey,r.nextKey=this.nextKey,r.firstChildKey=this.firstChildKey,r.lastChildKey=this.lastChildKey,r.props=this.props,r}constructor(r,l){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=r,this.key=l}}class w2{*[Symbol.iterator](){let r=this.firstChild;for(;r;)yield r,r=r.nextSibling}get firstChild(){return this._firstChild}set firstChild(r){this._firstChild=r,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(r){this._lastChild=r,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(r){this._previousSibling=r,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(r){this._nextSibling=r,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(r){this._parentNode=r,this.ownerDocument.markDirty(this)}get isConnected(){var r;return((r=this.parentNode)===null||r===void 0?void 0:r.isConnected)||!1}appendChild(r){this.ownerDocument.startTransaction(),r.parentNode&&r.parentNode.removeChild(r),this.firstChild==null&&(this.firstChild=r),this.lastChild?(this.lastChild.nextSibling=r,r.index=this.lastChild.index+1,r.previousSibling=this.lastChild):(r.previousSibling=null,r.index=0),r.parentNode=this,r.nextSibling=null,this.lastChild=r,this.ownerDocument.markDirty(this),r.hasSetProps&&this.ownerDocument.addNode(r),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(r,l){if(l==null)return this.appendChild(r);this.ownerDocument.startTransaction(),r.parentNode&&r.parentNode.removeChild(r),r.nextSibling=l,r.previousSibling=l.previousSibling,r.index=l.index,this.firstChild===l?this.firstChild=r:l.previousSibling&&(l.previousSibling.nextSibling=r),l.previousSibling=r,r.parentNode=l.parentNode;let s=l;for(;s;)s.index++,s=s.nextSibling;r.hasSetProps&&this.ownerDocument.addNode(r),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(r){if(r.parentNode!==this)return;this.ownerDocument.startTransaction();let l=r.nextSibling;for(;l;)l.index--,l=l.nextSibling;r.nextSibling&&(r.nextSibling.previousSibling=r.previousSibling),r.previousSibling&&(r.previousSibling.nextSibling=r.nextSibling),this.firstChild===r&&(this.firstChild=r.nextSibling),this.lastChild===r&&(this.lastChild=r.previousSibling),r.parentNode=null,r.nextSibling=null,r.previousSibling=null,r.index=0,this.ownerDocument.removeNode(r),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(r){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=r}}class yp extends w2{get index(){return this._index}set index(r){this._index=r,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof yp?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var r,l,s,f;let m=this.ownerDocument.getMutableNode(this);m.index=this.index,m.level=this.level,m.parentKey=this.parentNode instanceof yp?this.parentNode.node.key:null;var p;m.prevKey=(p=(r=this.previousSibling)===null||r===void 0?void 0:r.node.key)!==null&&p!==void 0?p:null;var b;m.nextKey=(b=(l=this.nextSibling)===null||l===void 0?void 0:l.node.key)!==null&&b!==void 0?b:null,m.hasChildNodes=!!this.firstChild;var E;m.firstChildKey=(E=(s=this.firstChild)===null||s===void 0?void 0:s.node.key)!==null&&E!==void 0?E:null;var _;m.lastChildKey=(_=(f=this.lastChild)===null||f===void 0?void 0:f.node.key)!==null&&_!==void 0?_:null}setProps(r,l,s){let f=this.ownerDocument.getMutableNode(this),{value:m,textValue:p,id:b,...E}=r;if(E.ref=l,f.props=E,f.rendered=s,f.value=m,f.textValue=p||(typeof s=="string"?s:"")||r["aria-label"]||"",b!=null&&b!==f.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");f.key=b}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(r,l){super(l),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new $1(r,`react-aria-${++l.nodeId}`),this.ownerDocument.startTransaction()}}class X9{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let r=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;r;)yield r,r=r.nextKey!=null?this.keyMap.get(r.nextKey):void 0}getChildren(r){let l=this.keyMap;return{*[Symbol.iterator](){let s=l.get(r),f=(s==null?void 0:s.firstChildKey)!=null?l.get(s.firstChildKey):null;for(;f;)yield f,f=f.nextKey!=null?l.get(f.nextKey):void 0}}}getKeyBefore(r){let l=this.keyMap.get(r);if(!l)return null;if(l.prevKey!=null){for(l=this.keyMap.get(l.prevKey);l&&l.type!=="item"&&l.lastChildKey!=null;)l=this.keyMap.get(l.lastChildKey);var s;return(s=l==null?void 0:l.key)!==null&&s!==void 0?s:null}return l.parentKey}getKeyAfter(r){let l=this.keyMap.get(r);if(!l)return null;if(l.type!=="item"&&l.firstChildKey!=null)return l.firstChildKey;for(;l;){if(l.nextKey!=null)return l.nextKey;if(l.parentKey!=null)l=this.keyMap.get(l.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let r=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(r==null?void 0:r.lastChildKey)!=null;)r=this.keyMap.get(r.lastChildKey);var l;return(l=r==null?void 0:r.key)!==null&&l!==void 0?l:null}getItem(r){var l;return(l=this.keyMap.get(r))!==null&&l!==void 0?l:null}at(){throw new Error("Not implemented")}clone(){let r=this.constructor,l=new r;return l.keyMap=new Map(this.keyMap),l.firstKey=this.firstKey,l.lastKey=this.lastKey,l}addNode(r){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(r.key,r)}removeNode(r){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(r)}commit(r,l,s=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=r,this.lastKey=l,this.frozen=!s}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class Z9 extends w2{get isConnected(){return!0}createElement(r){return new yp(r,this)}getMutableNode(r){let l=r.node;return this.mutatedNodes.has(r)||(l=r.node.clone(),this.mutatedNodes.add(r),r.node=l),this.markDirty(r),l}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(r){this.dirtyNodes.add(r)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(r){let l=this.getMutableCollection();if(!l.getItem(r.node.key)){l.addNode(r.node);for(let s of r)this.addNode(s)}this.markDirty(r)}removeNode(r){for(let s of r)this.removeNode(s);this.getMutableCollection().removeNode(r.node.key),this.markDirty(r)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let m of this.dirtyNodes)m instanceof yp&&m.isConnected&&m.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var r,l;let m=this.getMutableCollection();for(let p of this.mutatedNodes)p.isConnected&&m.addNode(p.node);var s,f;m.commit((s=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&s!==void 0?s:null,(f=(l=this.lastChild)===null||l===void 0?void 0:l.node.key)!==null&&f!==void 0?f:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let r of this.subscriptions)r()}subscribe(r){return this.subscriptions.add(r),()=>this.subscriptions.delete(r)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(r){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=r,this.collectionMutated=!0}}function Kc(n){let{children:r,items:l,idScope:s,addIdAndValue:f,dependencies:m=[]}=n,p=x.useMemo(()=>new WeakMap,m);return x.useMemo(()=>{if(l&&typeof r=="function"){let _=[];for(let T of l){let w=p.get(T);if(!w){w=r(T);var b,E;let D=(E=(b=w.props.id)!==null&&b!==void 0?b:T.key)!==null&&E!==void 0?E:T.id;if(D==null)throw new Error("Could not determine key for item");s&&(D=s+":"+D),w=x.cloneElement(w,f?{key:D,id:D,value:T}:{key:D}),p.set(T,w)}_.push(w)}return _}else if(typeof r!="function")return r},[r,l,p,s,f])}function J9(n){return Kc({...n,addIdAndValue:!0})}const T2=x.createContext(!1);function D2(n,r){let{collection:l,document:s}=P1(r);return{portal:$2(n,s),collection:l}}function eL(n,r,l){let s=Hl(),f=x.useRef(s);f.current=s;let m=x.useCallback(()=>f.current?l():r(),[r,l]);return Q9.useSyncExternalStore(n,m)}const tL=typeof x.useSyncExternalStore=="function"?x.useSyncExternalStore:eL;function P1(n){let r=x.useMemo(()=>new Z9(n||new X9),[n]),l=x.useCallback(p=>r.subscribe(p),[r]),s=x.useCallback(()=>{let p=r.getCollection();return r.isSSR&&r.resetAfterSSR(),p},[r]),f=x.useCallback(()=>(r.isSSR=!0,r.getCollection()),[r]);return{collection:tL(l,s,f),document:r}}const L1=x.createContext(null),zh=x.createContext(null);function $2(n,r){let l=x.useContext(zh),s=r??l,f=J9(n),m=x.useMemo(()=>x.createElement(T2.Provider,{value:!0},f),[f]);return Hl()?x.createElement(L1.Provider,{value:s},m):Ob.createPortal(m,s)}function nL(n){return x.createElement(x.Fragment,null,$2(n))}function P2(n,r,l){let s=x.useContext(T2);var f;return s?(f=M1(n,r,l,"children"in r?r.children:null))!==null&&f!==void 0?f:x.createElement(x.Fragment,null):null}function rL(n,r,l){return x.useCallback(s=>{s==null||s.setProps(n,r,l)},[n,r,l])}function M1(n,r,l,s,f){let m=rL(r,l,s),p=x.useContext(L1);if(p){let b=p.ownerDocument.nodesByProps.get(r);return b||(b=p.ownerDocument.createElement(n),b.setProps(r,l,s),p.appendChild(b),p.ownerDocument.updateCollection(),p.ownerDocument.nodesByProps.set(r,b)),f?x.createElement(L1.Provider,{value:b},f):null}return x.createElement(n,{ref:m},f)}const N1=Symbol("default");function ei({values:n,children:r}){for(let[l,s]of n)r=x.createElement(l.Provider,{value:s},r);return r}function Yn(n){let{className:r,style:l,children:s,defaultClassName:f,defaultChildren:m,defaultStyle:p,values:b}=n;return x.useMemo(()=>{let E,_,T;return typeof r=="function"?E=r({...b,defaultClassName:f}):E=r,typeof l=="function"?_=l({...b,defaultStyle:p||{}}):_=l,typeof s=="function"?T=s({...b,defaultChildren:m}):s==null?T=m:T=s,{className:E??f,style:_||p?{...p,..._}:void 0,children:T??m,"data-rac":""}},[r,l,s,f,m,p,b])}function vs(n,r){let l=x.useContext(n);if(r===null)return null;if(l&&typeof l=="object"&&"slots"in l&&l.slots){let s=new Intl.ListFormat().format(Object.keys(l.slots).map(m=>`"${m}"`));if(!r&&!l.slots[N1])throw new Error(`A slot prop is required. Valid slot names are ${s}.`);let f=r||N1;if(!l.slots[f])throw new Error(`Invalid slot "${r}". Valid slot names are ${s}.`);return l.slots[f]}return l}function qn(n,r,l){let s=vs(l,n.slot)||{},{ref:f,...m}=s,p=Qa(x.useMemo(()=>ih(r,f),[r,f])),b=ft(m,n);return"style"in m&&m.style&&"style"in n&&n.style&&(typeof m.style=="function"||typeof n.style=="function"?b.style=E=>{let _=typeof m.style=="function"?m.style(E):m.style,T={...E.defaultStyle,..._},w=typeof n.style=="function"?n.style({...E,defaultStyle:T}):n.style;return{...T,...w}}:b.style={...m.style,...n.style}),[b,p]}function jc(){let[n,r]=x.useState(!0),l=x.useRef(!1),s=x.useCallback(f=>{l.current=!0,r(!!f)},[]);return jt(()=>{l.current||r(!1)},[]),[s,n]}function A1(n,r=!0){let[l,s]=x.useState(!0);return L2(n,l&&r,x.useCallback(()=>s(!1),[])),l&&r}function O1(n,r){let[l,s]=x.useState(!1),[f,m]=x.useState("idle");return!r&&n.current&&f==="idle"&&(l=!0,s(!0),m("exiting")),!n.current&&f==="exited"&&m("idle"),L2(n,l,x.useCallback(()=>{m("exited"),s(!1)},[])),l}function L2(n,r,l){let s=x.useRef(null);r&&n.current&&(s.current=window.getComputedStyle(n.current).animation),jt(()=>{if(r&&n.current){let f=window.getComputedStyle(n.current);if(f.animationName&&f.animationName!=="none"&&f.animation!==s.current){let m=b=>{b.target===n.current&&(p.removeEventListener("animationend",m),Fb.flushSync(()=>{l()}))},p=n.current;return p.addEventListener("animationend",m),()=>{p.removeEventListener("animationend",m)}}else l()}},[n,r,l])}if(typeof HTMLTemplateElement<"u"){const n=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:n.call(this)}})}const bp=x.createContext(!1),iL=typeof DocumentFragment<"u"?new DocumentFragment:null;function M2(n){let r=x.useContext(bp),l=Hl();if(r)return x.createElement(x.Fragment,null,n.children);let s=x.createElement(bp.Provider,{value:!0},n.children);return l?x.createElement("template",{"data-react-aria-hidden":!0},s):Fb.createPortal(s,iL)}function F1(n){let r=(l,s)=>x.useContext(bp)?null:n(l,s);return r.displayName=n.displayName||n.name,x.forwardRef(r)}function Bh(n){const r=/^(data-.*)$/;let l={};for(const s in n)r.test(s)||(l[s]=n[s]);return l}const oL=x.createContext(null);function lL(n,r){[n,r]=qn(n,r,oL);let l=n.href?"a":"span",{linkProps:s,isPressed:f}=EP({...n,elementType:l},r),{hoverProps:m,isHovered:p}=ol(n),{focusProps:b,isFocused:E,isFocusVisible:_}=Ql(),T=Yn({...n,defaultClassName:"react-aria-Link",values:{isCurrent:!!n["aria-current"],isDisabled:n.isDisabled||!1,isPressed:f,isHovered:p,isFocused:E,isFocusVisible:_}});return x.createElement(l,{ref:r,slot:n.slot||void 0,...ft(T,s,m,b),"data-focused":E||void 0,"data-hovered":p||void 0,"data-pressed":f||void 0,"data-focus-visible":_||void 0,"data-current":!!n["aria-current"]||void 0,"data-disabled":n.isDisabled||void 0},T.children)}const aL=x.forwardRef(lL),uL=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Ih=x.createContext({});function sL(n,r){[n,r]=qn(n,r,Ih);let l=n,{buttonProps:s,isPressed:f}=KP(n,r),{focusProps:m,isFocused:p,isFocusVisible:b}=Ql(n),{hoverProps:E,isHovered:_}=ol(n),T=Yn({...n,values:{isHovered:_,isPressed:f,isFocused:p,isFocusVisible:b,isDisabled:n.isDisabled||!1},defaultClassName:"react-aria-Button"});return x.createElement("button",{...Zt(n,{propNames:uL}),...ft(s,m,E),...T,ref:r,slot:n.slot||void 0,"data-disabled":n.isDisabled||void 0,"data-pressed":l.isPressed||f||void 0,"data-hovered":_||void 0,"data-focused":p||void 0,"data-focus-visible":b||void 0})}const R1=F1(sL),Zl=x.createContext({});function cL(n,r){[n,r]=qn(n,r,Zl);let{elementType:l="span",...s}=n;return x.createElement(l,{className:"react-aria-Text",...s,ref:r})}const dL=x.forwardRef(cL);class z1{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(r){let l=this.keyMap.get(r);return l?l.prevKey:null}getKeyAfter(r){let l=this.keyMap.get(r);return l?l.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(r){return this.keyMap.get(r)}at(r){const l=[...this.getKeys()];return this.getItem(l[r])}getChildren(r){let l=this.keyMap.get(r);return(l==null?void 0:l.childNodes)||[]}constructor(r){this.keyMap=new Map,this.iterable=r;let l=m=>{if(this.keyMap.set(m.key,m),m.childNodes&&m.type==="section")for(let p of m.childNodes)l(p)};for(let m of r)l(m);let s,f=0;for(let[m,p]of this.keyMap)s?(s.nextKey=m,p.prevKey=s.key):(this.firstKey=m,p.prevKey=void 0),p.type==="item"&&(p.index=f++),s=p,s.nextKey=void 0;this.lastKey=s==null?void 0:s.key}}class To extends Set{constructor(r,l,s){super(r),r instanceof To?(this.anchorKey=l||r.anchorKey,this.currentKey=s||r.currentKey):(this.anchorKey=l,this.currentKey=s)}}function fL(n,r){if(n.size!==r.size)return!1;for(let l of n)if(!r.has(l))return!1;return!0}function N2(n){let{selectionMode:r="none",disallowEmptySelection:l,allowDuplicateSelectionEvents:s,selectionBehavior:f="toggle",disabledBehavior:m="all"}=n,p=x.useRef(!1),[,b]=x.useState(!1),E=x.useRef(null),_=x.useRef(null),[,T]=x.useState(null),w=x.useMemo(()=>A2(n.selectedKeys),[n.selectedKeys]),D=x.useMemo(()=>A2(n.defaultSelectedKeys,new To),[n.defaultSelectedKeys]),[$,A]=cs(w,D,n.onSelectionChange),F=x.useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),[I,re]=x.useState(f);f==="replace"&&I==="toggle"&&typeof $=="object"&&$.size===0&&re("replace");let q=x.useRef(f);return x.useEffect(()=>{f!==q.current&&(re(f),q.current=f)},[f]),{selectionMode:r,disallowEmptySelection:l,selectionBehavior:I,setSelectionBehavior:re,get isFocused(){return p.current},setFocused(B){p.current=B,b(B)},get focusedKey(){return E.current},get childFocusStrategy(){return _.current},setFocusedKey(B,W="first"){E.current=B,_.current=W,T(B)},selectedKeys:$,setSelectedKeys(B){(s||!fL(B,$))&&A(B)},disabledKeys:F,disabledBehavior:m}}function A2(n,r){return n?n==="all"?"all":new To(n):r}class O2{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(r){this.state.setSelectionBehavior(r)}get isFocused(){return this.state.isFocused}setFocused(r){this.state.setFocused(r)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(r,l){(r==null||this.collection.getItem(r))&&this.state.setFocusedKey(r,l)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(r){return this.state.selectionMode==="none"?!1:(r=this.getKey(r),this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r))}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 r=this.getSelectAllKeys(),l=this.state.selectedKeys;return this._isSelectAll=r.every(s=>l.has(s)),this._isSelectAll}get firstSelectedKey(){let r=null;for(let l of this.state.selectedKeys){let s=this.collection.getItem(l);(!r||s&&E1(this.collection,s,r)<0)&&(r=s)}return r==null?void 0:r.key}get lastSelectedKey(){let r=null;for(let l of this.state.selectedKeys){let s=this.collection.getItem(l);(!r||s&&E1(this.collection,s,r)>0)&&(r=s)}return r==null?void 0:r.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(r){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(r);return}r=this.getKey(r);let l;if(this.state.selectedKeys==="all")l=new To([r],r,r);else{let s=this.state.selectedKeys,f=s.anchorKey||r;l=new To(s,f,r);for(let m of this.getKeyRange(f,s.currentKey||r))l.delete(m);for(let m of this.getKeyRange(r,f))this.canSelectItem(m)&&l.add(m)}this.state.setSelectedKeys(l)}getKeyRange(r,l){let s=this.collection.getItem(r),f=this.collection.getItem(l);return s&&f?E1(this.collection,s,f)<=0?this.getKeyRangeInternal(r,l):this.getKeyRangeInternal(l,r):[]}getKeyRangeInternal(r,l){let s=[],f=r;for(;f;){let m=this.collection.getItem(f);if((m&&m.type==="item"||m.type==="cell"&&this.allowsCellSelection)&&s.push(f),f===l)return s;f=this.collection.getKeyAfter(f)}return[]}getKey(r){let l=this.collection.getItem(r);if(!l||l.type==="cell"&&this.allowsCellSelection)return r;for(;l.type!=="item"&&l.parentKey!=null;)l=this.collection.getItem(l.parentKey);return!l||l.type!=="item"?null:l.key}toggleSelection(r){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(r)){this.replaceSelection(r);return}if(r=this.getKey(r),r==null)return;let l=new To(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);l.has(r)?l.delete(r):this.canSelectItem(r)&&(l.add(r),l.anchorKey=r,l.currentKey=r),!(this.disallowEmptySelection&&l.size===0)&&this.state.setSelectedKeys(l)}replaceSelection(r){if(this.selectionMode==="none"||(r=this.getKey(r),r==null))return;let l=this.canSelectItem(r)?new To([r],r,r):new To;this.state.setSelectedKeys(l)}setSelectedKeys(r){if(this.selectionMode==="none")return;let l=new To;for(let s of r)if(s=this.getKey(s),s!=null&&(l.add(s),this.selectionMode==="single"))break;this.state.setSelectedKeys(l)}getSelectAllKeys(){let r=[],l=s=>{for(;s;){if(this.canSelectItem(s)){let f=this.collection.getItem(s);f.type==="item"&&r.push(s),f.hasChildNodes&&(this.allowsCellSelection||f.type!=="item")&&l(S9(Fh(f,this.collection)).key)}s=this.collection.getKeyAfter(s)}};return l(this.collection.getFirstKey()),r}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 To)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(r,l){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(r)&&!this.disallowEmptySelection?this.toggleSelection(r):this.replaceSelection(r):this.selectionBehavior==="toggle"||l&&(l.pointerType==="touch"||l.pointerType==="virtual")?this.toggleSelection(r):this.replaceSelection(r))}isSelectionEqual(r){if(r===this.state.selectedKeys)return!0;let l=this.selectedKeys;if(r.size!==l.size)return!1;for(let s of r)if(!l.has(s))return!1;for(let s of l)if(!r.has(s))return!1;return!0}canSelectItem(r){var l;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(r))return!1;let s=this.collection.getItem(r);return!(!s||!(s==null||(l=s.props)===null||l===void 0)&&l.isDisabled||s.type==="cell"&&!this.allowsCellSelection)}isDisabled(r){var l,s;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(r)||!!(!((s=this.collection.getItem(r))===null||s===void 0||(l=s.props)===null||l===void 0)&&l.isDisabled))}isLink(r){var l,s;return!!(!((s=this.collection.getItem(r))===null||s===void 0||(l=s.props)===null||l===void 0)&&l.href)}getItemProps(r){var l;return(l=this.collection.getItem(r))===null||l===void 0?void 0:l.props}constructor(r,l,s){this.collection=r,this.state=l;var f;this.allowsCellSelection=(f=s==null?void 0:s.allowsCellSelection)!==null&&f!==void 0?f:!1,this._isSelectAll=null}}function F2(n){let{filter:r}=n,l=N2(n),s=x.useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),f=x.useCallback(_=>r?new z1(r(_)):new z1(_),[r]),m=x.useMemo(()=>({suppressTextValueWarning:n.suppressTextValueWarning}),[n.suppressTextValueWarning]),p=bS(n,f,m),b=x.useMemo(()=>new O2(p,l),[p,l]);const E=x.useRef(null);return x.useEffect(()=>{if(l.focusedKey!=null&&!p.getItem(l.focusedKey)){const _=E.current.getItem(l.focusedKey),T=[...E.current.getKeys()].map(F=>{const I=E.current.getItem(F);return I.type==="item"?I:null}).filter(F=>F!==null),w=[...p.getKeys()].map(F=>{const I=p.getItem(F);return I.type==="item"?I:null}).filter(F=>F!==null),D=T.length-w.length;let $=Math.min(D>1?Math.max(_.index-D+1,0):_.index,w.length-1),A;for(;$>=0;){if(!b.isDisabled(w[$].key)){A=w[$];break}$<w.length-1?$++:($>_.index&&($=_.index),$--)}l.setFocusedKey(A?A.key:null)}E.current=p},[p,b,l,l.focusedKey]),{collection:p,disabledKeys:s,selectionManager:b}}function R2(n){var r;let[l,s]=cs(n.selectedKey,(r=n.defaultSelectedKey)!==null&&r!==void 0?r:null,n.onSelectionChange),f=x.useMemo(()=>l!=null?[l]:[],[l]),{collection:m,disabledKeys:p,selectionManager:b}=F2({...n,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:f,onSelectionChange:_=>{var T;let w=(T=_.values().next().value)!==null&&T!==void 0?T:null;w===l&&n.onSelectionChange&&n.onSelectionChange(w),s(w)}}),E=l!=null?m.getItem(l):null;return{collection:m,disabledKeys:p,selectionManager:b,selectedKey:l,setSelectedKey:s,selectedItem:E}}function Wc(n){let[r,l]=cs(n.isOpen,n.defaultOpen||!1,n.onOpenChange);const s=x.useCallback(()=>{l(!0)},[l]),f=x.useCallback(()=>{l(!1)},[l]),m=x.useCallback(()=>{l(!r)},[l,r]);return{isOpen:r,setOpen:l,open:s,close:f,toggle:m}}function pL(n){var r,l;let{defaultFilter:s,menuTrigger:f="input",allowsEmptyCollection:m=!1,allowsCustomValue:p,shouldCloseOnBlur:b=!0}=n,[E,_]=x.useState(!1),[T,w]=x.useState(!1),[D,$]=x.useState(null),A=dt=>{n.onSelectionChange&&n.onSelectionChange(dt),dt===q&&(Ue(),ke())};var F;let{collection:I,selectionManager:re,selectedKey:q,setSelectedKey:B,selectedItem:W,disabledKeys:R}=R2({...n,onSelectionChange:A,items:(F=n.items)!==null&&F!==void 0?F:n.defaultItems});var j,ne;let[M,ue]=cs(n.inputValue,(ne=(j=n.defaultInputValue)!==null&&j!==void 0?j:(r=I.getItem(q))===null||r===void 0?void 0:r.textValue)!==null&&ne!==void 0?ne:"",n.onInputChange),K=I,G=x.useMemo(()=>n.items!=null||!s?I:vL(I,M,s),[I,M,s,n.items]),[be,Q]=x.useState(G),oe=x.useRef("focus"),Ce=Wc({...n,onOpenChange:dt=>{n.onOpenChange&&n.onOpenChange(dt,dt?oe.current:void 0),re.setFocused(dt),dt||re.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),ye=(dt=null,_t)=>{let Ot=_t==="manual"||_t==="focus"&&f==="focus";(m||G.size>0||Ot&&K.size>0||n.items)&&(Ot&&!Ce.isOpen&&n.items===void 0&&_(!0),oe.current=_t,$(dt),Ce.open())},pe=(dt=null,_t)=>{let Ot=_t==="manual"||_t==="focus"&&f==="focus";!(m||G.size>0||Ot&&K.size>0||n.items)&&!Ce.isOpen||(Ot&&!Ce.isOpen&&n.items===void 0&&_(!0),Ce.isOpen||(oe.current=_t),Y(dt))},X=x.useCallback(()=>{Q(E?K:G)},[E,K,G]),Y=x.useCallback((dt=null)=>{Ce.isOpen&&X(),$(dt),Ce.toggle()},[Ce,X]),ke=x.useCallback(()=>{Ce.isOpen&&(X(),Ce.close())},[Ce,X]),[fe,Me]=x.useState(M),Ue=()=>{var dt,_t;let Ot=(_t=(dt=I.getItem(q))===null||dt===void 0?void 0:dt.textValue)!==null&&_t!==void 0?_t:"";Me(Ot),ue(Ot)};var Be,Fe;let we=x.useRef((Fe=(Be=n.selectedKey)!==null&&Be!==void 0?Be:n.defaultSelectedKey)!==null&&Fe!==void 0?Fe:null);var $e;let je=x.useRef(($e=(l=I.getItem(q))===null||l===void 0?void 0:l.textValue)!==null&&$e!==void 0?$e:"");x.useEffect(()=>{var dt;T&&(G.size>0||m)&&!Ce.isOpen&&M!==fe&&f!=="manual"&&ye(null,"input"),!E&&!m&&Ce.isOpen&&G.size===0&&ke(),q!=null&&q!==we.current&&ke(),M!==fe&&(re.setFocusedKey(null),_(!1),M===""&&(n.inputValue===void 0||n.selectedKey===void 0)&&B(null)),q!==we.current&&(n.inputValue===void 0||n.selectedKey===void 0)?Ue():fe!==M&&Me(M);var _t;let Ot=(_t=(dt=I.getItem(q))===null||dt===void 0?void 0:dt.textValue)!==null&&_t!==void 0?_t:"";!T&&q!=null&&n.inputValue===void 0&&q===we.current&&je.current!==Ot&&(Me(Ot),ue(Ot)),we.current=q,je.current=Ot});let Xe=Ph({...n,value:x.useMemo(()=>({inputValue:M,selectedKey:q}),[M,q])}),mt=()=>{p&&q==null?De():It()},De=()=>{we.current=null,B(null),ke()},It=()=>{if(n.selectedKey!==void 0&&n.inputValue!==void 0){var dt;n.onSelectionChange(q);var _t;let Ot=(_t=(dt=I.getItem(q))===null||dt===void 0?void 0:dt.textValue)!==null&&_t!==void 0?_t:"";Me(Ot),ke()}else Ue(),ke()};const Wt=()=>{if(p){var dt,_t;const Ot=(_t=(dt=I.getItem(q))===null||dt===void 0?void 0:dt.textValue)!==null&&_t!==void 0?_t:"";M===Ot?It():De()}else It()};let bn=()=>{Ce.isOpen&&re.focusedKey!=null?q===re.focusedKey?It():B(re.focusedKey):Wt()},Qn=x.useRef(M),Xn=dt=>{dt?(Qn.current=M,f==="focus"&&ye(null,"focus")):(b&&Wt(),M!==Qn.current&&Xe.commitValidation()),w(dt)},ni=x.useMemo(()=>Ce.isOpen?E?K:G:be,[Ce.isOpen,K,G,E,be]);return{...Xe,...Ce,focusStrategy:D,toggle:pe,open:ye,close:Wt,selectionManager:re,selectedKey:q,setSelectedKey:B,disabledKeys:R,isFocused:T,setFocused:Xn,selectedItem:W,collection:ni,inputValue:M,setInputValue:ue,commit:bn,revert:mt}}function vL(n,r,l){return new z1(z2(n,n,r,l))}function z2(n,r,l,s){let f=[];for(let m of r)if(m.type==="section"&&m.hasChildNodes){let p=z2(n,Fh(m,n),l,s);[...p].some(b=>b.type==="item")&&f.push({...m,childNodes:p})}else m.type==="item"&&s(m.textValue,l)?f.push({...m}):m.type!=="item"&&f.push({...m});return f}function mL(n){let r=Wc(n),[l,s]=x.useState(null),[f,m]=x.useState([]),p=()=>{m([]),r.close()};return{focusStrategy:l,...r,open(_=null){s(_),r.open()},toggle(_=null){s(_),r.toggle()},close(){p()},expandedKeysStack:f,openSubmenu:(_,T)=>{m(w=>T>w.length?w:[...w.slice(0,T),_])},closeSubmenu:(_,T)=>{m(w=>w[T]===_?w.slice(0,T):w)}}}function hL(n,r){let{triggerKey:l}=n,{expandedKeysStack:s,openSubmenu:f,closeSubmenu:m,close:p}=r,[b]=x.useState(s==null?void 0:s.length),E=x.useMemo(()=>s[b]===l,[s,l,b]),[_,T]=x.useState(null),w=x.useCallback((A=null)=>{T(A),f(l,b)},[f,b,l]),D=x.useCallback(()=>{T(null),m(l,b)},[m,b,l]),$=x.useCallback((A=null)=>{T(A),E?D():w(A)},[D,w,E]);return x.useMemo(()=>({focusStrategy:_,isOpen:E,open:w,close:D,closeAll:p,submenuLevel:b,setOpen:()=>{},toggle:$}),[E,w,D,p,_,$,b])}function gL(n){let{minValue:r,maxValue:l,step:s,formatOptions:f,value:m,defaultValue:p=NaN,onChange:b,locale:E,isDisabled:_,isReadOnly:T}=n;m===null&&(m=NaN),m!==void 0&&!isNaN(m)&&(s!==void 0&&!isNaN(s)?m=jl(m,r,l,s):m=Oc(m,r,l)),isNaN(p)||(s!==void 0&&!isNaN(s)?p=jl(p,r,l,s):p=Oc(p,r,l));let[w,D]=cs(m,isNaN(p)?NaN:p,b),[$,A]=x.useState(()=>isNaN(w)?"":new Sh(E,f).format(w)),F=x.useMemo(()=>new yC(E,f),[E,f]),I=x.useMemo(()=>F.getNumberingSystem($),[F,$]),re=x.useMemo(()=>new Sh(E,{...f,numberingSystem:I}),[E,f,I]),q=x.useMemo(()=>re.resolvedOptions(),[re]),B=x.useCallback(fe=>isNaN(fe)||fe===null?"":re.format(fe),[re]),W=Ph({...n,value:w}),R=s!==void 0&&!isNaN(s)?s:1;q.style==="percent"&&(s===void 0||isNaN(s))&&(R=.01);let[j,ne]=x.useState(w),[M,ue]=x.useState(E),[K,G]=x.useState(f);(!Object.is(w,j)||E!==M||f!==K)&&(A(B(w)),ne(w),ue(E),G(f));let be=x.useMemo(()=>F.parse($),[F,$]),Q=()=>{if(!$.length){D(NaN),A(m===void 0?"":B(w));return}if(isNaN(be)){A(B(w));return}let fe;s===void 0||isNaN(s)?fe=Oc(be,r,l):fe=jl(be,r,l,s),fe=F.parse(B(fe)),D(fe),A(B(m===void 0?fe:w))},oe=(fe,Me=0)=>{let Ue=be;if(isNaN(Ue)){let Be=isNaN(Me)?0:Me;return jl(Be,r,l,R)}else{let Be=jl(Ue,r,l,R);return fe==="+"&&Be>Ue||fe==="-"&&Be<Ue?Be:jl(B1(fe,Ue,R),r,l,R)}},_e=()=>{let fe=oe("+",r);fe===w&&A(B(fe)),D(fe),W.commitValidation()},Ce=()=>{let fe=oe("-",l);fe===w&&A(B(fe)),D(fe),W.commitValidation()},ye=()=>{l!=null&&(D(jl(l,r,l,R)),W.commitValidation())},pe=()=>{r!=null&&(D(r),W.commitValidation())},X=x.useMemo(()=>!_&&!T&&(isNaN(be)||l===void 0||isNaN(l)||jl(be,r,l,R)>be||B1("+",be,R)<=l),[_,T,r,l,R,be]),Y=x.useMemo(()=>!_&&!T&&(isNaN(be)||r===void 0||isNaN(r)||jl(be,r,l,R)<be||B1("-",be,R)>=r),[_,T,r,l,R,be]);return{...W,validate:fe=>F.isValidPartialNumber(fe,r,l),increment:_e,incrementToMax:ye,decrement:Ce,decrementToMin:pe,canIncrement:X,canDecrement:Y,minValue:r,maxValue:l,numberValue:be,setNumberValue:D,setInputValue:A,inputValue:$,commit:Q}}function B1(n,r,l){let s=n==="+"?r+l:r-l;if(r%1!==0||l%1!==0){const f=r.toString().split("."),m=l.toString().split("."),p=f[1]&&f[1].length||0,b=m[1]&&m[1].length||0,E=Math.pow(10,Math.max(p,b));r=Math.round(r*E),l=Math.round(l*E),s=n==="+"?r+l:r-l,s/=E}return s}function yL(n){let r=Wc(n),[l,s]=x.useState(null),f=R2({...n,onSelectionChange:E=>{n.onSelectionChange!=null&&n.onSelectionChange(E),r.close(),m.commitValidation()}}),m=Ph({...n,value:f.selectedKey}),[p,b]=x.useState(!1);return{...m,...f,...r,focusStrategy:l,open(E=null){f.collection.size!==0&&(s(E),r.open())},toggle(E=null){f.collection.size!==0&&(s(E),r.toggle())},isFocused:p,setFocused:b}}class bL{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(r){let l=this.keyMap.get(r);return l?l.prevKey:null}getKeyAfter(r){let l=this.keyMap.get(r);return l?l.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(r){return this.keyMap.get(r)}at(r){const l=[...this.getKeys()];return this.getItem(l[r])}constructor(r,{expandedKeys:l}={}){this.keyMap=new Map,this.iterable=r,l=l||new Set;let s=p=>{if(this.keyMap.set(p.key,p),p.childNodes&&(p.type==="section"||l.has(p.key)))for(let b of p.childNodes)s(b)};for(let p of r)s(p);let f,m=0;for(let[p,b]of this.keyMap)f?(f.nextKey=p,b.prevKey=f.key):(this.firstKey=p,b.prevKey=void 0),b.type==="item"&&(b.index=m++),f=b,f.nextKey=void 0;this.lastKey=f==null?void 0:f.key}}function xL(n){let{onExpandedChange:r}=n,[l,s]=cs(n.expandedKeys?new Set(n.expandedKeys):void 0,n.defaultExpandedKeys?new Set(n.defaultExpandedKeys):new Set,r),f=N2(n),m=x.useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),p=bS(n,x.useCallback(E=>new bL(E,{expandedKeys:l}),[l]),null);return x.useEffect(()=>{f.focusedKey!=null&&!p.getItem(f.focusedKey)&&f.setFocusedKey(null)},[p,f.focusedKey]),{collection:p,expandedKeys:l,disabledKeys:m,toggleKey:E=>{s(kL(l,E))},setExpandedKeys:s,selectionManager:new O2(p,f)}}function kL(n,r){let l=new Set(n);return l.has(r)?l.delete(r):l.add(r),l}const Gc=x.createContext(null);function EL(n,r){let l=x.useContext(Gc);return l!=null&&l.isInvalid?x.createElement(_L,{...n,ref:r}):null}const CL=x.forwardRef(EL),_L=x.forwardRef((n,r)=>{let l=x.useContext(Gc),s=Yn({...n,defaultClassName:"react-aria-FieldError",defaultChildren:l.validationErrors.length===0?void 0:l.validationErrors.join(" "),values:l});return s.children==null?null:x.createElement(dL,{slot:"errorMessage",...s,ref:r})}),Uh=x.createContext(null),xp=x.createContext({});function SL(n,r){[n,r]=qn(n,r,xp);let{elementType:l="label",...s}=n;return x.createElement(l,{className:"react-aria-Label",...s,ref:r})}const Hh=F1(SL),Vh=x.createContext({});let wL=n=>{let{onHoverStart:r,onHoverChange:l,onHoverEnd:s,...f}=n;return f};function TL(n,r){[n,r]=qn(n,r,Vh);let{hoverProps:l,isHovered:s}=ol(n),{isFocused:f,isFocusVisible:m,focusProps:p}=Ql({isTextInput:!0,autoFocus:n.autoFocus}),b=!!n["aria-invalid"]&&n["aria-invalid"]!=="false",E=Yn({...n,values:{isHovered:s,isFocused:f,isFocusVisible:m,isDisabled:n.disabled||!1,isInvalid:b},defaultClassName:"react-aria-Input"});return x.createElement("input",{...ft(wL(n),p,l),...E,ref:r,"data-focused":f||void 0,"data-disabled":n.disabled||void 0,"data-hovered":s||void 0,"data-focus-visible":m||void 0,"data-invalid":b||void 0})}const B2=F1(TL);var I2={};I2={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var U2={};U2={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var H2={};H2={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var V2={};V2={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var K2={};K2={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var j2={};j2={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var W2={};W2={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var G2={};G2={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var Y2={};Y2={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var q2={};q2={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var Q2={};Q2={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var X2={};X2={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var Z2={};Z2={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var J2={};J2={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var eT={};eT={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var tT={};tT={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var nT={};nT={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var rT={};rT={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var iT={};iT={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var oT={};oT={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var lT={};lT={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var aT={};aT={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var uT={};uT={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var sT={};sT={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var cT={};cT={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var dT={};dT={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var fT={};fT={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var pT={};pT={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var vT={};vT={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var mT={};mT={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var hT={};hT={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var gT={};gT={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var yT={};yT={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var bT={};bT={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var xT={};xT={"ar-AE":I2,"bg-BG":U2,"cs-CZ":H2,"da-DK":V2,"de-DE":K2,"el-GR":j2,"en-US":W2,"es-ES":G2,"et-EE":Y2,"fi-FI":q2,"fr-FR":Q2,"he-IL":X2,"hr-HR":Z2,"hu-HU":J2,"it-IT":eT,"ja-JP":tT,"ko-KR":nT,"lt-LT":rT,"lv-LV":iT,"nb-NO":oT,"nl-NL":lT,"pl-PL":aT,"pt-BR":uT,"pt-PT":sT,"ro-RO":cT,"ru-RU":dT,"sk-SK":fT,"sl-SI":pT,"sr-SP":vT,"sv-SE":mT,"tr-TR":hT,"uk-UA":gT,"zh-CN":yT,"zh-TW":bT};const kT=x.createContext(null);function DL(n,r){let{render:l}=x.useContext(kT);return x.createElement(x.Fragment,null,l(n,r))}const $L=x.forwardRef(DL),I1=x.createContext({}),PL=x.createContext({});function LL(n,r){let[l,s]=qn(n,r,PL),f=P2("header",n,r);return f||x.createElement("header",{className:"react-aria-Header",...l,ref:s},l.children)}const ET=x.forwardRef(LL),U1=x.createContext({});function ML(n,r){let[l,s]=qn(n,r,U1),{elementType:f,orientation:m,style:p,className:b}=l,E=f||"hr";E==="hr"&&m==="vertical"&&(E="div");let{separatorProps:_}=G9({elementType:f,orientation:m}),T=P2("separator",n,r);return T||x.createElement(E,{...Zt(l),..._,style:p,className:b??"react-aria-Separator",ref:s,slot:l.slot||void 0})}const CT=x.forwardRef(ML),kp=x.createContext(null),Yc=x.createContext(null);function NL(n,r){[n,r]=qn(n,r,kp);let l=x.useContext(bp),s=x.useContext(Yc);return x.useContext(zh)?x.createElement(nL,n):s?l?null:x.createElement(_T,{state:s,props:n,listBoxRef:r}):x.createElement(AL,{props:n,listBoxRef:r})}function AL({props:n,listBoxRef:r}){let{portal:l,collection:s}=D2(n);n={...n,collection:s,children:null,items:null};let f=F2(n);return x.createElement(x.Fragment,null,l,x.createElement(_T,{state:f,props:n,listBoxRef:r}))}const OL=x.forwardRef(NL);function _T({state:n,props:r,listBoxRef:l}){let{dragAndDropHooks:s,layout:f="stack",orientation:m="vertical"}=r,{collection:p,selectionManager:b}=n,E=!!(s!=null&&s.useDraggableCollectionState),_=!!(s!=null&&s.useDroppableCollectionState),{direction:T}=Xa(),{disabledBehavior:w,disabledKeys:D}=b,$=Th({usage:"search",sensitivity:"base"}),A=x.useMemo(()=>r.keyboardDelegate||new Oh({collection:p,collator:$,ref:l,disabledKeys:D,disabledBehavior:w,layout:f,orientation:m,direction:T}),[p,$,l,w,D,m,T,r.keyboardDelegate,f]),{listBoxProps:F}=E9({...r,shouldSelectOnPressUp:E||r.shouldSelectOnPressUp,keyboardDelegate:A},n,l),I=Kc({items:p,children:_e=>{switch(_e.type){case"section":return x.createElement(FL,{section:_e});case"separator":return x.createElement(CT,_e.props);case"item":return x.createElement(ST,{item:_e});default:throw new Error("Unsupported node type in Menu: "+_e.type)}}}),re=x.useRef(E),q=x.useRef(_);x.useEffect(()=>{re.current!==E&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),q.current!==_&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[E,_]);let B,W,R,j=!1,ne=null,M=x.useRef(null);if(E&&s){B=s.useDraggableCollectionState({collection:p,selectionManager:b,preview:s.renderDragPreview?M:void 0}),s.useDraggableCollection({},B,l);let _e=s.DragPreview;ne=s.renderDragPreview?x.createElement(_e,{ref:M},s.renderDragPreview):null}if(_&&s){W=s.useDroppableCollectionState({collection:p,selectionManager:b});let _e=s.dropTargetDelegate||new s.ListDropTargetDelegate(p,l,{orientation:m,layout:f,direction:T});R=s.useDroppableCollection({keyboardDelegate:A,dropTargetDelegate:_e},W,l),j=W.isDropTarget({type:"root"})}let{focusProps:ue,isFocused:K,isFocusVisible:G}=Ql(),be={isDropTarget:j,isEmpty:n.collection.size===0,isFocused:K,isFocusVisible:G,layout:r.layout||"stack",state:n},Q=Yn({className:r.className,style:r.style,defaultClassName:"react-aria-ListBox",values:be}),oe=null;return n.collection.size===0&&r.renderEmptyState&&(oe=x.createElement("div",{role:"option",style:{display:"contents"}},r.renderEmptyState(be))),x.createElement(n1,null,x.createElement("div",{...Zt(r),...ft(F,ue,R==null?void 0:R.collectionProps),...Q,ref:l,slot:r.slot||void 0,onScroll:r.onScroll,"data-drop-target":j||void 0,"data-empty":n.collection.size===0||void 0,"data-focused":K||void 0,"data-focus-visible":G||void 0,"data-layout":r.layout||"stack","data-orientation":r.orientation||"vertical"},x.createElement(ei,{values:[[kp,r],[Yc,n],[I1,{dragAndDropHooks:s,dragState:B,dropState:W}],[U1,{elementType:"div"}],[kT,{render:IL}]]},I),oe,ne))}function FL({section:n,className:r,style:l}){var s,f;let m=x.useContext(Yc),[p,b]=jc();var E;let{headingProps:_,groupProps:T}=D9({heading:b,"aria-label":(E=n.props["aria-label"])!==null&&E!==void 0?E:void 0}),w=Kc({items:m.collection.getChildren(n.key),children:D=>{switch(D.type){case"header":return x.createElement(RL,{item:D,headingProps:_,headingRef:p});case"item":return x.createElement(ST,{item:D});default:throw new Error("Unsupported element type in Section: "+D.type)}}});return x.createElement("section",{...Zt(n.props),...T,className:r||((s=n.props)===null||s===void 0?void 0:s.className)||"react-aria-Section",style:l||((f=n.props)===null||f===void 0?void 0:f.style),ref:n.props.ref},w)}function RL({item:n,headingProps:r,headingRef:l}){let{ref:s,...f}=n.props;return x.createElement(ET,{...r,...f,ref:ih(l,s)},n.rendered)}function zL(n,r){return M1("item",n,r,n.children)}const BL=x.forwardRef(zL);function ST({item:n}){var r;let l=Qa(n.props.ref),s=x.useContext(Yc),{dragAndDropHooks:f,dragState:m,dropState:p}=x.useContext(I1),{optionProps:b,labelProps:E,descriptionProps:_,...T}=T9({key:n.key,"aria-label":(r=n.props)===null||r===void 0?void 0:r["aria-label"]},s,l),{hoverProps:w,isHovered:D}=ol({isDisabled:!T.allowsSelection&&!T.hasAction,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),$=null;m&&f&&($=f.useDraggableItem({key:n.key},m));let A=null;p&&f&&(A=f.useDroppableItem({target:{type:"item",key:n.key,dropPosition:"on"}},p,l));let F=n.props,I=m&&m.isDragging(n.key),re=Yn({...F,id:void 0,children:n.rendered,defaultClassName:"react-aria-ListBoxItem",values:{...T,isHovered:D,selectionMode:s.selectionManager.selectionMode,selectionBehavior:s.selectionManager.selectionBehavior,allowsDragging:!!m,isDragging:I,isDropTarget:A==null?void 0:A.isDropTarget}}),q=(f==null?void 0:f.renderDropIndicator)||(W=>x.createElement($L,{target:W}));x.useEffect(()=>{n.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[n.textValue]);let B=F.href?"a":"div";return x.createElement(x.Fragment,null,(f==null?void 0:f.useDropIndicator)&&q({type:"item",key:n.key,dropPosition:"before"}),x.createElement(B,{...ft(b,w,$==null?void 0:$.dragProps,A==null?void 0:A.dropProps),...re,ref:l,"data-allows-dragging":!!m||void 0,"data-selected":T.isSelected||void 0,"data-disabled":T.isDisabled||void 0,"data-hovered":D||void 0,"data-focused":T.isFocused||void 0,"data-focus-visible":T.isFocusVisible||void 0,"data-pressed":T.isPressed||void 0,"data-dragging":I||void 0,"data-drop-target":(A==null?void 0:A.isDropTarget)||void 0,"data-selection-mode":s.selectionManager.selectionMode==="none"?void 0:s.selectionManager.selectionMode},x.createElement(ei,{values:[[Zl,{slots:{label:E,description:_}}]]},re.children)),(f==null?void 0:f.useDropIndicator)&&s.collection.getKeyAfter(n.key)==null&&q({type:"item",key:n.key,dropPosition:"after"}))}function IL(n,r){r=Qa(r);let{dragAndDropHooks:l,dropState:s}=x.useContext(I1),{dropIndicatorProps:f,isHidden:m,isDropTarget:p}=l.useDropIndicator(n,s,r);return m?null:x.createElement(HL,{...n,dropIndicatorProps:f,isDropTarget:p,ref:r})}function UL(n,r){let{dropIndicatorProps:l,isDropTarget:s,...f}=n,m=Yn({...f,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:s}});return x.createElement("div",{...l,...m,role:"option",ref:r,"data-drop-target":s||void 0})}const HL=x.forwardRef(UL),H1=x.createContext({});function VL(n,r){[n,r]=qn(n,r,H1);let{isDisabled:l,isInvalid:s,onHoverStart:f,onHoverChange:m,onHoverEnd:p,...b}=n,{hoverProps:E,isHovered:_}=ol({onHoverStart:f,onHoverChange:m,onHoverEnd:p,isDisabled:l}),{isFocused:T,isFocusVisible:w,focusProps:D}=Ql({within:!0});l??(l=!!n["aria-disabled"]&&n["aria-disabled"]!=="false"),s??(s=!!n["aria-invalid"]&&n["aria-invalid"]!=="false");let $=Yn({...n,values:{isHovered:_,isFocusWithin:T,isFocusVisible:w,isDisabled:l,isInvalid:s},defaultClassName:"react-aria-Group"});var A,F;return x.createElement("div",{...ft(b,D,E),...$,ref:r,role:(A=n.role)!==null&&A!==void 0?A:"group",slot:(F=n.slot)!==null&&F!==void 0?F:void 0,"data-focus-within":T||void 0,"data-hovered":_||void 0,"data-focus-visible":w||void 0,"data-disabled":l||void 0,"data-invalid":s||void 0},$.children)}const V1=x.forwardRef(VL),KL=x.createContext({placement:"bottom"}),Jl=x.createContext(null);function jL(n,r){[n,r]=qn(n,r,Jl);let l=x.useContext(ll),s=Wc(n),f=n.isOpen!=null||n.defaultOpen!=null||!l?s:l,m=O1(r,f.isOpen)||n.isExiting||!1;if(x.useContext(bp)){let b=n.children;return typeof b=="function"&&(b=b({trigger:n.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),x.createElement(x.Fragment,null,b)}return f&&!f.isOpen&&!m?null:x.createElement(WL,{...n,triggerRef:n.triggerRef,state:f,popoverRef:r,isExiting:m})}const wT=x.forwardRef(jL);function WL({state:n,isExiting:r,UNSTABLE_portalContainer:l,...s}){let f=x.useRef(null),[m,p]=x.useState(0);jt(()=>{f.current&&n.isOpen&&p(f.current.getBoundingClientRect().width)},[n.isOpen,f]);var b;let{popoverProps:E,underlayProps:_,arrowProps:T,placement:w}=m9({...s,offset:(b=s.offset)!==null&&b!==void 0?b:8,arrowSize:m},n),D=s.popoverRef,$=A1(D,!!w)||s.isEntering||!1,A=Yn({...s,defaultClassName:"react-aria-Popover",values:{trigger:s.trigger||null,placement:w,isEntering:$,isExiting:r}}),F={...E.style,...A.style};return x.createElement(sS,{isExiting:r,portalContainer:l},!s.isNonModal&&n.isOpen&&x.createElement("div",{"data-testid":"underlay",..._,style:{position:"fixed",inset:0}}),x.createElement("div",{...ft(Zt(s),E),...A,ref:D,slot:s.slot||void 0,style:F,"data-trigger":s.trigger,"data-placement":w,"data-entering":$||void 0,"data-exiting":r||void 0},!s.isNonModal&&x.createElement(y1,{onDismiss:n.close}),x.createElement(KL.Provider,{value:{...T,placement:w,ref:f}},A.children),x.createElement(y1,{onDismiss:n.close})))}const TT=x.createContext(null),ll=x.createContext(null);function GL(n){let r=Wc(n),l=x.useRef(null),{triggerProps:s,overlayProps:f}=k_({type:"dialog"},r,l);return s.id=Or(),f["aria-labelledby"]=s.id,x.createElement(ei,{values:[[ll,r],[TT,f],[Jl,{trigger:"DialogTrigger",triggerRef:l}]]},x.createElement(Q3,{...s,ref:l,isPressed:r.isOpen},n.children))}function YL(n,r){let l=n["aria-labelledby"];[n,r]=qn(n,r,TT);let{dialogProps:s,titleProps:f}=U9({...n,"aria-labelledby":l},r),m=x.useContext(ll),p=n.children;typeof p=="function"&&(p=p({close:(m==null?void 0:m.close)||(()=>{})})),!s["aria-label"]&&!s["aria-labelledby"]&&(n["aria-labelledby"]?s["aria-labelledby"]=n["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));var b;return x.createElement("section",{...Zt(n),...s,ref:r,slot:n.slot||void 0,style:n.style,className:(b=n.className)!==null&&b!==void 0?b:"react-aria-Dialog"},x.createElement(ei,{values:[[m7,{slots:{[N1]:{},title:{...f,level:2}}}]]},p))}const qL=x.forwardRef(YL),QL=x.createContext(null),XL=x.createContext(null);function ZL(n,r){[n,r]=qn(n,r,QL);let{collection:l,document:s}=P1(),{children:f,isDisabled:m=!1,isInvalid:p=!1,isRequired:b=!1}=n;f=x.useMemo(()=>typeof f=="function"?f({isOpen:!1,isDisabled:m,isInvalid:p,isRequired:b,defaultChildren:null}):f,[f,m,p,b]);var E;return x.createElement(x.Fragment,null,x.createElement(M2,null,x.createElement(ei,{values:[[zh,s],[kp,{items:(E=n.items)!==null&&E!==void 0?E:n.defaultItems}]]},f)),x.createElement(JL,{props:n,collection:l,comboBoxRef:r}))}function JL({props:n,collection:r,comboBoxRef:l}){let{name:s,formValue:f="key",allowsCustomValue:m}=n;m&&(f="text");let{validationBehavior:p}=vs(Uh)||{};var b,E;let _=(E=(b=n.validationBehavior)!==null&&b!==void 0?b:p)!==null&&E!==void 0?E:"native",{contains:T}=VP({sensitivity:"base"}),w=pL({defaultFilter:n.defaultFilter||T,...n,items:n.items,children:void 0,collection:r,validationBehavior:_}),D=x.useRef(null),$=x.useRef(null),A=x.useRef(null),F=x.useRef(null),[I,re]=jc(),{buttonProps:q,inputProps:B,listBoxProps:W,labelProps:R,descriptionProps:j,errorMessageProps:ne,...M}=z9({...Bh(n),label:re,inputRef:$,buttonRef:D,listBoxRef:A,popoverRef:F,name:f==="text"?s:void 0,validationBehavior:_},w),[ue,K]=x.useState(null),G=x.useCallback(()=>{if($.current){var _e;let Ce=(_e=D.current)===null||_e===void 0?void 0:_e.getBoundingClientRect(),ye=$.current.getBoundingClientRect(),pe=Ce?Math.min(Ce.left,ye.left):ye.left,X=Ce?Math.max(Ce.right,ye.right):ye.right;K(X-pe+"px")}},[D,$,K]);ip({ref:$,onResize:G});let be=x.useMemo(()=>({isOpen:w.isOpen,isDisabled:n.isDisabled||!1,isInvalid:M.isInvalid||!1,isRequired:n.isRequired||!1}),[w.isOpen,n.isDisabled,M.isInvalid,n.isRequired]),Q=Yn({...n,values:be,defaultClassName:"react-aria-ComboBox"}),oe=Zt(n);return delete oe.id,x.createElement(ei,{values:[[XL,w],[xp,{...R,ref:I}],[Ih,{...q,ref:D,isPressed:w.isOpen}],[Vh,{...B,ref:$}],[ll,w],[Jl,{ref:F,triggerRef:$,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":ue}}],[kp,{...W,ref:A}],[Yc,w],[Zl,{slots:{description:j,errorMessage:ne}}],[H1,{isInvalid:M.isInvalid,isDisabled:n.isDisabled||!1}],[Gc,M]]},x.createElement("div",{...oe,...Q,ref:l,slot:n.slot||void 0,"data-focused":w.isFocused||void 0,"data-open":w.isOpen||void 0,"data-disabled":n.isDisabled||void 0,"data-invalid":M.isInvalid||void 0,"data-required":n.isRequired||void 0}),s&&f==="key"&&x.createElement("input",{type:"hidden",name:s,value:w.selectedKey}))}const eM=x.forwardRef(ZL),DT=x.createContext({}),K1=x.createContext(null),Ep=x.createContext(null),j1=x.createContext(null);function tM(n){let r=mL(n),l=x.useRef(null),{menuTriggerProps:s,menuProps:f}=_1({...n,type:"menu"},r,l),[m,p]=x.useState(null),b=x.useCallback(()=>{l.current&&p(l.current.offsetWidth+"px")},[l]);return ip({ref:l,onResize:b}),x.createElement(ei,{values:[[K1,f],[ll,r],[j1,r],[Jl,{trigger:"MenuTrigger",triggerRef:l,placement:"bottom start",style:{"--trigger-width":m}}]]},x.createElement(Q3,{...s,ref:l,isPressed:r.isOpen},n.children))}function $T(n){let{item:r,parentMenuRef:l}=n,s=x.useContext(Ep);return Kc({items:s.collection.getChildren(r.key),children:m=>{switch(m.type){case"item":return x.createElement(uM,{item:m,popover:r.rendered[1],parentMenuRef:l,delay:r.props.delay});default:throw new Error("Unsupported element type in SubmenuTrigger: "+r.type)}}})}function nM(n,r){[n,r]=qn(n,r,K1);let{portal:l,collection:s}=D2(n);return x.createElement(x.Fragment,null,s.size>0&&x.createElement(rM,{props:n,collection:s,menuRef:r}),l)}function rM({props:n,collection:r,menuRef:l}){let s=xL({...n,collection:r,children:void 0}),[f,m]=x.useState(null),{menuProps:p}=P9(n,s,l),b=x.useContext(j1),E=x.useContext(Jl),_=Kc({items:s.collection,children:F=>{switch(F.type){case"section":return x.createElement(oM,{section:F,parentMenuRef:l});case"separator":return x.createElement(CT,F.props);case"item":return x.createElement(PT,{item:F});case"submenutrigger":return x.createElement($T,{item:F,parentMenuRef:l});default:throw new Error("Unsupported node type in Menu: "+F.type)}}}),T=(E==null?void 0:E.trigger)==="SubmenuTrigger";oC({ref:l,onInteractOutside:F=>{b&&!(f!=null&&f.contains(F.target))&&b.close()},isDisabled:T||(b==null?void 0:b.expandedKeysStack.length)===0});let w=x.useRef(null),[D,$]=x.useState({left:0});x.useEffect(()=>{if(f&&w.current!==f&&D.left===0){w.current=f;let{left:F}=f.getBoundingClientRect();$({left:-1*F})}},[D,f]);var A;return x.createElement(n1,null,x.createElement("div",{...Zt(n),...p,ref:l,slot:n.slot||void 0,onScroll:n.onScroll,style:n.style,className:(A=n.className)!==null&&A!==void 0?A:"react-aria-Menu"},x.createElement(ei,{values:[[Ep,s],[U1,{elementType:"div"}],[Jl,{UNSTABLE_portalContainer:f||void 0}]]},_)),x.createElement("div",{ref:m,style:{width:"100vw",position:"absolute",top:0,...D}}))}const iM=x.forwardRef(nM);function oM({section:n,className:r,style:l,parentMenuRef:s,...f}){var m,p;let b=x.useContext(Ep),[E,_]=jc();var T;let{headingProps:w,groupProps:D}=L9({heading:_,"aria-label":(T=n["aria-label"])!==null&&T!==void 0?T:void 0}),$=Kc({items:b.collection.getChildren(n.key),children:A=>{switch(A.type){case"header":{let{ref:F,...I}=A.props;return x.createElement(ET,{...w,...I,ref:ih(E,F)},A.rendered)}case"item":return x.createElement(PT,{item:A});case"submenutrigger":return x.createElement($T,{item:A,parentMenuRef:s});default:throw new Error("Unsupported element type in Section: "+A.type)}}});return x.createElement("section",{...Zt(f),...D,className:r||((m=n.props)===null||m===void 0?void 0:m.className)||"react-aria-Section",style:l||((p=n.props)===null||p===void 0?void 0:p.style),ref:n.props.ref},$)}function lM(n,r){return M1("item",n,r,n.children)}const aM=x.forwardRef(lM);function PT({item:n}){var r;let l=x.useContext(Ep),s=Qa(n.props.ref),{menuItemProps:f,labelProps:m,descriptionProps:p,keyboardShortcutProps:b,...E}=iw({key:n.key,"aria-label":(r=n.props)===null||r===void 0?void 0:r["aria-label"]},l,s),_=n.props,{isFocusVisible:T,focusProps:w}=Ql(),{hoverProps:D,isHovered:$}=ol({isDisabled:E.isDisabled,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),A=Yn({..._,id:void 0,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...E,isHovered:$,isFocusVisible:T,selectionMode:l.selectionManager.selectionMode,selectionBehavior:l.selectionManager.selectionBehavior,hasSubmenu:!1,isOpen:!1}}),F=_.href?"a":"div";return x.createElement(F,{...ft(f,w,D),...A,ref:s,"data-disabled":E.isDisabled||void 0,"data-hovered":$||void 0,"data-focused":E.isFocused||void 0,"data-focus-visible":T||void 0,"data-pressed":E.isPressed||void 0,"data-selected":E.isSelected||void 0,"data-selection-mode":l.selectionManager.selectionMode==="none"?void 0:l.selectionManager.selectionMode},x.createElement(ei,{values:[[Zl,{slots:{label:m,description:p}}],[DT,b]]},A.children))}function uM({item:n,popover:r,parentMenuRef:l,delay:s}){let f=x.useContext(Ep),m=vs(Jl),p=Qa(n.props.ref),b=x.useContext(j1),E=hL({triggerKey:n.key},b),_=x.useRef(null),{submenuTriggerProps:T,submenuProps:w,popoverProps:D}=O9({node:n,parentMenuRef:l,submenuRef:_,delay:s},E,p),{menuItemProps:$,labelProps:A,descriptionProps:F,keyboardShortcutProps:I,...re}=iw({key:n.key,...T},f,p),q=n.props,{hoverProps:B,isHovered:W}=ol({isDisabled:re.isDisabled}),{isFocusVisible:R,focusProps:j}=Ql(),ne=Yn({...q,id:void 0,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...re,isHovered:W,isFocusVisible:R,selectionMode:f.selectionManager.selectionMode,selectionBehavior:f.selectionManager.selectionBehavior,hasSubmenu:!0,isOpen:E.isOpen}});return x.createElement(ei,{values:[[Zl,{slots:{label:A,description:F}}],[DT,I],[K1,w],[ll,E],[Jl,{ref:_,trigger:"SubmenuTrigger",triggerRef:p,placement:"end top",UNSTABLE_portalContainer:m.UNSTABLE_portalContainer||void 0,...D}]]},x.createElement("div",{...ft($,j,B),...ne,ref:p,"data-disabled":re.isDisabled||void 0,"data-hovered":W||void 0,"data-focused":re.isFocused||void 0,"data-focus-visible":R||void 0,"data-pressed":re.isPressed||void 0,"data-selected":re.isSelected||void 0,"data-selection-mode":f.selectionManager.selectionMode==="none"?void 0:f.selectionManager.selectionMode,"data-has-submenu":!0,"data-open":E.isOpen||void 0},ne.children),r)}const sM=x.createContext(null),W1=x.createContext(null);function cM(n,r){if(x.useContext(W1))return x.createElement(MT,{...n,modalRef:r},n.children);let{isDismissable:s,isKeyboardDismissDisabled:f,isOpen:m,defaultOpen:p,onOpenChange:b,children:E,isEntering:_,isExiting:T,UNSTABLE_portalContainer:w,shouldCloseOnInteractOutside:D,...$}=n;return x.createElement(LT,{isDismissable:s,isKeyboardDismissDisabled:f,isOpen:m,defaultOpen:p,onOpenChange:b,isEntering:_,isExiting:T,UNSTABLE_portalContainer:w,shouldCloseOnInteractOutside:D},x.createElement(MT,{...$,modalRef:r},E))}const dM=x.forwardRef(cM);function fM(n,r){[n,r]=qn(n,r,sM);let l=x.useContext(ll),s=Wc(n),f=n.isOpen!=null||n.defaultOpen!=null||!l?s:l,m=Qa(r),p=x.useRef(null),b=O1(m,f.isOpen),E=O1(p,f.isOpen),_=b||E||n.isExiting||!1,T=Hl();return!f.isOpen&&!_||T?null:x.createElement(pM,{...n,state:f,isExiting:_,overlayRef:m,modalRef:p})}const LT=x.forwardRef(fM);function pM({UNSTABLE_portalContainer:n,...r}){let l=r.modalRef,{state:s}=r,{modalProps:f,underlayProps:m}=y9(r,s,l),p=A1(r.overlayRef)||r.isEntering||!1,b=Yn({...r,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:p,isExiting:r.isExiting,state:s}}),E=V7(),_={...b.style,"--visual-viewport-height":E.height+"px"};return x.createElement(sS,{isExiting:r.isExiting,portalContainer:n},x.createElement("div",{...ft(Zt(r),m),...b,style:_,ref:r.overlayRef,"data-entering":p||void 0,"data-exiting":r.isExiting||void 0},x.createElement(ei,{values:[[W1,{modalProps:f,modalRef:l,isExiting:r.isExiting,isDismissable:r.isDismissable}],[ll,s]]},b.children)))}function MT(n){let{modalProps:r,modalRef:l,isExiting:s,isDismissable:f}=x.useContext(W1),m=x.useContext(ll),p=x.useMemo(()=>ih(n.modalRef,l),[n.modalRef,l]),b=Qa(p),E=A1(b),_=Yn({...n,defaultClassName:"react-aria-Modal",values:{isEntering:E,isExiting:s,state:m}});return x.createElement("div",{...ft(Zt(n),r),..._,ref:b,"data-entering":E||void 0,"data-exiting":s||void 0},f&&x.createElement(y1,{onDismiss:m.close}),_.children)}const vM=x.createContext(null),mM=x.createContext(null);function hM(n,r){[n,r]=qn(n,r,vM);let{validationBehavior:l}=vs(Uh)||{};var s,f;let m=(f=(s=n.validationBehavior)!==null&&s!==void 0?s:l)!==null&&f!==void 0?f:"native",{locale:p}=Xa(),b=gL({...n,locale:p,validationBehavior:m}),E=x.useRef(null),[_,T]=jc(),{labelProps:w,groupProps:D,inputProps:$,incrementButtonProps:A,decrementButtonProps:F,descriptionProps:I,errorMessageProps:re,...q}=V9({...Bh(n),label:T,validationBehavior:m},b,E),B=Yn({...n,values:{state:b,isDisabled:n.isDisabled||!1,isInvalid:q.isInvalid||!1},defaultClassName:"react-aria-NumberField"}),W=Zt(n);return delete W.id,x.createElement(ei,{values:[[mM,b],[H1,D],[Vh,{...$,ref:E}],[xp,{...w,ref:_}],[Ih,{slots:{increment:A,decrement:F}}],[Zl,{slots:{description:I,errorMessage:re}}],[Gc,q]]},x.createElement("div",{...W,...B,ref:r,slot:n.slot||void 0,"data-disabled":n.isDisabled||void 0,"data-invalid":q.isInvalid||void 0}),n.name&&x.createElement("input",{type:"hidden",name:n.name,value:isNaN(b.numberValue)?"":b.numberValue}))}const gM=x.forwardRef(hM);function yM(n){return n&&n.__esModule?n.default:n}const Kh=x.createContext(null),G1=x.createContext(null);function bM(n,r){[n,r]=qn(n,r,Kh);let{validationBehavior:l}=vs(Uh)||{};var s,f;let m=(f=(s=n.validationBehavior)!==null&&s!==void 0?s:l)!==null&&f!==void 0?f:"native",{collection:p,document:b}=P1(),E=yL({...n,collection:p,children:void 0,validationBehavior:m}),{isFocusVisible:_,focusProps:T}=Ql({within:!0}),w=x.useRef(null),[D,$]=jc(),{labelProps:A,triggerProps:F,valueProps:I,menuProps:re,descriptionProps:q,errorMessageProps:B,...W}=K9({...Bh(n),label:$,validationBehavior:m},E,w),[R,j]=x.useState(null),ne=x.useCallback(()=>{w.current&&j(w.current.offsetWidth+"px")},[w]);ip({ref:w,onResize:ne});let M=x.useMemo(()=>({isOpen:E.isOpen,isFocused:E.isFocused,isFocusVisible:_,isDisabled:n.isDisabled||!1,isInvalid:W.isInvalid||!1,isRequired:n.isRequired||!1}),[E.isOpen,E.isFocused,_,n.isDisabled,W.isInvalid,n.isRequired]),ue=Yn({...n,values:M,defaultClassName:"react-aria-Select"}),K=Zt(n);return delete K.id,x.createElement(x.Fragment,null,x.createElement(M2,null,x.createElement(ei,{values:[[Kh,n],[G1,E],[zh,b]]},ue.children)),x.createElement(ei,{values:[[Kh,n],[G1,E],[NT,I],[xp,{...A,ref:D,elementType:"span"}],[Ih,{...F,ref:w,isPressed:E.isOpen}],[ll,E],[Jl,{trigger:"Select",triggerRef:w,placement:"bottom start",style:{"--trigger-width":R}}],[kp,re],[Yc,E],[Zl,{slots:{description:q,errorMessage:B}}],[Gc,W]]},x.createElement("div",{...K,...ue,...T,ref:r,slot:n.slot||void 0,"data-focused":E.isFocused||void 0,"data-focus-visible":_||void 0,"data-open":E.isOpen||void 0,"data-disabled":n.isDisabled||void 0,"data-invalid":W.isInvalid||void 0,"data-required":n.isRequired||void 0}),x.createElement(W9,{state:E,triggerRef:w,label:$,name:n.name,isDisabled:n.isDisabled})))}const xM=x.forwardRef(bM),NT=x.createContext(null);function kM(n,r){var l,s;[n,r]=qn(n,r,NT);let f=x.useContext(G1),{placeholder:m}=vs(Kh),p=f.selectedKey!=null?f.collection.getItem(f.selectedKey):null,b=p==null?void 0:p.rendered;typeof b=="function"&&(b=b({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"}));let E=Bc(yM(xT),"react-aria-components");var _,T;let w=Yn({...n,defaultChildren:b||m||E.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:(_=(l=f.selectedItem)===null||l===void 0?void 0:l.value)!==null&&_!==void 0?_:null,selectedText:(T=(s=f.selectedItem)===null||s===void 0?void 0:s.textValue)!==null&&T!==void 0?T:null,isPlaceholder:!p}}),D=Zt(n);return x.createElement("span",{ref:r,...D,...w,"data-placeholder":!p||void 0},x.createElement(Zl.Provider,{value:void 0},w.children))}const EM=x.forwardRef(kM),AT=x.createContext({});let CM=n=>{let{onHoverStart:r,onHoverChange:l,onHoverEnd:s,...f}=n;return f};function _M(n,r){[n,r]=qn(n,r,AT);let{hoverProps:l,isHovered:s}=ol(n),{isFocused:f,isFocusVisible:m,focusProps:p}=Ql({isTextInput:!0,autoFocus:n.autoFocus}),b=!!n["aria-invalid"]&&n["aria-invalid"]!=="false",E=Yn({...n,values:{isHovered:s,isFocused:f,isFocusVisible:m,isDisabled:n.disabled||!1,isInvalid:b},defaultClassName:"react-aria-TextArea"});return x.createElement("textarea",{...ft(CM(n),p,l),...E,ref:r,"data-focused":f||void 0,"data-disabled":n.disabled||void 0,"data-hovered":s||void 0,"data-focus-visible":m||void 0,"data-invalid":b||void 0})}const SM=x.forwardRef(_M),wM=x.createContext(null);function TM(n,r){[n,r]=qn(n,r,wM);let{validationBehavior:l}=vs(Uh)||{};var s,f;let m=(f=(s=n.validationBehavior)!==null&&s!==void 0?s:l)!==null&&f!==void 0?f:"native",p=x.useRef(null),[b,E]=jc(),[_,T]=x.useState("input"),{labelProps:w,inputProps:D,descriptionProps:$,errorMessageProps:A,...F}=S1({...Bh(n),inputElementType:_,label:E,validationBehavior:m},p),I=x.useCallback(B=>{p.current=B,B&&T(B instanceof HTMLTextAreaElement?"textarea":"input")},[]),re=Yn({...n,values:{isDisabled:n.isDisabled||!1,isInvalid:F.isInvalid,isReadOnly:n.isReadOnly||!1,isRequired:n.isRequired||!1},defaultClassName:"react-aria-TextField"}),q=Zt(n);return delete q.id,x.createElement("div",{...q,...re,ref:r,slot:n.slot||void 0,"data-disabled":n.isDisabled||void 0,"data-invalid":F.isInvalid||void 0,"data-readonly":n.isReadOnly||void 0,"data-required":n.isRequired||void 0},x.createElement(ei,{values:[[xp,{...w,ref:b}],[Vh,{...D,ref:I}],[AT,{...D,ref:I}],[Zl,{slots:{description:$,errorMessage:A}}],[Gc,F]]},re.children))}const OT=x.forwardRef(TM),DM=wn({base:"ui-kit__useFocusRing-module__base"}.base);function qc(n={}){const r=s7(n),l=DM(),s={...r.focusProps,"data-focused":r.isFocused,"data-focus-visible":r.isFocusVisible};return{...r,focusProps:s,focusRingClassnames:l}}const Cp={base:"ui-kit__button-module__base",primary:"ui-kit__button-module__primary",secondary:"ui-kit__button-module__secondary",critical:"ui-kit__button-module__critical",tertiary:"ui-kit__button-module__tertiary"},$M=wn(Cp.base,{variants:{variant:{critical:Cp.critical,primary:Cp.primary,secondary:Cp.secondary,tertiary:Cp.tertiary}}});function _p({className:n,variant:r="secondary",...l}){const{focusRingClassnames:s,focusProps:f}=qc(),m=Tb(l,f);return me.jsx(R1,{className:Mt($M({className:n,variant:r}),s),...m})}_p.displayName="Button";const FT={base:"ui-kit__button-group-module__base",fit:"ui-kit__button-group-module__fit"};function PM({className:n,children:r,...l}){return me.jsx("div",{className:Mt(FT.base,n),...l,children:r})}function LM({children:n,expand:r=!0}){return x.cloneElement(n,{className:Mt(n.props.className,!r&&FT.fit)})}const MM={base:"ui-kit__divider-module__base"};function NM({className:n,...r}){return me.jsx("hr",{className:Mt(MM.base,n),...r})}const Sp={base:"ui-kit__icon-module__base",xs:"ui-kit__icon-module__xs",sm:"ui-kit__icon-module__sm",md:"ui-kit__icon-module__md",lg:"ui-kit__icon-module__lg"},AM=wn(Sp.base,{variants:{size:{xs:Sp.xs,sm:Sp.sm,md:Sp.md,lg:Sp.lg}}});function ms({className:n,icon:r,size:l="md",...s}){return me.jsx("span",{role:"img",className:AM({className:n,size:l}),...s,children:r&&me.jsx(r,{})})}ms.displayName="Icon";const kr={base:"ui-kit__input-module__base",error:"ui-kit__input-module__error",success:"ui-kit__input-module__success",warning:"ui-kit__input-module__warning",group:"ui-kit__input-module__group",disabled:"ui-kit__input-module__disabled",prefix:"ui-kit__input-module__prefix",input:"ui-kit__input-module__input",left:"ui-kit__input-module__left",right:"ui-kit__input-module__right",suffix:"ui-kit__input-module__suffix"},OM={h1:{variant:"heading-md",tone:"headline"},h2:{variant:"heading-md",tone:"headline"},h3:{variant:"heading-md",tone:"headline"},h4:{variant:"heading-md",tone:"headline"},h5:{variant:"heading-md",tone:"headline"},h6:{variant:"heading-md",tone:"headline"},dd:{variant:"body-md"},dt:{variant:"body-md"},legend:{variant:"body-md"},p:{variant:"body-md"},span:{variant:"body-md"},strong:{variant:"body-md-strong"}},FM="body-md",RM="default",zM=({as:n="span",variant:r,tone:l})=>{const s=OM[n]||{},f=r||s.variant||FM,m=l||s.tone||RM;return{variant:f,tone:m}},Er={base:"ui-kit__text-module__base","visually-hidden":"ui-kit__text-module__visually-hidden","heading-lg":"ui-kit__text-module__heading-lg","heading-md":"ui-kit__text-module__heading-md","body-md-strong":"ui-kit__text-module__body-md-strong","body-md":"ui-kit__text-module__body-md","body-sm":"ui-kit__text-module__body-sm",default:"ui-kit__text-module__default",headline:"ui-kit__text-module__headline",dark:"ui-kit__text-module__dark",light:"ui-kit__text-module__light",disabled:"ui-kit__text-module__disabled",info:"ui-kit__text-module__info",success:"ui-kit__text-module__success",warning:"ui-kit__text-module__warning",critical:"ui-kit__text-module__critical",error:"ui-kit__text-module__error"},BM=wn(Er.base,{variants:{tone:{default:Er.default,headline:Er.headline,dark:Er.dark,light:Er.light,disabled:Er.disabled,critical:Er.critical,error:Er.error,info:Er.info,success:Er.success,warning:Er.warning},variant:{"heading-lg":Er["heading-lg"],"heading-md":Er["heading-md"],"body-md-strong":Er["body-md-strong"],"body-md":Er["body-md"],"body-sm":Er["body-sm"]},visuallyHidden:{true:Er["visually-hidden"]}}}),Za=x.forwardRef(({className:n,as:r="span",variant:l,tone:s,color:f,children:m,visuallyHidden:p=!1,...b},E)=>{const{variant:_,tone:T}=zM({as:r,variant:l,tone:s}),w=f?{"--ui-kit-text-color":`var(--ui-kit-color-${f})`}:void 0;return x.createElement(r,{className:BM({className:n,variant:_,tone:T,visuallyHidden:p}),style:w,ref:E,...b},m)});Za.displayName="Text";const IM=wn(kr.base,{variants:{state:{error:kr.error,success:kr.success,warning:kr.warning}}}),UM=wn(kr.group,{variants:{disabled:{true:kr.disabled},state:{error:kr.error,success:kr.success,warning:kr.warning}}}),HM=wn(kr.input,{variants:{align:{left:kr.left,right:kr.right},state:{error:kr.error,success:kr.success,warning:kr.warning}}});function RT(n,r){return typeof n=="string"?me.jsx(Za,{className:r,variant:"body-md",tone:"disabled",children:n}):me.jsx("span",{className:r,children:n})}function jh({className:n,align:r="left",disabled:l,prefix:s,state:f,suffix:m,...p}){const{focusProps:b,focusRingClassnames:E}=qc({within:!0});return me.jsx("div",{...b,className:Mt(IM({className:n,state:f}),E),children:me.jsxs(V1,{className:UM({disabled:l,state:f}),children:[s&&RT(s,kr.prefix),me.jsx(B2,{...p,className:HM({align:r,state:f}),disabled:l}),m&&RT(m,kr.suffix)]})})}jh.displayName="Input";const wp={base:"ui-kit__label-module__base","label-group":"ui-kit__label-module__label-group"},VM=wn(wp.base,{variants:{required:{true:wp.required}}});function Wh({className:n,...r}){return me.jsxs(Hh,{className:VM({className:n}),...r,children:[r.children,r.required&&me.jsx(Za,{className:wp.required,tone:"error",children:"*"})]})}function Gh({children:n}){return me.jsx(Za,{className:wp.description,tone:"disabled",children:n})}function Yh(n){return me.jsx(V1,{className:wp["label-group"],...n})}Wh.displayName="Label",Gh.displayName="LabelDescription",Yh.displayName="LabelGroup";const KM=wn({base:"ui-kit__link-module__base"}.base);function zT({className:n,...r}){const{focusRingClassnames:l,focusProps:s}=qc(),f=Tb(r,s);return me.jsx(aL,{className:Mt(KM({className:n}),l),...f})}zT.displayName="Link";const Tp={base:"ui-kit__list-module__base",bullet:"ui-kit__list-module__bullet",numbered:"ui-kit__list-module__numbered",item:"ui-kit__list-module__item"},jM=wn(Tp.base,{variants:{decoration:{none:Tp.none,bullet:Tp.bullet,numbered:Tp.numbered}}}),WM=wn(Tp.item);function BT({decoration:n="none",...r}){const l=n!=="numbered"?"ul":"ol";return me.jsx(l,{...r,className:jM({decoration:n})})}function GM({...n}){return me.jsx("li",{...n,className:WM()})}BT.displayName="List";const qh={menu:"ui-kit__menu-module__menu",menuItem:"ui-kit__menu-module__menuItem",menuItemWrapper:"ui-kit__menu-module__menuItemWrapper"};function YM({className:n,...r}){return me.jsx(wT,{children:me.jsx(iM,{className:Mt(qh.menu,n),...r})})}function qM({className:n,isDisabled:r,title:l="",children:s,...f}){return me.jsx(aM,{className:Mt(qh.menuItem,n,r&&qh.disabled),...f,children:me.jsx("span",{className:qh.menuItemWrapper,title:l,children:s})})}const ea={entering:"ui-kit__modal-module__entering",fadeIn:"ui-kit__modal-module__fadeIn",exiting:"ui-kit__modal-module__exiting",fadeOut:"ui-kit__modal-module__fadeOut",dialog:"ui-kit__modal-module__dialog",modal:"ui-kit__modal-module__modal",modalContent:"ui-kit__modal-module__modalContent",modalOverlay:"ui-kit__modal-module__modalOverlay",title:"ui-kit__modal-module__title",description:"ui-kit__modal-module__description",footer:"ui-kit__modal-module__footer"};function QM({children:n,role:r="dialog",...l}){return me.jsx(LT,{...l,className:({isEntering:s,isExiting:f})=>Mt(ea.modalOverlay,{[ea.entering]:s,[ea.exiting]:f}),children:me.jsx(dM,{className:Mt(ea.modal),children:me.jsx(qL,{className:Mt(ea.dialog),role:r,children:n})})})}function XM({title:n,description:r,footer:l,className:s}){return me.jsxs("div",{className:Mt(ea.modalContent,s),children:[n&&me.jsx(Za,{as:"h1",className:ea.title,children:n}),r&&me.jsx(Za,{className:ea.description,children:r}),l&&me.jsx("div",{className:ea.footer,children:l})]})}function ZM(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function JM(n){if(n.__esModule)return n;var r=n.default;if(typeof r=="function"){var l=function s(){return this instanceof s?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};l.prototype=r.prototype}else l={};return Object.defineProperty(l,"__esModule",{value:!0}),Object.keys(n).forEach(function(s){var f=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(l,s,f.get?f:{enumerable:!0,get:function(){return n[s]}})}),l}var lo={},Y1={exports:{}},q1={exports:{}},Nt={};/** @license React v16.13.1
188
188
  * react-is.production.min.js
189
189
  *
190
190
  * Copyright (c) Facebook, Inc. and its affiliates.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helpscout/ui-kit-react",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "module": "./dist/ui-kit-react.js",
6
6
  "main": "./dist/ui-kit-react.umd.cjs",
@@ -67,9 +67,9 @@
67
67
  "vite-plugin-lib-inject-css": "^1.3.0",
68
68
  "vitest": "^1.4.0",
69
69
  "@apps-platform/eslint-config": "0.0.1",
70
- "@helpscout/apps-platform-theme-config": "0.0.1",
71
70
  "@helpscout/apps-platform-typescript-config": "0.0.1",
72
- "@helpscout/ui-kit-icons-react": "0.1.6"
71
+ "@helpscout/ui-kit-icons-react": "0.1.6",
72
+ "@helpscout/apps-platform-theme-config": "0.0.1"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "@helpscout/javascript-sdk": "^0.10.0",