@gouvfr-lasuite/ui-kit 0.11.0 → 0.14.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.
- package/dist/assets/fonts/Marianne/Marianne-Bold.woff +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Bold.woff2 +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Bold_Italic.woff +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Bold_Italic.woff2 +0 -0
- package/dist/assets/fonts/Marianne/Marianne-ExtraBold.woff +0 -0
- package/dist/assets/fonts/Marianne/Marianne-ExtraBold.woff2 +0 -0
- package/dist/assets/fonts/Marianne/Marianne-ExtraBold_Italic.woff +0 -0
- package/dist/assets/fonts/Marianne/Marianne-ExtraBold_Italic.woff2 +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Light.woff +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Light.woff2 +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Light_Italic.woff +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Light_Italic.woff2 +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Medium.woff +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Medium.woff2 +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Medium_Italic.woff +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Medium_Italic.woff2 +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Regular.woff +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Regular.woff2 +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Regular_Italic.woff +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Regular_Italic.woff2 +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Thin.woff +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Thin.woff2 +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Thin_Italic.woff +0 -0
- package/dist/assets/fonts/Marianne/Marianne-Thin_Italic.woff2 +0 -0
- package/dist/assets/fonts/Marianne/Marianne-font.css +89 -0
- package/dist/cunningham.ts +1 -0
- package/dist/index.cjs +22 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +14 -4
- package/dist/index.js +2596 -2591
- package/dist/index.js.map +1 -1
- package/dist/sass/fonts.scss +3 -0
- package/dist/style.css +1 -1
- package/package.json +7 -6
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),le=require("@openfun/cunningham-react"),Lt=require("react-dom");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),le=require("@openfun/cunningham-react"),Lt=require("react-dom");function Vc(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const D=Vc(u),jf=Vc(Lt);function Hf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var rr={exports:{}},$n={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var aa;function
|
|
9
|
+
*/var aa;function Vf(){if(aa)return $n;aa=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,o){var l=null;if(o!==void 0&&(l=""+o),i.key!==void 0&&(l=""+i.key),"key"in i){o={};for(var a in i)a!=="key"&&(o[a]=i[a])}else o=i;return i=o.ref,{$$typeof:t,type:r,key:l,ref:i!==void 0?i:null,props:o}}return $n.Fragment=e,$n.jsx=n,$n.jsxs=n,$n}var Pn={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var sa;function
|
|
17
|
+
*/var sa;function zf(){return sa||(sa=1,process.env.NODE_ENV!=="production"&&function(){function t(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===j?null:_.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case p:return"Fragment";case m:return"Profiler";case g:return"StrictMode";case $:return"Suspense";case x:return"SuspenseList";case H:return"Activity"}if(typeof _=="object")switch(typeof _.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case y:return"Portal";case S:return(_.displayName||"Context")+".Provider";case C:return(_._context.displayName||"Context")+".Consumer";case P:var F=_.render;return _=_.displayName,_||(_=F.displayName||F.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case E:return F=_.displayName||null,F!==null?F:t(_.type)||"Memo";case N:F=_._payload,_=_._init;try{return t(_(F))}catch{}}return null}function e(_){return""+_}function n(_){try{e(_);var F=!1}catch{F=!0}if(F){F=console;var T=F.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object";return T.call(F,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),e(_)}}function r(_){if(_===p)return"<>";if(typeof _=="object"&&_!==null&&_.$$typeof===N)return"<...>";try{var F=t(_);return F?"<"+F+">":"<...>"}catch{return"<...>"}}function i(){var _=w.A;return _===null?null:_.getOwner()}function o(){return Error("react-stack-top-frame")}function l(_){if(A.call(_,"key")){var F=Object.getOwnPropertyDescriptor(_,"key").get;if(F&&F.isReactWarning)return!1}return _.key!==void 0}function a(_,F){function T(){U||(U=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",F))}T.isReactWarning=!0,Object.defineProperty(_,"key",{get:T,configurable:!0})}function s(){var _=t(this.type);return I[_]||(I[_]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),_=this.props.ref,_!==void 0?_:null}function c(_,F,T,O,K,M,V,z){return T=M.ref,_={$$typeof:v,type:_,key:F,props:M,_owner:K},(T!==void 0?T:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:s}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(_,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:V}),Object.defineProperty(_,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:z}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function d(_,F,T,O,K,M,V,z){var W=F.children;if(W!==void 0)if(O)if(B(W)){for(O=0;O<W.length;O++)f(W[O]);Object.freeze&&Object.freeze(W)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(W);if(A.call(F,"key")){W=t(_);var q=Object.keys(F).filter(function(se){return se!=="key"});O=0<q.length?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}",Z[W+O]||(q=0<q.length?"{"+q.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,O,W,Y,W),G[W+O]=!0)}if(W=null,_!==void 0&&(n(_),W=""+_),l(F)&&(n(F.key),W=""+F.key),"key"in F){_={};for(var J in F)J!=="key"&&(_[J]=F[J])}else _=F;return W&&a(_,typeof T=="function"?T.displayName||T.name||"Unknown":T),c(T,W,M,K,i(),_,z,V)}function f(T){typeof T=="object"&&T!==null&&T.$$typeof===v&&T._store&&(T._store.validated=1)}var h=u,v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),S=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),j=Symbol.for("react.client.reference"),w=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,B=Array.isArray,L=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(T){return T()}};var U,I={},R=h["react-stack-bottom-frame"].bind(h,o)(),k=L(r(o)),G={};Pn.Fragment=p,Pn.jsx=function(T,F,_,O,K){var M=1e4>w.recentlyCreatedOwnerStacks++;return d(T,F,_,!1,O,K,M?Error("react-stack-top-frame"):R,M?L(r(T)):k)},Pn.jsxs=function(T,F,_,O,K){var M=1e4>w.recentlyCreatedOwnerStacks++;return d(T,F,_,!0,O,K,M?Error("react-stack-top-frame"):R,M?L(r(T)):k)}}()),Pn}var ca;function V2(){return ca||(ca=1,process.env.NODE_ENV==="production"?rr.exports=H2():rr.exports=z2()),rr.exports}var y=V2();const B2={alert:{close_aria_label:"Delete alert",expand_aria_label:"Expand alert",shrink_aria_label:"Shrink alert"},pagination:{goto_label:"Go to page",goto_label_aria:"Go to any page",next_aria:"Go to next page",previous_aria:"Go to previous page",goto_page_aria:"Go to page {page}",current_page_aria:"You are currently on page {page}"},datagrid:{empty:"This table is empty",empty_alt:"Illustration of an empty table",loader_aria:"Loading data",rows_selection_aria:"All rows selection",row_selection_aria:"Row selection"},provider:{test:"This is a test: {name}"},forms:{input:{password:{show_password:"Show password",hide_password:"Hide password"}},select:{toggle_button_aria_label:"Toggle dropdown",clear_button_aria_label:"Clear selection",clear_all_button_aria_label:"Clear all selections",menu_empty_placeholder:"No options available"},file_uploader:{delete_file_name:"Delete file {name}",delete_file:"Delete file",uploading:"Uploading...",caption:"Drag and drop or ",browse_files:"Browse files"},date_picker:{toggle_button_aria_label_open:"Open calendar",toggle_button_aria_label_close:"Close calendar",clear_button_aria_label:"Clear date",next_month_button_aria_label:"Next month",next_year_button_aria_label:"Next year",previous_month_button_aria_label:"Previous month",previous_year_button_aria_label:"Previous year",year_select_button_aria_label:"Select a year",month_select_button_aria_label:"Select a month"}},modals:{helpers:{delete_confirmation:{title:"Are you sure?",children:"Are you sure to delete this item?",cancel:"Cancel",delete:"Delete"},confirmation:{title:"Are you sure?",children:"Are you sure you want to do that?",cancel:"Cancel",yes:"Yes"},disclaimer:{title:"Disclaimer",children:"This is a disclaimer",ok:"Ok"}}}},U2={components:B2},W2={alert:{close_aria_label:"Supprimer l'alerte",expand_aria_label:"Ouvrir l'alerte",shrink_aria_label:"Fermer l'alerte"},pagination:{goto_label:"Aller à",goto_label_aria:"Aller à la page",next_aria:"Aller à la page suivante",previous_aria:"Aller à la page précédente",goto_page_aria:"Aller à la page {page}",current_page_aria:"Vous êtes actuellement sur la page {page}"},datagrid:{empty:"Ce tableau est vide",empty_alt:"Illustration d'un tableau vide",loader_aria:"Loading data"},provider:{test:"Ceci est un test : {name}"},forms:{select:{toggle_button_aria_label:"Ouvrir le menu",clear_button_aria_label:"Effacer la sélection",clear_all_button_aria_label:"Effacer toutes les sélections",menu_empty_placeholder:"Aucun choix disponible"},file_uploader:{delete_file_name:"Supprimer le fichier {name}",delete_file:"Supprimer le fichier",uploading:"Upload en cours ...",caption:"Glisser-déposer ou ",browse_files:"Parcourir"},date_picker:{toggle_button_aria_label_open:"Ouvrir le calendrier",toggle_button_aria_label_close:"Fermer le calendrier",clear_button_aria_label:"Effacer la date",next_month_button_aria_label:"Mois suivant",next_year_button_aria_label:"Année suivante",previous_month_button_aria_label:"Mois précédent",previous_year_button_aria_label:"Année précédente",year_select_button_aria_label:"Sélectionner une année",month_select_button_aria_label:"Sélectionner un mois"}},modals:{helpers:{delete_confirmation:{title:"Êtes-vous sûr ?",children:"Êtes-vous sûr de vouloir supprimer cet élément ?",cancel:"Annuler",delete:"Supprimer"},confirmation:{title:"Êtes-vous sûr ?",children:"Êtes-vous sûr de vouloir faire cela ?",cancel:"Annuler",yes:"Oui"},disclaimer:{title:"Avertissement",children:"Ceci est un avertissement",ok:"Ok"}}}},G2={components:W2},q2={share:{copyLink:"Copy link",ok:"Ok",shareButton:"Share",modalTitle:"Share folder",access:{delete:"Remove access"},cannot_view:{message:"You can view this item but you need additional access to view its members or modify the settings."},invitations:{title:"Pending invitations"},members:{title:"Members",title_plural:"Shared between {count} people",title_singular:"Shared between {count} person",load_more:"Show more "},item:{add:"Add"},search:{placeholder:"Search user",group_name:"Search user result"},user:{no_result:"No result",placeholder:"Search user"},linkSettings:{title:"Link settings",reach:{choices:{public:{title:"Public",description:"Anyone with the link can access the document"},restricted:{title:"Private",description:"Only users of the space can access the document"}}},role:{choices:{reader:{title:"Reader"},editor:{title:"Editor"}}}}},footer:{links:{legal:"Legal mentions",personal_data:"Personal data and cookies",accessibility:"Accessibility"},mention:"Unless otherwise stated, all content on this site is under the",license:"etalab-2.0 license"}},Y2={components:q2},Z2={share:{copyLink:"Copier le lien",ok:"Ok",modalTitle:"Partage",shareButton:"Partager",access:{delete:"Retirer l'accès"},cannot_view:{message:"Vous pouvez voir cet élément mais vous avez besoin d'un accès supplémentaire pour voir ses membres ou modifier les paramètres."},invitations:{title:"Invitations en attente"},members:{title_plural:"Partagé entre {count} personnes",title_singular:"Partagé entre {count} personne",load_more:"Afficher plus"},item:{add:"Ajouter"},search:{placeholder:"Rechercher un utilisateur",group_name:"Résultat de la recherche d'utilisateur"},user:{no_result:"Aucun résultat",placeholder:"Rechercher un utilisateur"},linkSettings:{title:"Paramètres du lien",reach:{choices:{public:{title:"Public",description:"N'importe qui avec le lien peut accéder au document"},restricted:{title:"Privé",description:"Seulement les utilisateurs de l'espace peuvent y avoir accès"}}},role:{choices:{reader:{title:"Lecture seule"},editor:{title:"Édition"}}}}},footer:{links:{legal:"Mentions Légales",personal_data:"Données personnelles et cookies",accessibility:"Accessibilité"},mention:"Sauf mention contraire, tout le contenu de ce site est sous",license:"licence etalab-2.0"}},X2={components:Z2};function Ri(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Ar(t,...e){if(!e.length)return t;const n=e.shift();if(Ri(t)&&Ri(n))for(const r in n)Ri(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Ar(t[r],n[r])):Object.assign(t,{[r]:n[r]});return Ar(t,...e)}function Vc(){return{"en-US":Ar(U2,Y2),"fr-FR":Ar(G2,X2)}}const J2=t=>{const e=Vc();return y.jsx(le.CunninghamProvider,{theme:"dsfr",customLocales:e,...t})},Bc=({disabled:t,onClick:e})=>y.jsx(le.Button,{disabled:t,className:"pro-connect-button",onClick:e}),ne=typeof document<"u"?u.useLayoutEffect:()=>{};function he(t){const e=u.useRef(null);return ne(()=>{e.current=t},[t]),u.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function Q2(t){let[e,n]=u.useState(t),r=u.useRef(null),i=he(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}e===l.value?i():n(l.value)});ne(()=>{r.current&&i()});let o=he(l=>{r.current=l(e),i()});return[e,o]}const Fr={prefix:String(Math.round(Math.random()*1e10)),current:0},Uc=u.createContext(Fr),eh=u.createContext(!1);let th=!!(typeof window<"u"&&window.document&&window.document.createElement),Mi=new WeakMap;function nh(t=!1){let e=u.useContext(Uc),n=u.useRef(null);if(n.current===null&&!t){var r,i;let o=(i=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let l=Mi.get(o);l==null?Mi.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,Mi.delete(o))}n.current=++e.current}return n.current}function rh(t){let e=u.useContext(Uc);e===Fr&&!th&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=nh(!!t),r=e===Fr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function ih(t){let e=u.useId(),[n]=u.useState(Qn()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Fr.prefix}`;return t||`${r}-${e}`}const oh=typeof u.useId=="function"?ih:rh;function lh(){return!1}function ah(){return!0}function sh(t){return()=>{}}function Qn(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(sh,lh,ah):u.useContext(eh)}let ch=!!(typeof window<"u"&&window.document&&window.document.createElement),an=new Map,Rn;typeof FinalizationRegistry<"u"&&(Rn=new FinalizationRegistry(t=>{an.delete(t)}));function Se(t){let[e,n]=u.useState(t),r=u.useRef(null),i=oh(e),o=u.useRef(null);if(Rn&&Rn.register(o,i),ch){const l=an.get(i);l&&!l.includes(r)?l.push(r):an.set(i,[r])}return ne(()=>{let l=i;return()=>{Rn&&Rn.unregister(o),an.delete(l)}},[i]),u.useEffect(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),i}function uh(t,e){if(t===e)return t;let n=an.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=an.get(e);return r?(r.forEach(i=>i.current=t),t):e}function xt(t=[]){let e=Se(),[n,r]=Q2(e),i=u.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return ne(i,[e,i,...t]),n}function Dt(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const oe=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},Me=t=>t&&"window"in t&&t.window===t?t:oe(t).defaultView||window;function dh(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function fh(t){return dh(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let hh=!1;function ni(){return hh}function ce(t,e){if(!ni())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let n=e;for(;n!==null;){if(n===t)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:fh(n)?n=n.host:n=n.parentNode}return!1}const Ce=(t=document)=>{var e;if(!ni())return t.activeElement;let n=t.activeElement;for(;n&&"shadowRoot"in n&&(!((e=n.shadowRoot)===null||e===void 0)&&e.activeElement);)n=n.shadowRoot.activeElement;return n};function ie(t){return ni()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}class ph{get currentNode(){return this._currentNode}set currentNode(e){if(!ce(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=e,i=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,a=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),r=i=l.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=n}get doc(){return this._doc}firstChild(){let e=this.currentNode,n=this.nextNode();return ce(e,n)?(n&&(this.currentNode=n),n):(this.currentNode=e,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(e):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(e)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let o=this.nextNode();return o&&(this.currentNode=o),o}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=e.previousNode();if(n){if(n.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(n)),o===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let l=this.lastChild();return l&&(this.currentNode=l),l}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const s=l.shadowRoot;if(s){const c=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(l);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(e.createTreeWalker(n,r,this._acceptNode));const o=n.shadowRoot;if(o){const l=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function vh(t,e,n,r){return ni()?new ph(t,e,n,r):t.createTreeWalker(e,n,r)}function Wc(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Wc(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Pe(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Wc(t))&&(r&&(r+=" "),r+=e);return r}function re(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=Dt(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=Pe(o,l):i==="id"&&o&&l?e.id=uh(o,l):e[i]=l!==void 0?l:o}}return e}function ul(...t){return t.length===1&&t[0]?t[0]:e=>{let n=!1;const r=t.map(i=>{const o=ua(i,e);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():ua(t[o],null)})}}}function ua(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}const gh=new Set(["id"]),mh=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),bh=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),yh=/^(data-.*)$/;function pe(t,e={}){let{labelable:n,isLink:r,propNames:i}=e,o={};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&(gh.has(l)||n&&mh.has(l)||r&&bh.has(l)||i!=null&&i.has(l)||yh.test(l))&&(o[l]=t[l]);return o}function ze(t){if(Ch())t.focus({preventScroll:!0});else{let e=Sh(t);t.focus(),wh(e)}}let ir=null;function Ch(){if(ir==null){ir=!1;try{document.createElement("div").focus({get preventScroll(){return ir=!0,!0}})}catch{}}return ir}function Sh(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function wh(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function ri(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function dl(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function et(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const ft=et(function(){return dl(/^Mac/i)}),xh=et(function(){return dl(/^iPhone/i)}),Gc=et(function(){return dl(/^iPad/i)||ft()&&navigator.maxTouchPoints>1}),ii=et(function(){return xh()||Gc()}),Eh=et(function(){return ft()||ii()}),fl=et(function(){return ri(/AppleWebKit/i)&&!qc()}),qc=et(function(){return ri(/Chrome/i)}),hl=et(function(){return ri(/Android/i)}),$h=et(function(){return ri(/Firefox/i)}),Ph=u.createContext({isNative:!0,open:_h,useHref:t=>t});function oi(){return u.useContext(Ph)}function _t(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}=e;$h()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(ft()?o=!0:l=!0);let c=fl()&&ft()&&!Gc()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s,bubbles:!0,cancelable:!0});_t.isOpening=n,ze(t),t.dispatchEvent(c),_t.isOpening=!1}_t.isOpening=!1;function Dh(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function _h(t,e){Dh(t,n=>_t(n,e))}function pl(t){let e=oi();var n;const r=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?r:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let st=new Map,Eo=new Set;function da(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let i=st.get(r.target);i||(i=new Set,st.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!t(r)||!r.target)return;let i=st.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),st.delete(r.target)),st.size===0)){for(let o of Eo)o();Eo.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?da():document.addEventListener("DOMContentLoaded",da));function Th(){for(const[t]of st)"isConnected"in t&&!t.isConnected&&st.delete(t)}function Yc(t){requestAnimationFrame(()=>{Th(),st.size===0?t():Eo.add(t)})}function li(){let t=u.useRef(new Map),e=u.useCallback((i,o,l,a)=>{let s=a!=null&&a.once?(...c)=>{t.current.delete(l),l(...c)}:l;t.current.set(l,{type:o,eventTarget:i,fn:s,options:a}),i.addEventListener(o,s,a)},[]),n=u.useCallback((i,o,l,a)=>{var s;let c=((s=t.current.get(l))===null||s===void 0?void 0:s.fn)||l;i.removeEventListener(o,c,a),t.current.delete(l)},[]),r=u.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function ai(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=Se(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}function tt(t){const e=u.useRef(null),n=u.useRef(void 0),r=u.useCallback(i=>{if(typeof t=="function"){const o=t,l=o(i);return()=>{typeof l=="function"?l():o(null)}}else if(t)return t.current=i,()=>{t.current=null}},[t]);return u.useMemo(()=>({get current(){return e.current},set current(i){e.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}function fa(t,e){const n=u.useRef(!0),r=u.useRef(null);ne(()=>(n.current=!0,()=>{n.current=!1}),[]),ne(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function Ih(){return typeof window.ResizeObserver<"u"}function $o(t){const{ref:e,box:n,onResize:r}=t;u.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(Ih()){const o=new window.ResizeObserver(l=>{l.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,n])}function Zc(t,e){ne(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Bn(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&e&&(r=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),r}function Xc(t,e){let n=t;for(Bn(n,e)&&(n=n.parentElement);n&&!Bn(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Oh(t,e){const n=[];for(;t&&t!==document.documentElement;)Bn(t,e)&&n.push(t),t=t.parentElement;return n}let kh=0;const Li=new Map;function Nh(t){let[e,n]=u.useState();return ne(()=>{if(!t)return;let r=Li.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${kh++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),r={refCount:0,element:o},Li.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Li.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function or(t,e,n,r){let i=he(n),o=n==null;u.useEffect(()=>{if(o||!t.current)return;let l=t.current;return l.addEventListener(e,i,r),()=>{l.removeEventListener(e,i,r)}},[t,e,r,o,i])}function Jc(t,e){let n=ha(t,e,"left"),r=ha(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,l=t.scrollLeft,a=t.scrollTop,{borderTopWidth:s,borderLeftWidth:c,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:h,scrollPaddingLeft:v}=getComputedStyle(t),b=l+parseInt(c,10),p=a+parseInt(s,10),g=b+t.clientWidth,m=p+t.clientHeight,C=parseInt(d,10)||0,S=parseInt(h,10)||0,P=parseInt(f,10)||0,$=parseInt(v,10)||0;n<=l+$?l=n-parseInt(c,10)-$:n+i>g-P&&(l+=n+i-g+P),r<=p+C?a=r-parseInt(s,10)-C:r+o>m-S&&(a+=r+o-m+S),t.scrollLeft=l,t.scrollTop=a}function ha(t,e,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;e.offsetParent&&(i+=e[r],e.offsetParent!==t);){if(e.offsetParent.contains(t)){i-=t[r];break}e=e.offsetParent}return i}function pa(t,e){if(t&&document.contains(t)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=Oh(t);for(let c of s)Jc(c,t)}else{var n;let{left:s,top:c}=t.getBoundingClientRect();t==null||(n=t.scrollIntoView)===null||n===void 0||n.call(t,{block:"nearest"});let{left:d,top:f}=t.getBoundingClientRect();if(Math.abs(s-d)>1||Math.abs(c-f)>1){var r,i,o;e==null||(i=e.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}}}function Po(t){return t.mozInputSource===0&&t.isTrusted?!0:hl()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Rh(t){return!hl()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Mh(t,e,n){let r=u.useRef(e),i=he(()=>{n&&n(r.current)});u.useEffect(()=>{var o;let l=t==null||(o=t.current)===null||o===void 0?void 0:o.form;return l==null||l.addEventListener("reset",i),()=>{l==null||l.removeEventListener("reset",i)}},[t,i])}function Lh(t){const e=u.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const Ah="react-aria-clear-focus",Fh="react-aria-focus";function en(t){return ft()?t.metaKey:t.ctrlKey}function Kh(t,e=!0){let[n,r]=u.useState(!0),i=n&&e;return ne(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),Qc(t,i,u.useCallback(()=>r(!1),[])),i}function jh(t,e){let[n,r]=u.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let i=n==="exiting";return Qc(t,i,u.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function Qc(t,e,n){ne(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.all(r.map(o=>o.finished)).then(()=>{i||Lt.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}const vl=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],Hh=vl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";vl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const zh=vl.join(':not([hidden]):not([tabindex="-1"]),');function eu(t){return t.matches(Hh)}function Vh(t){return t.matches(zh)}function si(t,e,n){let[r,i]=u.useState(t||e),o=u.useRef(t!==void 0),l=t!==void 0;u.useEffect(()=>{let c=o.current;c!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),o.current=l},[l]);let a=l?t:r,s=u.useCallback((c,...d)=>{let f=(h,...v)=>{n&&(Object.is(a,h)||n(h,...v)),l||(a=h)};typeof c=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((v,...b)=>{let p=c(l?a:v,...b);return f(p,...d),l?v:p})):(l||i(c),f(c,...d))},[l,a,n]);return[a,s]}function Do(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}const gl=Symbol("default");function pt({values:t,children:e}){for(let[n,r]of t)e=u.createElement(n.Provider,{value:r},e);return e}function De(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:a}=t;return u.useMemo(()=>{let s,c,d;return typeof e=="function"?s=e({...a,defaultClassName:i}):s=e,typeof n=="function"?c=n({...a,defaultStyle:l||{}}):c=n,typeof r=="function"?d=r({...a,defaultChildren:o}):r==null?d=o:d=r,{className:s??i,style:c||l?{...l,...c}:void 0,children:d??o,"data-rac":""}},[e,n,r,i,o,l,a])}function ci(t,e){let n=u.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||gl;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return n.slots[r]}return n}function nt(t,e,n){let r=ci(n,t.slot)||{},{ref:i,...o}=r,l=tt(u.useMemo(()=>ul(e,i),[e,i])),a=re(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?a.style=s=>{let c=typeof o.style=="function"?o.style(s):o.style,d={...s.defaultStyle,...c},f=typeof t.style=="function"?t.style({...s,defaultStyle:d}):t.style;return{...d,...f}}:a.style={...o.style,...t.style}),[a,l]}function ml(t=!0){let[e,n]=u.useState(t),r=u.useRef(!1),i=u.useCallback(o=>{r.current=!0,n(!!o)},[]);return ne(()=>{r.current||n(!1)},[]),[i,e]}function Bh(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}class bl{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new bl(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}constructor(e,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=e,this.key=n}}class yl{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(e),i=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!r}UNSTABLE_filter(e){let n=new yl,r=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let o=i.clone(),l=null;for(let a of this.getChildren(i.key))if(va(a,e,this,n)){let s=a.clone();l==null&&(o.firstChildKey=s.key),n.firstKey==null&&(n.firstKey=o.key),l&&l.parentKey===s.parentKey?(l.nextKey=s.key,s.prevKey=l.key):s.prevKey=null,s.nextKey=null,n.addNode(s),l=s}l&&(l.type!=="header"?(o.lastChildKey=l.key,r==null?o.prevKey=null:(r.type==="section"||r.type==="separator")&&(r.nextKey=o.key,o.prevKey=r.key),o.nextKey=null,r=o,n.addNode(o)):(n.firstKey===o.key&&(n.firstKey=null),n.removeNode(l.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,(r==null?void 0:r.type)==="section"&&(r.nextKey=o.key,o.prevKey=r.key,r=o,n.addNode(o))}else{let o=i.clone();va(o,e,this,n)&&(n.firstKey==null&&(n.firstKey=o.key),r!=null&&r.type!=="section"&&r.type!=="separator"&&r.parentKey===o.parentKey?(r.nextKey=o.key,o.prevKey=r.key):o.prevKey=null,o.nextKey=null,n.addNode(o),r=o)}if((r==null?void 0:r.type)==="separator"&&r.nextKey===null){let i;r.prevKey!=null&&(i=n.getItem(r.prevKey),i.nextKey=null),n.removeNode(r.key),r=i}return n.lastKey=(r==null?void 0:r.key)||null,n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}function va(t,e,n,r){if(t.type==="subdialogtrigger"||t.type==="submenutrigger"){let i=[...n.getChildren(t.key)][0];if(i&&e(i.textValue)){let o=i.clone();return r.addNode(o),!0}else return!1}else return t.type==="header"?!0:e(t.textValue)}class tu{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e)}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode,this.invalidateChildIndices(n),this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class sn extends tu{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof sn?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var e,n,r;let i=this.nextVisibleSibling,o=this.getMutableNode();o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof sn?this.parentNode.node.key:null;var l;o.prevKey=(l=(e=this.previousVisibleSibling)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var a;o.nextKey=(a=i==null?void 0:i.node.key)!==null&&a!==void 0?a:null,o.hasChildNodes=!!this.firstChild;var s;o.firstChildKey=(s=(n=this.firstVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null;var c;if(o.lastChildKey=(c=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&c!==void 0?c:null,(o.colSpan!=null||o.colIndex!=null)&&i){var d,f;let h=((d=o.colIndex)!==null&&d!==void 0?d:o.index)+((f=o.colSpan)!==null&&f!==void 0?f:1);if(h!==i.node.colIndex){let v=i.getMutableNode();v.colIndex=h}}}setProps(e,n,r,i){let o=this.getMutableNode(),{value:l,textValue:a,id:s,...c}=e;if(c.ref=n,o.props=c,o.rendered=r,o.render=i,o.value=l,o.textValue=a||(typeof c.children=="string"?c.children:"")||e["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}c.colSpan!=null&&(o.colSpan=c.colSpan),this.hasSetProps=!0,this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(n){let r=n==="none";if(e.isHidden!==r){var i,o;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((o=e.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let l=e.previousVisibleSibling,a=e.nextVisibleSibling;l&&e.ownerDocument.markDirty(l),a&&e.ownerDocument.markDirty(a),e.isHidden=r,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new bl(e,`react-aria-${++n.nodeId}`)}}class Uh extends tu{get isConnected(){return this.isMounted}createElement(e){return new sn(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden)return;let n=this.getMutableCollection();if(!n.getItem(e.node.key))for(let r of e)this.addNode(r);n.addNode(e.node)}removeNode(e){for(let r of e)this.removeNode(r);this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof sn&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof sn&&(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,n,r,i;this.nextCollection.commit((r=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&r!==void 0?r:null,(i=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function nu(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=u.useMemo(()=>new WeakMap,o);return u.useMemo(()=>{if(n&&typeof e=="function"){let c=[];for(let d of n){let f=l.get(d);if(!f){f=e(d);var a,s;let h=(s=(a=f.props.id)!==null&&a!==void 0?a:d.key)!==null&&s!==void 0?s:d.id;if(h==null)throw new Error("Could not determine key for item");r&&(h=r+":"+h),f=u.cloneElement(f,i?{key:h,id:h,value:d}:{key:h}),l.set(d,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,n,l,r,i])}if(typeof HTMLTemplateElement<"u"){const t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:t.call(this)}})}const Kr=u.createContext(!1);function Wh(t){if(u.useContext(Kr))return u.createElement(u.Fragment,null,t.children);let n=u.createElement(Kr.Provider,{value:!0},t.children);return u.createElement("template",{"data-react-aria-hidden":!0},n)}function Cl(t){let e=(n,r)=>u.useContext(Kr)?null:t(n,r);return e.displayName=t.displayName||t.name,u.forwardRef(e)}function Gh(){return u.useContext(Kr)}function Sl(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function ru(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function iu(t){let e=u.useRef({isFocused:!1,observer:null});ne(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=he(r=>{t==null||t(r)});return u.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r.target,o=l=>{if(e.current.isFocused=!1,i.disabled){let a=Sl(l);n(a)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let jr=!1;function ga(t){for(;t&&!eu(t);)t=t.parentElement;let e=Me(t),n=e.document.activeElement;if(!n||n===t)return;jr=!0;let r=!1,i=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},o=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),!t&&!r&&(r=!0,ze(n),s()))},l=d=>{(d.target===t||r)&&d.stopImmediatePropagation()},a=d=>{(d.target===t||r)&&(d.stopImmediatePropagation(),r||(r=!0,ze(n),s()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",a,!0),e.addEventListener("focus",l,!0);let s=()=>{cancelAnimationFrame(c),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",a,!0),e.removeEventListener("focus",l,!0),jr=!1,r=!1},c=requestAnimationFrame(s);return s}let rn="default",_o="",Er=new WeakMap;function ma(t){if(ii()){if(rn==="default"){const e=oe(t);_o=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}rn="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";Er.set(t,t.style[e]),t.style[e]="none"}}function Ai(t){if(ii()){if(rn!=="disabled")return;rn="restoring",setTimeout(()=>{Yc(()=>{if(rn==="restoring"){const e=oe(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=_o||""),_o="",rn="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Er.has(t)){let e=Er.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Er.delete(t)}}const wl=u.createContext({register:()=>{}});wl.displayName="PressResponderContext";function qh(t,e){return e.get?e.get.call(t):e.value}function ou(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function Yh(t,e){var n=ou(t,e,"get");return qh(t,n)}function Zh(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xh(t,e,n){Zh(t,e),e.set(t,n)}function Jh(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function ba(t,e,n){var r=ou(t,e,"set");return Jh(t,r,n),n}function Qh(t){let e=u.useContext(wl);if(e){let{register:n,...r}=e;t=re(r,t),n()}return Zc(e,t.ref),t}var lr=new WeakMap;class ar{continuePropagation(){ba(this,lr,!1)}get shouldStopPropagation(){return Yh(this,lr)}constructor(e,n,r,i){Xh(this,lr,{writable:!0,value:void 0}),ba(this,lr,!0);var o;let l=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const a=l==null?void 0:l.getBoundingClientRect();let s,c=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),a&&(d!=null&&f!=null?(s=d-a.left,c=f-a.top):(s=a.width/2,c=a.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=c}}const ya=Symbol("linkClicked"),Ca="react-aria-pressable-style",Sa="data-react-aria-pressable";function ui(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:a,isPressed:s,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...v}=Qh(t),[b,p]=u.useState(!1),g=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:m,removeAllGlobalListeners:C}=li(),S=he((w,A)=>{let B=g.current;if(a||B.didFirePressStart)return!1;let L=!0;if(B.isTriggeringEvent=!0,r){let U=new ar("pressstart",A,w);r(U),L=U.shouldStopPropagation}return n&&n(!0),B.isTriggeringEvent=!1,B.didFirePressStart=!0,p(!0),L}),P=he((w,A,B=!0)=>{let L=g.current;if(!L.didFirePressStart)return!1;L.didFirePressStart=!1,L.isTriggeringEvent=!0;let U=!0;if(i){let I=new ar("pressend",A,w);i(I),U=I.shouldStopPropagation}if(n&&n(!1),p(!1),e&&B&&!a){let I=new ar("press",A,w);e(I),U&&(U=I.shouldStopPropagation)}return L.isTriggeringEvent=!1,U}),$=he((w,A)=>{let B=g.current;if(a)return!1;if(o){B.isTriggeringEvent=!0;let L=new ar("pressup",A,w);return o(L),B.isTriggeringEvent=!1,L.shouldStopPropagation}return!0}),x=he(w=>{let A=g.current;if(A.isPressed&&A.target){A.didFirePressStart&&A.pointerType!=null&&P(vt(A.target,w),A.pointerType,!1),A.isPressed=!1,A.isOverTarget=!1,A.activePointerId=null,A.pointerType=null,C(),f||Ai(A.target);for(let B of A.disposables)B();A.disposables=[]}}),E=he(w=>{d&&x(w)}),N=he(w=>{l==null||l(w)}),H=he((w,A)=>{if(l){let B=new MouseEvent("click",w);ru(B,A),l(Sl(B))}}),j=u.useMemo(()=>{let w=g.current,A={onKeyDown(L){if(Fi(L.nativeEvent,L.currentTarget)&&ce(L.currentTarget,ie(L.nativeEvent))){var U;Ea(ie(L.nativeEvent),L.key)&&L.preventDefault();let I=!0;if(!w.isPressed&&!L.repeat){w.target=L.currentTarget,w.isPressed=!0,w.pointerType="keyboard",I=S(L,"keyboard");let R=L.currentTarget,k=G=>{Fi(G,R)&&!G.repeat&&ce(R,ie(G))&&w.target&&$(vt(w.target,G),"keyboard")};m(oe(L.currentTarget),"keyup",Dt(k,B),!0)}I&&L.stopPropagation(),L.metaKey&&ft()&&((U=w.metaKeyEvents)===null||U===void 0||U.set(L.key,L.nativeEvent))}else L.key==="Meta"&&(w.metaKeyEvents=new Map)},onClick(L){if(!(L&&!ce(L.currentTarget,ie(L.nativeEvent)))&&L&&L.button===0&&!w.isTriggeringEvent&&!_t.isOpening){let U=!0;if(a&&L.preventDefault(),!w.ignoreEmulatedMouseEvents&&!w.isPressed&&(w.pointerType==="virtual"||Po(L.nativeEvent))){let I=S(L,"virtual"),R=$(L,"virtual"),k=P(L,"virtual");N(L),U=I&&R&&k}else if(w.isPressed&&w.pointerType!=="keyboard"){let I=w.pointerType||L.nativeEvent.pointerType||"virtual",R=$(vt(L.currentTarget,L),I),k=P(vt(L.currentTarget,L),I,!0);U=R&&k,w.isOverTarget=!1,N(L),x(L)}w.ignoreEmulatedMouseEvents=!1,U&&L.stopPropagation()}}},B=L=>{var U;if(w.isPressed&&w.target&&Fi(L,w.target)){var I;Ea(ie(L),L.key)&&L.preventDefault();let k=ie(L),G=ce(w.target,ie(L));P(vt(w.target,L),"keyboard",G),G&&H(L,w.target),C(),L.key!=="Enter"&&xl(w.target)&&ce(w.target,k)&&!L[ya]&&(L[ya]=!0,_t(w.target,L,!1)),w.isPressed=!1,(I=w.metaKeyEvents)===null||I===void 0||I.delete(L.key)}else if(L.key==="Meta"&&(!((U=w.metaKeyEvents)===null||U===void 0)&&U.size)){var R;let k=w.metaKeyEvents;w.metaKeyEvents=void 0;for(let G of k.values())(R=w.target)===null||R===void 0||R.dispatchEvent(new KeyboardEvent("keyup",G))}};if(typeof PointerEvent<"u"){A.onPointerDown=I=>{if(I.button!==0||!ce(I.currentTarget,ie(I.nativeEvent)))return;if(Rh(I.nativeEvent)){w.pointerType="virtual";return}w.pointerType=I.pointerType;let R=!0;if(!w.isPressed){w.isPressed=!0,w.isOverTarget=!0,w.activePointerId=I.pointerId,w.target=I.currentTarget,f||ma(w.target),R=S(I,w.pointerType);let k=ie(I.nativeEvent);"releasePointerCapture"in k&&k.releasePointerCapture(I.pointerId),m(oe(I.currentTarget),"pointerup",L,!1),m(oe(I.currentTarget),"pointercancel",U,!1)}R&&I.stopPropagation()},A.onMouseDown=I=>{if(ce(I.currentTarget,ie(I.nativeEvent))&&I.button===0){if(c){let R=ga(I.target);R&&w.disposables.push(R)}I.stopPropagation()}},A.onPointerUp=I=>{!ce(I.currentTarget,ie(I.nativeEvent))||w.pointerType==="virtual"||I.button===0&&!w.isPressed&&$(I,w.pointerType||I.pointerType)},A.onPointerEnter=I=>{I.pointerId===w.activePointerId&&w.target&&!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,S(vt(w.target,I),w.pointerType))},A.onPointerLeave=I=>{I.pointerId===w.activePointerId&&w.target&&w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,P(vt(w.target,I),w.pointerType,!1),E(I))};let L=I=>{if(I.pointerId===w.activePointerId&&w.isPressed&&I.button===0&&w.target){if(ce(w.target,ie(I))&&w.pointerType!=null){let R=!1,k=setTimeout(()=>{w.isPressed&&w.target instanceof HTMLElement&&(R?x(I):(ze(w.target),w.target.click()))},80);m(I.currentTarget,"click",()=>R=!0,!0),w.disposables.push(()=>clearTimeout(k))}else x(I);w.isOverTarget=!1}},U=I=>{x(I)};A.onDragStart=I=>{ce(I.currentTarget,ie(I.nativeEvent))&&x(I)}}else if(process.env.NODE_ENV==="test"){A.onMouseDown=I=>{if(I.button!==0||!ce(I.currentTarget,ie(I.nativeEvent)))return;if(w.ignoreEmulatedMouseEvents){I.stopPropagation();return}if(w.isPressed=!0,w.isOverTarget=!0,w.target=I.currentTarget,w.pointerType=Po(I.nativeEvent)?"virtual":"mouse",Lt.flushSync(()=>S(I,w.pointerType))&&I.stopPropagation(),c){let k=ga(I.target);k&&w.disposables.push(k)}m(oe(I.currentTarget),"mouseup",L,!1)},A.onMouseEnter=I=>{if(!ce(I.currentTarget,ie(I.nativeEvent)))return;let R=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!0,R=S(I,w.pointerType)),R&&I.stopPropagation()},A.onMouseLeave=I=>{if(!ce(I.currentTarget,ie(I.nativeEvent)))return;let R=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!1,R=P(I,w.pointerType,!1),E(I)),R&&I.stopPropagation()},A.onMouseUp=I=>{ce(I.currentTarget,ie(I.nativeEvent))&&!w.ignoreEmulatedMouseEvents&&I.button===0&&!w.isPressed&&$(I,w.pointerType||"mouse")};let L=I=>{if(I.button===0){if(w.ignoreEmulatedMouseEvents){w.ignoreEmulatedMouseEvents=!1;return}w.target&&w.target.contains(I.target)&&w.pointerType!=null||x(I),w.isOverTarget=!1}};A.onTouchStart=I=>{if(!ce(I.currentTarget,ie(I.nativeEvent)))return;let R=ep(I.nativeEvent);if(!R)return;w.activePointerId=R.identifier,w.ignoreEmulatedMouseEvents=!0,w.isOverTarget=!0,w.isPressed=!0,w.target=I.currentTarget,w.pointerType="touch",f||ma(w.target),S(it(w.target,I),w.pointerType)&&I.stopPropagation(),m(Me(I.currentTarget),"scroll",U,!0)},A.onTouchMove=I=>{if(!ce(I.currentTarget,ie(I.nativeEvent)))return;if(!w.isPressed){I.stopPropagation();return}let R=wa(I.nativeEvent,w.activePointerId),k=!0;R&&xa(R,I.currentTarget)?!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,k=S(it(w.target,I),w.pointerType)):w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,k=P(it(w.target,I),w.pointerType,!1),E(it(w.target,I))),k&&I.stopPropagation()},A.onTouchEnd=I=>{if(!ce(I.currentTarget,ie(I.nativeEvent)))return;if(!w.isPressed){I.stopPropagation();return}let R=wa(I.nativeEvent,w.activePointerId),k=!0;R&&xa(R,I.currentTarget)&&w.pointerType!=null?($(it(w.target,I),w.pointerType),k=P(it(w.target,I),w.pointerType),H(I.nativeEvent,w.target)):w.isOverTarget&&w.pointerType!=null&&(k=P(it(w.target,I),w.pointerType,!1)),k&&I.stopPropagation(),w.isPressed=!1,w.activePointerId=null,w.isOverTarget=!1,w.ignoreEmulatedMouseEvents=!0,w.target&&!f&&Ai(w.target),C()},A.onTouchCancel=I=>{ce(I.currentTarget,ie(I.nativeEvent))&&(I.stopPropagation(),w.isPressed&&x(it(w.target,I)))};let U=I=>{w.isPressed&&ce(ie(I),w.target)&&x({currentTarget:w.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};A.onDragStart=I=>{ce(I.currentTarget,ie(I.nativeEvent))&&x(I)}}return A},[m,a,c,C,f,x,E,P,S,$,N,H]);return u.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const w=oe(h.current);if(!w||!w.head||w.getElementById(Ca))return;const A=w.createElement("style");A.id=Ca,A.textContent=`
|
|
22
|
+
<%s key={someKey} {...props} />`,O,W,q,W),Z[W+O]=!0)}if(W=null,T!==void 0&&(n(T),W=""+T),l(F)&&(n(F.key),W=""+F.key),"key"in F){T={};for(var J in F)J!=="key"&&(T[J]=F[J])}else T=F;return W&&a(T,typeof _=="function"?_.displayName||_.name||"Unknown":_),c(_,W,M,K,i(),T,V,z)}function f(_){typeof _=="object"&&_!==null&&_.$$typeof===v&&_._store&&(_._store.validated=1)}var h=u,v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),S=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),j=Symbol.for("react.client.reference"),w=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,B=Array.isArray,L=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(_){return _()}};var U,I={},R=h["react-stack-bottom-frame"].bind(h,o)(),k=L(r(o)),Z={};Pn.Fragment=p,Pn.jsx=function(_,F,T,O,K){var M=1e4>w.recentlyCreatedOwnerStacks++;return d(_,F,T,!1,O,K,M?Error("react-stack-top-frame"):R,M?L(r(_)):k)},Pn.jsxs=function(_,F,T,O,K){var M=1e4>w.recentlyCreatedOwnerStacks++;return d(_,F,T,!0,O,K,M?Error("react-stack-top-frame"):R,M?L(r(_)):k)}}()),Pn}var ca;function Bf(){return ca||(ca=1,process.env.NODE_ENV==="production"?rr.exports=Vf():rr.exports=zf()),rr.exports}var b=Bf();const Uf={share:{copyLink:"Copy link",ok:"Ok",shareButton:"Share",modalTitle:"Share folder",access:{delete:"Remove access"},cannot_view:{message:"You can view this item but you need additional access to view its members or modify the settings."},invitations:{title:"Pending invitations"},members:{title:"Members",title_plural:"Shared between {count} people",title_singular:"Shared between {count} person",load_more:"Show more "},item:{add:"Add"},search:{placeholder:"Search user",group_name:"Search user result"},user:{no_result:"No result",placeholder:"Search user"},linkSettings:{title:"Link settings",reach:{choices:{public:{title:"Public",description:"Anyone with the link can access the document"},restricted:{title:"Private",description:"Only users of the space can access the document"}}},role:{choices:{reader:{title:"Reader"},editor:{title:"Editor"}}}}},footer:{links:{legal:"Legal mentions",personal_data:"Personal data and cookies",accessibility:"Accessibility"},mention:"Unless otherwise stated, all content on this site is under the",license:"etalab-2.0 license"}},Wf={components:Uf},Zf={share:{copyLink:"Copier le lien",ok:"Ok",modalTitle:"Partage",shareButton:"Partager",access:{delete:"Retirer l'accès"},cannot_view:{message:"Vous pouvez voir cet élément mais vous avez besoin d'un accès supplémentaire pour voir ses membres ou modifier les paramètres."},invitations:{title:"Invitations en attente"},members:{title_plural:"Partagé entre {count} personnes",title_singular:"Partagé entre {count} personne",load_more:"Afficher plus"},item:{add:"Ajouter"},search:{placeholder:"Rechercher un utilisateur",group_name:"Résultat de la recherche d'utilisateur"},user:{no_result:"Aucun résultat",placeholder:"Rechercher un utilisateur"},linkSettings:{title:"Paramètres du lien",reach:{choices:{public:{title:"Public",description:"N'importe qui avec le lien peut accéder au document"},restricted:{title:"Privé",description:"Seulement les utilisateurs de l'espace peuvent y avoir accès"}}},role:{choices:{reader:{title:"Lecture seule"},editor:{title:"Édition"}}}}},footer:{links:{legal:"Mentions Légales",personal_data:"Données personnelles et cookies",accessibility:"Accessibilité"},mention:"Sauf mention contraire, tout le contenu de ce site est sous",license:"licence etalab-2.0"}},Gf={components:Zf};function Ri(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Ar(t,...e){if(!e.length)return t;const n=e.shift();if(Ri(t)&&Ri(n))for(const r in n)Ri(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Ar(t[r],n[r])):Object.assign(t,{[r]:n[r]});return Ar(t,...e)}function zc(){return{"en-US":Ar(le.enUS,Wf),"fr-FR":Ar(le.frFR,Gf)}}const qf=t=>{const e=zc();return b.jsx(le.CunninghamProvider,{theme:"dsfr",customLocales:e,...t})},Yf="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='192'%20height='48'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='m60.986%2021.454%201.156-1.076c.833%201.059%201.819%201.605%202.94%201.605%201.293%200%202.04-.82%202.04-1.912%200-2.56-5.626-2.253-5.626-6.059%200-1.74%201.428-3.209%203.45-3.209%201.684%200%202.908.768%203.792%201.946l-1.19%201.041c-.697-1.007-1.547-1.553-2.584-1.553-1.105%200-1.836.751-1.836%201.74%200%202.578%205.627%202.254%205.627%206.077%200%202.031-1.581%203.363-3.655%203.363-1.768%200-3.077-.666-4.114-1.963Zm10.817-5.735H70.46l1.445-4.574h1.649l-1.751%204.574Zm4.818-3.465c-.56%200-1.02-.46-1.02-1.024a1.026%201.026%200%200%201%201.02-1.007c.56%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.73%2010.838V14.49h1.444v8.602H75.89Zm3.767-4.3c0-2.51%201.717-4.643%204.403-4.643%201.24%200%202.26.46%203.043%201.297V10.29h1.445v12.801h-1.445v-.955c-.782.836-1.802%201.297-3.043%201.297-2.686%200-4.403-2.134-4.403-4.643Zm1.53%200c0%201.825%201.224%203.276%203.043%203.276%201.19%200%202.21-.58%202.873-1.604v-3.345c-.68-1.042-1.7-1.605-2.873-1.605-1.82%200-3.043%201.45-3.043%203.277Zm18.023%202.884c-.8%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921H92.36v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.07.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v.973c.697-.768%201.581-1.314%202.856-1.314%201.921%200%203.349%201.297%203.349%203.738v5.205h-1.462v-5.154c0-1.536-.85-2.424-2.176-2.424-1.241%200-2.023.717-2.567%201.622v5.956h-1.445Zm11.052-2.884V15.82h-1.615V14.49h1.615v-2.15h1.462v2.15h2.975v1.331h-2.975v4.387c0%201.348.68%201.724%201.717%201.724.561%200%20.952-.069%201.275-.205v1.297c-.408.17-.867.239-1.479.239-1.904%200-2.975-.956-2.975-3.055Zm7.377-7.954c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm3.377-8.602h1.615v-1.058c0-1.844%201.207-3.14%203.043-3.14.952%200%201.7.34%202.21.835l-.901%201.059a1.638%201.638%200%200%200-1.292-.58c-.935%200-1.598.682-1.598%201.792v1.092h2.975v1.331h-2.975v7.271h-1.462v-7.27h-1.615V14.49Zm8.543-2.236c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm12.115-1.416c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v1.075c.629-.75%201.411-1.246%202.499-1.246.272%200%20.527.034.731.103v1.502a3.1%203.1%200%200%200-.85-.12c-1.122%200-1.853.58-2.38%201.451v5.837h-1.445Zm13.685.342c-1.683%200-2.822-.956-2.822-2.458%200-1.331.986-2.287%202.822-2.577l2.873-.478v-.598c0-1.195-.85-1.877-2.057-1.877-1.003%200-1.836.444-2.329%201.195l-1.088-.837c.748-1.024%201.955-1.655%203.451-1.655%202.176%200%203.468%201.28%203.468%203.174v5.77h-1.445V22c-.646.905-1.717%201.434-2.873%201.434Zm-1.377-2.51c0%20.735.629%201.298%201.615%201.298%201.139%200%202.04-.598%202.635-1.588v-1.638l-2.533.444c-1.19.188-1.717.734-1.717%201.485Zm7.252-6.434h1.564l2.737%207.083%202.737-7.083h1.564l-3.349%208.602h-1.904l-3.349-8.602Zm17.856%207.186c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm10.185%206.673a2.891%202.891%200%200%200%202.431-1.28l1.156.888c-.799%201.075-2.04%201.758-3.604%201.758-2.839%200-4.658-2.134-4.658-4.643s1.819-4.642%204.658-4.642c1.547%200%202.805.7%203.604%201.758l-1.156.887a2.917%202.917%200%200%200-2.448-1.28c-1.836%200-3.145%201.45-3.145%203.277%200%201.843%201.309%203.277%203.162%203.277ZM61.854%2040.161V27.51h4.158c2.772%200%204.464%201.428%204.464%203.777%200%202.331-1.692%203.76-4.464%203.76H64.41v5.114h-2.556Zm4.266-10.464h-1.71v3.162h1.71c1.08%200%201.728-.578%201.728-1.608%200-.958-.648-1.554-1.728-1.554Zm6.129%2010.464v-9.109h2.286v.904c.594-.615%201.368-1.084%202.394-1.084.306%200%20.576.054.792.126v2.404a3.922%203.922%200%200%200-1.008-.127c-1.116%200-1.836.614-2.178%201.175v5.71h-2.286Zm11.386-9.47c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm13.172-.235c1.44%200%202.574-.704%203.294-1.735l2.016%201.555c-1.152%201.572-3.024%202.584-5.31%202.584-3.978%200-6.696-3.072-6.696-6.687%200-3.614%202.718-6.686%206.696-6.686%202.286%200%204.158%201.03%205.31%202.566l-2.016%201.572c-.72-1.03-1.854-1.735-3.294-1.735-2.376%200-4.068%201.862-4.068%204.283%200%202.422%201.692%204.283%204.068%204.283Zm11.366-7.427c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm7.018%201.808v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm11.091%200v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm19.444-1.482c-.846%201.138-2.25%201.843-3.96%201.843-3.222%200-5.04-2.259-5.04-4.916%200-2.692%201.692-4.915%204.662-4.915%202.52%200%204.176%201.698%204.176%204.084%200%20.506-.072.994-.144%201.301h-6.354c.144%201.5%201.188%202.386%202.736%202.386.99%200%201.8-.434%202.286-1.085l1.638%201.302Zm-4.338-6.073c-1.116%200-1.872.543-2.178%201.735h4.086c-.036-.903-.702-1.735-1.908-1.735Zm10.696%205.747c.882%200%201.584-.433%202.016-1.066l1.818%201.392c-.846%201.12-2.178%201.843-3.834%201.843-3.132%200-5.004-2.259-5.004-4.916%200-2.656%201.872-4.915%205.004-4.915%201.656%200%202.988.723%203.834%201.843l-1.818%201.392c-.432-.633-1.116-1.067-2.052-1.067-1.494%200-2.592%201.157-2.592%202.747%200%201.609%201.098%202.747%202.628%202.747Zm6.204-1.518V33.15h-1.692v-2.097h1.692v-2.277h2.304v2.277h2.772v2.097h-2.772v3.686c0%201.012.54%201.41%201.44%201.41.63%200%201.044-.072%201.35-.199v2.006c-.45.199-.99.29-1.746.29-2.268%200-3.348-1.284-3.348-3.507Z'/%3e%3cpath%20fill='%23000091'%20d='M37.992%2014.155%2022.998%205.442%208.004%2014.237a.607.607%200%200%200-.306.527V31.78a.67.67%200%200%200%20.306.526l14.992%208.635L37.99%2032.2a.667.667%200%200%200%20.306-.526v-16.99a.608.608%200%200%200-.304-.53Z'/%3e%3cpath%20fill='%23FCC63A'%20d='m17.641%2014.656-5.029%208.663-4.557-9.212%205.39-3.125%204.49%203.173-.294.502Zm20.656%2017.049V14.679a.604.604%200%200%200-.306-.526L22.998%205.442'/%3e%3cpath%20fill='%230063CB'%20d='M7.7%2031.705%2023%205.442v35.504l-14.996-8.64a.667.667%200%200%201-.306-.526V14.765l.002%2016.94Zm24.67-20.819%205.457%203.168-4.489%209.187-5.387-9.273%204.418-3.083v.001Z'/%3e%3cpath%20fill='%23fff'%20d='M42.606%2011.348%2023.416.284a.93.93%200%200%200-.832%200L3.394%2011.348a.89.89%200%200%200-.394.698v22.088a.891.891%200%200%200%20.394.703l19.189%2011.064a.929.929%200%200%200%20.832%200l19.191-11.064a.888.888%200%200%200%20.394-.703V12.046a.893.893%200%200%200-.394-.698ZM13.789%2029.176h.079c-.042%200-.079.007-.079.05%200%20.1.151%200%20.2.1a.91.91%200%200%200-.629.277c0%20.05.1.05.151.05-.075.1-.226.05-.277.153a.176.176%200%200%200%20.1.05c-.05%200-.1%200-.1.05v.153c-.126%200-.176.1-.277.15.2.153.327%200%20.528%200-.528.201-.956.482-1.484.633-.1%200%200%20.15-.1.15.151.101.227-.05.377-.05-.654.38-1.333.703-2.037%201.138a.353.353%200%200%200-.1.201h-.2c-.1.05-.05.177-.151.278.226.15.5-.2.654%200%20.05%200-.1.05-.2.05-.05%200-.05.1-.1.1H9.99c-.1.076-.2.127-.2.278a.22.22%200%200%200-.226.1%209%209%200%200%200%203.144-.58%207.687%207.687%200%200%200%202.088-1.566.177.177%200%200%201%20.05.1c-.147.439-.43.82-.806%201.084-.277.153-.478.38-.7.481a4.05%204.05%200%200%200-.428.277c-.632.198-1.281.337-1.939.414l-.305.044c-.225.033-.449.07-.671.109l-1.993-1.143a.648.648%200%200%201-.288-.413.568.568%200%200%200%20.094-.063.267.267%200%200%200-.113-.071v-.653a12.74%2012.74%200%200%200%203.038-.945%208.731%208.731%200%200%200-3.037-1.349v-1.52c.555.09%201.103.222%201.639.393a6.41%206.41%200%200%201%201.182.58c.147.14.307.268.478.379a.908.908%200%200%200%20.8.05h.33a3.954%203.954%200%200%200%201.937-.909c0%20.05.05.05.1.05-.078.4-.223.785-.428%201.137.003.05-.048.152.053.203Zm2.817%203.584c.251-.1.4-.277.629-.378-.05.05-.05.151-.1.201a3.71%203.71%200%200%200-.528.402%2016%2016%200%200%200-1.585%201.616c-.252.302-.528.58-.8.859-.096.09-.2.172-.31.246l-2.527-1.456c.36.03.721.013%201.076-.053.294-.084.58-.193.855-.329v.1c.7-.277%201.232-.909%201.937-1.136.025%200%20.126.1.226.05a1.885%201.885%200%200%201%201.509-.702c0%20.05%200%20.1.05.1h.025c-.151.127-.327.251-.5.378-.057.053-.007.102.043.102Zm-8.908-6.188v-.187a5.795%205.795%200%200%201%201.588-.188c.158-.026.32-.026.478%200a5.84%205.84%200%200%200-2.066.375Zm30.6%205.109a.67.67%200%200%201-.306.526L27.913%2038.08a32.214%2032.214%200%200%201-3.408-1.189%202.847%202.847%200%200%201-.05-2.254c.08-.309.198-.607.352-.886.025-.025.05-.05.05-.076a.025.025%200%200%200%20.025-.025%204.33%204.33%200%200%201%20.377-.558l.015-.015.02-.02.015-.016c0-.025.025-.05.05-.076.025-.052.075-.077.1-.127a3.78%203.78%200%200%201%20.579-.502c.213-.077.431-.136.654-.178.811.06%201.617.171%202.415.33a.753.753%200%200%201%20.277.1c.301.06.612.041.905-.05a1.135%201.135%200%200%200%20.855-.709%201.22%201.22%200%200%200%20.05-1.064c-.178-.276-.013-.438.181-.592l.068-.055c.086-.06.164-.134.231-.216.126-.254-.1-.402-.151-.633-.05-.1-.226-.05-.327-.2.352-.152.855-.433.629-.861-.151-.228-.377-.633-.1-.86.352-.201.855-.152%201.006-.483a1.146%201.146%200%200%200-.292-1.088l-.075-.108a4.776%204.776%200%200%201-.211-.322%206.934%206.934%200%200%200-.528-.76%204.32%204.32%200%200%201-.528-1.014c-.151-.378.05-.708.05-1.087a6.397%206.397%200%200%200-.327-2.153c-.126-.354-.176-.734-.327-1.064a1.127%201.127%200%200%200-.226-.582.376.376%200%200%201%200-.329c.205-.145.399-.306.579-.482a.571.571%200%200%200-.2-.707c-.327-.152-.3.329-.528.43h-.151c-.05-.126.05-.177.151-.278%200-.05%200-.151-.05-.151-.2%200-.377-.052-.428-.152a3.956%203.956%200%200%200-1.861-1.291c.188.058.382.091.579.1.338.072.69.036%201.006-.1.227-.077.277-.482.377-.709a.806.806%200%200%200-.151-.634%202.192%202.192%200%200%200-.906-.759%209.094%209.094%200%200%201-.679-.354.952.952%200%200%200-.251-.127c-2.965-1.49-9.069-.2-9.534%200h-.009a8.23%208.23%200%200%200-1.249.477%203.92%203.92%200%200%200-2.365%202.475%203.84%203.84%200%200%200-1.333%201.515c-.428.804-1.056%201.515-.956%202.424.1.783.277%201.49.428%202.298.043.273.11.542.2.803.1.278%200%20.632.151.859.075.15.025.328.227.43v.2c.05.05.05.1.151.1v.202c.435.424.807.91%201.107%201.44.1.276-.478.15-.7.05a5.983%205.983%200%200%201-1.132-.96.177.177%200%200%200-.051.1c.2.354.906.783.528%201.01-.2.1-.428-.151-.629.05-.05.077%200%20.178%200%20.278-.277-.2-.578-.1-.855-.2-.2-.05-.252-.429-.478-.429a15.135%2015.135%200%200%200-1.811-.328%2015.1%2015.1%200%200%200-1.739-.161V14.766a.61.61%200%200%201%20.306-.526l14.987-8.796%2014.994%208.712a.606.606%200%200%201%20.306.526V31.68Zm-7.954-8.295a.325.325%200%200%201-.282.15c-.1.085-.194.176-.282.274.1%200%200%20.15.1.15-.205.224.077.697-.205.796-.37.1-.758.1-1.127%200a.721.721%200%200%201%20.167-.016h.085a.38.38%200%200%200%20.337-.133v-.2c0-.05-.051-.05-.1-.05a.16.16%200%200%201-.1.05.225.225%200%200%200-.154-.201.804.804%200%200%201-.718-.274.668.668%200%200%201%20.436-.05c.128%200%20.077-.225.231-.324h.154c.307-.373.871-.473.974-.846%200-.1-.282-.1-.487-.15a2.253%202.253%200%200%200-.82.05c-.36.05-.712.142-1.051.274.28-.206.592-.366.923-.472.232-.09.473-.158.718-.201l.132-.026.133-.027a.968.968%200%200%201%20.556%200c.231.1.615.1.666.248.1.275-.154.548-.435.747-.057.08.149.136.149.231Z'/%3e%3cpath%20fill='%23FCC63A'%20d='M55.56%200H30c-1.105%200-2%20.899-2%202.008v9.34c0%201.108.895%202.007%202%202.007h25.56c1.105%200%202-.899%202-2.008V2.008a2.004%202.004%200%200%200-2-2.008Z'/%3e%3cpath%20fill='%23161616'%20d='M30.562%2011.213V2.325h2.921c.97%200%201.732.237%202.289.711.565.474.847%201.122.847%201.943%200%20.813-.282%201.456-.847%201.93-.557.474-1.32.71-2.289.71h-1.125v3.594h-1.796Zm2.997-7.351h-1.201v2.221h1.2c.38%200%20.675-.097.886-.29.22-.197.329-.476.329-.84%200-.338-.11-.605-.329-.8-.21-.194-.506-.291-.885-.291Zm4.671%207.35V2.326h2.707c.97%200%201.736.237%202.301.711.565.474.847%201.122.847%201.943%200%20.532-.126.999-.379%201.396a2.4%202.4%200%200%201-1.037.902l2.782%203.936h-2.15L40.949%207.62h-.923v3.593H38.23Zm2.808-7.35h-1.012v2.221h1.012c.38%200%20.674-.097.885-.29.21-.197.316-.476.316-.84%200-.338-.105-.605-.316-.8-.21-.194-.506-.291-.885-.291Zm9.511-1.79c.69%200%201.323.126%201.896.38.582.254%201.08.593%201.492%201.016.414.423.734.923.962%201.498a4.81%204.81%200%200%201%20.341%201.803c0%20.635-.114%201.24-.341%201.815a4.504%204.504%200%200%201-.962%201.486%204.67%204.67%200%200%201-1.492%201.015c-.598.26-1.244.39-1.896.382a4.721%204.721%200%200%201-3.402-1.397%204.504%204.504%200%200%201-.961-1.486%204.892%204.892%200%200%201-.342-1.815c0-.635.114-1.236.342-1.803a4.473%204.473%200%200%201%20.961-1.498%204.72%204.72%200%200%201%203.402-1.397Zm0%207.706a2.79%202.79%200%200%200%201.138-.229c.354-.16.653-.371.898-.634.252-.271.45-.589.594-.953.145-.38.218-.785.215-1.193a3.193%203.193%200%200%200-.215-1.18%202.805%202.805%200%200%200-.595-.953A2.547%202.547%200%200%200%2051.687%204a2.664%202.664%200%200%200-1.138-.24c-.413%200-.797.08-1.151.24a2.678%202.678%200%200%200-.91.635c-.254.276-.451.6-.582.952a3.193%203.193%200%200%200-.215%201.181c0%20.423.071.82.215%201.193.143.364.337.682.581.953.253.262.557.474.91.634.355.153.739.23%201.152.23Z'/%3e%3c/svg%3e",Xf="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='190'%20height='48'%20fill='none'%3e%3cpath%20fill='%23929292'%20d='m57.986%2021.454%201.156-1.076c.833%201.059%201.819%201.605%202.94%201.605%201.293%200%202.04-.82%202.04-1.912%200-2.56-5.626-2.253-5.626-6.059%200-1.74%201.428-3.209%203.45-3.209%201.684%200%202.908.768%203.792%201.946l-1.19%201.041c-.697-1.007-1.547-1.553-2.584-1.553-1.105%200-1.836.751-1.836%201.74%200%202.578%205.627%202.254%205.627%206.077%200%202.031-1.581%203.363-3.655%203.363-1.768%200-3.077-.666-4.114-1.963Zm10.817-5.735H67.46l1.445-4.574h1.649l-1.751%204.574Zm4.818-3.465c-.56%200-1.02-.46-1.02-1.024a1.026%201.026%200%200%201%201.02-1.007c.56%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.73%2010.838V14.49h1.444v8.602H72.89Zm3.767-4.3c0-2.51%201.717-4.643%204.403-4.643%201.24%200%202.26.46%203.043%201.297V10.29h1.445v12.801h-1.445v-.955c-.782.836-1.802%201.297-3.043%201.297-2.686%200-4.403-2.134-4.403-4.643Zm1.53%200c0%201.825%201.224%203.276%203.043%203.276%201.19%200%202.21-.58%202.873-1.604v-3.345c-.68-1.042-1.7-1.605-2.873-1.605-1.82%200-3.043%201.45-3.043%203.277Zm18.023%202.884c-.8%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921H89.36v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.07.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v.973c.697-.768%201.581-1.314%202.856-1.314%201.921%200%203.349%201.297%203.349%203.738v5.205h-1.462v-5.154c0-1.536-.85-2.424-2.176-2.424-1.241%200-2.023.717-2.567%201.622v5.956h-1.445Zm11.052-2.884V15.82h-1.615V14.49h1.615v-2.15h1.462v2.15h2.975v1.331h-2.975v4.387c0%201.348.68%201.724%201.717%201.724.561%200%20.952-.069%201.275-.205v1.297c-.408.17-.867.239-1.479.239-1.904%200-2.975-.956-2.975-3.055Zm7.377-7.954c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm3.377-8.602h1.615v-1.058c0-1.844%201.207-3.14%203.043-3.14.952%200%201.7.34%202.21.835l-.901%201.059a1.638%201.638%200%200%200-1.292-.58c-.935%200-1.598.682-1.598%201.792v1.092h2.975v1.331h-2.975v7.271h-1.462v-7.27h-1.615V14.49Zm8.543-2.236c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm12.115-1.416c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v1.075c.629-.75%201.411-1.246%202.499-1.246.272%200%20.527.034.731.103v1.502a3.1%203.1%200%200%200-.85-.12c-1.122%200-1.853.58-2.38%201.451v5.837h-1.445Zm13.685.342c-1.683%200-2.822-.956-2.822-2.458%200-1.331.986-2.287%202.822-2.577l2.873-.478v-.598c0-1.195-.85-1.877-2.057-1.877-1.003%200-1.836.444-2.329%201.195l-1.088-.837c.748-1.024%201.955-1.655%203.451-1.655%202.176%200%203.468%201.28%203.468%203.174v5.77h-1.445V22c-.646.905-1.717%201.434-2.873%201.434Zm-1.377-2.51c0%20.735.629%201.298%201.615%201.298%201.139%200%202.04-.598%202.635-1.588v-1.638l-2.533.444c-1.19.188-1.717.734-1.717%201.485Zm7.252-6.434h1.564l2.737%207.083%202.737-7.083h1.564l-3.349%208.602h-1.904l-3.349-8.602Zm17.856%207.186c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm10.185%206.673a2.891%202.891%200%200%200%202.431-1.28l1.156.888c-.799%201.075-2.04%201.758-3.604%201.758-2.839%200-4.658-2.134-4.658-4.643s1.819-4.642%204.658-4.642c1.547%200%202.805.7%203.604%201.758l-1.156.887a2.917%202.917%200%200%200-2.448-1.28c-1.836%200-3.145%201.45-3.145%203.277%200%201.843%201.309%203.277%203.162%203.277ZM58.854%2040.161V27.51h4.158c2.772%200%204.464%201.428%204.464%203.777%200%202.331-1.692%203.76-4.464%203.76H61.41v5.114h-2.556Zm4.266-10.464h-1.71v3.162h1.71c1.08%200%201.728-.578%201.728-1.608%200-.958-.648-1.554-1.728-1.554Zm6.129%2010.464v-9.109h2.286v.904c.594-.615%201.368-1.084%202.394-1.084.306%200%20.576.054.792.126v2.404a3.922%203.922%200%200%200-1.008-.127c-1.116%200-1.836.614-2.178%201.175v5.71h-2.286Zm11.386-9.47c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm13.172-.235c1.44%200%202.574-.704%203.294-1.735l2.016%201.555c-1.152%201.572-3.024%202.584-5.31%202.584-3.978%200-6.696-3.072-6.696-6.687%200-3.614%202.718-6.686%206.696-6.686%202.286%200%204.158%201.03%205.31%202.566l-2.016%201.572c-.72-1.03-1.854-1.735-3.294-1.735-2.376%200-4.068%201.862-4.068%204.283%200%202.422%201.692%204.283%204.068%204.283Zm11.366-7.427c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm7.018%201.808v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm11.091%200v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm19.444-1.482c-.846%201.138-2.25%201.843-3.96%201.843-3.222%200-5.04-2.259-5.04-4.916%200-2.692%201.692-4.915%204.662-4.915%202.52%200%204.176%201.698%204.176%204.084%200%20.506-.072.994-.144%201.301h-6.354c.144%201.5%201.188%202.386%202.736%202.386.99%200%201.8-.434%202.286-1.085l1.638%201.302Zm-4.338-6.073c-1.116%200-1.872.543-2.178%201.735h4.086c-.036-.903-.702-1.735-1.908-1.735Zm10.696%205.747c.882%200%201.584-.433%202.016-1.066l1.818%201.392c-.846%201.12-2.178%201.843-3.834%201.843-3.132%200-5.004-2.259-5.004-4.916%200-2.656%201.872-4.915%205.004-4.915%201.656%200%202.988.723%203.834%201.843l-1.818%201.392c-.432-.633-1.116-1.067-2.052-1.067-1.494%200-2.592%201.157-2.592%202.747%200%201.609%201.098%202.747%202.628%202.747Zm6.204-1.518V33.15h-1.692v-2.097h1.692v-2.277h2.304v2.277h2.772v2.097h-2.772v3.686c0%201.012.54%201.41%201.44%201.41.63%200%201.044-.072%201.35-.199v2.006c-.45.199-.99.29-1.746.29-2.268%200-3.348-1.284-3.348-3.507Z'/%3e%3cpath%20fill='%237C7C7C'%20d='M34.992%2014.155%2019.998%205.442%205.004%2014.237a.607.607%200%200%200-.306.527V31.78a.67.67%200%200%200%20.306.526l14.992%208.635L34.99%2032.2a.667.667%200%200%200%20.306-.526v-16.99a.608.608%200%200%200-.304-.53Z'/%3e%3cpath%20fill='%23F6F6F6'%20d='M14.641%2014.656%209.612%2023.32l-4.557-9.212%205.39-3.125%204.49%203.173-.294.502Zm20.656%2017.049V14.679a.604.604%200%200%200-.306-.526L19.998%205.442'/%3e%3cpath%20fill='%23929292'%20d='M4.7%2031.705%2020%205.442v35.504l-14.996-8.64a.667.667%200%200%201-.306-.526V14.765l.002%2016.94Zm24.67-20.819%205.457%203.168-4.489%209.187-5.387-9.273%204.418-3.083v.001Z'/%3e%3cpath%20fill='%23CECECE'%20d='M39.606%2011.348%2020.416.284a.93.93%200%200%200-.832%200L.394%2011.348a.89.89%200%200%200-.394.698v22.088a.891.891%200%200%200%20.394.703l19.189%2011.064a.929.929%200%200%200%20.832%200l19.191-11.064a.888.888%200%200%200%20.394-.703V12.046a.893.893%200%200%200-.394-.698ZM10.789%2029.176h.079c-.042%200-.079.007-.079.05%200%20.1.151%200%20.2.1a.91.91%200%200%200-.629.277c0%20.05.1.05.151.05-.075.1-.226.05-.277.153a.176.176%200%200%200%20.1.05c-.05%200-.1%200-.1.05v.153c-.126%200-.176.1-.277.15.2.153.327%200%20.528%200-.528.201-.956.482-1.484.633-.1%200%200%20.15-.1.15.151.101.227-.05.377-.05-.654.38-1.333.703-2.037%201.138a.353.353%200%200%200-.1.201h-.2c-.1.05-.05.177-.151.278.226.15.5-.2.654%200%20.05%200-.1.05-.2.05-.05%200-.05.1-.1.1H6.99c-.1.076-.2.127-.2.278a.22.22%200%200%200-.226.1%209%209%200%200%200%203.144-.58%207.687%207.687%200%200%200%202.088-1.566.177.177%200%200%201%20.05.1c-.147.439-.43.82-.806%201.084-.277.153-.478.38-.7.481a4.05%204.05%200%200%200-.428.277c-.632.198-1.281.337-1.939.414l-.305.044c-.225.033-.449.07-.671.109l-1.993-1.143a.648.648%200%200%201-.288-.413.568.568%200%200%200%20.094-.063.267.267%200%200%200-.113-.071v-.653a12.74%2012.74%200%200%200%203.038-.945%208.731%208.731%200%200%200-3.037-1.349v-1.52c.555.09%201.103.222%201.639.393.413.152.809.346%201.182.58.147.14.307.268.478.379a.908.908%200%200%200%20.8.05h.33a3.954%203.954%200%200%200%201.937-.909c0%20.05.05.05.1.05-.078.4-.223.785-.428%201.137.003.05-.048.152.053.203Zm2.817%203.584c.251-.1.4-.277.629-.378-.05.05-.05.151-.1.201a3.71%203.71%200%200%200-.528.402%2016%2016%200%200%200-1.585%201.616c-.252.302-.528.58-.8.859-.096.09-.2.172-.31.246L8.385%2034.25c.36.03.721.013%201.076-.053.294-.084.58-.193.855-.329v.1c.7-.277%201.232-.909%201.937-1.136.025%200%20.126.1.226.05a1.885%201.885%200%200%201%201.509-.702c0%20.05%200%20.1.05.1h.025c-.151.127-.327.251-.5.378-.057.053-.007.102.043.102Zm-8.908-6.188v-.187a5.795%205.795%200%200%201%201.588-.188c.158-.026.32-.026.478%200a5.84%205.84%200%200%200-2.066.375Zm30.6%205.109a.67.67%200%200%201-.306.526L24.913%2038.08a32.214%2032.214%200%200%201-3.408-1.189%202.847%202.847%200%200%201-.05-2.254c.08-.309.198-.607.352-.886.025-.025.05-.05.05-.076a.025.025%200%200%200%20.025-.025%204.33%204.33%200%200%201%20.377-.558l.015-.015.02-.02.015-.016c0-.025.025-.05.05-.076.025-.052.075-.077.1-.127a3.78%203.78%200%200%201%20.579-.502c.213-.077.431-.136.654-.178.811.06%201.617.171%202.415.33a.753.753%200%200%201%20.277.1c.301.06.612.041.905-.05a1.135%201.135%200%200%200%20.855-.709%201.22%201.22%200%200%200%20.05-1.064c-.178-.276-.013-.438.181-.592l.068-.055c.086-.06.164-.134.231-.216.126-.254-.1-.402-.151-.633-.05-.1-.226-.05-.327-.2.352-.152.855-.433.629-.861-.151-.228-.377-.633-.1-.86.352-.201.855-.152%201.006-.483a1.146%201.146%200%200%200-.292-1.088l-.075-.108a4.776%204.776%200%200%201-.211-.322%206.934%206.934%200%200%200-.528-.76%204.32%204.32%200%200%201-.528-1.014c-.151-.378.05-.708.05-1.087a6.397%206.397%200%200%200-.327-2.153c-.126-.354-.176-.734-.327-1.064a1.127%201.127%200%200%200-.226-.582.376.376%200%200%201%200-.329c.205-.145.399-.306.579-.482a.571.571%200%200%200-.2-.707c-.327-.152-.3.329-.528.43h-.151c-.05-.126.05-.177.151-.278%200-.05%200-.151-.05-.151-.2%200-.377-.052-.428-.152a3.956%203.956%200%200%200-1.861-1.291c.188.058.382.091.579.1.338.072.69.036%201.006-.1.227-.077.277-.482.377-.709a.806.806%200%200%200-.151-.634%202.192%202.192%200%200%200-.906-.759%209.094%209.094%200%200%201-.679-.354.952.952%200%200%200-.251-.127c-2.965-1.49-9.069-.2-9.534%200h-.009a8.23%208.23%200%200%200-1.249.477%203.92%203.92%200%200%200-2.365%202.475%203.84%203.84%200%200%200-1.333%201.515c-.428.804-1.056%201.515-.956%202.424.1.783.277%201.49.428%202.298.043.273.11.542.2.803.1.278%200%20.632.151.859.075.15.025.328.227.43v.2c.05.05.05.1.151.1v.202c.435.424.807.91%201.107%201.44.1.276-.478.15-.7.05a5.983%205.983%200%200%201-1.132-.96.177.177%200%200%200-.051.1c.2.354.906.783.528%201.01-.2.1-.428-.151-.629.05-.05.077%200%20.178%200%20.278-.277-.2-.578-.1-.855-.2-.2-.05-.252-.429-.478-.429a15.135%2015.135%200%200%200-1.811-.328%2015.1%2015.1%200%200%200-1.739-.161V14.766a.61.61%200%200%201%20.306-.526l14.987-8.796%2014.994%208.712a.606.606%200%200%201%20.306.526V31.68Zm-7.954-8.295a.325.325%200%200%201-.282.15c-.1.085-.194.176-.282.274.1%200%200%20.15.1.15-.205.224.077.697-.205.796-.37.1-.758.1-1.127%200a.721.721%200%200%201%20.167-.016h.085a.38.38%200%200%200%20.337-.133v-.2c0-.05-.051-.05-.1-.05a.16.16%200%200%201-.1.05.225.225%200%200%200-.154-.201.804.804%200%200%201-.718-.274.668.668%200%200%201%20.436-.05c.128%200%20.077-.225.231-.324h.154c.307-.373.871-.473.974-.846%200-.1-.282-.1-.487-.15a2.253%202.253%200%200%200-.82.05c-.36.05-.712.142-1.051.274.28-.206.592-.366.923-.472.232-.09.473-.158.718-.201l.132-.026.133-.027a.968.968%200%200%201%20.556%200c.231.1.615.1.666.248.1.275-.154.548-.435.747-.057.08.149.136.149.231Z'/%3e%3cpath%20fill='%23DDD'%20d='M52.56%200H27c-1.105%200-2%20.899-2%202.008v9.34c0%201.108.895%202.007%202%202.007h25.56c1.105%200%202-.899%202-2.008V2.008a2.004%202.004%200%200%200-2-2.008Z'/%3e%3cpath%20fill='%23929292'%20d='M27.562%2011.213V2.325h2.921c.97%200%201.732.237%202.289.711.565.474.847%201.122.847%201.943%200%20.813-.282%201.456-.847%201.93-.557.474-1.32.71-2.289.71h-1.125v3.594h-1.796Zm2.997-7.351h-1.201v2.221h1.2c.38%200%20.675-.097.886-.29.22-.197.329-.476.329-.84%200-.338-.11-.605-.329-.8-.21-.194-.506-.291-.885-.291Zm4.671%207.35V2.326h2.707c.97%200%201.736.237%202.301.711.565.474.847%201.122.847%201.943%200%20.532-.126.999-.379%201.396a2.4%202.4%200%200%201-1.037.902l2.782%203.936h-2.15L37.949%207.62h-.923v3.593H35.23Zm2.808-7.35h-1.012v2.221h1.012c.38%200%20.674-.097.885-.29.21-.197.316-.476.316-.84%200-.338-.105-.605-.316-.8-.21-.194-.506-.291-.885-.291Zm9.511-1.79c.69%200%201.323.126%201.896.38.582.254%201.08.593%201.492%201.016.414.423.734.923.962%201.498a4.81%204.81%200%200%201%20.341%201.803c0%20.635-.114%201.24-.341%201.815a4.504%204.504%200%200%201-.962%201.486%204.67%204.67%200%200%201-1.492%201.015c-.598.26-1.244.39-1.896.382a4.721%204.721%200%200%201-3.402-1.397%204.504%204.504%200%200%201-.961-1.486%204.892%204.892%200%200%201-.342-1.815c0-.635.114-1.236.342-1.803a4.473%204.473%200%200%201%20.961-1.498%204.72%204.72%200%200%201%203.402-1.397Zm0%207.706a2.79%202.79%200%200%200%201.138-.229c.354-.16.653-.371.898-.634.252-.271.45-.589.594-.953.145-.38.218-.785.215-1.193a3.193%203.193%200%200%200-.215-1.18%202.805%202.805%200%200%200-.595-.953A2.547%202.547%200%200%200%2048.687%204a2.664%202.664%200%200%200-1.138-.24c-.413%200-.797.08-1.151.24a2.678%202.678%200%200%200-.91.635c-.254.276-.451.6-.582.952a3.193%203.193%200%200%200-.215%201.181c0%20.423.071.82.215%201.193.143.364.337.682.581.953.253.262.557.474.91.634.355.153.739.23%201.152.23Z'/%3e%3c/svg%3e",Bc=({disabled:t,onClick:e})=>b.jsx(le.Button,{disabled:t,className:"pro-connect-button",onClick:e,style:{backgroundImage:`url("${t?Xf:Yf}")`}}),ne=typeof document<"u"?u.useLayoutEffect:()=>{};function he(t){const e=u.useRef(null);return ne(()=>{e.current=t},[t]),u.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function Jf(t){let[e,n]=u.useState(t),r=u.useRef(null),i=he(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}e===l.value?i():n(l.value)});ne(()=>{r.current&&i()});let o=he(l=>{r.current=l(e),i()});return[e,o]}const Fr={prefix:String(Math.round(Math.random()*1e10)),current:0},Uc=u.createContext(Fr),Qf=u.createContext(!1);let e1=!!(typeof window<"u"&&window.document&&window.document.createElement),Mi=new WeakMap;function t1(t=!1){let e=u.useContext(Uc),n=u.useRef(null);if(n.current===null&&!t){var r,i;let o=(i=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let l=Mi.get(o);l==null?Mi.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,Mi.delete(o))}n.current=++e.current}return n.current}function n1(t){let e=u.useContext(Uc);e===Fr&&!e1&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=t1(!!t),r=e===Fr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function r1(t){let e=u.useId(),[n]=u.useState(Qn()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Fr.prefix}`;return t||`${r}-${e}`}const i1=typeof u.useId=="function"?r1:n1;function o1(){return!1}function l1(){return!0}function a1(t){return()=>{}}function Qn(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(a1,o1,l1):u.useContext(Qf)}let s1=!!(typeof window<"u"&&window.document&&window.document.createElement),an=new Map,Rn;typeof FinalizationRegistry<"u"&&(Rn=new FinalizationRegistry(t=>{an.delete(t)}));function Se(t){let[e,n]=u.useState(t),r=u.useRef(null),i=i1(e),o=u.useRef(null);if(Rn&&Rn.register(o,i),s1){const l=an.get(i);l&&!l.includes(r)?l.push(r):an.set(i,[r])}return ne(()=>{let l=i;return()=>{Rn&&Rn.unregister(o),an.delete(l)}},[i]),u.useEffect(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),i}function c1(t,e){if(t===e)return t;let n=an.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=an.get(e);return r?(r.forEach(i=>i.current=t),t):e}function xt(t=[]){let e=Se(),[n,r]=Jf(e),i=u.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return ne(i,[e,i,...t]),n}function Dt(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const oe=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},Me=t=>t&&"window"in t&&t.window===t?t:oe(t).defaultView||window;function u1(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function d1(t){return u1(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let f1=!1;function ni(){return f1}function ce(t,e){if(!ni())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let n=e;for(;n!==null;){if(n===t)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:d1(n)?n=n.host:n=n.parentNode}return!1}const Ce=(t=document)=>{var e;if(!ni())return t.activeElement;let n=t.activeElement;for(;n&&"shadowRoot"in n&&(!((e=n.shadowRoot)===null||e===void 0)&&e.activeElement);)n=n.shadowRoot.activeElement;return n};function ie(t){return ni()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}class h1{get currentNode(){return this._currentNode}set currentNode(e){if(!ce(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=e,i=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,a=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),r=i=l.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=n}get doc(){return this._doc}firstChild(){let e=this.currentNode,n=this.nextNode();return ce(e,n)?(n&&(this.currentNode=n),n):(this.currentNode=e,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(e):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(e)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let o=this.nextNode();return o&&(this.currentNode=o),o}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=e.previousNode();if(n){if(n.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(n)),o===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let l=this.lastChild();return l&&(this.currentNode=l),l}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const s=l.shadowRoot;if(s){const c=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(l);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(e.createTreeWalker(n,r,this._acceptNode));const o=n.shadowRoot;if(o){const l=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function p1(t,e,n,r){return ni()?new h1(t,e,n,r):t.createTreeWalker(e,n,r)}function Wc(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Wc(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Pe(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Wc(t))&&(r&&(r+=" "),r+=e);return r}function re(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=Dt(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=Pe(o,l):i==="id"&&o&&l?e.id=c1(o,l):e[i]=l!==void 0?l:o}}return e}function ul(...t){return t.length===1&&t[0]?t[0]:e=>{let n=!1;const r=t.map(i=>{const o=ua(i,e);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():ua(t[o],null)})}}}function ua(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}const v1=new Set(["id"]),g1=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),m1=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),y1=/^(data-.*)$/;function pe(t,e={}){let{labelable:n,isLink:r,propNames:i}=e,o={};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&(v1.has(l)||n&&g1.has(l)||r&&m1.has(l)||i!=null&&i.has(l)||y1.test(l))&&(o[l]=t[l]);return o}function Ve(t){if(b1())t.focus({preventScroll:!0});else{let e=C1(t);t.focus(),S1(e)}}let ir=null;function b1(){if(ir==null){ir=!1;try{document.createElement("div").focus({get preventScroll(){return ir=!0,!0}})}catch{}}return ir}function C1(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function S1(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function ri(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function dl(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function et(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const ft=et(function(){return dl(/^Mac/i)}),w1=et(function(){return dl(/^iPhone/i)}),Zc=et(function(){return dl(/^iPad/i)||ft()&&navigator.maxTouchPoints>1}),ii=et(function(){return w1()||Zc()}),x1=et(function(){return ft()||ii()}),fl=et(function(){return ri(/AppleWebKit/i)&&!Gc()}),Gc=et(function(){return ri(/Chrome/i)}),hl=et(function(){return ri(/Android/i)}),E1=et(function(){return ri(/Firefox/i)}),$1=u.createContext({isNative:!0,open:D1,useHref:t=>t});function oi(){return u.useContext($1)}function Tt(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}=e;E1()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(ft()?o=!0:l=!0);let c=fl()&&ft()&&!Zc()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s,bubbles:!0,cancelable:!0});Tt.isOpening=n,Ve(t),t.dispatchEvent(c),Tt.isOpening=!1}Tt.isOpening=!1;function P1(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function D1(t,e){P1(t,n=>Tt(n,e))}function pl(t){let e=oi();var n;const r=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?r:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let st=new Map,Eo=new Set;function da(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let i=st.get(r.target);i||(i=new Set,st.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!t(r)||!r.target)return;let i=st.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),st.delete(r.target)),st.size===0)){for(let o of Eo)o();Eo.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?da():document.addEventListener("DOMContentLoaded",da));function T1(){for(const[t]of st)"isConnected"in t&&!t.isConnected&&st.delete(t)}function qc(t){requestAnimationFrame(()=>{T1(),st.size===0?t():Eo.add(t)})}function li(){let t=u.useRef(new Map),e=u.useCallback((i,o,l,a)=>{let s=a!=null&&a.once?(...c)=>{t.current.delete(l),l(...c)}:l;t.current.set(l,{type:o,eventTarget:i,fn:s,options:a}),i.addEventListener(o,s,a)},[]),n=u.useCallback((i,o,l,a)=>{var s;let c=((s=t.current.get(l))===null||s===void 0?void 0:s.fn)||l;i.removeEventListener(o,c,a),t.current.delete(l)},[]),r=u.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function ai(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=Se(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}function tt(t){const e=u.useRef(null),n=u.useRef(void 0),r=u.useCallback(i=>{if(typeof t=="function"){const o=t,l=o(i);return()=>{typeof l=="function"?l():o(null)}}else if(t)return t.current=i,()=>{t.current=null}},[t]);return u.useMemo(()=>({get current(){return e.current},set current(i){e.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}function fa(t,e){const n=u.useRef(!0),r=u.useRef(null);ne(()=>(n.current=!0,()=>{n.current=!1}),[]),ne(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function _1(){return typeof window.ResizeObserver<"u"}function $o(t){const{ref:e,box:n,onResize:r}=t;u.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(_1()){const o=new window.ResizeObserver(l=>{l.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,n])}function Yc(t,e){ne(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Bn(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&e&&(r=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),r}function Xc(t,e){let n=t;for(Bn(n,e)&&(n=n.parentElement);n&&!Bn(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function I1(t,e){const n=[];for(;t&&t!==document.documentElement;)Bn(t,e)&&n.push(t),t=t.parentElement;return n}let O1=0;const Li=new Map;function k1(t){let[e,n]=u.useState();return ne(()=>{if(!t)return;let r=Li.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${O1++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),r={refCount:0,element:o},Li.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Li.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function or(t,e,n,r){let i=he(n),o=n==null;u.useEffect(()=>{if(o||!t.current)return;let l=t.current;return l.addEventListener(e,i,r),()=>{l.removeEventListener(e,i,r)}},[t,e,r,o,i])}function Jc(t,e){let n=ha(t,e,"left"),r=ha(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,l=t.scrollLeft,a=t.scrollTop,{borderTopWidth:s,borderLeftWidth:c,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:h,scrollPaddingLeft:v}=getComputedStyle(t),y=l+parseInt(c,10),p=a+parseInt(s,10),g=y+t.clientWidth,m=p+t.clientHeight,C=parseInt(d,10)||0,S=parseInt(h,10)||0,P=parseInt(f,10)||0,$=parseInt(v,10)||0;n<=l+$?l=n-parseInt(c,10)-$:n+i>g-P&&(l+=n+i-g+P),r<=p+C?a=r-parseInt(s,10)-C:r+o>m-S&&(a+=r+o-m+S),t.scrollLeft=l,t.scrollTop=a}function ha(t,e,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;e.offsetParent&&(i+=e[r],e.offsetParent!==t);){if(e.offsetParent.contains(t)){i-=t[r];break}e=e.offsetParent}return i}function pa(t,e){if(t&&document.contains(t)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=I1(t);for(let c of s)Jc(c,t)}else{var n;let{left:s,top:c}=t.getBoundingClientRect();t==null||(n=t.scrollIntoView)===null||n===void 0||n.call(t,{block:"nearest"});let{left:d,top:f}=t.getBoundingClientRect();if(Math.abs(s-d)>1||Math.abs(c-f)>1){var r,i,o;e==null||(i=e.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}}}function Po(t){return t.mozInputSource===0&&t.isTrusted?!0:hl()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function N1(t){return!hl()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function R1(t,e,n){let r=u.useRef(e),i=he(()=>{n&&n(r.current)});u.useEffect(()=>{var o;let l=t==null||(o=t.current)===null||o===void 0?void 0:o.form;return l==null||l.addEventListener("reset",i),()=>{l==null||l.removeEventListener("reset",i)}},[t,i])}function M1(t){const e=u.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const L1="react-aria-clear-focus",A1="react-aria-focus";function en(t){return ft()?t.metaKey:t.ctrlKey}function F1(t,e=!0){let[n,r]=u.useState(!0),i=n&&e;return ne(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),Qc(t,i,u.useCallback(()=>r(!1),[])),i}function K1(t,e){let[n,r]=u.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let i=n==="exiting";return Qc(t,i,u.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function Qc(t,e,n){ne(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.all(r.map(o=>o.finished)).then(()=>{i||Lt.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}const vl=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],j1=vl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";vl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const H1=vl.join(':not([hidden]):not([tabindex="-1"]),');function eu(t){return t.matches(j1)}function V1(t){return t.matches(H1)}function si(t,e,n){let[r,i]=u.useState(t||e),o=u.useRef(t!==void 0),l=t!==void 0;u.useEffect(()=>{let c=o.current;c!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),o.current=l},[l]);let a=l?t:r,s=u.useCallback((c,...d)=>{let f=(h,...v)=>{n&&(Object.is(a,h)||n(h,...v)),l||(a=h)};typeof c=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((v,...y)=>{let p=c(l?a:v,...y);return f(p,...d),l?v:p})):(l||i(c),f(c,...d))},[l,a,n]);return[a,s]}function Do(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}const gl=Symbol("default");function pt({values:t,children:e}){for(let[n,r]of t)e=u.createElement(n.Provider,{value:r},e);return e}function De(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:a}=t;return u.useMemo(()=>{let s,c,d;return typeof e=="function"?s=e({...a,defaultClassName:i}):s=e,typeof n=="function"?c=n({...a,defaultStyle:l||{}}):c=n,typeof r=="function"?d=r({...a,defaultChildren:o}):r==null?d=o:d=r,{className:s??i,style:c||l?{...l,...c}:void 0,children:d??o,"data-rac":""}},[e,n,r,i,o,l,a])}function ci(t,e){let n=u.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||gl;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return n.slots[r]}return n}function nt(t,e,n){let r=ci(n,t.slot)||{},{ref:i,...o}=r,l=tt(u.useMemo(()=>ul(e,i),[e,i])),a=re(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?a.style=s=>{let c=typeof o.style=="function"?o.style(s):o.style,d={...s.defaultStyle,...c},f=typeof t.style=="function"?t.style({...s,defaultStyle:d}):t.style;return{...d,...f}}:a.style={...o.style,...t.style}),[a,l]}function ml(t=!0){let[e,n]=u.useState(t),r=u.useRef(!1),i=u.useCallback(o=>{r.current=!0,n(!!o)},[]);return ne(()=>{r.current||n(!1)},[]),[i,e]}function z1(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}class yl{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new yl(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}constructor(e,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=e,this.key=n}}class bl{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(e),i=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!r}UNSTABLE_filter(e){let n=new bl,r=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let o=i.clone(),l=null;for(let a of this.getChildren(i.key))if(va(a,e,this,n)){let s=a.clone();l==null&&(o.firstChildKey=s.key),n.firstKey==null&&(n.firstKey=o.key),l&&l.parentKey===s.parentKey?(l.nextKey=s.key,s.prevKey=l.key):s.prevKey=null,s.nextKey=null,n.addNode(s),l=s}l&&(l.type!=="header"?(o.lastChildKey=l.key,r==null?o.prevKey=null:(r.type==="section"||r.type==="separator")&&(r.nextKey=o.key,o.prevKey=r.key),o.nextKey=null,r=o,n.addNode(o)):(n.firstKey===o.key&&(n.firstKey=null),n.removeNode(l.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,(r==null?void 0:r.type)==="section"&&(r.nextKey=o.key,o.prevKey=r.key,r=o,n.addNode(o))}else{let o=i.clone();va(o,e,this,n)&&(n.firstKey==null&&(n.firstKey=o.key),r!=null&&r.type!=="section"&&r.type!=="separator"&&r.parentKey===o.parentKey?(r.nextKey=o.key,o.prevKey=r.key):o.prevKey=null,o.nextKey=null,n.addNode(o),r=o)}if((r==null?void 0:r.type)==="separator"&&r.nextKey===null){let i;r.prevKey!=null&&(i=n.getItem(r.prevKey),i.nextKey=null),n.removeNode(r.key),r=i}return n.lastKey=(r==null?void 0:r.key)||null,n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}function va(t,e,n,r){if(t.type==="subdialogtrigger"||t.type==="submenutrigger"){let i=[...n.getChildren(t.key)][0];if(i&&e(i.textValue)){let o=i.clone();return r.addNode(o),!0}else return!1}else return t.type==="header"?!0:e(t.textValue)}class tu{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e)}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode,this.invalidateChildIndices(n),this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class sn extends tu{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof sn?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var e,n,r;let i=this.nextVisibleSibling,o=this.getMutableNode();o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof sn?this.parentNode.node.key:null;var l;o.prevKey=(l=(e=this.previousVisibleSibling)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var a;o.nextKey=(a=i==null?void 0:i.node.key)!==null&&a!==void 0?a:null,o.hasChildNodes=!!this.firstChild;var s;o.firstChildKey=(s=(n=this.firstVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null;var c;if(o.lastChildKey=(c=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&c!==void 0?c:null,(o.colSpan!=null||o.colIndex!=null)&&i){var d,f;let h=((d=o.colIndex)!==null&&d!==void 0?d:o.index)+((f=o.colSpan)!==null&&f!==void 0?f:1);if(h!==i.node.colIndex){let v=i.getMutableNode();v.colIndex=h}}}setProps(e,n,r,i){let o=this.getMutableNode(),{value:l,textValue:a,id:s,...c}=e;if(c.ref=n,o.props=c,o.rendered=r,o.render=i,o.value=l,o.textValue=a||(typeof c.children=="string"?c.children:"")||e["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}c.colSpan!=null&&(o.colSpan=c.colSpan),this.hasSetProps=!0,this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(n){let r=n==="none";if(e.isHidden!==r){var i,o;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((o=e.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let l=e.previousVisibleSibling,a=e.nextVisibleSibling;l&&e.ownerDocument.markDirty(l),a&&e.ownerDocument.markDirty(a),e.isHidden=r,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new yl(e,`react-aria-${++n.nodeId}`)}}class B1 extends tu{get isConnected(){return this.isMounted}createElement(e){return new sn(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden)return;let n=this.getMutableCollection();if(!n.getItem(e.node.key))for(let r of e)this.addNode(r);n.addNode(e.node)}removeNode(e){for(let r of e)this.removeNode(r);this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof sn&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof sn&&(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,n,r,i;this.nextCollection.commit((r=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&r!==void 0?r:null,(i=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function nu(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=u.useMemo(()=>new WeakMap,o);return u.useMemo(()=>{if(n&&typeof e=="function"){let c=[];for(let d of n){let f=l.get(d);if(!f){f=e(d);var a,s;let h=(s=(a=f.props.id)!==null&&a!==void 0?a:d.key)!==null&&s!==void 0?s:d.id;if(h==null)throw new Error("Could not determine key for item");r&&(h=r+":"+h),f=u.cloneElement(f,i?{key:h,id:h,value:d}:{key:h}),l.set(d,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,n,l,r,i])}if(typeof HTMLTemplateElement<"u"){const t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:t.call(this)}})}const Kr=u.createContext(!1);function U1(t){if(u.useContext(Kr))return u.createElement(u.Fragment,null,t.children);let n=u.createElement(Kr.Provider,{value:!0},t.children);return u.createElement("template",{"data-react-aria-hidden":!0},n)}function Cl(t){let e=(n,r)=>u.useContext(Kr)?null:t(n,r);return e.displayName=t.displayName||t.name,u.forwardRef(e)}function W1(){return u.useContext(Kr)}function Sl(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function ru(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function iu(t){let e=u.useRef({isFocused:!1,observer:null});ne(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=he(r=>{t==null||t(r)});return u.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r.target,o=l=>{if(e.current.isFocused=!1,i.disabled){let a=Sl(l);n(a)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let jr=!1;function ga(t){for(;t&&!eu(t);)t=t.parentElement;let e=Me(t),n=e.document.activeElement;if(!n||n===t)return;jr=!0;let r=!1,i=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},o=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),!t&&!r&&(r=!0,Ve(n),s()))},l=d=>{(d.target===t||r)&&d.stopImmediatePropagation()},a=d=>{(d.target===t||r)&&(d.stopImmediatePropagation(),r||(r=!0,Ve(n),s()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",a,!0),e.addEventListener("focus",l,!0);let s=()=>{cancelAnimationFrame(c),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",a,!0),e.removeEventListener("focus",l,!0),jr=!1,r=!1},c=requestAnimationFrame(s);return s}let rn="default",To="",Er=new WeakMap;function ma(t){if(ii()){if(rn==="default"){const e=oe(t);To=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}rn="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";Er.set(t,t.style[e]),t.style[e]="none"}}function Ai(t){if(ii()){if(rn!=="disabled")return;rn="restoring",setTimeout(()=>{qc(()=>{if(rn==="restoring"){const e=oe(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=To||""),To="",rn="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Er.has(t)){let e=Er.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Er.delete(t)}}const wl=u.createContext({register:()=>{}});wl.displayName="PressResponderContext";function Z1(t,e){return e.get?e.get.call(t):e.value}function ou(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function G1(t,e){var n=ou(t,e,"get");return Z1(t,n)}function q1(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Y1(t,e,n){q1(t,e),e.set(t,n)}function X1(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function ya(t,e,n){var r=ou(t,e,"set");return X1(t,r,n),n}function J1(t){let e=u.useContext(wl);if(e){let{register:n,...r}=e;t=re(r,t),n()}return Yc(e,t.ref),t}var lr=new WeakMap;class ar{continuePropagation(){ya(this,lr,!1)}get shouldStopPropagation(){return G1(this,lr)}constructor(e,n,r,i){Y1(this,lr,{writable:!0,value:void 0}),ya(this,lr,!0);var o;let l=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const a=l==null?void 0:l.getBoundingClientRect();let s,c=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),a&&(d!=null&&f!=null?(s=d-a.left,c=f-a.top):(s=a.width/2,c=a.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=c}}const ba=Symbol("linkClicked"),Ca="react-aria-pressable-style",Sa="data-react-aria-pressable";function ui(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:a,isPressed:s,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...v}=J1(t),[y,p]=u.useState(!1),g=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:m,removeAllGlobalListeners:C}=li(),S=he((w,A)=>{let B=g.current;if(a||B.didFirePressStart)return!1;let L=!0;if(B.isTriggeringEvent=!0,r){let U=new ar("pressstart",A,w);r(U),L=U.shouldStopPropagation}return n&&n(!0),B.isTriggeringEvent=!1,B.didFirePressStart=!0,p(!0),L}),P=he((w,A,B=!0)=>{let L=g.current;if(!L.didFirePressStart)return!1;L.didFirePressStart=!1,L.isTriggeringEvent=!0;let U=!0;if(i){let I=new ar("pressend",A,w);i(I),U=I.shouldStopPropagation}if(n&&n(!1),p(!1),e&&B&&!a){let I=new ar("press",A,w);e(I),U&&(U=I.shouldStopPropagation)}return L.isTriggeringEvent=!1,U}),$=he((w,A)=>{let B=g.current;if(a)return!1;if(o){B.isTriggeringEvent=!0;let L=new ar("pressup",A,w);return o(L),B.isTriggeringEvent=!1,L.shouldStopPropagation}return!0}),x=he(w=>{let A=g.current;if(A.isPressed&&A.target){A.didFirePressStart&&A.pointerType!=null&&P(vt(A.target,w),A.pointerType,!1),A.isPressed=!1,A.isOverTarget=!1,A.activePointerId=null,A.pointerType=null,C(),f||Ai(A.target);for(let B of A.disposables)B();A.disposables=[]}}),E=he(w=>{d&&x(w)}),N=he(w=>{l==null||l(w)}),H=he((w,A)=>{if(l){let B=new MouseEvent("click",w);ru(B,A),l(Sl(B))}}),j=u.useMemo(()=>{let w=g.current,A={onKeyDown(L){if(Fi(L.nativeEvent,L.currentTarget)&&ce(L.currentTarget,ie(L.nativeEvent))){var U;Ea(ie(L.nativeEvent),L.key)&&L.preventDefault();let I=!0;if(!w.isPressed&&!L.repeat){w.target=L.currentTarget,w.isPressed=!0,w.pointerType="keyboard",I=S(L,"keyboard");let R=L.currentTarget,k=Z=>{Fi(Z,R)&&!Z.repeat&&ce(R,ie(Z))&&w.target&&$(vt(w.target,Z),"keyboard")};m(oe(L.currentTarget),"keyup",Dt(k,B),!0)}I&&L.stopPropagation(),L.metaKey&&ft()&&((U=w.metaKeyEvents)===null||U===void 0||U.set(L.key,L.nativeEvent))}else L.key==="Meta"&&(w.metaKeyEvents=new Map)},onClick(L){if(!(L&&!ce(L.currentTarget,ie(L.nativeEvent)))&&L&&L.button===0&&!w.isTriggeringEvent&&!Tt.isOpening){let U=!0;if(a&&L.preventDefault(),!w.ignoreEmulatedMouseEvents&&!w.isPressed&&(w.pointerType==="virtual"||Po(L.nativeEvent))){let I=S(L,"virtual"),R=$(L,"virtual"),k=P(L,"virtual");N(L),U=I&&R&&k}else if(w.isPressed&&w.pointerType!=="keyboard"){let I=w.pointerType||L.nativeEvent.pointerType||"virtual",R=$(vt(L.currentTarget,L),I),k=P(vt(L.currentTarget,L),I,!0);U=R&&k,w.isOverTarget=!1,N(L),x(L)}w.ignoreEmulatedMouseEvents=!1,U&&L.stopPropagation()}}},B=L=>{var U;if(w.isPressed&&w.target&&Fi(L,w.target)){var I;Ea(ie(L),L.key)&&L.preventDefault();let k=ie(L),Z=ce(w.target,ie(L));P(vt(w.target,L),"keyboard",Z),Z&&H(L,w.target),C(),L.key!=="Enter"&&xl(w.target)&&ce(w.target,k)&&!L[ba]&&(L[ba]=!0,Tt(w.target,L,!1)),w.isPressed=!1,(I=w.metaKeyEvents)===null||I===void 0||I.delete(L.key)}else if(L.key==="Meta"&&(!((U=w.metaKeyEvents)===null||U===void 0)&&U.size)){var R;let k=w.metaKeyEvents;w.metaKeyEvents=void 0;for(let Z of k.values())(R=w.target)===null||R===void 0||R.dispatchEvent(new KeyboardEvent("keyup",Z))}};if(typeof PointerEvent<"u"){A.onPointerDown=I=>{if(I.button!==0||!ce(I.currentTarget,ie(I.nativeEvent)))return;if(N1(I.nativeEvent)){w.pointerType="virtual";return}w.pointerType=I.pointerType;let R=!0;if(!w.isPressed){w.isPressed=!0,w.isOverTarget=!0,w.activePointerId=I.pointerId,w.target=I.currentTarget,f||ma(w.target),R=S(I,w.pointerType);let k=ie(I.nativeEvent);"releasePointerCapture"in k&&k.releasePointerCapture(I.pointerId),m(oe(I.currentTarget),"pointerup",L,!1),m(oe(I.currentTarget),"pointercancel",U,!1)}R&&I.stopPropagation()},A.onMouseDown=I=>{if(ce(I.currentTarget,ie(I.nativeEvent))&&I.button===0){if(c){let R=ga(I.target);R&&w.disposables.push(R)}I.stopPropagation()}},A.onPointerUp=I=>{!ce(I.currentTarget,ie(I.nativeEvent))||w.pointerType==="virtual"||I.button===0&&!w.isPressed&&$(I,w.pointerType||I.pointerType)},A.onPointerEnter=I=>{I.pointerId===w.activePointerId&&w.target&&!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,S(vt(w.target,I),w.pointerType))},A.onPointerLeave=I=>{I.pointerId===w.activePointerId&&w.target&&w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,P(vt(w.target,I),w.pointerType,!1),E(I))};let L=I=>{if(I.pointerId===w.activePointerId&&w.isPressed&&I.button===0&&w.target){if(ce(w.target,ie(I))&&w.pointerType!=null){let R=!1,k=setTimeout(()=>{w.isPressed&&w.target instanceof HTMLElement&&(R?x(I):(Ve(w.target),w.target.click()))},80);m(I.currentTarget,"click",()=>R=!0,!0),w.disposables.push(()=>clearTimeout(k))}else x(I);w.isOverTarget=!1}},U=I=>{x(I)};A.onDragStart=I=>{ce(I.currentTarget,ie(I.nativeEvent))&&x(I)}}else if(process.env.NODE_ENV==="test"){A.onMouseDown=I=>{if(I.button!==0||!ce(I.currentTarget,ie(I.nativeEvent)))return;if(w.ignoreEmulatedMouseEvents){I.stopPropagation();return}if(w.isPressed=!0,w.isOverTarget=!0,w.target=I.currentTarget,w.pointerType=Po(I.nativeEvent)?"virtual":"mouse",Lt.flushSync(()=>S(I,w.pointerType))&&I.stopPropagation(),c){let k=ga(I.target);k&&w.disposables.push(k)}m(oe(I.currentTarget),"mouseup",L,!1)},A.onMouseEnter=I=>{if(!ce(I.currentTarget,ie(I.nativeEvent)))return;let R=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!0,R=S(I,w.pointerType)),R&&I.stopPropagation()},A.onMouseLeave=I=>{if(!ce(I.currentTarget,ie(I.nativeEvent)))return;let R=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!1,R=P(I,w.pointerType,!1),E(I)),R&&I.stopPropagation()},A.onMouseUp=I=>{ce(I.currentTarget,ie(I.nativeEvent))&&!w.ignoreEmulatedMouseEvents&&I.button===0&&!w.isPressed&&$(I,w.pointerType||"mouse")};let L=I=>{if(I.button===0){if(w.ignoreEmulatedMouseEvents){w.ignoreEmulatedMouseEvents=!1;return}w.target&&w.target.contains(I.target)&&w.pointerType!=null||x(I),w.isOverTarget=!1}};A.onTouchStart=I=>{if(!ce(I.currentTarget,ie(I.nativeEvent)))return;let R=Q1(I.nativeEvent);if(!R)return;w.activePointerId=R.identifier,w.ignoreEmulatedMouseEvents=!0,w.isOverTarget=!0,w.isPressed=!0,w.target=I.currentTarget,w.pointerType="touch",f||ma(w.target),S(it(w.target,I),w.pointerType)&&I.stopPropagation(),m(Me(I.currentTarget),"scroll",U,!0)},A.onTouchMove=I=>{if(!ce(I.currentTarget,ie(I.nativeEvent)))return;if(!w.isPressed){I.stopPropagation();return}let R=wa(I.nativeEvent,w.activePointerId),k=!0;R&&xa(R,I.currentTarget)?!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,k=S(it(w.target,I),w.pointerType)):w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,k=P(it(w.target,I),w.pointerType,!1),E(it(w.target,I))),k&&I.stopPropagation()},A.onTouchEnd=I=>{if(!ce(I.currentTarget,ie(I.nativeEvent)))return;if(!w.isPressed){I.stopPropagation();return}let R=wa(I.nativeEvent,w.activePointerId),k=!0;R&&xa(R,I.currentTarget)&&w.pointerType!=null?($(it(w.target,I),w.pointerType),k=P(it(w.target,I),w.pointerType),H(I.nativeEvent,w.target)):w.isOverTarget&&w.pointerType!=null&&(k=P(it(w.target,I),w.pointerType,!1)),k&&I.stopPropagation(),w.isPressed=!1,w.activePointerId=null,w.isOverTarget=!1,w.ignoreEmulatedMouseEvents=!0,w.target&&!f&&Ai(w.target),C()},A.onTouchCancel=I=>{ce(I.currentTarget,ie(I.nativeEvent))&&(I.stopPropagation(),w.isPressed&&x(it(w.target,I)))};let U=I=>{w.isPressed&&ce(ie(I),w.target)&&x({currentTarget:w.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};A.onDragStart=I=>{ce(I.currentTarget,ie(I.nativeEvent))&&x(I)}}return A},[m,a,c,C,f,x,E,P,S,$,N,H]);return u.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const w=oe(h.current);if(!w||!w.head||w.getElementById(Ca))return;const A=w.createElement("style");A.id=Ca,A.textContent=`
|
|
23
23
|
@layer {
|
|
24
24
|
[${Sa}] {
|
|
25
25
|
touch-action: pan-x pan-y pinch-zoom;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
`.trim(),w.head.prepend(A)},[h]),u.useEffect(()=>{let w=g.current;return()=>{var A;f||Ai((A=w.target)!==null&&A!==void 0?A:void 0);for(let B of w.disposables)B();w.disposables=[]}},[f]),{isPressed:s||b,pressProps:re(v,j,{[Sa]:!0})}}function xl(t){return t.tagName==="A"&&t.hasAttribute("href")}function Fi(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Me(i).HTMLInputElement&&!lu(i,n)||i instanceof Me(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&xl(i))&&n!=="Enter")}function ep(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function wa(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function it(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function vt(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function tp(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function np(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function xa(t,e){let n=e.getBoundingClientRect(),r=tp(t);return np(n,r)}function rp(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!xl(t)}function Ea(t,e){return t instanceof HTMLInputElement?!lu(t,e):rp(t)}const ip=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function lu(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":ip.has(t.type)}let At=null,To=new Set,Hn=new Map,Tt=!1,Io=!1;const op={Tab:!0,Escape:!0};function di(t,e){for(let n of To)n(t,e)}function lp(t){return!(t.metaKey||!ft()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Hr(t){Tt=!0,lp(t)&&(At="keyboard",di("keyboard",t))}function ke(t){At="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Tt=!0,di("pointer",t))}function au(t){Po(t)&&(Tt=!0,At="virtual")}function su(t){t.target===window||t.target===document||jr||!t.isTrusted||(!Tt&&!Io&&(At="virtual",di("virtual",t)),Tt=!1,Io=!1)}function cu(){jr||(Tt=!1,Io=!0)}function Oo(t){if(typeof window>"u"||typeof document>"u"||Hn.get(Me(t)))return;const e=Me(t),n=oe(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Tt=!0,r.apply(this,arguments)},n.addEventListener("keydown",Hr,!0),n.addEventListener("keyup",Hr,!0),n.addEventListener("click",au,!0),e.addEventListener("focus",su,!0),e.addEventListener("blur",cu,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ke,!0),n.addEventListener("pointermove",ke,!0),n.addEventListener("pointerup",ke,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",ke,!0),n.addEventListener("mousemove",ke,!0),n.addEventListener("mouseup",ke,!0)),e.addEventListener("beforeunload",()=>{uu(t)},{once:!0}),Hn.set(e,{focus:r})}const uu=(t,e)=>{const n=Me(t),r=oe(t);e&&r.removeEventListener("DOMContentLoaded",e),Hn.has(n)&&(n.HTMLElement.prototype.focus=Hn.get(n).focus,r.removeEventListener("keydown",Hr,!0),r.removeEventListener("keyup",Hr,!0),r.removeEventListener("click",au,!0),n.removeEventListener("focus",su,!0),n.removeEventListener("blur",cu,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ke,!0),r.removeEventListener("pointermove",ke,!0),r.removeEventListener("pointerup",ke,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",ke,!0),r.removeEventListener("mousemove",ke,!0),r.removeEventListener("mouseup",ke,!0)),Hn.delete(n))};function ap(t){const e=oe(t);let n;return e.readyState!=="loading"?Oo(t):(n=()=>{Oo(t)},e.addEventListener("DOMContentLoaded",n)),()=>uu(t,n)}typeof document<"u"&&ap();function pn(){return At!=="pointer"}function zr(){return At}function du(t){At=t,di(t,null)}const sp=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function cp(t,e,n){let r=oe(n==null?void 0:n.target);const i=typeof window<"u"?Me(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?Me(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?Me(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?Me(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||r.activeElement instanceof i&&!sp.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof l&&r.activeElement.isContentEditable,!(t&&e==="keyboard"&&n instanceof a&&!op[n.key])}function up(t,e,n){Oo(),u.useEffect(()=>{let r=(i,o)=>{cp(!!(n!=null&&n.isTextInput),i,o)&&t(pn())};return To.add(r),()=>{To.delete(r)}},e)}function vn(t){const e=oe(t),n=Ce(e);if(zr()==="virtual"){let r=n;Yc(()=>{Ce(e)===r&&t.isConnected&&ze(t)})}else ze(t)}function El(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=u.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=iu(o),a=u.useCallback(s=>{const c=oe(s.target),d=c?Ce(c):Ce();s.target===s.currentTarget&&d===ie(s.nativeEvent)&&(n&&n(s),i&&i(!0),l(s))},[i,n,l]);return{focusProps:{onFocus:!e&&(n||i||r)?a:void 0,onBlur:!e&&(r||i)?o:void 0}}}function $a(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(r),e&&n.stopPropagation()}}function fu(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:$a(t.onKeyDown),onKeyUp:$a(t.onKeyUp)}}}let ko=u.createContext(null);function dp(t){let e=u.useContext(ko)||{};Zc(e,t);let{ref:n,...r}=e;return r}function hu(t,e){let{focusProps:n}=El(t),{keyboardProps:r}=fu(t),i=re(n,r),o=dp(e),l=t.isDisabled?{}:o,a=u.useRef(t.autoFocus);u.useEffect(()=>{a.current&&e.current&&vn(e.current),a.current=!1},[e]);let s=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(s=void 0),{focusableProps:re({...i,tabIndex:s},l)}}function fp({children:t}){let e=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(wl.Provider,{value:e},t)}function fi(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=u.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=li(),s=u.useCallback(f=>{f.currentTarget.contains(f.target)&&o.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(o.current.isFocusWithin=!1,a(),n&&n(f),i&&i(!1))},[n,i,o,a]),c=iu(s),d=u.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const h=oe(f.target),v=Ce(h);if(!o.current.isFocusWithin&&v===ie(f.nativeEvent)){r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,c(f);let b=f.currentTarget;l(h,"focus",p=>{if(o.current.isFocusWithin&&!ce(b,p.target)){let g=new h.defaultView.FocusEvent("blur",{relatedTarget:p.target});ru(g,b);let m=Sl(g);s(m)}},{capture:!0})}},[r,i,c,l,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let Vr=!1,Ki=0;function No(){Vr=!0,setTimeout(()=>{Vr=!1},50)}function Pa(t){t.pointerType==="touch"&&No()}function hp(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Pa):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",No),Ki++,()=>{Ki--,!(Ki>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Pa):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",No))}}function Cn(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=u.useState(!1),a=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(hp,[]);let{addGlobalListener:s,removeAllGlobalListeners:c}=li(),{hoverProps:d,triggerHoverEnd:f}=u.useMemo(()=>{let h=(p,g)=>{if(a.pointerType=g,i||g==="touch"||a.isHovered||!p.currentTarget.contains(p.target))return;a.isHovered=!0;let m=p.currentTarget;a.target=m,s(oe(p.target),"pointerover",C=>{a.isHovered&&a.target&&!ce(a.target,C.target)&&v(C,C.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:m,pointerType:g}),n&&n(!0),l(!0)},v=(p,g)=>{let m=a.target;a.pointerType="",a.target=null,!(g==="touch"||!a.isHovered||!m)&&(a.isHovered=!1,c(),r&&r({type:"hoverend",target:m,pointerType:g}),n&&n(!1),l(!1))},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=p=>{Vr&&p.pointerType==="mouse"||h(p,p.pointerType)},b.onPointerLeave=p=>{!i&&p.currentTarget.contains(p.target)&&v(p,p.pointerType)}):process.env.NODE_ENV==="test"&&(b.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=p=>{!a.ignoreEmulatedMouseEvents&&!Vr&&h(p,"mouse"),a.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=p=>{!i&&p.currentTarget.contains(p.target)&&v(p,"mouse")}),{hoverProps:b,triggerHoverEnd:v}},[e,n,r,i,a,s,c]);return u.useEffect(()=>{i&&f({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:d,isHovered:o}}function pp(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=he(s=>{n&&sr(s,e)&&(i&&i(s),o.current.isPointerDown=!0)}),a=he(s=>{n&&n(s)});u.useEffect(()=>{let s=o.current;if(r)return;const c=e.current,d=oe(c);if(typeof PointerEvent<"u"){let f=h=>{s.isPointerDown&&sr(h,e)&&a(h),s.isPointerDown=!1};return d.addEventListener("pointerdown",l,!0),d.addEventListener("click",f,!0),()=>{d.removeEventListener("pointerdown",l,!0),d.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=v=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&sr(v,e)&&a(v),s.isPointerDown=!1},h=v=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&sr(v,e)&&a(v),s.isPointerDown=!1};return d.addEventListener("mousedown",l,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",l,!0),d.addEventListener("touchend",h,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",h,!0)}}},[e,r,l,a])}function sr(t,e){if(t.button>0)return!1;if(t.target){const n=t.target.ownerDocument;if(!n||!n.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const vp=500;function pu(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=vp,accessibilityDescription:l}=t;const a=u.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:c}=li(),{pressProps:d}=ui({isDisabled:e,onPressStart(h){if(h.continuePropagation(),(h.pointerType==="mouse"||h.pointerType==="touch")&&(n&&n({...h,type:"longpressstart"}),a.current=setTimeout(()=>{h.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),oe(h.target).activeElement!==h.target&&ze(h.target),i&&i({...h,type:"longpress"}),a.current=void 0},o),h.pointerType==="touch")){let v=b=>{b.preventDefault()};s(h.target,"contextmenu",v,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{c(h.target,"contextmenu",v)},30)},{once:!0})}},onPressEnd(h){a.current&&clearTimeout(a.current),r&&(h.pointerType==="mouse"||h.pointerType==="touch")&&r({...h,type:"longpressend"})}}),f=Nh(i&&!e?l:void 0);return{longPressProps:re(d,f)}}var cr={exports:{}},ji={};/**
|
|
28
|
+
`.trim(),w.head.prepend(A)},[h]),u.useEffect(()=>{let w=g.current;return()=>{var A;f||Ai((A=w.target)!==null&&A!==void 0?A:void 0);for(let B of w.disposables)B();w.disposables=[]}},[f]),{isPressed:s||y,pressProps:re(v,j,{[Sa]:!0})}}function xl(t){return t.tagName==="A"&&t.hasAttribute("href")}function Fi(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Me(i).HTMLInputElement&&!lu(i,n)||i instanceof Me(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&xl(i))&&n!=="Enter")}function Q1(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function wa(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function it(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function vt(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function eh(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function th(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function xa(t,e){let n=e.getBoundingClientRect(),r=eh(t);return th(n,r)}function nh(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!xl(t)}function Ea(t,e){return t instanceof HTMLInputElement?!lu(t,e):nh(t)}const rh=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function lu(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":rh.has(t.type)}let At=null,_o=new Set,Hn=new Map,_t=!1,Io=!1;const ih={Tab:!0,Escape:!0};function di(t,e){for(let n of _o)n(t,e)}function oh(t){return!(t.metaKey||!ft()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Hr(t){_t=!0,oh(t)&&(At="keyboard",di("keyboard",t))}function ke(t){At="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(_t=!0,di("pointer",t))}function au(t){Po(t)&&(_t=!0,At="virtual")}function su(t){t.target===window||t.target===document||jr||!t.isTrusted||(!_t&&!Io&&(At="virtual",di("virtual",t)),_t=!1,Io=!1)}function cu(){jr||(_t=!1,Io=!0)}function Oo(t){if(typeof window>"u"||typeof document>"u"||Hn.get(Me(t)))return;const e=Me(t),n=oe(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){_t=!0,r.apply(this,arguments)},n.addEventListener("keydown",Hr,!0),n.addEventListener("keyup",Hr,!0),n.addEventListener("click",au,!0),e.addEventListener("focus",su,!0),e.addEventListener("blur",cu,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ke,!0),n.addEventListener("pointermove",ke,!0),n.addEventListener("pointerup",ke,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",ke,!0),n.addEventListener("mousemove",ke,!0),n.addEventListener("mouseup",ke,!0)),e.addEventListener("beforeunload",()=>{uu(t)},{once:!0}),Hn.set(e,{focus:r})}const uu=(t,e)=>{const n=Me(t),r=oe(t);e&&r.removeEventListener("DOMContentLoaded",e),Hn.has(n)&&(n.HTMLElement.prototype.focus=Hn.get(n).focus,r.removeEventListener("keydown",Hr,!0),r.removeEventListener("keyup",Hr,!0),r.removeEventListener("click",au,!0),n.removeEventListener("focus",su,!0),n.removeEventListener("blur",cu,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ke,!0),r.removeEventListener("pointermove",ke,!0),r.removeEventListener("pointerup",ke,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",ke,!0),r.removeEventListener("mousemove",ke,!0),r.removeEventListener("mouseup",ke,!0)),Hn.delete(n))};function lh(t){const e=oe(t);let n;return e.readyState!=="loading"?Oo(t):(n=()=>{Oo(t)},e.addEventListener("DOMContentLoaded",n)),()=>uu(t,n)}typeof document<"u"&&lh();function pn(){return At!=="pointer"}function Vr(){return At}function du(t){At=t,di(t,null)}const ah=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function sh(t,e,n){let r=oe(n==null?void 0:n.target);const i=typeof window<"u"?Me(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?Me(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?Me(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?Me(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||r.activeElement instanceof i&&!ah.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof l&&r.activeElement.isContentEditable,!(t&&e==="keyboard"&&n instanceof a&&!ih[n.key])}function ch(t,e,n){Oo(),u.useEffect(()=>{let r=(i,o)=>{sh(!!(n!=null&&n.isTextInput),i,o)&&t(pn())};return _o.add(r),()=>{_o.delete(r)}},e)}function vn(t){const e=oe(t),n=Ce(e);if(Vr()==="virtual"){let r=n;qc(()=>{Ce(e)===r&&t.isConnected&&Ve(t)})}else Ve(t)}function El(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=u.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=iu(o),a=u.useCallback(s=>{const c=oe(s.target),d=c?Ce(c):Ce();s.target===s.currentTarget&&d===ie(s.nativeEvent)&&(n&&n(s),i&&i(!0),l(s))},[i,n,l]);return{focusProps:{onFocus:!e&&(n||i||r)?a:void 0,onBlur:!e&&(r||i)?o:void 0}}}function $a(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(r),e&&n.stopPropagation()}}function fu(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:$a(t.onKeyDown),onKeyUp:$a(t.onKeyUp)}}}let ko=u.createContext(null);function uh(t){let e=u.useContext(ko)||{};Yc(e,t);let{ref:n,...r}=e;return r}function hu(t,e){let{focusProps:n}=El(t),{keyboardProps:r}=fu(t),i=re(n,r),o=uh(e),l=t.isDisabled?{}:o,a=u.useRef(t.autoFocus);u.useEffect(()=>{a.current&&e.current&&vn(e.current),a.current=!1},[e]);let s=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(s=void 0),{focusableProps:re({...i,tabIndex:s},l)}}function dh({children:t}){let e=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(wl.Provider,{value:e},t)}function fi(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=u.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=li(),s=u.useCallback(f=>{f.currentTarget.contains(f.target)&&o.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(o.current.isFocusWithin=!1,a(),n&&n(f),i&&i(!1))},[n,i,o,a]),c=iu(s),d=u.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const h=oe(f.target),v=Ce(h);if(!o.current.isFocusWithin&&v===ie(f.nativeEvent)){r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,c(f);let y=f.currentTarget;l(h,"focus",p=>{if(o.current.isFocusWithin&&!ce(y,p.target)){let g=new h.defaultView.FocusEvent("blur",{relatedTarget:p.target});ru(g,y);let m=Sl(g);s(m)}},{capture:!0})}},[r,i,c,l,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let zr=!1,Ki=0;function No(){zr=!0,setTimeout(()=>{zr=!1},50)}function Pa(t){t.pointerType==="touch"&&No()}function fh(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Pa):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",No),Ki++,()=>{Ki--,!(Ki>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Pa):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",No))}}function Cn(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=u.useState(!1),a=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(fh,[]);let{addGlobalListener:s,removeAllGlobalListeners:c}=li(),{hoverProps:d,triggerHoverEnd:f}=u.useMemo(()=>{let h=(p,g)=>{if(a.pointerType=g,i||g==="touch"||a.isHovered||!p.currentTarget.contains(p.target))return;a.isHovered=!0;let m=p.currentTarget;a.target=m,s(oe(p.target),"pointerover",C=>{a.isHovered&&a.target&&!ce(a.target,C.target)&&v(C,C.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:m,pointerType:g}),n&&n(!0),l(!0)},v=(p,g)=>{let m=a.target;a.pointerType="",a.target=null,!(g==="touch"||!a.isHovered||!m)&&(a.isHovered=!1,c(),r&&r({type:"hoverend",target:m,pointerType:g}),n&&n(!1),l(!1))},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=p=>{zr&&p.pointerType==="mouse"||h(p,p.pointerType)},y.onPointerLeave=p=>{!i&&p.currentTarget.contains(p.target)&&v(p,p.pointerType)}):process.env.NODE_ENV==="test"&&(y.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=p=>{!a.ignoreEmulatedMouseEvents&&!zr&&h(p,"mouse"),a.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=p=>{!i&&p.currentTarget.contains(p.target)&&v(p,"mouse")}),{hoverProps:y,triggerHoverEnd:v}},[e,n,r,i,a,s,c]);return u.useEffect(()=>{i&&f({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:d,isHovered:o}}function hh(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=he(s=>{n&&sr(s,e)&&(i&&i(s),o.current.isPointerDown=!0)}),a=he(s=>{n&&n(s)});u.useEffect(()=>{let s=o.current;if(r)return;const c=e.current,d=oe(c);if(typeof PointerEvent<"u"){let f=h=>{s.isPointerDown&&sr(h,e)&&a(h),s.isPointerDown=!1};return d.addEventListener("pointerdown",l,!0),d.addEventListener("click",f,!0),()=>{d.removeEventListener("pointerdown",l,!0),d.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=v=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&sr(v,e)&&a(v),s.isPointerDown=!1},h=v=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&sr(v,e)&&a(v),s.isPointerDown=!1};return d.addEventListener("mousedown",l,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",l,!0),d.addEventListener("touchend",h,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",h,!0)}}},[e,r,l,a])}function sr(t,e){if(t.button>0)return!1;if(t.target){const n=t.target.ownerDocument;if(!n||!n.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const ph=500;function pu(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=ph,accessibilityDescription:l}=t;const a=u.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:c}=li(),{pressProps:d}=ui({isDisabled:e,onPressStart(h){if(h.continuePropagation(),(h.pointerType==="mouse"||h.pointerType==="touch")&&(n&&n({...h,type:"longpressstart"}),a.current=setTimeout(()=>{h.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),oe(h.target).activeElement!==h.target&&Ve(h.target),i&&i({...h,type:"longpress"}),a.current=void 0},o),h.pointerType==="touch")){let v=y=>{y.preventDefault()};s(h.target,"contextmenu",v,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{c(h.target,"contextmenu",v)},30)},{once:!0})}},onPressEnd(h){a.current&&clearTimeout(a.current),r&&(h.pointerType==="mouse"||h.pointerType==="touch")&&r({...h,type:"longpressend"})}}),f=k1(i&&!e?l:void 0);return{longPressProps:re(d,f)}}var cr={exports:{}},ji={};/**
|
|
29
29
|
* @license React
|
|
30
30
|
* use-sync-external-store-shim.production.js
|
|
31
31
|
*
|
|
@@ -33,7 +33,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/var Da;function
|
|
36
|
+
*/var Da;function vh(){if(Da)return ji;Da=1;var t=u;function e(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,o=t.useLayoutEffect,l=t.useDebugValue;function a(f,h){var v=h(),y=r({inst:{value:v,getSnapshot:h}}),p=y[0].inst,g=y[1];return o(function(){p.value=v,p.getSnapshot=h,s(p)&&g({inst:p})},[f,v,h]),i(function(){return s(p)&&g({inst:p}),f(function(){s(p)&&g({inst:p})})},[f]),l(v),v}function s(f){var h=f.getSnapshot;f=f.value;try{var v=h();return!n(f,v)}catch{return!0}}function c(f,h){return h()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return ji.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,ji}var Hi={};/**
|
|
37
37
|
* @license React
|
|
38
38
|
* use-sync-external-store-shim.development.js
|
|
39
39
|
*
|
|
@@ -41,8 +41,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
41
41
|
*
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/var _a;function mp(){return _a||(_a=1,process.env.NODE_ENV!=="production"&&function(){function t(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}function e(v,b){d||i.startTransition===void 0||(d=!0,console.error("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 p=b();if(!f){var g=b();o(p,g)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}g=l({inst:{value:p,getSnapshot:b}});var m=g[0].inst,C=g[1];return s(function(){m.value=p,m.getSnapshot=b,n(m)&&C({inst:m})},[v,p,b]),a(function(){return n(m)&&C({inst:m}),v(function(){n(m)&&C({inst:m})})},[v]),c(p),p}function n(v){var b=v.getSnapshot;v=v.value;try{var p=b();return!o(v,p)}catch{return!0}}function r(v,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=u,o=typeof Object.is=="function"?Object.is:t,l=i.useState,a=i.useEffect,s=i.useLayoutEffect,c=i.useDebugValue,d=!1,f=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Hi.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Hi}var Ta;function bp(){return Ta||(Ta=1,process.env.NODE_ENV==="production"?cr.exports=gp():cr.exports=mp()),cr.exports}var $l=bp();const vu=u.createContext(!1),Un=u.createContext(null);function hi(t){if(u.useContext(Un))return t.content;let{collection:n,document:r}=wp(t.createCollection);return u.createElement(u.Fragment,null,u.createElement(Wh,null,u.createElement(Un.Provider,{value:r},t.content)),u.createElement(yp,{render:t.children,collection:n}))}function yp({collection:t,render:e}){return e(t)}function Cp(t,e,n){let r=Qn(),i=u.useRef(r);i.current=r;let o=u.useCallback(()=>i.current?n():e(),[e,n]);return $l.useSyncExternalStore(t,o)}const Sp=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:Cp;function wp(t){let[e]=u.useState(()=>new Uh((t==null?void 0:t())||new yl)),n=u.useCallback(l=>e.subscribe(l),[e]),r=u.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=u.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=Sp(n,r,i);return ne(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const Ro=u.createContext(null);function xp(t,e,n,r,i,o){let l=u.useCallback(s=>{s==null||s.setProps(e,n,r,o)},[e,n,r,o]),a=u.useContext(Ro);if(a){let s=a.ownerDocument.nodesByProps.get(e);return s||(s=a.ownerDocument.createElement(t),s.setProps(e,n,r,o),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(e,s)),i?u.createElement(Ro.Provider,{value:s},i):null}return u.createElement(t,{ref:l},i)}function pi(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=u.forwardRef((i,o)=>{let l=u.useContext(ko);if(!u.useContext(vu)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return xp(t,i,o,"children"in i?i.children:null,null,s=>u.createElement(ko.Provider,{value:l},u.createElement(n,{node:s})))});return r.displayName=e.name,r}function Ep(t){return nu({...t,addIdAndValue:!0})}const Ia=u.createContext(null);function Pl(t){let e=u.useContext(Ia),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope||(e==null?void 0:e.idScope),i=Ep({...t,idScope:r,dependencies:n});return u.useContext(Un)&&(i=u.createElement($p,null,i)),e=u.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),u.createElement(Ia.Provider,{value:e},i)}function $p({children:t}){let e=u.useContext(Un),n=u.useMemo(()=>u.createElement(Un.Provider,{value:null},u.createElement(vu.Provider,{value:!0},t)),[t]);return Qn()?u.createElement(Ro.Provider,{value:e},n):Lt.createPortal(n,e)}const Pp=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Dp=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function _p(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Pp.has(n.script)}let e=t.split("-")[0];return Dp.has(e)}const Tp=Symbol.for("react-aria.i18n.locale");function gu(){let t=typeof window<"u"&&window[Tp]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:_p(t)?"rtl":"ltr"}}let Mo=gu(),Mn=new Set;function Oa(){Mo=gu();for(let t of Mn)t(Mo)}function Ip(){let t=Qn(),[e,n]=u.useState(Mo);return u.useEffect(()=>(Mn.size===0&&window.addEventListener("languagechange",Oa),Mn.add(n),()=>{Mn.delete(n),Mn.size===0&&window.removeEventListener("languagechange",Oa)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const Op=u.createContext(null);function Ft(){let t=Ip();return u.useContext(Op)||t}var Ge=function(){return Ge=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ge.apply(this,arguments)};function mu(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function kp(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}const Np=Symbol.for("react-aria.i18n.locale"),Rp=Symbol.for("react-aria.i18n.strings");let zt;class vi{getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=Mp(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[Np];if(zt===void 0){let i=window[Rp];if(!i)return null;zt={};for(let o in i)zt[o]=new vi({[n]:i[o]},n)}let r=zt==null?void 0:zt[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}}function Mp(t,e,n="en-US"){if(e[t])return e[t];let r=Lp(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function Lp(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const ka=new Map,Na=new Map;class Ap{format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let i=n["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,l=ka.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),ka.set(o,l));let a=l.select(e);return i=n[a]||n.other,typeof i=="function"?i():i}number(e){let n=Na.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Na.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}constructor(e,n){this.locale=e,this.strings=n}}const Ra=new WeakMap;function Fp(t){let e=Ra.get(t);return e||(e=new vi(t),Ra.set(t,e)),e}function Kp(t,e){return e&&vi.getGlobalDictionaryForPackage(e)||Fp(t)}function bu(t,e){let{locale:n}=Ft(),r=Kp(t,e);return u.useMemo(()=>new Ap(n,r),[n,r])}let zi=new Map;function Dl(t){let{locale:e}=Ft(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(zi.has(n))return zi.get(n);let r=new Intl.Collator(e,t);return zi.set(n,r),r}function jp(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:a,onPressChange:s,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:h,target:v,rel:b,type:p="button"}=t,g;n==="button"?g={type:p,disabled:r}:g={role:"button",href:n==="a"&&!r?h:void 0,target:n==="a"?v:void 0,type:n==="input"?p:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?b:void 0};let{pressProps:m,isPressed:C}=ui({onPressStart:o,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:a,onClick:f,isDisabled:r,preventFocusOnPress:c,ref:e}),{focusableProps:S}=hu(t,e);d&&(S.tabIndex=r?-1:S.tabIndex);let P=re(S,m,pe(t,{labelable:!0}));return{isPressed:C,buttonProps:re(g,P,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"]})}}function Hp(t){const e=Me(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:l,visibility:a}=o(t);i=l!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function zp(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function yu(t,e){return t.nodeName!=="#comment"&&Hp(t)&&zp(t,e)&&(!t.parentElement||yu(t.parentElement,t))}const Ma=u.createContext(null),Lo="react-aria-focus-scope-restore";let ae=null;function _l(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=u.useRef(null),l=u.useRef(null),a=u.useRef([]),{parentNode:s}=u.useContext(Ma)||{},c=u.useMemo(()=>new Fo({scopeRef:a}),[a]);ne(()=>{let h=s||fe.root;if(fe.getTreeNode(h.scopeRef)&&ae&&!Br(ae,h.scopeRef)){let v=fe.getTreeNode(ae);v&&(h=v)}h.addChild(c),fe.addNode(c)},[c,s]),ne(()=>{let h=fe.getTreeNode(a);h&&(h.contain=!!n)},[n]),ne(()=>{var h;let v=(h=o.current)===null||h===void 0?void 0:h.nextSibling,b=[],p=g=>g.stopPropagation();for(;v&&v!==l.current;)b.push(v),v.addEventListener(Lo,p),v=v.nextSibling;return a.current=b,()=>{for(let g of b)g.removeEventListener(Lo,p)}},[e]),Gp(a,r,n),Bp(a,n),qp(a,r,n),Wp(a,i),u.useEffect(()=>{const h=Ce(oe(a.current?a.current[0]:void 0));let v=null;if(Ae(h,a.current)){for(let b of fe.traverse())b.scopeRef&&Ae(h,b.scopeRef.current)&&(v=b);v===fe.getTreeNode(a)&&(ae=v.scopeRef)}},[a]),ne(()=>()=>{var h,v,b;let p=(b=(v=fe.getTreeNode(a))===null||v===void 0||(h=v.parent)===null||h===void 0?void 0:h.scopeRef)!==null&&b!==void 0?b:null;(a===ae||Br(a,ae))&&(!p||fe.getTreeNode(p))&&(ae=p),fe.removeTreeNode(a)},[a]);let d=u.useMemo(()=>Vp(a),[]),f=u.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return u.createElement(Ma.Provider,{value:f},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Vp(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||Ce(oe((a=n[0])!==null&&a!==void 0?a:void 0)),c=n[0].previousElementSibling,d=Ct(n),f=qe(d,{tabbable:i,accept:l},n);f.currentNode=Ae(s,n)?s:c;let h=f.nextNode();return!h&&o&&(f.currentNode=c,h=f.nextNode()),h&&Je(h,!0),h},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||Ce(oe((a=n[0])!==null&&a!==void 0?a:void 0)),c=n[n.length-1].nextElementSibling,d=Ct(n),f=qe(d,{tabbable:i,accept:l},n);f.currentNode=Ae(s,n)?s:c;let h=f.previousNode();return!h&&o&&(f.currentNode=c,h=f.previousNode()),h&&Je(h,!0),h},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ct(n),l=qe(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let a=l.nextNode();return a&&Je(a,!0),a},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ct(n),l=qe(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let a=l.previousNode();return a&&Je(a,!0),a}}}function Ct(t){return t[0].parentElement}function Ln(t){let e=fe.getTreeNode(ae);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Bp(t,e){let n=u.useRef(void 0),r=u.useRef(void 0);ne(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=oe(i?i[0]:void 0);let l=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!Ln(t)||c.isComposing)return;let d=Ce(o),f=t.current;if(!f||!Ae(d,f))return;let h=Ct(f),v=qe(h,{tabbable:!0},f);if(!d)return;v.currentNode=d;let b=c.shiftKey?v.previousNode():v.nextNode();b||(v.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=c.shiftKey?v.previousNode():v.nextNode()),c.preventDefault(),b&&Je(b,!0)},a=c=>{(!ae||Br(ae,t))&&Ae(ie(c),t.current)?(ae=t,n.current=ie(c)):Ln(t)&&!ut(ie(c),t)?n.current?n.current.focus():ae&&ae.current&&Ao(ae.current):Ln(t)&&(n.current=ie(c))},s=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=zr(),f=(d==="virtual"||d===null)&&hl()&&qc(),h=Ce(o);if(!f&&h&&Ln(t)&&!ut(h,t)){ae=t;let b=ie(c);if(b&&b.isConnected){var v;n.current=b,(v=n.current)===null||v===void 0||v.focus()}else ae.current&&Ao(ae.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",a,!1),i==null||i.forEach(c=>c.addEventListener("focusin",a,!1)),i==null||i.forEach(c=>c.addEventListener("focusout",s,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",a,!1),i==null||i.forEach(c=>c.removeEventListener("focusin",a,!1)),i==null||i.forEach(c=>c.removeEventListener("focusout",s,!1))}},[t,e]),ne(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Cu(t){return ut(t)}function Ae(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function ut(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of fe.traverse(fe.getTreeNode(e)))if(n&&Ae(t,n.current))return!0;return!1}function Up(t){return ut(t,ae)}function Br(t,e){var n;let r=(n=fe.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function Je(t,e=!1){if(t!=null&&!e)try{vn(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Su(t,e=!0){let n=t[0].previousElementSibling,r=Ct(t),i=qe(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=Ct(t),i=qe(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function Ao(t,e=!0){Je(Su(t,e))}function Wp(t,e){const n=u.useRef(e);u.useEffect(()=>{if(n.current){ae=t;const r=oe(t.current?t.current[0]:void 0);!Ae(Ce(r),ae.current)&&t.current&&Ao(t.current)}n.current=!1},[t])}function Gp(t,e,n){ne(()=>{if(e||n)return;let r=t.current;const i=oe(r?r[0]:void 0);let o=l=>{let a=ie(l);Ae(a,t.current)?ae=t:Cu(a)||(ae=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",o,!1))}},[t,e,n])}function La(t){let e=fe.getTreeNode(ae);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function qp(t,e,n){const r=u.useRef(typeof document<"u"?Ce(oe(t.current?t.current[0]:void 0)):null);ne(()=>{let i=t.current;const o=oe(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!ae||Br(ae,t))&&Ae(Ce(o),t.current)&&(ae=t)};return o.addEventListener("focusin",l,!1),i==null||i.forEach(a=>a.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),i==null||i.forEach(a=>a.removeEventListener("focusin",l,!1))}},[t,n]),ne(()=>{const i=oe(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Ln(t)||l.isComposing)return;let a=i.activeElement;if(!ut(a,t)||!La(t))return;let s=fe.getTreeNode(t);if(!s)return;let c=s.nodeToRestore,d=qe(i.body,{tabbable:!0});d.currentNode=a;let f=l.shiftKey?d.previousNode():d.nextNode();if((!c||!c.isConnected||c===i.body)&&(c=void 0,s.nodeToRestore=void 0),(!f||!ut(f,t))&&c){d.currentNode=c;do f=l.shiftKey?d.previousNode():d.nextNode();while(ut(f,t));l.preventDefault(),l.stopPropagation(),f?Je(f,!0):Cu(c)?Je(c,!0):a.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),ne(()=>{const i=oe(t.current?t.current[0]:void 0);if(!e)return;let o=fe.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let a=fe.getTreeNode(t);if(!a)return;let s=a.nodeToRestore,c=Ce(i);if(e&&s&&(c&&ut(c,t)||c===i.body&&La(t))){let d=fe.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){Aa(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&fe.getTreeNode(f.scopeRef)){let h=Su(f.scopeRef.current,!0);Aa(h);return}f=f.parent}}})}}}},[t,e])}function Aa(t){t.dispatchEvent(new CustomEvent(Lo,{bubbles:!0,cancelable:!0}))&&Je(t)}function qe(t,e,n){let r=e!=null&&e.tabbable?Vh:eu,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=oe(i),l=vh(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(e==null||(s=e.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:r(a)&&yu(a)&&(!n||Ae(a,n))&&(!(e!=null&&e.accept)||e.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}class Tl{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new Fo({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ae(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var e;let n=new Tl;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Fo({scopeRef:null}),this.fastMap.set(null,this.root)}}class Fo{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let fe=new Tl;function Sn(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=u.useRef({isFocused:!1,isFocusVisible:e||pn()}),[o,l]=u.useState(!1),[a,s]=u.useState(()=>i.current.isFocused&&i.current.isFocusVisible),c=u.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),d=u.useCallback(v=>{i.current.isFocused=v,l(v),c()},[c]);up(v=>{i.current.isFocusVisible=v,c()},[],{isTextInput:n});let{focusProps:f}=El({isDisabled:r,onFocusChange:d}),{focusWithinProps:h}=fi({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?h:f}}function Yp(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=u.useState(!1);return ne(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let a=qe(t.current,{tabbable:!0});i(!!a.nextNode())}};o();let l=new MutationObserver(o);return l.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function wu(t){let e=Jp(oe(t));e!==t&&(e&&Zp(e,t),t&&Xp(t,e))}function Zp(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Xp(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Jp(t){let e=Ce(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const xu=7e3;let Be=null;function Fa(t,e="assertive",n=xu){Be?Be.announce(t,e,n):(Be=new Qp,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Be.announce(t,e,n):setTimeout(()=>{Be!=null&&Be.isAttached()&&(Be==null||Be.announce(t,e,n))},100))}class Qp{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=xu){var i,o;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(l):(o=this.politeLog)===null||o===void 0||o.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const Eu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},$u={...Eu,customError:!0,valid:!1},Dn={isInvalid:!1,validationDetails:Eu,validationErrors:[]},ev=u.createContext({}),Ka="__formValidationState"+Date.now();function tv(t){if(t[Ka]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[Ka];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return nv(t)}function nv(t){let{isInvalid:e,validationState:n,name:r,value:i,builtinValidation:o,validate:l,validationBehavior:a="aria"}=t;n&&(e||(e=n==="invalid"));let s=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:$u}:null,c=u.useMemo(()=>{if(!l||i==null)return null;let j=rv(l,i);return ja(j)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let d=u.useContext(ev),f=u.useMemo(()=>r?Array.isArray(r)?r.flatMap(j=>Ko(d[j])):Ko(d[r]):[],[d,r]),[h,v]=u.useState(d),[b,p]=u.useState(!1);d!==h&&(v(d),p(!1));let g=u.useMemo(()=>ja(b?[]:f),[b,f]),m=u.useRef(Dn),[C,S]=u.useState(Dn),P=u.useRef(Dn),$=()=>{if(!x)return;E(!1);let j=c||o||m.current;Vi(j,P.current)||(P.current=j,S(j))},[x,E]=u.useState(!1);return u.useEffect($),{realtimeValidation:s||g||c||o||Dn,displayValidation:a==="native"?s||g||C:s||g||c||o||C,updateValidation(j){a==="aria"&&!Vi(C,j)?S(j):m.current=j},resetValidation(){let j=Dn;Vi(j,P.current)||(P.current=j,S(j)),a==="native"&&E(!1),p(!0)},commitValidation(){a==="native"&&E(!0),p(!0)}}}function Ko(t){return t?Array.isArray(t)?t:[t]:[]}function rv(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return Ko(n)}return[]}function ja(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:$u}:null}function Vi(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,r)=>n===e.validationErrors[r])&&Object.entries(t.validationDetails).every(([n,r])=>e.validationDetails[n]===r)}function iv(t,e,n){let{validationBehavior:r,focus:i}=t;ne(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let s=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(s),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(lv(n.current))}});let o=he(()=>{e.resetValidation()}),l=he(s=>{var c;e.displayValidation.isInvalid||e.commitValidation();let d=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!s.defaultPrevented&&n&&d&&av(d)===n.current){var f;i?i():(f=n.current)===null||f===void 0||f.focus(),du("keyboard")}s.preventDefault()}),a=he(()=>{e.commitValidation()});u.useEffect(()=>{let s=n==null?void 0:n.current;if(!s)return;let c=s.form;return s.addEventListener("invalid",l),s.addEventListener("change",a),c==null||c.addEventListener("reset",o),()=>{s.removeEventListener("invalid",l),s.removeEventListener("change",a),c==null||c.removeEventListener("reset",o)}},[n,l,a,o,r])}function ov(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function lv(t){return{isInvalid:!t.validity.valid,validationDetails:ov(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function av(t){for(let e=0;e<t.elements.length;e++){let n=t.elements[e];if(!n.validity.valid)return n}return null}function Pu(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=Se(e);let l=Se(),a={};n?(r=r?`${l} ${r}`:l,a={id:l,htmlFor:o==="label"?e:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=ai({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:s}}function sv(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=Pu(t),a=xt([!!e,!!n,r,i]),s=xt([!!e,!!n,r,i]);return l=re(l,{"aria-describedby":[a,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:s}}}const Ha={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Du(t={}){let{style:e,isFocusable:n}=t,[r,i]=u.useState(!1),{focusWithinProps:o}=fi({isDisabled:!n,onFocusWithinChange:a=>i(a)}),l=u.useMemo(()=>r?e:e?{...Ha,...e}:Ha,[r]);return{visuallyHiddenProps:{...o,style:l}}}function cv(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=Du(t);return u.createElement(n,re(o,l),e)}const Ye={top:"top",bottom:"top",left:"left",right:"left"},Ur={top:"bottom",bottom:"top",left:"right",right:"left"},uv={top:"left",left:"top"},jo={top:"height",left:"width"},_u={width:"totalWidth",height:"totalHeight"},ur={};let ve=typeof document<"u"?window.visualViewport:null;function za(t){let e=0,n=0,r=0,i=0,o=0,l=0,a={};var s;let c=((s=ve==null?void 0:ve.scale)!==null&&s!==void 0?s:1)>1;if(t.tagName==="BODY"){let b=document.documentElement;r=b.clientWidth,i=b.clientHeight;var d;e=(d=ve==null?void 0:ve.width)!==null&&d!==void 0?d:r;var f;n=(f=ve==null?void 0:ve.height)!==null&&f!==void 0?f:i,a.top=b.scrollTop||t.scrollTop,a.left=b.scrollLeft||t.scrollLeft,ve&&(o=ve.offsetTop,l=ve.offsetLeft)}else({width:e,height:n,top:o,left:l}=cn(t)),a.top=t.scrollTop,a.left=t.scrollLeft,r=e,i=n;if(fl()&&(t.tagName==="BODY"||t.tagName==="HTML")&&c){a.top=0,a.left=0;var h;o=(h=ve==null?void 0:ve.pageTop)!==null&&h!==void 0?h:0;var v;l=(v=ve==null?void 0:ve.pageLeft)!==null&&v!==void 0?v:0}return{width:e,height:n,totalWidth:r,totalHeight:i,scroll:a,top:o,left:l}}function dv(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Va(t,e,n,r,i,o,l){var a;let s=(a=i.scroll[t])!==null&&a!==void 0?a:0,c=r[jo[t]],d=r.scroll[Ye[t]]+o,f=c+r.scroll[Ye[t]]-o,h=e-s+l[t]-r[Ye[t]],v=e-s+n+l[t]-r[Ye[t]];return h<d?d-h:v>f?Math.max(f-v,d-h):0}function fv(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function Ba(t){if(ur[t])return ur[t];let[e,n]=t.split(" "),r=Ye[e]||"right",i=uv[r];Ye[n]||(n="center");let o=jo[r],l=jo[i];return ur[t]={placement:e,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:l},ur[t]}function Bi(t,e,n,r,i,o,l,a,s,c){let{placement:d,crossPlacement:f,axis:h,crossAxis:v,size:b,crossSize:p}=r,g={};var m;g[v]=(m=t[v])!==null&&m!==void 0?m:0;var C,S,P,$;f==="center"?g[v]+=(((C=t[p])!==null&&C!==void 0?C:0)-((S=n[p])!==null&&S!==void 0?S:0))/2:f!==v&&(g[v]+=((P=t[p])!==null&&P!==void 0?P:0)-(($=n[p])!==null&&$!==void 0?$:0)),g[v]+=o;const x=t[v]-n[p]+s+c,E=t[v]+t[p]-s-c;if(g[v]=Do(g[v],x,E),d===h){const N=a?l[b]:e[_u[b]];g[Ur[h]]=Math.floor(N-t[h]+i)}else g[h]=Math.floor(t[h]+t[b]+i);return g}function hv(t,e,n,r,i,o,l,a){const s=r?n.height:e[_u.height];var c;let d=t.top!=null?n.top+t.top:n.top+(s-((c=t.bottom)!==null&&c!==void 0?c:0)-l);var f,h,v,b,p,g;let m=a!=="top"?Math.max(0,e.height+e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0)-d-(((h=i.top)!==null&&h!==void 0?h:0)+((v=i.bottom)!==null&&v!==void 0?v:0)+o)):Math.max(0,d+l-(e.top+((b=e.scroll.top)!==null&&b!==void 0?b:0))-(((p=i.top)!==null&&p!==void 0?p:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o));return Math.min(e.height-o*2,m)}function Ua(t,e,n,r,i,o){let{placement:l,axis:a,size:s}=o;var c,d;if(l===a)return Math.max(0,n[a]-t[a]-((c=t.scroll[a])!==null&&c!==void 0?c:0)+e[a]-((d=r[a])!==null&&d!==void 0?d:0)-r[Ur[a]]-i);var f;return Math.max(0,t[s]+t[a]+t.scroll[a]-e[a]-n[a]-n[s]-((f=r[a])!==null&&f!==void 0?f:0)-r[Ur[a]]-i)}function pv(t,e,n,r,i,o,l,a,s,c,d,f,h,v,b,p){let g=Ba(t),{size:m,crossAxis:C,crossSize:S,placement:P,crossPlacement:$}=g,x=Bi(e,a,n,g,d,f,c,h,b,p),E=d,N=Ua(a,c,e,i,o+d,g);if(l&&r[m]>N){let K=Ba(`${Ur[P]} ${$}`),M=Bi(e,a,n,K,d,f,c,h,b,p);Ua(a,c,e,i,o+d,K)>N&&(g=K,x=M,E=d)}let H="bottom";g.axis==="top"?g.placement==="top"?H="top":g.placement==="bottom"&&(H="bottom"):g.crossAxis==="top"&&(g.crossPlacement==="top"?H="bottom":g.crossPlacement==="bottom"&&(H="top"));let j=Va(C,x[C],n[S],a,s,o,c);x[C]+=j;let w=hv(x,a,c,h,i,o,n.height,H);v&&v<w&&(w=v),n.height=Math.min(n.height,w),x=Bi(e,a,n,g,E,f,c,h,b,p),j=Va(C,x[C],n[S],a,s,o,c),x[C]+=j;let A={},B=e[C]+.5*e[S]-x[C]-i[Ye[C]];const L=b/2+p;var U,I,R,k;const G=Ye[C]==="left"?((U=i.left)!==null&&U!==void 0?U:0)+((I=i.right)!==null&&I!==void 0?I:0):((R=i.top)!==null&&R!==void 0?R:0)+((k=i.bottom)!==null&&k!==void 0?k:0),T=n[S]-G-b/2-p,F=e[C]+b/2-(x[C]+i[Ye[C]]),_=e[C]+e[S]-b/2-(x[C]+i[Ye[C]]),O=Do(B,F,_);return A[C]=Do(O,L,T),{position:x,maxHeight:w,arrowOffsetLeft:A.left,arrowOffsetTop:A.top,placement:g.placement}}function vv(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:l,boundaryElement:a,offset:s,crossOffset:c,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:h=0}=t,v=r instanceof HTMLElement?gv(r):document.documentElement,b=v===document.documentElement;const p=window.getComputedStyle(v).position;let g=!!p&&p!=="static",m=b?cn(n):Wa(n,v);if(!b){let{marginTop:A,marginLeft:B}=window.getComputedStyle(n);m.top+=parseInt(A,10)||0,m.left+=parseInt(B,10)||0}let C=cn(r),S=fv(r);var P,$;C.width+=((P=S.left)!==null&&P!==void 0?P:0)+(($=S.right)!==null&&$!==void 0?$:0);var x,E;C.height+=((x=S.top)!==null&&x!==void 0?x:0)+((E=S.bottom)!==null&&E!==void 0?E:0);let N=dv(i),H=za(a),j=za(v),w=a.tagName==="BODY"?cn(v):Wa(v,a);return v.tagName==="HTML"&&a.tagName==="BODY"&&(j.scroll.top=0,j.scroll.left=0),pv(e,m,C,N,S,o,l,H,j,w,s,c,g,d,f,h)}function cn(t){let{top:e,left:n,width:r,height:i}=t.getBoundingClientRect(),{scrollTop:o,scrollLeft:l,clientTop:a,clientLeft:s}=document.documentElement;return{top:e+o-a,left:n+l-s,width:r,height:i}}function Wa(t,e){let n=window.getComputedStyle(t),r;if(n.position==="fixed"){let{top:i,left:o,width:l,height:a}=t.getBoundingClientRect();r={top:i,left:o,width:l,height:a}}else{r=cn(t);let i=cn(e),o=window.getComputedStyle(e);i.top+=(parseInt(o.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-e.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function gv(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Ga(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Ga(e);)e=e.parentElement;return e||document.documentElement}function Ga(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const Tu=new WeakMap;function mv(t){let{triggerRef:e,isOpen:n,onClose:r}=t;u.useEffect(()=>{if(!n||r===null)return;let i=o=>{let l=o.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let a=r||Tu.get(e.current);a&&a()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,e])}let de=typeof document<"u"?window.visualViewport:null;function bv(t){let{direction:e}=Ft(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:l="bottom",containerPadding:a=12,shouldFlip:s=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:h=!0,isOpen:v=!0,onClose:b,maxHeight:p,arrowBoundaryOffset:g=0}=t,[m,C]=u.useState(null),S=[h,l,i.current,r.current,o.current,a,s,c,d,f,v,e,p,g,n],P=u.useRef(de==null?void 0:de.scale);u.useEffect(()=>{v&&(P.current=de==null?void 0:de.scale)},[v]);let $=u.useCallback(()=>{if(h===!1||!v||!i.current||!r.current||!c||(de==null?void 0:de.scale)!==P.current)return;let j=null;if(o.current&&o.current.contains(document.activeElement)){var w;let k=(w=document.activeElement)===null||w===void 0?void 0:w.getBoundingClientRect(),G=o.current.getBoundingClientRect();var A;if(j={type:"top",offset:((A=k==null?void 0:k.top)!==null&&A!==void 0?A:0)-G.top},j.offset>G.height/2){j.type="bottom";var B;j.offset=((B=k==null?void 0:k.bottom)!==null&&B!==void 0?B:0)-G.bottom}}let L=i.current;if(!p&&i.current){var U;L.style.top="0px",L.style.bottom="";var I;L.style.maxHeight=((I=(U=window.visualViewport)===null||U===void 0?void 0:U.height)!==null&&I!==void 0?I:window.innerHeight)+"px"}let R=vv({placement:Cv(l,e),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:a,shouldFlip:s,boundaryElement:c,offset:d,crossOffset:f,maxHeight:p,arrowSize:n,arrowBoundaryOffset:g});if(R.position){if(L.style.top="",L.style.bottom="",L.style.left="",L.style.right="",Object.keys(R.position).forEach(k=>L.style[k]=R.position[k]+"px"),L.style.maxHeight=R.maxHeight!=null?R.maxHeight+"px":"",j&&document.activeElement&&o.current){let k=document.activeElement.getBoundingClientRect(),G=o.current.getBoundingClientRect(),T=k[j.type]-G[j.type];o.current.scrollTop+=T-j.offset}C(R)}},S);ne($,S),yv($),$o({ref:i,onResize:$}),$o({ref:r,onResize:$});let x=u.useRef(!1);ne(()=>{let j,w=()=>{x.current=!0,clearTimeout(j),j=setTimeout(()=>{x.current=!1},500),$()},A=()=>{x.current&&w()};return de==null||de.addEventListener("resize",w),de==null||de.addEventListener("scroll",A),()=>{de==null||de.removeEventListener("resize",w),de==null||de.removeEventListener("scroll",A)}},[$]);let E=u.useCallback(()=>{x.current||b==null||b()},[b,x]);mv({triggerRef:r,isOpen:v,onClose:b&&E});var N,H;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...m==null?void 0:m.position,maxHeight:(N=m==null?void 0:m.maxHeight)!==null&&N!==void 0?N:"100vh"}},placement:(H=m==null?void 0:m.placement)!==null&&H!==void 0?H:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:m==null?void 0:m.arrowOffsetLeft,top:m==null?void 0:m.arrowOffsetTop}},updatePosition:$}}function yv(t){ne(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Cv(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const Ue=[];function Sv(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t;u.useEffect(()=>{if(i&&!Ue.includes(e))return Ue.push(e),()=>{let b=Ue.indexOf(e);b>=0&&Ue.splice(b,1)}},[i,e]);let s=()=>{Ue[Ue.length-1]===e&&n&&n()},c=b=>{(!a||a(b.target))&&Ue[Ue.length-1]===e&&(b.stopPropagation(),b.preventDefault())},d=b=>{(!a||a(b.target))&&(Ue[Ue.length-1]===e&&(b.stopPropagation(),b.preventDefault()),s())},f=b=>{b.key==="Escape"&&!l&&!b.nativeEvent.isComposing&&(b.stopPropagation(),b.preventDefault(),s())};pp({ref:e,onInteractOutside:o&&i?d:void 0,onInteractOutsideStart:c});let{focusWithinProps:h}=fi({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||Up(b.relatedTarget)||(!a||a(b.relatedTarget))&&(n==null||n())}}),v=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:f,...h},underlayProps:{onPointerDown:v}}}function wv(t,e,n){let{type:r}=t,{isOpen:i}=e;u.useEffect(()=>{n&&n.current&&Tu.set(n.current,e.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let l=Se();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}const Ui=typeof document<"u"&&window.visualViewport,xv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let dr=0,Wi;function Ev(t={}){let{isDisabled:e}=t;ne(()=>{if(!e)return dr++,dr===1&&(ii()?Wi=Pv():Wi=$v()),()=>{dr--,dr===0&&Wi()}},[e])}function $v(){let t=window.innerWidth-document.documentElement.clientWidth;return Dt(t>0&&("scrollbarGutter"in document.documentElement.style?St(document.documentElement,"scrollbarGutter","stable"):St(document.documentElement,"paddingRight",`${t}px`)),St(document.documentElement,"overflow","hidden"))}function Pv(){let t,e,n=c=>{t=Xc(c.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=St(t,"overscrollBehavior","contain"))},r=c=>{if(!t||t===document.documentElement||t===document.body){c.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&c.preventDefault()},i=()=>{e&&e()},o=c=>{let d=c.target;Dv(d)&&(a(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Ui&&(Ui.height<window.innerHeight?requestAnimationFrame(()=>{qa(d)}):Ui.addEventListener("resize",()=>qa(d),{once:!0}))}))},l=null,a=()=>{if(l)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;l=Dt(_n(window,"scroll",c),St(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),St(document.documentElement,"overflow","hidden"),St(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},s=Dt(_n(document,"touchstart",n,{passive:!1,capture:!0}),_n(document,"touchmove",r,{passive:!1,capture:!0}),_n(document,"touchend",i,{passive:!1,capture:!0}),_n(document,"focus",o,!0));return()=>{e==null||e(),l==null||l(),s()}}function St(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function _n(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function qa(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=Xc(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function Dv(t){return t instanceof HTMLInputElement&&!xv.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const _v=u.createContext({});function Tv(){var t;return(t=u.useContext(_v))!==null&&t!==void 0?t:{}}var Iu={};Iu={dismiss:"تجاهل"};var Ou={};Ou={dismiss:"Отхвърляне"};var ku={};ku={dismiss:"Odstranit"};var Nu={};Nu={dismiss:"Luk"};var Ru={};Ru={dismiss:"Schließen"};var Mu={};Mu={dismiss:"Απόρριψη"};var Lu={};Lu={dismiss:"Dismiss"};var Au={};Au={dismiss:"Descartar"};var Fu={};Fu={dismiss:"Lõpeta"};var Ku={};Ku={dismiss:"Hylkää"};var ju={};ju={dismiss:"Rejeter"};var Hu={};Hu={dismiss:"התעלם"};var zu={};zu={dismiss:"Odbaci"};var Vu={};Vu={dismiss:"Elutasítás"};var Bu={};Bu={dismiss:"Ignora"};var Uu={};Uu={dismiss:"閉じる"};var Wu={};Wu={dismiss:"무시"};var Gu={};Gu={dismiss:"Atmesti"};var qu={};qu={dismiss:"Nerādīt"};var Yu={};Yu={dismiss:"Lukk"};var Zu={};Zu={dismiss:"Negeren"};var Xu={};Xu={dismiss:"Zignoruj"};var Ju={};Ju={dismiss:"Descartar"};var Qu={};Qu={dismiss:"Dispensar"};var ed={};ed={dismiss:"Revocare"};var td={};td={dismiss:"Пропустить"};var nd={};nd={dismiss:"Zrušiť"};var rd={};rd={dismiss:"Opusti"};var id={};id={dismiss:"Odbaci"};var od={};od={dismiss:"Avvisa"};var ld={};ld={dismiss:"Kapat"};var ad={};ad={dismiss:"Скасувати"};var sd={};sd={dismiss:"取消"};var cd={};cd={dismiss:"關閉"};var ud={};ud={"ar-AE":Iu,"bg-BG":Ou,"cs-CZ":ku,"da-DK":Nu,"de-DE":Ru,"el-GR":Mu,"en-US":Lu,"es-ES":Au,"et-EE":Fu,"fi-FI":Ku,"fr-FR":ju,"he-IL":Hu,"hr-HR":zu,"hu-HU":Vu,"it-IT":Bu,"ja-JP":Uu,"ko-KR":Wu,"lt-LT":Gu,"lv-LV":qu,"nb-NO":Yu,"nl-NL":Zu,"pl-PL":Xu,"pt-BR":Ju,"pt-PT":Qu,"ro-RO":ed,"ru-RU":td,"sk-SK":nd,"sl-SI":rd,"sr-SP":id,"sv-SE":od,"tr-TR":ld,"uk-UA":ad,"zh-CN":sd,"zh-TW":cd};function Iv(t){return t&&t.__esModule?t.default:t}function Ya(t){let{onDismiss:e,...n}=t,r=bu(Iv(ud),"@react-aria/overlays"),i=ai(n,r.format("dismiss")),o=()=>{e&&e()};return u.createElement(cv,null,u.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}let Tn=new WeakMap,Ee=[];function Ov(t,e=document.body){let n=new Set(t),r=new Set,i=s=>{for(let h of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(h);let c=h=>{if(n.has(h)||h.parentElement&&r.has(h.parentElement)&&h.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let v of n)if(h.contains(v))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),f=c(s);if(f===NodeFilter.FILTER_ACCEPT&&o(s),f!==NodeFilter.FILTER_REJECT){let h=d.nextNode();for(;h!=null;)o(h),h=d.nextNode()}},o=s=>{var c;let d=(c=Tn.get(s))!==null&&c!==void 0?c:0;s.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&s.setAttribute("aria-hidden","true"),r.add(s),Tn.set(s,d+1))};Ee.length&&Ee[Ee.length-1].disconnect(),i(e);let l=new MutationObserver(s=>{for(let c of s)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&i(d)}});l.observe(e,{childList:!0,subtree:!0});let a={visibleNodes:n,hiddenNodes:r,observe(){l.observe(e,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return Ee.push(a),()=>{l.disconnect();for(let s of r){let c=Tn.get(s);c!=null&&(c===1?(s.removeAttribute("aria-hidden"),Tn.delete(s)):Tn.set(s,c-1))}a===Ee[Ee.length-1]?(Ee.pop(),Ee.length&&Ee[Ee.length-1].observe()):Ee.splice(Ee.indexOf(a),1)}}function kv(t){let e=Ee[Ee.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}function Nv(t,e){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:o,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a,...s}=t,c=s.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=Sv({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o||c,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a},i??r),{overlayProps:h,arrowProps:v,placement:b}=bv({...s,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:o&&!c?e.close:null});return Ev({isDisabled:o||!e.isOpen}),ne(()=>{if(e.isOpen&&r.current){var p,g;return o?kv((p=i==null?void 0:i.current)!==null&&p!==void 0?p:r.current):Ov([(g=i==null?void 0:i.current)!==null&&g!==void 0?g:r.current])}},[o,e.isOpen,r,i]),{popoverProps:re(d,h),arrowProps:v,underlayProps:f,placement:b}}const Rv=u.createContext(null);function Za(t){let e=Qn(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=u.useState(!1),l=u.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=Tv();if(!t.portalContainer&&a&&(n=a()),!n)return null;let s=t.children;return t.disableFocusManagement||(s=u.createElement(_l,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},s)),s=u.createElement(Rv.Provider,{value:l},u.createElement(fp,null,s)),Lt.createPortal(s,n)}const Il=new WeakMap;function Mv(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function Lv(t,e){let n=Il.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${Mv(e)}`}function Ho(t){return Eh()?t.altKey:t.ctrlKey}function $r(t,e){var n,r;let i=`[data-key="${CSS.escape(String(e))}"]`,o=(n=t.current)===null||n===void 0?void 0:n.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(r=t.current)===null||r===void 0?void 0:r.querySelector(i)}const dd=new WeakMap;function Av(t){let e=Se();return dd.set(t,e),e}function Fv(t){return dd.get(t)}const Kv=1e3;function fd(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=u.useRef({search:"",timeout:void 0}).current,o=l=>{let a=jv(l.key);if(!(!a||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))){if(a===" "&&i.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),i.search+=a,e.getKeyForSearch!=null){let s=e.getKeyForSearch(i.search,n.focusedKey);s==null&&(s=e.getKeyForSearch(i.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Kv)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function jv(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function hd(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:c=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:h=!1,isVirtualized:v,scrollRef:b=r,linkBehavior:p="action"}=t,{direction:g}=Ft(),m=oi(),C=R=>{var k;if(R.altKey&&R.key==="Tab"&&R.preventDefault(),!(!((k=r.current)===null||k===void 0)&&k.contains(R.target)))return;const G=(q,te)=>{if(q!=null){if(e.isLink(q)&&p==="selection"&&c&&!Ho(R)){Lt.flushSync(()=>{e.setFocusedKey(q,te)});let ue=$r(r,q),ee=e.getItemProps(q);ue&&m.open(ue,R,ee.href,ee.routerOptions);return}if(e.setFocusedKey(q,te),e.isLink(q)&&p==="override")return;R.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):c&&!Ho(R)&&e.replaceSelection(q)}};switch(R.key){case"ArrowDown":if(n.getKeyBelow){var T,F,_;let q=e.focusedKey!=null?(T=n.getKeyBelow)===null||T===void 0?void 0:T.call(n,e.focusedKey):(F=n.getFirstKey)===null||F===void 0?void 0:F.call(n);q==null&&o&&(q=(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n,e.focusedKey)),q!=null&&(R.preventDefault(),G(q))}break;case"ArrowUp":if(n.getKeyAbove){var O,K,M;let q=e.focusedKey!=null?(O=n.getKeyAbove)===null||O===void 0?void 0:O.call(n,e.focusedKey):(K=n.getLastKey)===null||K===void 0?void 0:K.call(n);q==null&&o&&(q=(M=n.getLastKey)===null||M===void 0?void 0:M.call(n,e.focusedKey)),q!=null&&(R.preventDefault(),G(q))}break;case"ArrowLeft":if(n.getKeyLeftOf){var z,V,W;let q=e.focusedKey!=null?(z=n.getKeyLeftOf)===null||z===void 0?void 0:z.call(n,e.focusedKey):null;q==null&&o&&(q=g==="rtl"?(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n,e.focusedKey):(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,e.focusedKey)),q!=null&&(R.preventDefault(),G(q,g==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Y,J,se;let q=e.focusedKey!=null?(Y=n.getKeyRightOf)===null||Y===void 0?void 0:Y.call(n,e.focusedKey):null;q==null&&o&&(q=g==="rtl"?(J=n.getLastKey)===null||J===void 0?void 0:J.call(n,e.focusedKey):(se=n.getFirstKey)===null||se===void 0?void 0:se.call(n,e.focusedKey)),q!=null&&(R.preventDefault(),G(q,g==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&R.shiftKey)return;R.preventDefault();let q=n.getFirstKey(e.focusedKey,en(R));e.setFocusedKey(q),q!=null&&(en(R)&&R.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):c&&e.replaceSelection(q))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&R.shiftKey)return;R.preventDefault();let q=n.getLastKey(e.focusedKey,en(R));e.setFocusedKey(q),q!=null&&(en(R)&&R.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):c&&e.replaceSelection(q))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let q=n.getKeyPageBelow(e.focusedKey);q!=null&&(R.preventDefault(),G(q))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let q=n.getKeyPageAbove(e.focusedKey);q!=null&&(R.preventDefault(),G(q))}break;case"a":en(R)&&e.selectionMode==="multiple"&&a!==!0&&(R.preventDefault(),e.selectAll());break;case"Escape":s==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(R.stopPropagation(),R.preventDefault(),e.clearSelection());break;case"Tab":if(!h){if(R.shiftKey)r.current.focus();else{let q=qe(r.current,{tabbable:!0}),te,ue;do ue=q.lastChild(),ue&&(te=ue);while(ue);te&&!te.contains(document.activeElement)&&ze(te)}break}}},S=u.useRef({top:0,left:0});or(b,"scroll",v?void 0:()=>{var R,k,G,T;S.current={top:(G=(R=b.current)===null||R===void 0?void 0:R.scrollTop)!==null&&G!==void 0?G:0,left:(T=(k=b.current)===null||k===void 0?void 0:k.scrollLeft)!==null&&T!==void 0?T:0}});let P=R=>{if(e.isFocused){R.currentTarget.contains(R.target)||e.setFocused(!1);return}if(R.currentTarget.contains(R.target)){if(e.setFocused(!0),e.focusedKey==null){var k,G;let _=K=>{K!=null&&(e.setFocusedKey(K),c&&!e.isSelected(K)&&e.replaceSelection(K))},O=R.relatedTarget;var T,F;O&&R.currentTarget.compareDocumentPosition(O)&Node.DOCUMENT_POSITION_FOLLOWING?_((T=e.lastSelectedKey)!==null&&T!==void 0?T:(k=n.getLastKey)===null||k===void 0?void 0:k.call(n)):_((F=e.firstSelectedKey)!==null&&F!==void 0?F:(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n))}else!v&&b.current&&(b.current.scrollTop=S.current.top,b.current.scrollLeft=S.current.left);if(e.focusedKey!=null&&b.current){let _=$r(r,e.focusedKey);_ instanceof HTMLElement&&(!_.contains(document.activeElement)&&!f&&ze(_),zr()==="keyboard"&&pa(_,{containingElement:r.current}))}}},$=R=>{R.currentTarget.contains(R.relatedTarget)||e.setFocused(!1)},x=u.useRef(!1);or(r,Fh,f?R=>{let{detail:k}=R;R.stopPropagation(),e.setFocused(!0),(k==null?void 0:k.focusStrategy)==="first"&&(x.current=!0)}:void 0);let E=he(()=>{var R,k;let G=(k=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&k!==void 0?k:null;G==null?(wu(r.current),e.collection.size>0&&(x.current=!1)):(e.setFocusedKey(G),x.current=!1)});fa(()=>{x.current&&E()},[e.collection,E]);let N=he(()=>{e.collection.size>0&&(x.current=!1)});fa(()=>{N()},[e.focusedKey,N]),or(r,Ah,f?R=>{var k;R.stopPropagation(),e.setFocused(!1),!((k=R.detail)===null||k===void 0)&&k.clearFocusKey&&e.setFocusedKey(null)}:void 0);const H=u.useRef(i),j=u.useRef(!1);u.useEffect(()=>{if(H.current){var R,k;let F=null;var G;i==="first"&&(F=(G=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&G!==void 0?G:null);var T;i==="last"&&(F=(T=(k=n.getLastKey)===null||k===void 0?void 0:k.call(n))!==null&&T!==void 0?T:null);let _=e.selectedKeys;if(_.size){for(let O of _)if(e.canSelectItem(O)){F=O;break}}e.setFocused(!0),e.setFocusedKey(F),F==null&&!f&&r.current&&vn(r.current),e.collection.size>0&&(H.current=!1,j.current=!0)}});let w=u.useRef(e.focusedKey),A=u.useRef(null);u.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==w.current||j.current)&&b.current&&r.current){let R=zr(),k=$r(r,e.focusedKey);if(!(k instanceof HTMLElement))return;(R==="keyboard"||j.current)&&(A.current&&cancelAnimationFrame(A.current),A.current=requestAnimationFrame(()=>{b.current&&(Jc(b.current,k),R!=="virtual"&&pa(k,{containingElement:r.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&w.current!=null&&r.current&&vn(r.current),w.current=e.focusedKey,j.current=!1}),u.useEffect(()=>()=>{A.current&&cancelAnimationFrame(A.current)},[]),or(r,"react-aria-focus-scope-restore",R=>{R.preventDefault(),e.setFocused(!0)});let B={onKeyDown:C,onFocus:P,onBlur:$,onMouseDown(R){b.current===R.target&&R.preventDefault()}},{typeSelectProps:L}=fd({keyboardDelegate:n,selectionManager:e});d||(B=re(L,B));let U;f||(U=e.focusedKey==null?0:-1);let I=Av(e.collection);return{collectionProps:re(B,{tabIndex:U,"data-collection":I})}}function Ol(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:s,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,h=oi();e=Se(e);let v=k=>{if(k.pointerType==="keyboard"&&Ho(k))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let G=n.getItemProps(r);h.open(i.current,k,G.href,G.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):k&&k.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||k&&(en(k)||k.pointerType==="touch"||k.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};u.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?wu(i.current):a?a():document.activeElement!==i.current&&i.current&&vn(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),s=s||n.isDisabled(r);let b={};!l&&!s?b={tabIndex:r===n.focusedKey?0:-1,onFocus(k){k.target===i.current&&n.setFocusedKey(r)}}:s&&(b.onMouseDown=k=>{k.preventDefault()});let p=n.isLink(r)&&f==="override",g=n.isLink(r)&&f!=="selection"&&f!=="none",m=!s&&n.canSelectItem(r)&&!p,C=(c||g)&&!s,S=C&&(n.selectionBehavior==="replace"?!m:!m||n.isEmpty),P=C&&m&&n.selectionBehavior==="replace",$=S||P,x=u.useRef(null),E=$&&m,N=u.useRef(!1),H=u.useRef(!1),j=k=>{if(c&&c(),g&&i.current){let G=n.getItemProps(r);h.open(i.current,k,G.href,G.routerOptions)}},w={ref:i};o?(w.onPressStart=k=>{x.current=k.pointerType,N.current=E,k.pointerType==="keyboard"&&(!$||Ja())&&v(k)},d?(w.onPressUp=S?void 0:k=>{k.pointerType==="mouse"&&m&&v(k)},w.onPress=S?j:k=>{k.pointerType!=="keyboard"&&k.pointerType!=="mouse"&&m&&v(k)}):w.onPress=k=>{if(S||P&&k.pointerType!=="mouse"){if(k.pointerType==="keyboard"&&!Xa())return;j(k)}else k.pointerType!=="keyboard"&&m&&v(k)}):(w.onPressStart=k=>{x.current=k.pointerType,N.current=E,H.current=S,m&&(k.pointerType==="mouse"&&!S||k.pointerType==="keyboard"&&(!C||Ja()))&&v(k)},w.onPress=k=>{(k.pointerType==="touch"||k.pointerType==="pen"||k.pointerType==="virtual"||k.pointerType==="keyboard"&&$&&Xa()||k.pointerType==="mouse"&&H.current)&&($?j(k):m&&v(k))}),b["data-collection"]=Fv(n.collection),b["data-key"]=r,w.preventFocusOnPress=l,l&&(w=re(w,{onPressStart(k){k.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(k){k.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:A,isPressed:B}=ui(w),L=P?k=>{x.current==="mouse"&&(k.stopPropagation(),k.preventDefault(),j(k))}:void 0,{longPressProps:U}=pu({isDisabled:!E,onLongPress(k){k.pointerType==="touch"&&(v(k),n.setSelectionBehavior("toggle"))}}),I=k=>{x.current==="touch"&&N.current&&k.preventDefault()},R=n.isLink(r)?k=>{_t.isOpening||k.preventDefault()}:void 0;return{itemProps:re(b,m||S||l&&!s?A:{},E?U:{},{onDoubleClick:L,onDragStartCapture:I,onClick:R,id:e},l?{onMouseDown:k=>k.preventDefault()}:void 0),isPressed:B,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:m,hasAction:$}}function Xa(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function Ja(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class Qa{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?$r(this.ref,e):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var n,r;return{width:(n=e==null?void 0:e.scrollWidth)!==null&&n!==void 0?n:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var n,r,i,o;return{x:(n=e==null?void 0:e.scrollLeft)!==null&&n!==void 0?n:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(i=e==null?void 0:e.offsetWidth)!==null&&i!==void 0?i:0,height:(o=e==null?void 0:e.offsetHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}}class kl{isDisabled(e){var n;return this.disabledBehavior==="all"&&(((n=e.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,n){let r=e;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(e){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(e,n,r){let i=e,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let l=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(l,o)&&i!=null);return i}isSameRow(e,n){return e.y===n.y||e.x!==n.x}isSameColumn(e,n){return e.x===n.x||e.y!==n.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,n){return n?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyAfter(n))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Bn(n))return this.getFirstKey();let i=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Bn(n))return this.getLastKey();let i=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let l=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(l,e)===0)return i;i=this.getNextKey(i)}return null}constructor(...e){if(e.length===1){let n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Qa(n.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Qa(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function pd(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:l}=t,a=Dl({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,c=u.useMemo(()=>o||new kl({collection:n,disabledKeys:r,disabledBehavior:s,ref:i,collator:a,layoutDelegate:l}),[o,l,n,r,i,a,s]),{collectionProps:d}=hd({...t,ref:i,selectionManager:e,keyboardDelegate:c});return{listProps:d}}function Hv(t,e,n){let r=pe(t,{labelable:!0}),i=t.selectionBehavior||"toggle",o=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:l}=pd({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:o}),{focusWithinProps:a}=fi({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=Se(t.id);Il.set(e,{id:s,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:o});let{labelProps:c,fieldProps:d}=Pu({...t,id:s,labelElementType:"span"});return{labelProps:c,listBoxProps:re(r,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...re(d,l)})}}class zv{build(e,n){return this.context=n,es(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(u.isValidElement(n)&&n.type===u.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];u.Children.forEach(n,l=>{l&&i.push(l)});let o=0;for(let l of i){let a=this.getFullNode({element:l,index:o},{});for(let s of a)o++,yield s}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var l;let a=(l=o.key)!==null&&l!==void 0?l:o.id;if(a==null)throw new Error("No key found for item");return a}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(u.isValidElement(e.element)&&e.element.type===u.Fragment){let g=[];u.Children.forEach(e.element.props.children,C=>{g.push(C)});var o;let m=(o=e.index)!==null&&o!==void 0?o:0;for(const C of g)yield*this.getFullNode({element:C,index:m++},n,r,i);return}let l=e.element;if(!l&&e.value&&n&&n.renderer){let g=this.cache.get(e.value);if(g&&(!g.shouldInvalidate||!g.shouldInvalidate(this.context))){g.index=e.index,g.parentKey=i?i.key:null,yield g;return}l=n.renderer(e.value)}if(u.isValidElement(l)){let g=l.type;if(typeof g!="function"&&typeof g.getCollectionNode!="function"){let P=l.type;throw new Error(`Unknown element <${P}> in collection.`)}let m=g.getCollectionNode(l.props,this.context);var a;let C=(a=e.index)!==null&&a!==void 0?a:0,S=m.next();for(;!S.done&&S.value;){let P=S.value;e.index=C;var s;let $=(s=P.key)!==null&&s!==void 0?s:null;$==null&&($=P.element?null:this.getKey(l,e,n,r));let E=[...this.getFullNode({...P,key:$,index:C,wrapper:Vv(e.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${l.key}`:l.key,i)];for(let N of E){var c,d;N.value=(d=(c=P.value)!==null&&c!==void 0?c:e.value)!==null&&d!==void 0?d:null,N.value&&this.cache.set(N.value,N);var f;if(e.type&&N.type!==e.type)throw new Error(`Unsupported type <${Gi(N.type)}> in <${Gi((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${Gi(e.type)}> is supported.`);C++,yield N}S=m.next(E)}return}if(e.key==null||e.type==null)return;let h=this;var v,b;let p={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(v=e.value)!==null&&v!==void 0?v:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(b=e.textValue)!==null&&b!==void 0?b:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:es(function*(){if(!e.hasChildNodes||!e.childNodes)return;let g=0;for(let m of e.childNodes()){m.key!=null&&(m.key=`${p.key}${m.key}`);let C=h.getFullNode({...m,index:g},h.getChildState(n,m),p.key,p);for(let S of C)g++,yield S}})};yield p}constructor(){this.cache=new WeakMap}}function es(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function Vv(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function Gi(t){return t[0].toUpperCase()+t.slice(1)}function vd(t,e,n){let r=u.useMemo(()=>new zv,[]),{children:i,items:o,collection:l}=t;return u.useMemo(()=>{if(l)return l;let s=r.build({children:i,items:o},n);return e(s)},[r,i,o,l,n,e])}function gd(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Bv(t){return Uv(t)}function Uv(t,e){for(let n of t)return n}function qi(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...ts(t,e),e],i=[...ts(t,n),n],o=r.slice(0,i.length).findIndex((l,a)=>l!==i[a]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function ts(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}const ns=new WeakMap;function md(t){let e=ns.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r(gd(o,t)):o.type==="item"&&n++};return r(t),ns.set(t,n),n}function Wv(t,e,n){var r,i;let{key:o}=t,l=Il.get(e);var a;let s=(a=t.isDisabled)!==null&&a!==void 0?a:e.selectionManager.isDisabled(o);var c;let d=(c=t.isSelected)!==null&&c!==void 0?c:e.selectionManager.isSelected(o);var f;let h=(f=t.shouldSelectOnPressUp)!==null&&f!==void 0?f:l==null?void 0:l.shouldSelectOnPressUp;var v;let b=(v=t.shouldFocusOnHover)!==null&&v!==void 0?v:l==null?void 0:l.shouldFocusOnHover;var p;let g=(p=t.shouldUseVirtualFocus)!==null&&p!==void 0?p:l==null?void 0:l.shouldUseVirtualFocus;var m;let C=(m=t.isVirtualized)!==null&&m!==void 0?m:l==null?void 0:l.isVirtualized,S=xt(),P=xt(),$={role:"option","aria-disabled":s||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};ft()&&fl()||($["aria-label"]=t["aria-label"],$["aria-labelledby"]=S,$["aria-describedby"]=P);let x=e.collection.getItem(o);if(C){let R=Number(x==null?void 0:x.index);$["aria-posinset"]=Number.isNaN(R)?void 0:R+1,$["aria-setsize"]=md(e.collection)}let E=l!=null&&l.onAction?()=>{var R;return l==null||(R=l.onAction)===null||R===void 0?void 0:R.call(l,o)}:void 0,N=Lv(e,o),{itemProps:H,isPressed:j,isFocused:w,hasAction:A,allowsSelection:B}=Ol({selectionManager:e.selectionManager,key:o,ref:n,shouldSelectOnPressUp:h,allowsDifferentPressOrigin:h&&b,isVirtualized:C,shouldUseVirtualFocus:g,isDisabled:s,onAction:E||!(x==null||(r=x.props)===null||r===void 0)&&r.onAction?Dt(x==null||(i=x.props)===null||i===void 0?void 0:i.onAction,E):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:N}),{hoverProps:L}=Cn({isDisabled:s||!b,onHoverStart(){pn()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(o))}}),U=pe(x==null?void 0:x.props);delete U.id;let I=pl(x==null?void 0:x.props);return{optionProps:{...$,...re(U,H,L,I),id:N},labelProps:{id:S},descriptionProps:{id:P},isFocused:w,isFocusVisible:w&&e.selectionManager.isFocused&&pn(),isSelected:d,isDisabled:s,isPressed:j,allowsSelection:B,hasAction:A}}function Gv(t){let{heading:e,"aria-label":n}=t,r=Se();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}var bd={};bd={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var yd={};yd={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Cd={};Cd={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Sd={};Sd={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var wd={};wd={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var xd={};xd={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Ed={};Ed={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var $d={};$d={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Pd={};Pd={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Dd={};Dd={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var _d={};_d={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Td={};Td={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Id={};Id={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Od={};Od={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var kd={};kd={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Nd={};Nd={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Rd={};Rd={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Md={};Md={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Ld={};Ld={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Ad={};Ad={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Fd={};Fd={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Kd={};Kd={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var jd={};jd={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Hd={};Hd={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var zd={};zd={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Vd={};Vd={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Bd={};Bd={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Ud={};Ud={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Wd={};Wd={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Gd={};Gd={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var qd={};qd={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Yd={};Yd={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Zd={};Zd={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Xd={};Xd={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Jd={};Jd={"ar-AE":bd,"bg-BG":yd,"cs-CZ":Cd,"da-DK":Sd,"de-DE":wd,"el-GR":xd,"en-US":Ed,"es-ES":$d,"et-EE":Pd,"fi-FI":Dd,"fr-FR":_d,"he-IL":Td,"hr-HR":Id,"hu-HU":Od,"it-IT":kd,"ja-JP":Nd,"ko-KR":Rd,"lt-LT":Md,"lv-LV":Ld,"nb-NO":Ad,"nl-NL":Fd,"pl-PL":Kd,"pt-BR":jd,"pt-PT":Hd,"ro-RO":zd,"ru-RU":Vd,"sk-SK":Bd,"sl-SI":Ud,"sr-SP":Wd,"sv-SE":Gd,"tr-TR":qd,"uk-UA":Yd,"zh-CN":Zd,"zh-TW":Xd};function qv(t){return t&&t.__esModule?t.default:t}function Yv(t,e,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=t,l=Se(),{triggerProps:a,overlayProps:s}=wv({type:r},e,n),c=v=>{if(!i&&!(o==="longPress"&&!v.altKey)&&n&&n.current)switch(v.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in v||v.stopPropagation(),v.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in v||v.stopPropagation(),v.preventDefault(),e.toggle("last");break;default:"continuePropagation"in v&&v.continuePropagation()}},d=bu(qv(Jd),"@react-aria/menu"),{longPressProps:f}=pu({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),h={preventFocusOnPress:!0,onPressStart(v){v.pointerType!=="touch"&&v.pointerType!=="keyboard"&&!i&&(ze(v.target),e.open(v.pointerType==="virtual"?"first":null))},onPress(v){v.pointerType==="touch"&&!i&&(ze(v.target),e.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...o==="press"?h:f,id:l,onKeyDown:c},menuProps:{...s,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const Qd=new WeakMap;function Zv(t,e,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:o,...l}=t;!t["aria-label"]&&!t["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let a=pe(t,{labelable:!0}),{listProps:s}=pd({...l,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Qd.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:re(a,{onKeyDown:i,onKeyUp:o},{role:"menu",...s,onKeyDown:c=>{var d;(c.key!=="Escape"||t.shouldUseVirtualFocus)&&((d=s.onKeyDown)===null||d===void 0||d.call(s,c))}})}}function Xv(t,e,n){let{id:r,key:i,closeOnSelect:o,isVirtualized:l,"aria-haspopup":a,onPressStart:s,onPressUp:c,onPress:d,onPressChange:f,onPressEnd:h,onHoverStart:v,onHoverChange:b,onHoverEnd:p,onKeyDown:g,onKeyUp:m,onFocus:C,onFocusChange:S,onBlur:P,selectionManager:$=e.selectionManager}=t,x=!!a,E=x&&t["aria-expanded"]==="true";var N;let H=(N=t.isDisabled)!==null&&N!==void 0?N:$.isDisabled(i);var j;let w=(j=t.isSelected)!==null&&j!==void 0?j:$.isSelected(i),A=Qd.get(e),B=e.collection.getItem(i),L=t.onClose||A.onClose,U=oi(),I=ee=>{var rt;if(!x){if(!(B==null||(rt=B.props)===null||rt===void 0)&&rt.onAction?B.props.onAction():t.onAction&&t.onAction(i),A.onAction){let xn=A.onAction;xn(i)}ee.target instanceof HTMLAnchorElement&&B&&U.open(ee.target,ee,B.props.href,B.props.routerOptions)}},R="menuitem";x||($.selectionMode==="single"?R="menuitemradio":$.selectionMode==="multiple"&&(R="menuitemcheckbox"));let k=xt(),G=xt(),T=xt(),F={id:r,"aria-disabled":H||void 0,role:R,"aria-label":t["aria-label"],"aria-labelledby":k,"aria-describedby":[G,T].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":a,"aria-expanded":t["aria-expanded"]};$.selectionMode!=="none"&&!x&&(F["aria-checked"]=w),l&&(F["aria-posinset"]=B==null?void 0:B.index,F["aria-setsize"]=md(e.collection));let _=ee=>{ee.pointerType==="keyboard"&&I(ee),s==null||s(ee)},O=()=>{!x&&L&&(o??($.selectionMode!=="multiple"||$.isLink(i)))&&L()},K=ee=>{ee.pointerType==="mouse"&&(I(ee),O()),c==null||c(ee)},M=ee=>{ee.pointerType!=="keyboard"&&ee.pointerType!=="mouse"&&(I(ee),O()),d==null||d(ee)},{itemProps:z,isFocused:V}=Ol({id:r,selectionManager:$,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:A.shouldUseVirtualFocus}),{pressProps:W,isPressed:Y}=ui({onPressStart:_,onPress:M,onPressUp:K,onPressChange:f,onPressEnd:h,isDisabled:H}),{hoverProps:J}=Cn({isDisabled:H,onHoverStart(ee){!pn()&&!(E&&a)&&($.setFocused(!0),$.setFocusedKey(i)),v==null||v(ee)},onHoverChange:b,onHoverEnd:p}),{keyboardProps:se}=fu({onKeyDown:ee=>{if(ee.repeat){ee.continuePropagation();return}switch(ee.key){case" ":!H&&$.selectionMode==="none"&&!x&&o!==!1&&L&&L();break;case"Enter":!H&&o!==!1&&!x&&L&&L();break;default:x||ee.continuePropagation(),g==null||g(ee);break}},onKeyUp:m}),{focusProps:q}=El({onBlur:P,onFocus:C,onFocusChange:S}),te=pe(B==null?void 0:B.props);delete te.id;let ue=pl(B==null?void 0:B.props);return{menuItemProps:{...F,...re(te,ue,x?{onFocus:z.onFocus,"data-collection":z["data-collection"],"data-key":z["data-key"]}:z,W,J,se,q,A.shouldUseVirtualFocus||x?{onMouseDown:ee=>ee.preventDefault()}:void 0),tabIndex:z.tabIndex!=null&&E&&!A.shouldUseVirtualFocus?-1:z.tabIndex},labelProps:{id:k},descriptionProps:{id:G},keyboardShortcutProps:{id:T},isFocused:V,isFocusVisible:V&&$.isFocused&&pn()&&!E,isSelected:w,isPressed:Y,isDisabled:H}}function Jv(t){let{heading:e,"aria-label":n}=t,r=Se();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}const ef=new WeakMap;function Qv(t,e,n){let{keyboardDelegate:r,isDisabled:i,isRequired:o,name:l,validationBehavior:a="aria"}=t,s=Dl({usage:"search",sensitivity:"base"}),c=u.useMemo(()=>r||new kl(e.collection,e.disabledKeys,n,s),[r,e.collection,e.disabledKeys,s,n]),{menuTriggerProps:d,menuProps:f}=Yv({isDisabled:i,type:"listbox"},e,n),h=N=>{switch(N.key){case"ArrowLeft":{var H,j;N.preventDefault();let B=e.selectedKey!=null?(H=c.getKeyAbove)===null||H===void 0?void 0:H.call(c,e.selectedKey):(j=c.getFirstKey)===null||j===void 0?void 0:j.call(c);B&&e.setSelectedKey(B);break}case"ArrowRight":{var w,A;N.preventDefault();let B=e.selectedKey!=null?(w=c.getKeyBelow)===null||w===void 0?void 0:w.call(c,e.selectedKey):(A=c.getFirstKey)===null||A===void 0?void 0:A.call(c);B&&e.setSelectedKey(B);break}}},{typeSelectProps:v}=fd({keyboardDelegate:c,selectionManager:e.selectionManager,onTypeSelect(N){e.setSelectedKey(N)}}),{isInvalid:b,validationErrors:p,validationDetails:g}=e.displayValidation,{labelProps:m,fieldProps:C,descriptionProps:S,errorMessageProps:P}=sv({...t,labelElementType:"span",isInvalid:b,errorMessage:t.errorMessage||p});v.onKeyDown=v.onKeyDownCapture,delete v.onKeyDownCapture;let $=pe(t,{labelable:!0}),x=re(v,d,C),E=Se();return ef.set(e,{isDisabled:i,isRequired:o,name:l,validationBehavior:a}),{labelProps:{...m,onClick:()=>{if(!t.isDisabled){var N;(N=n.current)===null||N===void 0||N.focus(),du("keyboard")}}},triggerProps:re($,{...x,isDisabled:i,onKeyDown:Dt(x.onKeyDown,h,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[E,x["aria-labelledby"],x["aria-label"]&&!x["aria-labelledby"]?x.id:null].filter(Boolean).join(" "),onFocus(N){e.isFocused||(t.onFocus&&t.onFocus(N),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(N){e.isOpen||(t.onBlur&&t.onBlur(N),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:E},menuProps:{...f,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:N=>{N.currentTarget.contains(N.relatedTarget)||(t.onBlur&&t.onBlur(N),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[C["aria-labelledby"],x["aria-label"]&&!C["aria-labelledby"]?x.id:null].filter(Boolean).join(" ")},descriptionProps:S,errorMessageProps:P,isInvalid:b,validationErrors:p,validationDetails:g}}function eg(t,e,n){let r=ef.get(e)||{},{autoComplete:i,name:o=r.name,isDisabled:l=r.isDisabled}=t,{validationBehavior:a,isRequired:s}=r,{visuallyHiddenProps:c}=Du();Mh(t.selectRef,e.selectedKey,e.setSelectedKey),iv({validationBehavior:a,focus:()=>{var f;return(f=n.current)===null||f===void 0?void 0:f.focus()}},e,t.selectRef);var d;return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:i,disabled:l,required:a==="native"&&s,name:o,value:(d=e.selectedKey)!==null&&d!==void 0?d:void 0,onChange:f=>e.setSelectedKey(f.target.value)}}}function tg(t){let{state:e,triggerRef:n,label:r,name:i,isDisabled:o}=t,l=u.useRef(null),{containerProps:a,selectProps:s}=eg({...t,selectRef:l},e,n);var c;return e.collection.size<=300?u.createElement("div",{...a,"data-testid":"hidden-select-container"},u.createElement("label",null,r,u.createElement("select",{...s,ref:l},u.createElement("option",null),[...e.collection.getKeys()].map(d=>{let f=e.collection.getItem(d);if(f&&f.type==="item")return u.createElement("option",{key:f.key,value:f.key},f.textValue)})))):i?u.createElement("input",{type:"hidden",autoComplete:s.autoComplete,name:i,disabled:o,value:(c=e.selectedKey)!==null&&c!==void 0?c:""}):null}function ng(t){let e=pe(t,{labelable:!0}),n;return t.orientation==="vertical"&&(n="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":n}}:{separatorProps:e}}const tf=new WeakMap;function Wr(t,e,n){return t?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${tf.get(t)}-${n}-${e}`):""}function rg(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:a}=e,s=r===a,c=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:d,isPressed:f}=Ol({selectionManager:l,key:r,ref:n,isDisabled:c,shouldSelectOnPressUp:o,linkBehavior:"selection"}),h=Wr(e,r,"tab"),v=Wr(e,r,"tabpanel"),{tabIndex:b}=d,p=e.collection.getItem(r),g=pe(p==null?void 0:p.props,{labelable:!0});delete g.id;let m=pl(p==null?void 0:p.props),{focusableProps:C}=hu({isDisabled:c},n);return{tabProps:re(g,C,m,d,{id:h,"aria-selected":s,"aria-disabled":c||void 0,"aria-controls":s?v:void 0,tabIndex:c?void 0:b,role:"tab"}),isSelected:s,isDisabled:c,isPressed:f}}function ig(t,e,n){let r=Yp(n)?void 0:0;var i;const o=Wr(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=ai({...t,id:o,"aria-labelledby":Wr(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:re(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class og{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var n,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let n=e;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n));return n}getPreviousKey(e){let n=e;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n));return n}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function lg(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:a}=e,{direction:s}=Ft(),c=u.useMemo(()=>new og(o,s,r,a),[o,a,r,s]),{collectionProps:d}=hd({ref:n,selectionManager:l,keyboardDelegate:c,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Se();tf.set(e,f);let h=ai({...t,id:f});return{tabListProps:{...re(d,h),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const nf=u.createContext({}),ag=Cl(function(e,n){[e,n]=nt(e,n,nf);let{elementType:r="label",...i}=e;return u.createElement(r,{className:"react-aria-Label",...i,ref:n})}),sg=u.createContext(null),cg=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),rf=u.createContext({}),ug=Cl(function(e,n){[e,n]=nt(e,n,rf),e=dg(e);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=jp(e,n),{focusProps:a,isFocused:s,isFocusVisible:c}=Sn(e),{hoverProps:d,isHovered:f}=Cn({...e,isDisabled:e.isDisabled||i}),h={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:i??!1},v=De({...e,values:h,defaultClassName:"react-aria-Button"}),b=Se(o.id),p=Se(),g=o["aria-labelledby"];i&&(g?g=`${g} ${p}`:o["aria-label"]&&(g=`${b} ${p}`));let m=u.useRef(i);return u.useEffect(()=>{let C={"aria-labelledby":g||b};(!m.current&&s&&i||m.current&&s&&!i)&&Fa(C,"assertive"),m.current=i},[i,s,g,b]),u.createElement("button",{...pe(e,{propNames:cg}),...re(o,a,d),...v,type:o.type==="submit"&&i?"button":o.type,id:b,ref:n,"aria-labelledby":g,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":h.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":c||void 0},u.createElement(sg.Provider,{value:{id:p}},v.children))});function dg(t){return t.isPending&&(t.onPress=void 0,t.onPressStart=void 0,t.onPressEnd=void 0,t.onPressChange=void 0,t.onPressUp=void 0,t.onKeyDown=void 0,t.onKeyUp=void 0,t.onClick=void 0,t.href=void 0),t}const Nl=u.createContext({}),fg=u.createContext(null);class rs{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let a of l.childNodes)n(a)};for(let l of e)n(l);let r=null,i=0;for(let[l,a]of this.keyMap)r?(r.nextKey=l,a.prevKey=r.key):(this.firstKey=l,a.prevKey=void 0),a.type==="item"&&(a.index=i++),r=a,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class je extends Set{constructor(e,n,r){super(e),e instanceof je?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function hg(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Rl(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=u.useRef(!1),[,a]=u.useState(!1),s=u.useRef(null),c=u.useRef(null),[,d]=u.useState(null),f=u.useMemo(()=>is(t.selectedKeys),[t.selectedKeys]),h=u.useMemo(()=>is(t.defaultSelectedKeys,new je),[t.defaultSelectedKeys]),[v,b]=si(f,h,t.onSelectionChange),p=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[g,m]=u.useState(i);i==="replace"&&g==="toggle"&&typeof v=="object"&&v.size===0&&m("replace");let C=u.useRef(i);return u.useEffect(()=>{i!==C.current&&(m(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:g,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(S){l.current=S,a(S)},get focusedKey(){return s.current},get childFocusStrategy(){return c.current},setFocusedKey(S,P="first"){s.current=S,c.current=P,d(S)},selectedKeys:v,setSelectedKeys(S){(r||!hg(S,v))&&b(S)},disabledKeys:p,disabledBehavior:o}}function is(t,e){return t?t==="all"?"all":new je(t):e}class er{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}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 e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&qi(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&qi(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new je([n],n,n);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new je(l,a,n);var o;for(let s of this.getKeyRange(a,(o=l.currentKey)!==null&&o!==void 0?o:n))r.delete(s);for(let s of this.getKeyRange(n,a))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?qi(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new je(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new je([n],n,n):new je;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new je;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((o=(i=Bv(gd(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),e}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 je)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}withCollection(e){return new er(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function of(t){let{filter:e,layoutDelegate:n}=t,r=Rl(t),i=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=u.useCallback(c=>e?new rs(e(c)):new rs(c),[e]),l=u.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=vd(t,o,l),s=u.useMemo(()=>new er(a,r,{layoutDelegate:n}),[a,r,n]);return lf(a,s),{collection:a,disabledKeys:i,selectionManager:s}}function pg(t,e){let n=u.useMemo(()=>e?t.collection.UNSTABLE_filter(e):t.collection,[t.collection,e]),r=t.selectionManager.withCollection(n);return lf(n,r),{collection:n,selectionManager:r,disabledKeys:t.disabledKeys}}function lf(t,e){const n=u.useRef(null);u.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const d=n.current.getItem(e.focusedKey),f=[...n.current.getKeys()].map(m=>{const C=n.current.getItem(m);return(C==null?void 0:C.type)==="item"?C:null}).filter(m=>m!==null),h=[...t.getKeys()].map(m=>{const C=t.getItem(m);return(C==null?void 0:C.type)==="item"?C:null}).filter(m=>m!==null);var r,i;const v=((r=f==null?void 0:f.length)!==null&&r!==void 0?r:0)-((i=h==null?void 0:h.length)!==null&&i!==void 0?i:0);var o,l,a;let b=Math.min(v>1?Math.max(((o=d==null?void 0:d.index)!==null&&o!==void 0?o:0)-v+1,0):(l=d==null?void 0:d.index)!==null&&l!==void 0?l:0,((a=h==null?void 0:h.length)!==null&&a!==void 0?a:0)-1),p=null,g=!1;for(;b>=0;){if(!e.isDisabled(h[b].key)){p=h[b];break}if(b<h.length-1&&!g)b++;else{g=!0;var s,c;b>((s=d==null?void 0:d.index)!==null&&s!==void 0?s:0)&&(b=(c=d==null?void 0:d.index)!==null&&c!==void 0?c:0),b--}}e.setFocusedKey(p?p.key:null)}n.current=t},[t,e])}function af(t){var e;let[n,r]=si(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=u.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:a}=of({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:c=>{if(c==="all")return;var d;let f=(d=c.values().next().value)!==null&&d!==void 0?d:null;f===n&&t.onSelectionChange&&t.onSelectionChange(f),r(f)}}),s=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:l,selectionManager:a,selectedKey:n,setSelectedKey:r,selectedItem:s}}function Ml(t){let[e,n]=si(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=u.useCallback(()=>{n(!0)},[n]),i=u.useCallback(()=>{n(!1)},[n]),o=u.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}function vg(t){let{initialItems:e=[],initialSelectedKeys:n,getKey:r=p=>{var g;return(g=p.id)!==null&&g!==void 0?g:p.key},getChildren:i=p=>p.children}=t,[o,l]=u.useState(()=>f(e,new Map)),{items:a,nodeMap:s}=o,[c,d]=u.useState(new Set(n||[]));function f(p=[],g,m){return p==null&&(p=[]),{items:p.map(C=>{let S={key:r(C),parentKey:m??null,value:C,children:null};return S.children=f(i(C),g,S.key).items,g.set(S.key,S),S}),nodeMap:g}}function h(p,g,m,C){let S=g==null?null:C.get(g);if(S==null)return{items:p,nodeMap:C};let P=new Map(C),$=m(S);for($==null?b(S,P):v($,P);S&&S.parentKey;){let E=P.get(S.parentKey),N={key:E.key,parentKey:E.parentKey,value:E.value,children:null},H=E.children;$==null&&H&&(H=H.filter(j=>j!==S));var x;N.children=(x=H==null?void 0:H.map(j=>j===S?$:j))!==null&&x!==void 0?x:null,P.set(N.key,N),$=N,S=E}return $==null&&(p=p.filter(E=>E!==S)),{items:p.map(E=>E===S?$:E),nodeMap:P}}function v(p,g){if(g.set(p.key,p),p.children)for(let m of p.children)v(m,g)}function b(p,g){if(g.delete(p.key),p.children)for(let m of p.children)b(m,g)}return{items:a,selectedKeys:c,setSelectedKeys:d,getItem(p){return s.get(p)},insert(p,g,...m){l(({items:C,nodeMap:S})=>{let{items:P,nodeMap:$}=f(m,S,p);return p==null?{items:[...C.slice(0,g),...P,...C.slice(g)],nodeMap:$}:h(C,p,x=>({key:x.key,parentKey:x.parentKey,value:x.value,children:[...x.children.slice(0,g),...P,...x.children.slice(g)]}),$)})},insertBefore(p,...g){let m=s.get(p);if(!m)return;let C=s.get(m.parentKey),P=(C?C.children:a).indexOf(m);var $;this.insert(($=C==null?void 0:C.key)!==null&&$!==void 0?$:null,P,...g)},insertAfter(p,...g){let m=s.get(p);if(!m)return;let C=s.get(m.parentKey),P=(C?C.children:a).indexOf(m);var $;this.insert(($=C==null?void 0:C.key)!==null&&$!==void 0?$:null,P+1,...g)},prepend(p,...g){this.insert(p,0,...g)},append(p,...g){if(p==null)this.insert(null,a.length,...g);else{let m=s.get(p);if(!m)return;this.insert(p,m.children.length,...g)}},remove(...p){if(p.length===0)return;let g=a,m=s,C;for(let P of p)C=h(g,P,()=>null,m),m=C.nodeMap,g=C.items;l(C);let S=new Set(c);for(let P of c)C.nodeMap.has(P)||S.delete(P);d(S)},removeSelectedItems(){this.remove(...c)},move(p,g,m){l(({items:C,nodeMap:S})=>{let P=S.get(p);if(!P)return{items:C,nodeMap:S};let{items:$,nodeMap:x}=h(C,p,()=>null,S);const E={...P,parentKey:g};return g==null?(v(E,x),{items:[...$.slice(0,m),E,...$.slice(m)],nodeMap:x}):h($,g,N=>({key:N.key,parentKey:N.parentKey,value:N.value,children:[...N.children.slice(0,m),E,...N.children.slice(m)]}),x)})},moveBefore(p,g){l(m=>{let{items:C,nodeMap:S}=m,P=S.get(p);if(!P)return m;var $;let x=($=P.parentKey)!==null&&$!==void 0?$:null,E=null;var N;x!=null&&(E=(N=S.get(x))!==null&&N!==void 0?N:null);let H=E!=null&&E.children?E.children.indexOf(P):C.indexOf(P);return os(m,g,E,H,h,v)})},moveAfter(p,g){l(m=>{let{items:C,nodeMap:S}=m,P=S.get(p);if(!P)return m;var $;let x=($=P.parentKey)!==null&&$!==void 0?$:null,E=null;var N;x!=null&&(E=(N=S.get(x))!==null&&N!==void 0?N:null);let H=E!=null&&E.children?E.children.indexOf(P):C.indexOf(P);return H++,os(m,g,E,H,h,v)})},update(p,g){l(({items:m,nodeMap:C})=>h(m,p,S=>{let P={key:S.key,parentKey:S.parentKey,value:g,children:null},$=f(i(g),C,P.key);return P.children=$.items,P},C))}}}function os(t,e,n,r,i,o){let{items:l,nodeMap:a}=t,s=n,c=new Set(e);for(;(s==null?void 0:s.parentKey)!=null;){if(c.has(s.key))throw new Error("Cannot move an item to be a child of itself.");var d;s=(d=a.get(s.parentKey))!==null&&d!==void 0?d:null}let f=r,h=Array.isArray(e)?e:[...e],v=new Map,b=[],p=l,g=a,m=0;function C(x,{inorder:E,postorder:N}){E==null||E(x);var H;if(x!=null)for(let j of(H=x.children)!==null&&H!==void 0?H:[])C(j,{inorder:E,postorder:N}),N==null||N(j)}function S(x){h.includes(x.key)&&v.set(x.key,m++)}function P(x){if(h.includes(x.key)){var E;b.push({...g.get(x.key),parentKey:(E=n==null?void 0:n.key)!==null&&E!==void 0?E:null});let{items:N,nodeMap:H}=i(p,x.key,()=>null,g);p=N,g=H}x.parentKey===(n==null?void 0:n.key)&&h.includes(x.key)&&(n!=null&&n.children?n.children.indexOf(x):l.indexOf(x))<f&&r--}C({children:l},{inorder:S,postorder:P});let $=b.sort((x,E)=>v.get(x.key)>v.get(E.key)?1:-1);return!n||n.key==null?($.forEach(x=>{o(x,g)}),{items:[...p.slice(0,r),...$,...p.slice(r)],nodeMap:g}):i(p,n.key,x=>({key:x.key,parentKey:x.parentKey,value:x.value,children:[...x.children.slice(0,r),...$,...x.children.slice(r)]}),g)}function gg(t){let e=Ml(t),[n,r]=u.useState(null),[i,o]=u.useState([]),l=()=>{o([]),e.close()};return{focusStrategy:n,...e,open(c=null){r(c),e.open()},toggle(c=null){r(c),e.toggle()},close(){l()},expandedKeysStack:i,openSubmenu:(c,d)=>{o(f=>d>f.length?f:[...f.slice(0,d),c])},closeSubmenu:(c,d)=>{o(f=>f[d]===c?f.slice(0,d):f)}}}function mg(t){let e=Ml(t),[n,r]=u.useState(null),i=af({...t,onSelectionChange:c=>{t.onSelectionChange!=null&&t.onSelectionChange(c),e.close(),o.commitValidation()}}),o=tv({...t,value:i.selectedKey}),[l,a]=u.useState(!1),s=u.useMemo(()=>{var c;return i.collection.size===0||i.collection.size===1&&((c=i.collection.getItem(i.collection.getFirstKey()))===null||c===void 0?void 0:c.type)==="loader"},[i.collection]);return{...o,...i,...e,focusStrategy:n,open(c=null){s||(r(c),e.open())},toggle(c=null){s||(r(c),e.toggle())},isFocused:l,setFocused:a}}function bg(t){var e,n;let r=af({...t,onSelectionChange:t.onSelectionChange?s=>{var c;s!=null&&((c=t.onSelectionChange)===null||c===void 0||c.call(t,s))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:ls(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&n!==void 0?n:void 0}),{selectionManager:i,collection:o,selectedKey:l}=r,a=u.useRef(l);return u.useEffect(()=>{let s=l;t.selectedKey==null&&(i.isEmpty||s==null||!o.getItem(s))&&(s=ls(o,r.disabledKeys),s!=null&&i.setSelectedKeys([s])),(s!=null&&i.focusedKey==null||!i.isFocused&&s!==a.current)&&i.setFocusedKey(s),a.current=s}),{...r,isDisabled:t.isDisabled||!1}}function ls(t,e){let n=null;if(t){var r,i,o,l;for(n=t.getFirstKey();n!=null&&(e.has(n)||!((i=t.getItem(n))===null||i===void 0||(r=i.props)===null||r===void 0)&&r.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||!((l=t.getItem(n))===null||l===void 0||(o=l.props)===null||o===void 0)&&o.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}class yg{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}constructor(e,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,n=n||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||n.has(a.key)))for(let s of a.childNodes)r(s)};for(let a of e)r(a);let i=null,o=0;for(let[a,s]of this.keyMap)i?(i.nextKey=a,s.prevKey=i.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=o++),i=s,i.nextKey=void 0;var l;this.lastKey=(l=i==null?void 0:i.key)!==null&&l!==void 0?l:null}}function Cg(t){let{onExpandedChange:e}=t,[n,r]=si(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=Rl(t),o=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=vd(t,u.useCallback(s=>new yg(s,{expandedKeys:n}),[n]),null);return u.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:o,toggleKey:s=>{r(Sg(n,s))},setExpandedKeys:r,selectionManager:new er(l,i)}}function Sg(t,e){let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}const wg=u.createContext(null),zo=u.createContext(null),sf=u.createContext(null),cf={CollectionRoot({collection:t,renderDropIndicator:e}){return as(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return as(t,e,n)}};function as(t,e,n){return nu({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){var i;let o=r.render(r);if(!n||r.type!=="item")return o;let l=r.key,a=t.getKeyAfter(l);return u.createElement(u.Fragment,null,n({type:"item",key:l,dropPosition:"before"}),o,(a==null||((i=t.getItem(a))===null||i===void 0?void 0:i.type)!=="item")&&n({type:"item",key:l,dropPosition:"after"}))}})}const Kt=u.createContext(cf);function uf(t){return u.useMemo(()=>t!=null?new Set([t]):null,[t])}const gi=u.createContext({}),df=u.createContext(null),xg=u.forwardRef(function(e,n){let{render:r}=u.useContext(df);return u.createElement(u.Fragment,null,r(e,n))});function ff(t,e){var n;let r=t==null?void 0:t.renderDropIndicator,i=t==null||(n=t.isVirtualDragging)===null||n===void 0?void 0:n.call(t),o=u.useCallback(l=>{if(i||e!=null&&e.isDropTarget(l))return r?r(l):u.createElement(xg,{target:l})},[e==null?void 0:e.target,i,r]);return t!=null&&t.useDropIndicator?o:void 0}function Eg(t,e,n){var r,i;let o=t.focusedKey,l=null;if(!(e==null||(r=e.isVirtualDragging)===null||r===void 0)&&r.call(e)&&(n==null||(i=n.target)===null||i===void 0?void 0:i.type)==="item"){l=n.target.key;var a;n.target.dropPosition==="after"&&(l=(a=n.collection.getKeyAfter(l))!==null&&a!==void 0?a:l)}return u.useMemo(()=>new Set([o,l].filter(s=>s!=null)),[o,l])}const hf=u.createContext({}),Ll=u.createContext({}),pf=pi("separator",function(e,n){[e,n]=nt(e,n,Ll);let{elementType:r,orientation:i,style:o,className:l,slot:a,...s}=e,c=r||"hr";c==="hr"&&i==="vertical"&&(c="div");let{separatorProps:d}=ng({...s,elementType:r,orientation:i});return u.createElement(c,{...pe(e),...d,style:o,className:l??"react-aria-Separator",ref:n,slot:a||void 0})}),Al=u.createContext(null),tr=u.createContext(null),$g=u.forwardRef(function(e,n){[e,n]=nt(e,n,Al);let r=u.useContext(tr);return r?u.createElement(vf,{state:r,props:e,listBoxRef:n}):u.createElement(hi,{content:u.createElement(Pl,e)},i=>u.createElement(Pg,{props:e,listBoxRef:n,collection:i}))});function Pg({props:t,listBoxRef:e,collection:n}){t={...t,collection:n,children:null,items:null};let{layoutDelegate:r}=u.useContext(Kt),i=of({...t,layoutDelegate:r});return u.createElement(vf,{state:i,props:t,listBoxRef:e})}function vf({state:t,props:e,listBoxRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=u.useContext(zo)||{};e=u.useMemo(()=>i?{...e,...i}:e,[e,i]);let{dragAndDropHooks:l,layout:a="stack",orientation:s="vertical"}=e;n=tt(u.useMemo(()=>ul(n,o!==void 0?o:null),[o,n]));let c=pg(t,r),{collection:d,selectionManager:f}=c,h=!!(l!=null&&l.useDraggableCollectionState),v=!!(l!=null&&l.useDroppableCollectionState),{direction:b}=Ft(),{disabledBehavior:p,disabledKeys:g}=f,m=Dl({usage:"search",sensitivity:"base"}),{isVirtualized:C,layoutDelegate:S,dropTargetDelegate:P,CollectionRoot:$}=u.useContext(Kt),x=u.useMemo(()=>e.keyboardDelegate||new kl({collection:d,collator:m,ref:n,disabledKeys:g,disabledBehavior:p,layout:a,orientation:s,direction:b,layoutDelegate:S}),[d,m,n,p,g,s,b,e.keyboardDelegate,a,S]),{listBoxProps:E}=Hv({...e,shouldSelectOnPressUp:h||e.shouldSelectOnPressUp,keyboardDelegate:x,isVirtualized:C},c,n),N=u.useRef(h),H=u.useRef(v);u.useEffect(()=>{process.env.NODE_ENV!=="production"&&(N.current!==h&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),H.current!==v&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[h,v]);let j,w,A,B=!1,L=null,U=u.useRef(null);if(h&&l){j=l.useDraggableCollectionState({collection:d,selectionManager:f,preview:l.renderDragPreview?U:void 0}),l.useDraggableCollection({},j,n);let _=l.DragPreview;L=l.renderDragPreview?u.createElement(_,{ref:U},l.renderDragPreview):null}if(v&&l){w=l.useDroppableCollectionState({collection:d,selectionManager:f});let _=l.dropTargetDelegate||P||new l.ListDropTargetDelegate(d,n,{orientation:s,layout:a,direction:b});A=l.useDroppableCollection({keyboardDelegate:x,dropTargetDelegate:_},w,n),B=w.isDropTarget({type:"root"})}let{focusProps:I,isFocused:R,isFocusVisible:k}=Sn(),G={isDropTarget:B,isEmpty:c.collection.size===0,isFocused:R,isFocusVisible:k,layout:e.layout||"stack",state:c},T=De({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:G}),F=null;return c.collection.size===0&&e.renderEmptyState&&(F=u.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(G))),u.createElement(_l,null,u.createElement("div",{...pe(e),...re(E,I,A==null?void 0:A.collectionProps),...T,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":B||void 0,"data-empty":c.collection.size===0||void 0,"data-focused":R||void 0,"data-focus-visible":k||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},u.createElement(pt,{values:[[Al,e],[tr,c],[gi,{dragAndDropHooks:l,dragState:j,dropState:w}],[Ll,{elementType:"div"}],[df,{render:Tg}],[sf,{name:"ListBoxSection",render:Dg}]]},u.createElement($,{collection:d,scrollRef:n,persistedKeys:Eg(f,l,w),renderDropIndicator:ff(l,w)})),F,L))}function Dg(t,e,n,r="react-aria-ListBoxSection"){let i=u.useContext(tr),{dragAndDropHooks:o,dropState:l}=u.useContext(gi),{CollectionBranch:a}=u.useContext(Kt),[s,c]=ml();var d;let{headingProps:f,groupProps:h}=Gv({heading:c,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),v=De({defaultClassName:r,className:t.className,style:t.style,values:{}});return u.createElement("section",{...pe(t),...h,...v,ref:e},u.createElement(hf.Provider,{value:{...f,ref:s}},u.createElement(a,{collection:i.collection,parent:n,renderDropIndicator:ff(o,l)})))}const _g=pi("item",function(e,n,r){let i=tt(n),o=u.useContext(tr),{dragAndDropHooks:l,dragState:a,dropState:s}=u.useContext(gi),{optionProps:c,labelProps:d,descriptionProps:f,...h}=Wv({key:r.key,"aria-label":e==null?void 0:e["aria-label"]},o,i),{hoverProps:v,isHovered:b}=Cn({isDisabled:!h.allowsSelection&&!h.hasAction,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),p=null;a&&l&&(p=l.useDraggableItem({key:r.key},a));let g=null;s&&l&&(g=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,i));let m=a&&a.isDragging(r.key),C=De({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...h,isHovered:b,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:m,isDropTarget:g==null?void 0:g.isDropTarget}});u.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&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.")},[r.textValue]);let S=e.href?"a":"div";return u.createElement(S,{...re(c,v,p==null?void 0:p.dragProps,g==null?void 0:g.dropProps),...C,ref:i,"data-allows-dragging":!!a||void 0,"data-selected":h.isSelected||void 0,"data-disabled":h.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-dragging":m||void 0,"data-drop-target":(g==null?void 0:g.isDropTarget)||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},u.createElement(pt,{values:[[Nl,{slots:{[gl]:d,label:d,description:f}}]]},C.children))});function Tg(t,e){e=tt(e);let{dragAndDropHooks:n,dropState:r}=u.useContext(gi),{dropIndicatorProps:i,isHidden:o,isDropTarget:l}=n.useDropIndicator(t,r,e);return o?null:u.createElement(Og,{...t,dropIndicatorProps:i,isDropTarget:l,ref:e})}function Ig(t,e){let{dropIndicatorProps:n,isDropTarget:r,...i}=t,o=De({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return u.createElement("div",{...n,...o,role:"option",ref:e,"data-drop-target":r||void 0})}const Og=u.forwardRef(Ig),kg=u.createContext({placement:"bottom"}),gf=u.createContext(null),ss=u.createContext(null),mf=u.forwardRef(function(e,n){[e,n]=nt(e,n,gf);let r=u.useContext(bf),i=Ml(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,l=jh(n,o.isOpen)||e.isExiting||!1,a=Gh(),{direction:s}=Ft();if(a){let c=e.children;return typeof c=="function"&&(c=c({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),u.createElement(u.Fragment,null,c)}return o&&!o.isOpen&&!l?null:u.createElement(Ng,{...e,triggerRef:e.triggerRef,state:o,popoverRef:n,isExiting:l,dir:s})});function Ng({state:t,isExiting:e,UNSTABLE_portalContainer:n,...r}){let i=u.useRef(null),[o,l]=u.useState(0),a=u.useRef(null),s=u.useContext(ss),c=s&&r.trigger==="SubmenuTrigger";ne(()=>{i.current&&t.isOpen&&l(i.current.getBoundingClientRect().width)},[t.isOpen,i]);var d;let{popoverProps:f,underlayProps:h,arrowProps:v,placement:b}=Nv({...r,offset:(d=r.offset)!==null&&d!==void 0?d:8,arrowSize:o,groupRef:c?s:a},t),p=r.popoverRef,g=Kh(p,!!b)||r.isEntering||!1,m=De({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:b,isEntering:g,isExiting:e}}),C=!r.isNonModal||r.trigger==="SubmenuTrigger",[S,P]=u.useState(!1);ne(()=>{p.current&&P(C&&!p.current.querySelector("[role=dialog]"))},[p,C]),u.useEffect(()=>{S&&p.current&&!p.current.contains(document.activeElement)&&vn(p.current)},[S,p]);let $={...f.style,...m.style},x=u.createElement("div",{...re(pe(r),f),...m,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"],ref:p,slot:r.slot||void 0,style:$,dir:r.dir,"data-trigger":r.trigger,"data-placement":b,"data-entering":g||void 0,"data-exiting":e||void 0},!r.isNonModal&&u.createElement(Ya,{onDismiss:t.close}),u.createElement(kg.Provider,{value:{...v,placement:b,ref:i}},m.children),u.createElement(Ya,{onDismiss:t.close}));if(!c)return u.createElement(Za,{...r,shouldContainFocus:S,isExiting:e,portalContainer:n},!r.isNonModal&&t.isOpen&&u.createElement("div",{"data-testid":"underlay",...h,style:{position:"fixed",inset:0}}),u.createElement("div",{ref:a,style:{display:"contents"}},u.createElement(ss.Provider,{value:a},x)));var E;return u.createElement(Za,{...r,shouldContainFocus:S,isExiting:e,portalContainer:(E=n??(s==null?void 0:s.current))!==null&&E!==void 0?E:void 0},x)}const Rg=u.createContext({}),Mg=u.createContext(null),Fl=u.createContext(null),cs=u.createContext(null),Gr=u.createContext(null),Lg=u.createContext(null),Ag=u.forwardRef(function(e,n){return[e,n]=nt(e,n,Mg),u.createElement(hi,{content:u.createElement(Pl,e)},r=>u.createElement(Fg,{props:e,collection:r,menuRef:n}))});function Fg({props:t,collection:e,menuRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=u.useContext(zo)||{};n=tt(u.useMemo(()=>ul(n,o!==void 0?o:null),[o,n]));let l=u.useMemo(()=>r?e.UNSTABLE_filter(r):e,[e,r]),a=Cg({...t,collection:l,children:void 0}),s=u.useContext(cs),{isVirtualized:c,CollectionRoot:d}=u.useContext(Kt),{menuProps:f}=Zv({...t,...i,isVirtualized:c,onClose:t.onClose||(s==null?void 0:s.close)},a,n),h=De({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{isEmpty:a.collection.size===0}}),v=null;return a.collection.size===0&&t.renderEmptyState&&(v=u.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState())),u.createElement(_l,null,u.createElement("div",{...pe(t),...f,...h,ref:n,slot:t.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:t.onScroll},u.createElement(pt,{values:[[Fl,a],[Ll,{elementType:"div"}],[sf,{name:"MenuSection",render:jg}],[Lg,{parentMenuRef:n,shouldUseVirtualFocus:i==null?void 0:i.shouldUseVirtualFocus}],[Vo,null],[zo,null],[Gr,a.selectionManager],[cs,s??gg({})]]},u.createElement(d,{collection:a.collection,persistedKeys:uf(a.selectionManager.focusedKey),scrollRef:n})),v))}class Kg extends er{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,n){return this.parent.setFocusedKey(e,n)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,n){super(e.collection,n),this.parent=e}}function jg(t,e,n,r="react-aria-MenuSection"){var i,o;let l=u.useContext(Fl),{CollectionBranch:a}=u.useContext(Kt),[s,c]=ml();var d;let{headingProps:f,groupProps:h}=Jv({heading:c,"aria-label":(d=n.props["aria-label"])!==null&&d!==void 0?d:void 0}),v=De({defaultClassName:r,className:(i=n.props)===null||i===void 0?void 0:i.className,style:(o=n.props)===null||o===void 0?void 0:o.style,values:{}}),b=u.useContext(Gr),p=Rl(t),g=t.selectionMode!=null?new Kg(b,p):b;return u.createElement("section",{...pe(t),...h,...v,ref:e},u.createElement(pt,{values:[[hf,{...f,ref:s}],[Gr,g]]},u.createElement(a,{collection:l.collection,parent:n})))}const Vo=u.createContext(null),us=pi("item",function(e,n,r){var i;[e,n]=nt(e,n,Vo);let o=(i=ci(Vo))===null||i===void 0?void 0:i.id,l=u.useContext(Fl),a=tt(n),s=u.useContext(Gr),{menuItemProps:c,labelProps:d,descriptionProps:f,keyboardShortcutProps:h,...v}=Xv({...e,id:o,key:r.key,selectionManager:s},l,a),{hoverProps:b,isHovered:p}=Cn({isDisabled:v.isDisabled}),g=De({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...v,isHovered:p,isFocusVisible:v.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),m=e.href?"a":"div";return u.createElement(m,{...re(c,b),...g,ref:a,"data-disabled":v.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":v.isFocused||void 0,"data-focus-visible":v.isFocusVisible||void 0,"data-pressed":v.isPressed||void 0,"data-selected":v.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},u.createElement(pt,{values:[[Nl,{slots:{[gl]:d,label:d,description:f}}],[Rg,h]]},g.children))}),bf=u.createContext(null),yf=u.createContext(null),Cf=u.createContext(null),Hg=u.forwardRef(function(e,n){[e,n]=nt(e,n,yf);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:l=!1}=e,a=u.useMemo(()=>typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:o,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,i,o,l]);return u.createElement(hi,{content:a},s=>u.createElement(zg,{props:e,collection:s,selectRef:n}))});function zg({props:t,selectRef:e,collection:n}){let{validationBehavior:r}=ci(wg)||{};var i,o;let l=(o=(i=t.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",a=mg({...t,collection:n,children:void 0,validationBehavior:l}),{isFocusVisible:s,focusProps:c}=Sn({within:!0}),d=u.useRef(null),[f,h]=ml(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:v,triggerProps:b,valueProps:p,menuProps:g,descriptionProps:m,errorMessageProps:C,...S}=Qv({...Bh(t),label:h,validationBehavior:l},a,d),[P,$]=u.useState(null),x=u.useCallback(()=>{d.current&&$(d.current.offsetWidth+"px")},[d]);$o({ref:d,onResize:x});let E=u.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:s,isDisabled:t.isDisabled||!1,isInvalid:S.isInvalid||!1,isRequired:t.isRequired||!1}),[a.isOpen,a.isFocused,s,t.isDisabled,S.isInvalid,t.isRequired]),N=De({...t,values:E,defaultClassName:"react-aria-Select"}),H=pe(t);delete H.id;let j=u.useRef(null);return u.createElement(pt,{values:[[yf,t],[Cf,a],[Vg,p],[nf,{...v,ref:f,elementType:"span"}],[rf,{...b,ref:d,isPressed:a.isOpen}],[bf,a],[gf,{trigger:"Select",triggerRef:d,scrollRef:j,placement:"bottom start",style:{"--trigger-width":P},"aria-labelledby":g["aria-labelledby"]}],[Al,{...g,ref:j}],[tr,a],[Nl,{slots:{description:m,errorMessage:C}}],[fg,S]]},u.createElement("div",{...H,...N,...c,ref:e,slot:t.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":s||void 0,"data-open":a.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":S.isInvalid||void 0,"data-required":t.isRequired||void 0}),u.createElement(tg,{autoComplete:t.autoComplete,state:a,triggerRef:d,label:h,name:t.name,isDisabled:t.isDisabled}))}const Vg=u.createContext(null),mi=u.createContext(null),gn=u.createContext(null),Bg=u.forwardRef(function(e,n){[e,n]=nt(e,n,mi);let{children:r,orientation:i="horizontal"}=e;return r=u.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),u.createElement(hi,{content:r},o=>u.createElement(Ug,{props:e,collection:o,tabsRef:n}))});function Ug({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=bg({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:a}=Sn({within:!0}),s=u.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:a}),[r,l,a]),c=De({...t,defaultClassName:"react-aria-Tabs",values:s});return u.createElement("div",{...pe(t),...o,...c,ref:e,slot:t.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":a||void 0,"data-disabled":i.isDisabled||void 0},u.createElement(pt,{values:[[mi,t],[gn,i]]},c.children))}const Wg=u.forwardRef(function(e,n){return u.useContext(gn)?u.createElement(Gg,{props:e,forwardedRef:n}):u.createElement(Pl,e)});function Gg({props:t,forwardedRef:e}){let n=u.useContext(gn),{CollectionRoot:r}=u.useContext(Kt),{orientation:i="horizontal",keyboardActivation:o="automatic"}=ci(mi),l=tt(e),{tabListProps:a}=lg({...t,orientation:i,keyboardActivation:o},n,l),s=De({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),c=pe(t);return delete c.id,u.createElement("div",{...c,...a,ref:l,...s,"data-orientation":i||void 0},u.createElement(r,{collection:n.collection,persistedKeys:uf(n.selectionManager.focusedKey)}))}const qg=pi("item",(t,e,n)=>{let r=u.useContext(gn),i=tt(e),{tabProps:o,isSelected:l,isDisabled:a,isPressed:s}=rg({key:n.key,...t},r,i),{focusProps:c,isFocused:d,isFocusVisible:f}=Sn(),{hoverProps:h,isHovered:v}=Cn({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),b=De({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:a,isFocused:d,isFocusVisible:f,isPressed:s,isHovered:v}}),p=n.props.href?"a":"div";return u.createElement(p,{...re(o,c,h,b),ref:i,"data-selected":l||void 0,"data-disabled":a||void 0,"data-focused":d||void 0,"data-focus-visible":f||void 0,"data-pressed":s||void 0,"data-hovered":v||void 0},b.children)}),Yg=Cl(function(e,n){const r=u.useContext(gn);let i=tt(n),{tabPanelProps:o}=ig(e,r,i),{focusProps:l,isFocused:a,isFocusVisible:s}=Sn(),c=r.selectedKey===e.id,d=De({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!c,state:r}});if(!c&&!e.shouldForceMount)return null;let f=pe(e);delete f.id;let h=c?re(f,o,l,d):d;return u.createElement("div",{...h,ref:i,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:Lh(!c),"data-inert":c?void 0:"true"},u.createElement(pt,{values:[[mi,null],[gn,null]]},u.createElement(Kt.Provider,{value:cf},d.children)))}),It=({options:t,isOpen:e=!1,onOpenChange:n,children:r,selectedValues:i=[],onSelectValue:o,topMessage:l,shouldCloseOnInteractOutside:a})=>{const s=u.useId(),c=f=>{n==null||n(f)},d=u.useRef(null);return y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"c__dropdown-menu-trigger",ref:d,id:s,onClick:f=>{f.stopPropagation(),f.preventDefault()},children:r}),y.jsx(mf,{triggerRef:d,style:{marginTop:"0px"},isOpen:e,shouldCloseOnInteractOutside:a,onOpenChange:c,children:y.jsxs(Ag,{className:"c__dropdown-menu","aria-labelledby":s,children:[l&&y.jsx(us,{className:"c__dropdown-menu-item-top-message",children:l}),t.map(f=>f.isHidden?null:y.jsxs(u.Fragment,{children:[y.jsxs(us,{className:"c__dropdown-menu-item","aria-label":f.label,onAction:()=>{var h;f.value&&(o==null||o(f.value)),(h=f.callback)==null||h.call(f),c(!1)},isDisabled:f.isDisabled,children:[f.icon,y.jsx("div",{className:"c__dropdown-menu-item__label","aria-label":f.label,children:f.label}),(f.isChecked||f.value&&i.includes(f.value))&&y.jsx("span",{className:"material-icons checked",children:"check"})]},f.label),f.showSeparator&&y.jsx(pf,{})]},f.label))]})})]})},ht=()=>{const[t,e]=u.useState(!1);return{isOpen:t,setIsOpen:e}},ds="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M10%206v2H5v11h11v-5h2v6a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V7a1%201%200%200%201%201-1h6Zm11-3v8h-2V6.413l-7.793%207.794-1.414-1.414L17.585%205H13V3h8Z'%20/%3e%3c/svg%3e",Zg="data:image/svg+xml,%3csvg%20width='109'%20height='60'%20viewBox='0%200%20109%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3crect%20width='33'%20height='12'%20fill='url(%23paint0_linear_5795_13250)'%20/%3e%3cg%20clip-path='url(%23clip0_5795_13250)'%3e%3cg%20clip-path='url(%23clip1_5795_13250)'%3e%3cpath%20d='M8.475%206.8999C7.8%207.3499%207.2%207.8749%206.75%208.4749V8.3999C7.05%208.0249%207.275%207.6499%207.5%207.2749C7.8%207.1249%208.025%206.8999%208.25%206.6749C8.625%206.2999%209%205.9249%209.525%205.6999C9.75%205.6249%209.9%205.6249%2010.125%205.6999C10.05%205.7749%209.975%205.7749%209.825%205.8499H9.75V5.7749C9.525%205.9999%209.225%206.1499%209%206.4499C8.925%206.5999%208.85%206.8999%208.475%206.8999C8.55%206.8999%208.475%206.9749%208.475%206.8999ZM9.675%2010.3499C9.675%2010.2749%209.6%2010.3499%209.525%2010.3499L9.45%2010.4249L9.375%2010.4999L9.225%2010.6499C9.225%2010.6499%209.3%2010.7249%209.375%2010.6499L9.45%2010.5749C9.525%2010.5749%209.6%2010.4999%209.6%2010.4249C9.675%2010.4249%209.675%2010.4249%209.675%2010.3499ZM8.475%207.1249C8.55%207.1249%208.625%207.1249%208.625%207.0499C8.625%206.9749%208.7%206.9749%208.7%206.9749V6.8999C8.55%206.9749%208.475%207.0499%208.475%207.1249ZM10.275%208.5499C10.35%208.4749%2010.425%208.4749%2010.5%208.4749C11.025%208.3999%2011.55%208.2499%2012.075%208.0249C11.475%207.6499%2010.8%207.3499%2010.125%207.2749H10.2C10.125%207.1999%209.975%207.1999%209.825%207.1249H9.9C9.75%207.0499%209.525%207.0499%209.375%206.9749C9.45%206.9749%209.525%206.8249%209.525%206.7499H9.45C9.15%206.8999%209%207.1249%208.85%207.4249C9%207.4999%209.225%207.4249%209.375%207.4999H9.15C9.075%207.4999%209%207.5749%209%207.6499H9.075C9%207.6499%209%207.7249%208.925%207.7249C9%207.7999%209.075%207.7249%209.225%207.7249C9.225%207.7999%209.3%207.7999%209.3%207.7999C9.225%207.7999%209.15%207.8749%209.075%208.0249C9%208.1749%208.925%208.1749%208.85%208.2499V8.3249C8.625%208.4749%208.4%208.6999%208.175%208.9249V8.9999C8.1%209.0749%208.025%209.0749%208.025%209.1499V9.2249C8.325%209.1499%208.475%208.9249%208.775%208.8499L9.225%208.6249C9.375%208.6249%209.45%208.5499%209.6%208.5499V8.6249H9.75C9.75%208.6999%209.6%208.6249%209.675%208.6999C9.75%208.7749%209.9%208.7749%209.975%208.6999C10.125%208.5499%2010.2%208.5499%2010.275%208.5499ZM9.3%209.7499C9%209.8999%208.625%209.8999%208.4%2010.0499C8.4%2010.0499%208.4%2010.1249%208.325%2010.1249C8.325%2010.1249%208.25%2010.1249%208.25%2010.1999C8.175%2010.1999%208.175%2010.2749%208.1%2010.3499L8.025%2010.4249C8.025%2010.4249%208.025%2010.4999%208.1%2010.4249L8.175%2010.3499C8.175%2010.3499%208.1%2010.4249%208.1%2010.4999V10.7249L8.025%2010.7999C8.025%2010.7999%208.025%2010.8749%207.95%2010.8749L7.875%2010.9499L8.025%2010.7999L8.1%2010.7249H8.25C8.25%2010.7249%208.25%2010.6499%208.325%2010.6499C8.4%2010.5749%208.475%2010.4999%208.55%2010.4999H8.625C8.7%2010.4249%208.85%2010.4249%208.925%2010.3499C9%2010.2749%209.075%2010.1999%209.15%2010.1999C9.3%2010.0499%209.525%209.9749%209.75%209.8249C9.675%209.8249%209.6%209.7499%209.525%209.7499C9.525%209.8249%209.375%209.7499%209.3%209.7499ZM22.5%206.5249C22.425%206.6749%2022.2%206.6749%2022.05%206.7499C21.9%206.8999%2022.05%207.0499%2022.125%207.1249C22.2%207.3499%2021.975%207.4999%2021.825%207.4999C21.9%207.5749%2021.975%207.5749%2021.975%207.5749C21.975%207.7249%2022.125%207.7249%2022.05%207.8749C21.975%208.0249%2021.675%208.0999%2021.825%208.2499C21.9%208.3999%2021.9%208.6249%2021.825%208.7749C21.75%208.9249%2021.6%209.0749%2021.45%209.1499C21.3%209.2249%2021.15%209.2249%2021%209.1499C20.925%209.1499%2020.925%209.0749%2020.85%209.0749C20.475%208.9999%2020.1%208.9249%2019.725%208.9249C19.65%208.9249%2019.5%208.9999%2019.425%208.9999C19.35%209.0749%2019.2%209.1499%2019.125%209.2249L19.05%209.2999C18.975%209.3749%2018.9%209.4499%2018.9%209.5249C18.825%209.6749%2018.75%209.8249%2018.75%209.9749C18.6%2010.3499%2018.6%2010.7249%2018.75%2011.0249C18.75%2011.0249%2019.5%2011.2499%2020.025%2011.4749C20.175%2011.5499%2020.4%2011.6249%2020.55%2011.7749L21.825%2012.5249H9.9L11.1%2011.7749C11.55%2011.4749%2012.075%2011.2499%2012.6%2011.0249C12.975%2010.8749%2013.425%2010.6499%2013.725%2010.3499C13.875%2010.1999%2013.95%2010.0499%2014.1%209.9749C14.325%209.6749%2014.55%209.4499%2014.85%209.2249L15.075%208.9999C15.075%208.9999%2015.075%208.9249%2015.15%208.9249C15%208.9999%2015%209.0749%2014.85%209.0749C14.85%209.0749%2014.775%209.0749%2014.85%208.9999C14.925%208.9249%2015%208.8499%2015.075%208.8499V8.7749C14.775%208.7749%2014.55%208.9249%2014.325%209.1499H14.175C13.8%209.2999%2013.575%209.5249%2013.275%209.6749V9.5999C13.125%209.6749%2012.975%209.7499%2012.9%209.7499C12.75%209.7499%2012.525%209.8249%2012.3%209.7499C12%209.7499%2011.775%209.8249%2011.475%209.8999C11.325%209.9749%2011.175%209.9749%2011.025%2010.0499V10.1249L10.875%2010.2749C10.725%2010.3499%2010.65%2010.4249%2010.5%2010.5749L10.125%2010.9499H10.05L10.125%2010.8749L10.2%2010.7999C10.2%2010.7249%2010.275%2010.7249%2010.275%2010.6499C10.425%2010.5749%2010.5%2010.4249%2010.65%2010.3499C10.65%2010.3499%2010.65%2010.2749%2010.725%2010.2749L10.65%2010.3499C10.575%2010.4249%2010.575%2010.4999%2010.5%2010.4999V10.4249V10.3499L10.65%2010.1999C10.725%2010.1249%2010.8%2010.1249%2010.875%2010.0499H10.95C10.8%2010.1249%2010.725%2010.1249%2010.575%2010.1999H10.5H10.425C10.425%2010.1249%2010.5%2010.1249%2010.575%2010.0499H10.65C11.4%209.4499%2012.375%209.5999%2013.2%209.2999C13.275%209.2249%2013.35%209.2249%2013.425%209.1499C13.5%209.0749%2013.65%208.9999%2013.8%208.9249C13.95%208.7749%2014.1%208.6249%2014.175%208.3999V8.3249C13.875%208.6249%2013.575%208.8499%2013.2%209.0749C12.75%209.2249%2012.225%209.3749%2011.7%209.3749C11.7%209.2999%2011.775%209.2999%2011.775%209.2999C11.775%209.2249%2011.85%209.2249%2011.85%209.1499H11.925C11.925%209.1499%2011.925%209.0749%2012%209.0749H12.075C12%208.9999%2011.85%209.1499%2011.775%209.0749C11.85%208.9999%2011.775%208.9249%2011.85%208.9249H11.925C11.925%208.9249%2011.925%208.8499%2012%208.8499C12.375%208.6249%2012.675%208.4749%2012.975%208.3249C12.9%208.3249%2012.9%208.3999%2012.825%208.3249C12.9%208.3249%2012.825%208.2499%2012.9%208.2499C13.125%208.1749%2013.35%208.0249%2013.575%207.9499C13.5%207.9499%2013.425%208.0249%2013.35%207.9499C13.425%207.9499%2013.425%207.8749%2013.5%207.8749V7.7999C13.5%207.7249%2013.575%207.7999%2013.65%207.7249H13.575C13.65%207.6499%2013.725%207.5749%2013.875%207.5749C13.875%207.4999%2013.8%207.5749%2013.8%207.4999H13.875H13.5C13.425%207.4999%2013.5%207.4249%2013.5%207.4249C13.575%207.2749%2013.65%207.0499%2013.725%206.8999H13.65C13.425%207.1249%2013.05%207.2749%2012.75%207.3499H12.6C12.45%207.4249%2012.3%207.4249%2012.225%207.3499C12.15%207.2749%2012.075%207.1999%2012%207.1999C11.85%207.1249%2011.625%206.9749%2011.4%206.8999C10.875%206.7499%2010.275%206.5999%209.675%206.6749C9.9%206.5999%2010.2%206.5249%2010.5%206.4499C10.875%206.2999%2011.25%206.2249%2011.625%206.2249H11.4C11.1%206.2249%2010.725%206.2999%2010.425%206.3749C10.2%206.4499%209.975%206.5249%209.75%206.5249C9.6%206.5999%209.525%206.6749%209.375%206.6749V6.5999C9.6%206.2999%209.9%206.0749%2010.2%205.9999C10.575%205.9249%2011.025%205.9999%2011.4%206.0749C11.7%206.0749%2012%206.1499%2012.225%206.2249C12.3%206.2249%2012.375%206.3749%2012.45%206.4499C12.6%206.5249%2012.75%206.4499%2012.825%206.5249V6.3749C12.9%206.2999%2013.05%206.3749%2013.125%206.3749C13.275%206.2249%2012.975%206.0749%2012.9%205.9249V5.8499C13.05%205.9999%2013.275%206.1499%2013.425%206.2999C13.5%206.3749%2013.8%206.4499%2013.8%206.2999C13.65%206.0749%2013.5%205.8499%2013.275%205.6249V5.4749C13.2%205.4749%2013.2%205.4749%2013.2%205.3999C13.125%205.3249%2013.125%205.2499%2013.125%205.1749C13.05%205.0249%2013.125%204.8749%2013.05%204.7999C12.975%204.6499%2012.975%204.5749%2012.975%204.4249C12.9%204.0499%2012.825%203.6749%2012.75%203.3749C12.675%202.9249%2012.975%202.6249%2013.2%202.2499C13.35%201.9499%2013.575%201.7249%2013.8%201.4999C13.875%201.1999%2014.025%200.974902%2014.25%200.749902C14.475%200.524902%2014.7%200.374902%2014.925%200.299902C15.15%200.224902%2015.3%200.149902%2015.525%200.0749024L17.4%20-0.225098H18.75L20.1%20-9.76473e-05C20.175%20-9.76473e-05%2020.25%20-9.76324e-05%2020.25%200.0749024C20.325%200.149902%2020.475%200.224902%2020.55%200.224902C20.7%200.299902%2020.85%200.449902%2021%200.599902C21.075%200.674902%2021.15%200.824902%2021.075%200.899902C21%200.974902%2021%201.1999%2020.925%201.1999C20.775%201.2749%2020.625%201.2749%2020.475%201.2749C20.4%201.2749%2020.325%201.2749%2020.175%201.1999C20.55%201.3499%2020.85%201.4999%2021.075%201.7999C21.075%201.8749%2021.225%201.8749%2021.3%201.8749V1.9499C21.225%202.0249%2021.225%202.0249%2021.225%202.0999H21.3C21.375%202.0249%2021.375%201.7999%2021.525%201.8749C21.675%201.9499%2021.675%202.0999%2021.6%202.1749C21.525%202.2499%2021.45%202.3249%2021.3%202.3999V2.5499C21.375%202.6249%2021.375%202.6999%2021.45%202.8499C21.525%202.9999%2021.525%203.2249%2021.6%203.3749C21.675%203.7499%2021.75%204.0499%2021.75%204.4249C21.75%204.5749%2021.675%204.7999%2021.75%204.9499L21.975%205.3999C22.05%205.5499%2022.125%205.6249%2022.2%205.7749C22.35%205.9999%2022.65%206.2249%2022.5%206.5249ZM10.8%2010.4249C10.725%2010.4249%2010.725%2010.4999%2010.725%2010.4999C10.725%2010.4999%2010.8%2010.4999%2010.8%2010.4249ZM10.125%208.9249C10.125%208.9999%2010.2%208.9249%2010.2%208.9249C10.35%208.8499%2010.575%208.9249%2010.65%208.7749C10.575%208.6999%2010.5%208.7749%2010.5%208.6999C10.425%208.6999%2010.35%208.6999%2010.35%208.7749C10.275%208.8499%2010.125%208.8499%2010.125%208.9249Z'%20fill='white'%20/%3e%3cpath%20d='M20.925%204.3501C21%204.3501%2021.15%204.3501%2021.15%204.4251C21.075%204.5751%2020.85%204.6501%2020.7%204.8001H20.625C20.55%204.8751%2020.55%204.9501%2020.55%204.9501H20.325C20.4%205.0251%2020.55%205.1001%2020.7%205.1001L20.775%205.1751H20.925V5.2501C20.85%205.3251%2020.775%205.3251%2020.625%205.3251C20.775%205.4001%2021%205.4001%2021.15%205.3251C21.3%205.2501%2021.15%205.0251%2021.225%204.9501C21.15%204.9501%2021.225%204.8751%2021.15%204.8751C21.225%204.8001%2021.225%204.7251%2021.3%204.7251C21.375%204.7251%2021.375%204.7251%2021.45%204.6501C21.45%204.5751%2021.375%204.5751%2021.375%204.5001C21.525%204.4251%2021.6%204.2751%2021.6%204.1251C21.6%204.0501%2021.375%204.0501%2021.3%203.9751H20.925C20.775%203.9751%2020.7%204.0501%2020.55%204.0501L20.1%204.2751C20.25%204.2001%2020.4%204.2001%2020.625%204.1251C20.625%204.3501%2020.775%204.3501%2020.925%204.3501Z'%20fill='%237C7C7C'%20/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M5.355%2025.5762C6.1866%2025.5762%206.9048%2025.2864%207.4088%2024.8076V23.2704H5.166V21.7458H9.198V25.4502C8.379%2026.5464%207.0056%2027.252%205.355%2027.252C2.4948%2027.252%200.5418%2025.11%200.5418%2022.59C0.5418%2020.07%202.4444%2017.928%205.229%2017.928C6.8292%2017.928%208.1396%2018.6462%208.946%2019.7172L7.5348%2020.8134C7.0308%2020.0952%206.237%2019.6038%205.229%2019.6038C3.5658%2019.6038%202.3814%2020.9016%202.3814%2022.59C2.3814%2024.2784%203.6288%2025.5762%205.355%2025.5762ZM15.2175%2017.928C17.9895%2017.928%2019.8921%2020.07%2019.8921%2022.59C19.8921%2025.11%2017.9895%2027.252%2015.2175%2027.252C12.4329%2027.252%2010.5303%2025.11%2010.5303%2022.59C10.5303%2020.07%2012.4329%2017.928%2015.2175%2017.928ZM15.2175%2025.5762C16.8681%2025.5762%2018.0525%2024.2784%2018.0525%2022.59C18.0525%2020.9016%2016.8681%2019.6038%2015.2175%2019.6038C13.5543%2019.6038%2012.3699%2020.9016%2012.3699%2022.59C12.3699%2024.2784%2013.5543%2025.5762%2015.2175%2025.5762ZM26.8084%2023.6988V18.18H28.5976V23.5476C28.5976%2025.866%2027.2368%2027.252%2025.0192%2027.252C22.8142%2027.252%2021.4534%2025.866%2021.4534%2023.5476V18.18H23.2426V23.6988C23.2426%2024.8832%2023.9104%2025.5762%2025.0318%2025.5762C26.128%2025.5762%2026.8084%2024.8832%2026.8084%2023.6988ZM29.7114%2018.18H31.614L34.2222%2025.0722L36.8304%2018.18H38.733L35.394%2027H33.0504L29.7114%2018.18ZM40.095%2027V18.18H45.2358V19.6668H41.8842V21.7584H44.7318V23.2452H41.8842V25.5132H45.2358V27H40.095ZM47.3149%2027V18.18H50.0113C51.9517%2018.18%2053.1487%2019.1754%2053.1487%2020.8134C53.1487%2021.8844%2052.6321%2022.6782%2051.7249%2023.094L54.4843%2027H52.3801L50.0239%2023.4342H49.1041V27H47.3149ZM50.1121%2019.6668H49.1041V21.9474H50.1121C50.8681%2021.9474%2051.3091%2021.5064%2051.3091%2020.7882C51.3091%2020.1204%2050.8681%2019.6668%2050.1121%2019.6668ZM55.6176%2027V18.18H57.9108L61.8546%2024.5556V18.18H63.6438V27H61.3506L57.4068%2020.6244V27H55.6176ZM66.1105%2027V18.18H71.2513V19.6668H67.8997V21.7584H70.7473V23.2452H67.8997V25.5132H71.2513V27H66.1105ZM73.3304%2027V18.18H75.5606L77.7152%2021.8844L79.8698%2018.18H82.1V27H80.3108V20.6748L78.3452%2023.976H77.0852L75.1196%2020.6748V27H73.3304ZM84.5617%2027V18.18H89.7025V19.6668H86.3509V21.7584H89.1985V23.2452H86.3509V25.5132H89.7025V27H84.5617ZM91.7816%2027V18.18H94.0748L98.0186%2024.5556V18.18H99.8078V27H97.5146L93.5708%2020.6244V27H91.7816ZM101.367%2019.8054V18.18H108.6V19.8054H105.878V27H104.089V19.8054H101.367Z'%20fill='%23161616'%20/%3e%3cg%20clip-path='url(%23clip2_5795_13250)'%3e%3cg%20clip-path='url(%23clip3_5795_13250)'%3e%3cg%20clip-path='url(%23clip4_5795_13250)'%3e%3cg%20clip-path='url(%23clip5_5795_13250)'%3e%3cg%20clip-path='url(%23clip6_5795_13250)'%3e%3cpath%20d='M30.775%2056.45C31.15%2055.5%2030.7%2055.125%2030.15%2055.125C29.225%2055.125%2028.175%2056.75%2028.175%2058.05C28.175%2058.675%2028.475%2059%2028.925%2059C29.45%2059%2030%2058.5%2030.475%2057.625H30.225C29.925%2058%2029.575%2058.275%2029.25%2058.275C28.925%2058.275%2028.75%2058.075%2028.75%2057.625C28.7558%2057.4396%2028.781%2057.2552%2028.825%2057.075L30.775%2056.45ZM29.775%2055.675C30.05%2055.675%2030.275%2055.875%2030.15%2056.325L28.95%2056.65C29.15%2056.1%2029.5%2055.65%2029.8%2055.65L29.775%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M30.15%2054.6999L31.275%2053.6749V53.5249H30.525L29.85%2054.6999H30.175H30.15Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip7_5795_13250)'%3e%3cpath%20d='M25.975%2055.675H26.625L25.575%2058.525C25.5421%2058.576%2025.5242%2058.6352%2025.5232%2058.6959C25.5222%2058.7565%2025.5382%2058.8163%2025.5694%2058.8683C25.6007%2058.9204%2025.6458%2058.9626%2025.6998%2058.9903C25.7538%2059.018%2025.8145%2059.03%2025.875%2059.025C26.625%2059.025%2027.475%2058.375%2027.825%2057.475H27.65C27.3359%2057.9021%2026.8865%2058.2105%2026.375%2058.35L27.3%2055.675H28.3L28.425%2055.275H27.475L27.8%2054.25H27.45L26.775%2055.275L25.975%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip8_5795_13250)'%3e%3cpath%20d='M25.3%2055.5249C25.375%2055.2749%2025.2%2055.1249%2025.05%2055.1249C24.5%2055.1249%2023.8%2055.6499%2023.55%2056.3749H23.725C23.9026%2056.0881%2024.1778%2055.875%2024.5%2055.7749L23.425%2058.5999C23.4034%2058.6422%2023.3932%2058.6894%2023.3952%2058.7368C23.3973%2058.7843%2023.4116%2058.8304%2023.4368%2058.8707C23.4619%2058.911%2023.4971%2058.9441%2023.5389%2058.9667C23.5806%2058.9893%2023.6275%2059.0008%2023.675%2058.9999C24.225%2058.9999%2024.85%2058.4999%2025.125%2057.7499H24.9C24.7378%2058.0509%2024.471%2058.2821%2024.15%2058.3999L25.3%2055.5249ZM25.4%2054.4499C25.4591%2054.4499%2025.5176%2054.4383%2025.5722%2054.4156C25.6268%2054.393%2025.6764%2054.3599%2025.7182%2054.3181C25.76%2054.2763%2025.7932%2054.2267%2025.8158%2054.1721C25.8384%2054.1175%2025.85%2054.059%2025.85%2053.9999C25.8534%2053.9387%2025.8443%2053.8775%2025.8232%2053.82C25.8021%2053.7625%2025.7695%2053.7099%2025.7274%2053.6654C25.6853%2053.6209%2025.6345%2053.5855%2025.5782%2053.5614C25.5219%2053.5372%2025.4613%2053.5248%2025.4%2053.5249C25.2807%2053.5249%2025.1662%2053.5723%2025.0818%2053.6567C24.9974%2053.7411%2024.95%2053.8556%2024.95%2053.9749C24.95%2054.0943%2024.9974%2054.2087%2025.0818%2054.2931C25.1662%2054.3775%2025.2807%2054.4249%2025.4%2054.4249'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip9_5795_13250)'%3e%3cpath%20d='M20.125%2055.8999C20.3%2055.8999%2020.375%2056.1499%2020.125%2056.7499L19.375%2058.4499C19.2%2058.7749%2019.375%2058.9999%2019.675%2058.9999C19.7577%2059.0148%2019.843%2058.997%2019.9129%2058.9504C19.9828%2058.9038%2020.0319%2058.8319%2020.05%2058.7499L20.8%2056.7499C21.15%2056.3249%2021.8%2055.8749%2022.05%2055.8749C22.3%2055.8749%2022.25%2056.0249%2022.125%2056.2749L20.975%2058.5249C20.9497%2058.5734%2020.9371%2058.6276%2020.9383%2058.6823C20.9395%2058.737%2020.9545%2058.7906%2020.9819%2058.838C21.0094%2058.8854%2021.0483%2058.925%2021.0952%2058.9533C21.142%2058.9816%2021.1953%2058.9976%2021.25%2058.9999C21.825%2058.9999%2022.5%2058.4999%2022.75%2057.7499H22.6C22.4209%2058.051%2022.1355%2058.274%2021.8%2058.3749L22.8%2056.3749C22.9222%2056.1611%2022.9908%2055.9209%2023%2055.6749C23.0079%2055.6007%2022.9991%2055.5257%2022.9742%2055.4554C22.9494%2055.3851%2022.9091%2055.3212%2022.8564%2055.2685C22.8036%2055.2158%2022.7398%2055.1755%2022.6695%2055.1507C22.5991%2055.1258%2022.5242%2055.117%2022.45%2055.1249C21.95%2055.1249%2021.55%2055.6749%2020.95%2056.3749V55.8249C20.95%2055.4749%2020.825%2055.1249%2020.5%2055.1249C20.1%2055.1249%2019.75%2055.7499%2019.475%2056.3499H19.65C19.825%2056.0749%2019.975%2055.8999%2020.15%2055.8999'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip10_5795_13250)'%3e%3cpath%20d='M19.375%2056C19.5%2055.525%2019.425%2055.125%2019.075%2055.125C18.625%2055.125%2018.5%2055.425%2018.075%2056.375V55.825C18.05%2055.45%2017.925%2055.125%2017.575%2055.125C17.2%2055.125%2016.85%2055.75%2016.55%2056.375H16.75C16.925%2056.05%2017.125%2055.875%2017.25%2055.875C17.425%2055.875%2017.5%2056.125%2017.25%2056.725L16.5%2058.425C16.325%2058.75%2016.5%2058.95%2016.8%2058.95C16.8827%2058.9649%2016.968%2058.9472%2017.0379%2058.9006C17.1078%2058.8539%2017.1569%2058.7821%2017.175%2058.7L17.925%2056.7C18.1317%2056.4415%2018.3486%2056.1913%2018.575%2055.95H19.375V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip11_5795_13250)'%3e%3cpath%20d='M16.175%2056.45C16.55%2055.5%2016.1%2055.125%2015.55%2055.125C14.625%2055.125%2013.575%2056.75%2013.575%2058.05C13.575%2058.675%2013.875%2059%2014.325%2059C14.85%2059%2015.4%2058.5%2015.875%2057.625H15.625C15.325%2058%2014.975%2058.275%2014.65%2058.275C14.325%2058.275%2014.15%2058.075%2014.15%2057.625C14.1559%2057.4396%2014.181%2057.2552%2014.225%2057.075L16.175%2056.45ZM15.175%2055.675C15.45%2055.675%2015.675%2055.875%2015.55%2056.325L14.35%2056.65C14.55%2056.1%2014.9%2055.65%2015.2%2055.65L15.175%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip12_5795_13250)'%3e%3cpath%20d='M11.35%2055.675H12L10.95%2058.525C10.9171%2058.576%2010.8992%2058.6352%2010.8982%2058.6959C10.8972%2058.7565%2010.9132%2058.8163%2010.9444%2058.8683C10.9757%2058.9204%2011.0208%2058.9626%2011.0748%2058.9903C11.1288%2059.018%2011.1895%2059.03%2011.25%2059.025C12%2059.025%2012.85%2058.375%2013.2%2057.475H13.025C12.7109%2057.9021%2012.2615%2058.2105%2011.75%2058.35L12.675%2055.675H13.675L13.8%2055.275H12.85L13.175%2054.25H12.825L12.15%2055.275L11.35%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip13_5795_13250)'%3e%3cpath%20d='M9.84996%2058.2252C9.69996%2058.2252%209.59996%2057.9752%209.84996%2057.3752L10.875%2054.9752L10.575%2054.9502L10.25%2055.2752H10.175C8.74996%2055.2752%207.22496%2057.1002%207.22496%2058.5002C7.22137%2058.5701%207.23249%2058.64%207.25761%2058.7053C7.28272%2058.7706%207.32126%2058.8299%207.37075%2058.8794C7.42024%2058.9289%207.47956%2058.9674%207.54488%2058.9926C7.6102%2059.0177%207.68007%2059.0288%207.74996%2059.0252C8.17496%2059.0252%208.57496%2058.4252%209.04996%2057.7752L9.02496%2058.0252C8.94996%2058.6752%209.17496%2059.0252%209.52496%2059.0252C9.89996%2059.0252%2010.275%2058.4252%2010.525%2057.8002H10.35C10.175%2058.0752%209.97496%2058.2502%209.84996%2058.2502V58.2252ZM9.19996%2057.4002C8.87496%2057.8002%208.34996%2058.2752%208.12496%2058.2752C7.99996%2058.2752%207.89996%2058.1502%207.89996%2057.8752C7.89996%2057.0002%208.89996%2055.8252%209.39996%2055.8252C9.51862%2055.822%209.63696%2055.8389%209.74996%2055.8752L9.19996%2057.4002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip14_5795_13250)'%3e%3cpath%20d='M7.85004%2056C7.97504%2055.525%207.90004%2055.125%207.55004%2055.125C7.10004%2055.125%206.97504%2055.425%206.55004%2056.375V55.825C6.52504%2055.45%206.40004%2055.125%206.05004%2055.125C5.67504%2055.125%205.32504%2055.75%205.02504%2056.375H5.22504C5.40004%2056.05%205.60004%2055.875%205.72504%2055.875C5.90004%2055.875%205.97504%2056.125%205.72504%2056.725L4.97504%2058.425C4.80004%2058.75%204.97504%2058.95%205.27504%2058.95C5.35775%2058.9649%205.443%2058.9472%205.51292%2058.9006C5.58284%2058.8539%205.63198%2058.7821%205.65004%2058.7L6.40004%2056.7C6.60676%2056.4415%206.82359%2056.1913%207.05004%2055.95H7.85004V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip15_5795_13250)'%3e%3cpath%20d='M2.79998%2058.8499L2.87498%2058.6249C1.92498%2058.4499%201.79998%2058.4499%202.19998%2057.4249L2.54998%2056.4499H3.29998C3.77498%2056.4499%203.77498%2056.6749%203.69998%2057.1999H3.94998L4.59998%2055.4749H4.34998C4.09998%2055.8749%203.89998%2056.1999%203.39998%2056.1999H2.64998L3.14998%2054.7999C3.34998%2054.2999%203.42498%2054.1999%204.07498%2054.1999H4.24998C4.89998%2054.1999%204.99998%2054.3749%204.99998%2055.0749H5.24998L5.47498%2053.8999H1.82498L1.74998%2054.1249C2.49998%2054.2749%202.57498%2054.3499%202.24998%2055.3249L1.42498%2057.3999C1.04998%2058.3749%200.924976%2058.4499%200.0499756%2058.5999L-0.0250244%2058.8249L2.79998%2058.8499Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip16_5795_13250)'%3e%3cg%20clip-path='url(%23clip17_5795_13250)'%3e%3cpath%20d='M21.925%2048.2C22.3%2047.25%2021.85%2046.875%2021.3%2046.875C20.375%2046.875%2019.325%2048.5%2019.325%2049.8C19.325%2050.425%2019.625%2050.75%2020.075%2050.75C20.6%2050.75%2021.15%2050.25%2021.625%2049.375H21.375C21.075%2049.75%2020.725%2050.025%2020.4%2050.025C20.075%2050.025%2019.9%2049.825%2019.9%2049.375C19.9059%2049.1896%2019.931%2049.0052%2019.975%2048.825L21.925%2048.2ZM20.925%2047.425C21.2%2047.425%2021.425%2047.625%2021.3%2048.075L20.1%2048.4C20.3%2047.85%2020.65%2047.4%2020.95%2047.4L20.925%2047.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.3%2046.4499L22.425%2045.4249V45.2749H21.675L21%2046.4499H21.325H21.3Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip18_5795_13250)'%3e%3cpath%20d='M17.125%2047.425H17.775L16.725%2050.275C16.6921%2050.326%2016.6742%2050.3852%2016.6732%2050.4459C16.6722%2050.5065%2016.6882%2050.5663%2016.7195%2050.6183C16.7507%2050.6704%2016.7959%2050.7126%2016.8499%2050.7403C16.9039%2050.768%2016.9645%2050.78%2017.025%2050.775C17.775%2050.775%2018.625%2050.125%2018.975%2049.225H18.8C18.4859%2049.6521%2018.0365%2049.9605%2017.525%2050.1L18.45%2047.425H19.45L19.575%2047.025H18.625L18.95%2046H18.6L17.925%2047.025L17.125%2047.125V47.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip19_5795_13250)'%3e%3cpath%20d='M16.45%2047.25C16.525%2047%2016.35%2046.85%2016.2%2046.85C15.65%2046.85%2014.95%2047.375%2014.7%2048.1H14.875C15.0526%2047.8132%2015.3278%2047.6001%2015.65%2047.5L14.575%2050.325C14.5534%2050.3673%2014.5431%2050.4145%2014.5452%2050.4619C14.5472%2050.5094%2014.5615%2050.5555%2014.5867%2050.5958C14.6119%2050.6361%2014.6471%2050.6692%2014.6888%2050.6918C14.7306%2050.7144%2014.7775%2050.7259%2014.825%2050.725C15.375%2050.725%2016%2050.225%2016.275%2049.475H16.05C15.8878%2049.776%2015.621%2050.0072%2015.3%2050.125L16.45%2047.25ZM16.55%2046.175C16.6091%2046.175%2016.6676%2046.1634%2016.7222%2046.1407C16.7768%2046.1181%2016.8264%2046.085%2016.8682%2046.0432C16.91%2046.0014%2016.9431%2045.9518%2016.9657%2045.8972C16.9884%2045.8426%2017%2045.7841%2017%2045.725C17.0034%2045.6638%2016.9943%2045.6026%2016.9732%2045.5451C16.9521%2045.4876%2016.9195%2045.435%2016.8774%2045.3905C16.8352%2045.346%2016.7845%2045.3106%2016.7282%2045.2865C16.6719%2045.2623%2016.6113%2045.2499%2016.55%2045.25C16.4306%2045.25%2016.3162%2045.2974%2016.2318%2045.3818C16.1474%2045.4662%2016.1%2045.5807%2016.1%2045.7C16.1%2045.8193%2016.1474%2045.9338%2016.2318%2046.0182C16.3162%2046.1026%2016.4306%2046.15%2016.55%2046.15'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip20_5795_13250)'%3e%3cpath%20d='M13.075%2050.1249L14.875%2045.3499L14.8%2045.2749L13.55%2045.4249V45.5749L13.8%2045.7499C14.025%2045.9249%2013.95%2046.0749%2013.75%2046.5999L12.4%2050.2499C12.3685%2050.2991%2012.3509%2050.3559%2012.349%2050.4142C12.3471%2050.4726%2012.3609%2050.5304%2012.389%2050.5815C12.4172%2050.6327%2012.4586%2050.6753%2012.5089%2050.705C12.5592%2050.7346%2012.6166%2050.7501%2012.675%2050.7499C13.25%2050.7499%2013.85%2050.2249%2014.125%2049.4999H13.95C13.7377%2049.8015%2013.4291%2050.0219%2013.075%2050.1249Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip21_5795_13250)'%3e%3cpath%20d='M11.35%2049.9752C11.2%2049.9752%2011.1%2049.7252%2011.35%2049.1252L12.375%2046.7252L12.075%2046.7002L11.75%2047.0252H11.675C10.25%2047.0252%208.72496%2048.8502%208.72496%2050.2502C8.72137%2050.3201%208.73249%2050.39%208.75761%2050.4553C8.78272%2050.5206%208.82126%2050.5799%208.87075%2050.6294C8.92024%2050.6789%208.97956%2050.7174%209.04488%2050.7426C9.1102%2050.7677%209.18007%2050.7788%209.24996%2050.7752C9.67496%2050.7752%2010.075%2050.1752%2010.55%2049.5252L10.525%2049.7752C10.45%2050.4252%2010.675%2050.7752%2011.025%2050.7752C11.4%2050.7752%2011.775%2050.1752%2012.025%2049.5502H11.85C11.675%2049.8252%2011.475%2050.0002%2011.35%2050.0002V49.9752ZM10.7%2049.1502C10.375%2049.5502%209.84996%2050.0252%209.62496%2050.0252C9.49996%2050.0252%209.39996%2049.9002%209.39996%2049.6252C9.39996%2048.7502%2010.4%2047.5752%2010.9%2047.5752C11.0186%2047.572%2011.137%2047.5889%2011.25%2047.6252L10.7%2049.1502Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip22_5795_13250)'%3e%3cpath%20d='M9.15%2047.0002H8.075C7.91845%2046.8999%207.73591%2046.8477%207.55%2046.8502C7.11669%2046.8501%206.70075%2047.0205%206.39202%2047.3246C6.0833%2047.6286%205.90657%2048.0419%205.9%2048.4752C5.88969%2048.5836%205.90095%2048.693%205.93314%2048.797C5.96532%2048.9011%206.01779%2048.9977%206.08751%2049.0814C6.15724%2049.1651%206.24284%2049.2341%206.33938%2049.2845C6.43592%2049.335%206.54149%2049.3658%206.65%2049.3752C6.175%2049.5752%205.9%2049.8252%205.9%2050.1002C5.9%2050.1772%205.92093%2050.2528%205.96057%2050.3188C6.0002%2050.3849%206.05703%2050.4389%206.125%2050.4752C5.05%2050.8002%204.625%2051.1752%204.625%2051.6502C4.625%2052.1502%205.275%2052.3502%206.025%2052.3502C7.35%2052.3502%208.425%2051.6752%208.425%2051.0752C8.425%2050.6252%208.025%2050.4502%207.35%2050.2502C6.8%2050.0752%206.55%2050.0502%206.55%2049.8502C6.56644%2049.752%206.60704%2049.6595%206.66814%2049.581C6.72924%2049.5024%206.80892%2049.4403%206.9%2049.4002C7.31131%2049.369%207.69601%2049.1848%207.97828%2048.884C8.26056%2048.5832%208.41993%2048.1876%208.425%2047.7752C8.42962%2047.6483%208.41272%2047.5215%208.375%2047.4002H9L9.15%2047.0002ZM7.1%2050.9002C7.625%2051.0752%207.85%2051.1502%207.85%2051.3002C7.85%2051.6502%207.35%2051.9252%206.45%2051.9252C5.775%2051.9252%205.45%2051.7752%205.45%2051.4252C5.45%2051.0502%205.8%2050.8002%206.325%2050.6002C6.56712%2050.7189%206.81783%2050.8191%207.075%2050.9002H7.1ZM6.9%2049.1002C6.65%2049.1002%206.575%2048.9002%206.575%2048.6752C6.575%2047.9752%206.925%2047.1252%207.45%2047.1252C7.7%2047.1252%207.775%2047.3252%207.775%2047.5252C7.775%2048.2502%207.425%2049.1002%206.9%2049.1002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip23_5795_13250)'%3e%3cpath%20d='M3.575%2048.2252C4.05%2048.2252%204.075%2048.4252%203.975%2048.9252H4.25L4.875%2047.2252H4.625C4.375%2047.6252%204.2%2047.9502%203.675%2047.9502H2.65L3.15%2046.5502C3.325%2046.0502%203.4%2045.9502%204.075%2045.9502H4.5C5.15%2045.9502%205.25%2046.1252%205.25%2046.8252H5.5L5.725%2045.6502H1.825L1.75%2045.8752C2.5%2046.0252%202.575%2046.1002%202.25%2047.0752L1.45%2049.1752C1.075%2050.1502%200.95%2050.2252%200.05%2050.3752L0%2050.6252H4.35L5.15%2049.3752H4.85C4.35%2049.8752%203.85%2050.3252%202.85%2050.3252C1.675%2050.3252%201.775%2050.2502%202.175%2049.1752L2.525%2048.2252H3.575ZM4.15%2045.2752L5.25%2044.4752V44.3252H4.5L3.85%2045.3002H4.15V45.2752Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip24_5795_13250)'%3e%3cg%20clip-path='url(%23clip25_5795_13250)'%3e%3cpath%20d='M21.8%2039.95C22.175%2039%2021.725%2038.625%2021.175%2038.625C20.25%2038.625%2019.2%2040.25%2019.2%2041.55C19.2%2042.175%2019.5%2042.5%2019.95%2042.5C20.475%2042.5%2021.025%2042%2021.5%2041.125H21.25C20.95%2041.5%2020.6%2041.775%2020.275%2041.775C19.95%2041.775%2019.775%2041.575%2019.775%2041.125C19.7809%2040.9396%2019.806%2040.7552%2019.85%2040.575L21.8%2039.95ZM20.8%2039.175C21.075%2039.175%2021.3%2039.375%2021.175%2039.825L19.975%2040.15C20.175%2039.6%2020.525%2039.15%2020.825%2039.15L20.8%2039.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.175%2038.1999L22.3%2037.1749V37.0249H21.55L20.875%2038.1999H21.2H21.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip26_5795_13250)'%3e%3cpath%20d='M16.975%2039.1501H17.625L16.575%2042.0001C16.5421%2042.0511%2016.5242%2042.1103%2016.5232%2042.171C16.5222%2042.2316%2016.5382%2042.2914%2016.5694%2042.3434C16.6007%2042.3955%2016.6458%2042.4377%2016.6998%2042.4654C16.7538%2042.4931%2016.8145%2042.5051%2016.875%2042.5001C17.625%2042.5001%2018.475%2041.8501%2018.825%2040.9501H18.65C18.3359%2041.3772%2017.8865%2041.6856%2017.375%2041.8251L18.3%2039.1501H19.3L19.425%2038.7501H18.475L18.8%2037.7251H18.45L17.775%2038.7501L16.975%2038.8501V39.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip27_5795_13250)'%3e%3cpath%20d='M16.65%2039.5C16.775%2039.025%2016.7%2038.625%2016.35%2038.625C15.9%2038.625%2015.775%2038.925%2015.35%2039.875V39.325C15.325%2038.95%2015.2%2038.625%2014.85%2038.625C14.475%2038.625%2014.125%2039.25%2013.825%2039.875H14.025C14.2%2039.55%2014.4%2039.375%2014.525%2039.375C14.7%2039.375%2014.775%2039.625%2014.525%2040.225L13.775%2041.925C13.6%2042.25%2013.775%2042.45%2014.075%2042.45C14.1577%2042.4649%2014.243%2042.4472%2014.3129%2042.4006C14.3828%2042.3539%2014.432%2042.2821%2014.45%2042.2L15.2%2040.2C15.4067%2039.9415%2015.6236%2039.6913%2015.85%2039.45H16.65V39.5Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip28_5795_13250)'%3e%3cpath%20d='M13.45%2039.9251C13.825%2038.9751%2013.375%2038.6001%2012.825%2038.6001C11.9%2038.6001%2010.85%2040.2251%2010.85%2041.5251C10.85%2042.1501%2011.15%2042.4751%2011.6%2042.4751C12.125%2042.4751%2012.675%2041.9751%2013.15%2041.1001H12.9C12.6%2041.4751%2012.25%2041.7501%2011.925%2041.7501C11.6%2041.7501%2011.425%2041.5501%2011.425%2041.1001C11.4308%2040.9147%2011.456%2040.7303%2011.5%2040.5501L13.45%2039.9251ZM12.45%2039.1501C12.725%2039.1501%2012.95%2039.3501%2012.825%2039.8001L11.625%2040.1251C11.825%2039.5751%2012.175%2039.1251%2012.475%2039.1251L12.45%2039.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip29_5795_13250)'%3e%3cpath%20d='M10.2%2038.6249C9.69998%2038.6249%209.19998%2039.1749%208.74998%2039.8249L9.74998%2037.0999L9.69998%2037.0249L8.44998%2037.1749V37.2749L8.69998%2037.4749C8.92498%2037.6499%208.84998%2037.7999%208.64998%2038.3249L7.54998%2041.2249C7.46796%2041.4023%207.40106%2041.5863%207.34998%2041.7749C7.34998%2042.1249%207.79998%2042.4499%208.22498%2042.4499C9.17498%2042.4499%2010.725%2040.7249%2010.725%2039.3999C10.725%2038.8249%2010.6%2038.5999%2010.2%2038.5999V38.6249ZM8.54998%2041.8999C8.34998%2041.8999%208.07498%2041.7249%208.07498%2041.5749C8.12768%2041.3868%208.19454%2041.2029%208.27498%2041.0249L8.59998%2040.1999C8.92498%2039.7749%209.44998%2039.3499%209.74998%2039.3499C9.92498%2039.3499%2010.05%2039.4499%2010.05%2039.7249C10.05%2040.4999%209.32498%2041.8999%208.54998%2041.8999Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip30_5795_13250)'%3e%3cpath%20d='M7.05003%2039C7.12503%2038.75%206.95003%2038.6%206.80003%2038.6C6.25003%2038.6%205.55003%2039.125%205.30003%2039.85H5.47503C5.65263%2039.5632%205.92784%2039.3501%206.25003%2039.25L5.17503%2042.075C5.15343%2042.1173%205.14316%2042.1645%205.14522%2042.2119C5.14727%2042.2594%205.16158%2042.3055%205.18676%2042.3458C5.21193%2042.3861%205.24711%2042.4192%205.28887%2042.4418C5.33063%2042.4644%205.37754%2042.4759%205.42503%2042.475C5.97503%2042.475%206.60003%2041.975%206.87503%2041.225H6.65003C6.4878%2041.526%206.22102%2041.7572%205.90003%2041.875L7.05003%2039ZM7.15003%2037.925C7.20913%2037.925%207.26764%2037.9134%207.32224%2037.8907C7.37684%2037.8681%207.42645%2037.835%207.46823%2037.7932C7.51002%2037.7514%207.54316%2037.7018%207.56578%2037.6472C7.58839%2037.5926%207.60003%2037.5341%207.60003%2037.475C7.60344%2037.4138%207.59432%2037.3526%207.57323%2037.2951C7.55214%2037.2376%207.51954%2037.185%207.47741%2037.1405C7.43528%2037.096%207.38451%2037.0606%207.32822%2037.0365C7.27193%2037.0123%207.21129%2036.9999%207.15003%2037C7.03069%2037%206.91623%2037.0474%206.83184%2037.1318C6.74744%2037.2162%206.70003%2037.3307%206.70003%2037.45C6.70003%2037.5693%206.74744%2037.6838%206.83184%2037.7682C6.91623%2037.8526%207.03069%2037.9%207.15003%2037.9'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip31_5795_13250)'%3e%3cpath%20d='M4.4%2037.3501H1.825L1.75%2037.5751C2.5%2037.7251%202.575%2037.8001%202.25%2038.7751L1.45%2040.9001C1.075%2041.8751%200.95%2041.9501%200.075%2042.1001L0%2042.3501H3.925L4.8%2040.8501H4.5C4%2041.3501%203.45%2042.0501%202.575%2042.0501C1.9%2042.0501%201.825%2041.9251%202.175%2040.9251L2.95%2038.8001C3.3%2037.8251%203.45%2037.7501%204.325%2037.6001L4.4%2037.3501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_5795_13250'%20x1='0'%20y1='6'%20x2='33'%20y2='6'%20gradientUnits='userSpaceOnUse'%20%3e%3cstop%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23E1000F'%20/%3e%3cstop%20offset='1'%20stop-color='%23E1000F'%20/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_5795_13250'%3e%3crect%20width='33'%20height='12'%20fill='white'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_5795_13250'%3e%3crect%20width='33'%20height='13.5'%20fill='white'%20transform='translate(0%20-0.75)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip2_5795_13250'%3e%3crect%20width='108.88'%20height='26.5'%20fill='white'%20transform='translate(0%2033)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip3_5795_13250'%3e%3crect%20width='63'%20height='45'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip4_5795_13250'%3e%3crect%20width='31.5'%20height='22.5'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip5_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(28.175%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip6_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(28.175%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip7_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(25.55%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip8_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(23.4%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip9_5795_13250'%3e%3crect%20width='3.7'%20height='3.875'%20fill='white'%20transform='translate(19.3%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip10_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(16.425%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip11_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(13.575%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip12_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(10.925%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip13_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(7.22498%2054.9502)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip14_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(4.90002%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip15_5795_13250'%3e%3crect%20width='5.475'%20height='4.95'%20fill='white'%20transform='translate(0%2053.8999)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip16_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.325%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip17_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.325%2046.875)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip18_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.7%2046)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip19_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(14.55%2045.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip20_5795_13250'%3e%3crect%20width='2.525'%20height='5.475'%20fill='white'%20transform='translate(12.35%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip21_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(8.72498%2046.7002)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip22_5795_13250'%3e%3crect%20width='4.5'%20height='5.5'%20fill='white'%20transform='translate(4.65002%2046.8501)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip23_5795_13250'%3e%3crect%20width='5.75'%20height='6.275'%20fill='white'%20transform='translate(0%2044.3252)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip24_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.2%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip25_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.2%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip26_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.55%2037.7251)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip27_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(13.7%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip28_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(10.85%2038.6001)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip29_5795_13250'%3e%3crect%20width='3.4'%20height='5.45'%20fill='white'%20transform='translate(7.34998%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip30_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(5.15002%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip31_5795_13250'%3e%3crect%20width='4.8'%20height='4.975'%20fill='white'%20transform='translate(0%2037.3501)'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Xg=()=>{const{t}=le.useCunningham();return y.jsxs("footer",{className:"c__footer",children:[y.jsx("div",{className:"c__footer__stripe"}),y.jsxs("div",{className:"c__footer__content",children:[y.jsxs("div",{className:"c__footer__content__top",children:[y.jsx("div",{children:y.jsx("div",{className:"c__footer__content__top__logo",children:y.jsx("img",{className:"c__footer__logo",alt:"",width:"0",height:"0",decoding:"async","data-nimg":"1",src:Zg})})}),y.jsx("div",{className:"c__footer__content__top__links",children:[{label:"legifrance.gouv.fr",href:"https://legifrance.gouv.fr/"},{label:"info.gouv.fr",href:"https://info.gouv.fr/"},{label:"service-public.fr",href:"https://service-public.fr/"},{label:"data.gouv.fr",href:"https://data.gouv.fr/"}].map(({label:e,href:n})=>y.jsxs("a",{href:n,target:"_blank",children:[y.jsx("span",{children:e}),y.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:ds})]},e))})]}),y.jsx("div",{className:"c__footer__content__middle",children:[{label:t("components.footer.links.legal"),href:"/legal-notice"},{label:t("components.footer.links.personal_data"),href:"/personal-data-cookies"},{label:t("components.footer.links.accessibility"),href:"/accessibility"}].map(({label:e,href:n})=>y.jsx("a",{href:n,children:y.jsx("span",{children:e})},e))}),y.jsxs("p",{className:"c__footer__content__mention",children:[t("components.footer.mention")," ",y.jsxs("a",{href:"https://github.com/etalab/licence-ouverte/blob/master/LO.md",target:"__blank",children:[y.jsx("span",{children:t("components.footer.license")}),y.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:ds})]})]})]})]})},Jg=t=>y.jsx(Hg,{...t,className:"c__filter",children:y.jsx(Qg,{...t})}),Qg=t=>{const e=u.useContext(Cf),n=e!=null&&e.selectedItem?t.options.find(r=>{var i;return r.value===((i=e.selectedItem)==null?void 0:i.key)}):null;return y.jsxs(y.Fragment,{children:[y.jsxs(ug,{className:Pe("c__filter__button",{"c__filter__button--active":!!n}),children:[y.jsx(ag,{className:"c__filter__label",children:n?y.jsxs(y.Fragment,{children:[t.label," : ",n.label]}):y.jsx(y.Fragment,{children:t.label})}),y.jsx("span",{"aria-hidden":"true",className:Pe("material-icons c__filter__button__icon",{opened:e==null?void 0:e.isOpen}),children:"keyboard_arrow_down"})]}),y.jsx(mf,{className:"c__dropdown-menu",children:y.jsx($g,{children:t.options.map(r=>y.jsxs(u.Fragment,{children:[y.jsx(_g,{id:r.value,className:"c__dropdown-menu-item",children:y.jsxs("div",{className:"c__filter__item",children:[r.render?r.render():r.label,(t.selectedKey===r.value||r.isChecked)&&y.jsx("span",{className:"material-icons checked",children:"check"})]})},r.value),r.showSeparator&&y.jsx(pf,{})]},r.value))})})]})},e5=({logo:t,mainButton:e,banner:n,title:r,subtitle:i})=>y.jsx("div",{className:"c__hero",children:y.jsxs("div",{className:"c__hero__display",children:[y.jsxs("div",{className:"c__hero__display__captions",children:[t,y.jsx("h2",{children:r}),y.jsx("span",{className:"c__hero__display__captions__subtitle",children:i}),e||y.jsx(Bc,{})]}),y.jsx("img",{src:n,alt:""})]})}),t5=({children:t})=>y.jsx("div",{className:"c__home-gutter",children:t}),Sf=(t,e,n=void 0)=>{const r=Array.isArray(e)?e:e.replace(/(\[(\d)\])/g,".$2").replace(/^\./,"").split(".");if(!r.length||r[0]===void 0)return t;const i=r[0];return typeof t!="object"||t===null||!(i in t)||t[i]===void 0?n:Sf(t[i],r.slice(1),n)},n5={placeholder:"Entrez votre adresse e-mail",srLabel:"Adresse e-mail",submit:"Suivant",title:"Connexion avec {linebreak}votre adresse e-mail"},r5={homepageLinkTitle:{withoutService:"Retour à l'accueil",withService:"Retour à l'accueil - {serviceName}"},license:"Sauf mention explicite de propriété intellectuelle détenue par des tiers, les contenus de ce site sont proposés sous {license}",licenseEtalab:"licence etalab-2.0",links:{a11y:{perfect:"Accessibilité : conforme",partial:"Accessibilité : partiellement conforme",bad:"Accessibilité : non conforme"},privacy:"Données personnelles",sitemap:"Plan du site",terms:"Mentions légales"}},i5={label:"Les services de La Suite numérique"},o5={homepageLinkTitle:"Accueil - {serviceName}"},l5={newWindow:"{title} - nouvelle fenêtre"},a5={help:"Qu'est-ce que ProConnect ?",loginWith:"S’identifier avec",loginWithProconnect:"{loginWith} {proconnect}",or:"ou",title:"Connexion avec ProConnect"},wf={email:n5,footer:r5,gaufre:i5,header:o5,links:l5,proconnect:a5},s5=u.createContext(wf);function c5(){const t=u.useContext(s5)||wf;return{t:function(e,n={}){const r=Sf(t,e);if(!r)return console.warn(`Translation for key "${e}" not found`),e;if(n){const i=[];if(Object.keys(n).forEach(l=>{typeof n[l]!="string"&&i.push(l)}),!i.length)return r.replace(/{(\w+)}/g,(l,a)=>n[a]);const o=r.split(/{(.*?)}/);return y.jsx(y.Fragment,{children:o.map((l,a)=>l in n?y.jsx(u.Fragment,{children:n[l]},a):l)})}return r}}}const u5={responsive:"lasuite-gaufre-btn--responsive",small:"lasuite-gaufre-btn--small"},d5=({variant:t})=>{const{t:e}=c5(),n=t?u5[t]:"";return y.jsx("button",{type:"button",className:`lasuite-gaufre-btn ${n} lasuite-gaufre-btn--vanilla js-lasuite-gaufre-btn`,title:e("gaufre.label"),children:e("gaufre.label")})},f5=()=>y.jsxs(y.Fragment,{children:[y.jsx("script",{src:"https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js",id:"lasuite-gaufre-script",async:!0,defer:!0}),y.jsx(d5,{variant:"small"})]}),xf=({languages:t})=>{const{isOpen:e,setIsOpen:n}=ht();return y.jsx(It,{options:t,isOpen:e,onOpenChange:n,children:y.jsxs(le.Button,{onClick:()=>n(!e),color:"primary-text",className:"c__language-picker",children:[y.jsx("span",{className:"material-icons",children:"translate"}),y.jsx("span",{className:"c__language-picker__label",children:"Français"}),y.jsx("span",{className:"material-icons",children:e?"arrow_drop_up":"arrow_drop_down"})]})})},Ef=({leftIcon:t,rightIcon:e,languages:n,onTogglePanel:r,isPanelOpen:i})=>{const{t:o}=le.useCunningham();return y.jsxs("div",{className:"c__header",children:[y.jsx("div",{className:"c__header__toggle-menu",children:y.jsx(le.Button,{size:"medium",onClick:r,"aria-label":o(i?"Close the menu":"Open the menu"),color:"tertiary-text",icon:y.jsx("span",{className:"material-icons clr-primary-800",children:i?"close":"menu"})})}),y.jsx("div",{className:"c__header__left",children:t}),y.jsxs("div",{className:"c__header__right",children:[n&&y.jsx("div",{className:"c__header__right__language-picker",children:y.jsx(xf,{languages:n})}),e]})]})},Bo={themes:{default:{theme:{colors:{"primary-text":"#000091","primary-050":"#F5F5FE","primary-100":"#ECECFE","primary-150":"#F4F4FD","primary-200":"#E3E3FD","primary-300":"#CACAFB","primary-400":"#8585F6","primary-500":"#6A6AF4","primary-600":"#313178","primary-700":"#272747","primary-800":"#000091","primary-900":"#21213F","secondary-text":"#fff","secondary-100":"#fee9ea","secondary-200":"#fedfdf","secondary-300":"#fdbfbf","secondary-400":"#e1020f","secondary-500":"#c91a1f","secondary-600":"#5e2b2b","secondary-700":"#3b2424","secondary-800":"#341f1f","secondary-900":"#2b1919","greyscale-text":"#303C4B","greyscale-000":"#fff","greyscale-050":"#F6F6F6","greyscale-100":"#eee","greyscale-200":"#E5E5E5","greyscale-250":"#ddd","greyscale-300":"#CECECE","greyscale-350":"#ddd","greyscale-400":"#929292","greyscale-500":"#7C7C7C","greyscale-600":"#666666","greyscale-700":"#3A3A3A","greyscale-750":"#353535","greyscale-800":"#2A2A2A","greyscale-900":"#242424","greyscale-950":"#1E1E1E","greyscale-1000":"#161616","success-text":"#1f8d49","success-100":"#dffee6","success-200":"#b8fec9","success-300":"#88fdaa","success-400":"#3bea7e","success-500":"#1f8d49","success-600":"#18753c","success-700":"#204129","success-800":"#1e2e22","success-900":"#19281d","info-text":"#0078f3","info-100":"#E8EDFF","info-200":"#DDE5FF","info-300":"#BCCDFF","info-400":"#518FFF","info-500":"#0078F3","info-600":"#0063CB","info-700":"#273961","info-800":"#222A3F","info-900":"#1D2437","warning-text":"#d64d00","warning-100":"#fff4f3","warning-200":"#ffe9e6","warning-300":"#ffded9","warning-400":"#ffbeb4","warning-500":"#d64d00","warning-600":"#b34000","warning-700":"#5e2c21","warning-800":"#3e241e","warning-900":"#361e19","danger-text":"#FFF","danger-050":"#FFF4F4","danger-100":"#FFE9E9","danger-200":"#FFDDDD","danger-300":"#FFBDBD","danger-400":"#FF5655","danger-500":"#F60700","danger-600":"#CE0500","danger-700":"#642626","danger-800":"#412121","danger-900":"#391C1C","blue-500":"#417DC4","brown-500":"#BD987A","cyan-500":"#009099","gold-500":"#C3992A","green-500":"#00A95F","olive-500":"#68A532","orange-500":"#E4794A","purple-500":"#A558A0","red-500":"#E1000F","yellow-500":"#B7A73F","rose-500":"#E18B76"},font:{sizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",ml:"0.938rem",xl:"1.25rem",t:"0.6875rem",s:"0.75rem",h1:"2rem",h2:"1.75rem",h3:"1.5rem",h4:"1.375rem",h5:"1.25rem",h6:"1.125rem","xl-alt":"5rem","lg-alt":"4.5rem","md-alt":"4rem","sm-alt":"3.5rem","xs-alt":"3rem"},weights:{thin:100,extrabold:800,black:900},families:{accent:"Marianne",base:"Marianne"}},spacings:{0:"0",none:"0",auto:"auto",bx:"2.2rem",full:"100%","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem",xxxl:"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xxs:"320px",xs:"480px",mobile:"768px",tablet:"1024px"}},components:{modal:{"width-small":"342px"},tooltip:{padding:"4px 8px","background-color":"ref(theme.colors.greyscale-1000)"},button:{"medium-height":"40px","medium-text-height":"40px","border-radius":"4px","small-height":"26px",primary:{"background--color":"ref(theme.colors.primary-text)","background--color-hover":"#1212ff","background--color-active":"#2323ff","background--color-disabled":"ref(theme.colors.greyscale-100)",color:"#fff","color-hover":"#fff","color-active":"#fff","color-focus-visible":"#fff",disabled:"ref(theme.colors.greyscale-500)"},"primary-text":{"background--color":"ref(theme.colors.primary-text)","background--color-hover":"ref(theme.colors.greyscale-100)","background--color-active":"ref(theme.colors.primary-100)","background--color-focus-visible":"#fff","background--color-disabled":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-800)","color-hover":"ref(theme.colors.primary-800)",disabled:"ref(theme.colors.greyscale-400)"},secondary:{"background--color-hover":"#F6F6F6","background--color-active":"#EDEDED","background--color-focus-visible":"ref(theme.colors.greyscale-000)","background--disabled":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-800)","border--color":"ref(theme.colors.greyscale-300)","border--color-hover":"ref(theme.colors.greyscale-300)","border--color-disabled":"ref(theme.colors.greyscale-300)",disabled:"ref(theme.colors.greyscale-400)"},tertiary:{"background--color":"ref(theme.colors.primary-100)","background--color-focus-visible":"ref(theme.colors.primary-100)","background--color-hover":"ref(theme.colors.primary-300)","background--color-active":"ref(theme.colors.primary-300)","background--disabled":"ref(theme.colors.primary-050)",color:"ref(theme.colors.primary-800)",disabled:"ref(theme.colors.primary-300)"},"tertiary-text":{"background--color-hover":"ref(theme.colors.greyscale-100)","color-hover":"ref(theme.colors.primary-text)",color:"ref(theme.colors.primary-600)"},danger:{"color-hover":"white","background--color":"ref(theme.colors.danger-600)","background--color-hover":"#FF2725","background--color-focus-visible":"ref(theme.colors.danger-600)","background--color-disabled":"ref(theme.colors.greyscale-100)","color-disabled":"ref(theme.colors.greyscale-400)"}},datagrid:{"header--color":"ref(theme.colors.greyscale-600)","header--size":"12px","header--weight":"500","body--background-color-hover":"ref(theme.colors.greyscale-100)"},"forms-checkbox":{"border-radius":"4px","border-color":"ref(theme.colors.primary-800)","background-color--hover":"ref(theme.colors.greyscale-100)","border--color-disabled":"ref(theme.colors.greyscale-200)","border--color":"ref(theme.colors.primary-800)","background--disabled":"ref(theme.colors.greyscale-200)","background--enable":"ref(theme.colors.primary-800)","check--disabled":"ref(theme.colors.greyscale-300)","check--enable":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-text)","label--color":"ref(theme.colors.greyscale-1000)","label--size":"ref(theme.font.sizes.sm)","label--weight":"500","text--color":"ref(theme.colors.greyscale-600)","text--size":"ref(theme.font.sizes.s)","text--weight":"400","text--color-disabled":"ref(theme.colors.greyscale-300)"},"forms-labelledbox":{"label-color--small":"ref(theme.colors.greyscale-950)","label-color--small--disabled":"ref(theme.colors.greyscale-300)","label-color--big":"ref(theme.colors.greyscale-950)","label-color--big--disabled":"ref(theme.colors.greyscale-300)"},"forms-radio":{"border-color":"ref(theme.colors.primary-800)","background-color":"ref(theme.colors.greyscale-000)","accent-color":"ref(theme.colors.primary-800)","accent-color-disabled":"ref(theme.colors.greyscale-300)"},"forms-switch":{"border--color-disabled":"ref(theme.colors.greyscale-300)","border--color":"ref(theme.colors.primary-800)","handle-background-color":"white","handle-background-color--disabled":"ref(theme.colors.greyscale-000)","rail-background-color--disabled":"ref(theme.colors.greyscale-000)","accent-color":"ref(theme.colors.primary-800)"},"forms-textarea":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-input":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-select":{"label-color--focus":"ref(theme.colors.greyscale-1000)","item-font-size":"14px","border-radius":"4px","border-radius-hover":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","font-size":"14px"},badge:{"font-size":"ref(theme.font.sizes.xs)","border-radius":"4px","padding-inline":"ref(theme.spacings.xs)","padding-block":"ref(theme.spacings.2xs)",accent:{"background-color":"ref(theme.colors.primary-100)",color:"ref(theme.colors.primary-600)"},neutral:{"background-color":"ref(theme.colors.greyscale-100)",color:"ref(theme.colors.greyscale-600)"},danger:{"background-color":"ref(theme.colors.danger-100)",color:"ref(theme.colors.danger-600)"},success:{"background-color":"ref(theme.colors.success-100)",color:"ref(theme.colors.success-600)"},warning:{"background-color":"ref(theme.colors.warning-100)",color:"ref(theme.colors.warning-600)"},info:{"background-color":"ref(theme.colors.info-100)",color:"ref(theme.colors.info-600)"}}}}}},wn=()=>{const[t,e]=u.useState(window.innerWidth),n=parseInt(Bo.themes.default.theme.breakpoints.mobile.replace("px","")),r=parseInt(Bo.themes.default.theme.breakpoints.tablet.replace("px","")),i=()=>{e(window.innerWidth)};u.useEffect(()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}),[]);const o=t<=n,l=t<=r,a=t>r;return{isMobile:o,isTablet:l,isDesktop:a}},$f=({children:t,isOpen:e=!1})=>{const{isDesktop:n}=wn();return n?y.jsx("div",{className:"c__left-panel",children:t}):y.jsx("div",{className:Pe("c__left-panel__mobile",{open:e}),children:t})},{createElement:mn,createContext:h5,forwardRef:Pf,useCallback:xe,useContext:Df,useEffect:Et,useImperativeHandle:_f,useLayoutEffect:p5,useMemo:v5,useRef:$e,useState:un}=D,fs=D[`useId${Math.random()}`.slice(0,5)],g5=p5,bi=h5(null);bi.displayName="PanelGroupContext";const $t=g5,m5=typeof fs=="function"?fs:()=>null;let b5=0;function Kl(t=null){const e=m5(),n=$e(t||e||null);return n.current===null&&(n.current=""+b5++),t??n.current}function Tf({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:c,onExpand:d,onResize:f,order:h,style:v,tagName:b="div",...p}){const g=Df(bi);if(g===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:m,expandPanel:C,getPanelSize:S,getPanelStyle:P,groupId:$,isPanelCollapsed:x,reevaluatePanelConstraints:E,registerPanel:N,resizePanel:H,unregisterPanel:j}=g,w=Kl(l),A=$e({callbacks:{onCollapse:c,onExpand:d,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:w,idIsFromProps:l!==void 0,order:h});$e({didLogMissingDefaultSizeWarning:!1}),$t(()=>{const{callbacks:L,constraints:U}=A.current,I={...U};A.current.id=w,A.current.idIsFromProps=l!==void 0,A.current.order=h,L.onCollapse=c,L.onExpand=d,L.onResize=f,U.collapsedSize=n,U.collapsible=r,U.defaultSize=i,U.maxSize=a,U.minSize=s,(I.collapsedSize!==U.collapsedSize||I.collapsible!==U.collapsible||I.maxSize!==U.maxSize||I.minSize!==U.minSize)&&E(A.current,I)}),$t(()=>{const L=A.current;return N(L),()=>{j(L)}},[h,w,N,j]),_f(o,()=>({collapse:()=>{m(A.current)},expand:L=>{C(A.current,L)},getId(){return w},getSize(){return S(A.current)},isCollapsed(){return x(A.current)},isExpanded(){return!x(A.current)},resize:L=>{H(A.current,L)}}),[m,C,S,x,w,H]);const B=P(A.current,i);return mn(b,{...p,children:t,className:e,id:l,style:{...B,...v},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":$,"data-panel-id":w,"data-panel-size":parseFloat(""+B.flexGrow).toFixed(1)})}const Uo=Pf((t,e)=>mn(Tf,{...t,forwardedRef:e}));Tf.displayName="Panel";Uo.displayName="forwardRef(Panel)";let Wo=null,wt=null;function y5(t,e){if(e){const n=(e&Rf)!==0,r=(e&Mf)!==0,i=(e&Lf)!==0,o=(e&Af)!==0;if(n)return i?"se-resize":o?"ne-resize":"e-resize";if(r)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function C5(){wt!==null&&(document.head.removeChild(wt),Wo=null,wt=null)}function Yi(t,e){const n=y5(t,e);Wo!==n&&(Wo=n,wt===null&&(wt=document.createElement("style"),document.head.appendChild(wt)),wt.innerHTML=`*{cursor: ${n}!important;}`)}function If(t){return t.type==="keydown"}function Of(t){return t.type.startsWith("pointer")}function kf(t){return t.type.startsWith("mouse")}function yi(t){if(Of(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(kf(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function S5(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function w5(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function x5(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:vs(t),b:vs(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;X(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:ps(hs(n.a)),b:ps(hs(n.b))};if(i.a===i.b){const o=r.childNodes,l={a:n.a.at(-1),b:n.b.at(-1)};let a=o.length;for(;a--;){const s=o[a];if(s===l.a)return 1;if(s===l.b)return-1}}return Math.sign(i.a-i.b)}const E5=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function $5(t){var e;const n=getComputedStyle((e=Nf(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function P5(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||$5(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||E5.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function hs(t){let e=t.length;for(;e--;){const n=t[e];if(X(n,"Missing node"),P5(n))return n}return null}function ps(t){return t&&Number(getComputedStyle(t).zIndex)||0}function vs(t){const e=[];for(;t;)e.push(t),t=Nf(t);return e}function Nf(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const Rf=1,Mf=2,Lf=4,Af=8,D5=S5()==="coarse";let He=[],dn=!1,ct=new Map,Ci=new Map;const Wn=new Set;function _5(t,e,n,r,i){var o;const{ownerDocument:l}=e,a={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:i},s=(o=ct.get(l))!==null&&o!==void 0?o:0;return ct.set(l,s+1),Wn.add(a),qr(),function(){var d;Ci.delete(t),Wn.delete(a);const f=(d=ct.get(l))!==null&&d!==void 0?d:1;if(ct.set(l,f-1),qr(),f===1&&ct.delete(l),He.includes(a)){const h=He.indexOf(a);h>=0&&He.splice(h,1),Hl(),i("up",!0,null)}}}function gs(t){const{target:e}=t,{x:n,y:r}=yi(t);dn=!0,jl({target:e,x:n,y:r}),qr(),He.length>0&&(Yr("down",t),t.preventDefault(),t.stopPropagation())}function In(t){const{x:e,y:n}=yi(t);if(dn&&t.buttons===0&&(dn=!1,Yr("up",t)),!dn){const{target:r}=t;jl({target:r,x:e,y:n})}Yr("move",t),Hl(),He.length>0&&t.preventDefault()}function Vt(t){const{target:e}=t,{x:n,y:r}=yi(t);Ci.clear(),dn=!1,He.length>0&&t.preventDefault(),Yr("up",t),jl({target:e,x:n,y:r}),Hl(),qr()}function jl({target:t,x:e,y:n}){He.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Wn.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:c,right:d,top:f}=a,h=D5?l.coarse:l.fine;if(e>=c-h&&e<=d+h&&n>=f-h&&n<=s+h){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&x5(r,o)>0){let b=r,p=!1;for(;b&&!b.contains(o);){if(w5(b.getBoundingClientRect(),a)){p=!0;break}b=b.parentElement}if(p)return}He.push(i)}})}function Zi(t,e){Ci.set(t,e)}function Hl(){let t=!1,e=!1;He.forEach(r=>{const{direction:i}=r;i==="horizontal"?t=!0:e=!0});let n=0;Ci.forEach(r=>{n|=r}),t&&e?Yi("intersection",n):t?Yi("horizontal",n):e?Yi("vertical",n):C5()}function qr(){ct.forEach((t,e)=>{const{body:n}=e;n.removeEventListener("contextmenu",Vt),n.removeEventListener("pointerdown",gs),n.removeEventListener("pointerleave",In),n.removeEventListener("pointermove",In)}),window.removeEventListener("pointerup",Vt),window.removeEventListener("pointercancel",Vt),Wn.size>0&&(dn?(He.length>0&&ct.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("contextmenu",Vt),n.addEventListener("pointerleave",In),n.addEventListener("pointermove",In))}),window.addEventListener("pointerup",Vt),window.addEventListener("pointercancel",Vt)):ct.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("pointerdown",gs,{capture:!0}),n.addEventListener("pointermove",In))}))}function Yr(t,e){Wn.forEach(n=>{const{setResizeHandlerState:r}=n,i=He.includes(n);r(t,i,e)})}function T5(){const[t,e]=un(0);return xe(()=>e(n=>n+1),[])}function X(t,e){if(!t)throw console.error(e),Error(e)}const zl=10;function Ot(t,e,n=zl){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function Xe(t,e,n=zl){return Ot(t,e,n)===0}function _e(t,e,n){return Ot(t,e,n)===0}function I5(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const i=t[r],o=e[r];if(!_e(i,o,n))return!1}return!0}function on({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];X(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(Ot(n,a)<0)if(o){const s=(i+a)/2;Ot(n,s)<0?n=i:n=a}else n=a;return n=Math.min(l,n),n=parseFloat(n.toFixed(zl)),n}function An({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(_e(t,0))return e;const l=[...e],[a,s]=r;X(a!=null,"Invalid first pivot index"),X(s!=null,"Invalid second pivot index");let c=0;if(o==="keyboard"){{const f=t<0?s:a,h=n[f];X(h,`Panel constraints not found for index ${f}`);const{collapsedSize:v=0,collapsible:b,minSize:p=0}=h;if(b){const g=e[f];if(X(g!=null,`Previous layout not found for panel index ${f}`),_e(g,v)){const m=p-g;Ot(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}{const f=t<0?a:s,h=n[f];X(h,`No panel constraints found for index ${f}`);const{collapsedSize:v=0,collapsible:b,minSize:p=0}=h;if(b){const g=e[f];if(X(g!=null,`Previous layout not found for panel index ${f}`),_e(g,p)){const m=g-v;Ot(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}}{const f=t<0?1:-1;let h=t<0?s:a,v=0;for(;;){const p=e[h];X(p!=null,`Previous layout not found for panel index ${h}`);const m=on({panelConstraints:n,panelIndex:h,size:100})-p;if(v+=m,h+=f,h<0||h>=n.length)break}const b=Math.min(Math.abs(t),Math.abs(v));t=t<0?0-b:b}{let h=t<0?a:s;for(;h>=0&&h<n.length;){const v=Math.abs(t)-Math.abs(c),b=e[h];X(b!=null,`Previous layout not found for panel index ${h}`);const p=b-v,g=on({panelConstraints:n,panelIndex:h,size:p});if(!_e(b,g)&&(c+=b-g,l[h]=g,c.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?h--:h++}}if(I5(i,l))return i;{const f=t<0?s:a,h=e[f];X(h!=null,`Previous layout not found for panel index ${f}`);const v=h+c,b=on({panelConstraints:n,panelIndex:f,size:v});if(l[f]=b,!_e(b,v)){let p=v-b,m=t<0?s:a;for(;m>=0&&m<n.length;){const C=l[m];X(C!=null,`Previous layout not found for panel index ${m}`);const S=C+p,P=on({panelConstraints:n,panelIndex:m,size:S});if(_e(C,P)||(p-=P-C,l[m]=P),_e(p,0))break;t>0?m--:m++}}}const d=l.reduce((f,h)=>h+f,0);return _e(d,100)?l:i}function O5({layout:t,panelsArray:e,pivotIndices:n}){let r=0,i=100,o=0,l=0;const a=n[0];X(a!=null,"No pivot index found"),e.forEach((f,h)=>{const{constraints:v}=f,{maxSize:b=100,minSize:p=0}=v;h===a?(r=p,i=b):(o+=p,l+=b)});const s=Math.min(i,100-o),c=Math.max(r,100-l),d=t[a];return{valueMax:s,valueMin:c,valueNow:d}}function Gn(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function Ff(t,e,n=document){const i=Gn(t,n).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function Kf(t,e,n){const r=Ff(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function jf(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function Si(t,e=document){const n=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return n||null}function k5(t,e,n,r=document){var i,o,l,a;const s=Si(e,r),c=Gn(t,r),d=s?c.indexOf(s):-1,f=(i=(o=n[d])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,h=(l=(a=n[d+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[f,h]}function N5({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){$e({didWarnAboutMissingResizeHandle:!1}),$t(()=>{if(!o)return;const a=Gn(n,o);for(let s=0;s<i.length-1;s++){const{valueMax:c,valueMin:d,valueNow:f}=O5({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),h=a[s];if(h!=null){const v=i[s];X(v,`No panel data found for index "${s}"`),h.setAttribute("aria-controls",v.id),h.setAttribute("aria-valuemax",""+Math.round(c)),h.setAttribute("aria-valuemin",""+Math.round(d)),h.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{a.forEach((s,c)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[n,r,i,o]),Et(()=>{if(!o)return;const a=e.current;X(a,"Eager values not found");const{panelDataArray:s}=a,c=jf(n,o);X(c!=null,`No group found for id "${n}"`);const d=Gn(n,o);X(d,`No resize handles found for group id "${n}"`);const f=d.map(h=>{const v=h.getAttribute("data-panel-resize-handle-id");X(v,"Resize handle element has no handle id attribute");const[b,p]=k5(n,v,s,o);if(b==null||p==null)return()=>{};const g=m=>{if(!m.defaultPrevented)switch(m.key){case"Enter":{m.preventDefault();const C=s.findIndex(S=>S.id===b);if(C>=0){const S=s[C];X(S,`No panel data found for index ${C}`);const P=r[C],{collapsedSize:$=0,collapsible:x,minSize:E=0}=S.constraints;if(P!=null&&x){const N=An({delta:_e(P,$)?E-$:$-P,initialLayout:r,panelConstraints:s.map(H=>H.constraints),pivotIndices:Kf(n,v,o),prevLayout:r,trigger:"keyboard"});r!==N&&l(N)}}break}}};return h.addEventListener("keydown",g),()=>{h.removeEventListener("keydown",g)}});return()=>{f.forEach(h=>h())}},[o,t,e,n,r,i,l])}function ms(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function Hf(t,e){const n=t==="horizontal",{x:r,y:i}=yi(e);return n?r:i}function R5(t,e,n,r,i){const o=n==="horizontal",l=Si(e,i);X(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute("data-panel-group-id");X(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const c=Hf(n,t),d=jf(a,i);X(d,`No group element found for id "${a}"`);const f=d.getBoundingClientRect(),h=o?f.width:f.height;return(c-s)/h*100}function M5(t,e,n,r,i,o){if(If(t)){const l=n==="horizontal";let a=0;t.shiftKey?a=100:i!=null?a=i:a=10;let s=0;switch(t.key){case"ArrowDown":s=l?0:a;break;case"ArrowLeft":s=l?-a:0;break;case"ArrowRight":s=l?a:0;break;case"ArrowUp":s=l?0:-a;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return r==null?0:R5(t,e,n,r,o)}function L5({panelDataArray:t}){const e=Array(t.length),n=t.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<t.length;o++){const l=n[o];X(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;a!=null&&(r++,e[o]=a,i-=a)}for(let o=0;o<t.length;o++){const l=n[o];X(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=t.length-r,c=i/s;r++,e[o]=c,i-=c}return e}function Bt(t,e,n){e.forEach((r,i)=>{const o=t[i];X(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:c=0,collapsible:d}=a,f=n[s];if(f==null||r!==f){n[s]=r;const{onCollapse:h,onExpand:v,onResize:b}=l;b&&b(r,f),d&&(h||v)&&(v&&(f==null||Xe(f,c))&&!Xe(r,c)&&v(),h&&(f==null||!Xe(f,c))&&Xe(r,c)&&h())}})}function fr(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function A5({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:i,precision:o=3}){const l=n[i];let a;return l==null?a=t!=null?t.toPrecision(o):"1":r.length===1?a="1":a=l.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function F5(t,e=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function bs(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function zf(t){return`react-resizable-panels:${t}`}function Vf(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:i,order:o}=e;return i?r:o?`${o}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function Bf(t,e){try{const n=zf(t),r=e.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function K5(t,e,n){var r,i;const o=(r=Bf(t,n))!==null&&r!==void 0?r:{},l=Vf(e);return(i=o[l])!==null&&i!==void 0?i:null}function j5(t,e,n,r,i){var o;const l=zf(t),a=Vf(e),s=(o=Bf(t,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(c){console.error(c)}}function ys({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((o,l)=>o+l,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(o=>`${o}%`).join(", ")}`);if(!_e(r,100)&&n.length>0)for(let o=0;o<e.length;o++){const l=n[o];X(l!=null,`No layout data found for index ${o}`);const a=100/r*l;n[o]=a}let i=0;for(let o=0;o<e.length;o++){const l=n[o];X(l!=null,`No layout data found for index ${o}`);const a=on({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,n[o]=a)}if(!_e(i,0))for(let o=0;o<e.length;o++){const l=n[o];X(l!=null,`No layout data found for index ${o}`);const a=l+i,s=on({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,n[o]=s,_e(i,0)))break}return n}const H5=100,Fn={getItem:t=>(bs(Fn),Fn.getItem(t)),setItem:(t,e)=>{bs(Fn),Fn.setItem(t,e)}},Cs={};function Uf({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=Fn,style:c,tagName:d="div",...f}){const h=Kl(o),v=$e(null),[b,p]=un(null),[g,m]=un([]),C=T5(),S=$e({}),P=$e(new Map),$=$e(0),x=$e({autoSaveId:t,direction:r,dragState:b,id:h,keyboardResizeBy:a,onLayout:l,storage:s}),E=$e({layout:g,panelDataArray:[],panelDataArrayChanged:!1});$e({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),_f(i,()=>({getId:()=>x.current.id,getLayout:()=>{const{layout:O}=E.current;return O},setLayout:O=>{const{onLayout:K}=x.current,{layout:M,panelDataArray:z}=E.current,V=ys({layout:O,panelConstraints:z.map(W=>W.constraints)});ms(M,V)||(m(V),E.current.layout=V,K&&K(V),Bt(z,V,S.current))}}),[]),$t(()=>{x.current.autoSaveId=t,x.current.direction=r,x.current.dragState=b,x.current.id=h,x.current.onLayout=l,x.current.storage=s}),N5({committedValuesRef:x,eagerValuesRef:E,groupId:h,layout:g,panelDataArray:E.current.panelDataArray,setLayout:m,panelGroupElement:v.current}),Et(()=>{const{panelDataArray:O}=E.current;if(t){if(g.length===0||g.length!==O.length)return;let K=Cs[t];K==null&&(K=F5(j5,H5),Cs[t]=K);const M=[...O],z=new Map(P.current);K(t,M,z,g,s)}},[t,g,s]),Et(()=>{});const N=xe(O=>{const{onLayout:K}=x.current,{layout:M,panelDataArray:z}=E.current;if(O.constraints.collapsible){const V=z.map(se=>se.constraints),{collapsedSize:W=0,panelSize:Y,pivotIndices:J}=gt(z,O,M);if(X(Y!=null,`Panel size not found for panel "${O.id}"`),!Xe(Y,W)){P.current.set(O.id,Y);const q=tn(z,O)===z.length-1?Y-W:W-Y,te=An({delta:q,initialLayout:M,panelConstraints:V,pivotIndices:J,prevLayout:M,trigger:"imperative-api"});fr(M,te)||(m(te),E.current.layout=te,K&&K(te),Bt(z,te,S.current))}}},[]),H=xe((O,K)=>{const{onLayout:M}=x.current,{layout:z,panelDataArray:V}=E.current;if(O.constraints.collapsible){const W=V.map(ue=>ue.constraints),{collapsedSize:Y=0,panelSize:J=0,minSize:se=0,pivotIndices:q}=gt(V,O,z),te=K??se;if(Xe(J,Y)){const ue=P.current.get(O.id),ee=ue!=null&&ue>=te?ue:te,xn=tn(V,O)===V.length-1?J-ee:ee-J,we=An({delta:xn,initialLayout:z,panelConstraints:W,pivotIndices:q,prevLayout:z,trigger:"imperative-api"});fr(z,we)||(m(we),E.current.layout=we,M&&M(we),Bt(V,we,S.current))}}},[]),j=xe(O=>{const{layout:K,panelDataArray:M}=E.current,{panelSize:z}=gt(M,O,K);return X(z!=null,`Panel size not found for panel "${O.id}"`),z},[]),w=xe((O,K)=>{const{panelDataArray:M}=E.current,z=tn(M,O);return A5({defaultSize:K,dragState:b,layout:g,panelData:M,panelIndex:z})},[b,g]),A=xe(O=>{const{layout:K,panelDataArray:M}=E.current,{collapsedSize:z=0,collapsible:V,panelSize:W}=gt(M,O,K);return X(W!=null,`Panel size not found for panel "${O.id}"`),V===!0&&Xe(W,z)},[]),B=xe(O=>{const{layout:K,panelDataArray:M}=E.current,{collapsedSize:z=0,collapsible:V,panelSize:W}=gt(M,O,K);return X(W!=null,`Panel size not found for panel "${O.id}"`),!V||Ot(W,z)>0},[]),L=xe(O=>{const{panelDataArray:K}=E.current;K.push(O),K.sort((M,z)=>{const V=M.order,W=z.order;return V==null&&W==null?0:V==null?-1:W==null?1:V-W}),E.current.panelDataArrayChanged=!0,C()},[C]);$t(()=>{if(E.current.panelDataArrayChanged){E.current.panelDataArrayChanged=!1;const{autoSaveId:O,onLayout:K,storage:M}=x.current,{layout:z,panelDataArray:V}=E.current;let W=null;if(O){const J=K5(O,V,M);J&&(P.current=new Map(Object.entries(J.expandToSizes)),W=J.layout)}W==null&&(W=L5({panelDataArray:V}));const Y=ys({layout:W,panelConstraints:V.map(J=>J.constraints)});ms(z,Y)||(m(Y),E.current.layout=Y,K&&K(Y),Bt(V,Y,S.current))}}),$t(()=>{const O=E.current;return()=>{O.layout=[]}},[]);const U=xe(O=>{let K=!1;const M=v.current;return M&&window.getComputedStyle(M,null).getPropertyValue("direction")==="rtl"&&(K=!0),function(V){V.preventDefault();const W=v.current;if(!W)return()=>null;const{direction:Y,dragState:J,id:se,keyboardResizeBy:q,onLayout:te}=x.current,{layout:ue,panelDataArray:ee}=E.current,{initialLayout:rt}=J??{},xn=Kf(se,O,W);let we=M5(V,O,Y,J,q,W);const oa=Y==="horizontal";oa&&K&&(we=-we);const A2=ee.map(F2=>F2.constraints),En=An({delta:we,initialLayout:rt??ue,panelConstraints:A2,pivotIndices:xn,prevLayout:ue,trigger:If(V)?"keyboard":"mouse-or-touch"}),la=!fr(ue,En);(Of(V)||kf(V))&&$.current!=we&&($.current=we,!la&&we!==0?oa?Zi(O,we<0?Rf:Mf):Zi(O,we<0?Lf:Af):Zi(O,0)),la&&(m(En),E.current.layout=En,te&&te(En),Bt(ee,En,S.current))}},[]),I=xe((O,K)=>{const{onLayout:M}=x.current,{layout:z,panelDataArray:V}=E.current,W=V.map(ue=>ue.constraints),{panelSize:Y,pivotIndices:J}=gt(V,O,z);X(Y!=null,`Panel size not found for panel "${O.id}"`);const q=tn(V,O)===V.length-1?Y-K:K-Y,te=An({delta:q,initialLayout:z,panelConstraints:W,pivotIndices:J,prevLayout:z,trigger:"imperative-api"});fr(z,te)||(m(te),E.current.layout=te,M&&M(te),Bt(V,te,S.current))},[]),R=xe((O,K)=>{const{layout:M,panelDataArray:z}=E.current,{collapsedSize:V=0,collapsible:W}=K,{collapsedSize:Y=0,collapsible:J,maxSize:se=100,minSize:q=0}=O.constraints,{panelSize:te}=gt(z,O,M);te!=null&&(W&&J&&Xe(te,V)?Xe(V,Y)||I(O,Y):te<q?I(O,q):te>se&&I(O,se))},[I]),k=xe((O,K)=>{const{direction:M}=x.current,{layout:z}=E.current;if(!v.current)return;const V=Si(O,v.current);X(V,`Drag handle element not found for id "${O}"`);const W=Hf(M,K);p({dragHandleId:O,dragHandleRect:V.getBoundingClientRect(),initialCursorPosition:W,initialLayout:z})},[]),G=xe(()=>{p(null)},[]),T=xe(O=>{const{panelDataArray:K}=E.current,M=tn(K,O);M>=0&&(K.splice(M,1),delete S.current[O.id],E.current.panelDataArrayChanged=!0,C())},[C]),F=v5(()=>({collapsePanel:N,direction:r,dragState:b,expandPanel:H,getPanelSize:j,getPanelStyle:w,groupId:h,isPanelCollapsed:A,isPanelExpanded:B,reevaluatePanelConstraints:R,registerPanel:L,registerResizeHandle:U,resizePanel:I,startDragging:k,stopDragging:G,unregisterPanel:T,panelGroupElement:v.current}),[N,b,r,H,j,w,h,A,B,R,L,U,I,k,G,T]),_={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return mn(bi.Provider,{value:F},mn(d,{...f,children:e,className:n,id:o,ref:v,style:{..._,...c},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":h}))}const Wf=Pf((t,e)=>mn(Uf,{...t,forwardedRef:e}));Uf.displayName="PanelGroup";Wf.displayName="forwardRef(PanelGroup)";function tn(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function gt(t,e,n){const r=tn(t,e),o=r===t.length-1?[r-1,r]:[r,r+1],l=n[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function z5({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){Et(()=>{if(t||n==null||r==null)return;const i=Si(e,r);if(i==null)return;const o=l=>{if(!l.defaultPrevented)switch(l.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{l.preventDefault(),n(l);break}case"F6":{l.preventDefault();const a=i.getAttribute("data-panel-group-id");X(a,`No group element found for id "${a}"`);const s=Gn(a,r),c=Ff(a,e,r);X(c!==null,`No resize element found for id "${e}"`);const d=l.shiftKey?c>0?c-1:s.length-1:c+1<s.length?c+1:0;s[d].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,t,e,n])}function Gf({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:l,onFocus:a,style:s={},tabIndex:c=0,tagName:d="div",...f}){var h,v;const b=$e(null),p=$e({onDragging:l});Et(()=>{p.current.onDragging=l});const g=Df(bi);if(g===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:m,groupId:C,registerResizeHandle:S,startDragging:P,stopDragging:$,panelGroupElement:x}=g,E=Kl(i),[N,H]=un("inactive"),[j,w]=un(!1),[A,B]=un(null),L=$e({state:N});$t(()=>{L.current.state=N}),Et(()=>{if(n)B(null);else{const k=S(E);B(()=>k)}},[n,E,S]);const U=(h=r==null?void 0:r.coarse)!==null&&h!==void 0?h:15,I=(v=r==null?void 0:r.fine)!==null&&v!==void 0?v:5;return Et(()=>{if(n||A==null)return;const k=b.current;return X(k,"Element ref not attached"),_5(E,k,m,{coarse:U,fine:I},(T,F,_)=>{if(F)switch(T){case"down":{H("drag"),X(_,'Expected event to be defined for "down" action'),P(E,_);const{onDragging:O}=p.current;O&&O(!0);break}case"move":{const{state:O}=L.current;O!=="drag"&&H("hover"),X(_,'Expected event to be defined for "move" action'),A(_);break}case"up":{H("hover"),$();const{onDragging:O}=p.current;O&&O(!1);break}}else H("inactive")})},[U,m,n,I,S,E,A,P,$]),z5({disabled:n,handleId:E,resizeHandler:A,panelGroupElement:x}),mn(d,{...f,children:t,className:e,id:i,onBlur:()=>{w(!1),o==null||o()},onFocus:()=>{w(!0),a==null||a()},ref:b,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...s},tabIndex:c,"data-panel-group-direction":m,"data-panel-group-id":C,"data-resize-handle":"","data-resize-handle-active":N==="drag"?"pointer":j?"keyboard":void 0,"data-resize-handle-state":N,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":E})}Gf.displayName="PanelResizeHandle";const V5=({children:t,isOpen:e})=>{const{isDesktop:n}=wn();return n?y.jsx("div",{className:Pe("c__right-panel",{open:e}),children:t}):y.jsx("div",{className:Pe("c__right-panel__mobile",{open:e}),children:t})},B5=(t,e,n)=>{const[r,i]=u.useState(typeof e>"u"?t:e),o=l=>{n?n(l):i(l)};return u.useEffect(()=>{n&&typeof e<"u"&&e!==r&&i(e)},[e]),[r,o]},U5=({icon:t,children:e,hideLeftPanelOnDesktop:n=!1,leftPanelContent:r,rightPanelContent:i,rightHeaderContent:o,languages:l,enableResize:a=!1,rightPanelIsOpen:s=!1,...c})=>{const[d,f]=B5(!1,c.isLeftPanelOpen,c.setIsLeftPanelOpen),{isDesktop:h}=wn(),v=u.useRef(null),[b,p]=u.useState(hr(300,h)),[g,m]=u.useState(hr(450,h)),C=()=>{f(!d)};u.useEffect(()=>{const $=()=>{const x=Math.round(hr(300,h)),E=Math.round(Math.min(hr(450,h),40));p(h?x:0),m(a?E:x)};return $(),window.addEventListener("resize",()=>{$()}),()=>{window.removeEventListener("resize",$)}},[h,a]);const S=h?!n:!0,P=h?!n:d;return y.jsxs("div",{className:"c__main-layout",children:[y.jsx("div",{className:"c__main-layout__header",children:y.jsx(Ef,{onTogglePanel:C,isPanelOpen:d,rightIcon:o,leftIcon:t,languages:l})}),y.jsx("div",{className:"c__main-layout__content",children:y.jsxs(Wf,{autoSaveId:"persistance",direction:"horizontal",children:[S&&y.jsxs(y.Fragment,{children:[y.jsx(Uo,{ref:v,order:0,defaultSize:b,minSize:b,maxSize:g,children:y.jsx($f,{isOpen:P,children:r})}),h&&y.jsx(Gf,{className:"bg-greyscale-200",style:{width:"1px"}})]}),y.jsx(Uo,{order:1,children:y.jsxs("div",{className:"c__main-layout__content__center",children:[y.jsx("div",{className:"c__main-layout__content__center__children",children:e}),y.jsx(V5,{isOpen:s,children:i})]})})]})})]})},hr=(t,e)=>{if(!e)return 0;const n=window.innerWidth;return t/n*100},W5=52,Vl=({size:t="sm"})=>y.jsx("div",{className:["c__spinner",t].join(" ")}),qf=({children:t,text:e,...n})=>y.jsxs("div",{className:"suite__label__container",children:[y.jsx("label",{...n,children:t}),e&&y.jsx("span",{className:"suite__label__container__description",children:e})]}),G5=({label:t,text:e,labelSide:n="right",children:r})=>y.jsxs("div",{className:Pe("c__with-label",{[n]:!0}),children:[y.jsx(qf,{children:t,text:e}),r]});var Ss=1,q5=.9,Y5=.8,Z5=.17,Xi=.1,Ji=.999,X5=.9999,J5=.99,Q5=/[\\\/_+.#"@\[\(\{&]/,e1=/[\\\/_+.#"@\[\(\{&]/g,t1=/[\s-]/,Yf=/[\s-]/g;function Go(t,e,n,r,i,o,l){if(o===e.length)return i===t.length?Ss:J5;var a=`${i},${o}`;if(l[a]!==void 0)return l[a];for(var s=r.charAt(o),c=n.indexOf(s,i),d=0,f,h,v,b;c>=0;)f=Go(t,e,n,r,c+1,o+1,l),f>d&&(c===i?f*=Ss:Q5.test(t.charAt(c-1))?(f*=Y5,v=t.slice(i,c-1).match(e1),v&&i>0&&(f*=Math.pow(Ji,v.length))):t1.test(t.charAt(c-1))?(f*=q5,b=t.slice(i,c-1).match(Yf),b&&i>0&&(f*=Math.pow(Ji,b.length))):(f*=Z5,i>0&&(f*=Math.pow(Ji,c-i))),t.charAt(c)!==e.charAt(o)&&(f*=X5)),(f<Xi&&n.charAt(c-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(c-1)!==r.charAt(o))&&(h=Go(t,e,n,r,c+1,o+2,l),h*Xi>f&&(f=h*Xi)),f>d&&(d=f),c=n.indexOf(s,c+1);return l[a]=d,d}function ws(t){return t.toLowerCase().replace(Yf," ")}function n1(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,Go(t,e,ws(t),ws(e),0,0,{})}function dt(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t==null||t(i),n===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function xs(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Zf(...t){return e=>{let n=!1;const r=t.map(i=>{const o=xs(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():xs(t[i],null)}}}}function jt(...t){return D.useCallback(Zf(...t),t)}function r1(t,e){const n=D.createContext(e),r=o=>{const{children:l,...a}=o,s=D.useMemo(()=>a,Object.values(a));return y.jsx(n.Provider,{value:s,children:l})};r.displayName=t+"Provider";function i(o){const l=D.useContext(n);if(l)return l;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${t}\``)}return[r,i]}function i1(t,e=[]){let n=[];function r(o,l){const a=D.createContext(l),s=n.length;n=[...n,l];const c=f=>{var m;const{scope:h,children:v,...b}=f,p=((m=h==null?void 0:h[t])==null?void 0:m[s])||a,g=D.useMemo(()=>b,Object.values(b));return y.jsx(p.Provider,{value:g,children:v})};c.displayName=o+"Provider";function d(f,h){var p;const v=((p=h==null?void 0:h[t])==null?void 0:p[s])||a,b=D.useContext(v);if(b)return b;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const i=()=>{const o=n.map(l=>D.createContext(l));return function(a){const s=(a==null?void 0:a[t])||o;return D.useMemo(()=>({[`__scope${t}`]:{...a,[t]:s}}),[a,s])}};return i.scopeName=t,[r,o1(i,...e)]}function o1(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((a,{useScope:s,scopeName:c})=>{const f=s(o)[`__scope${c}`];return{...a,...f}},{});return D.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return n.scopeName=e.scopeName,n}var qn=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},l1=D[" useId ".trim().toString()]||(()=>{}),a1=0;function Qe(t){const[e,n]=D.useState(l1());return qn(()=>{n(r=>r??String(a1++))},[t]),e?`radix-${e}`:""}var s1=D[" useInsertionEffect ".trim().toString()]||qn;function c1({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[i,o,l]=u1({defaultProp:e,onChange:n}),a=t!==void 0,s=a?t:i;{const d=D.useRef(t!==void 0);D.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const c=D.useCallback(d=>{var f;if(a){const h=d1(d)?d(t):d;h!==t&&((f=l.current)==null||f.call(l,h))}else o(d)},[a,t,o,l]);return[s,c]}function u1({defaultProp:t,onChange:e}){const[n,r]=D.useState(t),i=D.useRef(n),o=D.useRef(e);return s1(()=>{o.current=e},[e]),D.useEffect(()=>{var l;i.current!==n&&((l=o.current)==null||l.call(o,n),i.current=n)},[n,i]),[n,r,o]}function d1(t){return typeof t=="function"}function Xf(t){const e=f1(t),n=D.forwardRef((r,i)=>{const{children:o,...l}=r,a=D.Children.toArray(o),s=a.find(p1);if(s){const c=s.props.children,d=a.map(f=>f===s?D.Children.count(c)>1?D.Children.only(null):D.isValidElement(c)?c.props.children:null:f);return y.jsx(e,{...l,ref:i,children:D.isValidElement(c)?D.cloneElement(c,void 0,d):null})}return y.jsx(e,{...l,ref:i,children:o})});return n.displayName=`${t}.Slot`,n}function f1(t){const e=D.forwardRef((n,r)=>{const{children:i,...o}=n;if(D.isValidElement(i)){const l=g1(i),a=v1(o,i.props);return i.type!==D.Fragment&&(a.ref=r?Zf(r,l):l),D.cloneElement(i,a)}return D.Children.count(i)>1?D.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var h1=Symbol("radix.slottable");function p1(t){return D.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===h1}function v1(t,e){const n={...e};for(const r in e){const i=t[r],o=e[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{const s=o(...a);return i(...a),s}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}function g1(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var m1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],me=m1.reduce((t,e)=>{const n=Xf(`Primitive.${e}`),r=D.forwardRef((i,o)=>{const{asChild:l,...a}=i,s=l?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(s,{...a,ref:o})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function b1(t,e){t&&K2.flushSync(()=>t.dispatchEvent(e))}function Yn(t){const e=D.useRef(t);return D.useEffect(()=>{e.current=t}),D.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function y1(t,e=globalThis==null?void 0:globalThis.document){const n=Yn(t);D.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var C1="DismissableLayer",qo="dismissableLayer.update",S1="dismissableLayer.pointerDownOutside",w1="dismissableLayer.focusOutside",Es,Jf=D.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qf=D.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:a,...s}=t,c=D.useContext(Jf),[d,f]=D.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=D.useState({}),b=jt(e,E=>f(E)),p=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=p.indexOf(g),C=d?p.indexOf(d):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,P=C>=m,$=$1(E=>{const N=E.target,H=[...c.branches].some(j=>j.contains(N));!P||H||(i==null||i(E),l==null||l(E),E.defaultPrevented||a==null||a())},h),x=P1(E=>{const N=E.target;[...c.branches].some(j=>j.contains(N))||(o==null||o(E),l==null||l(E),E.defaultPrevented||a==null||a())},h);return y1(E=>{C===c.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),D.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Es=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),$s(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Es)}},[d,h,n,c]),D.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),$s())},[d,c]),D.useEffect(()=>{const E=()=>v({});return document.addEventListener(qo,E),()=>document.removeEventListener(qo,E)},[]),y.jsx(me.div,{...s,ref:b,style:{pointerEvents:S?P?"auto":"none":void 0,...t.style},onFocusCapture:dt(t.onFocusCapture,x.onFocusCapture),onBlurCapture:dt(t.onBlurCapture,x.onBlurCapture),onPointerDownCapture:dt(t.onPointerDownCapture,$.onPointerDownCapture)})});Qf.displayName=C1;var x1="DismissableLayerBranch",E1=D.forwardRef((t,e)=>{const n=D.useContext(Jf),r=D.useRef(null),i=jt(e,r);return D.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),y.jsx(me.div,{...t,ref:i})});E1.displayName=x1;function $1(t,e=globalThis==null?void 0:globalThis.document){const n=Yn(t),r=D.useRef(!1),i=D.useRef(()=>{});return D.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let s=function(){e0(S1,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=s,e.addEventListener("click",i.current,{once:!0})):s()}else e.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),e.removeEventListener("pointerdown",o),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function P1(t,e=globalThis==null?void 0:globalThis.document){const n=Yn(t),r=D.useRef(!1);return D.useEffect(()=>{const i=o=>{o.target&&!r.current&&e0(w1,n,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function $s(){const t=new CustomEvent(qo);document.dispatchEvent(t)}function e0(t,e,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?b1(i,o):i.dispatchEvent(o)}var Qi="focusScope.autoFocusOnMount",eo="focusScope.autoFocusOnUnmount",Ps={bubbles:!1,cancelable:!0},D1="FocusScope",t0=D.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=t,[a,s]=D.useState(null),c=Yn(i),d=Yn(o),f=D.useRef(null),h=jt(e,p=>s(p)),v=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(r){let p=function(S){if(v.paused||!a)return;const P=S.target;a.contains(P)?f.current=P:ot(f.current,{select:!0})},g=function(S){if(v.paused||!a)return;const P=S.relatedTarget;P!==null&&(a.contains(P)||ot(f.current,{select:!0}))},m=function(S){if(document.activeElement===document.body)for(const $ of S)$.removedNodes.length>0&&ot(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",g);const C=new MutationObserver(m);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),C.disconnect()}}},[r,a,v.paused]),D.useEffect(()=>{if(a){_s.add(v);const p=document.activeElement;if(!a.contains(p)){const m=new CustomEvent(Qi,Ps);a.addEventListener(Qi,c),a.dispatchEvent(m),m.defaultPrevented||(_1(N1(n0(a)),{select:!0}),document.activeElement===p&&ot(a))}return()=>{a.removeEventListener(Qi,c),setTimeout(()=>{const m=new CustomEvent(eo,Ps);a.addEventListener(eo,d),a.dispatchEvent(m),m.defaultPrevented||ot(p??document.body,{select:!0}),a.removeEventListener(eo,d),_s.remove(v)},0)}}},[a,c,d,v]);const b=D.useCallback(p=>{if(!n&&!r||v.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,m=document.activeElement;if(g&&m){const C=p.currentTarget,[S,P]=T1(C);S&&P?!p.shiftKey&&m===P?(p.preventDefault(),n&&ot(S,{select:!0})):p.shiftKey&&m===S&&(p.preventDefault(),n&&ot(P,{select:!0})):m===C&&p.preventDefault()}},[n,r,v.paused]);return y.jsx(me.div,{tabIndex:-1,...l,ref:h,onKeyDown:b})});t0.displayName=D1;function _1(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(ot(r,{select:e}),document.activeElement!==n)return}function T1(t){const e=n0(t),n=Ds(e,t),r=Ds(e.reverse(),t);return[n,r]}function n0(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function Ds(t,e){for(const n of t)if(!I1(n,{upTo:e}))return n}function I1(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function O1(t){return t instanceof HTMLInputElement&&"select"in t}function ot(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&O1(t)&&e&&t.select()}}var _s=k1();function k1(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=Ts(t,e),t.unshift(e)},remove(e){var n;t=Ts(t,e),(n=t[0])==null||n.resume()}}}function Ts(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function N1(t){return t.filter(e=>e.tagName!=="A")}var R1="Portal",r0=D.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[i,o]=D.useState(!1);qn(()=>o(!0),[]);const l=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?Lt.createPortal(y.jsx(me.div,{...r,ref:e}),l):null});r0.displayName=R1;function M1(t,e){return D.useReducer((n,r)=>e[n][r]??n,t)}var wi=t=>{const{present:e,children:n}=t,r=L1(e),i=typeof n=="function"?n({present:r.isPresent}):D.Children.only(n),o=jt(r.ref,A1(i));return typeof n=="function"||r.isPresent?D.cloneElement(i,{ref:o}):null};wi.displayName="Presence";function L1(t){const[e,n]=D.useState(),r=D.useRef(null),i=D.useRef(t),o=D.useRef("none"),l=t?"mounted":"unmounted",[a,s]=M1(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D.useEffect(()=>{const c=pr(r.current);o.current=a==="mounted"?c:"none"},[a]),qn(()=>{const c=r.current,d=i.current;if(d!==t){const h=o.current,v=pr(c);t?s("MOUNT"):v==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(d&&h!==v?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),qn(()=>{if(e){let c;const d=e.ownerDocument.defaultView??window,f=v=>{const p=pr(r.current).includes(v.animationName);if(v.target===e&&p&&(s("ANIMATION_END"),!i.current)){const g=e.style.animationFillMode;e.style.animationFillMode="forwards",c=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=g)})}},h=v=>{v.target===e&&(o.current=pr(r.current))};return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{d.clearTimeout(c),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:D.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function pr(t){return(t==null?void 0:t.animationName)||"none"}function A1(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var to=0;function F1(){D.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Is()),document.body.insertAdjacentElement("beforeend",t[1]??Is()),to++,()=>{to===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),to--}},[])}function Is(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Pr="right-scroll-bar-position",Dr="width-before-scroll-bar",K1="with-scroll-bars-hidden",j1="--removed-body-scroll-bar-size";function no(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function H1(t,e){var n=u.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}var z1=typeof window<"u"?D.useLayoutEffect:D.useEffect,Os=new WeakMap;function V1(t,e){var n=H1(null,function(r){return t.forEach(function(i){return no(i,r)})});return z1(function(){var r=Os.get(n);if(r){var i=new Set(r),o=new Set(t),l=n.current;i.forEach(function(a){o.has(a)||no(a,null)}),o.forEach(function(a){i.has(a)||no(a,l)})}Os.set(n,t)},[t]),n}function B1(t){return t}function U1(t,e){e===void 0&&(e=B1);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(o){var l=e(o,r);return n.push(l),function(){n=n.filter(function(a){return a!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var a=n;n=[],a.forEach(o),l=n}var s=function(){var d=l;l=[],d.forEach(o)},c=function(){return Promise.resolve().then(s)};c(),n={push:function(d){l.push(d),c()},filter:function(d){return l=l.filter(d),n}}}};return i}function W1(t){t===void 0&&(t={});var e=U1(null);return e.options=Ge({async:!0,ssr:!1},t),e}var i0=function(t){var e=t.sideCar,n=mu(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return D.createElement(r,Ge({},n))};i0.isSideCarExport=!0;function G1(t,e){return t.useMedium(e),i0}var o0=W1(),ro=function(){},xi=D.forwardRef(function(t,e){var n=D.useRef(null),r=D.useState({onScrollCapture:ro,onWheelCapture:ro,onTouchMoveCapture:ro}),i=r[0],o=r[1],l=t.forwardProps,a=t.children,s=t.className,c=t.removeScrollBar,d=t.enabled,f=t.shards,h=t.sideCar,v=t.noRelative,b=t.noIsolation,p=t.inert,g=t.allowPinchZoom,m=t.as,C=m===void 0?"div":m,S=t.gapMode,P=mu(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),$=h,x=V1([n,e]),E=Ge(Ge({},P),i);return D.createElement(D.Fragment,null,d&&D.createElement($,{sideCar:o0,removeScrollBar:c,shards:f,noRelative:v,noIsolation:b,inert:p,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:S}),l?D.cloneElement(D.Children.only(a),Ge(Ge({},E),{ref:x})):D.createElement(C,Ge({},E,{className:s,ref:x}),a))});xi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xi.classNames={fullWidth:Dr,zeroRight:Pr};var q1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Y1(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=q1();return e&&t.setAttribute("nonce",e),t}function Z1(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function X1(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var J1=function(){var t=0,e=null;return{add:function(n){t==0&&(e=Y1())&&(Z1(e,n),X1(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Q1=function(){var t=J1();return function(e,n){D.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},l0=function(){var t=Q1(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},em={left:0,top:0,right:0,gap:0},io=function(t){return parseInt(t||"",10)||0},tm=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[io(n),io(r),io(i)]},nm=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return em;var e=tm(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},rm=l0(),fn="data-scroll-locked",im=function(t,e,n,r){var i=t.left,o=t.top,l=t.right,a=t.gap;return n===void 0&&(n="margin"),`
|
|
45
|
-
.`.concat(
|
|
44
|
+
*/var Ta;function gh(){return Ta||(Ta=1,process.env.NODE_ENV!=="production"&&function(){function t(v,y){return v===y&&(v!==0||1/v===1/y)||v!==v&&y!==y}function e(v,y){d||i.startTransition===void 0||(d=!0,console.error("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 p=y();if(!f){var g=y();o(p,g)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}g=l({inst:{value:p,getSnapshot:y}});var m=g[0].inst,C=g[1];return s(function(){m.value=p,m.getSnapshot=y,n(m)&&C({inst:m})},[v,p,y]),a(function(){return n(m)&&C({inst:m}),v(function(){n(m)&&C({inst:m})})},[v]),c(p),p}function n(v){var y=v.getSnapshot;v=v.value;try{var p=y();return!o(v,p)}catch{return!0}}function r(v,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=u,o=typeof Object.is=="function"?Object.is:t,l=i.useState,a=i.useEffect,s=i.useLayoutEffect,c=i.useDebugValue,d=!1,f=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Hi.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Hi}var _a;function mh(){return _a||(_a=1,process.env.NODE_ENV==="production"?cr.exports=vh():cr.exports=gh()),cr.exports}var $l=mh();const vu=u.createContext(!1),Un=u.createContext(null);function hi(t){if(u.useContext(Un))return t.content;let{collection:n,document:r}=Sh(t.createCollection);return u.createElement(u.Fragment,null,u.createElement(U1,null,u.createElement(Un.Provider,{value:r},t.content)),u.createElement(yh,{render:t.children,collection:n}))}function yh({collection:t,render:e}){return e(t)}function bh(t,e,n){let r=Qn(),i=u.useRef(r);i.current=r;let o=u.useCallback(()=>i.current?n():e(),[e,n]);return $l.useSyncExternalStore(t,o)}const Ch=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:bh;function Sh(t){let[e]=u.useState(()=>new B1((t==null?void 0:t())||new bl)),n=u.useCallback(l=>e.subscribe(l),[e]),r=u.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=u.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=Ch(n,r,i);return ne(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const Ro=u.createContext(null);function wh(t,e,n,r,i,o){let l=u.useCallback(s=>{s==null||s.setProps(e,n,r,o)},[e,n,r,o]),a=u.useContext(Ro);if(a){let s=a.ownerDocument.nodesByProps.get(e);return s||(s=a.ownerDocument.createElement(t),s.setProps(e,n,r,o),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(e,s)),i?u.createElement(Ro.Provider,{value:s},i):null}return u.createElement(t,{ref:l},i)}function pi(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=u.forwardRef((i,o)=>{let l=u.useContext(ko);if(!u.useContext(vu)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return wh(t,i,o,"children"in i?i.children:null,null,s=>u.createElement(ko.Provider,{value:l},u.createElement(n,{node:s})))});return r.displayName=e.name,r}function xh(t){return nu({...t,addIdAndValue:!0})}const Ia=u.createContext(null);function Pl(t){let e=u.useContext(Ia),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope||(e==null?void 0:e.idScope),i=xh({...t,idScope:r,dependencies:n});return u.useContext(Un)&&(i=u.createElement(Eh,null,i)),e=u.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),u.createElement(Ia.Provider,{value:e},i)}function Eh({children:t}){let e=u.useContext(Un),n=u.useMemo(()=>u.createElement(Un.Provider,{value:null},u.createElement(vu.Provider,{value:!0},t)),[t]);return Qn()?u.createElement(Ro.Provider,{value:e},n):Lt.createPortal(n,e)}const $h=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ph=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Dh(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return $h.has(n.script)}let e=t.split("-")[0];return Ph.has(e)}const Th=Symbol.for("react-aria.i18n.locale");function gu(){let t=typeof window<"u"&&window[Th]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:Dh(t)?"rtl":"ltr"}}let Mo=gu(),Mn=new Set;function Oa(){Mo=gu();for(let t of Mn)t(Mo)}function _h(){let t=Qn(),[e,n]=u.useState(Mo);return u.useEffect(()=>(Mn.size===0&&window.addEventListener("languagechange",Oa),Mn.add(n),()=>{Mn.delete(n),Mn.size===0&&window.removeEventListener("languagechange",Oa)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const Ih=u.createContext(null);function Ft(){let t=_h();return u.useContext(Ih)||t}var Ze=function(){return Ze=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ze.apply(this,arguments)};function mu(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Oh(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}const kh=Symbol.for("react-aria.i18n.locale"),Nh=Symbol.for("react-aria.i18n.strings");let Vt;class vi{getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=Rh(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[kh];if(Vt===void 0){let i=window[Nh];if(!i)return null;Vt={};for(let o in i)Vt[o]=new vi({[n]:i[o]},n)}let r=Vt==null?void 0:Vt[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}}function Rh(t,e,n="en-US"){if(e[t])return e[t];let r=Mh(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function Mh(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const ka=new Map,Na=new Map;class Lh{format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let i=n["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,l=ka.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),ka.set(o,l));let a=l.select(e);return i=n[a]||n.other,typeof i=="function"?i():i}number(e){let n=Na.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Na.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}constructor(e,n){this.locale=e,this.strings=n}}const Ra=new WeakMap;function Ah(t){let e=Ra.get(t);return e||(e=new vi(t),Ra.set(t,e)),e}function Fh(t,e){return e&&vi.getGlobalDictionaryForPackage(e)||Ah(t)}function yu(t,e){let{locale:n}=Ft(),r=Fh(t,e);return u.useMemo(()=>new Lh(n,r),[n,r])}let Vi=new Map;function Dl(t){let{locale:e}=Ft(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Vi.has(n))return Vi.get(n);let r=new Intl.Collator(e,t);return Vi.set(n,r),r}function Kh(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:a,onPressChange:s,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:h,target:v,rel:y,type:p="button"}=t,g;n==="button"?g={type:p,disabled:r}:g={role:"button",href:n==="a"&&!r?h:void 0,target:n==="a"?v:void 0,type:n==="input"?p:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?y:void 0};let{pressProps:m,isPressed:C}=ui({onPressStart:o,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:a,onClick:f,isDisabled:r,preventFocusOnPress:c,ref:e}),{focusableProps:S}=hu(t,e);d&&(S.tabIndex=r?-1:S.tabIndex);let P=re(S,m,pe(t,{labelable:!0}));return{isPressed:C,buttonProps:re(g,P,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"]})}}function jh(t){const e=Me(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:l,visibility:a}=o(t);i=l!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function Hh(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function bu(t,e){return t.nodeName!=="#comment"&&jh(t)&&Hh(t,e)&&(!t.parentElement||bu(t.parentElement,t))}const Ma=u.createContext(null),Lo="react-aria-focus-scope-restore";let ae=null;function Tl(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=u.useRef(null),l=u.useRef(null),a=u.useRef([]),{parentNode:s}=u.useContext(Ma)||{},c=u.useMemo(()=>new Fo({scopeRef:a}),[a]);ne(()=>{let h=s||fe.root;if(fe.getTreeNode(h.scopeRef)&&ae&&!Br(ae,h.scopeRef)){let v=fe.getTreeNode(ae);v&&(h=v)}h.addChild(c),fe.addNode(c)},[c,s]),ne(()=>{let h=fe.getTreeNode(a);h&&(h.contain=!!n)},[n]),ne(()=>{var h;let v=(h=o.current)===null||h===void 0?void 0:h.nextSibling,y=[],p=g=>g.stopPropagation();for(;v&&v!==l.current;)y.push(v),v.addEventListener(Lo,p),v=v.nextSibling;return a.current=y,()=>{for(let g of y)g.removeEventListener(Lo,p)}},[e]),Wh(a,r,n),zh(a,n),Zh(a,r,n),Uh(a,i),u.useEffect(()=>{const h=Ce(oe(a.current?a.current[0]:void 0));let v=null;if(Ae(h,a.current)){for(let y of fe.traverse())y.scopeRef&&Ae(h,y.scopeRef.current)&&(v=y);v===fe.getTreeNode(a)&&(ae=v.scopeRef)}},[a]),ne(()=>()=>{var h,v,y;let p=(y=(v=fe.getTreeNode(a))===null||v===void 0||(h=v.parent)===null||h===void 0?void 0:h.scopeRef)!==null&&y!==void 0?y:null;(a===ae||Br(a,ae))&&(!p||fe.getTreeNode(p))&&(ae=p),fe.removeTreeNode(a)},[a]);let d=u.useMemo(()=>Vh(a),[]),f=u.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return u.createElement(Ma.Provider,{value:f},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Vh(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||Ce(oe((a=n[0])!==null&&a!==void 0?a:void 0)),c=n[0].previousElementSibling,d=Ct(n),f=Ge(d,{tabbable:i,accept:l},n);f.currentNode=Ae(s,n)?s:c;let h=f.nextNode();return!h&&o&&(f.currentNode=c,h=f.nextNode()),h&&Je(h,!0),h},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||Ce(oe((a=n[0])!==null&&a!==void 0?a:void 0)),c=n[n.length-1].nextElementSibling,d=Ct(n),f=Ge(d,{tabbable:i,accept:l},n);f.currentNode=Ae(s,n)?s:c;let h=f.previousNode();return!h&&o&&(f.currentNode=c,h=f.previousNode()),h&&Je(h,!0),h},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ct(n),l=Ge(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let a=l.nextNode();return a&&Je(a,!0),a},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ct(n),l=Ge(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let a=l.previousNode();return a&&Je(a,!0),a}}}function Ct(t){return t[0].parentElement}function Ln(t){let e=fe.getTreeNode(ae);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function zh(t,e){let n=u.useRef(void 0),r=u.useRef(void 0);ne(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=oe(i?i[0]:void 0);let l=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!Ln(t)||c.isComposing)return;let d=Ce(o),f=t.current;if(!f||!Ae(d,f))return;let h=Ct(f),v=Ge(h,{tabbable:!0},f);if(!d)return;v.currentNode=d;let y=c.shiftKey?v.previousNode():v.nextNode();y||(v.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,y=c.shiftKey?v.previousNode():v.nextNode()),c.preventDefault(),y&&Je(y,!0)},a=c=>{(!ae||Br(ae,t))&&Ae(ie(c),t.current)?(ae=t,n.current=ie(c)):Ln(t)&&!ut(ie(c),t)?n.current?n.current.focus():ae&&ae.current&&Ao(ae.current):Ln(t)&&(n.current=ie(c))},s=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=Vr(),f=(d==="virtual"||d===null)&&hl()&&Gc(),h=Ce(o);if(!f&&h&&Ln(t)&&!ut(h,t)){ae=t;let y=ie(c);if(y&&y.isConnected){var v;n.current=y,(v=n.current)===null||v===void 0||v.focus()}else ae.current&&Ao(ae.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",a,!1),i==null||i.forEach(c=>c.addEventListener("focusin",a,!1)),i==null||i.forEach(c=>c.addEventListener("focusout",s,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",a,!1),i==null||i.forEach(c=>c.removeEventListener("focusin",a,!1)),i==null||i.forEach(c=>c.removeEventListener("focusout",s,!1))}},[t,e]),ne(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Cu(t){return ut(t)}function Ae(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function ut(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of fe.traverse(fe.getTreeNode(e)))if(n&&Ae(t,n.current))return!0;return!1}function Bh(t){return ut(t,ae)}function Br(t,e){var n;let r=(n=fe.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function Je(t,e=!1){if(t!=null&&!e)try{vn(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Su(t,e=!0){let n=t[0].previousElementSibling,r=Ct(t),i=Ge(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=Ct(t),i=Ge(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function Ao(t,e=!0){Je(Su(t,e))}function Uh(t,e){const n=u.useRef(e);u.useEffect(()=>{if(n.current){ae=t;const r=oe(t.current?t.current[0]:void 0);!Ae(Ce(r),ae.current)&&t.current&&Ao(t.current)}n.current=!1},[t])}function Wh(t,e,n){ne(()=>{if(e||n)return;let r=t.current;const i=oe(r?r[0]:void 0);let o=l=>{let a=ie(l);Ae(a,t.current)?ae=t:Cu(a)||(ae=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",o,!1))}},[t,e,n])}function La(t){let e=fe.getTreeNode(ae);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function Zh(t,e,n){const r=u.useRef(typeof document<"u"?Ce(oe(t.current?t.current[0]:void 0)):null);ne(()=>{let i=t.current;const o=oe(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!ae||Br(ae,t))&&Ae(Ce(o),t.current)&&(ae=t)};return o.addEventListener("focusin",l,!1),i==null||i.forEach(a=>a.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),i==null||i.forEach(a=>a.removeEventListener("focusin",l,!1))}},[t,n]),ne(()=>{const i=oe(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Ln(t)||l.isComposing)return;let a=i.activeElement;if(!ut(a,t)||!La(t))return;let s=fe.getTreeNode(t);if(!s)return;let c=s.nodeToRestore,d=Ge(i.body,{tabbable:!0});d.currentNode=a;let f=l.shiftKey?d.previousNode():d.nextNode();if((!c||!c.isConnected||c===i.body)&&(c=void 0,s.nodeToRestore=void 0),(!f||!ut(f,t))&&c){d.currentNode=c;do f=l.shiftKey?d.previousNode():d.nextNode();while(ut(f,t));l.preventDefault(),l.stopPropagation(),f?Je(f,!0):Cu(c)?Je(c,!0):a.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),ne(()=>{const i=oe(t.current?t.current[0]:void 0);if(!e)return;let o=fe.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let a=fe.getTreeNode(t);if(!a)return;let s=a.nodeToRestore,c=Ce(i);if(e&&s&&(c&&ut(c,t)||c===i.body&&La(t))){let d=fe.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){Aa(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&fe.getTreeNode(f.scopeRef)){let h=Su(f.scopeRef.current,!0);Aa(h);return}f=f.parent}}})}}}},[t,e])}function Aa(t){t.dispatchEvent(new CustomEvent(Lo,{bubbles:!0,cancelable:!0}))&&Je(t)}function Ge(t,e,n){let r=e!=null&&e.tabbable?V1:eu,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=oe(i),l=p1(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(e==null||(s=e.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:r(a)&&bu(a)&&(!n||Ae(a,n))&&(!(e!=null&&e.accept)||e.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}class _l{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new Fo({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ae(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var e;let n=new _l;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Fo({scopeRef:null}),this.fastMap.set(null,this.root)}}class Fo{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let fe=new _l;function Sn(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=u.useRef({isFocused:!1,isFocusVisible:e||pn()}),[o,l]=u.useState(!1),[a,s]=u.useState(()=>i.current.isFocused&&i.current.isFocusVisible),c=u.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),d=u.useCallback(v=>{i.current.isFocused=v,l(v),c()},[c]);ch(v=>{i.current.isFocusVisible=v,c()},[],{isTextInput:n});let{focusProps:f}=El({isDisabled:r,onFocusChange:d}),{focusWithinProps:h}=fi({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?h:f}}function Gh(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=u.useState(!1);return ne(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let a=Ge(t.current,{tabbable:!0});i(!!a.nextNode())}};o();let l=new MutationObserver(o);return l.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function wu(t){let e=Xh(oe(t));e!==t&&(e&&qh(e,t),t&&Yh(t,e))}function qh(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Yh(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Xh(t){let e=Ce(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const xu=7e3;let Be=null;function Fa(t,e="assertive",n=xu){Be?Be.announce(t,e,n):(Be=new Jh,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Be.announce(t,e,n):setTimeout(()=>{Be!=null&&Be.isAttached()&&(Be==null||Be.announce(t,e,n))},100))}class Jh{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=xu){var i,o;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(l):(o=this.politeLog)===null||o===void 0||o.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const Eu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},$u={...Eu,customError:!0,valid:!1},Dn={isInvalid:!1,validationDetails:Eu,validationErrors:[]},Qh=u.createContext({}),Ka="__formValidationState"+Date.now();function e5(t){if(t[Ka]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[Ka];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return t5(t)}function t5(t){let{isInvalid:e,validationState:n,name:r,value:i,builtinValidation:o,validate:l,validationBehavior:a="aria"}=t;n&&(e||(e=n==="invalid"));let s=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:$u}:null,c=u.useMemo(()=>{if(!l||i==null)return null;let j=n5(l,i);return ja(j)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let d=u.useContext(Qh),f=u.useMemo(()=>r?Array.isArray(r)?r.flatMap(j=>Ko(d[j])):Ko(d[r]):[],[d,r]),[h,v]=u.useState(d),[y,p]=u.useState(!1);d!==h&&(v(d),p(!1));let g=u.useMemo(()=>ja(y?[]:f),[y,f]),m=u.useRef(Dn),[C,S]=u.useState(Dn),P=u.useRef(Dn),$=()=>{if(!x)return;E(!1);let j=c||o||m.current;zi(j,P.current)||(P.current=j,S(j))},[x,E]=u.useState(!1);return u.useEffect($),{realtimeValidation:s||g||c||o||Dn,displayValidation:a==="native"?s||g||C:s||g||c||o||C,updateValidation(j){a==="aria"&&!zi(C,j)?S(j):m.current=j},resetValidation(){let j=Dn;zi(j,P.current)||(P.current=j,S(j)),a==="native"&&E(!1),p(!0)},commitValidation(){a==="native"&&E(!0),p(!0)}}}function Ko(t){return t?Array.isArray(t)?t:[t]:[]}function n5(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return Ko(n)}return[]}function ja(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:$u}:null}function zi(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,r)=>n===e.validationErrors[r])&&Object.entries(t.validationDetails).every(([n,r])=>e.validationDetails[n]===r)}function r5(t,e,n){let{validationBehavior:r,focus:i}=t;ne(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let s=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(s),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(o5(n.current))}});let o=he(()=>{e.resetValidation()}),l=he(s=>{var c;e.displayValidation.isInvalid||e.commitValidation();let d=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!s.defaultPrevented&&n&&d&&l5(d)===n.current){var f;i?i():(f=n.current)===null||f===void 0||f.focus(),du("keyboard")}s.preventDefault()}),a=he(()=>{e.commitValidation()});u.useEffect(()=>{let s=n==null?void 0:n.current;if(!s)return;let c=s.form;return s.addEventListener("invalid",l),s.addEventListener("change",a),c==null||c.addEventListener("reset",o),()=>{s.removeEventListener("invalid",l),s.removeEventListener("change",a),c==null||c.removeEventListener("reset",o)}},[n,l,a,o,r])}function i5(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function o5(t){return{isInvalid:!t.validity.valid,validationDetails:i5(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function l5(t){for(let e=0;e<t.elements.length;e++){let n=t.elements[e];if(!n.validity.valid)return n}return null}function Pu(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=Se(e);let l=Se(),a={};n?(r=r?`${l} ${r}`:l,a={id:l,htmlFor:o==="label"?e:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=ai({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:s}}function a5(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=Pu(t),a=xt([!!e,!!n,r,i]),s=xt([!!e,!!n,r,i]);return l=re(l,{"aria-describedby":[a,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:s}}}const Ha={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Du(t={}){let{style:e,isFocusable:n}=t,[r,i]=u.useState(!1),{focusWithinProps:o}=fi({isDisabled:!n,onFocusWithinChange:a=>i(a)}),l=u.useMemo(()=>r?e:e?{...Ha,...e}:Ha,[r]);return{visuallyHiddenProps:{...o,style:l}}}function s5(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=Du(t);return u.createElement(n,re(o,l),e)}const qe={top:"top",bottom:"top",left:"left",right:"left"},Ur={top:"bottom",bottom:"top",left:"right",right:"left"},c5={top:"left",left:"top"},jo={top:"height",left:"width"},Tu={width:"totalWidth",height:"totalHeight"},ur={};let ve=typeof document<"u"?window.visualViewport:null;function Va(t){let e=0,n=0,r=0,i=0,o=0,l=0,a={};var s;let c=((s=ve==null?void 0:ve.scale)!==null&&s!==void 0?s:1)>1;if(t.tagName==="BODY"){let y=document.documentElement;r=y.clientWidth,i=y.clientHeight;var d;e=(d=ve==null?void 0:ve.width)!==null&&d!==void 0?d:r;var f;n=(f=ve==null?void 0:ve.height)!==null&&f!==void 0?f:i,a.top=y.scrollTop||t.scrollTop,a.left=y.scrollLeft||t.scrollLeft,ve&&(o=ve.offsetTop,l=ve.offsetLeft)}else({width:e,height:n,top:o,left:l}=cn(t)),a.top=t.scrollTop,a.left=t.scrollLeft,r=e,i=n;if(fl()&&(t.tagName==="BODY"||t.tagName==="HTML")&&c){a.top=0,a.left=0;var h;o=(h=ve==null?void 0:ve.pageTop)!==null&&h!==void 0?h:0;var v;l=(v=ve==null?void 0:ve.pageLeft)!==null&&v!==void 0?v:0}return{width:e,height:n,totalWidth:r,totalHeight:i,scroll:a,top:o,left:l}}function u5(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function za(t,e,n,r,i,o,l){var a;let s=(a=i.scroll[t])!==null&&a!==void 0?a:0,c=r[jo[t]],d=r.scroll[qe[t]]+o,f=c+r.scroll[qe[t]]-o,h=e-s+l[t]-r[qe[t]],v=e-s+n+l[t]-r[qe[t]];return h<d?d-h:v>f?Math.max(f-v,d-h):0}function d5(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function Ba(t){if(ur[t])return ur[t];let[e,n]=t.split(" "),r=qe[e]||"right",i=c5[r];qe[n]||(n="center");let o=jo[r],l=jo[i];return ur[t]={placement:e,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:l},ur[t]}function Bi(t,e,n,r,i,o,l,a,s,c){let{placement:d,crossPlacement:f,axis:h,crossAxis:v,size:y,crossSize:p}=r,g={};var m;g[v]=(m=t[v])!==null&&m!==void 0?m:0;var C,S,P,$;f==="center"?g[v]+=(((C=t[p])!==null&&C!==void 0?C:0)-((S=n[p])!==null&&S!==void 0?S:0))/2:f!==v&&(g[v]+=((P=t[p])!==null&&P!==void 0?P:0)-(($=n[p])!==null&&$!==void 0?$:0)),g[v]+=o;const x=t[v]-n[p]+s+c,E=t[v]+t[p]-s-c;if(g[v]=Do(g[v],x,E),d===h){const N=a?l[y]:e[Tu[y]];g[Ur[h]]=Math.floor(N-t[h]+i)}else g[h]=Math.floor(t[h]+t[y]+i);return g}function f5(t,e,n,r,i,o,l,a){const s=r?n.height:e[Tu.height];var c;let d=t.top!=null?n.top+t.top:n.top+(s-((c=t.bottom)!==null&&c!==void 0?c:0)-l);var f,h,v,y,p,g;let m=a!=="top"?Math.max(0,e.height+e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0)-d-(((h=i.top)!==null&&h!==void 0?h:0)+((v=i.bottom)!==null&&v!==void 0?v:0)+o)):Math.max(0,d+l-(e.top+((y=e.scroll.top)!==null&&y!==void 0?y:0))-(((p=i.top)!==null&&p!==void 0?p:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o));return Math.min(e.height-o*2,m)}function Ua(t,e,n,r,i,o){let{placement:l,axis:a,size:s}=o;var c,d;if(l===a)return Math.max(0,n[a]-t[a]-((c=t.scroll[a])!==null&&c!==void 0?c:0)+e[a]-((d=r[a])!==null&&d!==void 0?d:0)-r[Ur[a]]-i);var f;return Math.max(0,t[s]+t[a]+t.scroll[a]-e[a]-n[a]-n[s]-((f=r[a])!==null&&f!==void 0?f:0)-r[Ur[a]]-i)}function h5(t,e,n,r,i,o,l,a,s,c,d,f,h,v,y,p){let g=Ba(t),{size:m,crossAxis:C,crossSize:S,placement:P,crossPlacement:$}=g,x=Bi(e,a,n,g,d,f,c,h,y,p),E=d,N=Ua(a,c,e,i,o+d,g);if(l&&r[m]>N){let K=Ba(`${Ur[P]} ${$}`),M=Bi(e,a,n,K,d,f,c,h,y,p);Ua(a,c,e,i,o+d,K)>N&&(g=K,x=M,E=d)}let H="bottom";g.axis==="top"?g.placement==="top"?H="top":g.placement==="bottom"&&(H="bottom"):g.crossAxis==="top"&&(g.crossPlacement==="top"?H="bottom":g.crossPlacement==="bottom"&&(H="top"));let j=za(C,x[C],n[S],a,s,o,c);x[C]+=j;let w=f5(x,a,c,h,i,o,n.height,H);v&&v<w&&(w=v),n.height=Math.min(n.height,w),x=Bi(e,a,n,g,E,f,c,h,y,p),j=za(C,x[C],n[S],a,s,o,c),x[C]+=j;let A={},B=e[C]+.5*e[S]-x[C]-i[qe[C]];const L=y/2+p;var U,I,R,k;const Z=qe[C]==="left"?((U=i.left)!==null&&U!==void 0?U:0)+((I=i.right)!==null&&I!==void 0?I:0):((R=i.top)!==null&&R!==void 0?R:0)+((k=i.bottom)!==null&&k!==void 0?k:0),_=n[S]-Z-y/2-p,F=e[C]+y/2-(x[C]+i[qe[C]]),T=e[C]+e[S]-y/2-(x[C]+i[qe[C]]),O=Do(B,F,T);return A[C]=Do(O,L,_),{position:x,maxHeight:w,arrowOffsetLeft:A.left,arrowOffsetTop:A.top,placement:g.placement}}function p5(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:l,boundaryElement:a,offset:s,crossOffset:c,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:h=0}=t,v=r instanceof HTMLElement?v5(r):document.documentElement,y=v===document.documentElement;const p=window.getComputedStyle(v).position;let g=!!p&&p!=="static",m=y?cn(n):Wa(n,v);if(!y){let{marginTop:A,marginLeft:B}=window.getComputedStyle(n);m.top+=parseInt(A,10)||0,m.left+=parseInt(B,10)||0}let C=cn(r),S=d5(r);var P,$;C.width+=((P=S.left)!==null&&P!==void 0?P:0)+(($=S.right)!==null&&$!==void 0?$:0);var x,E;C.height+=((x=S.top)!==null&&x!==void 0?x:0)+((E=S.bottom)!==null&&E!==void 0?E:0);let N=u5(i),H=Va(a),j=Va(v),w=a.tagName==="BODY"?cn(v):Wa(v,a);return v.tagName==="HTML"&&a.tagName==="BODY"&&(j.scroll.top=0,j.scroll.left=0),h5(e,m,C,N,S,o,l,H,j,w,s,c,g,d,f,h)}function cn(t){let{top:e,left:n,width:r,height:i}=t.getBoundingClientRect(),{scrollTop:o,scrollLeft:l,clientTop:a,clientLeft:s}=document.documentElement;return{top:e+o-a,left:n+l-s,width:r,height:i}}function Wa(t,e){let n=window.getComputedStyle(t),r;if(n.position==="fixed"){let{top:i,left:o,width:l,height:a}=t.getBoundingClientRect();r={top:i,left:o,width:l,height:a}}else{r=cn(t);let i=cn(e),o=window.getComputedStyle(e);i.top+=(parseInt(o.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-e.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function v5(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Za(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Za(e);)e=e.parentElement;return e||document.documentElement}function Za(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const _u=new WeakMap;function g5(t){let{triggerRef:e,isOpen:n,onClose:r}=t;u.useEffect(()=>{if(!n||r===null)return;let i=o=>{let l=o.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let a=r||_u.get(e.current);a&&a()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,e])}let de=typeof document<"u"?window.visualViewport:null;function m5(t){let{direction:e}=Ft(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:l="bottom",containerPadding:a=12,shouldFlip:s=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:h=!0,isOpen:v=!0,onClose:y,maxHeight:p,arrowBoundaryOffset:g=0}=t,[m,C]=u.useState(null),S=[h,l,i.current,r.current,o.current,a,s,c,d,f,v,e,p,g,n],P=u.useRef(de==null?void 0:de.scale);u.useEffect(()=>{v&&(P.current=de==null?void 0:de.scale)},[v]);let $=u.useCallback(()=>{if(h===!1||!v||!i.current||!r.current||!c||(de==null?void 0:de.scale)!==P.current)return;let j=null;if(o.current&&o.current.contains(document.activeElement)){var w;let k=(w=document.activeElement)===null||w===void 0?void 0:w.getBoundingClientRect(),Z=o.current.getBoundingClientRect();var A;if(j={type:"top",offset:((A=k==null?void 0:k.top)!==null&&A!==void 0?A:0)-Z.top},j.offset>Z.height/2){j.type="bottom";var B;j.offset=((B=k==null?void 0:k.bottom)!==null&&B!==void 0?B:0)-Z.bottom}}let L=i.current;if(!p&&i.current){var U;L.style.top="0px",L.style.bottom="";var I;L.style.maxHeight=((I=(U=window.visualViewport)===null||U===void 0?void 0:U.height)!==null&&I!==void 0?I:window.innerHeight)+"px"}let R=p5({placement:b5(l,e),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:a,shouldFlip:s,boundaryElement:c,offset:d,crossOffset:f,maxHeight:p,arrowSize:n,arrowBoundaryOffset:g});if(R.position){if(L.style.top="",L.style.bottom="",L.style.left="",L.style.right="",Object.keys(R.position).forEach(k=>L.style[k]=R.position[k]+"px"),L.style.maxHeight=R.maxHeight!=null?R.maxHeight+"px":"",j&&document.activeElement&&o.current){let k=document.activeElement.getBoundingClientRect(),Z=o.current.getBoundingClientRect(),_=k[j.type]-Z[j.type];o.current.scrollTop+=_-j.offset}C(R)}},S);ne($,S),y5($),$o({ref:i,onResize:$}),$o({ref:r,onResize:$});let x=u.useRef(!1);ne(()=>{let j,w=()=>{x.current=!0,clearTimeout(j),j=setTimeout(()=>{x.current=!1},500),$()},A=()=>{x.current&&w()};return de==null||de.addEventListener("resize",w),de==null||de.addEventListener("scroll",A),()=>{de==null||de.removeEventListener("resize",w),de==null||de.removeEventListener("scroll",A)}},[$]);let E=u.useCallback(()=>{x.current||y==null||y()},[y,x]);g5({triggerRef:r,isOpen:v,onClose:y&&E});var N,H;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...m==null?void 0:m.position,maxHeight:(N=m==null?void 0:m.maxHeight)!==null&&N!==void 0?N:"100vh"}},placement:(H=m==null?void 0:m.placement)!==null&&H!==void 0?H:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:m==null?void 0:m.arrowOffsetLeft,top:m==null?void 0:m.arrowOffsetTop}},updatePosition:$}}function y5(t){ne(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function b5(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const Ue=[];function C5(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t;u.useEffect(()=>{if(i&&!Ue.includes(e))return Ue.push(e),()=>{let y=Ue.indexOf(e);y>=0&&Ue.splice(y,1)}},[i,e]);let s=()=>{Ue[Ue.length-1]===e&&n&&n()},c=y=>{(!a||a(y.target))&&Ue[Ue.length-1]===e&&(y.stopPropagation(),y.preventDefault())},d=y=>{(!a||a(y.target))&&(Ue[Ue.length-1]===e&&(y.stopPropagation(),y.preventDefault()),s())},f=y=>{y.key==="Escape"&&!l&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),s())};hh({ref:e,onInteractOutside:o&&i?d:void 0,onInteractOutsideStart:c});let{focusWithinProps:h}=fi({isDisabled:!r,onBlurWithin:y=>{!y.relatedTarget||Bh(y.relatedTarget)||(!a||a(y.relatedTarget))&&(n==null||n())}}),v=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:f,...h},underlayProps:{onPointerDown:v}}}function S5(t,e,n){let{type:r}=t,{isOpen:i}=e;u.useEffect(()=>{n&&n.current&&_u.set(n.current,e.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let l=Se();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}const Ui=typeof document<"u"&&window.visualViewport,w5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let dr=0,Wi;function x5(t={}){let{isDisabled:e}=t;ne(()=>{if(!e)return dr++,dr===1&&(ii()?Wi=$5():Wi=E5()),()=>{dr--,dr===0&&Wi()}},[e])}function E5(){let t=window.innerWidth-document.documentElement.clientWidth;return Dt(t>0&&("scrollbarGutter"in document.documentElement.style?St(document.documentElement,"scrollbarGutter","stable"):St(document.documentElement,"paddingRight",`${t}px`)),St(document.documentElement,"overflow","hidden"))}function $5(){let t,e,n=c=>{t=Xc(c.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=St(t,"overscrollBehavior","contain"))},r=c=>{if(!t||t===document.documentElement||t===document.body){c.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&c.preventDefault()},i=()=>{e&&e()},o=c=>{let d=c.target;P5(d)&&(a(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Ui&&(Ui.height<window.innerHeight?requestAnimationFrame(()=>{Ga(d)}):Ui.addEventListener("resize",()=>Ga(d),{once:!0}))}))},l=null,a=()=>{if(l)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;l=Dt(Tn(window,"scroll",c),St(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),St(document.documentElement,"overflow","hidden"),St(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},s=Dt(Tn(document,"touchstart",n,{passive:!1,capture:!0}),Tn(document,"touchmove",r,{passive:!1,capture:!0}),Tn(document,"touchend",i,{passive:!1,capture:!0}),Tn(document,"focus",o,!0));return()=>{e==null||e(),l==null||l(),s()}}function St(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function Tn(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function Ga(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=Xc(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function P5(t){return t instanceof HTMLInputElement&&!w5.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const D5=u.createContext({});function T5(){var t;return(t=u.useContext(D5))!==null&&t!==void 0?t:{}}var Iu={};Iu={dismiss:"تجاهل"};var Ou={};Ou={dismiss:"Отхвърляне"};var ku={};ku={dismiss:"Odstranit"};var Nu={};Nu={dismiss:"Luk"};var Ru={};Ru={dismiss:"Schließen"};var Mu={};Mu={dismiss:"Απόρριψη"};var Lu={};Lu={dismiss:"Dismiss"};var Au={};Au={dismiss:"Descartar"};var Fu={};Fu={dismiss:"Lõpeta"};var Ku={};Ku={dismiss:"Hylkää"};var ju={};ju={dismiss:"Rejeter"};var Hu={};Hu={dismiss:"התעלם"};var Vu={};Vu={dismiss:"Odbaci"};var zu={};zu={dismiss:"Elutasítás"};var Bu={};Bu={dismiss:"Ignora"};var Uu={};Uu={dismiss:"閉じる"};var Wu={};Wu={dismiss:"무시"};var Zu={};Zu={dismiss:"Atmesti"};var Gu={};Gu={dismiss:"Nerādīt"};var qu={};qu={dismiss:"Lukk"};var Yu={};Yu={dismiss:"Negeren"};var Xu={};Xu={dismiss:"Zignoruj"};var Ju={};Ju={dismiss:"Descartar"};var Qu={};Qu={dismiss:"Dispensar"};var e0={};e0={dismiss:"Revocare"};var t0={};t0={dismiss:"Пропустить"};var n0={};n0={dismiss:"Zrušiť"};var r0={};r0={dismiss:"Opusti"};var i0={};i0={dismiss:"Odbaci"};var o0={};o0={dismiss:"Avvisa"};var l0={};l0={dismiss:"Kapat"};var a0={};a0={dismiss:"Скасувати"};var s0={};s0={dismiss:"取消"};var c0={};c0={dismiss:"關閉"};var u0={};u0={"ar-AE":Iu,"bg-BG":Ou,"cs-CZ":ku,"da-DK":Nu,"de-DE":Ru,"el-GR":Mu,"en-US":Lu,"es-ES":Au,"et-EE":Fu,"fi-FI":Ku,"fr-FR":ju,"he-IL":Hu,"hr-HR":Vu,"hu-HU":zu,"it-IT":Bu,"ja-JP":Uu,"ko-KR":Wu,"lt-LT":Zu,"lv-LV":Gu,"nb-NO":qu,"nl-NL":Yu,"pl-PL":Xu,"pt-BR":Ju,"pt-PT":Qu,"ro-RO":e0,"ru-RU":t0,"sk-SK":n0,"sl-SI":r0,"sr-SP":i0,"sv-SE":o0,"tr-TR":l0,"uk-UA":a0,"zh-CN":s0,"zh-TW":c0};function _5(t){return t&&t.__esModule?t.default:t}function qa(t){let{onDismiss:e,...n}=t,r=yu(_5(u0),"@react-aria/overlays"),i=ai(n,r.format("dismiss")),o=()=>{e&&e()};return u.createElement(s5,null,u.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}let _n=new WeakMap,Ee=[];function I5(t,e=document.body){let n=new Set(t),r=new Set,i=s=>{for(let h of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(h);let c=h=>{if(n.has(h)||h.parentElement&&r.has(h.parentElement)&&h.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let v of n)if(h.contains(v))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),f=c(s);if(f===NodeFilter.FILTER_ACCEPT&&o(s),f!==NodeFilter.FILTER_REJECT){let h=d.nextNode();for(;h!=null;)o(h),h=d.nextNode()}},o=s=>{var c;let d=(c=_n.get(s))!==null&&c!==void 0?c:0;s.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&s.setAttribute("aria-hidden","true"),r.add(s),_n.set(s,d+1))};Ee.length&&Ee[Ee.length-1].disconnect(),i(e);let l=new MutationObserver(s=>{for(let c of s)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&i(d)}});l.observe(e,{childList:!0,subtree:!0});let a={visibleNodes:n,hiddenNodes:r,observe(){l.observe(e,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return Ee.push(a),()=>{l.disconnect();for(let s of r){let c=_n.get(s);c!=null&&(c===1?(s.removeAttribute("aria-hidden"),_n.delete(s)):_n.set(s,c-1))}a===Ee[Ee.length-1]?(Ee.pop(),Ee.length&&Ee[Ee.length-1].observe()):Ee.splice(Ee.indexOf(a),1)}}function O5(t){let e=Ee[Ee.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}function k5(t,e){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:o,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a,...s}=t,c=s.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=C5({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o||c,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a},i??r),{overlayProps:h,arrowProps:v,placement:y}=m5({...s,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:o&&!c?e.close:null});return x5({isDisabled:o||!e.isOpen}),ne(()=>{if(e.isOpen&&r.current){var p,g;return o?O5((p=i==null?void 0:i.current)!==null&&p!==void 0?p:r.current):I5([(g=i==null?void 0:i.current)!==null&&g!==void 0?g:r.current])}},[o,e.isOpen,r,i]),{popoverProps:re(d,h),arrowProps:v,underlayProps:f,placement:y}}const N5=u.createContext(null);function Ya(t){let e=Qn(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=u.useState(!1),l=u.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=T5();if(!t.portalContainer&&a&&(n=a()),!n)return null;let s=t.children;return t.disableFocusManagement||(s=u.createElement(Tl,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},s)),s=u.createElement(N5.Provider,{value:l},u.createElement(dh,null,s)),Lt.createPortal(s,n)}const Il=new WeakMap;function R5(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function M5(t,e){let n=Il.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${R5(e)}`}function Ho(t){return x1()?t.altKey:t.ctrlKey}function $r(t,e){var n,r;let i=`[data-key="${CSS.escape(String(e))}"]`,o=(n=t.current)===null||n===void 0?void 0:n.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(r=t.current)===null||r===void 0?void 0:r.querySelector(i)}const d0=new WeakMap;function L5(t){let e=Se();return d0.set(t,e),e}function A5(t){return d0.get(t)}const F5=1e3;function f0(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=u.useRef({search:"",timeout:void 0}).current,o=l=>{let a=K5(l.key);if(!(!a||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))){if(a===" "&&i.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),i.search+=a,e.getKeyForSearch!=null){let s=e.getKeyForSearch(i.search,n.focusedKey);s==null&&(s=e.getKeyForSearch(i.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},F5)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function K5(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function h0(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:c=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:h=!1,isVirtualized:v,scrollRef:y=r,linkBehavior:p="action"}=t,{direction:g}=Ft(),m=oi(),C=R=>{var k;if(R.altKey&&R.key==="Tab"&&R.preventDefault(),!(!((k=r.current)===null||k===void 0)&&k.contains(R.target)))return;const Z=(G,te)=>{if(G!=null){if(e.isLink(G)&&p==="selection"&&c&&!Ho(R)){Lt.flushSync(()=>{e.setFocusedKey(G,te)});let ue=$r(r,G),ee=e.getItemProps(G);ue&&m.open(ue,R,ee.href,ee.routerOptions);return}if(e.setFocusedKey(G,te),e.isLink(G)&&p==="override")return;R.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):c&&!Ho(R)&&e.replaceSelection(G)}};switch(R.key){case"ArrowDown":if(n.getKeyBelow){var _,F,T;let G=e.focusedKey!=null?(_=n.getKeyBelow)===null||_===void 0?void 0:_.call(n,e.focusedKey):(F=n.getFirstKey)===null||F===void 0?void 0:F.call(n);G==null&&o&&(G=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n,e.focusedKey)),G!=null&&(R.preventDefault(),Z(G))}break;case"ArrowUp":if(n.getKeyAbove){var O,K,M;let G=e.focusedKey!=null?(O=n.getKeyAbove)===null||O===void 0?void 0:O.call(n,e.focusedKey):(K=n.getLastKey)===null||K===void 0?void 0:K.call(n);G==null&&o&&(G=(M=n.getLastKey)===null||M===void 0?void 0:M.call(n,e.focusedKey)),G!=null&&(R.preventDefault(),Z(G))}break;case"ArrowLeft":if(n.getKeyLeftOf){var V,z,W;let G=e.focusedKey!=null?(V=n.getKeyLeftOf)===null||V===void 0?void 0:V.call(n,e.focusedKey):null;G==null&&o&&(G=g==="rtl"?(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n,e.focusedKey):(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,e.focusedKey)),G!=null&&(R.preventDefault(),Z(G,g==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var q,J,se;let G=e.focusedKey!=null?(q=n.getKeyRightOf)===null||q===void 0?void 0:q.call(n,e.focusedKey):null;G==null&&o&&(G=g==="rtl"?(J=n.getLastKey)===null||J===void 0?void 0:J.call(n,e.focusedKey):(se=n.getFirstKey)===null||se===void 0?void 0:se.call(n,e.focusedKey)),G!=null&&(R.preventDefault(),Z(G,g==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&R.shiftKey)return;R.preventDefault();let G=n.getFirstKey(e.focusedKey,en(R));e.setFocusedKey(G),G!=null&&(en(R)&&R.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):c&&e.replaceSelection(G))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&R.shiftKey)return;R.preventDefault();let G=n.getLastKey(e.focusedKey,en(R));e.setFocusedKey(G),G!=null&&(en(R)&&R.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):c&&e.replaceSelection(G))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let G=n.getKeyPageBelow(e.focusedKey);G!=null&&(R.preventDefault(),Z(G))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let G=n.getKeyPageAbove(e.focusedKey);G!=null&&(R.preventDefault(),Z(G))}break;case"a":en(R)&&e.selectionMode==="multiple"&&a!==!0&&(R.preventDefault(),e.selectAll());break;case"Escape":s==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(R.stopPropagation(),R.preventDefault(),e.clearSelection());break;case"Tab":if(!h){if(R.shiftKey)r.current.focus();else{let G=Ge(r.current,{tabbable:!0}),te,ue;do ue=G.lastChild(),ue&&(te=ue);while(ue);te&&!te.contains(document.activeElement)&&Ve(te)}break}}},S=u.useRef({top:0,left:0});or(y,"scroll",v?void 0:()=>{var R,k,Z,_;S.current={top:(Z=(R=y.current)===null||R===void 0?void 0:R.scrollTop)!==null&&Z!==void 0?Z:0,left:(_=(k=y.current)===null||k===void 0?void 0:k.scrollLeft)!==null&&_!==void 0?_:0}});let P=R=>{if(e.isFocused){R.currentTarget.contains(R.target)||e.setFocused(!1);return}if(R.currentTarget.contains(R.target)){if(e.setFocused(!0),e.focusedKey==null){var k,Z;let T=K=>{K!=null&&(e.setFocusedKey(K),c&&!e.isSelected(K)&&e.replaceSelection(K))},O=R.relatedTarget;var _,F;O&&R.currentTarget.compareDocumentPosition(O)&Node.DOCUMENT_POSITION_FOLLOWING?T((_=e.lastSelectedKey)!==null&&_!==void 0?_:(k=n.getLastKey)===null||k===void 0?void 0:k.call(n)):T((F=e.firstSelectedKey)!==null&&F!==void 0?F:(Z=n.getFirstKey)===null||Z===void 0?void 0:Z.call(n))}else!v&&y.current&&(y.current.scrollTop=S.current.top,y.current.scrollLeft=S.current.left);if(e.focusedKey!=null&&y.current){let T=$r(r,e.focusedKey);T instanceof HTMLElement&&(!T.contains(document.activeElement)&&!f&&Ve(T),Vr()==="keyboard"&&pa(T,{containingElement:r.current}))}}},$=R=>{R.currentTarget.contains(R.relatedTarget)||e.setFocused(!1)},x=u.useRef(!1);or(r,A1,f?R=>{let{detail:k}=R;R.stopPropagation(),e.setFocused(!0),(k==null?void 0:k.focusStrategy)==="first"&&(x.current=!0)}:void 0);let E=he(()=>{var R,k;let Z=(k=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&k!==void 0?k:null;Z==null?(wu(r.current),e.collection.size>0&&(x.current=!1)):(e.setFocusedKey(Z),x.current=!1)});fa(()=>{x.current&&E()},[e.collection,E]);let N=he(()=>{e.collection.size>0&&(x.current=!1)});fa(()=>{N()},[e.focusedKey,N]),or(r,L1,f?R=>{var k;R.stopPropagation(),e.setFocused(!1),!((k=R.detail)===null||k===void 0)&&k.clearFocusKey&&e.setFocusedKey(null)}:void 0);const H=u.useRef(i),j=u.useRef(!1);u.useEffect(()=>{if(H.current){var R,k;let F=null;var Z;i==="first"&&(F=(Z=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&Z!==void 0?Z:null);var _;i==="last"&&(F=(_=(k=n.getLastKey)===null||k===void 0?void 0:k.call(n))!==null&&_!==void 0?_:null);let T=e.selectedKeys;if(T.size){for(let O of T)if(e.canSelectItem(O)){F=O;break}}e.setFocused(!0),e.setFocusedKey(F),F==null&&!f&&r.current&&vn(r.current),e.collection.size>0&&(H.current=!1,j.current=!0)}});let w=u.useRef(e.focusedKey),A=u.useRef(null);u.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==w.current||j.current)&&y.current&&r.current){let R=Vr(),k=$r(r,e.focusedKey);if(!(k instanceof HTMLElement))return;(R==="keyboard"||j.current)&&(A.current&&cancelAnimationFrame(A.current),A.current=requestAnimationFrame(()=>{y.current&&(Jc(y.current,k),R!=="virtual"&&pa(k,{containingElement:r.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&w.current!=null&&r.current&&vn(r.current),w.current=e.focusedKey,j.current=!1}),u.useEffect(()=>()=>{A.current&&cancelAnimationFrame(A.current)},[]),or(r,"react-aria-focus-scope-restore",R=>{R.preventDefault(),e.setFocused(!0)});let B={onKeyDown:C,onFocus:P,onBlur:$,onMouseDown(R){y.current===R.target&&R.preventDefault()}},{typeSelectProps:L}=f0({keyboardDelegate:n,selectionManager:e});d||(B=re(L,B));let U;f||(U=e.focusedKey==null?0:-1);let I=L5(e.collection);return{collectionProps:re(B,{tabIndex:U,"data-collection":I})}}function Ol(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:s,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,h=oi();e=Se(e);let v=k=>{if(k.pointerType==="keyboard"&&Ho(k))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let Z=n.getItemProps(r);h.open(i.current,k,Z.href,Z.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):k&&k.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||k&&(en(k)||k.pointerType==="touch"||k.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};u.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?wu(i.current):a?a():document.activeElement!==i.current&&i.current&&vn(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),s=s||n.isDisabled(r);let y={};!l&&!s?y={tabIndex:r===n.focusedKey?0:-1,onFocus(k){k.target===i.current&&n.setFocusedKey(r)}}:s&&(y.onMouseDown=k=>{k.preventDefault()});let p=n.isLink(r)&&f==="override",g=n.isLink(r)&&f!=="selection"&&f!=="none",m=!s&&n.canSelectItem(r)&&!p,C=(c||g)&&!s,S=C&&(n.selectionBehavior==="replace"?!m:!m||n.isEmpty),P=C&&m&&n.selectionBehavior==="replace",$=S||P,x=u.useRef(null),E=$&&m,N=u.useRef(!1),H=u.useRef(!1),j=k=>{if(c&&c(),g&&i.current){let Z=n.getItemProps(r);h.open(i.current,k,Z.href,Z.routerOptions)}},w={ref:i};o?(w.onPressStart=k=>{x.current=k.pointerType,N.current=E,k.pointerType==="keyboard"&&(!$||Ja())&&v(k)},d?(w.onPressUp=S?void 0:k=>{k.pointerType==="mouse"&&m&&v(k)},w.onPress=S?j:k=>{k.pointerType!=="keyboard"&&k.pointerType!=="mouse"&&m&&v(k)}):w.onPress=k=>{if(S||P&&k.pointerType!=="mouse"){if(k.pointerType==="keyboard"&&!Xa())return;j(k)}else k.pointerType!=="keyboard"&&m&&v(k)}):(w.onPressStart=k=>{x.current=k.pointerType,N.current=E,H.current=S,m&&(k.pointerType==="mouse"&&!S||k.pointerType==="keyboard"&&(!C||Ja()))&&v(k)},w.onPress=k=>{(k.pointerType==="touch"||k.pointerType==="pen"||k.pointerType==="virtual"||k.pointerType==="keyboard"&&$&&Xa()||k.pointerType==="mouse"&&H.current)&&($?j(k):m&&v(k))}),y["data-collection"]=A5(n.collection),y["data-key"]=r,w.preventFocusOnPress=l,l&&(w=re(w,{onPressStart(k){k.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(k){k.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:A,isPressed:B}=ui(w),L=P?k=>{x.current==="mouse"&&(k.stopPropagation(),k.preventDefault(),j(k))}:void 0,{longPressProps:U}=pu({isDisabled:!E,onLongPress(k){k.pointerType==="touch"&&(v(k),n.setSelectionBehavior("toggle"))}}),I=k=>{x.current==="touch"&&N.current&&k.preventDefault()},R=n.isLink(r)?k=>{Tt.isOpening||k.preventDefault()}:void 0;return{itemProps:re(y,m||S||l&&!s?A:{},E?U:{},{onDoubleClick:L,onDragStartCapture:I,onClick:R,id:e},l?{onMouseDown:k=>k.preventDefault()}:void 0),isPressed:B,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:m,hasAction:$}}function Xa(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function Ja(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class Qa{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?$r(this.ref,e):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var n,r;return{width:(n=e==null?void 0:e.scrollWidth)!==null&&n!==void 0?n:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var n,r,i,o;return{x:(n=e==null?void 0:e.scrollLeft)!==null&&n!==void 0?n:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(i=e==null?void 0:e.offsetWidth)!==null&&i!==void 0?i:0,height:(o=e==null?void 0:e.offsetHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}}class kl{isDisabled(e){var n;return this.disabledBehavior==="all"&&(((n=e.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,n){let r=e;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(e){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(e,n,r){let i=e,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let l=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(l,o)&&i!=null);return i}isSameRow(e,n){return e.y===n.y||e.x!==n.x}isSameColumn(e,n){return e.x===n.x||e.y!==n.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,n){return n?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyAfter(n))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Bn(n))return this.getFirstKey();let i=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Bn(n))return this.getLastKey();let i=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let l=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(l,e)===0)return i;i=this.getNextKey(i)}return null}constructor(...e){if(e.length===1){let n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Qa(n.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Qa(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function p0(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:l}=t,a=Dl({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,c=u.useMemo(()=>o||new kl({collection:n,disabledKeys:r,disabledBehavior:s,ref:i,collator:a,layoutDelegate:l}),[o,l,n,r,i,a,s]),{collectionProps:d}=h0({...t,ref:i,selectionManager:e,keyboardDelegate:c});return{listProps:d}}function j5(t,e,n){let r=pe(t,{labelable:!0}),i=t.selectionBehavior||"toggle",o=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:l}=p0({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:o}),{focusWithinProps:a}=fi({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=Se(t.id);Il.set(e,{id:s,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:o});let{labelProps:c,fieldProps:d}=Pu({...t,id:s,labelElementType:"span"});return{labelProps:c,listBoxProps:re(r,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...re(d,l)})}}class H5{build(e,n){return this.context=n,es(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(u.isValidElement(n)&&n.type===u.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];u.Children.forEach(n,l=>{l&&i.push(l)});let o=0;for(let l of i){let a=this.getFullNode({element:l,index:o},{});for(let s of a)o++,yield s}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var l;let a=(l=o.key)!==null&&l!==void 0?l:o.id;if(a==null)throw new Error("No key found for item");return a}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(u.isValidElement(e.element)&&e.element.type===u.Fragment){let g=[];u.Children.forEach(e.element.props.children,C=>{g.push(C)});var o;let m=(o=e.index)!==null&&o!==void 0?o:0;for(const C of g)yield*this.getFullNode({element:C,index:m++},n,r,i);return}let l=e.element;if(!l&&e.value&&n&&n.renderer){let g=this.cache.get(e.value);if(g&&(!g.shouldInvalidate||!g.shouldInvalidate(this.context))){g.index=e.index,g.parentKey=i?i.key:null,yield g;return}l=n.renderer(e.value)}if(u.isValidElement(l)){let g=l.type;if(typeof g!="function"&&typeof g.getCollectionNode!="function"){let P=l.type;throw new Error(`Unknown element <${P}> in collection.`)}let m=g.getCollectionNode(l.props,this.context);var a;let C=(a=e.index)!==null&&a!==void 0?a:0,S=m.next();for(;!S.done&&S.value;){let P=S.value;e.index=C;var s;let $=(s=P.key)!==null&&s!==void 0?s:null;$==null&&($=P.element?null:this.getKey(l,e,n,r));let E=[...this.getFullNode({...P,key:$,index:C,wrapper:V5(e.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${l.key}`:l.key,i)];for(let N of E){var c,d;N.value=(d=(c=P.value)!==null&&c!==void 0?c:e.value)!==null&&d!==void 0?d:null,N.value&&this.cache.set(N.value,N);var f;if(e.type&&N.type!==e.type)throw new Error(`Unsupported type <${Zi(N.type)}> in <${Zi((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${Zi(e.type)}> is supported.`);C++,yield N}S=m.next(E)}return}if(e.key==null||e.type==null)return;let h=this;var v,y;let p={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(v=e.value)!==null&&v!==void 0?v:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(y=e.textValue)!==null&&y!==void 0?y:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:es(function*(){if(!e.hasChildNodes||!e.childNodes)return;let g=0;for(let m of e.childNodes()){m.key!=null&&(m.key=`${p.key}${m.key}`);let C=h.getFullNode({...m,index:g},h.getChildState(n,m),p.key,p);for(let S of C)g++,yield S}})};yield p}constructor(){this.cache=new WeakMap}}function es(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function V5(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function Zi(t){return t[0].toUpperCase()+t.slice(1)}function v0(t,e,n){let r=u.useMemo(()=>new H5,[]),{children:i,items:o,collection:l}=t;return u.useMemo(()=>{if(l)return l;let s=r.build({children:i,items:o},n);return e(s)},[r,i,o,l,n,e])}function g0(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function z5(t){return B5(t)}function B5(t,e){for(let n of t)return n}function Gi(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...ts(t,e),e],i=[...ts(t,n),n],o=r.slice(0,i.length).findIndex((l,a)=>l!==i[a]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function ts(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}const ns=new WeakMap;function m0(t){let e=ns.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r(g0(o,t)):o.type==="item"&&n++};return r(t),ns.set(t,n),n}function U5(t,e,n){var r,i;let{key:o}=t,l=Il.get(e);var a;let s=(a=t.isDisabled)!==null&&a!==void 0?a:e.selectionManager.isDisabled(o);var c;let d=(c=t.isSelected)!==null&&c!==void 0?c:e.selectionManager.isSelected(o);var f;let h=(f=t.shouldSelectOnPressUp)!==null&&f!==void 0?f:l==null?void 0:l.shouldSelectOnPressUp;var v;let y=(v=t.shouldFocusOnHover)!==null&&v!==void 0?v:l==null?void 0:l.shouldFocusOnHover;var p;let g=(p=t.shouldUseVirtualFocus)!==null&&p!==void 0?p:l==null?void 0:l.shouldUseVirtualFocus;var m;let C=(m=t.isVirtualized)!==null&&m!==void 0?m:l==null?void 0:l.isVirtualized,S=xt(),P=xt(),$={role:"option","aria-disabled":s||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};ft()&&fl()||($["aria-label"]=t["aria-label"],$["aria-labelledby"]=S,$["aria-describedby"]=P);let x=e.collection.getItem(o);if(C){let R=Number(x==null?void 0:x.index);$["aria-posinset"]=Number.isNaN(R)?void 0:R+1,$["aria-setsize"]=m0(e.collection)}let E=l!=null&&l.onAction?()=>{var R;return l==null||(R=l.onAction)===null||R===void 0?void 0:R.call(l,o)}:void 0,N=M5(e,o),{itemProps:H,isPressed:j,isFocused:w,hasAction:A,allowsSelection:B}=Ol({selectionManager:e.selectionManager,key:o,ref:n,shouldSelectOnPressUp:h,allowsDifferentPressOrigin:h&&y,isVirtualized:C,shouldUseVirtualFocus:g,isDisabled:s,onAction:E||!(x==null||(r=x.props)===null||r===void 0)&&r.onAction?Dt(x==null||(i=x.props)===null||i===void 0?void 0:i.onAction,E):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:N}),{hoverProps:L}=Cn({isDisabled:s||!y,onHoverStart(){pn()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(o))}}),U=pe(x==null?void 0:x.props);delete U.id;let I=pl(x==null?void 0:x.props);return{optionProps:{...$,...re(U,H,L,I),id:N},labelProps:{id:S},descriptionProps:{id:P},isFocused:w,isFocusVisible:w&&e.selectionManager.isFocused&&pn(),isSelected:d,isDisabled:s,isPressed:j,allowsSelection:B,hasAction:A}}function W5(t){let{heading:e,"aria-label":n}=t,r=Se();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}var y0={};y0={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var b0={};b0={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var C0={};C0={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var S0={};S0={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var w0={};w0={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var x0={};x0={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var E0={};E0={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var $0={};$0={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var P0={};P0={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var D0={};D0={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var T0={};T0={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var _0={};_0={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var I0={};I0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var O0={};O0={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var k0={};k0={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var N0={};N0={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var R0={};R0={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var M0={};M0={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var L0={};L0={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var A0={};A0={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var F0={};F0={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var K0={};K0={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var j0={};j0={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var H0={};H0={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var V0={};V0={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var z0={};z0={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var B0={};B0={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var U0={};U0={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var W0={};W0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Z0={};Z0={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var G0={};G0={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var q0={};q0={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Y0={};Y0={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var X0={};X0={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var J0={};J0={"ar-AE":y0,"bg-BG":b0,"cs-CZ":C0,"da-DK":S0,"de-DE":w0,"el-GR":x0,"en-US":E0,"es-ES":$0,"et-EE":P0,"fi-FI":D0,"fr-FR":T0,"he-IL":_0,"hr-HR":I0,"hu-HU":O0,"it-IT":k0,"ja-JP":N0,"ko-KR":R0,"lt-LT":M0,"lv-LV":L0,"nb-NO":A0,"nl-NL":F0,"pl-PL":K0,"pt-BR":j0,"pt-PT":H0,"ro-RO":V0,"ru-RU":z0,"sk-SK":B0,"sl-SI":U0,"sr-SP":W0,"sv-SE":Z0,"tr-TR":G0,"uk-UA":q0,"zh-CN":Y0,"zh-TW":X0};function Z5(t){return t&&t.__esModule?t.default:t}function G5(t,e,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=t,l=Se(),{triggerProps:a,overlayProps:s}=S5({type:r},e,n),c=v=>{if(!i&&!(o==="longPress"&&!v.altKey)&&n&&n.current)switch(v.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in v||v.stopPropagation(),v.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in v||v.stopPropagation(),v.preventDefault(),e.toggle("last");break;default:"continuePropagation"in v&&v.continuePropagation()}},d=yu(Z5(J0),"@react-aria/menu"),{longPressProps:f}=pu({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),h={preventFocusOnPress:!0,onPressStart(v){v.pointerType!=="touch"&&v.pointerType!=="keyboard"&&!i&&(Ve(v.target),e.open(v.pointerType==="virtual"?"first":null))},onPress(v){v.pointerType==="touch"&&!i&&(Ve(v.target),e.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...o==="press"?h:f,id:l,onKeyDown:c},menuProps:{...s,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const Q0=new WeakMap;function q5(t,e,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:o,...l}=t;!t["aria-label"]&&!t["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let a=pe(t,{labelable:!0}),{listProps:s}=p0({...l,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Q0.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:re(a,{onKeyDown:i,onKeyUp:o},{role:"menu",...s,onKeyDown:c=>{var d;(c.key!=="Escape"||t.shouldUseVirtualFocus)&&((d=s.onKeyDown)===null||d===void 0||d.call(s,c))}})}}function Y5(t,e,n){let{id:r,key:i,closeOnSelect:o,isVirtualized:l,"aria-haspopup":a,onPressStart:s,onPressUp:c,onPress:d,onPressChange:f,onPressEnd:h,onHoverStart:v,onHoverChange:y,onHoverEnd:p,onKeyDown:g,onKeyUp:m,onFocus:C,onFocusChange:S,onBlur:P,selectionManager:$=e.selectionManager}=t,x=!!a,E=x&&t["aria-expanded"]==="true";var N;let H=(N=t.isDisabled)!==null&&N!==void 0?N:$.isDisabled(i);var j;let w=(j=t.isSelected)!==null&&j!==void 0?j:$.isSelected(i),A=Q0.get(e),B=e.collection.getItem(i),L=t.onClose||A.onClose,U=oi(),I=ee=>{var rt;if(!x){if(!(B==null||(rt=B.props)===null||rt===void 0)&&rt.onAction?B.props.onAction():t.onAction&&t.onAction(i),A.onAction){let xn=A.onAction;xn(i)}ee.target instanceof HTMLAnchorElement&&B&&U.open(ee.target,ee,B.props.href,B.props.routerOptions)}},R="menuitem";x||($.selectionMode==="single"?R="menuitemradio":$.selectionMode==="multiple"&&(R="menuitemcheckbox"));let k=xt(),Z=xt(),_=xt(),F={id:r,"aria-disabled":H||void 0,role:R,"aria-label":t["aria-label"],"aria-labelledby":k,"aria-describedby":[Z,_].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":a,"aria-expanded":t["aria-expanded"]};$.selectionMode!=="none"&&!x&&(F["aria-checked"]=w),l&&(F["aria-posinset"]=B==null?void 0:B.index,F["aria-setsize"]=m0(e.collection));let T=ee=>{ee.pointerType==="keyboard"&&I(ee),s==null||s(ee)},O=()=>{!x&&L&&(o??($.selectionMode!=="multiple"||$.isLink(i)))&&L()},K=ee=>{ee.pointerType==="mouse"&&(I(ee),O()),c==null||c(ee)},M=ee=>{ee.pointerType!=="keyboard"&&ee.pointerType!=="mouse"&&(I(ee),O()),d==null||d(ee)},{itemProps:V,isFocused:z}=Ol({id:r,selectionManager:$,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:A.shouldUseVirtualFocus}),{pressProps:W,isPressed:q}=ui({onPressStart:T,onPress:M,onPressUp:K,onPressChange:f,onPressEnd:h,isDisabled:H}),{hoverProps:J}=Cn({isDisabled:H,onHoverStart(ee){!pn()&&!(E&&a)&&($.setFocused(!0),$.setFocusedKey(i)),v==null||v(ee)},onHoverChange:y,onHoverEnd:p}),{keyboardProps:se}=fu({onKeyDown:ee=>{if(ee.repeat){ee.continuePropagation();return}switch(ee.key){case" ":!H&&$.selectionMode==="none"&&!x&&o!==!1&&L&&L();break;case"Enter":!H&&o!==!1&&!x&&L&&L();break;default:x||ee.continuePropagation(),g==null||g(ee);break}},onKeyUp:m}),{focusProps:G}=El({onBlur:P,onFocus:C,onFocusChange:S}),te=pe(B==null?void 0:B.props);delete te.id;let ue=pl(B==null?void 0:B.props);return{menuItemProps:{...F,...re(te,ue,x?{onFocus:V.onFocus,"data-collection":V["data-collection"],"data-key":V["data-key"]}:V,W,J,se,G,A.shouldUseVirtualFocus||x?{onMouseDown:ee=>ee.preventDefault()}:void 0),tabIndex:V.tabIndex!=null&&E&&!A.shouldUseVirtualFocus?-1:V.tabIndex},labelProps:{id:k},descriptionProps:{id:Z},keyboardShortcutProps:{id:_},isFocused:z,isFocusVisible:z&&$.isFocused&&pn()&&!E,isSelected:w,isPressed:q,isDisabled:H}}function X5(t){let{heading:e,"aria-label":n}=t,r=Se();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}const ed=new WeakMap;function J5(t,e,n){let{keyboardDelegate:r,isDisabled:i,isRequired:o,name:l,validationBehavior:a="aria"}=t,s=Dl({usage:"search",sensitivity:"base"}),c=u.useMemo(()=>r||new kl(e.collection,e.disabledKeys,n,s),[r,e.collection,e.disabledKeys,s,n]),{menuTriggerProps:d,menuProps:f}=G5({isDisabled:i,type:"listbox"},e,n),h=N=>{switch(N.key){case"ArrowLeft":{var H,j;N.preventDefault();let B=e.selectedKey!=null?(H=c.getKeyAbove)===null||H===void 0?void 0:H.call(c,e.selectedKey):(j=c.getFirstKey)===null||j===void 0?void 0:j.call(c);B&&e.setSelectedKey(B);break}case"ArrowRight":{var w,A;N.preventDefault();let B=e.selectedKey!=null?(w=c.getKeyBelow)===null||w===void 0?void 0:w.call(c,e.selectedKey):(A=c.getFirstKey)===null||A===void 0?void 0:A.call(c);B&&e.setSelectedKey(B);break}}},{typeSelectProps:v}=f0({keyboardDelegate:c,selectionManager:e.selectionManager,onTypeSelect(N){e.setSelectedKey(N)}}),{isInvalid:y,validationErrors:p,validationDetails:g}=e.displayValidation,{labelProps:m,fieldProps:C,descriptionProps:S,errorMessageProps:P}=a5({...t,labelElementType:"span",isInvalid:y,errorMessage:t.errorMessage||p});v.onKeyDown=v.onKeyDownCapture,delete v.onKeyDownCapture;let $=pe(t,{labelable:!0}),x=re(v,d,C),E=Se();return ed.set(e,{isDisabled:i,isRequired:o,name:l,validationBehavior:a}),{labelProps:{...m,onClick:()=>{if(!t.isDisabled){var N;(N=n.current)===null||N===void 0||N.focus(),du("keyboard")}}},triggerProps:re($,{...x,isDisabled:i,onKeyDown:Dt(x.onKeyDown,h,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[E,x["aria-labelledby"],x["aria-label"]&&!x["aria-labelledby"]?x.id:null].filter(Boolean).join(" "),onFocus(N){e.isFocused||(t.onFocus&&t.onFocus(N),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(N){e.isOpen||(t.onBlur&&t.onBlur(N),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:E},menuProps:{...f,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:N=>{N.currentTarget.contains(N.relatedTarget)||(t.onBlur&&t.onBlur(N),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[C["aria-labelledby"],x["aria-label"]&&!C["aria-labelledby"]?x.id:null].filter(Boolean).join(" ")},descriptionProps:S,errorMessageProps:P,isInvalid:y,validationErrors:p,validationDetails:g}}function Q5(t,e,n){let r=ed.get(e)||{},{autoComplete:i,name:o=r.name,isDisabled:l=r.isDisabled}=t,{validationBehavior:a,isRequired:s}=r,{visuallyHiddenProps:c}=Du();R1(t.selectRef,e.selectedKey,e.setSelectedKey),r5({validationBehavior:a,focus:()=>{var f;return(f=n.current)===null||f===void 0?void 0:f.focus()}},e,t.selectRef);var d;return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:i,disabled:l,required:a==="native"&&s,name:o,value:(d=e.selectedKey)!==null&&d!==void 0?d:void 0,onChange:f=>e.setSelectedKey(f.target.value)}}}function ep(t){let{state:e,triggerRef:n,label:r,name:i,isDisabled:o}=t,l=u.useRef(null),{containerProps:a,selectProps:s}=Q5({...t,selectRef:l},e,n);var c;return e.collection.size<=300?u.createElement("div",{...a,"data-testid":"hidden-select-container"},u.createElement("label",null,r,u.createElement("select",{...s,ref:l},u.createElement("option",null),[...e.collection.getKeys()].map(d=>{let f=e.collection.getItem(d);if(f&&f.type==="item")return u.createElement("option",{key:f.key,value:f.key},f.textValue)})))):i?u.createElement("input",{type:"hidden",autoComplete:s.autoComplete,name:i,disabled:o,value:(c=e.selectedKey)!==null&&c!==void 0?c:""}):null}function tp(t){let e=pe(t,{labelable:!0}),n;return t.orientation==="vertical"&&(n="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":n}}:{separatorProps:e}}const td=new WeakMap;function Wr(t,e,n){return t?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${td.get(t)}-${n}-${e}`):""}function np(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:a}=e,s=r===a,c=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:d,isPressed:f}=Ol({selectionManager:l,key:r,ref:n,isDisabled:c,shouldSelectOnPressUp:o,linkBehavior:"selection"}),h=Wr(e,r,"tab"),v=Wr(e,r,"tabpanel"),{tabIndex:y}=d,p=e.collection.getItem(r),g=pe(p==null?void 0:p.props,{labelable:!0});delete g.id;let m=pl(p==null?void 0:p.props),{focusableProps:C}=hu({isDisabled:c},n);return{tabProps:re(g,C,m,d,{id:h,"aria-selected":s,"aria-disabled":c||void 0,"aria-controls":s?v:void 0,tabIndex:c?void 0:y,role:"tab"}),isSelected:s,isDisabled:c,isPressed:f}}function rp(t,e,n){let r=Gh(n)?void 0:0;var i;const o=Wr(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=ai({...t,id:o,"aria-labelledby":Wr(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:re(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class ip{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var n,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let n=e;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n));return n}getPreviousKey(e){let n=e;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n));return n}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function op(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:a}=e,{direction:s}=Ft(),c=u.useMemo(()=>new ip(o,s,r,a),[o,a,r,s]),{collectionProps:d}=h0({ref:n,selectionManager:l,keyboardDelegate:c,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Se();td.set(e,f);let h=ai({...t,id:f});return{tabListProps:{...re(d,h),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const nd=u.createContext({}),lp=Cl(function(e,n){[e,n]=nt(e,n,nd);let{elementType:r="label",...i}=e;return u.createElement(r,{className:"react-aria-Label",...i,ref:n})}),ap=u.createContext(null),sp=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),rd=u.createContext({}),cp=Cl(function(e,n){[e,n]=nt(e,n,rd),e=up(e);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=Kh(e,n),{focusProps:a,isFocused:s,isFocusVisible:c}=Sn(e),{hoverProps:d,isHovered:f}=Cn({...e,isDisabled:e.isDisabled||i}),h={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:i??!1},v=De({...e,values:h,defaultClassName:"react-aria-Button"}),y=Se(o.id),p=Se(),g=o["aria-labelledby"];i&&(g?g=`${g} ${p}`:o["aria-label"]&&(g=`${y} ${p}`));let m=u.useRef(i);return u.useEffect(()=>{let C={"aria-labelledby":g||y};(!m.current&&s&&i||m.current&&s&&!i)&&Fa(C,"assertive"),m.current=i},[i,s,g,y]),u.createElement("button",{...pe(e,{propNames:sp}),...re(o,a,d),...v,type:o.type==="submit"&&i?"button":o.type,id:y,ref:n,"aria-labelledby":g,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":h.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":c||void 0},u.createElement(ap.Provider,{value:{id:p}},v.children))});function up(t){return t.isPending&&(t.onPress=void 0,t.onPressStart=void 0,t.onPressEnd=void 0,t.onPressChange=void 0,t.onPressUp=void 0,t.onKeyDown=void 0,t.onKeyUp=void 0,t.onClick=void 0,t.href=void 0),t}const Nl=u.createContext({}),dp=u.createContext(null);class rs{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let a of l.childNodes)n(a)};for(let l of e)n(l);let r=null,i=0;for(let[l,a]of this.keyMap)r?(r.nextKey=l,a.prevKey=r.key):(this.firstKey=l,a.prevKey=void 0),a.type==="item"&&(a.index=i++),r=a,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class je extends Set{constructor(e,n,r){super(e),e instanceof je?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function fp(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Rl(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=u.useRef(!1),[,a]=u.useState(!1),s=u.useRef(null),c=u.useRef(null),[,d]=u.useState(null),f=u.useMemo(()=>is(t.selectedKeys),[t.selectedKeys]),h=u.useMemo(()=>is(t.defaultSelectedKeys,new je),[t.defaultSelectedKeys]),[v,y]=si(f,h,t.onSelectionChange),p=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[g,m]=u.useState(i);i==="replace"&&g==="toggle"&&typeof v=="object"&&v.size===0&&m("replace");let C=u.useRef(i);return u.useEffect(()=>{i!==C.current&&(m(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:g,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(S){l.current=S,a(S)},get focusedKey(){return s.current},get childFocusStrategy(){return c.current},setFocusedKey(S,P="first"){s.current=S,c.current=P,d(S)},selectedKeys:v,setSelectedKeys(S){(r||!fp(S,v))&&y(S)},disabledKeys:p,disabledBehavior:o}}function is(t,e){return t?t==="all"?"all":new je(t):e}class er{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}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 e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Gi(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Gi(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new je([n],n,n);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new je(l,a,n);var o;for(let s of this.getKeyRange(a,(o=l.currentKey)!==null&&o!==void 0?o:n))r.delete(s);for(let s of this.getKeyRange(n,a))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?Gi(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new je(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new je([n],n,n):new je;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new je;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((o=(i=z5(g0(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),e}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 je)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}withCollection(e){return new er(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function id(t){let{filter:e,layoutDelegate:n}=t,r=Rl(t),i=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=u.useCallback(c=>e?new rs(e(c)):new rs(c),[e]),l=u.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=v0(t,o,l),s=u.useMemo(()=>new er(a,r,{layoutDelegate:n}),[a,r,n]);return od(a,s),{collection:a,disabledKeys:i,selectionManager:s}}function hp(t,e){let n=u.useMemo(()=>e?t.collection.UNSTABLE_filter(e):t.collection,[t.collection,e]),r=t.selectionManager.withCollection(n);return od(n,r),{collection:n,selectionManager:r,disabledKeys:t.disabledKeys}}function od(t,e){const n=u.useRef(null);u.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const d=n.current.getItem(e.focusedKey),f=[...n.current.getKeys()].map(m=>{const C=n.current.getItem(m);return(C==null?void 0:C.type)==="item"?C:null}).filter(m=>m!==null),h=[...t.getKeys()].map(m=>{const C=t.getItem(m);return(C==null?void 0:C.type)==="item"?C:null}).filter(m=>m!==null);var r,i;const v=((r=f==null?void 0:f.length)!==null&&r!==void 0?r:0)-((i=h==null?void 0:h.length)!==null&&i!==void 0?i:0);var o,l,a;let y=Math.min(v>1?Math.max(((o=d==null?void 0:d.index)!==null&&o!==void 0?o:0)-v+1,0):(l=d==null?void 0:d.index)!==null&&l!==void 0?l:0,((a=h==null?void 0:h.length)!==null&&a!==void 0?a:0)-1),p=null,g=!1;for(;y>=0;){if(!e.isDisabled(h[y].key)){p=h[y];break}if(y<h.length-1&&!g)y++;else{g=!0;var s,c;y>((s=d==null?void 0:d.index)!==null&&s!==void 0?s:0)&&(y=(c=d==null?void 0:d.index)!==null&&c!==void 0?c:0),y--}}e.setFocusedKey(p?p.key:null)}n.current=t},[t,e])}function ld(t){var e;let[n,r]=si(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=u.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:a}=id({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:c=>{if(c==="all")return;var d;let f=(d=c.values().next().value)!==null&&d!==void 0?d:null;f===n&&t.onSelectionChange&&t.onSelectionChange(f),r(f)}}),s=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:l,selectionManager:a,selectedKey:n,setSelectedKey:r,selectedItem:s}}function Ml(t){let[e,n]=si(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=u.useCallback(()=>{n(!0)},[n]),i=u.useCallback(()=>{n(!1)},[n]),o=u.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}function pp(t){let{initialItems:e=[],initialSelectedKeys:n,getKey:r=p=>{var g;return(g=p.id)!==null&&g!==void 0?g:p.key},getChildren:i=p=>p.children}=t,[o,l]=u.useState(()=>f(e,new Map)),{items:a,nodeMap:s}=o,[c,d]=u.useState(new Set(n||[]));function f(p=[],g,m){return p==null&&(p=[]),{items:p.map(C=>{let S={key:r(C),parentKey:m??null,value:C,children:null};return S.children=f(i(C),g,S.key).items,g.set(S.key,S),S}),nodeMap:g}}function h(p,g,m,C){let S=g==null?null:C.get(g);if(S==null)return{items:p,nodeMap:C};let P=new Map(C),$=m(S);for($==null?y(S,P):v($,P);S&&S.parentKey;){let E=P.get(S.parentKey),N={key:E.key,parentKey:E.parentKey,value:E.value,children:null},H=E.children;$==null&&H&&(H=H.filter(j=>j!==S));var x;N.children=(x=H==null?void 0:H.map(j=>j===S?$:j))!==null&&x!==void 0?x:null,P.set(N.key,N),$=N,S=E}return $==null&&(p=p.filter(E=>E!==S)),{items:p.map(E=>E===S?$:E),nodeMap:P}}function v(p,g){if(g.set(p.key,p),p.children)for(let m of p.children)v(m,g)}function y(p,g){if(g.delete(p.key),p.children)for(let m of p.children)y(m,g)}return{items:a,selectedKeys:c,setSelectedKeys:d,getItem(p){return s.get(p)},insert(p,g,...m){l(({items:C,nodeMap:S})=>{let{items:P,nodeMap:$}=f(m,S,p);return p==null?{items:[...C.slice(0,g),...P,...C.slice(g)],nodeMap:$}:h(C,p,x=>({key:x.key,parentKey:x.parentKey,value:x.value,children:[...x.children.slice(0,g),...P,...x.children.slice(g)]}),$)})},insertBefore(p,...g){let m=s.get(p);if(!m)return;let C=s.get(m.parentKey),P=(C?C.children:a).indexOf(m);var $;this.insert(($=C==null?void 0:C.key)!==null&&$!==void 0?$:null,P,...g)},insertAfter(p,...g){let m=s.get(p);if(!m)return;let C=s.get(m.parentKey),P=(C?C.children:a).indexOf(m);var $;this.insert(($=C==null?void 0:C.key)!==null&&$!==void 0?$:null,P+1,...g)},prepend(p,...g){this.insert(p,0,...g)},append(p,...g){if(p==null)this.insert(null,a.length,...g);else{let m=s.get(p);if(!m)return;this.insert(p,m.children.length,...g)}},remove(...p){if(p.length===0)return;let g=a,m=s,C;for(let P of p)C=h(g,P,()=>null,m),m=C.nodeMap,g=C.items;l(C);let S=new Set(c);for(let P of c)C.nodeMap.has(P)||S.delete(P);d(S)},removeSelectedItems(){this.remove(...c)},move(p,g,m){l(({items:C,nodeMap:S})=>{let P=S.get(p);if(!P)return{items:C,nodeMap:S};let{items:$,nodeMap:x}=h(C,p,()=>null,S);const E={...P,parentKey:g};return g==null?(v(E,x),{items:[...$.slice(0,m),E,...$.slice(m)],nodeMap:x}):h($,g,N=>({key:N.key,parentKey:N.parentKey,value:N.value,children:[...N.children.slice(0,m),E,...N.children.slice(m)]}),x)})},moveBefore(p,g){l(m=>{let{items:C,nodeMap:S}=m,P=S.get(p);if(!P)return m;var $;let x=($=P.parentKey)!==null&&$!==void 0?$:null,E=null;var N;x!=null&&(E=(N=S.get(x))!==null&&N!==void 0?N:null);let H=E!=null&&E.children?E.children.indexOf(P):C.indexOf(P);return os(m,g,E,H,h,v)})},moveAfter(p,g){l(m=>{let{items:C,nodeMap:S}=m,P=S.get(p);if(!P)return m;var $;let x=($=P.parentKey)!==null&&$!==void 0?$:null,E=null;var N;x!=null&&(E=(N=S.get(x))!==null&&N!==void 0?N:null);let H=E!=null&&E.children?E.children.indexOf(P):C.indexOf(P);return H++,os(m,g,E,H,h,v)})},update(p,g){l(({items:m,nodeMap:C})=>h(m,p,S=>{let P={key:S.key,parentKey:S.parentKey,value:g,children:null},$=f(i(g),C,P.key);return P.children=$.items,P},C))}}}function os(t,e,n,r,i,o){let{items:l,nodeMap:a}=t,s=n,c=new Set(e);for(;(s==null?void 0:s.parentKey)!=null;){if(c.has(s.key))throw new Error("Cannot move an item to be a child of itself.");var d;s=(d=a.get(s.parentKey))!==null&&d!==void 0?d:null}let f=r,h=Array.isArray(e)?e:[...e],v=new Map,y=[],p=l,g=a,m=0;function C(x,{inorder:E,postorder:N}){E==null||E(x);var H;if(x!=null)for(let j of(H=x.children)!==null&&H!==void 0?H:[])C(j,{inorder:E,postorder:N}),N==null||N(j)}function S(x){h.includes(x.key)&&v.set(x.key,m++)}function P(x){if(h.includes(x.key)){var E;y.push({...g.get(x.key),parentKey:(E=n==null?void 0:n.key)!==null&&E!==void 0?E:null});let{items:N,nodeMap:H}=i(p,x.key,()=>null,g);p=N,g=H}x.parentKey===(n==null?void 0:n.key)&&h.includes(x.key)&&(n!=null&&n.children?n.children.indexOf(x):l.indexOf(x))<f&&r--}C({children:l},{inorder:S,postorder:P});let $=y.sort((x,E)=>v.get(x.key)>v.get(E.key)?1:-1);return!n||n.key==null?($.forEach(x=>{o(x,g)}),{items:[...p.slice(0,r),...$,...p.slice(r)],nodeMap:g}):i(p,n.key,x=>({key:x.key,parentKey:x.parentKey,value:x.value,children:[...x.children.slice(0,r),...$,...x.children.slice(r)]}),g)}function vp(t){let e=Ml(t),[n,r]=u.useState(null),[i,o]=u.useState([]),l=()=>{o([]),e.close()};return{focusStrategy:n,...e,open(c=null){r(c),e.open()},toggle(c=null){r(c),e.toggle()},close(){l()},expandedKeysStack:i,openSubmenu:(c,d)=>{o(f=>d>f.length?f:[...f.slice(0,d),c])},closeSubmenu:(c,d)=>{o(f=>f[d]===c?f.slice(0,d):f)}}}function gp(t){let e=Ml(t),[n,r]=u.useState(null),i=ld({...t,onSelectionChange:c=>{t.onSelectionChange!=null&&t.onSelectionChange(c),e.close(),o.commitValidation()}}),o=e5({...t,value:i.selectedKey}),[l,a]=u.useState(!1),s=u.useMemo(()=>{var c;return i.collection.size===0||i.collection.size===1&&((c=i.collection.getItem(i.collection.getFirstKey()))===null||c===void 0?void 0:c.type)==="loader"},[i.collection]);return{...o,...i,...e,focusStrategy:n,open(c=null){s||(r(c),e.open())},toggle(c=null){s||(r(c),e.toggle())},isFocused:l,setFocused:a}}function mp(t){var e,n;let r=ld({...t,onSelectionChange:t.onSelectionChange?s=>{var c;s!=null&&((c=t.onSelectionChange)===null||c===void 0||c.call(t,s))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:ls(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&n!==void 0?n:void 0}),{selectionManager:i,collection:o,selectedKey:l}=r,a=u.useRef(l);return u.useEffect(()=>{let s=l;t.selectedKey==null&&(i.isEmpty||s==null||!o.getItem(s))&&(s=ls(o,r.disabledKeys),s!=null&&i.setSelectedKeys([s])),(s!=null&&i.focusedKey==null||!i.isFocused&&s!==a.current)&&i.setFocusedKey(s),a.current=s}),{...r,isDisabled:t.isDisabled||!1}}function ls(t,e){let n=null;if(t){var r,i,o,l;for(n=t.getFirstKey();n!=null&&(e.has(n)||!((i=t.getItem(n))===null||i===void 0||(r=i.props)===null||r===void 0)&&r.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||!((l=t.getItem(n))===null||l===void 0||(o=l.props)===null||o===void 0)&&o.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}class yp{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}constructor(e,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,n=n||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||n.has(a.key)))for(let s of a.childNodes)r(s)};for(let a of e)r(a);let i=null,o=0;for(let[a,s]of this.keyMap)i?(i.nextKey=a,s.prevKey=i.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=o++),i=s,i.nextKey=void 0;var l;this.lastKey=(l=i==null?void 0:i.key)!==null&&l!==void 0?l:null}}function bp(t){let{onExpandedChange:e}=t,[n,r]=si(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=Rl(t),o=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=v0(t,u.useCallback(s=>new yp(s,{expandedKeys:n}),[n]),null);return u.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:o,toggleKey:s=>{r(Cp(n,s))},setExpandedKeys:r,selectionManager:new er(l,i)}}function Cp(t,e){let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}const Sp=u.createContext(null),Vo=u.createContext(null),ad=u.createContext(null),sd={CollectionRoot({collection:t,renderDropIndicator:e}){return as(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return as(t,e,n)}};function as(t,e,n){return nu({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){var i;let o=r.render(r);if(!n||r.type!=="item")return o;let l=r.key,a=t.getKeyAfter(l);return u.createElement(u.Fragment,null,n({type:"item",key:l,dropPosition:"before"}),o,(a==null||((i=t.getItem(a))===null||i===void 0?void 0:i.type)!=="item")&&n({type:"item",key:l,dropPosition:"after"}))}})}const Kt=u.createContext(sd);function cd(t){return u.useMemo(()=>t!=null?new Set([t]):null,[t])}const gi=u.createContext({}),ud=u.createContext(null),wp=u.forwardRef(function(e,n){let{render:r}=u.useContext(ud);return u.createElement(u.Fragment,null,r(e,n))});function dd(t,e){var n;let r=t==null?void 0:t.renderDropIndicator,i=t==null||(n=t.isVirtualDragging)===null||n===void 0?void 0:n.call(t),o=u.useCallback(l=>{if(i||e!=null&&e.isDropTarget(l))return r?r(l):u.createElement(wp,{target:l})},[e==null?void 0:e.target,i,r]);return t!=null&&t.useDropIndicator?o:void 0}function xp(t,e,n){var r,i;let o=t.focusedKey,l=null;if(!(e==null||(r=e.isVirtualDragging)===null||r===void 0)&&r.call(e)&&(n==null||(i=n.target)===null||i===void 0?void 0:i.type)==="item"){l=n.target.key;var a;n.target.dropPosition==="after"&&(l=(a=n.collection.getKeyAfter(l))!==null&&a!==void 0?a:l)}return u.useMemo(()=>new Set([o,l].filter(s=>s!=null)),[o,l])}const fd=u.createContext({}),Ll=u.createContext({}),hd=pi("separator",function(e,n){[e,n]=nt(e,n,Ll);let{elementType:r,orientation:i,style:o,className:l,slot:a,...s}=e,c=r||"hr";c==="hr"&&i==="vertical"&&(c="div");let{separatorProps:d}=tp({...s,elementType:r,orientation:i});return u.createElement(c,{...pe(e),...d,style:o,className:l??"react-aria-Separator",ref:n,slot:a||void 0})}),Al=u.createContext(null),tr=u.createContext(null),Ep=u.forwardRef(function(e,n){[e,n]=nt(e,n,Al);let r=u.useContext(tr);return r?u.createElement(pd,{state:r,props:e,listBoxRef:n}):u.createElement(hi,{content:u.createElement(Pl,e)},i=>u.createElement($p,{props:e,listBoxRef:n,collection:i}))});function $p({props:t,listBoxRef:e,collection:n}){t={...t,collection:n,children:null,items:null};let{layoutDelegate:r}=u.useContext(Kt),i=id({...t,layoutDelegate:r});return u.createElement(pd,{state:i,props:t,listBoxRef:e})}function pd({state:t,props:e,listBoxRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=u.useContext(Vo)||{};e=u.useMemo(()=>i?{...e,...i}:e,[e,i]);let{dragAndDropHooks:l,layout:a="stack",orientation:s="vertical"}=e;n=tt(u.useMemo(()=>ul(n,o!==void 0?o:null),[o,n]));let c=hp(t,r),{collection:d,selectionManager:f}=c,h=!!(l!=null&&l.useDraggableCollectionState),v=!!(l!=null&&l.useDroppableCollectionState),{direction:y}=Ft(),{disabledBehavior:p,disabledKeys:g}=f,m=Dl({usage:"search",sensitivity:"base"}),{isVirtualized:C,layoutDelegate:S,dropTargetDelegate:P,CollectionRoot:$}=u.useContext(Kt),x=u.useMemo(()=>e.keyboardDelegate||new kl({collection:d,collator:m,ref:n,disabledKeys:g,disabledBehavior:p,layout:a,orientation:s,direction:y,layoutDelegate:S}),[d,m,n,p,g,s,y,e.keyboardDelegate,a,S]),{listBoxProps:E}=j5({...e,shouldSelectOnPressUp:h||e.shouldSelectOnPressUp,keyboardDelegate:x,isVirtualized:C},c,n),N=u.useRef(h),H=u.useRef(v);u.useEffect(()=>{process.env.NODE_ENV!=="production"&&(N.current!==h&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),H.current!==v&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[h,v]);let j,w,A,B=!1,L=null,U=u.useRef(null);if(h&&l){j=l.useDraggableCollectionState({collection:d,selectionManager:f,preview:l.renderDragPreview?U:void 0}),l.useDraggableCollection({},j,n);let T=l.DragPreview;L=l.renderDragPreview?u.createElement(T,{ref:U},l.renderDragPreview):null}if(v&&l){w=l.useDroppableCollectionState({collection:d,selectionManager:f});let T=l.dropTargetDelegate||P||new l.ListDropTargetDelegate(d,n,{orientation:s,layout:a,direction:y});A=l.useDroppableCollection({keyboardDelegate:x,dropTargetDelegate:T},w,n),B=w.isDropTarget({type:"root"})}let{focusProps:I,isFocused:R,isFocusVisible:k}=Sn(),Z={isDropTarget:B,isEmpty:c.collection.size===0,isFocused:R,isFocusVisible:k,layout:e.layout||"stack",state:c},_=De({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:Z}),F=null;return c.collection.size===0&&e.renderEmptyState&&(F=u.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(Z))),u.createElement(Tl,null,u.createElement("div",{...pe(e),...re(E,I,A==null?void 0:A.collectionProps),..._,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":B||void 0,"data-empty":c.collection.size===0||void 0,"data-focused":R||void 0,"data-focus-visible":k||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},u.createElement(pt,{values:[[Al,e],[tr,c],[gi,{dragAndDropHooks:l,dragState:j,dropState:w}],[Ll,{elementType:"div"}],[ud,{render:Tp}],[ad,{name:"ListBoxSection",render:Pp}]]},u.createElement($,{collection:d,scrollRef:n,persistedKeys:xp(f,l,w),renderDropIndicator:dd(l,w)})),F,L))}function Pp(t,e,n,r="react-aria-ListBoxSection"){let i=u.useContext(tr),{dragAndDropHooks:o,dropState:l}=u.useContext(gi),{CollectionBranch:a}=u.useContext(Kt),[s,c]=ml();var d;let{headingProps:f,groupProps:h}=W5({heading:c,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),v=De({defaultClassName:r,className:t.className,style:t.style,values:{}});return u.createElement("section",{...pe(t),...h,...v,ref:e},u.createElement(fd.Provider,{value:{...f,ref:s}},u.createElement(a,{collection:i.collection,parent:n,renderDropIndicator:dd(o,l)})))}const Dp=pi("item",function(e,n,r){let i=tt(n),o=u.useContext(tr),{dragAndDropHooks:l,dragState:a,dropState:s}=u.useContext(gi),{optionProps:c,labelProps:d,descriptionProps:f,...h}=U5({key:r.key,"aria-label":e==null?void 0:e["aria-label"]},o,i),{hoverProps:v,isHovered:y}=Cn({isDisabled:!h.allowsSelection&&!h.hasAction,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),p=null;a&&l&&(p=l.useDraggableItem({key:r.key},a));let g=null;s&&l&&(g=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,i));let m=a&&a.isDragging(r.key),C=De({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...h,isHovered:y,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:m,isDropTarget:g==null?void 0:g.isDropTarget}});u.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&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.")},[r.textValue]);let S=e.href?"a":"div";return u.createElement(S,{...re(c,v,p==null?void 0:p.dragProps,g==null?void 0:g.dropProps),...C,ref:i,"data-allows-dragging":!!a||void 0,"data-selected":h.isSelected||void 0,"data-disabled":h.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-dragging":m||void 0,"data-drop-target":(g==null?void 0:g.isDropTarget)||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},u.createElement(pt,{values:[[Nl,{slots:{[gl]:d,label:d,description:f}}]]},C.children))});function Tp(t,e){e=tt(e);let{dragAndDropHooks:n,dropState:r}=u.useContext(gi),{dropIndicatorProps:i,isHidden:o,isDropTarget:l}=n.useDropIndicator(t,r,e);return o?null:u.createElement(Ip,{...t,dropIndicatorProps:i,isDropTarget:l,ref:e})}function _p(t,e){let{dropIndicatorProps:n,isDropTarget:r,...i}=t,o=De({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return u.createElement("div",{...n,...o,role:"option",ref:e,"data-drop-target":r||void 0})}const Ip=u.forwardRef(_p),Op=u.createContext({placement:"bottom"}),vd=u.createContext(null),ss=u.createContext(null),gd=u.forwardRef(function(e,n){[e,n]=nt(e,n,vd);let r=u.useContext(md),i=Ml(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,l=K1(n,o.isOpen)||e.isExiting||!1,a=W1(),{direction:s}=Ft();if(a){let c=e.children;return typeof c=="function"&&(c=c({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),u.createElement(u.Fragment,null,c)}return o&&!o.isOpen&&!l?null:u.createElement(kp,{...e,triggerRef:e.triggerRef,state:o,popoverRef:n,isExiting:l,dir:s})});function kp({state:t,isExiting:e,UNSTABLE_portalContainer:n,...r}){let i=u.useRef(null),[o,l]=u.useState(0),a=u.useRef(null),s=u.useContext(ss),c=s&&r.trigger==="SubmenuTrigger";ne(()=>{i.current&&t.isOpen&&l(i.current.getBoundingClientRect().width)},[t.isOpen,i]);var d;let{popoverProps:f,underlayProps:h,arrowProps:v,placement:y}=k5({...r,offset:(d=r.offset)!==null&&d!==void 0?d:8,arrowSize:o,groupRef:c?s:a},t),p=r.popoverRef,g=F1(p,!!y)||r.isEntering||!1,m=De({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:y,isEntering:g,isExiting:e}}),C=!r.isNonModal||r.trigger==="SubmenuTrigger",[S,P]=u.useState(!1);ne(()=>{p.current&&P(C&&!p.current.querySelector("[role=dialog]"))},[p,C]),u.useEffect(()=>{S&&p.current&&!p.current.contains(document.activeElement)&&vn(p.current)},[S,p]);let $={...f.style,...m.style},x=u.createElement("div",{...re(pe(r),f),...m,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"],ref:p,slot:r.slot||void 0,style:$,dir:r.dir,"data-trigger":r.trigger,"data-placement":y,"data-entering":g||void 0,"data-exiting":e||void 0},!r.isNonModal&&u.createElement(qa,{onDismiss:t.close}),u.createElement(Op.Provider,{value:{...v,placement:y,ref:i}},m.children),u.createElement(qa,{onDismiss:t.close}));if(!c)return u.createElement(Ya,{...r,shouldContainFocus:S,isExiting:e,portalContainer:n},!r.isNonModal&&t.isOpen&&u.createElement("div",{"data-testid":"underlay",...h,style:{position:"fixed",inset:0}}),u.createElement("div",{ref:a,style:{display:"contents"}},u.createElement(ss.Provider,{value:a},x)));var E;return u.createElement(Ya,{...r,shouldContainFocus:S,isExiting:e,portalContainer:(E=n??(s==null?void 0:s.current))!==null&&E!==void 0?E:void 0},x)}const Np=u.createContext({}),Rp=u.createContext(null),Fl=u.createContext(null),cs=u.createContext(null),Zr=u.createContext(null),Mp=u.createContext(null),Lp=u.forwardRef(function(e,n){return[e,n]=nt(e,n,Rp),u.createElement(hi,{content:u.createElement(Pl,e)},r=>u.createElement(Ap,{props:e,collection:r,menuRef:n}))});function Ap({props:t,collection:e,menuRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=u.useContext(Vo)||{};n=tt(u.useMemo(()=>ul(n,o!==void 0?o:null),[o,n]));let l=u.useMemo(()=>r?e.UNSTABLE_filter(r):e,[e,r]),a=bp({...t,collection:l,children:void 0}),s=u.useContext(cs),{isVirtualized:c,CollectionRoot:d}=u.useContext(Kt),{menuProps:f}=q5({...t,...i,isVirtualized:c,onClose:t.onClose||(s==null?void 0:s.close)},a,n),h=De({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{isEmpty:a.collection.size===0}}),v=null;return a.collection.size===0&&t.renderEmptyState&&(v=u.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState())),u.createElement(Tl,null,u.createElement("div",{...pe(t),...f,...h,ref:n,slot:t.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:t.onScroll},u.createElement(pt,{values:[[Fl,a],[Ll,{elementType:"div"}],[ad,{name:"MenuSection",render:Kp}],[Mp,{parentMenuRef:n,shouldUseVirtualFocus:i==null?void 0:i.shouldUseVirtualFocus}],[zo,null],[Vo,null],[Zr,a.selectionManager],[cs,s??vp({})]]},u.createElement(d,{collection:a.collection,persistedKeys:cd(a.selectionManager.focusedKey),scrollRef:n})),v))}class Fp extends er{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,n){return this.parent.setFocusedKey(e,n)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,n){super(e.collection,n),this.parent=e}}function Kp(t,e,n,r="react-aria-MenuSection"){var i,o;let l=u.useContext(Fl),{CollectionBranch:a}=u.useContext(Kt),[s,c]=ml();var d;let{headingProps:f,groupProps:h}=X5({heading:c,"aria-label":(d=n.props["aria-label"])!==null&&d!==void 0?d:void 0}),v=De({defaultClassName:r,className:(i=n.props)===null||i===void 0?void 0:i.className,style:(o=n.props)===null||o===void 0?void 0:o.style,values:{}}),y=u.useContext(Zr),p=Rl(t),g=t.selectionMode!=null?new Fp(y,p):y;return u.createElement("section",{...pe(t),...h,...v,ref:e},u.createElement(pt,{values:[[fd,{...f,ref:s}],[Zr,g]]},u.createElement(a,{collection:l.collection,parent:n})))}const zo=u.createContext(null),us=pi("item",function(e,n,r){var i;[e,n]=nt(e,n,zo);let o=(i=ci(zo))===null||i===void 0?void 0:i.id,l=u.useContext(Fl),a=tt(n),s=u.useContext(Zr),{menuItemProps:c,labelProps:d,descriptionProps:f,keyboardShortcutProps:h,...v}=Y5({...e,id:o,key:r.key,selectionManager:s},l,a),{hoverProps:y,isHovered:p}=Cn({isDisabled:v.isDisabled}),g=De({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...v,isHovered:p,isFocusVisible:v.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),m=e.href?"a":"div";return u.createElement(m,{...re(c,y),...g,ref:a,"data-disabled":v.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":v.isFocused||void 0,"data-focus-visible":v.isFocusVisible||void 0,"data-pressed":v.isPressed||void 0,"data-selected":v.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},u.createElement(pt,{values:[[Nl,{slots:{[gl]:d,label:d,description:f}}],[Np,h]]},g.children))}),md=u.createContext(null),yd=u.createContext(null),bd=u.createContext(null),jp=u.forwardRef(function(e,n){[e,n]=nt(e,n,yd);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:l=!1}=e,a=u.useMemo(()=>typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:o,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,i,o,l]);return u.createElement(hi,{content:a},s=>u.createElement(Hp,{props:e,collection:s,selectRef:n}))});function Hp({props:t,selectRef:e,collection:n}){let{validationBehavior:r}=ci(Sp)||{};var i,o;let l=(o=(i=t.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",a=gp({...t,collection:n,children:void 0,validationBehavior:l}),{isFocusVisible:s,focusProps:c}=Sn({within:!0}),d=u.useRef(null),[f,h]=ml(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:v,triggerProps:y,valueProps:p,menuProps:g,descriptionProps:m,errorMessageProps:C,...S}=J5({...z1(t),label:h,validationBehavior:l},a,d),[P,$]=u.useState(null),x=u.useCallback(()=>{d.current&&$(d.current.offsetWidth+"px")},[d]);$o({ref:d,onResize:x});let E=u.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:s,isDisabled:t.isDisabled||!1,isInvalid:S.isInvalid||!1,isRequired:t.isRequired||!1}),[a.isOpen,a.isFocused,s,t.isDisabled,S.isInvalid,t.isRequired]),N=De({...t,values:E,defaultClassName:"react-aria-Select"}),H=pe(t);delete H.id;let j=u.useRef(null);return u.createElement(pt,{values:[[yd,t],[bd,a],[Vp,p],[nd,{...v,ref:f,elementType:"span"}],[rd,{...y,ref:d,isPressed:a.isOpen}],[md,a],[vd,{trigger:"Select",triggerRef:d,scrollRef:j,placement:"bottom start",style:{"--trigger-width":P},"aria-labelledby":g["aria-labelledby"]}],[Al,{...g,ref:j}],[tr,a],[Nl,{slots:{description:m,errorMessage:C}}],[dp,S]]},u.createElement("div",{...H,...N,...c,ref:e,slot:t.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":s||void 0,"data-open":a.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":S.isInvalid||void 0,"data-required":t.isRequired||void 0}),u.createElement(ep,{autoComplete:t.autoComplete,state:a,triggerRef:d,label:h,name:t.name,isDisabled:t.isDisabled}))}const Vp=u.createContext(null),mi=u.createContext(null),gn=u.createContext(null),zp=u.forwardRef(function(e,n){[e,n]=nt(e,n,mi);let{children:r,orientation:i="horizontal"}=e;return r=u.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),u.createElement(hi,{content:r},o=>u.createElement(Bp,{props:e,collection:o,tabsRef:n}))});function Bp({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=mp({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:a}=Sn({within:!0}),s=u.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:a}),[r,l,a]),c=De({...t,defaultClassName:"react-aria-Tabs",values:s});return u.createElement("div",{...pe(t),...o,...c,ref:e,slot:t.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":a||void 0,"data-disabled":i.isDisabled||void 0},u.createElement(pt,{values:[[mi,t],[gn,i]]},c.children))}const Up=u.forwardRef(function(e,n){return u.useContext(gn)?u.createElement(Wp,{props:e,forwardedRef:n}):u.createElement(Pl,e)});function Wp({props:t,forwardedRef:e}){let n=u.useContext(gn),{CollectionRoot:r}=u.useContext(Kt),{orientation:i="horizontal",keyboardActivation:o="automatic"}=ci(mi),l=tt(e),{tabListProps:a}=op({...t,orientation:i,keyboardActivation:o},n,l),s=De({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),c=pe(t);return delete c.id,u.createElement("div",{...c,...a,ref:l,...s,"data-orientation":i||void 0},u.createElement(r,{collection:n.collection,persistedKeys:cd(n.selectionManager.focusedKey)}))}const Zp=pi("item",(t,e,n)=>{let r=u.useContext(gn),i=tt(e),{tabProps:o,isSelected:l,isDisabled:a,isPressed:s}=np({key:n.key,...t},r,i),{focusProps:c,isFocused:d,isFocusVisible:f}=Sn(),{hoverProps:h,isHovered:v}=Cn({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),y=De({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:a,isFocused:d,isFocusVisible:f,isPressed:s,isHovered:v}}),p=n.props.href?"a":"div";return u.createElement(p,{...re(o,c,h,y),ref:i,"data-selected":l||void 0,"data-disabled":a||void 0,"data-focused":d||void 0,"data-focus-visible":f||void 0,"data-pressed":s||void 0,"data-hovered":v||void 0},y.children)}),Gp=Cl(function(e,n){const r=u.useContext(gn);let i=tt(n),{tabPanelProps:o}=rp(e,r,i),{focusProps:l,isFocused:a,isFocusVisible:s}=Sn(),c=r.selectedKey===e.id,d=De({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!c,state:r}});if(!c&&!e.shouldForceMount)return null;let f=pe(e);delete f.id;let h=c?re(f,o,l,d):d;return u.createElement("div",{...h,ref:i,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:M1(!c),"data-inert":c?void 0:"true"},u.createElement(pt,{values:[[mi,null],[gn,null]]},u.createElement(Kt.Provider,{value:sd},d.children)))}),It=({options:t,isOpen:e=!1,onOpenChange:n,children:r,selectedValues:i=[],onSelectValue:o,topMessage:l,shouldCloseOnInteractOutside:a})=>{const s=u.useId(),c=f=>{n==null||n(f)},d=u.useRef(null);return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"c__dropdown-menu-trigger",ref:d,id:s,onClick:f=>{f.stopPropagation(),f.preventDefault()},children:r}),b.jsx(gd,{triggerRef:d,style:{marginTop:"0px"},isOpen:e,shouldCloseOnInteractOutside:a,onOpenChange:c,children:b.jsxs(Lp,{className:"c__dropdown-menu","aria-labelledby":s,children:[l&&b.jsx(us,{className:"c__dropdown-menu-item-top-message",children:l}),t.map(f=>f.isHidden?null:b.jsxs(u.Fragment,{children:[b.jsxs(us,{className:"c__dropdown-menu-item","aria-label":f.label,onAction:()=>{var h;f.value&&(o==null||o(f.value)),(h=f.callback)==null||h.call(f),c(!1)},isDisabled:f.isDisabled,children:[f.icon,b.jsx("div",{className:"c__dropdown-menu-item__label","aria-label":f.label,children:f.label}),(f.isChecked||f.value&&i.includes(f.value))&&b.jsx("span",{className:"material-icons checked",children:"check"})]},f.label),f.showSeparator&&b.jsx(hd,{})]},f.label))]})})]})},ht=()=>{const[t,e]=u.useState(!1);return{isOpen:t,setIsOpen:e}},ds="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M10%206v2H5v11h11v-5h2v6a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V7a1%201%200%200%201%201-1h6Zm11-3v8h-2V6.413l-7.793%207.794-1.414-1.414L17.585%205H13V3h8Z'%20/%3e%3c/svg%3e",qp="data:image/svg+xml,%3csvg%20width='109'%20height='60'%20viewBox='0%200%20109%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3crect%20width='33'%20height='12'%20fill='url(%23paint0_linear_5795_13250)'%20/%3e%3cg%20clip-path='url(%23clip0_5795_13250)'%3e%3cg%20clip-path='url(%23clip1_5795_13250)'%3e%3cpath%20d='M8.475%206.8999C7.8%207.3499%207.2%207.8749%206.75%208.4749V8.3999C7.05%208.0249%207.275%207.6499%207.5%207.2749C7.8%207.1249%208.025%206.8999%208.25%206.6749C8.625%206.2999%209%205.9249%209.525%205.6999C9.75%205.6249%209.9%205.6249%2010.125%205.6999C10.05%205.7749%209.975%205.7749%209.825%205.8499H9.75V5.7749C9.525%205.9999%209.225%206.1499%209%206.4499C8.925%206.5999%208.85%206.8999%208.475%206.8999C8.55%206.8999%208.475%206.9749%208.475%206.8999ZM9.675%2010.3499C9.675%2010.2749%209.6%2010.3499%209.525%2010.3499L9.45%2010.4249L9.375%2010.4999L9.225%2010.6499C9.225%2010.6499%209.3%2010.7249%209.375%2010.6499L9.45%2010.5749C9.525%2010.5749%209.6%2010.4999%209.6%2010.4249C9.675%2010.4249%209.675%2010.4249%209.675%2010.3499ZM8.475%207.1249C8.55%207.1249%208.625%207.1249%208.625%207.0499C8.625%206.9749%208.7%206.9749%208.7%206.9749V6.8999C8.55%206.9749%208.475%207.0499%208.475%207.1249ZM10.275%208.5499C10.35%208.4749%2010.425%208.4749%2010.5%208.4749C11.025%208.3999%2011.55%208.2499%2012.075%208.0249C11.475%207.6499%2010.8%207.3499%2010.125%207.2749H10.2C10.125%207.1999%209.975%207.1999%209.825%207.1249H9.9C9.75%207.0499%209.525%207.0499%209.375%206.9749C9.45%206.9749%209.525%206.8249%209.525%206.7499H9.45C9.15%206.8999%209%207.1249%208.85%207.4249C9%207.4999%209.225%207.4249%209.375%207.4999H9.15C9.075%207.4999%209%207.5749%209%207.6499H9.075C9%207.6499%209%207.7249%208.925%207.7249C9%207.7999%209.075%207.7249%209.225%207.7249C9.225%207.7999%209.3%207.7999%209.3%207.7999C9.225%207.7999%209.15%207.8749%209.075%208.0249C9%208.1749%208.925%208.1749%208.85%208.2499V8.3249C8.625%208.4749%208.4%208.6999%208.175%208.9249V8.9999C8.1%209.0749%208.025%209.0749%208.025%209.1499V9.2249C8.325%209.1499%208.475%208.9249%208.775%208.8499L9.225%208.6249C9.375%208.6249%209.45%208.5499%209.6%208.5499V8.6249H9.75C9.75%208.6999%209.6%208.6249%209.675%208.6999C9.75%208.7749%209.9%208.7749%209.975%208.6999C10.125%208.5499%2010.2%208.5499%2010.275%208.5499ZM9.3%209.7499C9%209.8999%208.625%209.8999%208.4%2010.0499C8.4%2010.0499%208.4%2010.1249%208.325%2010.1249C8.325%2010.1249%208.25%2010.1249%208.25%2010.1999C8.175%2010.1999%208.175%2010.2749%208.1%2010.3499L8.025%2010.4249C8.025%2010.4249%208.025%2010.4999%208.1%2010.4249L8.175%2010.3499C8.175%2010.3499%208.1%2010.4249%208.1%2010.4999V10.7249L8.025%2010.7999C8.025%2010.7999%208.025%2010.8749%207.95%2010.8749L7.875%2010.9499L8.025%2010.7999L8.1%2010.7249H8.25C8.25%2010.7249%208.25%2010.6499%208.325%2010.6499C8.4%2010.5749%208.475%2010.4999%208.55%2010.4999H8.625C8.7%2010.4249%208.85%2010.4249%208.925%2010.3499C9%2010.2749%209.075%2010.1999%209.15%2010.1999C9.3%2010.0499%209.525%209.9749%209.75%209.8249C9.675%209.8249%209.6%209.7499%209.525%209.7499C9.525%209.8249%209.375%209.7499%209.3%209.7499ZM22.5%206.5249C22.425%206.6749%2022.2%206.6749%2022.05%206.7499C21.9%206.8999%2022.05%207.0499%2022.125%207.1249C22.2%207.3499%2021.975%207.4999%2021.825%207.4999C21.9%207.5749%2021.975%207.5749%2021.975%207.5749C21.975%207.7249%2022.125%207.7249%2022.05%207.8749C21.975%208.0249%2021.675%208.0999%2021.825%208.2499C21.9%208.3999%2021.9%208.6249%2021.825%208.7749C21.75%208.9249%2021.6%209.0749%2021.45%209.1499C21.3%209.2249%2021.15%209.2249%2021%209.1499C20.925%209.1499%2020.925%209.0749%2020.85%209.0749C20.475%208.9999%2020.1%208.9249%2019.725%208.9249C19.65%208.9249%2019.5%208.9999%2019.425%208.9999C19.35%209.0749%2019.2%209.1499%2019.125%209.2249L19.05%209.2999C18.975%209.3749%2018.9%209.4499%2018.9%209.5249C18.825%209.6749%2018.75%209.8249%2018.75%209.9749C18.6%2010.3499%2018.6%2010.7249%2018.75%2011.0249C18.75%2011.0249%2019.5%2011.2499%2020.025%2011.4749C20.175%2011.5499%2020.4%2011.6249%2020.55%2011.7749L21.825%2012.5249H9.9L11.1%2011.7749C11.55%2011.4749%2012.075%2011.2499%2012.6%2011.0249C12.975%2010.8749%2013.425%2010.6499%2013.725%2010.3499C13.875%2010.1999%2013.95%2010.0499%2014.1%209.9749C14.325%209.6749%2014.55%209.4499%2014.85%209.2249L15.075%208.9999C15.075%208.9999%2015.075%208.9249%2015.15%208.9249C15%208.9999%2015%209.0749%2014.85%209.0749C14.85%209.0749%2014.775%209.0749%2014.85%208.9999C14.925%208.9249%2015%208.8499%2015.075%208.8499V8.7749C14.775%208.7749%2014.55%208.9249%2014.325%209.1499H14.175C13.8%209.2999%2013.575%209.5249%2013.275%209.6749V9.5999C13.125%209.6749%2012.975%209.7499%2012.9%209.7499C12.75%209.7499%2012.525%209.8249%2012.3%209.7499C12%209.7499%2011.775%209.8249%2011.475%209.8999C11.325%209.9749%2011.175%209.9749%2011.025%2010.0499V10.1249L10.875%2010.2749C10.725%2010.3499%2010.65%2010.4249%2010.5%2010.5749L10.125%2010.9499H10.05L10.125%2010.8749L10.2%2010.7999C10.2%2010.7249%2010.275%2010.7249%2010.275%2010.6499C10.425%2010.5749%2010.5%2010.4249%2010.65%2010.3499C10.65%2010.3499%2010.65%2010.2749%2010.725%2010.2749L10.65%2010.3499C10.575%2010.4249%2010.575%2010.4999%2010.5%2010.4999V10.4249V10.3499L10.65%2010.1999C10.725%2010.1249%2010.8%2010.1249%2010.875%2010.0499H10.95C10.8%2010.1249%2010.725%2010.1249%2010.575%2010.1999H10.5H10.425C10.425%2010.1249%2010.5%2010.1249%2010.575%2010.0499H10.65C11.4%209.4499%2012.375%209.5999%2013.2%209.2999C13.275%209.2249%2013.35%209.2249%2013.425%209.1499C13.5%209.0749%2013.65%208.9999%2013.8%208.9249C13.95%208.7749%2014.1%208.6249%2014.175%208.3999V8.3249C13.875%208.6249%2013.575%208.8499%2013.2%209.0749C12.75%209.2249%2012.225%209.3749%2011.7%209.3749C11.7%209.2999%2011.775%209.2999%2011.775%209.2999C11.775%209.2249%2011.85%209.2249%2011.85%209.1499H11.925C11.925%209.1499%2011.925%209.0749%2012%209.0749H12.075C12%208.9999%2011.85%209.1499%2011.775%209.0749C11.85%208.9999%2011.775%208.9249%2011.85%208.9249H11.925C11.925%208.9249%2011.925%208.8499%2012%208.8499C12.375%208.6249%2012.675%208.4749%2012.975%208.3249C12.9%208.3249%2012.9%208.3999%2012.825%208.3249C12.9%208.3249%2012.825%208.2499%2012.9%208.2499C13.125%208.1749%2013.35%208.0249%2013.575%207.9499C13.5%207.9499%2013.425%208.0249%2013.35%207.9499C13.425%207.9499%2013.425%207.8749%2013.5%207.8749V7.7999C13.5%207.7249%2013.575%207.7999%2013.65%207.7249H13.575C13.65%207.6499%2013.725%207.5749%2013.875%207.5749C13.875%207.4999%2013.8%207.5749%2013.8%207.4999H13.875H13.5C13.425%207.4999%2013.5%207.4249%2013.5%207.4249C13.575%207.2749%2013.65%207.0499%2013.725%206.8999H13.65C13.425%207.1249%2013.05%207.2749%2012.75%207.3499H12.6C12.45%207.4249%2012.3%207.4249%2012.225%207.3499C12.15%207.2749%2012.075%207.1999%2012%207.1999C11.85%207.1249%2011.625%206.9749%2011.4%206.8999C10.875%206.7499%2010.275%206.5999%209.675%206.6749C9.9%206.5999%2010.2%206.5249%2010.5%206.4499C10.875%206.2999%2011.25%206.2249%2011.625%206.2249H11.4C11.1%206.2249%2010.725%206.2999%2010.425%206.3749C10.2%206.4499%209.975%206.5249%209.75%206.5249C9.6%206.5999%209.525%206.6749%209.375%206.6749V6.5999C9.6%206.2999%209.9%206.0749%2010.2%205.9999C10.575%205.9249%2011.025%205.9999%2011.4%206.0749C11.7%206.0749%2012%206.1499%2012.225%206.2249C12.3%206.2249%2012.375%206.3749%2012.45%206.4499C12.6%206.5249%2012.75%206.4499%2012.825%206.5249V6.3749C12.9%206.2999%2013.05%206.3749%2013.125%206.3749C13.275%206.2249%2012.975%206.0749%2012.9%205.9249V5.8499C13.05%205.9999%2013.275%206.1499%2013.425%206.2999C13.5%206.3749%2013.8%206.4499%2013.8%206.2999C13.65%206.0749%2013.5%205.8499%2013.275%205.6249V5.4749C13.2%205.4749%2013.2%205.4749%2013.2%205.3999C13.125%205.3249%2013.125%205.2499%2013.125%205.1749C13.05%205.0249%2013.125%204.8749%2013.05%204.7999C12.975%204.6499%2012.975%204.5749%2012.975%204.4249C12.9%204.0499%2012.825%203.6749%2012.75%203.3749C12.675%202.9249%2012.975%202.6249%2013.2%202.2499C13.35%201.9499%2013.575%201.7249%2013.8%201.4999C13.875%201.1999%2014.025%200.974902%2014.25%200.749902C14.475%200.524902%2014.7%200.374902%2014.925%200.299902C15.15%200.224902%2015.3%200.149902%2015.525%200.0749024L17.4%20-0.225098H18.75L20.1%20-9.76473e-05C20.175%20-9.76473e-05%2020.25%20-9.76324e-05%2020.25%200.0749024C20.325%200.149902%2020.475%200.224902%2020.55%200.224902C20.7%200.299902%2020.85%200.449902%2021%200.599902C21.075%200.674902%2021.15%200.824902%2021.075%200.899902C21%200.974902%2021%201.1999%2020.925%201.1999C20.775%201.2749%2020.625%201.2749%2020.475%201.2749C20.4%201.2749%2020.325%201.2749%2020.175%201.1999C20.55%201.3499%2020.85%201.4999%2021.075%201.7999C21.075%201.8749%2021.225%201.8749%2021.3%201.8749V1.9499C21.225%202.0249%2021.225%202.0249%2021.225%202.0999H21.3C21.375%202.0249%2021.375%201.7999%2021.525%201.8749C21.675%201.9499%2021.675%202.0999%2021.6%202.1749C21.525%202.2499%2021.45%202.3249%2021.3%202.3999V2.5499C21.375%202.6249%2021.375%202.6999%2021.45%202.8499C21.525%202.9999%2021.525%203.2249%2021.6%203.3749C21.675%203.7499%2021.75%204.0499%2021.75%204.4249C21.75%204.5749%2021.675%204.7999%2021.75%204.9499L21.975%205.3999C22.05%205.5499%2022.125%205.6249%2022.2%205.7749C22.35%205.9999%2022.65%206.2249%2022.5%206.5249ZM10.8%2010.4249C10.725%2010.4249%2010.725%2010.4999%2010.725%2010.4999C10.725%2010.4999%2010.8%2010.4999%2010.8%2010.4249ZM10.125%208.9249C10.125%208.9999%2010.2%208.9249%2010.2%208.9249C10.35%208.8499%2010.575%208.9249%2010.65%208.7749C10.575%208.6999%2010.5%208.7749%2010.5%208.6999C10.425%208.6999%2010.35%208.6999%2010.35%208.7749C10.275%208.8499%2010.125%208.8499%2010.125%208.9249Z'%20fill='white'%20/%3e%3cpath%20d='M20.925%204.3501C21%204.3501%2021.15%204.3501%2021.15%204.4251C21.075%204.5751%2020.85%204.6501%2020.7%204.8001H20.625C20.55%204.8751%2020.55%204.9501%2020.55%204.9501H20.325C20.4%205.0251%2020.55%205.1001%2020.7%205.1001L20.775%205.1751H20.925V5.2501C20.85%205.3251%2020.775%205.3251%2020.625%205.3251C20.775%205.4001%2021%205.4001%2021.15%205.3251C21.3%205.2501%2021.15%205.0251%2021.225%204.9501C21.15%204.9501%2021.225%204.8751%2021.15%204.8751C21.225%204.8001%2021.225%204.7251%2021.3%204.7251C21.375%204.7251%2021.375%204.7251%2021.45%204.6501C21.45%204.5751%2021.375%204.5751%2021.375%204.5001C21.525%204.4251%2021.6%204.2751%2021.6%204.1251C21.6%204.0501%2021.375%204.0501%2021.3%203.9751H20.925C20.775%203.9751%2020.7%204.0501%2020.55%204.0501L20.1%204.2751C20.25%204.2001%2020.4%204.2001%2020.625%204.1251C20.625%204.3501%2020.775%204.3501%2020.925%204.3501Z'%20fill='%237C7C7C'%20/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M5.355%2025.5762C6.1866%2025.5762%206.9048%2025.2864%207.4088%2024.8076V23.2704H5.166V21.7458H9.198V25.4502C8.379%2026.5464%207.0056%2027.252%205.355%2027.252C2.4948%2027.252%200.5418%2025.11%200.5418%2022.59C0.5418%2020.07%202.4444%2017.928%205.229%2017.928C6.8292%2017.928%208.1396%2018.6462%208.946%2019.7172L7.5348%2020.8134C7.0308%2020.0952%206.237%2019.6038%205.229%2019.6038C3.5658%2019.6038%202.3814%2020.9016%202.3814%2022.59C2.3814%2024.2784%203.6288%2025.5762%205.355%2025.5762ZM15.2175%2017.928C17.9895%2017.928%2019.8921%2020.07%2019.8921%2022.59C19.8921%2025.11%2017.9895%2027.252%2015.2175%2027.252C12.4329%2027.252%2010.5303%2025.11%2010.5303%2022.59C10.5303%2020.07%2012.4329%2017.928%2015.2175%2017.928ZM15.2175%2025.5762C16.8681%2025.5762%2018.0525%2024.2784%2018.0525%2022.59C18.0525%2020.9016%2016.8681%2019.6038%2015.2175%2019.6038C13.5543%2019.6038%2012.3699%2020.9016%2012.3699%2022.59C12.3699%2024.2784%2013.5543%2025.5762%2015.2175%2025.5762ZM26.8084%2023.6988V18.18H28.5976V23.5476C28.5976%2025.866%2027.2368%2027.252%2025.0192%2027.252C22.8142%2027.252%2021.4534%2025.866%2021.4534%2023.5476V18.18H23.2426V23.6988C23.2426%2024.8832%2023.9104%2025.5762%2025.0318%2025.5762C26.128%2025.5762%2026.8084%2024.8832%2026.8084%2023.6988ZM29.7114%2018.18H31.614L34.2222%2025.0722L36.8304%2018.18H38.733L35.394%2027H33.0504L29.7114%2018.18ZM40.095%2027V18.18H45.2358V19.6668H41.8842V21.7584H44.7318V23.2452H41.8842V25.5132H45.2358V27H40.095ZM47.3149%2027V18.18H50.0113C51.9517%2018.18%2053.1487%2019.1754%2053.1487%2020.8134C53.1487%2021.8844%2052.6321%2022.6782%2051.7249%2023.094L54.4843%2027H52.3801L50.0239%2023.4342H49.1041V27H47.3149ZM50.1121%2019.6668H49.1041V21.9474H50.1121C50.8681%2021.9474%2051.3091%2021.5064%2051.3091%2020.7882C51.3091%2020.1204%2050.8681%2019.6668%2050.1121%2019.6668ZM55.6176%2027V18.18H57.9108L61.8546%2024.5556V18.18H63.6438V27H61.3506L57.4068%2020.6244V27H55.6176ZM66.1105%2027V18.18H71.2513V19.6668H67.8997V21.7584H70.7473V23.2452H67.8997V25.5132H71.2513V27H66.1105ZM73.3304%2027V18.18H75.5606L77.7152%2021.8844L79.8698%2018.18H82.1V27H80.3108V20.6748L78.3452%2023.976H77.0852L75.1196%2020.6748V27H73.3304ZM84.5617%2027V18.18H89.7025V19.6668H86.3509V21.7584H89.1985V23.2452H86.3509V25.5132H89.7025V27H84.5617ZM91.7816%2027V18.18H94.0748L98.0186%2024.5556V18.18H99.8078V27H97.5146L93.5708%2020.6244V27H91.7816ZM101.367%2019.8054V18.18H108.6V19.8054H105.878V27H104.089V19.8054H101.367Z'%20fill='%23161616'%20/%3e%3cg%20clip-path='url(%23clip2_5795_13250)'%3e%3cg%20clip-path='url(%23clip3_5795_13250)'%3e%3cg%20clip-path='url(%23clip4_5795_13250)'%3e%3cg%20clip-path='url(%23clip5_5795_13250)'%3e%3cg%20clip-path='url(%23clip6_5795_13250)'%3e%3cpath%20d='M30.775%2056.45C31.15%2055.5%2030.7%2055.125%2030.15%2055.125C29.225%2055.125%2028.175%2056.75%2028.175%2058.05C28.175%2058.675%2028.475%2059%2028.925%2059C29.45%2059%2030%2058.5%2030.475%2057.625H30.225C29.925%2058%2029.575%2058.275%2029.25%2058.275C28.925%2058.275%2028.75%2058.075%2028.75%2057.625C28.7558%2057.4396%2028.781%2057.2552%2028.825%2057.075L30.775%2056.45ZM29.775%2055.675C30.05%2055.675%2030.275%2055.875%2030.15%2056.325L28.95%2056.65C29.15%2056.1%2029.5%2055.65%2029.8%2055.65L29.775%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M30.15%2054.6999L31.275%2053.6749V53.5249H30.525L29.85%2054.6999H30.175H30.15Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip7_5795_13250)'%3e%3cpath%20d='M25.975%2055.675H26.625L25.575%2058.525C25.5421%2058.576%2025.5242%2058.6352%2025.5232%2058.6959C25.5222%2058.7565%2025.5382%2058.8163%2025.5694%2058.8683C25.6007%2058.9204%2025.6458%2058.9626%2025.6998%2058.9903C25.7538%2059.018%2025.8145%2059.03%2025.875%2059.025C26.625%2059.025%2027.475%2058.375%2027.825%2057.475H27.65C27.3359%2057.9021%2026.8865%2058.2105%2026.375%2058.35L27.3%2055.675H28.3L28.425%2055.275H27.475L27.8%2054.25H27.45L26.775%2055.275L25.975%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip8_5795_13250)'%3e%3cpath%20d='M25.3%2055.5249C25.375%2055.2749%2025.2%2055.1249%2025.05%2055.1249C24.5%2055.1249%2023.8%2055.6499%2023.55%2056.3749H23.725C23.9026%2056.0881%2024.1778%2055.875%2024.5%2055.7749L23.425%2058.5999C23.4034%2058.6422%2023.3932%2058.6894%2023.3952%2058.7368C23.3973%2058.7843%2023.4116%2058.8304%2023.4368%2058.8707C23.4619%2058.911%2023.4971%2058.9441%2023.5389%2058.9667C23.5806%2058.9893%2023.6275%2059.0008%2023.675%2058.9999C24.225%2058.9999%2024.85%2058.4999%2025.125%2057.7499H24.9C24.7378%2058.0509%2024.471%2058.2821%2024.15%2058.3999L25.3%2055.5249ZM25.4%2054.4499C25.4591%2054.4499%2025.5176%2054.4383%2025.5722%2054.4156C25.6268%2054.393%2025.6764%2054.3599%2025.7182%2054.3181C25.76%2054.2763%2025.7932%2054.2267%2025.8158%2054.1721C25.8384%2054.1175%2025.85%2054.059%2025.85%2053.9999C25.8534%2053.9387%2025.8443%2053.8775%2025.8232%2053.82C25.8021%2053.7625%2025.7695%2053.7099%2025.7274%2053.6654C25.6853%2053.6209%2025.6345%2053.5855%2025.5782%2053.5614C25.5219%2053.5372%2025.4613%2053.5248%2025.4%2053.5249C25.2807%2053.5249%2025.1662%2053.5723%2025.0818%2053.6567C24.9974%2053.7411%2024.95%2053.8556%2024.95%2053.9749C24.95%2054.0943%2024.9974%2054.2087%2025.0818%2054.2931C25.1662%2054.3775%2025.2807%2054.4249%2025.4%2054.4249'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip9_5795_13250)'%3e%3cpath%20d='M20.125%2055.8999C20.3%2055.8999%2020.375%2056.1499%2020.125%2056.7499L19.375%2058.4499C19.2%2058.7749%2019.375%2058.9999%2019.675%2058.9999C19.7577%2059.0148%2019.843%2058.997%2019.9129%2058.9504C19.9828%2058.9038%2020.0319%2058.8319%2020.05%2058.7499L20.8%2056.7499C21.15%2056.3249%2021.8%2055.8749%2022.05%2055.8749C22.3%2055.8749%2022.25%2056.0249%2022.125%2056.2749L20.975%2058.5249C20.9497%2058.5734%2020.9371%2058.6276%2020.9383%2058.6823C20.9395%2058.737%2020.9545%2058.7906%2020.9819%2058.838C21.0094%2058.8854%2021.0483%2058.925%2021.0952%2058.9533C21.142%2058.9816%2021.1953%2058.9976%2021.25%2058.9999C21.825%2058.9999%2022.5%2058.4999%2022.75%2057.7499H22.6C22.4209%2058.051%2022.1355%2058.274%2021.8%2058.3749L22.8%2056.3749C22.9222%2056.1611%2022.9908%2055.9209%2023%2055.6749C23.0079%2055.6007%2022.9991%2055.5257%2022.9742%2055.4554C22.9494%2055.3851%2022.9091%2055.3212%2022.8564%2055.2685C22.8036%2055.2158%2022.7398%2055.1755%2022.6695%2055.1507C22.5991%2055.1258%2022.5242%2055.117%2022.45%2055.1249C21.95%2055.1249%2021.55%2055.6749%2020.95%2056.3749V55.8249C20.95%2055.4749%2020.825%2055.1249%2020.5%2055.1249C20.1%2055.1249%2019.75%2055.7499%2019.475%2056.3499H19.65C19.825%2056.0749%2019.975%2055.8999%2020.15%2055.8999'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip10_5795_13250)'%3e%3cpath%20d='M19.375%2056C19.5%2055.525%2019.425%2055.125%2019.075%2055.125C18.625%2055.125%2018.5%2055.425%2018.075%2056.375V55.825C18.05%2055.45%2017.925%2055.125%2017.575%2055.125C17.2%2055.125%2016.85%2055.75%2016.55%2056.375H16.75C16.925%2056.05%2017.125%2055.875%2017.25%2055.875C17.425%2055.875%2017.5%2056.125%2017.25%2056.725L16.5%2058.425C16.325%2058.75%2016.5%2058.95%2016.8%2058.95C16.8827%2058.9649%2016.968%2058.9472%2017.0379%2058.9006C17.1078%2058.8539%2017.1569%2058.7821%2017.175%2058.7L17.925%2056.7C18.1317%2056.4415%2018.3486%2056.1913%2018.575%2055.95H19.375V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip11_5795_13250)'%3e%3cpath%20d='M16.175%2056.45C16.55%2055.5%2016.1%2055.125%2015.55%2055.125C14.625%2055.125%2013.575%2056.75%2013.575%2058.05C13.575%2058.675%2013.875%2059%2014.325%2059C14.85%2059%2015.4%2058.5%2015.875%2057.625H15.625C15.325%2058%2014.975%2058.275%2014.65%2058.275C14.325%2058.275%2014.15%2058.075%2014.15%2057.625C14.1559%2057.4396%2014.181%2057.2552%2014.225%2057.075L16.175%2056.45ZM15.175%2055.675C15.45%2055.675%2015.675%2055.875%2015.55%2056.325L14.35%2056.65C14.55%2056.1%2014.9%2055.65%2015.2%2055.65L15.175%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip12_5795_13250)'%3e%3cpath%20d='M11.35%2055.675H12L10.95%2058.525C10.9171%2058.576%2010.8992%2058.6352%2010.8982%2058.6959C10.8972%2058.7565%2010.9132%2058.8163%2010.9444%2058.8683C10.9757%2058.9204%2011.0208%2058.9626%2011.0748%2058.9903C11.1288%2059.018%2011.1895%2059.03%2011.25%2059.025C12%2059.025%2012.85%2058.375%2013.2%2057.475H13.025C12.7109%2057.9021%2012.2615%2058.2105%2011.75%2058.35L12.675%2055.675H13.675L13.8%2055.275H12.85L13.175%2054.25H12.825L12.15%2055.275L11.35%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip13_5795_13250)'%3e%3cpath%20d='M9.84996%2058.2252C9.69996%2058.2252%209.59996%2057.9752%209.84996%2057.3752L10.875%2054.9752L10.575%2054.9502L10.25%2055.2752H10.175C8.74996%2055.2752%207.22496%2057.1002%207.22496%2058.5002C7.22137%2058.5701%207.23249%2058.64%207.25761%2058.7053C7.28272%2058.7706%207.32126%2058.8299%207.37075%2058.8794C7.42024%2058.9289%207.47956%2058.9674%207.54488%2058.9926C7.6102%2059.0177%207.68007%2059.0288%207.74996%2059.0252C8.17496%2059.0252%208.57496%2058.4252%209.04996%2057.7752L9.02496%2058.0252C8.94996%2058.6752%209.17496%2059.0252%209.52496%2059.0252C9.89996%2059.0252%2010.275%2058.4252%2010.525%2057.8002H10.35C10.175%2058.0752%209.97496%2058.2502%209.84996%2058.2502V58.2252ZM9.19996%2057.4002C8.87496%2057.8002%208.34996%2058.2752%208.12496%2058.2752C7.99996%2058.2752%207.89996%2058.1502%207.89996%2057.8752C7.89996%2057.0002%208.89996%2055.8252%209.39996%2055.8252C9.51862%2055.822%209.63696%2055.8389%209.74996%2055.8752L9.19996%2057.4002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip14_5795_13250)'%3e%3cpath%20d='M7.85004%2056C7.97504%2055.525%207.90004%2055.125%207.55004%2055.125C7.10004%2055.125%206.97504%2055.425%206.55004%2056.375V55.825C6.52504%2055.45%206.40004%2055.125%206.05004%2055.125C5.67504%2055.125%205.32504%2055.75%205.02504%2056.375H5.22504C5.40004%2056.05%205.60004%2055.875%205.72504%2055.875C5.90004%2055.875%205.97504%2056.125%205.72504%2056.725L4.97504%2058.425C4.80004%2058.75%204.97504%2058.95%205.27504%2058.95C5.35775%2058.9649%205.443%2058.9472%205.51292%2058.9006C5.58284%2058.8539%205.63198%2058.7821%205.65004%2058.7L6.40004%2056.7C6.60676%2056.4415%206.82359%2056.1913%207.05004%2055.95H7.85004V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip15_5795_13250)'%3e%3cpath%20d='M2.79998%2058.8499L2.87498%2058.6249C1.92498%2058.4499%201.79998%2058.4499%202.19998%2057.4249L2.54998%2056.4499H3.29998C3.77498%2056.4499%203.77498%2056.6749%203.69998%2057.1999H3.94998L4.59998%2055.4749H4.34998C4.09998%2055.8749%203.89998%2056.1999%203.39998%2056.1999H2.64998L3.14998%2054.7999C3.34998%2054.2999%203.42498%2054.1999%204.07498%2054.1999H4.24998C4.89998%2054.1999%204.99998%2054.3749%204.99998%2055.0749H5.24998L5.47498%2053.8999H1.82498L1.74998%2054.1249C2.49998%2054.2749%202.57498%2054.3499%202.24998%2055.3249L1.42498%2057.3999C1.04998%2058.3749%200.924976%2058.4499%200.0499756%2058.5999L-0.0250244%2058.8249L2.79998%2058.8499Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip16_5795_13250)'%3e%3cg%20clip-path='url(%23clip17_5795_13250)'%3e%3cpath%20d='M21.925%2048.2C22.3%2047.25%2021.85%2046.875%2021.3%2046.875C20.375%2046.875%2019.325%2048.5%2019.325%2049.8C19.325%2050.425%2019.625%2050.75%2020.075%2050.75C20.6%2050.75%2021.15%2050.25%2021.625%2049.375H21.375C21.075%2049.75%2020.725%2050.025%2020.4%2050.025C20.075%2050.025%2019.9%2049.825%2019.9%2049.375C19.9059%2049.1896%2019.931%2049.0052%2019.975%2048.825L21.925%2048.2ZM20.925%2047.425C21.2%2047.425%2021.425%2047.625%2021.3%2048.075L20.1%2048.4C20.3%2047.85%2020.65%2047.4%2020.95%2047.4L20.925%2047.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.3%2046.4499L22.425%2045.4249V45.2749H21.675L21%2046.4499H21.325H21.3Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip18_5795_13250)'%3e%3cpath%20d='M17.125%2047.425H17.775L16.725%2050.275C16.6921%2050.326%2016.6742%2050.3852%2016.6732%2050.4459C16.6722%2050.5065%2016.6882%2050.5663%2016.7195%2050.6183C16.7507%2050.6704%2016.7959%2050.7126%2016.8499%2050.7403C16.9039%2050.768%2016.9645%2050.78%2017.025%2050.775C17.775%2050.775%2018.625%2050.125%2018.975%2049.225H18.8C18.4859%2049.6521%2018.0365%2049.9605%2017.525%2050.1L18.45%2047.425H19.45L19.575%2047.025H18.625L18.95%2046H18.6L17.925%2047.025L17.125%2047.125V47.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip19_5795_13250)'%3e%3cpath%20d='M16.45%2047.25C16.525%2047%2016.35%2046.85%2016.2%2046.85C15.65%2046.85%2014.95%2047.375%2014.7%2048.1H14.875C15.0526%2047.8132%2015.3278%2047.6001%2015.65%2047.5L14.575%2050.325C14.5534%2050.3673%2014.5431%2050.4145%2014.5452%2050.4619C14.5472%2050.5094%2014.5615%2050.5555%2014.5867%2050.5958C14.6119%2050.6361%2014.6471%2050.6692%2014.6888%2050.6918C14.7306%2050.7144%2014.7775%2050.7259%2014.825%2050.725C15.375%2050.725%2016%2050.225%2016.275%2049.475H16.05C15.8878%2049.776%2015.621%2050.0072%2015.3%2050.125L16.45%2047.25ZM16.55%2046.175C16.6091%2046.175%2016.6676%2046.1634%2016.7222%2046.1407C16.7768%2046.1181%2016.8264%2046.085%2016.8682%2046.0432C16.91%2046.0014%2016.9431%2045.9518%2016.9657%2045.8972C16.9884%2045.8426%2017%2045.7841%2017%2045.725C17.0034%2045.6638%2016.9943%2045.6026%2016.9732%2045.5451C16.9521%2045.4876%2016.9195%2045.435%2016.8774%2045.3905C16.8352%2045.346%2016.7845%2045.3106%2016.7282%2045.2865C16.6719%2045.2623%2016.6113%2045.2499%2016.55%2045.25C16.4306%2045.25%2016.3162%2045.2974%2016.2318%2045.3818C16.1474%2045.4662%2016.1%2045.5807%2016.1%2045.7C16.1%2045.8193%2016.1474%2045.9338%2016.2318%2046.0182C16.3162%2046.1026%2016.4306%2046.15%2016.55%2046.15'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip20_5795_13250)'%3e%3cpath%20d='M13.075%2050.1249L14.875%2045.3499L14.8%2045.2749L13.55%2045.4249V45.5749L13.8%2045.7499C14.025%2045.9249%2013.95%2046.0749%2013.75%2046.5999L12.4%2050.2499C12.3685%2050.2991%2012.3509%2050.3559%2012.349%2050.4142C12.3471%2050.4726%2012.3609%2050.5304%2012.389%2050.5815C12.4172%2050.6327%2012.4586%2050.6753%2012.5089%2050.705C12.5592%2050.7346%2012.6166%2050.7501%2012.675%2050.7499C13.25%2050.7499%2013.85%2050.2249%2014.125%2049.4999H13.95C13.7377%2049.8015%2013.4291%2050.0219%2013.075%2050.1249Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip21_5795_13250)'%3e%3cpath%20d='M11.35%2049.9752C11.2%2049.9752%2011.1%2049.7252%2011.35%2049.1252L12.375%2046.7252L12.075%2046.7002L11.75%2047.0252H11.675C10.25%2047.0252%208.72496%2048.8502%208.72496%2050.2502C8.72137%2050.3201%208.73249%2050.39%208.75761%2050.4553C8.78272%2050.5206%208.82126%2050.5799%208.87075%2050.6294C8.92024%2050.6789%208.97956%2050.7174%209.04488%2050.7426C9.1102%2050.7677%209.18007%2050.7788%209.24996%2050.7752C9.67496%2050.7752%2010.075%2050.1752%2010.55%2049.5252L10.525%2049.7752C10.45%2050.4252%2010.675%2050.7752%2011.025%2050.7752C11.4%2050.7752%2011.775%2050.1752%2012.025%2049.5502H11.85C11.675%2049.8252%2011.475%2050.0002%2011.35%2050.0002V49.9752ZM10.7%2049.1502C10.375%2049.5502%209.84996%2050.0252%209.62496%2050.0252C9.49996%2050.0252%209.39996%2049.9002%209.39996%2049.6252C9.39996%2048.7502%2010.4%2047.5752%2010.9%2047.5752C11.0186%2047.572%2011.137%2047.5889%2011.25%2047.6252L10.7%2049.1502Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip22_5795_13250)'%3e%3cpath%20d='M9.15%2047.0002H8.075C7.91845%2046.8999%207.73591%2046.8477%207.55%2046.8502C7.11669%2046.8501%206.70075%2047.0205%206.39202%2047.3246C6.0833%2047.6286%205.90657%2048.0419%205.9%2048.4752C5.88969%2048.5836%205.90095%2048.693%205.93314%2048.797C5.96532%2048.9011%206.01779%2048.9977%206.08751%2049.0814C6.15724%2049.1651%206.24284%2049.2341%206.33938%2049.2845C6.43592%2049.335%206.54149%2049.3658%206.65%2049.3752C6.175%2049.5752%205.9%2049.8252%205.9%2050.1002C5.9%2050.1772%205.92093%2050.2528%205.96057%2050.3188C6.0002%2050.3849%206.05703%2050.4389%206.125%2050.4752C5.05%2050.8002%204.625%2051.1752%204.625%2051.6502C4.625%2052.1502%205.275%2052.3502%206.025%2052.3502C7.35%2052.3502%208.425%2051.6752%208.425%2051.0752C8.425%2050.6252%208.025%2050.4502%207.35%2050.2502C6.8%2050.0752%206.55%2050.0502%206.55%2049.8502C6.56644%2049.752%206.60704%2049.6595%206.66814%2049.581C6.72924%2049.5024%206.80892%2049.4403%206.9%2049.4002C7.31131%2049.369%207.69601%2049.1848%207.97828%2048.884C8.26056%2048.5832%208.41993%2048.1876%208.425%2047.7752C8.42962%2047.6483%208.41272%2047.5215%208.375%2047.4002H9L9.15%2047.0002ZM7.1%2050.9002C7.625%2051.0752%207.85%2051.1502%207.85%2051.3002C7.85%2051.6502%207.35%2051.9252%206.45%2051.9252C5.775%2051.9252%205.45%2051.7752%205.45%2051.4252C5.45%2051.0502%205.8%2050.8002%206.325%2050.6002C6.56712%2050.7189%206.81783%2050.8191%207.075%2050.9002H7.1ZM6.9%2049.1002C6.65%2049.1002%206.575%2048.9002%206.575%2048.6752C6.575%2047.9752%206.925%2047.1252%207.45%2047.1252C7.7%2047.1252%207.775%2047.3252%207.775%2047.5252C7.775%2048.2502%207.425%2049.1002%206.9%2049.1002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip23_5795_13250)'%3e%3cpath%20d='M3.575%2048.2252C4.05%2048.2252%204.075%2048.4252%203.975%2048.9252H4.25L4.875%2047.2252H4.625C4.375%2047.6252%204.2%2047.9502%203.675%2047.9502H2.65L3.15%2046.5502C3.325%2046.0502%203.4%2045.9502%204.075%2045.9502H4.5C5.15%2045.9502%205.25%2046.1252%205.25%2046.8252H5.5L5.725%2045.6502H1.825L1.75%2045.8752C2.5%2046.0252%202.575%2046.1002%202.25%2047.0752L1.45%2049.1752C1.075%2050.1502%200.95%2050.2252%200.05%2050.3752L0%2050.6252H4.35L5.15%2049.3752H4.85C4.35%2049.8752%203.85%2050.3252%202.85%2050.3252C1.675%2050.3252%201.775%2050.2502%202.175%2049.1752L2.525%2048.2252H3.575ZM4.15%2045.2752L5.25%2044.4752V44.3252H4.5L3.85%2045.3002H4.15V45.2752Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip24_5795_13250)'%3e%3cg%20clip-path='url(%23clip25_5795_13250)'%3e%3cpath%20d='M21.8%2039.95C22.175%2039%2021.725%2038.625%2021.175%2038.625C20.25%2038.625%2019.2%2040.25%2019.2%2041.55C19.2%2042.175%2019.5%2042.5%2019.95%2042.5C20.475%2042.5%2021.025%2042%2021.5%2041.125H21.25C20.95%2041.5%2020.6%2041.775%2020.275%2041.775C19.95%2041.775%2019.775%2041.575%2019.775%2041.125C19.7809%2040.9396%2019.806%2040.7552%2019.85%2040.575L21.8%2039.95ZM20.8%2039.175C21.075%2039.175%2021.3%2039.375%2021.175%2039.825L19.975%2040.15C20.175%2039.6%2020.525%2039.15%2020.825%2039.15L20.8%2039.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.175%2038.1999L22.3%2037.1749V37.0249H21.55L20.875%2038.1999H21.2H21.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip26_5795_13250)'%3e%3cpath%20d='M16.975%2039.1501H17.625L16.575%2042.0001C16.5421%2042.0511%2016.5242%2042.1103%2016.5232%2042.171C16.5222%2042.2316%2016.5382%2042.2914%2016.5694%2042.3434C16.6007%2042.3955%2016.6458%2042.4377%2016.6998%2042.4654C16.7538%2042.4931%2016.8145%2042.5051%2016.875%2042.5001C17.625%2042.5001%2018.475%2041.8501%2018.825%2040.9501H18.65C18.3359%2041.3772%2017.8865%2041.6856%2017.375%2041.8251L18.3%2039.1501H19.3L19.425%2038.7501H18.475L18.8%2037.7251H18.45L17.775%2038.7501L16.975%2038.8501V39.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip27_5795_13250)'%3e%3cpath%20d='M16.65%2039.5C16.775%2039.025%2016.7%2038.625%2016.35%2038.625C15.9%2038.625%2015.775%2038.925%2015.35%2039.875V39.325C15.325%2038.95%2015.2%2038.625%2014.85%2038.625C14.475%2038.625%2014.125%2039.25%2013.825%2039.875H14.025C14.2%2039.55%2014.4%2039.375%2014.525%2039.375C14.7%2039.375%2014.775%2039.625%2014.525%2040.225L13.775%2041.925C13.6%2042.25%2013.775%2042.45%2014.075%2042.45C14.1577%2042.4649%2014.243%2042.4472%2014.3129%2042.4006C14.3828%2042.3539%2014.432%2042.2821%2014.45%2042.2L15.2%2040.2C15.4067%2039.9415%2015.6236%2039.6913%2015.85%2039.45H16.65V39.5Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip28_5795_13250)'%3e%3cpath%20d='M13.45%2039.9251C13.825%2038.9751%2013.375%2038.6001%2012.825%2038.6001C11.9%2038.6001%2010.85%2040.2251%2010.85%2041.5251C10.85%2042.1501%2011.15%2042.4751%2011.6%2042.4751C12.125%2042.4751%2012.675%2041.9751%2013.15%2041.1001H12.9C12.6%2041.4751%2012.25%2041.7501%2011.925%2041.7501C11.6%2041.7501%2011.425%2041.5501%2011.425%2041.1001C11.4308%2040.9147%2011.456%2040.7303%2011.5%2040.5501L13.45%2039.9251ZM12.45%2039.1501C12.725%2039.1501%2012.95%2039.3501%2012.825%2039.8001L11.625%2040.1251C11.825%2039.5751%2012.175%2039.1251%2012.475%2039.1251L12.45%2039.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip29_5795_13250)'%3e%3cpath%20d='M10.2%2038.6249C9.69998%2038.6249%209.19998%2039.1749%208.74998%2039.8249L9.74998%2037.0999L9.69998%2037.0249L8.44998%2037.1749V37.2749L8.69998%2037.4749C8.92498%2037.6499%208.84998%2037.7999%208.64998%2038.3249L7.54998%2041.2249C7.46796%2041.4023%207.40106%2041.5863%207.34998%2041.7749C7.34998%2042.1249%207.79998%2042.4499%208.22498%2042.4499C9.17498%2042.4499%2010.725%2040.7249%2010.725%2039.3999C10.725%2038.8249%2010.6%2038.5999%2010.2%2038.5999V38.6249ZM8.54998%2041.8999C8.34998%2041.8999%208.07498%2041.7249%208.07498%2041.5749C8.12768%2041.3868%208.19454%2041.2029%208.27498%2041.0249L8.59998%2040.1999C8.92498%2039.7749%209.44998%2039.3499%209.74998%2039.3499C9.92498%2039.3499%2010.05%2039.4499%2010.05%2039.7249C10.05%2040.4999%209.32498%2041.8999%208.54998%2041.8999Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip30_5795_13250)'%3e%3cpath%20d='M7.05003%2039C7.12503%2038.75%206.95003%2038.6%206.80003%2038.6C6.25003%2038.6%205.55003%2039.125%205.30003%2039.85H5.47503C5.65263%2039.5632%205.92784%2039.3501%206.25003%2039.25L5.17503%2042.075C5.15343%2042.1173%205.14316%2042.1645%205.14522%2042.2119C5.14727%2042.2594%205.16158%2042.3055%205.18676%2042.3458C5.21193%2042.3861%205.24711%2042.4192%205.28887%2042.4418C5.33063%2042.4644%205.37754%2042.4759%205.42503%2042.475C5.97503%2042.475%206.60003%2041.975%206.87503%2041.225H6.65003C6.4878%2041.526%206.22102%2041.7572%205.90003%2041.875L7.05003%2039ZM7.15003%2037.925C7.20913%2037.925%207.26764%2037.9134%207.32224%2037.8907C7.37684%2037.8681%207.42645%2037.835%207.46823%2037.7932C7.51002%2037.7514%207.54316%2037.7018%207.56578%2037.6472C7.58839%2037.5926%207.60003%2037.5341%207.60003%2037.475C7.60344%2037.4138%207.59432%2037.3526%207.57323%2037.2951C7.55214%2037.2376%207.51954%2037.185%207.47741%2037.1405C7.43528%2037.096%207.38451%2037.0606%207.32822%2037.0365C7.27193%2037.0123%207.21129%2036.9999%207.15003%2037C7.03069%2037%206.91623%2037.0474%206.83184%2037.1318C6.74744%2037.2162%206.70003%2037.3307%206.70003%2037.45C6.70003%2037.5693%206.74744%2037.6838%206.83184%2037.7682C6.91623%2037.8526%207.03069%2037.9%207.15003%2037.9'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip31_5795_13250)'%3e%3cpath%20d='M4.4%2037.3501H1.825L1.75%2037.5751C2.5%2037.7251%202.575%2037.8001%202.25%2038.7751L1.45%2040.9001C1.075%2041.8751%200.95%2041.9501%200.075%2042.1001L0%2042.3501H3.925L4.8%2040.8501H4.5C4%2041.3501%203.45%2042.0501%202.575%2042.0501C1.9%2042.0501%201.825%2041.9251%202.175%2040.9251L2.95%2038.8001C3.3%2037.8251%203.45%2037.7501%204.325%2037.6001L4.4%2037.3501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_5795_13250'%20x1='0'%20y1='6'%20x2='33'%20y2='6'%20gradientUnits='userSpaceOnUse'%20%3e%3cstop%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23E1000F'%20/%3e%3cstop%20offset='1'%20stop-color='%23E1000F'%20/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_5795_13250'%3e%3crect%20width='33'%20height='12'%20fill='white'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_5795_13250'%3e%3crect%20width='33'%20height='13.5'%20fill='white'%20transform='translate(0%20-0.75)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip2_5795_13250'%3e%3crect%20width='108.88'%20height='26.5'%20fill='white'%20transform='translate(0%2033)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip3_5795_13250'%3e%3crect%20width='63'%20height='45'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip4_5795_13250'%3e%3crect%20width='31.5'%20height='22.5'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip5_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(28.175%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip6_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(28.175%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip7_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(25.55%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip8_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(23.4%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip9_5795_13250'%3e%3crect%20width='3.7'%20height='3.875'%20fill='white'%20transform='translate(19.3%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip10_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(16.425%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip11_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(13.575%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip12_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(10.925%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip13_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(7.22498%2054.9502)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip14_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(4.90002%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip15_5795_13250'%3e%3crect%20width='5.475'%20height='4.95'%20fill='white'%20transform='translate(0%2053.8999)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip16_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.325%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip17_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.325%2046.875)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip18_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.7%2046)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip19_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(14.55%2045.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip20_5795_13250'%3e%3crect%20width='2.525'%20height='5.475'%20fill='white'%20transform='translate(12.35%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip21_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(8.72498%2046.7002)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip22_5795_13250'%3e%3crect%20width='4.5'%20height='5.5'%20fill='white'%20transform='translate(4.65002%2046.8501)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip23_5795_13250'%3e%3crect%20width='5.75'%20height='6.275'%20fill='white'%20transform='translate(0%2044.3252)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip24_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.2%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip25_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.2%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip26_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.55%2037.7251)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip27_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(13.7%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip28_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(10.85%2038.6001)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip29_5795_13250'%3e%3crect%20width='3.4'%20height='5.45'%20fill='white'%20transform='translate(7.34998%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip30_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(5.15002%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip31_5795_13250'%3e%3crect%20width='4.8'%20height='4.975'%20fill='white'%20transform='translate(0%2037.3501)'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Yp=()=>{const{t}=le.useCunningham();return b.jsxs("footer",{className:"c__footer",children:[b.jsx("div",{className:"c__footer__stripe"}),b.jsxs("div",{className:"c__footer__content",children:[b.jsxs("div",{className:"c__footer__content__top",children:[b.jsx("div",{children:b.jsx("div",{className:"c__footer__content__top__logo",children:b.jsx("img",{className:"c__footer__logo",alt:"",width:"0",height:"0",decoding:"async","data-nimg":"1",src:qp})})}),b.jsx("div",{className:"c__footer__content__top__links",children:[{label:"legifrance.gouv.fr",href:"https://legifrance.gouv.fr/"},{label:"info.gouv.fr",href:"https://info.gouv.fr/"},{label:"service-public.fr",href:"https://service-public.fr/"},{label:"data.gouv.fr",href:"https://data.gouv.fr/"}].map(({label:e,href:n})=>b.jsxs("a",{href:n,target:"_blank",children:[b.jsx("span",{children:e}),b.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:ds})]},e))})]}),b.jsx("div",{className:"c__footer__content__middle",children:[{label:t("components.footer.links.legal"),href:"/legal-notice"},{label:t("components.footer.links.personal_data"),href:"/personal-data-cookies"},{label:t("components.footer.links.accessibility"),href:"/accessibility"}].map(({label:e,href:n})=>b.jsx("a",{href:n,children:b.jsx("span",{children:e})},e))}),b.jsxs("p",{className:"c__footer__content__mention",children:[t("components.footer.mention")," ",b.jsxs("a",{href:"https://github.com/etalab/licence-ouverte/blob/master/LO.md",target:"__blank",children:[b.jsx("span",{children:t("components.footer.license")}),b.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:ds})]})]})]})]})},Xp=t=>b.jsx(jp,{...t,className:"c__filter",children:b.jsx(Jp,{...t})}),Jp=t=>{const e=u.useContext(bd),n=e!=null&&e.selectedItem?t.options.find(r=>{var i;return r.value===((i=e.selectedItem)==null?void 0:i.key)}):null;return b.jsxs(b.Fragment,{children:[b.jsxs(cp,{className:Pe("c__filter__button",{"c__filter__button--active":!!n}),children:[b.jsx(lp,{className:"c__filter__label",children:n?b.jsxs(b.Fragment,{children:[t.label," : ",n.label]}):b.jsx(b.Fragment,{children:t.label})}),b.jsx("span",{"aria-hidden":"true",className:Pe("material-icons c__filter__button__icon",{opened:e==null?void 0:e.isOpen}),children:"keyboard_arrow_down"})]}),b.jsx(gd,{className:"c__dropdown-menu",children:b.jsx(Ep,{children:t.options.map(r=>b.jsxs(u.Fragment,{children:[b.jsx(Dp,{id:r.value,className:"c__dropdown-menu-item",children:b.jsxs("div",{className:"c__filter__item",children:[r.render?r.render():r.label,(t.selectedKey===r.value||r.isChecked)&&b.jsx("span",{className:"material-icons checked",children:"check"})]})},r.value),r.showSeparator&&b.jsx(hd,{})]},r.value))})})]})},Qp=({logo:t,mainButton:e,banner:n,title:r,subtitle:i})=>b.jsx("div",{className:"c__hero",children:b.jsxs("div",{className:"c__hero__display",children:[b.jsxs("div",{className:"c__hero__display__captions",children:[t,b.jsx("h2",{children:r}),b.jsx("span",{className:"c__hero__display__captions__subtitle",children:i}),e||b.jsx(Bc,{})]}),b.jsx("img",{src:n,alt:""})]})}),ev=({children:t})=>b.jsx("div",{className:"c__home-gutter",children:t}),Cd=(t,e,n=void 0)=>{const r=Array.isArray(e)?e:e.replace(/(\[(\d)\])/g,".$2").replace(/^\./,"").split(".");if(!r.length||r[0]===void 0)return t;const i=r[0];return typeof t!="object"||t===null||!(i in t)||t[i]===void 0?n:Cd(t[i],r.slice(1),n)},tv={placeholder:"Entrez votre adresse e-mail",srLabel:"Adresse e-mail",submit:"Suivant",title:"Connexion avec {linebreak}votre adresse e-mail"},nv={homepageLinkTitle:{withoutService:"Retour à l'accueil",withService:"Retour à l'accueil - {serviceName}"},license:"Sauf mention explicite de propriété intellectuelle détenue par des tiers, les contenus de ce site sont proposés sous {license}",licenseEtalab:"licence etalab-2.0",links:{a11y:{perfect:"Accessibilité : conforme",partial:"Accessibilité : partiellement conforme",bad:"Accessibilité : non conforme"},privacy:"Données personnelles",sitemap:"Plan du site",terms:"Mentions légales"}},rv={label:"Les services de La Suite numérique"},iv={homepageLinkTitle:"Accueil - {serviceName}"},ov={newWindow:"{title} - nouvelle fenêtre"},lv={help:"Qu'est-ce que ProConnect ?",loginWith:"S’identifier avec",loginWithProconnect:"{loginWith} {proconnect}",or:"ou",title:"Connexion avec ProConnect"},Sd={email:tv,footer:nv,gaufre:rv,header:iv,links:ov,proconnect:lv},av=u.createContext(Sd);function sv(){const t=u.useContext(av)||Sd;return{t:function(e,n={}){const r=Cd(t,e);if(!r)return console.warn(`Translation for key "${e}" not found`),e;if(n){const i=[];if(Object.keys(n).forEach(l=>{typeof n[l]!="string"&&i.push(l)}),!i.length)return r.replace(/{(\w+)}/g,(l,a)=>n[a]);const o=r.split(/{(.*?)}/);return b.jsx(b.Fragment,{children:o.map((l,a)=>l in n?b.jsx(u.Fragment,{children:n[l]},a):l)})}return r}}}const cv={responsive:"lasuite-gaufre-btn--responsive",small:"lasuite-gaufre-btn--small"},uv=({variant:t})=>{const{t:e}=sv(),n=t?cv[t]:"";return b.jsx("button",{type:"button",className:`lasuite-gaufre-btn ${n} lasuite-gaufre-btn--vanilla js-lasuite-gaufre-btn`,title:e("gaufre.label"),children:e("gaufre.label")})},dv=()=>b.jsxs(b.Fragment,{children:[b.jsx("script",{src:"https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js",id:"lasuite-gaufre-script",async:!0,defer:!0}),b.jsx(uv,{variant:"small"})]}),wd=({languages:t})=>{const{isOpen:e,setIsOpen:n}=ht();return b.jsx(It,{options:t,isOpen:e,onOpenChange:n,children:b.jsxs(le.Button,{onClick:()=>n(!e),color:"primary-text",className:"c__language-picker",children:[b.jsx("span",{className:"material-icons",children:"translate"}),b.jsx("span",{className:"c__language-picker__label",children:"Français"}),b.jsx("span",{className:"material-icons",children:e?"arrow_drop_up":"arrow_drop_down"})]})})},xd=({leftIcon:t,rightIcon:e,languages:n,onTogglePanel:r,isPanelOpen:i})=>{const{t:o}=le.useCunningham();return b.jsxs("div",{className:"c__header",children:[b.jsx("div",{className:"c__header__toggle-menu",children:b.jsx(le.Button,{size:"medium",onClick:r,"aria-label":o(i?"Close the menu":"Open the menu"),color:"tertiary-text",icon:b.jsx("span",{className:"material-icons clr-primary-800",children:i?"close":"menu"})})}),b.jsx("div",{className:"c__header__left",children:t}),b.jsxs("div",{className:"c__header__right",children:[n&&b.jsx("div",{className:"c__header__right__language-picker",children:b.jsx(wd,{languages:n})}),e]})]})},Bo={themes:{default:{theme:{colors:{"primary-text":"#000091","primary-050":"#F5F5FE","primary-100":"#ECECFE","primary-150":"#F4F4FD","primary-200":"#E3E3FD","primary-300":"#CACAFB","primary-400":"#8585F6","primary-500":"#6A6AF4","primary-600":"#313178","primary-700":"#272747","primary-800":"#000091","primary-900":"#21213F","secondary-text":"#fff","secondary-100":"#fee9ea","secondary-200":"#fedfdf","secondary-300":"#fdbfbf","secondary-400":"#e1020f","secondary-500":"#c91a1f","secondary-600":"#5e2b2b","secondary-700":"#3b2424","secondary-800":"#341f1f","secondary-900":"#2b1919","greyscale-text":"#303C4B","greyscale-000":"#fff","greyscale-050":"#F6F6F6","greyscale-100":"#eee","greyscale-200":"#E5E5E5","greyscale-250":"#ddd","greyscale-300":"#CECECE","greyscale-350":"#ddd","greyscale-400":"#929292","greyscale-500":"#7C7C7C","greyscale-600":"#666666","greyscale-700":"#3A3A3A","greyscale-750":"#353535","greyscale-800":"#2A2A2A","greyscale-900":"#242424","greyscale-950":"#1E1E1E","greyscale-1000":"#161616","success-text":"#1f8d49","success-100":"#dffee6","success-200":"#b8fec9","success-300":"#88fdaa","success-400":"#3bea7e","success-500":"#1f8d49","success-600":"#18753c","success-700":"#204129","success-800":"#1e2e22","success-900":"#19281d","info-text":"#0078f3","info-100":"#E8EDFF","info-200":"#DDE5FF","info-300":"#BCCDFF","info-400":"#518FFF","info-500":"#0078F3","info-600":"#0063CB","info-700":"#273961","info-800":"#222A3F","info-900":"#1D2437","warning-text":"#d64d00","warning-100":"#fff4f3","warning-200":"#ffe9e6","warning-300":"#ffded9","warning-400":"#ffbeb4","warning-500":"#d64d00","warning-600":"#b34000","warning-700":"#5e2c21","warning-800":"#3e241e","warning-900":"#361e19","danger-text":"#FFF","danger-050":"#FFF4F4","danger-100":"#FFE9E9","danger-200":"#FFDDDD","danger-300":"#FFBDBD","danger-400":"#FF5655","danger-500":"#F60700","danger-600":"#CE0500","danger-700":"#642626","danger-800":"#412121","danger-900":"#391C1C","blue-500":"#417DC4","brown-500":"#BD987A","cyan-500":"#009099","gold-500":"#C3992A","green-500":"#00A95F","olive-500":"#68A532","orange-500":"#E4794A","purple-500":"#A558A0","red-500":"#E1000F","yellow-500":"#B7A73F","rose-500":"#E18B76"},font:{sizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",ml:"0.938rem",xl:"1.25rem",t:"0.6875rem",s:"0.75rem",h1:"2rem",h2:"1.75rem",h3:"1.5rem",h4:"1.375rem",h5:"1.25rem",h6:"1.125rem","xl-alt":"5rem","lg-alt":"4.5rem","md-alt":"4rem","sm-alt":"3.5rem","xs-alt":"3rem"},weights:{thin:100,extrabold:800,black:900},families:{accent:"Marianne",base:"Marianne"}},spacings:{0:"0",none:"0",auto:"auto",bx:"2.2rem",full:"100%","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem",xxxl:"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xxs:"320px",xs:"480px",mobile:"768px",tablet:"1024px"}},components:{modal:{"width-small":"342px"},tooltip:{padding:"4px 8px","background-color":"ref(theme.colors.greyscale-1000)"},button:{"medium-height":"40px","medium-text-height":"40px","border-radius":"4px","small-height":"26px",primary:{"background--color":"ref(theme.colors.primary-text)","background--color-hover":"#1212ff","background--color-active":"#2323ff","background--color-disabled":"ref(theme.colors.greyscale-100)",color:"#fff","color-hover":"#fff","color-active":"#fff","color-focus-visible":"#fff",disabled:"ref(theme.colors.greyscale-500)"},"primary-text":{"background--color":"ref(theme.colors.primary-text)","background--color-hover":"ref(theme.colors.greyscale-100)","background--color-active":"ref(theme.colors.primary-100)","background--color-focus-visible":"#fff","background--color-disabled":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-800)","color-hover":"ref(theme.colors.primary-800)",disabled:"ref(theme.colors.greyscale-400)"},secondary:{"background--color-hover":"#F6F6F6","background--color-active":"#EDEDED","background--color-focus-visible":"ref(theme.colors.greyscale-000)","background--disabled":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-800)","border--color":"ref(theme.colors.greyscale-300)","border--color-hover":"ref(theme.colors.greyscale-300)","border--color-disabled":"ref(theme.colors.greyscale-300)",disabled:"ref(theme.colors.greyscale-400)"},tertiary:{"background--color":"ref(theme.colors.primary-100)","background--color-focus-visible":"ref(theme.colors.primary-100)","background--color-hover":"ref(theme.colors.primary-300)","background--color-active":"ref(theme.colors.primary-300)","background--disabled":"ref(theme.colors.primary-050)",color:"ref(theme.colors.primary-800)",disabled:"ref(theme.colors.primary-300)"},"tertiary-text":{"background--color-hover":"ref(theme.colors.greyscale-100)","color-hover":"ref(theme.colors.primary-text)",color:"ref(theme.colors.primary-600)",disabled:"ref(theme.colors.primary-300)"},danger:{"color-hover":"white","background--color":"ref(theme.colors.danger-600)","background--color-hover":"#FF2725","background--color-focus-visible":"ref(theme.colors.danger-600)","background--color-disabled":"ref(theme.colors.greyscale-100)","color-disabled":"ref(theme.colors.greyscale-400)"}},datagrid:{"header--color":"ref(theme.colors.greyscale-600)","header--size":"12px","header--weight":"500","body--background-color-hover":"ref(theme.colors.greyscale-100)"},"forms-checkbox":{"border-radius":"4px","border-color":"ref(theme.colors.primary-800)","background-color--hover":"ref(theme.colors.greyscale-100)","border--color-disabled":"ref(theme.colors.greyscale-200)","border--color":"ref(theme.colors.primary-800)","background--disabled":"ref(theme.colors.greyscale-200)","background--enable":"ref(theme.colors.primary-800)","check--disabled":"ref(theme.colors.greyscale-300)","check--enable":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-text)","label--color":"ref(theme.colors.greyscale-1000)","label--size":"ref(theme.font.sizes.sm)","label--weight":"500","text--color":"ref(theme.colors.greyscale-600)","text--size":"ref(theme.font.sizes.s)","text--weight":"400","text--color-disabled":"ref(theme.colors.greyscale-300)"},"forms-labelledbox":{"label-color--small":"ref(theme.colors.greyscale-950)","label-color--small--disabled":"ref(theme.colors.greyscale-300)","label-color--big":"ref(theme.colors.greyscale-950)","label-color--big--disabled":"ref(theme.colors.greyscale-300)"},"forms-radio":{"border-color":"ref(theme.colors.primary-800)","background-color":"ref(theme.colors.greyscale-000)","accent-color":"ref(theme.colors.primary-800)","accent-color-disabled":"ref(theme.colors.greyscale-300)"},"forms-switch":{"border--color-disabled":"ref(theme.colors.greyscale-300)","border--color":"ref(theme.colors.primary-800)","handle-background-color":"white","handle-background-color--disabled":"ref(theme.colors.greyscale-000)","rail-background-color--disabled":"ref(theme.colors.greyscale-000)","accent-color":"ref(theme.colors.primary-800)"},"forms-textarea":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-input":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-select":{"label-color--focus":"ref(theme.colors.greyscale-1000)","item-font-size":"14px","border-radius":"4px","border-radius-hover":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","font-size":"14px"},badge:{"font-size":"ref(theme.font.sizes.xs)","border-radius":"4px","padding-inline":"ref(theme.spacings.xs)","padding-block":"ref(theme.spacings.2xs)",accent:{"background-color":"ref(theme.colors.primary-100)",color:"ref(theme.colors.primary-600)"},neutral:{"background-color":"ref(theme.colors.greyscale-100)",color:"ref(theme.colors.greyscale-600)"},danger:{"background-color":"ref(theme.colors.danger-100)",color:"ref(theme.colors.danger-600)"},success:{"background-color":"ref(theme.colors.success-100)",color:"ref(theme.colors.success-600)"},warning:{"background-color":"ref(theme.colors.warning-100)",color:"ref(theme.colors.warning-600)"},info:{"background-color":"ref(theme.colors.info-100)",color:"ref(theme.colors.info-600)"}}}}}},wn=()=>{const[t,e]=u.useState(window.innerWidth),n=parseInt(Bo.themes.default.theme.breakpoints.mobile.replace("px","")),r=parseInt(Bo.themes.default.theme.breakpoints.tablet.replace("px","")),i=()=>{e(window.innerWidth)};u.useEffect(()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}),[]);const o=t<=n,l=t<=r,a=t>r;return{isMobile:o,isTablet:l,isDesktop:a}},Ed=({children:t,isOpen:e=!1})=>{const{isDesktop:n}=wn();return n?b.jsx("div",{className:"c__left-panel",children:t}):b.jsx("div",{className:Pe("c__left-panel__mobile",{open:e}),children:t})},{createElement:mn,createContext:fv,forwardRef:$d,useCallback:xe,useContext:Pd,useEffect:Et,useImperativeHandle:Dd,useLayoutEffect:hv,useMemo:pv,useRef:$e,useState:un}=D,fs=D[`useId${Math.random()}`.slice(0,5)],vv=hv,yi=fv(null);yi.displayName="PanelGroupContext";const $t=vv,gv=typeof fs=="function"?fs:()=>null;let mv=0;function Kl(t=null){const e=gv(),n=$e(t||e||null);return n.current===null&&(n.current=""+mv++),t??n.current}function Td({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:c,onExpand:d,onResize:f,order:h,style:v,tagName:y="div",...p}){const g=Pd(yi);if(g===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:m,expandPanel:C,getPanelSize:S,getPanelStyle:P,groupId:$,isPanelCollapsed:x,reevaluatePanelConstraints:E,registerPanel:N,resizePanel:H,unregisterPanel:j}=g,w=Kl(l),A=$e({callbacks:{onCollapse:c,onExpand:d,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:w,idIsFromProps:l!==void 0,order:h});$e({didLogMissingDefaultSizeWarning:!1}),$t(()=>{const{callbacks:L,constraints:U}=A.current,I={...U};A.current.id=w,A.current.idIsFromProps=l!==void 0,A.current.order=h,L.onCollapse=c,L.onExpand=d,L.onResize=f,U.collapsedSize=n,U.collapsible=r,U.defaultSize=i,U.maxSize=a,U.minSize=s,(I.collapsedSize!==U.collapsedSize||I.collapsible!==U.collapsible||I.maxSize!==U.maxSize||I.minSize!==U.minSize)&&E(A.current,I)}),$t(()=>{const L=A.current;return N(L),()=>{j(L)}},[h,w,N,j]),Dd(o,()=>({collapse:()=>{m(A.current)},expand:L=>{C(A.current,L)},getId(){return w},getSize(){return S(A.current)},isCollapsed(){return x(A.current)},isExpanded(){return!x(A.current)},resize:L=>{H(A.current,L)}}),[m,C,S,x,w,H]);const B=P(A.current,i);return mn(y,{...p,children:t,className:e,id:l,style:{...B,...v},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":$,"data-panel-id":w,"data-panel-size":parseFloat(""+B.flexGrow).toFixed(1)})}const Uo=$d((t,e)=>mn(Td,{...t,forwardedRef:e}));Td.displayName="Panel";Uo.displayName="forwardRef(Panel)";let Wo=null,wt=null;function yv(t,e){if(e){const n=(e&Nd)!==0,r=(e&Rd)!==0,i=(e&Md)!==0,o=(e&Ld)!==0;if(n)return i?"se-resize":o?"ne-resize":"e-resize";if(r)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function bv(){wt!==null&&(document.head.removeChild(wt),Wo=null,wt=null)}function qi(t,e){const n=yv(t,e);Wo!==n&&(Wo=n,wt===null&&(wt=document.createElement("style"),document.head.appendChild(wt)),wt.innerHTML=`*{cursor: ${n}!important;}`)}function _d(t){return t.type==="keydown"}function Id(t){return t.type.startsWith("pointer")}function Od(t){return t.type.startsWith("mouse")}function bi(t){if(Id(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(Od(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function Cv(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Sv(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function wv(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:vs(t),b:vs(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;X(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:ps(hs(n.a)),b:ps(hs(n.b))};if(i.a===i.b){const o=r.childNodes,l={a:n.a.at(-1),b:n.b.at(-1)};let a=o.length;for(;a--;){const s=o[a];if(s===l.a)return 1;if(s===l.b)return-1}}return Math.sign(i.a-i.b)}const xv=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Ev(t){var e;const n=getComputedStyle((e=kd(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function $v(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Ev(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||xv.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function hs(t){let e=t.length;for(;e--;){const n=t[e];if(X(n,"Missing node"),$v(n))return n}return null}function ps(t){return t&&Number(getComputedStyle(t).zIndex)||0}function vs(t){const e=[];for(;t;)e.push(t),t=kd(t);return e}function kd(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const Nd=1,Rd=2,Md=4,Ld=8,Pv=Cv()==="coarse";let He=[],dn=!1,ct=new Map,Ci=new Map;const Wn=new Set;function Dv(t,e,n,r,i){var o;const{ownerDocument:l}=e,a={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:i},s=(o=ct.get(l))!==null&&o!==void 0?o:0;return ct.set(l,s+1),Wn.add(a),Gr(),function(){var d;Ci.delete(t),Wn.delete(a);const f=(d=ct.get(l))!==null&&d!==void 0?d:1;if(ct.set(l,f-1),Gr(),f===1&&ct.delete(l),He.includes(a)){const h=He.indexOf(a);h>=0&&He.splice(h,1),Hl(),i("up",!0,null)}}}function gs(t){const{target:e}=t,{x:n,y:r}=bi(t);dn=!0,jl({target:e,x:n,y:r}),Gr(),He.length>0&&(qr("down",t),t.preventDefault(),t.stopPropagation())}function In(t){const{x:e,y:n}=bi(t);if(dn&&t.buttons===0&&(dn=!1,qr("up",t)),!dn){const{target:r}=t;jl({target:r,x:e,y:n})}qr("move",t),Hl(),He.length>0&&t.preventDefault()}function zt(t){const{target:e}=t,{x:n,y:r}=bi(t);Ci.clear(),dn=!1,He.length>0&&t.preventDefault(),qr("up",t),jl({target:e,x:n,y:r}),Hl(),Gr()}function jl({target:t,x:e,y:n}){He.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Wn.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:c,right:d,top:f}=a,h=Pv?l.coarse:l.fine;if(e>=c-h&&e<=d+h&&n>=f-h&&n<=s+h){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&wv(r,o)>0){let y=r,p=!1;for(;y&&!y.contains(o);){if(Sv(y.getBoundingClientRect(),a)){p=!0;break}y=y.parentElement}if(p)return}He.push(i)}})}function Yi(t,e){Ci.set(t,e)}function Hl(){let t=!1,e=!1;He.forEach(r=>{const{direction:i}=r;i==="horizontal"?t=!0:e=!0});let n=0;Ci.forEach(r=>{n|=r}),t&&e?qi("intersection",n):t?qi("horizontal",n):e?qi("vertical",n):bv()}function Gr(){ct.forEach((t,e)=>{const{body:n}=e;n.removeEventListener("contextmenu",zt),n.removeEventListener("pointerdown",gs),n.removeEventListener("pointerleave",In),n.removeEventListener("pointermove",In)}),window.removeEventListener("pointerup",zt),window.removeEventListener("pointercancel",zt),Wn.size>0&&(dn?(He.length>0&&ct.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("contextmenu",zt),n.addEventListener("pointerleave",In),n.addEventListener("pointermove",In))}),window.addEventListener("pointerup",zt),window.addEventListener("pointercancel",zt)):ct.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("pointerdown",gs,{capture:!0}),n.addEventListener("pointermove",In))}))}function qr(t,e){Wn.forEach(n=>{const{setResizeHandlerState:r}=n,i=He.includes(n);r(t,i,e)})}function Tv(){const[t,e]=un(0);return xe(()=>e(n=>n+1),[])}function X(t,e){if(!t)throw console.error(e),Error(e)}const Vl=10;function Ot(t,e,n=Vl){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function Xe(t,e,n=Vl){return Ot(t,e,n)===0}function Te(t,e,n){return Ot(t,e,n)===0}function _v(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const i=t[r],o=e[r];if(!Te(i,o,n))return!1}return!0}function on({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];X(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(Ot(n,a)<0)if(o){const s=(i+a)/2;Ot(n,s)<0?n=i:n=a}else n=a;return n=Math.min(l,n),n=parseFloat(n.toFixed(Vl)),n}function An({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(Te(t,0))return e;const l=[...e],[a,s]=r;X(a!=null,"Invalid first pivot index"),X(s!=null,"Invalid second pivot index");let c=0;if(o==="keyboard"){{const f=t<0?s:a,h=n[f];X(h,`Panel constraints not found for index ${f}`);const{collapsedSize:v=0,collapsible:y,minSize:p=0}=h;if(y){const g=e[f];if(X(g!=null,`Previous layout not found for panel index ${f}`),Te(g,v)){const m=p-g;Ot(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}{const f=t<0?a:s,h=n[f];X(h,`No panel constraints found for index ${f}`);const{collapsedSize:v=0,collapsible:y,minSize:p=0}=h;if(y){const g=e[f];if(X(g!=null,`Previous layout not found for panel index ${f}`),Te(g,p)){const m=g-v;Ot(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}}{const f=t<0?1:-1;let h=t<0?s:a,v=0;for(;;){const p=e[h];X(p!=null,`Previous layout not found for panel index ${h}`);const m=on({panelConstraints:n,panelIndex:h,size:100})-p;if(v+=m,h+=f,h<0||h>=n.length)break}const y=Math.min(Math.abs(t),Math.abs(v));t=t<0?0-y:y}{let h=t<0?a:s;for(;h>=0&&h<n.length;){const v=Math.abs(t)-Math.abs(c),y=e[h];X(y!=null,`Previous layout not found for panel index ${h}`);const p=y-v,g=on({panelConstraints:n,panelIndex:h,size:p});if(!Te(y,g)&&(c+=y-g,l[h]=g,c.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?h--:h++}}if(_v(i,l))return i;{const f=t<0?s:a,h=e[f];X(h!=null,`Previous layout not found for panel index ${f}`);const v=h+c,y=on({panelConstraints:n,panelIndex:f,size:v});if(l[f]=y,!Te(y,v)){let p=v-y,m=t<0?s:a;for(;m>=0&&m<n.length;){const C=l[m];X(C!=null,`Previous layout not found for panel index ${m}`);const S=C+p,P=on({panelConstraints:n,panelIndex:m,size:S});if(Te(C,P)||(p-=P-C,l[m]=P),Te(p,0))break;t>0?m--:m++}}}const d=l.reduce((f,h)=>h+f,0);return Te(d,100)?l:i}function Iv({layout:t,panelsArray:e,pivotIndices:n}){let r=0,i=100,o=0,l=0;const a=n[0];X(a!=null,"No pivot index found"),e.forEach((f,h)=>{const{constraints:v}=f,{maxSize:y=100,minSize:p=0}=v;h===a?(r=p,i=y):(o+=p,l+=y)});const s=Math.min(i,100-o),c=Math.max(r,100-l),d=t[a];return{valueMax:s,valueMin:c,valueNow:d}}function Zn(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function Ad(t,e,n=document){const i=Zn(t,n).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function Fd(t,e,n){const r=Ad(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function Kd(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function Si(t,e=document){const n=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return n||null}function Ov(t,e,n,r=document){var i,o,l,a;const s=Si(e,r),c=Zn(t,r),d=s?c.indexOf(s):-1,f=(i=(o=n[d])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,h=(l=(a=n[d+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[f,h]}function kv({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){$e({didWarnAboutMissingResizeHandle:!1}),$t(()=>{if(!o)return;const a=Zn(n,o);for(let s=0;s<i.length-1;s++){const{valueMax:c,valueMin:d,valueNow:f}=Iv({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),h=a[s];if(h!=null){const v=i[s];X(v,`No panel data found for index "${s}"`),h.setAttribute("aria-controls",v.id),h.setAttribute("aria-valuemax",""+Math.round(c)),h.setAttribute("aria-valuemin",""+Math.round(d)),h.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{a.forEach((s,c)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[n,r,i,o]),Et(()=>{if(!o)return;const a=e.current;X(a,"Eager values not found");const{panelDataArray:s}=a,c=Kd(n,o);X(c!=null,`No group found for id "${n}"`);const d=Zn(n,o);X(d,`No resize handles found for group id "${n}"`);const f=d.map(h=>{const v=h.getAttribute("data-panel-resize-handle-id");X(v,"Resize handle element has no handle id attribute");const[y,p]=Ov(n,v,s,o);if(y==null||p==null)return()=>{};const g=m=>{if(!m.defaultPrevented)switch(m.key){case"Enter":{m.preventDefault();const C=s.findIndex(S=>S.id===y);if(C>=0){const S=s[C];X(S,`No panel data found for index ${C}`);const P=r[C],{collapsedSize:$=0,collapsible:x,minSize:E=0}=S.constraints;if(P!=null&&x){const N=An({delta:Te(P,$)?E-$:$-P,initialLayout:r,panelConstraints:s.map(H=>H.constraints),pivotIndices:Fd(n,v,o),prevLayout:r,trigger:"keyboard"});r!==N&&l(N)}}break}}};return h.addEventListener("keydown",g),()=>{h.removeEventListener("keydown",g)}});return()=>{f.forEach(h=>h())}},[o,t,e,n,r,i,l])}function ms(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function jd(t,e){const n=t==="horizontal",{x:r,y:i}=bi(e);return n?r:i}function Nv(t,e,n,r,i){const o=n==="horizontal",l=Si(e,i);X(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute("data-panel-group-id");X(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const c=jd(n,t),d=Kd(a,i);X(d,`No group element found for id "${a}"`);const f=d.getBoundingClientRect(),h=o?f.width:f.height;return(c-s)/h*100}function Rv(t,e,n,r,i,o){if(_d(t)){const l=n==="horizontal";let a=0;t.shiftKey?a=100:i!=null?a=i:a=10;let s=0;switch(t.key){case"ArrowDown":s=l?0:a;break;case"ArrowLeft":s=l?-a:0;break;case"ArrowRight":s=l?a:0;break;case"ArrowUp":s=l?0:-a;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return r==null?0:Nv(t,e,n,r,o)}function Mv({panelDataArray:t}){const e=Array(t.length),n=t.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<t.length;o++){const l=n[o];X(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;a!=null&&(r++,e[o]=a,i-=a)}for(let o=0;o<t.length;o++){const l=n[o];X(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=t.length-r,c=i/s;r++,e[o]=c,i-=c}return e}function Bt(t,e,n){e.forEach((r,i)=>{const o=t[i];X(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:c=0,collapsible:d}=a,f=n[s];if(f==null||r!==f){n[s]=r;const{onCollapse:h,onExpand:v,onResize:y}=l;y&&y(r,f),d&&(h||v)&&(v&&(f==null||Xe(f,c))&&!Xe(r,c)&&v(),h&&(f==null||!Xe(f,c))&&Xe(r,c)&&h())}})}function fr(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function Lv({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:i,precision:o=3}){const l=n[i];let a;return l==null?a=t!=null?t.toPrecision(o):"1":r.length===1?a="1":a=l.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Av(t,e=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function ys(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function Hd(t){return`react-resizable-panels:${t}`}function Vd(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:i,order:o}=e;return i?r:o?`${o}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function zd(t,e){try{const n=Hd(t),r=e.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function Fv(t,e,n){var r,i;const o=(r=zd(t,n))!==null&&r!==void 0?r:{},l=Vd(e);return(i=o[l])!==null&&i!==void 0?i:null}function Kv(t,e,n,r,i){var o;const l=Hd(t),a=Vd(e),s=(o=zd(t,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(c){console.error(c)}}function bs({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((o,l)=>o+l,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(o=>`${o}%`).join(", ")}`);if(!Te(r,100)&&n.length>0)for(let o=0;o<e.length;o++){const l=n[o];X(l!=null,`No layout data found for index ${o}`);const a=100/r*l;n[o]=a}let i=0;for(let o=0;o<e.length;o++){const l=n[o];X(l!=null,`No layout data found for index ${o}`);const a=on({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,n[o]=a)}if(!Te(i,0))for(let o=0;o<e.length;o++){const l=n[o];X(l!=null,`No layout data found for index ${o}`);const a=l+i,s=on({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,n[o]=s,Te(i,0)))break}return n}const jv=100,Fn={getItem:t=>(ys(Fn),Fn.getItem(t)),setItem:(t,e)=>{ys(Fn),Fn.setItem(t,e)}},Cs={};function Bd({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=Fn,style:c,tagName:d="div",...f}){const h=Kl(o),v=$e(null),[y,p]=un(null),[g,m]=un([]),C=Tv(),S=$e({}),P=$e(new Map),$=$e(0),x=$e({autoSaveId:t,direction:r,dragState:y,id:h,keyboardResizeBy:a,onLayout:l,storage:s}),E=$e({layout:g,panelDataArray:[],panelDataArrayChanged:!1});$e({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),Dd(i,()=>({getId:()=>x.current.id,getLayout:()=>{const{layout:O}=E.current;return O},setLayout:O=>{const{onLayout:K}=x.current,{layout:M,panelDataArray:V}=E.current,z=bs({layout:O,panelConstraints:V.map(W=>W.constraints)});ms(M,z)||(m(z),E.current.layout=z,K&&K(z),Bt(V,z,S.current))}}),[]),$t(()=>{x.current.autoSaveId=t,x.current.direction=r,x.current.dragState=y,x.current.id=h,x.current.onLayout=l,x.current.storage=s}),kv({committedValuesRef:x,eagerValuesRef:E,groupId:h,layout:g,panelDataArray:E.current.panelDataArray,setLayout:m,panelGroupElement:v.current}),Et(()=>{const{panelDataArray:O}=E.current;if(t){if(g.length===0||g.length!==O.length)return;let K=Cs[t];K==null&&(K=Av(Kv,jv),Cs[t]=K);const M=[...O],V=new Map(P.current);K(t,M,V,g,s)}},[t,g,s]),Et(()=>{});const N=xe(O=>{const{onLayout:K}=x.current,{layout:M,panelDataArray:V}=E.current;if(O.constraints.collapsible){const z=V.map(se=>se.constraints),{collapsedSize:W=0,panelSize:q,pivotIndices:J}=gt(V,O,M);if(X(q!=null,`Panel size not found for panel "${O.id}"`),!Xe(q,W)){P.current.set(O.id,q);const G=tn(V,O)===V.length-1?q-W:W-q,te=An({delta:G,initialLayout:M,panelConstraints:z,pivotIndices:J,prevLayout:M,trigger:"imperative-api"});fr(M,te)||(m(te),E.current.layout=te,K&&K(te),Bt(V,te,S.current))}}},[]),H=xe((O,K)=>{const{onLayout:M}=x.current,{layout:V,panelDataArray:z}=E.current;if(O.constraints.collapsible){const W=z.map(ue=>ue.constraints),{collapsedSize:q=0,panelSize:J=0,minSize:se=0,pivotIndices:G}=gt(z,O,V),te=K??se;if(Xe(J,q)){const ue=P.current.get(O.id),ee=ue!=null&&ue>=te?ue:te,xn=tn(z,O)===z.length-1?J-ee:ee-J,we=An({delta:xn,initialLayout:V,panelConstraints:W,pivotIndices:G,prevLayout:V,trigger:"imperative-api"});fr(V,we)||(m(we),E.current.layout=we,M&&M(we),Bt(z,we,S.current))}}},[]),j=xe(O=>{const{layout:K,panelDataArray:M}=E.current,{panelSize:V}=gt(M,O,K);return X(V!=null,`Panel size not found for panel "${O.id}"`),V},[]),w=xe((O,K)=>{const{panelDataArray:M}=E.current,V=tn(M,O);return Lv({defaultSize:K,dragState:y,layout:g,panelData:M,panelIndex:V})},[y,g]),A=xe(O=>{const{layout:K,panelDataArray:M}=E.current,{collapsedSize:V=0,collapsible:z,panelSize:W}=gt(M,O,K);return X(W!=null,`Panel size not found for panel "${O.id}"`),z===!0&&Xe(W,V)},[]),B=xe(O=>{const{layout:K,panelDataArray:M}=E.current,{collapsedSize:V=0,collapsible:z,panelSize:W}=gt(M,O,K);return X(W!=null,`Panel size not found for panel "${O.id}"`),!z||Ot(W,V)>0},[]),L=xe(O=>{const{panelDataArray:K}=E.current;K.push(O),K.sort((M,V)=>{const z=M.order,W=V.order;return z==null&&W==null?0:z==null?-1:W==null?1:z-W}),E.current.panelDataArrayChanged=!0,C()},[C]);$t(()=>{if(E.current.panelDataArrayChanged){E.current.panelDataArrayChanged=!1;const{autoSaveId:O,onLayout:K,storage:M}=x.current,{layout:V,panelDataArray:z}=E.current;let W=null;if(O){const J=Fv(O,z,M);J&&(P.current=new Map(Object.entries(J.expandToSizes)),W=J.layout)}W==null&&(W=Mv({panelDataArray:z}));const q=bs({layout:W,panelConstraints:z.map(J=>J.constraints)});ms(V,q)||(m(q),E.current.layout=q,K&&K(q),Bt(z,q,S.current))}}),$t(()=>{const O=E.current;return()=>{O.layout=[]}},[]);const U=xe(O=>{let K=!1;const M=v.current;return M&&window.getComputedStyle(M,null).getPropertyValue("direction")==="rtl"&&(K=!0),function(z){z.preventDefault();const W=v.current;if(!W)return()=>null;const{direction:q,dragState:J,id:se,keyboardResizeBy:G,onLayout:te}=x.current,{layout:ue,panelDataArray:ee}=E.current,{initialLayout:rt}=J??{},xn=Fd(se,O,W);let we=Rv(z,O,q,J,G,W);const oa=q==="horizontal";oa&&K&&(we=-we);const Ff=ee.map(Kf=>Kf.constraints),En=An({delta:we,initialLayout:rt??ue,panelConstraints:Ff,pivotIndices:xn,prevLayout:ue,trigger:_d(z)?"keyboard":"mouse-or-touch"}),la=!fr(ue,En);(Id(z)||Od(z))&&$.current!=we&&($.current=we,!la&&we!==0?oa?Yi(O,we<0?Nd:Rd):Yi(O,we<0?Md:Ld):Yi(O,0)),la&&(m(En),E.current.layout=En,te&&te(En),Bt(ee,En,S.current))}},[]),I=xe((O,K)=>{const{onLayout:M}=x.current,{layout:V,panelDataArray:z}=E.current,W=z.map(ue=>ue.constraints),{panelSize:q,pivotIndices:J}=gt(z,O,V);X(q!=null,`Panel size not found for panel "${O.id}"`);const G=tn(z,O)===z.length-1?q-K:K-q,te=An({delta:G,initialLayout:V,panelConstraints:W,pivotIndices:J,prevLayout:V,trigger:"imperative-api"});fr(V,te)||(m(te),E.current.layout=te,M&&M(te),Bt(z,te,S.current))},[]),R=xe((O,K)=>{const{layout:M,panelDataArray:V}=E.current,{collapsedSize:z=0,collapsible:W}=K,{collapsedSize:q=0,collapsible:J,maxSize:se=100,minSize:G=0}=O.constraints,{panelSize:te}=gt(V,O,M);te!=null&&(W&&J&&Xe(te,z)?Xe(z,q)||I(O,q):te<G?I(O,G):te>se&&I(O,se))},[I]),k=xe((O,K)=>{const{direction:M}=x.current,{layout:V}=E.current;if(!v.current)return;const z=Si(O,v.current);X(z,`Drag handle element not found for id "${O}"`);const W=jd(M,K);p({dragHandleId:O,dragHandleRect:z.getBoundingClientRect(),initialCursorPosition:W,initialLayout:V})},[]),Z=xe(()=>{p(null)},[]),_=xe(O=>{const{panelDataArray:K}=E.current,M=tn(K,O);M>=0&&(K.splice(M,1),delete S.current[O.id],E.current.panelDataArrayChanged=!0,C())},[C]),F=pv(()=>({collapsePanel:N,direction:r,dragState:y,expandPanel:H,getPanelSize:j,getPanelStyle:w,groupId:h,isPanelCollapsed:A,isPanelExpanded:B,reevaluatePanelConstraints:R,registerPanel:L,registerResizeHandle:U,resizePanel:I,startDragging:k,stopDragging:Z,unregisterPanel:_,panelGroupElement:v.current}),[N,y,r,H,j,w,h,A,B,R,L,U,I,k,Z,_]),T={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return mn(yi.Provider,{value:F},mn(d,{...f,children:e,className:n,id:o,ref:v,style:{...T,...c},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":h}))}const Ud=$d((t,e)=>mn(Bd,{...t,forwardedRef:e}));Bd.displayName="PanelGroup";Ud.displayName="forwardRef(PanelGroup)";function tn(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function gt(t,e,n){const r=tn(t,e),o=r===t.length-1?[r-1,r]:[r,r+1],l=n[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function Hv({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){Et(()=>{if(t||n==null||r==null)return;const i=Si(e,r);if(i==null)return;const o=l=>{if(!l.defaultPrevented)switch(l.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{l.preventDefault(),n(l);break}case"F6":{l.preventDefault();const a=i.getAttribute("data-panel-group-id");X(a,`No group element found for id "${a}"`);const s=Zn(a,r),c=Ad(a,e,r);X(c!==null,`No resize element found for id "${e}"`);const d=l.shiftKey?c>0?c-1:s.length-1:c+1<s.length?c+1:0;s[d].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,t,e,n])}function Wd({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:l,onFocus:a,style:s={},tabIndex:c=0,tagName:d="div",...f}){var h,v;const y=$e(null),p=$e({onDragging:l});Et(()=>{p.current.onDragging=l});const g=Pd(yi);if(g===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:m,groupId:C,registerResizeHandle:S,startDragging:P,stopDragging:$,panelGroupElement:x}=g,E=Kl(i),[N,H]=un("inactive"),[j,w]=un(!1),[A,B]=un(null),L=$e({state:N});$t(()=>{L.current.state=N}),Et(()=>{if(n)B(null);else{const k=S(E);B(()=>k)}},[n,E,S]);const U=(h=r==null?void 0:r.coarse)!==null&&h!==void 0?h:15,I=(v=r==null?void 0:r.fine)!==null&&v!==void 0?v:5;return Et(()=>{if(n||A==null)return;const k=y.current;return X(k,"Element ref not attached"),Dv(E,k,m,{coarse:U,fine:I},(_,F,T)=>{if(F)switch(_){case"down":{H("drag"),X(T,'Expected event to be defined for "down" action'),P(E,T);const{onDragging:O}=p.current;O&&O(!0);break}case"move":{const{state:O}=L.current;O!=="drag"&&H("hover"),X(T,'Expected event to be defined for "move" action'),A(T);break}case"up":{H("hover"),$();const{onDragging:O}=p.current;O&&O(!1);break}}else H("inactive")})},[U,m,n,I,S,E,A,P,$]),Hv({disabled:n,handleId:E,resizeHandler:A,panelGroupElement:x}),mn(d,{...f,children:t,className:e,id:i,onBlur:()=>{w(!1),o==null||o()},onFocus:()=>{w(!0),a==null||a()},ref:y,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...s},tabIndex:c,"data-panel-group-direction":m,"data-panel-group-id":C,"data-resize-handle":"","data-resize-handle-active":N==="drag"?"pointer":j?"keyboard":void 0,"data-resize-handle-state":N,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":E})}Wd.displayName="PanelResizeHandle";const Vv=({children:t,isOpen:e})=>{const{isDesktop:n}=wn();return n?b.jsx("div",{className:Pe("c__right-panel",{open:e}),children:t}):b.jsx("div",{className:Pe("c__right-panel__mobile",{open:e}),children:t})},zv=(t,e,n)=>{const[r,i]=u.useState(typeof e>"u"?t:e),o=l=>{n?n(l):i(l)};return u.useEffect(()=>{n&&typeof e<"u"&&e!==r&&i(e)},[e]),[r,o]},Bv=({icon:t,children:e,hideLeftPanelOnDesktop:n=!1,leftPanelContent:r,rightPanelContent:i,rightHeaderContent:o,languages:l,enableResize:a=!1,rightPanelIsOpen:s=!1,...c})=>{const[d,f]=zv(!1,c.isLeftPanelOpen,c.setIsLeftPanelOpen),{isDesktop:h}=wn(),v=u.useRef(null),[y,p]=u.useState(hr(300,h)),[g,m]=u.useState(hr(450,h)),C=()=>{f(!d)};u.useEffect(()=>{const $=()=>{const x=Math.round(hr(300,h)),E=Math.round(Math.min(hr(450,h),40));p(h?x:0),m(a?E:x)};return $(),window.addEventListener("resize",()=>{$()}),()=>{window.removeEventListener("resize",$)}},[h,a]);const S=h?!n:!0,P=h?!n:d;return b.jsxs("div",{className:"c__main-layout",children:[b.jsx("div",{className:"c__main-layout__header",children:b.jsx(xd,{onTogglePanel:C,isPanelOpen:d,rightIcon:o,leftIcon:t,languages:l})}),b.jsx("div",{className:"c__main-layout__content",children:b.jsxs(Ud,{autoSaveId:"persistance",direction:"horizontal",children:[S&&b.jsxs(b.Fragment,{children:[b.jsx(Uo,{ref:v,order:0,defaultSize:y,minSize:y,maxSize:g,children:b.jsx(Ed,{isOpen:P,children:r})}),h&&b.jsx(Wd,{className:"bg-greyscale-200",style:{width:"1px"}})]}),b.jsx(Uo,{order:1,children:b.jsxs("div",{className:"c__main-layout__content__center",children:[b.jsx("div",{className:"c__main-layout__content__center__children",children:e}),b.jsx(Vv,{isOpen:s,children:i})]})})]})})]})},hr=(t,e)=>{if(!e)return 0;const n=window.innerWidth;return t/n*100},Uv=52,zl=({size:t="sm"})=>b.jsx("div",{className:["c__spinner",t].join(" ")}),Zd=({children:t,text:e,...n})=>b.jsxs("div",{className:"suite__label__container",children:[b.jsx("label",{...n,children:t}),e&&b.jsx("span",{className:"suite__label__container__description",children:e})]}),Wv=({label:t,text:e,labelSide:n="right",children:r})=>b.jsxs("div",{className:Pe("c__with-label",{[n]:!0}),children:[b.jsx(Zd,{children:t,text:e}),r]});var Ss=1,Zv=.9,Gv=.8,qv=.17,Xi=.1,Ji=.999,Yv=.9999,Xv=.99,Jv=/[\\\/_+.#"@\[\(\{&]/,Qv=/[\\\/_+.#"@\[\(\{&]/g,eg=/[\s-]/,Gd=/[\s-]/g;function Zo(t,e,n,r,i,o,l){if(o===e.length)return i===t.length?Ss:Xv;var a=`${i},${o}`;if(l[a]!==void 0)return l[a];for(var s=r.charAt(o),c=n.indexOf(s,i),d=0,f,h,v,y;c>=0;)f=Zo(t,e,n,r,c+1,o+1,l),f>d&&(c===i?f*=Ss:Jv.test(t.charAt(c-1))?(f*=Gv,v=t.slice(i,c-1).match(Qv),v&&i>0&&(f*=Math.pow(Ji,v.length))):eg.test(t.charAt(c-1))?(f*=Zv,y=t.slice(i,c-1).match(Gd),y&&i>0&&(f*=Math.pow(Ji,y.length))):(f*=qv,i>0&&(f*=Math.pow(Ji,c-i))),t.charAt(c)!==e.charAt(o)&&(f*=Yv)),(f<Xi&&n.charAt(c-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(c-1)!==r.charAt(o))&&(h=Zo(t,e,n,r,c+1,o+2,l),h*Xi>f&&(f=h*Xi)),f>d&&(d=f),c=n.indexOf(s,c+1);return l[a]=d,d}function ws(t){return t.toLowerCase().replace(Gd," ")}function tg(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,Zo(t,e,ws(t),ws(e),0,0,{})}function dt(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t==null||t(i),n===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function xs(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function qd(...t){return e=>{let n=!1;const r=t.map(i=>{const o=xs(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():xs(t[i],null)}}}}function jt(...t){return D.useCallback(qd(...t),t)}function ng(t,e){const n=D.createContext(e),r=o=>{const{children:l,...a}=o,s=D.useMemo(()=>a,Object.values(a));return b.jsx(n.Provider,{value:s,children:l})};r.displayName=t+"Provider";function i(o){const l=D.useContext(n);if(l)return l;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${t}\``)}return[r,i]}function rg(t,e=[]){let n=[];function r(o,l){const a=D.createContext(l),s=n.length;n=[...n,l];const c=f=>{var m;const{scope:h,children:v,...y}=f,p=((m=h==null?void 0:h[t])==null?void 0:m[s])||a,g=D.useMemo(()=>y,Object.values(y));return b.jsx(p.Provider,{value:g,children:v})};c.displayName=o+"Provider";function d(f,h){var p;const v=((p=h==null?void 0:h[t])==null?void 0:p[s])||a,y=D.useContext(v);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const i=()=>{const o=n.map(l=>D.createContext(l));return function(a){const s=(a==null?void 0:a[t])||o;return D.useMemo(()=>({[`__scope${t}`]:{...a,[t]:s}}),[a,s])}};return i.scopeName=t,[r,ig(i,...e)]}function ig(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((a,{useScope:s,scopeName:c})=>{const f=s(o)[`__scope${c}`];return{...a,...f}},{});return D.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return n.scopeName=e.scopeName,n}var Gn=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},og=D[" useId ".trim().toString()]||(()=>{}),lg=0;function Qe(t){const[e,n]=D.useState(og());return Gn(()=>{n(r=>r??String(lg++))},[t]),e?`radix-${e}`:""}var ag=D[" useInsertionEffect ".trim().toString()]||Gn;function sg({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[i,o,l]=cg({defaultProp:e,onChange:n}),a=t!==void 0,s=a?t:i;{const d=D.useRef(t!==void 0);D.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const c=D.useCallback(d=>{var f;if(a){const h=ug(d)?d(t):d;h!==t&&((f=l.current)==null||f.call(l,h))}else o(d)},[a,t,o,l]);return[s,c]}function cg({defaultProp:t,onChange:e}){const[n,r]=D.useState(t),i=D.useRef(n),o=D.useRef(e);return ag(()=>{o.current=e},[e]),D.useEffect(()=>{var l;i.current!==n&&((l=o.current)==null||l.call(o,n),i.current=n)},[n,i]),[n,r,o]}function ug(t){return typeof t=="function"}function Yd(t){const e=dg(t),n=D.forwardRef((r,i)=>{const{children:o,...l}=r,a=D.Children.toArray(o),s=a.find(hg);if(s){const c=s.props.children,d=a.map(f=>f===s?D.Children.count(c)>1?D.Children.only(null):D.isValidElement(c)?c.props.children:null:f);return b.jsx(e,{...l,ref:i,children:D.isValidElement(c)?D.cloneElement(c,void 0,d):null})}return b.jsx(e,{...l,ref:i,children:o})});return n.displayName=`${t}.Slot`,n}function dg(t){const e=D.forwardRef((n,r)=>{const{children:i,...o}=n;if(D.isValidElement(i)){const l=vg(i),a=pg(o,i.props);return i.type!==D.Fragment&&(a.ref=r?qd(r,l):l),D.cloneElement(i,a)}return D.Children.count(i)>1?D.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var fg=Symbol("radix.slottable");function hg(t){return D.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===fg}function pg(t,e){const n={...e};for(const r in e){const i=t[r],o=e[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{const s=o(...a);return i(...a),s}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}function vg(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var gg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],me=gg.reduce((t,e)=>{const n=Yd(`Primitive.${e}`),r=D.forwardRef((i,o)=>{const{asChild:l,...a}=i,s=l?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(s,{...a,ref:o})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function mg(t,e){t&&jf.flushSync(()=>t.dispatchEvent(e))}function qn(t){const e=D.useRef(t);return D.useEffect(()=>{e.current=t}),D.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function yg(t,e=globalThis==null?void 0:globalThis.document){const n=qn(t);D.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var bg="DismissableLayer",Go="dismissableLayer.update",Cg="dismissableLayer.pointerDownOutside",Sg="dismissableLayer.focusOutside",Es,Xd=D.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Jd=D.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:a,...s}=t,c=D.useContext(Xd),[d,f]=D.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=D.useState({}),y=jt(e,E=>f(E)),p=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=p.indexOf(g),C=d?p.indexOf(d):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,P=C>=m,$=Eg(E=>{const N=E.target,H=[...c.branches].some(j=>j.contains(N));!P||H||(i==null||i(E),l==null||l(E),E.defaultPrevented||a==null||a())},h),x=$g(E=>{const N=E.target;[...c.branches].some(j=>j.contains(N))||(o==null||o(E),l==null||l(E),E.defaultPrevented||a==null||a())},h);return yg(E=>{C===c.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),D.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Es=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),$s(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Es)}},[d,h,n,c]),D.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),$s())},[d,c]),D.useEffect(()=>{const E=()=>v({});return document.addEventListener(Go,E),()=>document.removeEventListener(Go,E)},[]),b.jsx(me.div,{...s,ref:y,style:{pointerEvents:S?P?"auto":"none":void 0,...t.style},onFocusCapture:dt(t.onFocusCapture,x.onFocusCapture),onBlurCapture:dt(t.onBlurCapture,x.onBlurCapture),onPointerDownCapture:dt(t.onPointerDownCapture,$.onPointerDownCapture)})});Jd.displayName=bg;var wg="DismissableLayerBranch",xg=D.forwardRef((t,e)=>{const n=D.useContext(Xd),r=D.useRef(null),i=jt(e,r);return D.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),b.jsx(me.div,{...t,ref:i})});xg.displayName=wg;function Eg(t,e=globalThis==null?void 0:globalThis.document){const n=qn(t),r=D.useRef(!1),i=D.useRef(()=>{});return D.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let s=function(){Qd(Cg,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=s,e.addEventListener("click",i.current,{once:!0})):s()}else e.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),e.removeEventListener("pointerdown",o),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function $g(t,e=globalThis==null?void 0:globalThis.document){const n=qn(t),r=D.useRef(!1);return D.useEffect(()=>{const i=o=>{o.target&&!r.current&&Qd(Sg,n,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function $s(){const t=new CustomEvent(Go);document.dispatchEvent(t)}function Qd(t,e,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?mg(i,o):i.dispatchEvent(o)}var Qi="focusScope.autoFocusOnMount",eo="focusScope.autoFocusOnUnmount",Ps={bubbles:!1,cancelable:!0},Pg="FocusScope",e2=D.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=t,[a,s]=D.useState(null),c=qn(i),d=qn(o),f=D.useRef(null),h=jt(e,p=>s(p)),v=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(r){let p=function(S){if(v.paused||!a)return;const P=S.target;a.contains(P)?f.current=P:ot(f.current,{select:!0})},g=function(S){if(v.paused||!a)return;const P=S.relatedTarget;P!==null&&(a.contains(P)||ot(f.current,{select:!0}))},m=function(S){if(document.activeElement===document.body)for(const $ of S)$.removedNodes.length>0&&ot(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",g);const C=new MutationObserver(m);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),C.disconnect()}}},[r,a,v.paused]),D.useEffect(()=>{if(a){Ts.add(v);const p=document.activeElement;if(!a.contains(p)){const m=new CustomEvent(Qi,Ps);a.addEventListener(Qi,c),a.dispatchEvent(m),m.defaultPrevented||(Dg(kg(t2(a)),{select:!0}),document.activeElement===p&&ot(a))}return()=>{a.removeEventListener(Qi,c),setTimeout(()=>{const m=new CustomEvent(eo,Ps);a.addEventListener(eo,d),a.dispatchEvent(m),m.defaultPrevented||ot(p??document.body,{select:!0}),a.removeEventListener(eo,d),Ts.remove(v)},0)}}},[a,c,d,v]);const y=D.useCallback(p=>{if(!n&&!r||v.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,m=document.activeElement;if(g&&m){const C=p.currentTarget,[S,P]=Tg(C);S&&P?!p.shiftKey&&m===P?(p.preventDefault(),n&&ot(S,{select:!0})):p.shiftKey&&m===S&&(p.preventDefault(),n&&ot(P,{select:!0})):m===C&&p.preventDefault()}},[n,r,v.paused]);return b.jsx(me.div,{tabIndex:-1,...l,ref:h,onKeyDown:y})});e2.displayName=Pg;function Dg(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(ot(r,{select:e}),document.activeElement!==n)return}function Tg(t){const e=t2(t),n=Ds(e,t),r=Ds(e.reverse(),t);return[n,r]}function t2(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function Ds(t,e){for(const n of t)if(!_g(n,{upTo:e}))return n}function _g(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function Ig(t){return t instanceof HTMLInputElement&&"select"in t}function ot(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&Ig(t)&&e&&t.select()}}var Ts=Og();function Og(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=_s(t,e),t.unshift(e)},remove(e){var n;t=_s(t,e),(n=t[0])==null||n.resume()}}}function _s(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function kg(t){return t.filter(e=>e.tagName!=="A")}var Ng="Portal",n2=D.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[i,o]=D.useState(!1);Gn(()=>o(!0),[]);const l=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?Lt.createPortal(b.jsx(me.div,{...r,ref:e}),l):null});n2.displayName=Ng;function Rg(t,e){return D.useReducer((n,r)=>e[n][r]??n,t)}var wi=t=>{const{present:e,children:n}=t,r=Mg(e),i=typeof n=="function"?n({present:r.isPresent}):D.Children.only(n),o=jt(r.ref,Lg(i));return typeof n=="function"||r.isPresent?D.cloneElement(i,{ref:o}):null};wi.displayName="Presence";function Mg(t){const[e,n]=D.useState(),r=D.useRef(null),i=D.useRef(t),o=D.useRef("none"),l=t?"mounted":"unmounted",[a,s]=Rg(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D.useEffect(()=>{const c=pr(r.current);o.current=a==="mounted"?c:"none"},[a]),Gn(()=>{const c=r.current,d=i.current;if(d!==t){const h=o.current,v=pr(c);t?s("MOUNT"):v==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(d&&h!==v?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),Gn(()=>{if(e){let c;const d=e.ownerDocument.defaultView??window,f=v=>{const p=pr(r.current).includes(v.animationName);if(v.target===e&&p&&(s("ANIMATION_END"),!i.current)){const g=e.style.animationFillMode;e.style.animationFillMode="forwards",c=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=g)})}},h=v=>{v.target===e&&(o.current=pr(r.current))};return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{d.clearTimeout(c),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:D.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function pr(t){return(t==null?void 0:t.animationName)||"none"}function Lg(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var to=0;function Ag(){D.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Is()),document.body.insertAdjacentElement("beforeend",t[1]??Is()),to++,()=>{to===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),to--}},[])}function Is(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Pr="right-scroll-bar-position",Dr="width-before-scroll-bar",Fg="with-scroll-bars-hidden",Kg="--removed-body-scroll-bar-size";function no(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function jg(t,e){var n=u.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}var Hg=typeof window<"u"?D.useLayoutEffect:D.useEffect,Os=new WeakMap;function Vg(t,e){var n=jg(null,function(r){return t.forEach(function(i){return no(i,r)})});return Hg(function(){var r=Os.get(n);if(r){var i=new Set(r),o=new Set(t),l=n.current;i.forEach(function(a){o.has(a)||no(a,null)}),o.forEach(function(a){i.has(a)||no(a,l)})}Os.set(n,t)},[t]),n}function zg(t){return t}function Bg(t,e){e===void 0&&(e=zg);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(o){var l=e(o,r);return n.push(l),function(){n=n.filter(function(a){return a!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var a=n;n=[],a.forEach(o),l=n}var s=function(){var d=l;l=[],d.forEach(o)},c=function(){return Promise.resolve().then(s)};c(),n={push:function(d){l.push(d),c()},filter:function(d){return l=l.filter(d),n}}}};return i}function Ug(t){t===void 0&&(t={});var e=Bg(null);return e.options=Ze({async:!0,ssr:!1},t),e}var r2=function(t){var e=t.sideCar,n=mu(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return D.createElement(r,Ze({},n))};r2.isSideCarExport=!0;function Wg(t,e){return t.useMedium(e),r2}var i2=Ug(),ro=function(){},xi=D.forwardRef(function(t,e){var n=D.useRef(null),r=D.useState({onScrollCapture:ro,onWheelCapture:ro,onTouchMoveCapture:ro}),i=r[0],o=r[1],l=t.forwardProps,a=t.children,s=t.className,c=t.removeScrollBar,d=t.enabled,f=t.shards,h=t.sideCar,v=t.noRelative,y=t.noIsolation,p=t.inert,g=t.allowPinchZoom,m=t.as,C=m===void 0?"div":m,S=t.gapMode,P=mu(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),$=h,x=Vg([n,e]),E=Ze(Ze({},P),i);return D.createElement(D.Fragment,null,d&&D.createElement($,{sideCar:i2,removeScrollBar:c,shards:f,noRelative:v,noIsolation:y,inert:p,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:S}),l?D.cloneElement(D.Children.only(a),Ze(Ze({},E),{ref:x})):D.createElement(C,Ze({},E,{className:s,ref:x}),a))});xi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xi.classNames={fullWidth:Dr,zeroRight:Pr};var Zg=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Gg(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=Zg();return e&&t.setAttribute("nonce",e),t}function qg(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function Yg(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Xg=function(){var t=0,e=null;return{add:function(n){t==0&&(e=Gg())&&(qg(e,n),Yg(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Jg=function(){var t=Xg();return function(e,n){D.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},o2=function(){var t=Jg(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},Qg={left:0,top:0,right:0,gap:0},io=function(t){return parseInt(t||"",10)||0},e4=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[io(n),io(r),io(i)]},t4=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return Qg;var e=e4(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},n4=o2(),fn="data-scroll-locked",r4=function(t,e,n,r){var i=t.left,o=t.top,l=t.right,a=t.gap;return n===void 0&&(n="margin"),`
|
|
45
|
+
.`.concat(Fg,` {
|
|
46
46
|
overflow: hidden `).concat(r,`;
|
|
47
47
|
padding-right: `).concat(a,"px ").concat(r,`;
|
|
48
48
|
}
|
|
@@ -76,24 +76,24 @@ React keys must be passed directly to JSX without using spread:
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
body[`).concat(fn,`] {
|
|
79
|
-
`).concat(
|
|
79
|
+
`).concat(Kg,": ").concat(a,`px;
|
|
80
80
|
}
|
|
81
|
-
`)},ks=function(){var t=parseInt(document.body.getAttribute(fn)||"0",10);return isFinite(t)?t:0},
|
|
81
|
+
`)},ks=function(){var t=parseInt(document.body.getAttribute(fn)||"0",10);return isFinite(t)?t:0},i4=function(){D.useEffect(function(){return document.body.setAttribute(fn,(ks()+1).toString()),function(){var t=ks()-1;t<=0?document.body.removeAttribute(fn):document.body.setAttribute(fn,t.toString())}},[])},o4=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r;i4();var o=D.useMemo(function(){return t4(i)},[i]);return D.createElement(n4,{styles:r4(o,!e,i,n?"":"!important")})},qo=!1;if(typeof window<"u")try{var vr=Object.defineProperty({},"passive",{get:function(){return qo=!0,!0}});window.addEventListener("test",vr,vr),window.removeEventListener("test",vr,vr)}catch{qo=!1}var Ut=qo?{passive:!1}:!1,l4=function(t){return t.tagName==="TEXTAREA"},l2=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!l4(t)&&n[e]==="visible")},a4=function(t){return l2(t,"overflowY")},s4=function(t){return l2(t,"overflowX")},Ns=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=a2(t,r);if(i){var o=s2(t,r),l=o[1],a=o[2];if(l>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},c4=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},u4=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},a2=function(t,e){return t==="v"?a4(e):s4(e)},s2=function(t,e){return t==="v"?c4(e):u4(e)},d4=function(t,e){return t==="h"&&e==="rtl"?-1:1},f4=function(t,e,n,r,i){var o=d4(t,window.getComputedStyle(e).direction),l=o*r,a=n.target,s=e.contains(a),c=!1,d=l>0,f=0,h=0;do{if(!a)break;var v=s2(t,a),y=v[0],p=v[1],g=v[2],m=p-g-o*y;(y||m)&&a2(t,a)&&(f+=m,h+=y);var C=a.parentNode;a=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!s&&a!==document.body||s&&(e.contains(a)||e===a));return(d&&Math.abs(f)<1||!d&&Math.abs(h)<1)&&(c=!0),c},gr=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Rs=function(t){return[t.deltaX,t.deltaY]},Ms=function(t){return t&&"current"in t?t.current:t},h4=function(t,e){return t[0]===e[0]&&t[1]===e[1]},p4=function(t){return`
|
|
82
82
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
83
83
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
84
|
-
`)},
|
|
84
|
+
`)},v4=0,Wt=[];function g4(t){var e=D.useRef([]),n=D.useRef([0,0]),r=D.useRef(),i=D.useState(v4++)[0],o=D.useState(o2)[0],l=D.useRef(t);D.useEffect(function(){l.current=t},[t]),D.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var p=Oh([t.lockRef.current],(t.shards||[]).map(Ms),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=D.useCallback(function(p,g){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!l.current.allowPinchZoom;var m=gr(p),C=n.current,S="deltaX"in p?p.deltaX:C[0]-m[0],P="deltaY"in p?p.deltaY:C[1]-m[1],$,x=p.target,E=Math.abs(S)>Math.abs(P)?"h":"v";if("touches"in p&&E==="h"&&x.type==="range")return!1;var N=Ns(E,x);if(!N)return!0;if(N?$=E:($=E==="v"?"h":"v",N=Ns(E,x)),!N)return!1;if(!r.current&&"changedTouches"in p&&(S||P)&&(r.current=$),!$)return!0;var H=r.current||$;return f4(H,g,p,H==="h"?S:P)},[]),s=D.useCallback(function(p){var g=p;if(!(!Wt.length||Wt[Wt.length-1]!==o)){var m="deltaY"in g?Rs(g):gr(g),C=e.current.filter(function($){return $.name===g.type&&($.target===g.target||g.target===$.shadowParent)&&h4($.delta,m)})[0];if(C&&C.should){g.cancelable&&g.preventDefault();return}if(!C){var S=(l.current.shards||[]).map(Ms).filter(Boolean).filter(function($){return $.contains(g.target)}),P=S.length>0?a(g,S[0]):!l.current.noIsolation;P&&g.cancelable&&g.preventDefault()}}},[]),c=D.useCallback(function(p,g,m,C){var S={name:p,delta:g,target:m,should:C,shadowParent:m4(m)};e.current.push(S),setTimeout(function(){e.current=e.current.filter(function(P){return P!==S})},1)},[]),d=D.useCallback(function(p){n.current=gr(p),r.current=void 0},[]),f=D.useCallback(function(p){c(p.type,Rs(p),p.target,a(p,t.lockRef.current))},[]),h=D.useCallback(function(p){c(p.type,gr(p),p.target,a(p,t.lockRef.current))},[]);D.useEffect(function(){return Wt.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",s,Ut),document.addEventListener("touchmove",s,Ut),document.addEventListener("touchstart",d,Ut),function(){Wt=Wt.filter(function(p){return p!==o}),document.removeEventListener("wheel",s,Ut),document.removeEventListener("touchmove",s,Ut),document.removeEventListener("touchstart",d,Ut)}},[]);var v=t.removeScrollBar,y=t.inert;return D.createElement(D.Fragment,null,y?D.createElement(o,{styles:p4(i)}):null,v?D.createElement(o4,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function m4(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const y4=Wg(i2,g4);var c2=D.forwardRef(function(t,e){return D.createElement(xi,Ze({},t,{ref:e,sideCar:y4}))});c2.classNames=xi.classNames;var b4=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Zt=new WeakMap,mr=new WeakMap,yr={},oo=0,u2=function(t){return t&&(t.host||u2(t.parentNode))},C4=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=u2(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},S4=function(t,e,n,r){var i=C4(e,Array.isArray(t)?t:[t]);yr[n]||(yr[n]=new WeakMap);var o=yr[n],l=[],a=new Set,s=new Set(i),c=function(f){!f||a.has(f)||(a.add(f),c(f.parentNode))};i.forEach(c);var d=function(f){!f||s.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))d(h);else try{var v=h.getAttribute(r),y=v!==null&&v!=="false",p=(Zt.get(h)||0)+1,g=(o.get(h)||0)+1;Zt.set(h,p),o.set(h,g),l.push(h),p===1&&y&&mr.set(h,!0),g===1&&h.setAttribute(n,"true"),y||h.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return d(e),a.clear(),oo++,function(){l.forEach(function(f){var h=Zt.get(f)-1,v=o.get(f)-1;Zt.set(f,h),o.set(f,v),h||(mr.has(f)||f.removeAttribute(r),mr.delete(f)),v||f.removeAttribute(n)}),oo--,oo||(Zt=new WeakMap,Zt=new WeakMap,mr=new WeakMap,yr={})}},w4=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=b4(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),S4(r,i,n,"aria-hidden")):function(){return null}},Ei="Dialog",[d2,Mb]=rg(Ei),[x4,ze]=d2(Ei),f2=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:l=!0}=t,a=D.useRef(null),s=D.useRef(null),[c,d]=sg({prop:r,defaultProp:i??!1,onChange:o,caller:Ei});return b.jsx(x4,{scope:e,triggerRef:a,contentRef:s,contentId:Qe(),titleId:Qe(),descriptionId:Qe(),open:c,onOpenChange:d,onOpenToggle:D.useCallback(()=>d(f=>!f),[d]),modal:l,children:n})};f2.displayName=Ei;var h2="DialogTrigger",E4=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ze(h2,n),o=jt(e,i.triggerRef);return b.jsx(me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Wl(i.open),...r,ref:o,onClick:dt(t.onClick,i.onOpenToggle)})});E4.displayName=h2;var Bl="DialogPortal",[$4,p2]=d2(Bl,{forceMount:void 0}),v2=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:i}=t,o=ze(Bl,e);return b.jsx($4,{scope:e,forceMount:n,children:D.Children.map(r,l=>b.jsx(wi,{present:n||o.open,children:b.jsx(n2,{asChild:!0,container:i,children:l})}))})};v2.displayName=Bl;var Yr="DialogOverlay",g2=D.forwardRef((t,e)=>{const n=p2(Yr,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=ze(Yr,t.__scopeDialog);return o.modal?b.jsx(wi,{present:r||o.open,children:b.jsx(D4,{...i,ref:e})}):null});g2.displayName=Yr;var P4=Yd("DialogOverlay.RemoveScroll"),D4=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ze(Yr,n);return b.jsx(c2,{as:P4,allowPinchZoom:!0,shards:[i.contentRef],children:b.jsx(me.div,{"data-state":Wl(i.open),...r,ref:e,style:{pointerEvents:"auto",...r.style}})})}),kt="DialogContent",m2=D.forwardRef((t,e)=>{const n=p2(kt,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=ze(kt,t.__scopeDialog);return b.jsx(wi,{present:r||o.open,children:o.modal?b.jsx(T4,{...i,ref:e}):b.jsx(_4,{...i,ref:e})})});m2.displayName=kt;var T4=D.forwardRef((t,e)=>{const n=ze(kt,t.__scopeDialog),r=D.useRef(null),i=jt(e,n.contentRef,r);return D.useEffect(()=>{const o=r.current;if(o)return w4(o)},[]),b.jsx(y2,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:dt(t.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:dt(t.onPointerDownOutside,o=>{const l=o.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0;(l.button===2||a)&&o.preventDefault()}),onFocusOutside:dt(t.onFocusOutside,o=>o.preventDefault())})}),_4=D.forwardRef((t,e)=>{const n=ze(kt,t.__scopeDialog),r=D.useRef(!1),i=D.useRef(!1);return b.jsx(y2,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,a;(l=t.onCloseAutoFocus)==null||l.call(t,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var s,c;(s=t.onInteractOutside)==null||s.call(t,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=o.target;((c=n.triggerRef.current)==null?void 0:c.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),y2=D.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...l}=t,a=ze(kt,n),s=D.useRef(null),c=jt(e,s);return Ag(),b.jsxs(b.Fragment,{children:[b.jsx(e2,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:b.jsx(Jd,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Wl(a.open),...l,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(N4,{titleId:a.titleId}),b.jsx(M4,{contentRef:s,descriptionId:a.descriptionId})]})]})}),Ul="DialogTitle",I4=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ze(Ul,n);return b.jsx(me.h2,{id:i.titleId,...r,ref:e})});I4.displayName=Ul;var b2="DialogDescription",O4=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ze(b2,n);return b.jsx(me.p,{id:i.descriptionId,...r,ref:e})});O4.displayName=b2;var C2="DialogClose",k4=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ze(C2,n);return b.jsx(me.button,{type:"button",...r,ref:e,onClick:dt(t.onClick,()=>i.onOpenChange(!1))})});k4.displayName=C2;function Wl(t){return t?"open":"closed"}var S2="DialogTitleWarning",[Lb,w2]=ng(S2,{contentName:kt,titleName:Ul,docsSlug:"dialog"}),N4=({titleId:t})=>{const e=w2(S2),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
|
|
85
85
|
|
|
86
86
|
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
87
87
|
|
|
88
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return D.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},Mm="DialogDescriptionWarning",Lm=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${x0(Mm).contentName}}.`;return D.useEffect(()=>{var o;const i=(o=t.current)==null?void 0:o.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},Am=h0,Fm=g0,Km=m0,jm=b0,On='[cmdk-group=""]',lo='[cmdk-group-items=""]',Hm='[cmdk-group-heading=""]',Gl='[cmdk-item=""]',Ls=`${Gl}:not([aria-disabled="true"])`,Zo="cmdk-item-select",mt="data-value",zm=(t,e,n)=>n1(t,e,n),E0=D.createContext(void 0),nr=()=>D.useContext(E0),$0=D.createContext(void 0),ql=()=>D.useContext($0),P0=D.createContext(void 0),D0=D.forwardRef((t,e)=>{let n=nn(()=>{var _,O;return{search:"",value:(O=(_=t.value)!=null?_:t.defaultValue)!=null?O:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=nn(()=>new Set),i=nn(()=>new Map),o=nn(()=>new Map),l=nn(()=>new Set),a=_0(t),{label:s,children:c,value:d,onValueChange:f,filter:h,shouldFilter:v,loop:b,disablePointerSelection:p=!1,vimBindings:g=!0,...m}=t,C=Qe(),S=Qe(),P=Qe(),$=D.useRef(null),x=Qm();Nt(()=>{if(d!==void 0){let _=d.trim();n.current.value=_,E.emit()}},[d]),Nt(()=>{x(6,B)},[]);let E=D.useMemo(()=>({subscribe:_=>(l.current.add(_),()=>l.current.delete(_)),snapshot:()=>n.current,setState:(_,O,K)=>{var M,z,V;if(!Object.is(n.current[_],O)){if(n.current[_]=O,_==="search")A(),j(),x(1,w);else if(_==="value"&&(K||x(5,B),((M=a.current)==null?void 0:M.value)!==void 0)){let W=O??"";(V=(z=a.current).onValueChange)==null||V.call(z,W);return}E.emit()}},emit:()=>{l.current.forEach(_=>_())}}),[]),N=D.useMemo(()=>({value:(_,O,K)=>{var M;O!==((M=o.current.get(_))==null?void 0:M.value)&&(o.current.set(_,{value:O,keywords:K}),n.current.filtered.items.set(_,H(O,K)),x(2,()=>{j(),E.emit()}))},item:(_,O)=>(r.current.add(_),O&&(i.current.has(O)?i.current.get(O).add(_):i.current.set(O,new Set([_]))),x(3,()=>{A(),j(),n.current.value||w(),E.emit()}),()=>{o.current.delete(_),r.current.delete(_),n.current.filtered.items.delete(_);let K=L();x(4,()=>{A(),(K==null?void 0:K.getAttribute("id"))===_&&w(),E.emit()})}),group:_=>(i.current.has(_)||i.current.set(_,new Set),()=>{o.current.delete(_),i.current.delete(_)}),filter:()=>a.current.shouldFilter,label:s||t["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:C,inputId:P,labelId:S,listInnerRef:$}),[]);function H(_,O){var K,M;let z=(M=(K=a.current)==null?void 0:K.filter)!=null?M:zm;return _?z(_,n.current.search,O):0}function j(){if(!n.current.search||a.current.shouldFilter===!1)return;let _=n.current.filtered.items,O=[];n.current.filtered.groups.forEach(M=>{let z=i.current.get(M),V=0;z.forEach(W=>{let Y=_.get(W);V=Math.max(Y,V)}),O.push([M,V])});let K=$.current;U().sort((M,z)=>{var V,W;let Y=M.getAttribute("id"),J=z.getAttribute("id");return((V=_.get(J))!=null?V:0)-((W=_.get(Y))!=null?W:0)}).forEach(M=>{let z=M.closest(lo);z?z.appendChild(M.parentElement===z?M:M.closest(`${lo} > *`)):K.appendChild(M.parentElement===K?M:M.closest(`${lo} > *`))}),O.sort((M,z)=>z[1]-M[1]).forEach(M=>{var z;let V=(z=$.current)==null?void 0:z.querySelector(`${On}[${mt}="${encodeURIComponent(M[0])}"]`);V==null||V.parentElement.appendChild(V)})}function w(){let _=U().find(K=>K.getAttribute("aria-disabled")!=="true"),O=_==null?void 0:_.getAttribute(mt);E.setState("value",O||void 0)}function A(){var _,O,K,M;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let z=0;for(let V of r.current){let W=(O=(_=o.current.get(V))==null?void 0:_.value)!=null?O:"",Y=(M=(K=o.current.get(V))==null?void 0:K.keywords)!=null?M:[],J=H(W,Y);n.current.filtered.items.set(V,J),J>0&&z++}for(let[V,W]of i.current)for(let Y of W)if(n.current.filtered.items.get(Y)>0){n.current.filtered.groups.add(V);break}n.current.filtered.count=z}function B(){var _,O,K;let M=L();M&&(((_=M.parentElement)==null?void 0:_.firstChild)===M&&((K=(O=M.closest(On))==null?void 0:O.querySelector(Hm))==null||K.scrollIntoView({block:"nearest"})),M.scrollIntoView({block:"nearest"}))}function L(){var _;return(_=$.current)==null?void 0:_.querySelector(`${Gl}[aria-selected="true"]`)}function U(){var _;return Array.from(((_=$.current)==null?void 0:_.querySelectorAll(Ls))||[])}function I(_){let O=U()[_];O&&E.setState("value",O.getAttribute(mt))}function R(_){var O;let K=L(),M=U(),z=M.findIndex(W=>W===K),V=M[z+_];(O=a.current)!=null&&O.loop&&(V=z+_<0?M[M.length-1]:z+_===M.length?M[0]:M[z+_]),V&&E.setState("value",V.getAttribute(mt))}function k(_){let O=L(),K=O==null?void 0:O.closest(On),M;for(;K&&!M;)K=_>0?Xm(K,On):Jm(K,On),M=K==null?void 0:K.querySelector(Ls);M?E.setState("value",M.getAttribute(mt)):R(_)}let G=()=>I(U().length-1),T=_=>{_.preventDefault(),_.metaKey?G():_.altKey?k(1):R(1)},F=_=>{_.preventDefault(),_.metaKey?I(0):_.altKey?k(-1):R(-1)};return D.createElement(me.div,{ref:e,tabIndex:-1,...m,"cmdk-root":"",onKeyDown:_=>{var O;if((O=m.onKeyDown)==null||O.call(m,_),!_.defaultPrevented)switch(_.key){case"n":case"j":{g&&_.ctrlKey&&T(_);break}case"ArrowDown":{T(_);break}case"p":case"k":{g&&_.ctrlKey&&F(_);break}case"ArrowUp":{F(_);break}case"Home":{_.preventDefault(),I(0);break}case"End":{_.preventDefault(),G();break}case"Enter":if(!_.nativeEvent.isComposing&&_.keyCode!==229){_.preventDefault();let K=L();if(K){let M=new Event(Zo);K.dispatchEvent(M)}}}}},D.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:tb},s),$i(t,_=>D.createElement($0.Provider,{value:E},D.createElement(E0.Provider,{value:N},_))))}),Vm=D.forwardRef((t,e)=>{var n,r;let i=Qe(),o=D.useRef(null),l=D.useContext(P0),a=nr(),s=_0(t),c=(r=(n=s.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;Nt(()=>{if(!c)return a.item(i,l==null?void 0:l.id)},[c]);let d=T0(i,o,[t.value,t.children,o],t.keywords),f=ql(),h=Rt(x=>x.value&&x.value===d.current),v=Rt(x=>c||a.filter()===!1?!0:x.search?x.filtered.items.get(i)>0:!0);D.useEffect(()=>{let x=o.current;if(!(!x||t.disabled))return x.addEventListener(Zo,b),()=>x.removeEventListener(Zo,b)},[v,t.onSelect,t.disabled]);function b(){var x,E;p(),(E=(x=s.current).onSelect)==null||E.call(x,d.current)}function p(){f.setState("value",d.current,!0)}if(!v)return null;let{disabled:g,value:m,onSelect:C,forceMount:S,keywords:P,...$}=t;return D.createElement(me.div,{ref:Xn([o,e]),...$,id:i,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!h,"data-disabled":!!g,"data-selected":!!h,onPointerMove:g||a.getDisablePointerSelection()?void 0:p,onClick:g?void 0:b},t.children)}),Bm=D.forwardRef((t,e)=>{let{heading:n,children:r,forceMount:i,...o}=t,l=Qe(),a=D.useRef(null),s=D.useRef(null),c=Qe(),d=nr(),f=Rt(v=>i||d.filter()===!1?!0:v.search?v.filtered.groups.has(l):!0);Nt(()=>d.group(l),[]),T0(l,a,[t.value,t.heading,s]);let h=D.useMemo(()=>({id:l,forceMount:i}),[i]);return D.createElement(me.div,{ref:Xn([a,e]),...o,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&D.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),$i(t,v=>D.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},D.createElement(P0.Provider,{value:h},v))))}),Um=D.forwardRef((t,e)=>{let{alwaysRender:n,...r}=t,i=D.useRef(null),o=Rt(l=>!l.search);return!n&&!o?null:D.createElement(me.div,{ref:Xn([i,e]),...r,"cmdk-separator":"",role:"separator"})}),Wm=D.forwardRef((t,e)=>{let{onValueChange:n,...r}=t,i=t.value!=null,o=ql(),l=Rt(d=>d.search),a=Rt(d=>d.value),s=nr(),c=D.useMemo(()=>{var d;let f=(d=s.listInnerRef.current)==null?void 0:d.querySelector(`${Gl}[${mt}="${encodeURIComponent(a)}"]`);return f==null?void 0:f.getAttribute("id")},[]);return D.useEffect(()=>{t.value!=null&&o.setState("search",t.value)},[t.value]),D.createElement(me.input,{ref:e,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,"aria-activedescendant":c,id:s.inputId,type:"text",value:i?t.value:l,onChange:d=>{i||o.setState("search",d.target.value),n==null||n(d.target.value)}})}),Gm=D.forwardRef((t,e)=>{let{children:n,label:r="Suggestions",...i}=t,o=D.useRef(null),l=D.useRef(null),a=nr();return D.useEffect(()=>{if(l.current&&o.current){let s=l.current,c=o.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let h=s.offsetHeight;c.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return f.observe(s),()=>{cancelAnimationFrame(d),f.unobserve(s)}}},[]),D.createElement(me.div,{ref:Xn([o,e]),...i,"cmdk-list":"",role:"listbox","aria-label":r,id:a.listId},$i(t,s=>D.createElement("div",{ref:Xn([l,a.listInnerRef]),"cmdk-list-sizer":""},s)))}),qm=D.forwardRef((t,e)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:o,container:l,...a}=t;return D.createElement(Am,{open:n,onOpenChange:r},D.createElement(Fm,{container:l},D.createElement(Km,{"cmdk-overlay":"",className:i}),D.createElement(jm,{"aria-label":t.label,"cmdk-dialog":"",className:o},D.createElement(D0,{ref:e,...a}))))}),Ym=D.forwardRef((t,e)=>Rt(n=>n.filtered.count===0)?D.createElement(me.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),Zm=D.forwardRef((t,e)=>{let{progress:n,children:r,label:i="Loading...",...o}=t;return D.createElement(me.div,{ref:e,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},$i(t,l=>D.createElement("div",{"aria-hidden":!0},l)))}),Zn=Object.assign(D0,{List:Gm,Item:Vm,Input:Wm,Group:Bm,Separator:Um,Dialog:qm,Empty:Ym,Loading:Zm});function Xm(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}function Jm(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}function _0(t){let e=D.useRef(t);return Nt(()=>{e.current=t}),e}var Nt=typeof window>"u"?D.useEffect:D.useLayoutEffect;function nn(t){let e=D.useRef();return e.current===void 0&&(e.current=t()),e}function Xn(t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function Rt(t){let e=ql(),n=()=>t(e.snapshot());return $l.useSyncExternalStore(e.subscribe,n,n)}function T0(t,e,n,r=[]){let i=D.useRef(),o=nr();return Nt(()=>{var l;let a=(()=>{var c;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(c=d.current.textContent)==null?void 0:c.trim():i.current}})(),s=r.map(c=>c.trim());o.value(t,a,s),(l=e.current)==null||l.setAttribute(mt,a),i.current=a}),i}var Qm=()=>{let[t,e]=D.useState(),n=nn(()=>new Map);return Nt(()=>{n.current.forEach(r=>r()),n.current=new Map},[t]),(r,i)=>{n.current.set(r,i),e({})}};function eb(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function $i({asChild:t,children:e},n){return t&&D.isValidElement(e)?D.cloneElement(eb(e),{ref:e.ref},n(e.props.children)):n(e)}var tb={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Xo=({withPadding:t=!0})=>y.jsx("div",{className:Pe("c__horizontal-separator",{"with-padding":t})}),I0=({loading:t,inputValue:e,onFilter:n,placeholder:r,children:i,withSeparator:o=!0})=>{const{t:l}=le.useCunningham();return i?y.jsxs(y.Fragment,{children:[i,o&&y.jsx(Xo,{})]}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"quick-search-input-container",children:[!t&&y.jsx("span",{className:"material-icons",children:"search"}),t&&y.jsx("div",{children:y.jsx(Vl,{size:"md"})}),y.jsx(Zn.Input,{autoFocus:!0,"aria-label":l("Quick search input"),onClick:a=>{a.stopPropagation()},role:"combobox",value:e,placeholder:r,onValueChange:n})]}),o&&y.jsx(Xo,{withPadding:!0})]})},nb=t=>{let e=!1;return u.Children.forEach(t,n=>{e=e||!!n}),e},O0=({onFilter:t,inputContent:e,inputValue:n,loading:r,showInput:i=!0,label:o,placeholder:l,children:a})=>{const s=u.useRef(null);return y.jsx(y.Fragment,{children:y.jsx("div",{className:"quick-search-container",children:y.jsxs(Zn,{label:o,shouldFilter:!1,ref:s,children:[i&&y.jsx(I0,{loading:r,withSeparator:nb(a),inputValue:n,onFilter:t,placeholder:l,children:e}),y.jsx(Zn.List,{children:y.jsx("div",{children:a})})]})})})},_r=({children:t,onSelect:e,id:n})=>y.jsx(Zn.Item,{value:n,onSelect:e,children:t}),k0=({group:t,onSelect:e,renderElement:n})=>{var r,i;return!t.showWhenEmpty&&t.elements.length===0?null:y.jsx("div",{className:"pt-base",children:y.jsxs(Zn.Group,{heading:t.groupName,forceMount:!1,children:[(r=t.startActions)==null?void 0:r.map((o,l)=>y.jsx(_r,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.elements.map((o,l)=>y.jsx(_r,{id:`${t.groupName}-element-${l}`,onSelect:()=>{e==null||e(o)},children:n==null?void 0:n(o)},`${t.groupName}-element-${l}`)),(i=t.endActions)==null?void 0:i.map((o,l)=>y.jsx(_r,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.emptyString&&t.elements.length===0&&y.jsx("span",{className:"ml-b clr-greyscale-500",children:t.emptyString})]},t.groupName)})},Pi=({alwaysShowRight:t=!1,left:e,right:n})=>{const{isDesktop:r}=wn();return y.jsxs("div",{className:"c__quick-search-item-template",children:[y.jsx("div",{className:"c__quick-search-item-template__left",children:e}),r&&n&&y.jsx("div",{className:Pe("c__quick-search-item-template__right",{"always-show-right":t,"show-right-on-focus":!t}),children:n})]})},rb=({tabs:t,defaultSelectedTab:e,fullWidth:n=!1})=>t.length===0?null:y.jsx("div",{className:Pe("c__tabs",{"c__tabs__full-width":n}),children:y.jsxs(Bg,{defaultSelectedKey:e,children:[y.jsx(Wg,{"aria-label":"History of Ancient Rome",children:t.map(r=>y.jsxs(qg,{id:r.id,children:[r.icon&&y.jsx("span",{className:"material-icons",children:r.icon}),r.label]},r.id))}),t.map(r=>y.jsx(Yg,{id:r.id,children:r.content},r.id))]})}),N0=u.createContext(null);function Te(){const t=u.useContext(N0);if(t===null)throw new Error("No Tree Api Provided");return t}const R0=u.createContext(null);function ib(){const t=u.useContext(R0);if(t===null)throw new Error("Provide a NodesContext");return t}const M0=u.createContext(null);function ob(){const t=u.useContext(M0);if(t===null)throw new Error("Provide a DnDContext");return t}const L0=u.createContext(0);function A0(){u.useContext(L0)}function Tr(t,e,n){return Math.max(Math.min(t,n),e)}function F0(t){return t&&t.isLeaf}function K0(t){return t&&t.isInternal&&!t.isOpen}function j0(t){var e;return t&&t.isOpen&&!(!((e=t.children)===null||e===void 0)&&e.length)}const H0=(t,e)=>{let n=t;for(;n;){if(n.id===e.id)return!0;n=n.parent}return!1},z0=t=>{if(!t.parent)throw Error("Node does not have a parent");return t.parent.children.findIndex(e=>e.id===t.id)};function lb(){}function Yl(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let n of t.children){const r=Yl(n,e);if(r)return r}return null}function Xr(t,e){if(e(t),t.children)for(let n of t.children)Xr(n,e)}function V0(t){const e=U0(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=ab(e,r);break}n==null||n.focus()}function B0(t){const e=U0(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=sb(e,r);break}n==null||n.focus()}function ab(t,e){return e+1<t.length?t[e+1]:t[0]}function sb(t,e){return e-1>=0?t[e-1]:t[t.length-1]}function U0(t){return Array.from(document.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), details:not([disabled]), summary:not(:disabled)')).filter(e=>e===t||!t.contains(e))}function Kn(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function W0(t){return t===null?null:bt(t)}function bt(t){return typeof t=="string"?t:t.id}function cb(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function G0(t,...e){if(t)return t(...e)}function q0(t){return new Promise((e,n)=>{let r=0;function i(){r+=1,r===100&&n(),t()?e():setTimeout(i,10)}i()})}function Y0(t){var e,n;const r=t.focusedNode;return r?r.isOpen?0:r.parent?r.childIndex+1:0:(n=(e=t.root.children)===null||e===void 0?void 0:e.length)!==null&&n!==void 0?n:0}function Z0(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const ub=Object.freeze(Object.defineProperty({__proto__:null,access:Kn,bound:Tr,dfs:Yl,focusNextElement:V0,focusPrevElement:B0,getInsertIndex:Y0,getInsertParentId:Z0,identify:bt,identifyNull:W0,indexOf:z0,isClosed:K0,isDescendant:H0,isItem:F0,isOpenWithEmptyChildren:j0,mergeRefs:cb,noop:lb,safeRun:G0,waitFor:q0,walk:Xr},Symbol.toStringTag,{value:"Module"})),db={display:"flex",alignItems:"center",zIndex:1},fb={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},hb={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},pb=u.memo(function({top:e,left:n,indent:r}){const i={position:"absolute",pointerEvents:"none",top:e-2+"px",left:n+"px",right:r+"px"};return y.jsxs("div",{style:Object.assign(Object.assign({},db),i),children:[y.jsx("div",{style:Object.assign({},hb)}),y.jsx("div",{style:Object.assign({},fb)})]})});function vb({node:t,attrs:e,innerRef:n,children:r}){return y.jsx("div",Object.assign({},e,{ref:n,onFocus:i=>i.stopPropagation(),onClick:t.handleClick,children:r}))}function gb(t){return y.jsxs("div",{ref:t.dragHandle,style:t.style,children:[y.jsx("span",{onClick:e=>{e.stopPropagation(),t.node.toggle()},children:t.node.isLeaf?"🌳":t.node.isOpen?"🗁":"🗀"})," ",t.node.isEditing?y.jsx(bb,Object.assign({},t)):y.jsx(mb,Object.assign({},t))]})}function mb(t){return y.jsx(y.Fragment,{children:y.jsx("span",{children:t.node.data.name})})}function bb({node:t}){const e=u.useRef();return u.useEffect(()=>{var n,r;(n=e.current)===null||n===void 0||n.focus(),(r=e.current)===null||r===void 0||r.select()},[]),y.jsx("input",{ref:e,defaultValue:t.data.name,onBlur:()=>t.reset(),onKeyDown:n=>{var r;n.key==="Escape"&&t.reset(),n.key==="Enter"&&t.submit(((r=e.current)===null||r===void 0?void 0:r.value)||"")}})}function ao(t){return{type:"EDIT",id:t}}function yb(t={id:null},e){return e.type==="EDIT"?Object.assign(Object.assign({},t),{id:e.id}):t}function qt(t){return{type:"FOCUS",id:t}}function Cb(){return{type:"TREE_BLUR"}}function Sb(t={id:null,treeFocused:!1},e){return e.type==="FOCUS"?Object.assign(Object.assign({},t),{id:e.id,treeFocused:!0}):e.type==="TREE_BLUR"?Object.assign(Object.assign({},t),{treeFocused:!1}):t}class Jr{constructor(e){this.handleClick=n=>{n.metaKey&&!this.tree.props.disableMultiSelection?this.isSelected?this.deselect():this.selectMulti():n.shiftKey&&!this.tree.props.disableMultiSelection?this.selectContiguous():(this.select(),this.activate())},this.tree=e.tree,this.id=e.id,this.data=e.data,this.level=e.level,this.children=e.children,this.parent=e.parent,this.isDraggable=e.isDraggable,this.rowIndex=e.rowIndex}get isRoot(){return this.id===Jn}get isLeaf(){return!Array.isArray(this.children)}get isInternal(){return!this.isLeaf}get isOpen(){return this.isLeaf?!1:this.tree.isOpen(this.id)}get isClosed(){return this.isLeaf?!1:!this.tree.isOpen(this.id)}get isEditable(){return this.tree.isEditable(this.data)}get isEditing(){return this.tree.editingId===this.id}get isSelected(){return this.tree.isSelected(this.id)}get isOnlySelection(){return this.isSelected&&this.tree.hasOneSelection}get isSelectedStart(){var e;return this.isSelected&&!(!((e=this.prev)===null||e===void 0)&&e.isSelected)}get isSelectedEnd(){var e;return this.isSelected&&!(!((e=this.next)===null||e===void 0)&&e.isSelected)}get isFocused(){return this.tree.isFocused(this.id)}get isDragging(){return this.tree.isDragging(this.id)}get willReceiveDrop(){return this.tree.willReceiveDrop(this.id)}get state(){return{isClosed:this.isClosed,isDragging:this.isDragging,isEditing:this.isEditing,isFocused:this.isFocused,isInternal:this.isInternal,isLeaf:this.isLeaf,isOpen:this.isOpen,isSelected:this.isSelected,isSelectedEnd:this.isSelectedEnd,isSelectedStart:this.isSelectedStart,willReceiveDrop:this.willReceiveDrop}}get childIndex(){return this.parent&&this.parent.children?this.parent.children.findIndex(e=>e.id===this.id):-1}get next(){return this.rowIndex===null?null:this.tree.at(this.rowIndex+1)}get prev(){return this.rowIndex===null?null:this.tree.at(this.rowIndex-1)}get nextSibling(){var e,n;const r=this.childIndex;return(n=(e=this.parent)===null||e===void 0?void 0:e.children[r+1])!==null&&n!==void 0?n:null}isAncestorOf(e){if(!e)return!1;let n=e;for(;n;){if(n.id===this.id)return!0;n=n.parent}return!1}select(){this.tree.select(this)}deselect(){this.tree.deselect(this)}selectMulti(){this.tree.selectMulti(this)}selectContiguous(){this.tree.selectContiguous(this)}activate(){this.tree.activate(this)}focus(){this.tree.focus(this)}toggle(){this.tree.toggle(this)}open(){this.tree.open(this)}openParents(){this.tree.openParents(this)}close(){this.tree.close(this)}submit(e){this.tree.submit(this,e)}reset(){this.tree.reset()}clone(){return new Jr(Object.assign({},this))}edit(){return this.tree.edit(this)}}const Jn="__REACT_ARBORIST_INTERNAL_ROOT__";function As(t){var e;function n(o,l,a){const s=t.accessId(o),c=new Jr({tree:t,data:o,level:l,parent:a,id:s,children:null,isDraggable:t.isDraggable(o),rowIndex:null}),d=t.accessChildren(o);return d&&(c.children=d.map(f=>n(f,l+1,c))),c}const r=new Jr({tree:t,id:Jn,data:{id:Jn},level:-1,parent:null,children:null,isDraggable:!0,rowIndex:null}),i=(e=t.props.data)!==null&&e!==void 0?e:[];return r.children=i.map(o=>n(o,0,r)),r}const Jo={open(t,e){return{type:"VISIBILITY_OPEN",id:t,filtered:e}},close(t,e){return{type:"VISIBILITY_CLOSE",id:t,filtered:e}},toggle(t,e){return{type:"VISIBILITY_TOGGLE",id:t,filtered:e}},clear(t){return{type:"VISIBILITY_CLEAR",filtered:t}}};function Fs(t={},e){if(e.type==="VISIBILITY_OPEN")return Object.assign(Object.assign({},t),{[e.id]:!0});if(e.type==="VISIBILITY_CLOSE")return Object.assign(Object.assign({},t),{[e.id]:!1});if(e.type==="VISIBILITY_TOGGLE"){const n=t[e.id];return Object.assign(Object.assign({},t),{[e.id]:!n})}else return e.type==="VISIBILITY_CLEAR"?{}:t}function wb(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?Object.assign(Object.assign({},t),{filtered:Fs(t.filtered,e)}):Object.assign(Object.assign({},t),{unfiltered:Fs(t.unfiltered,e)}):t}const bn=t=>{var e;return{nodes:{open:{filtered:{},unfiltered:(e=t==null?void 0:t.initialOpenState)!==null&&e!==void 0?e:{}},focus:{id:null,treeFocused:!1},edit:{id:null},drag:{id:null,selectedIds:[],destinationParentId:null,destinationIndex:null},selection:{ids:new Set,anchor:null,mostRecent:null}},dnd:{cursor:{type:"none"},dragId:null,dragIds:[],parentId:null,index:-1}}},Fe={clear:()=>({type:"SELECTION_CLEAR"}),only:t=>({type:"SELECTION_ONLY",id:bt(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(bt)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(bt)}),set:t=>Object.assign({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:bt(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:bt(t)})};function xb(t=bn().nodes.selection,e){const n=t.ids;switch(e.type){case"SELECTION_CLEAR":return Object.assign(Object.assign({},t),{ids:new Set});case"SELECTION_ONLY":return Object.assign(Object.assign({},t),{ids:new Set([e.id])});case"SELECTION_ADD":return e.ids.length===0?t:(e.ids.forEach(r=>n.add(r)),Object.assign(Object.assign({},t),{ids:new Set(n)}));case"SELECTION_REMOVE":return e.ids.length===0?t:(e.ids.forEach(r=>n.delete(r)),Object.assign(Object.assign({},t),{ids:new Set(n)}));case"SELECTION_SET":return Object.assign(Object.assign({},t),{ids:e.ids,mostRecent:e.mostRecent,anchor:e.anchor});case"SELECTION_MOST_RECENT":return Object.assign(Object.assign({},t),{mostRecent:e.id});case"SELECTION_ANCHOR":return Object.assign(Object.assign({},t),{anchor:e.id});default:return t}}const yn={cursor(t){return{type:"DND_CURSOR",cursor:t}},dragStart(t,e){return{type:"DND_DRAG_START",id:t,dragIds:e}},dragEnd(){return{type:"DND_DRAG_END"}},hovering(t,e){return{type:"DND_HOVERING",parentId:t,index:e}}};function Eb(t=bn().dnd,e){switch(e.type){case"DND_CURSOR":return Object.assign(Object.assign({},t),{cursor:e.cursor});case"DND_DRAG_START":return Object.assign(Object.assign({},t),{dragId:e.id,dragIds:e.dragIds});case"DND_DRAG_END":return bn().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},t),{parentId:e.parentId,index:e.index});default:return t}}const $b={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},Pb=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e}px, ${n}px)`}},Db=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e+10}px, ${n+10}px)`}};function X0({offset:t,mouse:e,id:n,dragIds:r,isDragging:i}){return y.jsxs(_b,{isDragging:i,children:[y.jsx(Tb,{offset:t,children:y.jsx(Ob,{id:n,dragIds:r})}),y.jsx(Ib,{mouse:e,count:r.length})]})}const _b=u.memo(function(e){return e.isDragging?y.jsx("div",{style:$b,children:e.children}):null});function Tb(t){return y.jsx("div",{className:"row preview",style:Pb(t.offset),children:t.children})}function Ib(t){const{count:e,mouse:n}=t;return e>1?y.jsx("div",{className:"selected-count",style:Db(n),children:e}):null}const Ob=u.memo(function(e){const n=Te(),r=n.get(e.id);return r?y.jsx(n.renderNode,{preview:!0,node:r,style:{paddingLeft:r.level*n.indent,opacity:.2,background:"transparent"},tree:n}):null});function Qo(){return Qo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qo.apply(null,arguments)}function Ks(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function el(t,e){return el=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},el(t,e)}function kb(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,el(t,e)}var js=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Nb(t,e){return!!(t===e||js(t)&&js(e))}function Rb(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!Nb(t[n],e[n]))return!1;return!0}function so(t,e){e===void 0&&(e=Rb);var n,r=[],i,o=!1;function l(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&e(a,r)||(i=t.apply(this,a),o=!0,n=this,r=a),i}return l}var Mb=typeof performance=="object"&&typeof performance.now=="function",Hs=Mb?function(){return performance.now()}:function(){return Date.now()};function zs(t){cancelAnimationFrame(t.id)}function Lb(t,e){var n=Hs();function r(){Hs()-n>=e?t.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var co=-1;function Vs(t){if(t===void 0&&(t=!1),co===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),co=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return co}var Yt=null;function Bs(t){if(t===void 0&&(t=!1),Yt===null||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?Yt="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Yt="negative":Yt="positive-ascending"),document.body.removeChild(e),Yt}return Yt}process.env.NODE_ENV;var Ab=150,Fb=function(e,n){return e},Ir=null,Or=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(Ir=new WeakSet,Or=new WeakSet);function Kb(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,l=t.getStartIndexForOffset,a=t.getStopIndexForStartIndex,s=t.initInstanceProps,c=t.shouldResetStyleCacheOnItemSizeChange,d=t.validateProps;return e=function(f){kb(h,f);function h(b){var p;return p=f.call(this,b)||this,p._instanceProps=s(p.props,Ks(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:Ks(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=so(function(g,m,C,S){return p.props.onItemsRendered({overscanStartIndex:g,overscanStopIndex:m,visibleStartIndex:C,visibleStopIndex:S})}),p._callOnScroll=void 0,p._callOnScroll=so(function(g,m,C){return p.props.onScroll({scrollDirection:g,scrollOffset:m,scrollUpdateWasRequested:C})}),p._getItemStyle=void 0,p._getItemStyle=function(g){var m=p.props,C=m.direction,S=m.itemSize,P=m.layout,$=p._getItemStyleCache(c&&S,c&&P,c&&C),x;if($.hasOwnProperty(g))x=$[g];else{var E=n(p.props,g,p._instanceProps),N=i(p.props,g,p._instanceProps),H=C==="horizontal"||P==="horizontal",j=C==="rtl",w=H?E:0;$[g]=x={position:"absolute",left:j?void 0:w,right:j?w:void 0,top:H?0:E,height:H?"100%":N,width:H?N:"100%"}}return x},p._getItemStyleCache=void 0,p._getItemStyleCache=so(function(g,m,C){return{}}),p._onScrollHorizontal=function(g){var m=g.currentTarget,C=m.clientWidth,S=m.scrollLeft,P=m.scrollWidth;p.setState(function($){if($.scrollOffset===S)return null;var x=p.props.direction,E=S;if(x==="rtl")switch(Bs()){case"negative":E=-S;break;case"positive-descending":E=P-C-S;break}return E=Math.max(0,Math.min(E,P-C)),{isScrolling:!0,scrollDirection:$.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._onScrollVertical=function(g){var m=g.currentTarget,C=m.clientHeight,S=m.scrollHeight,P=m.scrollTop;p.setState(function($){if($.scrollOffset===P)return null;var x=Math.max(0,Math.min(P,S-C));return{isScrolling:!0,scrollDirection:$.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._outerRefSetter=function(g){var m=p.props.outerRef;p._outerRef=g,typeof m=="function"?m(g):m!=null&&typeof m=="object"&&m.hasOwnProperty("current")&&(m.current=g)},p._resetIsScrollingDebounced=function(){p._resetIsScrollingTimeoutId!==null&&zs(p._resetIsScrollingTimeoutId),p._resetIsScrollingTimeoutId=Lb(p._resetIsScrolling,Ab)},p._resetIsScrolling=function(){p._resetIsScrollingTimeoutId=null,p.setState({isScrolling:!1},function(){p._getItemStyleCache(-1,null)})},p}h.getDerivedStateFromProps=function(p,g){return jb(p,g),d(p),null};var v=h.prototype;return v.scrollTo=function(p){p=Math.max(0,p),this.setState(function(g){return g.scrollOffset===p?null:{scrollDirection:g.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(p,g){g===void 0&&(g="auto");var m=this.props,C=m.itemCount,S=m.layout,P=this.state.scrollOffset;p=Math.max(0,Math.min(p,C-1));var $=0;if(this._outerRef){var x=this._outerRef;S==="vertical"?$=x.scrollWidth>x.clientWidth?Vs():0:$=x.scrollHeight>x.clientHeight?Vs():0}this.scrollTo(o(this.props,p,g,P,this._instanceProps,$))},v.componentDidMount=function(){var p=this.props,g=p.direction,m=p.initialScrollOffset,C=p.layout;if(typeof m=="number"&&this._outerRef!=null){var S=this._outerRef;g==="horizontal"||C==="horizontal"?S.scrollLeft=m:S.scrollTop=m}this._callPropsCallbacks()},v.componentDidUpdate=function(){var p=this.props,g=p.direction,m=p.layout,C=this.state,S=C.scrollOffset,P=C.scrollUpdateWasRequested;if(P&&this._outerRef!=null){var $=this._outerRef;if(g==="horizontal"||m==="horizontal")if(g==="rtl")switch(Bs()){case"negative":$.scrollLeft=-S;break;case"positive-ascending":$.scrollLeft=S;break;default:var x=$.clientWidth,E=$.scrollWidth;$.scrollLeft=E-x-S;break}else $.scrollLeft=S;else $.scrollTop=S}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&zs(this._resetIsScrollingTimeoutId)},v.render=function(){var p=this.props,g=p.children,m=p.className,C=p.direction,S=p.height,P=p.innerRef,$=p.innerElementType,x=p.innerTagName,E=p.itemCount,N=p.itemData,H=p.itemKey,j=H===void 0?Fb:H,w=p.layout,A=p.outerElementType,B=p.outerTagName,L=p.style,U=p.useIsScrolling,I=p.width,R=this.state.isScrolling,k=C==="horizontal"||w==="horizontal",G=k?this._onScrollHorizontal:this._onScrollVertical,T=this._getRangeToRender(),F=T[0],_=T[1],O=[];if(E>0)for(var K=F;K<=_;K++)O.push(u.createElement(g,{data:N,key:j(K,N),index:K,isScrolling:U?R:void 0,style:this._getItemStyle(K)}));var M=r(this.props,this._instanceProps);return u.createElement(A||B||"div",{className:m,onScroll:G,ref:this._outerRefSetter,style:Qo({position:"relative",height:S,width:I,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},L)},u.createElement($||x||"div",{children:O,ref:P,style:{height:k?"100%":M,pointerEvents:R?"none":void 0,width:k?M:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var g=this._getRangeToRender(),m=g[0],C=g[1],S=g[2],P=g[3];this._callOnItemsRendered(m,C,S,P)}}if(typeof this.props.onScroll=="function"){var $=this.state,x=$.scrollDirection,E=$.scrollOffset,N=$.scrollUpdateWasRequested;this._callOnScroll(x,E,N)}},v._getRangeToRender=function(){var p=this.props,g=p.itemCount,m=p.overscanCount,C=this.state,S=C.isScrolling,P=C.scrollDirection,$=C.scrollOffset;if(g===0)return[0,0,0,0];var x=l(this.props,$,this._instanceProps),E=a(this.props,x,$,this._instanceProps),N=!S||P==="backward"?Math.max(1,m):1,H=!S||P==="forward"?Math.max(1,m):1;return[Math.max(0,x-N),Math.max(0,Math.min(g-1,E+H)),x,E]},h}(u.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var jb=function(e,n){var r=e.children,i=e.direction,o=e.height,l=e.layout,a=e.innerTagName,s=e.outerTagName,c=e.width,d=n.instance;if(process.env.NODE_ENV!=="production"){(a!=null||s!=null)&&Or&&!Or.has(d)&&(Or.add(d),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var f=i==="horizontal"||l==="horizontal";switch(i){case"horizontal":case"vertical":Ir&&!Ir.has(d)&&(Ir.add(d),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(l){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+l+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(f&&typeof c!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(c===null?"null":typeof c)+'" was specified.'));if(!f&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},Hb=Kb({getItemOffset:function(e,n){var r=e.itemSize;return n*r},getItemSize:function(e,n){var r=e.itemSize;return r},getEstimatedTotalSize:function(e){var n=e.itemCount,r=e.itemSize;return r*n},getOffsetForIndexAndAlignment:function(e,n,r,i,o,l){var a=e.direction,s=e.height,c=e.itemCount,d=e.itemSize,f=e.layout,h=e.width,v=a==="horizontal"||f==="horizontal",b=v?h:s,p=Math.max(0,c*d-b),g=Math.min(p,n*d),m=Math.max(0,n*d-b+d+l);switch(r==="smart"&&(i>=m-b&&i<=g+b?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":{var C=Math.round(m+(g-m)/2);return C<Math.ceil(b/2)?0:C>p+Math.floor(b/2)?p:C}case"auto":default:return i>=m&&i<=g?i:i<m?m:g}},getStartIndexForOffset:function(e,n){var r=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/i)))},getStopIndexForStartIndex:function(e,n,r){var i=e.direction,o=e.height,l=e.itemCount,a=e.itemSize,s=e.layout,c=e.width,d=i==="horizontal"||s==="horizontal",f=n*a,h=d?c:o,v=Math.ceil((h+r-f)/a);return Math.max(0,Math.min(l-1,n+v-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var n=e.itemSize;if(process.env.NODE_ENV!=="production"&&typeof n!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(n===null?"null":typeof n)+'" was specified.'))}});function zb(){var t,e;const n=Te(),i=ob().cursor;if(!i||i.type!=="line")return null;const o=n.indent,l=n.rowHeight*i.index+((e=(t=n.props.padding)!==null&&t!==void 0?t:n.props.paddingTop)!==null&&e!==void 0?e:0),a=o*i.level,s=n.renderCursor;return y.jsx(s,{top:l,left:a,indent:o})}var Vb=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const Bb=u.forwardRef(function(e,n){const{children:r}=e,i=Vb(e,["children"]),o=Te();return y.jsxs("div",Object.assign({ref:n},i,{onClick:l=>{l.currentTarget===l.target&&o.deselectAll()},children:[y.jsx(Ub,{}),r]}))}),Ub=()=>{const t=Te();return y.jsx("div",{style:{height:t.visibleNodes.length*t.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:y.jsx(zb,{})})};var Wb=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const Gb=u.forwardRef(function(e,n){var r,i,o,l,{style:a}=e,s=Wb(e,["style"]);const c=Te(),d=(i=(r=c.props.padding)!==null&&r!==void 0?r:c.props.paddingTop)!==null&&i!==void 0?i:0,f=(l=(o=c.props.padding)!==null&&o!==void 0?o:c.props.paddingBottom)!==null&&l!==void 0?l:0;return y.jsx("div",Object.assign({ref:n,style:Object.assign(Object.assign({},a),{height:`${parseFloat(a.height)+d+f}px`})},s))});var J0=u.createContext({dragDropManager:void 0}),Ne;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Ne||(Ne={}));function Z(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){var o;if(e===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=0;o=new Error(e.replace(/%s/g,function(){return r[l++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var Zl="dnd-core/INIT_COORDS",Di="dnd-core/BEGIN_DRAG",Xl="dnd-core/PUBLISH_DRAG_SOURCE",_i="dnd-core/HOVER",Ti="dnd-core/DROP",Ii="dnd-core/END_DRAG";function Us(t,e){return{type:Zl,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function kr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kr=function(n){return typeof n}:kr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},kr(t)}function qb(t,e,n){return e.split(".").reduce(function(r,i){return r&&r[i]?r[i]:n||null},t)}function Yb(t,e){return t.filter(function(n){return n!==e})}function Q0(t){return kr(t)==="object"}function Zb(t,e){var n=new Map,r=function(l){n.set(l,n.has(l)?n.get(l)+1:1)};t.forEach(r),e.forEach(r);var i=[];return n.forEach(function(o,l){o===1&&i.push(l)}),i}function Xb(t,e){return t.filter(function(n){return e.indexOf(n)>-1})}var Jb={type:Zl,payload:{clientOffset:null,sourceClientOffset:null}};function Qb(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},i=r.publishSource,o=i===void 0?!0:i,l=r.clientOffset,a=r.getSourceClientOffset,s=t.getMonitor(),c=t.getRegistry();t.dispatch(Us(l)),ey(n,s,c);var d=ry(n,s);if(d===null){t.dispatch(Jb);return}var f=null;if(l){if(!a)throw new Error("getSourceClientOffset must be defined");ty(a),f=a(d)}t.dispatch(Us(l,f));var h=c.getSource(d),v=h.beginDrag(s,d);if(v!=null){ny(v),c.pinSource(d);var b=c.getSourceType(d);return{type:Di,payload:{itemType:b,item:v,sourceId:d,clientOffset:l||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}}}function ey(t,e,n){Z(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){Z(n.getSource(r),"Expected sourceIds to be registered.")})}function ty(t){Z(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function ny(t){Z(Q0(t),"Item must be an object.")}function ry(t,e){for(var n=null,r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function iy(t){return function(){var n=t.getMonitor();if(n.isDragging())return{type:Xl}}}function tl(t,e){return e===null?t===null:Array.isArray(t)?t.some(function(n){return n===e}):t===e}function oy(t){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.clientOffset;ly(n);var o=n.slice(0),l=t.getMonitor(),a=t.getRegistry();ay(o,l,a);var s=l.getItemType();return sy(o,a,s),cy(o,l,a),{type:_i,payload:{targetIds:o,clientOffset:i||null}}}}function ly(t){Z(Array.isArray(t),"Expected targetIds to be an array.")}function ay(t,e,n){Z(e.isDragging(),"Cannot call hover while not dragging."),Z(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var i=t[r];Z(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");var o=n.getTarget(i);Z(o,"Expected targetIds to be registered.")}}function sy(t,e,n){for(var r=t.length-1;r>=0;r--){var i=t[r],o=e.getTargetType(i);tl(o,n)||t.splice(r,1)}}function cy(t,e,n){t.forEach(function(r){var i=n.getTarget(r);i.hover(e,r)})}function Ws(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Gs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ws(Object(n),!0).forEach(function(r){uy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ws(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function uy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dy(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getMonitor(),i=t.getRegistry();fy(r);var o=vy(r);o.forEach(function(l,a){var s=hy(l,a,i,r),c={type:Ti,payload:{dropResult:Gs(Gs({},n),s)}};t.dispatch(c)})}}function fy(t){Z(t.isDragging(),"Cannot call drop while not dragging."),Z(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function hy(t,e,n,r){var i=n.getTarget(t),o=i?i.drop(r,t):void 0;return py(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function py(t){Z(typeof t>"u"||Q0(t),"Drop result must either be an object or undefined.")}function vy(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function gy(t){return function(){var n=t.getMonitor(),r=t.getRegistry();my(n);var i=n.getSourceId();if(i!=null){var o=r.getSource(i,!0);o.endDrag(n,i),r.unpinSource()}return{type:Ii}}}function my(t){Z(t.isDragging(),"Cannot call endDrag while not dragging.")}function by(t){return{beginDrag:Qb(t),publishDragSource:iy(t),hover:oy(t),drop:dy(t),endDrag:gy(t)}}function yy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Sy(t,e,n){return e&&Cy(t.prototype,e),t}function kn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wy=function(){function t(e,n){var r=this;yy(this,t),kn(this,"store",void 0),kn(this,"monitor",void 0),kn(this,"backend",void 0),kn(this,"isSetUp",!1),kn(this,"handleRefCountChange",function(){var i=r.store.getState().refCount>0;r.backend&&(i&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!i&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))}),this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}return Sy(t,[{key:"receiveBackend",value:function(n){this.backend=n}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var n=this,r=this.store.dispatch;function i(l){return function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var d=l.apply(n,s);typeof d<"u"&&r(d)}}var o=by(this);return Object.keys(o).reduce(function(l,a){var s=o[a];return l[a]=i(s),l},{})}},{key:"dispatch",value:function(n){this.store.dispatch(n)}}]),t}();function Ie(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var qs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ys=function(){return Math.random().toString(36).substring(7).split("").join(".")},Zs={INIT:"@@redux/INIT"+Ys(),REPLACE:"@@redux/REPLACE"+Ys()};function xy(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Ey(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(Dy(t))return"date";if(Py(t))return"error";var n=$y(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function $y(t){return typeof t.constructor=="function"?t.constructor.name:null}function Py(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Dy(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Zt(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=Ey(t)),e}function e2(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Ie(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(1):"Expected the enhancer to be a function. Instead, received: '"+Zt(n)+"'");return n(e2)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(2):"Expected the root reducer to be a function. Instead, received: '"+Zt(t)+"'");var i=t,o=e,l=[],a=l,s=!1;function c(){a===l&&(a=l.slice())}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function f(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(4):"Expected the listener to be a function. Instead, received: '"+Zt(p)+"'");if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var g=!0;return c(),a.push(p),function(){if(g){if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");g=!1,c();var C=a.indexOf(p);a.splice(C,1),l=null}}}function h(p){if(!xy(p))throw new Error(process.env.NODE_ENV==="production"?Ie(7):"Actions must be plain objects. Instead, the actual type was: '"+Zt(p)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof p.type>"u")throw new Error(process.env.NODE_ENV==="production"?Ie(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(9):"Reducers may not dispatch actions.");try{s=!0,o=i(o,p)}finally{s=!1}for(var g=l=a,m=0;m<g.length;m++){var C=g[m];C()}return p}function v(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(10):"Expected the nextReducer to be a function. Instead, received: '"+Zt(p));i=p,h({type:Zs.REPLACE})}function b(){var p,g=f;return p={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error(process.env.NODE_ENV==="production"?Ie(11):"Expected the observer to be an object. Instead, received: '"+Zt(C)+"'");function S(){C.next&&C.next(d())}S();var P=g(S);return{unsubscribe:P}}},p[qs]=function(){return this},p}return h({type:Zs.INIT}),r={dispatch:h,subscribe:f,getState:d,replaceReducer:v},r[qs]=b,r}var _y=function(e,n){return e===n};function Ty(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Iy(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_y;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function Xs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Js(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xs(Object(n),!0).forEach(function(r){Oy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Oy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qs={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function ky(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qs,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case Zl:case Di:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case _i:return Ty(t.clientOffset,n.clientOffset)?t:Js(Js({},t),{},{clientOffset:n.clientOffset});case Ii:case Ti:return Qs;default:return t}}var Jl="dnd-core/ADD_SOURCE",Ql="dnd-core/ADD_TARGET",ea="dnd-core/REMOVE_SOURCE",Oi="dnd-core/REMOVE_TARGET";function Ny(t){return{type:Jl,payload:{sourceId:t}}}function Ry(t){return{type:Ql,payload:{targetId:t}}}function My(t){return{type:ea,payload:{sourceId:t}}}function Ly(t){return{type:Oi,payload:{targetId:t}}}function ec(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Oe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ec(Object(n),!0).forEach(function(r){Ay(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ec(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ay(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Fy={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ky(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Fy,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case Di:return Oe(Oe({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Xl:return Oe(Oe({},t),{},{isSourcePublic:!0});case _i:return Oe(Oe({},t),{},{targetIds:n.targetIds});case Oi:return t.targetIds.indexOf(n.targetId)===-1?t:Oe(Oe({},t),{},{targetIds:Yb(t.targetIds,n.targetId)});case Ti:return Oe(Oe({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Ii:return Oe(Oe({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function jy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Jl:case Ql:return t+1;case ea:case Oi:return t-1;default:return t}}var Qr=[],ta=[];Qr.__IS_NONE__=!0;ta.__IS_ALL__=!0;function Hy(t,e){if(t===Qr)return!1;if(t===ta||typeof e>"u")return!0;var n=Xb(e,t);return n.length>0}function zy(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case _i:break;case Jl:case Ql:case Oi:case ea:return Qr;case Di:case Xl:case Ii:case Ti:default:return ta}var e=t.payload,n=e.targetIds,r=n===void 0?[]:n,i=e.prevTargetIds,o=i===void 0?[]:i,l=Zb(r,o),a=l.length>0||!Iy(r,o);if(!a)return Qr;var s=o[o.length-1],c=r[r.length-1];return s!==c&&(s&&l.push(s),c&&l.push(c)),l}function Vy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t+1}function tc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function nc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tc(Object(n),!0).forEach(function(r){By(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function By(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Uy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:zy(t.dirtyHandlerIds,{type:e.type,payload:nc(nc({},e.payload),{},{prevTargetIds:qb(t,"dragOperation.targetIds",[])})}),dragOffset:ky(t.dragOffset,e),refCount:jy(t.refCount,e),dragOperation:Ky(t.dragOperation,e),stateId:Vy(t.stateId)}}function Wy(t,e){return{x:t.x+e.x,y:t.y+e.y}}function t2(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Gy(t){var e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset;return!e||!n||!r?null:t2(Wy(e,r),n)}function qy(t){var e=t.clientOffset,n=t.initialClientOffset;return!e||!n?null:t2(e,n)}function Yy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xy(t,e,n){return e&&Zy(t.prototype,e),t}function rc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jy=function(){function t(e,n){Yy(this,t),rc(this,"store",void 0),rc(this,"registry",void 0),this.store=e,this.registry=n}return Xy(t,[{key:"subscribeToStateChange",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=i.handlerIds;Z(typeof n=="function","listener must be a function."),Z(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var l=this.store.getState().stateId,a=function(){var c=r.store.getState(),d=c.stateId;try{var f=d===l||d===l+1&&!Hy(c.dirtyHandlerIds,o);f||n()}finally{l=d}};return this.store.subscribe(a)}},{key:"subscribeToOffsetChange",value:function(n){var r=this;Z(typeof n=="function","listener must be a function.");var i=this.store.getState().dragOffset,o=function(){var a=r.store.getState().dragOffset;a!==i&&(i=a,n())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(n){if(!n)return!1;var r=this.registry.getSource(n);return Z(r,"Expected to find a valid source. sourceId=".concat(n)),this.isDragging()?!1:r.canDrag(this,n)}},{key:"canDropOnTarget",value:function(n){if(!n)return!1;var r=this.registry.getTarget(n);if(Z(r,"Expected to find a valid target. targetId=".concat(n)),!this.isDragging()||this.didDrop())return!1;var i=this.registry.getTargetType(n),o=this.getItemType();return tl(i,o)&&r.canDrop(this,n)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(n){if(!n)return!1;var r=this.registry.getSource(n,!0);if(Z(r,"Expected to find a valid source. sourceId=".concat(n)),!this.isDragging()||!this.isSourcePublic())return!1;var i=this.registry.getSourceType(n),o=this.getItemType();return i!==o?!1:r.isDragging(this,n)}},{key:"isOverTarget",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!n)return!1;var i=r.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(n),l=this.getItemType();if(l&&!tl(o,l))return!1;var a=this.getTargetIds();if(!a.length)return!1;var s=a.indexOf(n);return i?s===a.length-1:s>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return Gy(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return qy(this.store.getState().dragOffset)}}]),t}(),Qy=0;function e9(){return Qy++}function Nr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nr=function(n){return typeof n}:Nr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Nr(t)}function t9(t){Z(typeof t.canDrag=="function","Expected canDrag to be a function."),Z(typeof t.beginDrag=="function","Expected beginDrag to be a function."),Z(typeof t.endDrag=="function","Expected endDrag to be a function.")}function n9(t){Z(typeof t.canDrop=="function","Expected canDrop to be a function."),Z(typeof t.hover=="function","Expected hover to be a function."),Z(typeof t.drop=="function","Expected beginDrag to be a function.")}function nl(t,e){if(e&&Array.isArray(t)){t.forEach(function(n){return nl(n,!1)});return}Z(typeof t=="string"||Nr(t)==="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const ic=typeof global<"u"?global:self,n2=ic.MutationObserver||ic.WebKitMutationObserver;function r2(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function r9(t){let e=1;const n=new n2(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const i9=typeof n2=="function"?r9:r2;class o9{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let r=0,i=e.length-this.index;r<i;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=i9(this.flush),this.requestErrorThrow=r2(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class l9{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class a9{create(e){const n=this.freeTasks,r=n.length?n.pop():new l9(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const i2=new o9,s9=new a9(i2.registerPendingError);function c9(t){i2.enqueueTask(s9.create(t))}function u9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f9(t,e,n){return e&&d9(t.prototype,e),t}function Xt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h9(t,e){return m9(t)||g9(t,e)||v9(t,e)||p9()}function p9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
89
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
90
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $9(t,e){if(t){if(typeof t=="string")return sc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sc(t,e)}}function sc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function P9(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function D9(t){if(Array.isArray(t))return t}function _9(t,e){if(t==null)return{};var n=T9(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function T9(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var cc=0,Rr=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),I9=u.memo(function(e){var n=e.children,r=_9(e,w9),i=O9(r),o=x9(i,2),l=o[0],a=o[1];return u.useEffect(function(){if(a){var s=o2();return++cc,function(){--cc===0&&(s[Rr]=null)}}},[]),y.jsx(J0.Provider,Object.assign({value:l},{children:n}),void 0)});function O9(t){if("manager"in t){var e={dragDropManager:t.manager};return[e,!1]}var n=k9(t.backend,t.context,t.options,t.debugMode),r=!t.context;return[n,r]}function k9(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o2(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=e;return i[Rr]||(i[Rr]={dragDropManager:C9(t,e,n,r)}),i[Rr]}function o2(){return typeof global<"u"?global:window}function N9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function M9(t,e,n){return e&&R9(t.prototype,e),t}function uc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var uo=!1,fo=!1,L9=function(){function t(e){N9(this,t),uc(this,"internalMonitor",void 0),uc(this,"sourceId",null),this.internalMonitor=e.getMonitor()}return M9(t,[{key:"receiveHandlerId",value:function(n){this.sourceId=n}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Z(!uo,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return uo=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{uo=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Z(!fo,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return fo=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{fo=!1}}},{key:"subscribeToStateChange",value:function(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}},{key:"isDraggingSource",value:function(n){return this.internalMonitor.isDraggingSource(n)}},{key:"isOverTarget",value:function(n,r){return this.internalMonitor.isOverTarget(n,r)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(n){return this.internalMonitor.subscribeToOffsetChange(n)}},{key:"canDragSource",value:function(n){return this.internalMonitor.canDragSource(n)}},{key:"canDropOnTarget",value:function(n){return this.internalMonitor.canDropOnTarget(n)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}();function A9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function K9(t,e,n){return e&&F9(t.prototype,e),t}function dc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ho=!1,j9=function(){function t(e){A9(this,t),dc(this,"internalMonitor",void 0),dc(this,"targetId",null),this.internalMonitor=e.getMonitor()}return K9(t,[{key:"receiveHandlerId",value:function(n){this.targetId=n}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;Z(!ho,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return ho=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{ho=!1}}},{key:"isOver",value:function(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!1}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}();function H9(t){if(typeof t.type!="string"){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function z9(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!u.isValidElement(e)){var r=e;return t(r,n),r}var i=e;H9(i);var o=n?function(l){return t(l,n)}:t;return V9(i,o)}}function l2(t){var e={};return Object.keys(t).forEach(function(n){var r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{var i=z9(r);e[n]=function(){return i}}}),e}function fc(t,e){typeof t=="function"?t(e):t.current=e}function V9(t,e){var n=t.ref;return Z(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?u.cloneElement(t,{ref:function(i){fc(n,i),fc(e,i)}}):u.cloneElement(t,{ref:e})}function Mr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mr=function(n){return typeof n}:Mr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mr(t)}function rl(t){return t!==null&&Mr(t)==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function il(t,e,n,r){var i=void 0;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;var o=Object.keys(t),l=Object.keys(e);if(o.length!==l.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(e),s=0;s<o.length;s++){var c=o[s];if(!a(c))return!1;var d=t[c],f=e[c];if(i=void 0,i===!1||i===void 0&&d!==f)return!1}return!0}function B9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function U9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function W9(t,e,n){return e&&U9(t.prototype,e),t}function be(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var G9=function(){function t(e){var n=this;B9(this,t),be(this,"hooks",l2({dragSource:function(i,o){n.clearDragSource(),n.dragSourceOptions=o||null,rl(i)?n.dragSourceRef=i:n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,o){n.clearDragPreview(),n.dragPreviewOptions=o||null,rl(i)?n.dragPreviewRef=i:n.dragPreviewNode=i,n.reconnectDragPreview()}})),be(this,"handlerId",null),be(this,"dragSourceRef",null),be(this,"dragSourceNode",void 0),be(this,"dragSourceOptionsInternal",null),be(this,"dragSourceUnsubscribe",void 0),be(this,"dragPreviewRef",null),be(this,"dragPreviewNode",void 0),be(this,"dragPreviewOptionsInternal",null),be(this,"dragPreviewUnsubscribe",void 0),be(this,"lastConnectedHandlerId",null),be(this,"lastConnectedDragSource",null),be(this,"lastConnectedDragSourceOptions",null),be(this,"lastConnectedDragPreview",null),be(this,"lastConnectedDragPreviewOptions",null),be(this,"backend",void 0),this.backend=e}return W9(t,[{key:"receiveHandlerId",value:function(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(n){this.dragSourceOptionsInternal=n}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(n){this.dragPreviewOptionsInternal=n}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var n=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(r&&this.disconnectDragSource(),!!this.handlerId){if(!n){this.lastConnectedDragSource=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions))}}},{key:"reconnectDragPreview",value:function(){var n=this.dragPreview,r=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!il(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!il(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}]),t}();function q9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Y9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Z9(t,e,n){return e&&Y9(t.prototype,e),t}function We(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var X9=function(){function t(e){var n=this;q9(this,t),We(this,"hooks",l2({dropTarget:function(i,o){n.clearDropTarget(),n.dropTargetOptions=o,rl(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}})),We(this,"handlerId",null),We(this,"dropTargetRef",null),We(this,"dropTargetNode",void 0),We(this,"dropTargetOptionsInternal",null),We(this,"unsubscribeDropTarget",void 0),We(this,"lastConnectedHandlerId",null),We(this,"lastConnectedDropTarget",null),We(this,"lastConnectedDropTargetOptions",null),We(this,"backend",void 0),this.backend=e}return Z9(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();var r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(n){this.dropTargetOptionsInternal=n}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!il(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}]),t}();function J9(t,e,n){var r=n.getRegistry(),i=r.addTarget(t,e);return[i,function(){return r.removeTarget(i)}]}function Q9(t,e,n){var r=n.getRegistry(),i=r.addSource(t,e);return[i,function(){return r.removeSource(i)}]}var Mt=typeof window<"u"?u.useLayoutEffect:u.useEffect;function Lr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lr=function(n){return typeof n}:Lr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lr(t)}function e4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function t4(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n4(t,e,n){return e&&t4(t.prototype,e),t}function po(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r4=function(){function t(e,n,r){e4(this,t),po(this,"spec",void 0),po(this,"monitor",void 0),po(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}return n4(t,[{key:"beginDrag",value:function(){var n,r=this.spec,i=this.monitor,o=null;return Lr(r.item)==="object"?o=r.item:typeof r.item=="function"?o=r.item(i):o={},(n=o)!==null&&n!==void 0?n:null}},{key:"canDrag",value:function(){var n=this.spec,r=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(r):!0}},{key:"isDragging",value:function(n,r){var i=this.spec,o=this.monitor,l=i.isDragging;return l?l(o):r===n.getSourceId()}},{key:"endDrag",value:function(){var n=this.spec,r=this.monitor,i=this.connector,o=n.end;o&&o(r.getItem(),r),i.reconnect()}}]),t}();function i4(t,e,n){var r=u.useMemo(function(){return new r4(t,e,n)},[e,n]);return u.useEffect(function(){r.spec=t},[t]),r}function Ht(){var t=u.useContext(J0),e=t.dragDropManager;return Z(e!=null,"Expected drag drop context"),e}function o4(t){return u.useMemo(function(){var e=t.type;return Z(e!=null,"spec.type must be defined"),e},[t])}function l4(t,e){return u4(t)||c4(t,e)||s4(t,e)||a4()}function a4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
91
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
92
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
93
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
94
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
95
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
96
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
97
|
-
`)},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),Cr(Jt,g2,{exposeProperties:{text:function(e,n){return go(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),Jt);function m3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y3(t,e,n){return e&&b3(t.prototype,e),t}function xc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var C3=function(){function t(e){m3(this,t),xc(this,"item",void 0),xc(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return y3(t,[{key:"initializeExposedProperties",value:function(){var n=this;Object.keys(this.config.exposeProperties).forEach(function(r){Object.defineProperty(n.item,r,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(r,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(n){var r=this;if(n){var i={};Object.keys(this.config.exposeProperties).forEach(function(o){i[o]={value:r.config.exposeProperties[o](n,r.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,i)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(n,r){return r===n.getSourceId()}},{key:"endDrag",value:function(){}}]),t}();function S3(t,e){var n=new C3(ll[t]);return n.loadDataTransfer(e),n}function mo(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(ll).filter(function(n){var r=ll[n].matchesTypes;return r.some(function(i){return e.indexOf(i)>-1})})[0]||null}function w3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E3(t,e,n){return e&&x3(t.prototype,e),t}function bo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $3=function(){function t(e,n){w3(this,t),bo(this,"ownerDocument",null),bo(this,"globalContext",void 0),bo(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}return E3(t,[{key:"window",get:function(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}},{key:"document",get:function(){var n;return(n=this.globalContext)!==null&&n!==void 0&&n.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var n;return((n=this.optionsArgs)===null||n===void 0?void 0:n.rootElement)||this.window}}]),t}();function Ec(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $c(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ec(Object(n),!0).forEach(function(r){Q(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function P3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function D3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _3(t,e,n){return e&&D3(t.prototype,e),t}function Q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var T3=function(){function t(e,n,r){var i=this;P3(this,t),Q(this,"options",void 0),Q(this,"actions",void 0),Q(this,"monitor",void 0),Q(this,"registry",void 0),Q(this,"enterLeaveCounter",void 0),Q(this,"sourcePreviewNodes",new Map),Q(this,"sourcePreviewNodeOptions",new Map),Q(this,"sourceNodes",new Map),Q(this,"sourceNodeOptions",new Map),Q(this,"dragStartSourceIds",null),Q(this,"dropTargetIds",[]),Q(this,"dragEnterTargetIds",[]),Q(this,"currentNativeSource",null),Q(this,"currentNativeHandle",null),Q(this,"currentDragSourceNode",null),Q(this,"altKeyPressed",!1),Q(this,"mouseMoveTimeoutTimer",null),Q(this,"asyncEndDragFrameId",null),Q(this,"dragOverTargetIds",null),Q(this,"lastClientOffset",null),Q(this,"hoverRafId",null),Q(this,"getSourceClientOffset",function(o){var l=i.sourceNodes.get(o);return l&&h2(l)||null}),Q(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),Q(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),Q(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),Q(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),Q(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var l=i.dragStartSourceIds;i.dragStartSourceIds=null;var a=yr(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(l||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:a});var s=o.dataTransfer,c=mo(s);if(i.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){var d=i.monitor.getSourceId(),f=i.sourceNodes.get(d),h=i.sourcePreviewNodes.get(d)||f;if(h){var v=i.getCurrentSourcePreviewNodeOptions(),b=v.anchorX,p=v.anchorY,g=v.offsetX,m=v.offsetY,C={anchorX:b,anchorY:p},S={offsetX:g,offsetY:m},P=g3(f,h,a,C,S);s.setDragImage(h,P.x,P.y)}}try{s==null||s.setData("application/json",{})}catch{}i.setCurrentDragSourceNode(o.target);var $=i.getCurrentSourcePreviewNodeOptions(),x=$.captureDraggingState;x?i.actions.publishDragSource():setTimeout(function(){return i.actions.publishDragSource()},0)}else if(c)i.beginDragNativeItem(c);else{if(s&&!s.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}}}),Q(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),Q(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var l=i.enterLeaveCounter.enter(o.target);if(!(!l||i.monitor.isDragging())){var a=o.dataTransfer,s=mo(a);s&&i.beginDragNativeItem(s,a)}}),Q(this,"handleTopDragEnter",function(o){var l=i.dragEnterTargetIds;if(i.dragEnterTargetIds=[],!!i.monitor.isDragging()){i.altKeyPressed=o.altKey,l.length>0&&i.actions.hover(l,{clientOffset:yr(o)});var a=l.some(function(s){return i.monitor.canDropOnTarget(s)});a&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),Q(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),Q(this,"handleTopDragOver",function(o){var l=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}i.altKeyPressed=o.altKey,i.lastClientOffset=yr(o),i.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(i.hoverRafId=requestAnimationFrame(function(){i.monitor.isDragging()&&i.actions.hover(l||[],{clientOffset:i.lastClientOffset}),i.hoverRafId=null}));var a=(l||[]).some(function(s){return i.monitor.canDropOnTarget(s)});a?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))}),Q(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var l=i.enterLeaveCounter.leave(o.target);l&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),Q(this,"handleTopDropCapture",function(o){if(i.dropTargetIds=[],i.isDraggingNativeItem()){var l;o.preventDefault(),(l=i.currentNativeSource)===null||l===void 0||l.loadDataTransfer(o.dataTransfer)}else mo(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),Q(this,"handleTopDrop",function(o){var l=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(l,{clientOffset:yr(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),Q(this,"handleSelectStart",function(o){var l=o.target;typeof l.dragDrop=="function"&&(l.tagName==="INPUT"||l.tagName==="SELECT"||l.tagName==="TEXTAREA"||l.isContentEditable||(o.preventDefault(),l.dragDrop()))}),this.options=new $3(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new s3(this.isNodeInDocument)}return _3(t,[{key:"profile",value:function(){var n,r;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((n=this.dragStartSourceIds)===null||n===void 0?void 0:n.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var n=this.rootElement;if(n!==void 0){if(n.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");n.__isReactDndBackendSetUp=!0,this.addEventListeners(n)}}},{key:"teardown",value:function(){var n=this.rootElement;if(n!==void 0&&(n.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}},{key:"connectDragPreview",value:function(n,r,i){var o=this;return this.sourcePreviewNodeOptions.set(n,i),this.sourcePreviewNodes.set(n,r),function(){o.sourcePreviewNodes.delete(n),o.sourcePreviewNodeOptions.delete(n)}}},{key:"connectDragSource",value:function(n,r,i){var o=this;this.sourceNodes.set(n,r),this.sourceNodeOptions.set(n,i);var l=function(c){return o.handleDragStart(c,n)},a=function(c){return o.handleSelectStart(c)};return r.setAttribute("draggable","true"),r.addEventListener("dragstart",l),r.addEventListener("selectstart",a),function(){o.sourceNodes.delete(n),o.sourceNodeOptions.delete(n),r.removeEventListener("dragstart",l),r.removeEventListener("selectstart",a),r.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(n,r){var i=this,o=function(c){return i.handleDragEnter(c,n)},l=function(c){return i.handleDragOver(c,n)},a=function(c){return i.handleDrop(c,n)};return r.addEventListener("dragenter",o),r.addEventListener("dragover",l),r.addEventListener("drop",a),function(){r.removeEventListener("dragenter",o),r.removeEventListener("dragover",l),r.removeEventListener("drop",a)}}},{key:"addEventListeners",value:function(n){n.addEventListener&&(n.addEventListener("dragstart",this.handleTopDragStart),n.addEventListener("dragstart",this.handleTopDragStartCapture,!0),n.addEventListener("dragend",this.handleTopDragEndCapture,!0),n.addEventListener("dragenter",this.handleTopDragEnter),n.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.addEventListener("dragover",this.handleTopDragOver),n.addEventListener("dragover",this.handleTopDragOverCapture,!0),n.addEventListener("drop",this.handleTopDrop),n.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(n){n.removeEventListener&&(n.removeEventListener("dragstart",this.handleTopDragStart),n.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),n.removeEventListener("dragend",this.handleTopDragEndCapture,!0),n.removeEventListener("dragenter",this.handleTopDragEnter),n.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.removeEventListener("dragover",this.handleTopDragOver),n.removeEventListener("dragover",this.handleTopDragOverCapture,!0),n.removeEventListener("drop",this.handleTopDrop),n.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var n=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(n);return $c({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var n=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(n);return $c({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}},{key:"isDraggingNativeItem",value:function(){var n=this.monitor.getItemType();return Object.keys(wc).some(function(r){return wc[r]===n})}},{key:"beginDragNativeItem",value:function(n,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=S3(n,r),this.currentNativeHandle=this.registry.addSource(n,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(n){var r=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=n;var i=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){var o;return(o=r.rootElement)===null||o===void 0?void 0:o.addEventListener("mousemove",r.endDragIfSourceWasRemovedFromDOM,!0)},i)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var n;(n=this.window)===null||n===void 0||n.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(n,r){n.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}},{key:"handleDragEnter",value:function(n,r){this.dragEnterTargetIds.unshift(r)}},{key:"handleDragOver",value:function(n,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}},{key:"handleDrop",value:function(n,r){this.dropTargetIds.unshift(r)}}]),t}(),Sr;function I3(){return Sr||(Sr=new Image,Sr.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Sr}var O3=function(e,n,r){return new T3(e,n,r)};function k3(t){const e=Te(),n=e.selectedIds,[r,i,o]=M4(()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const l=e.isSelected(t.id)?Array.from(n):[t.id];return e.dispatch(yn.dragStart(t.id,l)),{id:t.id,dragIds:l}},end:()=>{e.hideCursor(),e.dispatch(yn.dragEnd())}}),[n,t]);return u.useEffect(()=>{o(I3())},[o]),i}function N3(t,e){const n=t.getBoundingClientRect(),r=e.x-Math.round(n.x),i=e.y-Math.round(n.y),o=n.height,l=i<o/2,a=!l,s=o/4,c=i>s&&i<o-s;return{x:r,inTopHalf:l,inBottomHalf:a,inMiddle:c,atTop:!c&&l,atBottom:!c&&a}}function R3(t,e,n,r){return t?t.isInternal?r.atTop?[e,t]:r.inMiddle?[t,t]:[t,n]:r.inTopHalf?[e,t]:[t,n]:[e,null]}function wr(t,e){return{parentId:t||null,index:e}}function Qt(t,e){return{type:"line",index:t,level:e}}function M3(t){return{type:"highlight",id:t}}function yo(t,e){var n;let r=t;for(;r.parent&&r.level>e;)r=r.parent;const i=((n=r.parent)===null||n===void 0?void 0:n.id)||null,o=z0(r)+1;return{parentId:i,index:o}}function b2(t){var e;const n=N3(t.element,t.offset),r=t.indent,i=Math.round(Math.max(0,n.x-r)/r),{node:o,nextNode:l,prevNode:a}=t,[s,c]=R3(o,a,l,n);if(o&&o.isInternal&&n.inMiddle)return{drop:wr(o.id,null),cursor:M3(o.id)};if(!s)return{drop:wr((e=c==null?void 0:c.parent)===null||e===void 0?void 0:e.id,0),cursor:Qt(0,0)};if(F0(s)){const d=Tr(i,(c==null?void 0:c.level)||0,s.level);return{drop:yo(s,d),cursor:Qt(s.rowIndex+1,d)}}if(K0(s)){const d=Tr(i,(c==null?void 0:c.level)||0,s.level);return{drop:yo(s,d),cursor:Qt(s.rowIndex+1,d)}}if(j0(s)){const d=Tr(i,0,s.level+1);return d>s.level?{drop:wr(s.id,0),cursor:Qt(s.rowIndex+1,d)}:{drop:yo(s,d),cursor:Qt(s.rowIndex+1,d)}}return{drop:wr(s==null?void 0:s.id,0),cursor:Qt(s.rowIndex+1,s.level+1)}}function L3(t,e){const n=Te(),[r,i]=u2(()=>({accept:"NODE",canDrop:()=>n.canDrop(),hover:(o,l)=>{const a=l.getClientOffset();if(!t.current||!a)return;const{cursor:s,drop:c}=b2({element:t.current,offset:a,indent:n.indent,node:e,prevNode:e.prev,nextNode:e.next});c&&n.dispatch(yn.hovering(c.parentId,c.index)),l.canDrop()?s&&n.showCursor(s):n.hideCursor()},drop:(o,l)=>{if(!l.canDrop())return null;let{parentId:a,index:s,dragIds:c}=n.state.dnd;G0(n.props.onMove,{dragIds:c,parentId:a===Jn?null:a,index:s===null?0:s,dragNodes:n.dragNodes,parentNode:n.get(a)}),n.open(a)}}),[e,t.current,n.props]);return i}function A3(t){const e=Te(),n=e.at(t);if(!n)throw new Error(`Could not find node for index: ${t}`);return u.useMemo(()=>{const r=n.clone();return e.visibleNodes[t]=r,r},[...Object.values(n.state),n])}const F3=u.memo(function({index:e,style:n}){A0(),ib();const r=Te(),i=A3(e),o=u.useRef(null),l=k3(i),a=L3(o,i),s=u.useCallback(p=>{o.current=p,a(p)},[a]),c=r.indent*i.level,d=u.useMemo(()=>({paddingLeft:c}),[c]),f=u.useMemo(()=>{var p,g;return Object.assign(Object.assign({},n),{top:parseFloat(n.top)+((g=(p=r.props.padding)!==null&&p!==void 0?p:r.props.paddingTop)!==null&&g!==void 0?g:0)})},[n,r.props.padding,r.props.paddingTop]),h={role:"treeitem","aria-level":i.level+1,"aria-selected":i.isSelected,"aria-expanded":i.isOpen,style:f,tabIndex:-1,className:r.props.rowClassName};u.useEffect(()=>{var p;!i.isEditing&&i.isFocused&&((p=o.current)===null||p===void 0||p.focus({preventScroll:!0}))},[i.isEditing,i.isFocused,o.current]);const v=r.renderNode,b=r.renderRow;return y.jsx(b,{node:i,innerRef:s,attrs:h,children:y.jsx(v,{node:i,tree:r,style:d,dragHandle:l})})});let Co="",Pc=null;function y2(){A0();const t=Te();return y.jsx("div",{role:"tree",style:{height:t.height,width:t.width,minHeight:0,minWidth:0},onContextMenu:t.props.onContextMenu,onClick:t.props.onClick,tabIndex:0,onFocus:e=>{e.currentTarget.contains(e.relatedTarget)||t.onFocus()},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.onBlur()},onKeyDown:e=>{var n;if(t.isEditing)return;if(e.key==="Backspace"){if(!t.props.onDelete)return;const i=Array.from(t.selectedIds);if(i.length>1){let o=t.mostRecentNode;for(;o&&o.isSelected;)o=o.nextSibling;o||(o=t.lastNode),t.focus(o,{scroll:!1}),t.delete(Array.from(i))}else{const o=t.focusedNode;if(o){const l=o.nextSibling,a=o.parent;t.focus(l||a,{scroll:!1}),t.delete(o)}}return}if(e.key==="Tab"&&!e.shiftKey){e.preventDefault(),V0(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),B0(e.currentTarget);return}if(e.key==="ArrowDown"){e.preventDefault();const i=t.nextNode;if(e.metaKey){t.select(t.focusedNode),t.activate(t.focusedNode);return}else if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.firstNode);return}}if(e.key==="ArrowUp"){e.preventDefault();const i=t.prevNode;if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.lastNode);return}}if(e.key==="ArrowRight"){const i=t.focusedNode;if(!i)return;i.isInternal&&i.isOpen?t.focus(t.nextNode):i.isInternal&&t.open(i.id);return}if(e.key==="ArrowLeft"){const i=t.focusedNode;if(!i||i.isRoot)return;i.isInternal&&i.isOpen?t.close(i.id):!((n=i.parent)===null||n===void 0)&&n.isRoot||t.focus(i.parent);return}if(e.key==="a"&&e.metaKey&&!t.props.disableMultiSelection){e.preventDefault(),t.selectAll();return}if(e.key==="a"&&!e.metaKey&&t.props.onCreate){t.createLeaf();return}if(e.key==="A"&&!e.metaKey){if(!t.props.onCreate)return;t.createInternal();return}if(e.key==="Home"){e.preventDefault(),t.focus(t.firstNode);return}if(e.key==="End"){e.preventDefault(),t.focus(t.lastNode);return}if(e.key==="Enter"){const i=t.focusedNode;if(!i||!i.isEditable||!t.props.onRename)return;setTimeout(()=>{i&&t.edit(i)});return}if(e.key===" "){e.preventDefault();const i=t.focusedNode;if(!i)return;i.isLeaf?(i.select(),i.activate()):i.toggle();return}if(e.key==="*"){const i=t.focusedNode;if(!i)return;t.openSiblings(i);return}if(e.key==="PageUp"){e.preventDefault(),t.pageUp();return}e.key==="PageDown"&&(e.preventDefault(),t.pageDown()),clearTimeout(Pc),Co+=e.key,Pc=setTimeout(()=>{Co=""},600);const r=t.visibleNodes.find(i=>{const o=i.data.name;return typeof o=="string"?o.toLowerCase().startsWith(Co):!1});r&&t.focus(r.id)},children:y.jsx(Hb,{className:t.props.className,outerRef:t.listEl,itemCount:t.visibleNodes.length,height:t.height,width:t.width,itemSize:t.rowHeight,overscanCount:t.overscanCount,itemKey:e=>{var n;return((n=t.visibleNodes[e])===null||n===void 0?void 0:n.id)||e},outerElementType:Bb,innerElementType:Gb,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:F3})})}function Dc(t){return t.isFiltered?j3(t.root,t.isMatch.bind(t)):K3(t.root)}function K3(t){const e=[];function n(r){var i;r.level>=0&&e.push(r),r.isOpen&&((i=r.children)===null||i===void 0||i.forEach(n))}return n(t),e.forEach(C2),e}function j3(t,e){const n={},r=[];function i(l){if(!l.isRoot&&e(l)){n[l.id]=!0;let s=l.parent;for(;s;)n[s.id]=!0,s=s.parent}if(l.children)for(let s of l.children)i(s)}function o(l){var a;l.level>=0&&n[l.id]&&r.push(l),l.isOpen&&((a=l.children)===null||a===void 0||a.forEach(o))}return i(t),o(t),r.forEach(C2),r}function C2(t,e){t.rowIndex=e}const _c=t=>t.reduce((e,n,r)=>(e[n.id]=r,e),{});var So=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function a(d){try{c(r.next(d))}catch(f){l(f)}}function s(d){try{c(r.throw(d))}catch(f){l(f)}}function c(d){d.done?o(d.value):i(d.value).then(a,s)}c((r=r.apply(t,e||[])).next())})};const{safeRun:ge,identify:Ze,identifyNull:Ke}=ub;class hn{constructor(e,n,r,i){this.store=e,this.props=n,this.list=r,this.listEl=i,this.visibleStartIndex=0,this.visibleStopIndex=0,this.root=As(this),this.visibleNodes=Dc(this),this.idToIndex=_c(this.visibleNodes)}update(e){this.props=e,this.root=As(this),this.visibleNodes=Dc(this),this.idToIndex=_c(this.visibleNodes)}dispatch(e){return this.store.dispatch(e)}get state(){return this.store.getState()}get openState(){return this.state.nodes.open.unfiltered}get width(){var e;return(e=this.props.width)!==null&&e!==void 0?e:300}get height(){var e;return(e=this.props.height)!==null&&e!==void 0?e:500}get indent(){var e;return(e=this.props.indent)!==null&&e!==void 0?e:24}get rowHeight(){var e;return(e=this.props.rowHeight)!==null&&e!==void 0?e:24}get overscanCount(){var e;return(e=this.props.overscanCount)!==null&&e!==void 0?e:1}get searchTerm(){return(this.props.searchTerm||"").trim()}get matchFn(){var e;const n=(e=this.props.searchMatch)!==null&&e!==void 0?e:(r,i)=>JSON.stringify(Object.values(r.data)).toLocaleLowerCase().includes(i.toLocaleLowerCase());return r=>n(r,this.searchTerm)}accessChildren(e){var n;const r=this.props.childrenAccessor||"children";return(n=Kn(e,r))!==null&&n!==void 0?n:null}accessId(e){const n=this.props.idAccessor||"id",r=Kn(e,n);if(!r)throw new Error("Data must contain an 'id' property or props.idAccessor must return a string");return r}get firstNode(){var e;return(e=this.visibleNodes[0])!==null&&e!==void 0?e:null}get lastNode(){var e;return(e=this.visibleNodes[this.visibleNodes.length-1])!==null&&e!==void 0?e:null}get focusedNode(){var e;return(e=this.get(this.state.nodes.focus.id))!==null&&e!==void 0?e:null}get mostRecentNode(){var e;return(e=this.get(this.state.nodes.selection.mostRecent))!==null&&e!==void 0?e:null}get nextNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e+1)}get prevNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e-1)}get(e){return e&&e in this.idToIndex&&this.visibleNodes[this.idToIndex[e]]||null}at(e){return this.visibleNodes[e]||null}nodesBetween(e,n){var r;if(e===null||n===null)return[];const i=(r=this.indexOf(e))!==null&&r!==void 0?r:0,o=this.indexOf(n);if(o===null)return[];const l=Math.min(i,o),a=Math.max(i,o);return this.visibleNodes.slice(l,a+1)}indexOf(e){const n=W0(e);return n?this.idToIndex[n]:null}get editingId(){return this.state.nodes.edit.id}createInternal(){return this.create({type:"internal"})}createLeaf(){return this.create({type:"leaf"})}create(){return So(this,arguments,void 0,function*(e={}){var n,r;const i=e.parentId===void 0?Z0(this):e.parentId,o=(n=e.index)!==null&&n!==void 0?n:Y0(this),l=(r=e.type)!==null&&r!==void 0?r:"leaf",a=yield ge(this.props.onCreate,{type:l,parentId:i,index:o,parentNode:this.get(i)});a&&(this.focus(a),setTimeout(()=>{this.edit(a).then(()=>{this.select(a),this.activate(a)})}))})}delete(e){return So(this,void 0,void 0,function*(){if(!e)return;const r=(Array.isArray(e)?e:[e]).map(Ze),i=r.map(o=>this.get(o)).filter(o=>!!o);yield ge(this.props.onDelete,{nodes:i,ids:r})})}edit(e){const n=Ze(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(n),this.dispatch(ao(n)),new Promise(r=>{hn.editPromise=r})}submit(e,n){return So(this,void 0,void 0,function*(){if(!e)return;const r=Ze(e);yield ge(this.props.onRename,{id:r,name:n,node:this.get(r)}),this.dispatch(ao(null)),this.resolveEdit({cancelled:!1,value:n}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(ao(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const n=this.get(Ke(e));n&&ge(this.props.onActivate,n)}resolveEdit(e){const n=hn.editPromise;n&&n(e),hn.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let e=[];for(let n of Array.from(this.selectedIds)){const r=this.get(n);r&&e.push(r)}return e}focus(e,n={}){e&&(this.props.selectionFollowsFocus?this.select(e):(this.dispatch(qt(Ze(e))),n.scroll!==!1&&this.scrollTo(e),this.focusedNode&&ge(this.props.onFocus,this.focusedNode)))}pageUp(){var e,n;const r=this.visibleStartIndex,o=this.visibleStopIndex-r;let l=(n=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&n!==void 0?n:0;l>r?l=r:l=Math.max(r-o,0),this.focus(this.at(l))}pageDown(){var e,n;const r=this.visibleStartIndex,i=this.visibleStopIndex,o=i-r;let l=(n=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&n!==void 0?n:0;l<i?l=i:l=Math.min(l+o,this.visibleNodes.length-1),this.focus(this.at(l))}select(e,n={}){if(!e)return;const r=n.focus!==!1,i=Ze(e);r&&this.dispatch(qt(i)),this.dispatch(Fe.only(i)),this.dispatch(Fe.anchor(i)),this.dispatch(Fe.mostRecent(i)),this.scrollTo(i,n.align),this.focusedNode&&r&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes)}deselect(e){if(!e)return;const n=Ze(e);this.dispatch(Fe.remove(n)),ge(this.props.onSelect,this.selectedNodes)}selectMulti(e){const n=this.get(Ke(e));n&&(this.dispatch(qt(n.id)),this.dispatch(Fe.add(n.id)),this.dispatch(Fe.anchor(n.id)),this.dispatch(Fe.mostRecent(n.id)),this.scrollTo(n),this.focusedNode&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes))}selectContiguous(e){if(!e)return;const n=Ze(e),{anchor:r,mostRecent:i}=this.state.nodes.selection;this.dispatch(qt(n)),this.dispatch(Fe.remove(this.nodesBetween(r,i))),this.dispatch(Fe.add(this.nodesBetween(r,Ke(n)))),this.dispatch(Fe.mostRecent(n)),this.scrollTo(n),this.focusedNode&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),ge(this.props.onSelect,this.selectedNodes)}selectAll(){var e;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(qt((e=this.lastNode)===null||e===void 0?void 0:e.id)),this.focusedNode&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes)}setSelection(e){var n;const r=new Set((n=e.ids)===null||n===void 0?void 0:n.map(Ze)),i=Ke(e.anchor),o=Ke(e.mostRecent);this.dispatch(Fe.set({ids:r,anchor:i,mostRecent:o})),ge(this.props.onSelect,this.selectedNodes)}get cursorParentId(){const{cursor:e}=this.state.dnd;switch(e.type){case"highlight":return e.id;default:return null}}get cursorOverFolder(){return this.state.dnd.cursor.type==="highlight"}get dragNodes(){return this.state.dnd.dragIds.map(e=>this.get(e)).filter(e=>!!e)}get dragNode(){return this.get(this.state.nodes.drag.id)}get dragDestinationParent(){return this.get(this.state.nodes.drag.destinationParentId)}get dragDestinationIndex(){return this.state.nodes.drag.destinationIndex}canDrop(){var e;if(this.isFiltered)return!1;const n=(e=this.get(this.state.dnd.parentId))!==null&&e!==void 0?e:this.root,r=this.dragNodes,i=this.props.disableDrop;for(const o of r)if(!o||!n||o.isInternal&&H0(n,o))return!1;return typeof i=="function"?!i({parentNode:n,dragNodes:this.dragNodes,index:this.state.dnd.index||0}):typeof i=="string"?!n.data[i]:typeof i=="boolean"?!i:!0}hideCursor(){this.dispatch(yn.cursor({type:"none"}))}showCursor(e){this.dispatch(yn.cursor(e))}open(e){const n=Ke(e);n&&(this.isOpen(n)||(this.dispatch(Jo.open(n,this.isFiltered)),ge(this.props.onToggle,n)))}close(e){const n=Ke(e);n&&this.isOpen(n)&&(this.dispatch(Jo.close(n,this.isFiltered)),ge(this.props.onToggle,n))}toggle(e){const n=Ke(e);if(n)return this.isOpen(n)?this.close(n):this.open(n)}openParents(e){const n=Ke(e);if(!n)return;const r=Yl(this.root,n);let i=r==null?void 0:r.parent;for(;i;)this.open(i.id),i=i.parent}openSiblings(e){const n=e.parent;if(!n)this.toggle(e.id);else if(n.children){const r=e.isOpen;for(let i of n.children)i.isInternal&&(r?this.close(i.id):this.open(i.id));this.scrollTo(this.focusedNode)}}openAll(){Xr(this.root,e=>{e.isInternal&&e.open()})}closeAll(){Xr(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,n="smart"){if(!e)return;const r=Ze(e);return this.openParents(r),q0(()=>r in this.idToIndex).then(()=>{var i;const o=this.idToIndex[r];o!==void 0&&((i=this.list.current)===null||i===void 0||i.scrollToItem(o,n))}).catch(()=>{})}get isEditing(){return this.state.nodes.edit.id!==null}get isFiltered(){var e;return!!(!((e=this.props.searchTerm)===null||e===void 0)&&e.trim())}get hasFocus(){return this.state.nodes.focus.treeFocused}get hasNoSelection(){return this.state.nodes.selection.ids.size===0}get hasOneSelection(){return this.state.nodes.selection.ids.size===1}get hasMultipleSelections(){return this.state.nodes.selection.ids.size>1}isSelected(e){return e?this.state.nodes.selection.ids.has(e):!1}isOpen(e){var n,r,i;if(!e)return!1;if(e===Jn)return!0;const o=(n=this.props.openByDefault)!==null&&n!==void 0?n:!0;return this.isFiltered?(r=this.state.nodes.open.filtered[e])!==null&&r!==void 0?r:!0:(i=this.state.nodes.open.unfiltered[e])!==null&&i!==void 0?i:o}isEditable(e){const n=this.props.disableEdit||(()=>!1);return!Kn(e,n)}isDraggable(e){const n=this.props.disableDrag||(()=>!1);return!Kn(e,n)}isDragging(e){const n=Ke(e);return n?this.state.nodes.drag.id===n:!1}isFocused(e){return this.hasFocus&&this.state.nodes.focus.id===e}isMatch(e){return this.matchFn(e)}willReceiveDrop(e){const n=Ke(e);if(!n)return!1;const{destinationParentId:r,destinationIndex:i}=this.state.nodes.drag;return n===r&&i===null}onFocus(){const e=this.focusedNode||this.firstNode;e&&this.dispatch(qt(e.id))}onBlur(){this.dispatch(Cb())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||y2}get renderRow(){return this.props.renderRow||vb}get renderNode(){return this.props.children||gb}get renderDragPreview(){return this.props.renderDragPreview||X0}get renderCursor(){return this.props.renderCursor||pb}}function ye(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var H3=typeof Symbol=="function"&&Symbol.observable||"@@observable",Tc=H3,wo=()=>Math.random().toString(36).substring(7).split("").join("."),z3={INIT:`@@redux/INIT${wo()}`,REPLACE:`@@redux/REPLACE${wo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${wo()}`},Pt=z3;function S2(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function V3(t){if(t===void 0)return"undefined";if(t===null)return"null";const e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(W3(t))return"date";if(U3(t))return"error";const n=B3(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"")}function B3(t){return typeof t.constructor=="function"?t.constructor.name:null}function U3(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function W3(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function lt(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=V3(t)),e}function w2(t,e,n){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?ye(2):`Expected the root reducer to be a function. Instead, received: '${lt(t)}'`);if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?ye(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?ye(1):`Expected the enhancer to be a function. Instead, received: '${lt(n)}'`);return n(w2)(t,e)}let r=t,i=e,o=new Map,l=o,a=0,s=!1;function c(){l===o&&(l=new Map,o.forEach((g,m)=>{l.set(m,g)}))}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?ye(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?ye(4):`Expected the listener to be a function. Instead, received: '${lt(g)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?ye(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let m=!0;c();const C=a++;return l.set(C,g),function(){if(m){if(s)throw new Error(process.env.NODE_ENV==="production"?ye(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");m=!1,c(),l.delete(C),o=null}}}function h(g){if(!S2(g))throw new Error(process.env.NODE_ENV==="production"?ye(7):`Actions must be plain objects. Instead, the actual type was: '${lt(g)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof g.type>"u")throw new Error(process.env.NODE_ENV==="production"?ye(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof g.type!="string")throw new Error(process.env.NODE_ENV==="production"?ye(17):`Action "type" property must be a string. Instead, the actual type was: '${lt(g.type)}'. Value was: '${g.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?ye(9):"Reducers may not dispatch actions.");try{s=!0,i=r(i,g)}finally{s=!1}return(o=l).forEach(C=>{C()}),g}function v(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?ye(10):`Expected the nextReducer to be a function. Instead, received: '${lt(g)}`);r=g,h({type:Pt.REPLACE})}function b(){const g=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(process.env.NODE_ENV==="production"?ye(11):`Expected the observer to be an object. Instead, received: '${lt(m)}'`);function C(){const P=m;P.next&&P.next(d())}return C(),{unsubscribe:g(C)}},[Tc](){return this}}}return h({type:Pt.INIT}),{dispatch:h,subscribe:f,getState:d,replaceReducer:v,[Tc]:b}}function Ic(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function G3(t,e,n,r){const i=Object.keys(e),o=n&&n.type===Pt.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!S2(t))return`The ${o} has unexpected type of "${lt(t)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const l=Object.keys(t).filter(a=>!e.hasOwnProperty(a)&&!r[a]);if(l.forEach(a=>{r[a]=!0}),!(n&&n.type===Pt.REPLACE)&&l.length>0)return`Unexpected ${l.length>1?"keys":"key"} "${l.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function q3(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:Pt.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?ye(12):`The slice reducer for key "${e}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:Pt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?ye(13):`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${Pt.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Oc(t){const e=Object.keys(t),n={};for(let l=0;l<e.length;l++){const a=e[l];process.env.NODE_ENV!=="production"&&typeof t[a]>"u"&&Ic(`No reducer provided for key "${a}"`),typeof t[a]=="function"&&(n[a]=t[a])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let o;try{q3(n)}catch(l){o=l}return function(a={},s){if(o)throw o;if(process.env.NODE_ENV!=="production"){const f=G3(a,n,s,i);f&&Ic(f)}let c=!1;const d={};for(let f=0;f<r.length;f++){const h=r[f],v=n[h],b=a[h],p=v(b,s);if(typeof p>"u"){const g=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?ye(14):`When called with an action of type ${g?`"${String(g)}"`:"(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}d[h]=p,c=c||p!==b}return c=c||r.length!==Object.keys(a).length,c?d:a}}function Y3(t=bn().nodes.drag,e){switch(e.type){case"DND_DRAG_START":return Object.assign(Object.assign({},t),{id:e.id,selectedIds:e.dragIds});case"DND_DRAG_END":return Object.assign(Object.assign({},t),{id:null,destinationParentId:null,destinationIndex:null,selectedIds:[]});case"DND_HOVERING":return e.parentId!==t.destinationParentId||e.index!=t.destinationIndex?Object.assign(Object.assign({},t),{destinationParentId:e.parentId,destinationIndex:e.index}):t;default:return t}}const Z3=Oc({nodes:Oc({focus:Sb,edit:yb,open:wb,selection:xb,drag:Y3}),dnd:Eb}),X3=bn();function J3({treeProps:t,imperativeHandle:e,children:n}){const r=u.useRef(null),i=u.useRef(null),o=u.useRef(w2(Z3,bn(t))),l=$l.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>X3),a=u.useMemo(()=>new hn(o.current,t,r,i),[]),s=u.useRef(0);return u.useMemo(()=>{s.current+=1,a.update(t)},[...Object.values(t),l.nodes.open]),u.useImperativeHandle(e,()=>a),u.useEffect(()=>{a.props.selection?a.select(a.props.selection,{focus:!1}):a.deselectAll()},[a.props.selection]),u.useEffect(()=>{a.props.searchTerm||o.current.dispatch(Jo.clear(!0))},[a.props.searchTerm]),y.jsx(N0.Provider,{value:a,children:y.jsx(L0.Provider,{value:s.current,children:y.jsx(R0.Provider,{value:l.nodes,children:y.jsx(M0.Provider,{value:l.dnd,children:y.jsx(I9,Object.assign({backend:O3,options:{rootElement:a.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:n}))})})})})}function Q3(){const t=Te(),[,e]=u2(()=>({accept:"NODE",canDrop:(n,r)=>r.isOver({shallow:!0})?t.canDrop():!1,hover:(n,r)=>{if(!r.isOver({shallow:!0}))return;const i=r.getClientOffset();if(!t.listEl.current||!i)return;const{cursor:o,drop:l}=b2({element:t.listEl.current,offset:i,indent:t.indent,node:null,prevNode:t.visibleNodes[t.visibleNodes.length-1],nextNode:null});l&&t.dispatch(yn.hovering(l.parentId,l.index)),r.canDrop()?o&&t.showCursor(o):t.hideCursor()}}),[t]);e(t.listEl)}function e7(t){return Q3(),t.children}function t7(){const e=Te().props.renderContainer||y2;return y.jsx(y.Fragment,{children:y.jsx(e,{})})}function n7(){const t=Te(),{offset:e,mouse:n,item:r,isDragging:i}=n3(l=>({offset:l.getSourceClientOffset(),mouse:l.getClientOffset(),item:l.getItem(),isDragging:l.isDragging()})),o=t.props.renderDragPreview||X0;return y.jsx(o,{offset:e,mouse:n,id:(r==null?void 0:r.id)||null,dragIds:(r==null?void 0:r.dragIds)||[],isDragging:i})}class r7{constructor(e){this.root=i7(e)}get data(){var e,n;return(n=(e=this.root.children)===null||e===void 0?void 0:e.map(r=>r.data))!==null&&n!==void 0?n:[]}create(e){const n=e.parentId?this.find(e.parentId):this.root;if(!n)return null;n.addChild(e.data,e.index)}move(e){const n=this.find(e.id),r=e.parentId?this.find(e.parentId):this.root;!n||!r||(r.addChild(n.data,e.index),n.drop())}update(e){const n=this.find(e.id);n&&n.update(e.changes)}drop(e){const n=this.find(e.id);n&&n.drop()}find(e,n=this.root){if(!n)return null;if(n.id===e)return n;if(n.children){for(let r of n.children){const i=this.find(e,r);if(i)return i}return null}return null}}function i7(t){const e=new x2({id:"ROOT"},null);return e.children=t.map(n=>na(n,e)),e}function na(t,e){const n=new x2(t,e);return t.children&&(n.children=t.children.map(r=>na(r,n))),n}class x2{constructor(e,n){this.data=e,this.parent=n,this.id=e.id}hasParent(){return!!this.parent}get childIndex(){return this.hasParent()?this.parent.children.indexOf(this):-1}addChild(e,n){var r,i;const o=na(e,this);this.children=(r=this.children)!==null&&r!==void 0?r:[],this.children.splice(n,0,o),this.data.children=(i=this.data.children)!==null&&i!==void 0?i:[],this.data.children.splice(n,0,e)}removeChild(e){var n,r;(n=this.children)===null||n===void 0||n.splice(e,1),(r=this.data.children)===null||r===void 0||r.splice(e,1)}update(e){if(this.hasParent()){const n=this.childIndex;this.parent.addChild(Object.assign(Object.assign({},this.data),e),n),this.drop()}}drop(){this.hasParent()&&this.parent.removeChild(this.childIndex)}}let o7=0;function l7(t){const[e,n]=u.useState(t),r=u.useMemo(()=>new r7(e),[e]);return[e,{onMove:c=>{for(const d of c.dragIds)r.move({id:d,parentId:c.parentId,index:c.index});n(r.data)},onRename:({name:c,id:d})=>{r.update({id:d,changes:{name:c}}),n(r.data)},onCreate:({parentId:c,index:d,type:f})=>{const h={id:`simple-tree-id-${o7++}`,name:""};return f==="internal"&&(h.children=[]),r.create({parentId:c,index:d,data:h}),n(r.data),h},onDelete:c=>{c.ids.forEach(d=>r.drop({id:d})),n(r.data)}}]}function a7(t){if(t.initialData&&t.data)throw new Error("React Arborist Tree => Provide either a data or initialData prop, but not both.");if(t.initialData&&(t.onCreate||t.onDelete||t.onMove||t.onRename))throw new Error(`React Arborist Tree => You passed the initialData prop along with a data handler.
|
|
98
|
-
Use the data prop if you want to provide your own handlers.`);if(t.initialData){const[e,n]=l7(t.initialData);return Object.assign(Object.assign(Object.assign({},t),n),{data:e})}else return t}function s7(t,e){const n=a7(t);return y.jsxs(J3,{treeProps:n,imperativeHandle:e,children:[y.jsx(e7,{children:y.jsx(t7,{})}),y.jsx(n7,{})]})}const c7=u.forwardRef(s7),E2=({top:t,left:e})=>y.jsx("div",{className:"c__tree-view__cursor",style:{top:t-2,left:e+10,width:`calc(100% - ${24+e}px)`}});function u7(t,e){var n=u.useRef(null),r=u.useRef(null);r.current=e;var i=u.useRef(null);u.useEffect(function(){o()});var o=u.useCallback(function(){var l=i.current,a=r.current,s=l||(a?a instanceof Element?a:a.current:null);n.current&&n.current.element===s&&n.current.subscriber===t||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:s,subscriber:t,cleanup:s?t(s):void 0})},[t]);return u.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),u.useCallback(function(l){i.current=l,o()},[o])}function kc(t,e,n){return t[e]?t[e][0]?t[e][0][n]:t[e][n]:e==="contentBoxSize"?t.contentRect[n==="inlineSize"?"width":"height"]:void 0}function d7(t){t===void 0&&(t={});var e=t.onResize,n=u.useRef(void 0);n.current=e;var r=t.round||Math.round,i=u.useRef(),o=u.useState({width:void 0,height:void 0}),l=o[0],a=o[1],s=u.useRef(!1);u.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var c=u.useRef({width:void 0,height:void 0}),d=u7(u.useCallback(function(f){return(!i.current||i.current.box!==t.box||i.current.round!==r)&&(i.current={box:t.box,round:r,instance:new ResizeObserver(function(h){var v=h[0],b=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",p=kc(v,b,"inlineSize"),g=kc(v,b,"blockSize"),m=p?r(p):void 0,C=g?r(g):void 0;if(c.current.width!==m||c.current.height!==C){var S={width:m,height:C};c.current.width=m,c.current.height=C,n.current?n.current(S):s.current||a(S)}})}),i.current.instance.observe(f,{box:t.box}),function(){i.current&&i.current.instance.unobserve(f)}},[t.box,r]),t.ref);return u.useMemo(function(){return{ref:d,width:l.width,height:l.height}},[d,l.width,l.height])}var Le=(t=>(t.NODE="node",t.SEPARATOR="separator",t.TITLE="title",t))(Le||{}),yt=(t=>(t.FIRST_CHILD="first-child",t.LAST_CHILD="last-child",t.LEFT="left",t.RIGHT="right",t))(yt||{});const ei=t=>t?t.nodeType===Le.SEPARATOR:!1,ti=t=>t?t.nodeType===Le.TITLE:!1,jn=t=>!ei(t)&&!ti(t),$2=(t,e,n)=>{const{remove:r,update:i,insert:o,insertBefore:l,insertAfter:a,append:s,prepend:c,getItem:d,move:f,items:h}=vg({initialItems:JSON.parse(JSON.stringify(t)),getKey:T=>T.id,getChildren:T=>T.children||[]}),[v,b]=u.useState(),p=(T=[])=>{const F=h.map(O=>O.key);r(...F);const _=JSON.parse(JSON.stringify(T));_.length>0&&o(null,0,..._),b(void 0)},g=T=>{const F=d(T);F&&b(F.value)},m=(T,F,_)=>{var O;if(T){const K=d(T);K&&o(T,_??((O=K.children)==null?void 0:O.length)??0,F)}else o(null,_??h.length,F)},C=T=>{var F;return(F=d(T))==null?void 0:F.value},S=(T,F)=>{var z;const _=d(T);if(!_){console.error("No item found");return}let O=((z=_.children)==null?void 0:z.map(V=>V.value))??null;const K=F.childrenCount??_.value.childrenCount??0;if((O==null?void 0:O.length)===0&&K>0&&(O=null),F.children&&(O=[...O??[],...F.children]),F.children){const V=new Set(F.children.map(W=>W.id));O=F.children.filter(W=>!V.has(W.id)),O=[...O??[],...F.children]}const M={..._.value,...F,children:O,childrenCount:(O==null?void 0:O.length)??K};i(T,M)},P=T=>{r(T)},$=T=>{r(...T)},x=async T=>{if(!e){console.error("No refresh callback provided");return}try{const F=await e(T);S(T,F)}catch(F){console.error("error while refreshing node:",F)}},E=(T,F)=>{o(null,F??h.length,T)},N=(T,F)=>{o(null,F??h.length,...T)},H=(T,F)=>{const _=d(T);if(!_){console.error("No item found");return}const O={..._.value,children:F,childrenCount:F.length,hasLoadedChildren:F.length>0};i(T,O)},j=T=>{const F=[],_=d(T);if(!_)return[];F.push(_.value);const O=K=>{const M=w(K);if(!M)return;const z=d(M);z&&(F.push(z.value),O(M))};return O(T),F.reverse()},w=T=>{var F;return((F=d(T))==null?void 0:F.parentKey)??null},A=T=>{const F=w(T);if(!F)return null;const _=d(F);return _?_.value:null},B=(T,F)=>{l(T,F)},L=(T,F)=>{a(T,F)},U=(T,F)=>{s(T,F)},I=(T,F)=>{c(T,F)},R=(T,F,_)=>{f(T,F,_)},k=T=>{R(T.sourceId,T.newParentId,T.index)},G=async T=>{if(!n)return[];const F=await n(T);return S(T,{children:F,hasLoadedChildren:!0,childrenCount:F.length}),F};return u.useEffect(()=>{const T=F=>{F.forEach(_=>{var O;if(_.children&&_.children.length>0){const K=_.value.hasLoadedChildren||((O=_.children)==null?void 0:O.length)>0||_.value.children&&_.value.children.length>0;_.value.children=_.children.map(z=>z.value);const M=K?_.children.length:_.value.childrenCount??0;_.value.childrenCount=M,K&&!_.value.hasLoadedChildren&&(_.value.hasLoadedChildren=!0),T(_.children)}else{const M=_.value.hasLoadedChildren||_.value.children&&_.value.children.length>0?0:_.value.childrenCount;_.value.children=[],_.value.childrenCount=M}})};T(h)},[h]),{nodes:h,addChild:m,updateNode:S,deleteNode:P,deleteNodes:$,addRootNode:E,addRootNodes:N,selectedNode:v,setSelectedNode:b,refreshNode:x,setChildren:H,insertBeforeNode:B,insertAfterNode:L,handleMove:k,prependToNode:I,moveNode:R,appendToNode:U,move:f,resetTree:p,handleLoadChildren:G,selectNodeById:g,getParent:A,getNode:C,getParentId:w,getAncestors:j}},ra=u.createContext(null),f7=({children:t,onRefresh:e,initialNodeId:n,onLoadChildren:r,initialTreeData:i})=>{const o=u.useRef(null),[l,a]=u.useState(null),[s,c]=u.useState(n??null),d=$2(i??[],e,r);return y.jsx(ra.Provider,{value:{treeApiRef:o,treeData:d,root:l,initialTargetId:s,setInitialTargetId:c,setRoot:a},children:t})},ia=()=>{const t=u.useContext(ra);if(!t)throw new Error("TreeContext not found");return t},h7=({initialOpenState:t,selectedNodeId:e,rootNodeId:n,renderNode:r,canDrop:i,canDrag:o,afterMove:l,beforeMove:a})=>{const[s,c]=u.useState(400),{ref:d,width:f}=d7(),h=ia(),v=(h==null?void 0:h.treeData.nodes)??[];u.useEffect(()=>{const m=document.querySelector(".c__tree-view"),C=m==null?void 0:m.firstElementChild;let S=null;return m&&C&&(S=new ResizeObserver(()=>{if(C&&C instanceof HTMLElement){const P=C.style.height;c(parseInt(P,10)+20)}}),S.observe(C)),()=>S==null?void 0:S.disconnect()},[]);const b=m=>{var k,G,T,F;const C=JSON.parse(JSON.stringify(v)),S=m.dragNodes[0],P=m.parentId?((k=m.parentNode)==null?void 0:k.data.children)??[]:C,$=m.dragNodes[0].data.value.id,x=m.dragNodes[0].data,E=(G=m.parentNode)==null?void 0:G.data;if((E==null?void 0:E.value.nodeType)===Le.TITLE||(E==null?void 0:E.value.nodeType)===Le.SEPARATOR)return null;const N=x.parentKey??n,H=m.parentId??n;let j=m.index+0,w=null,A=H;const B=((F=(T=S.parent)==null?void 0:T.children)==null?void 0:F.findIndex(_=>_.data.value.id===$))??0;if(N===H){if(B===j)return null;j=j<B?j:j-1}const L=m.index-1,U=P[L],I=m.index,R=P[I];return m.index===0?(A=m.parentId??n,w=yt.FIRST_CHILD):!E&&m.index===1&&!jn(U.value)?(A=n,j=1,w=yt.FIRST_CHILD):m.index===P.length?(A=A??n,w=yt.LAST_CHILD):U&&jn(U.value)?(A=U.value.id,w=yt.RIGHT):R&&jn(R.value)&&(w=yt.LEFT,A=R.value.id),w&&A?{targetModeId:A,mode:w,oldParentId:N,index:j,newParentId:m.parentId,sourceId:$}:null},p=m=>{const C=b(m);C&&(a?a(C,()=>{h==null||h.treeData.handleMove(C),l==null||l(C)}):(h==null||h.treeData.handleMove(C),l==null||l(C)))},g=u.useCallback(m=>o?!o(m):!1,[o]);if(h)return y.jsx("div",{ref:d,style:{height:s},className:"c__tree-view--container",children:y.jsx(c7,{data:v,ref:h.treeApiRef,openByDefault:!1,selectionFollowsFocus:!1,disableMultiSelection:!0,disableEdit:!0,className:"c__tree-view",idAccessor:"key",onMove:p,height:s,width:f,paddingTop:10,paddingBottom:10,rowHeight:35,disableDrag:g,disableDrop:({parentNode:m,dragNodes:C,index:S})=>{var N,H;if(i&&!i({parentNode:m,dragNodes:C,index:S}))return m.id!=="__REACT_ARBORIST_INTERNAL_ROOT__"&&(m.data.value.canDrop=!1),!0;const P=C[0];if(P&&P.isDragging&&P.willReceiveDrop||((N=m.data.value)==null?void 0:N.nodeType)===Le.TITLE||((H=m.data.value)==null?void 0:H.nodeType)===Le.SEPARATOR)return!0;if(m.id==="__REACT_ARBORIST_INTERNAL_ROOT__"){const j=v[S-1],w=v[S],A=v[S+1],B=ei(j==null?void 0:j.value),L=ei(w==null?void 0:w.value),U=ti(j==null?void 0:j.value),I=ti(w==null?void 0:w.value),R=jn(A==null?void 0:A.value);return!!(S===0&&(L||I)||B&&I&&R||U&&L&&R)}const $=m==null?void 0:m.isOpen,x=(m==null?void 0:m.data.value.childrenCount)&&m.data.value.childrenCount>0||(m==null?void 0:m.data.children)&&m.data.children.length>0;if(!x)return m.data.value.canDrop=!0,!1;let E=m.data.value.childrenCount&&m.data.value.childrenCount>0&&(m==null?void 0:m.data.children)&&m.data.children.length>0;return E=E??!0,!$&&!E&&x?(m.data.value.canDrop=!0,!0):(m.data.value.canDrop=!0,!1)},initialOpenState:t,overscanCount:20,selection:e,renderCursor:E2,renderRow:p7,rowClassName:"c__tree-view--row",children:r})})},p7=({children:t,...e})=>{const n=e.node.data.value.nodeType===Le.TITLE,r=e.node.data.value.nodeType===Le.SEPARATOR,{style:i}=e.attrs,o={...i};return n||r?u.createElement("div",{...e.attrs,key:e.node.id,style:o,ref:e.innerRef,onFocus:l=>l.stopPropagation(),onClick:e.node.handleClick},t):u.createElement("div",{...e.attrs,style:o,key:e.node.id,ref:e.innerRef,onFocus:l=>l.stopPropagation(),onClick:e.node.handleClick},y.jsx("div",{className:"c__tree-view--row-content",children:t}))},v7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",P2=v7?u.useLayoutEffect:u.useEffect;function D2(t){const e=u.useRef(t);return P2(()=>{e.current=t}),u.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}function Nc(t,e){e===void 0&&(e=[t]);const n=u.useRef(t);return P2(()=>{n.current!==t&&(n.current=t)},e),n}function g7(t){const e=D2(t),n=u.useRef(null),r=u.useCallback(i=>{i!==n.current&&(e==null||e(i,n.current)),n.current=i},[]);return[n,r]}let xo={};function m7(t,e){return u.useMemo(()=>{const n=xo[t]==null?0:xo[t]+1;return xo[t]=n,t+"-"+n},[t,e])}var zn;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(zn||(zn={}));function Rc(){}const b7=Object.freeze({x:0,y:0});var ln;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(ln||(ln={}));var Mc;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(Mc||(Mc={}));var at;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(at||(at={}));at.Space,at.Enter,at.Esc,at.Space,at.Enter,at.Tab;var Lc;(function(t){t[t.RightClick=2]="RightClick"})(Lc||(Lc={}));var Ac;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(Ac||(Ac={}));var Fc;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(Fc||(Fc={}));ln.Backward+"",ln.Forward+"",ln.Backward+"",ln.Forward+"";var al;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(al||(al={}));var sl;(function(t){t.Optimized="optimized"})(sl||(sl={}));function y7(t){let{callback:e,disabled:n}=t;const r=D2(e),i=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return u.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}al.WhileDragging,sl.Optimized;const C7={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Rc,draggableNodes:new Map,over:null,measureDroppableContainers:Rc},S7=u.createContext(C7);({...b7});var Kc;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(Kc||(Kc={}));const w7="Droppable",x7={timeout:25};function E7(t){let{data:e,disabled:n=!1,id:r,resizeObserverConfig:i}=t;const o=m7(w7),{active:l,dispatch:a,over:s,measureDroppableContainers:c}=u.useContext(S7),d=u.useRef({disabled:n}),f=u.useRef(!1),h=u.useRef(null),v=u.useRef(null),{disabled:b,updateMeasurementsFor:p,timeout:g}={...x7,...i},m=Nc(p??r),C=u.useCallback(()=>{if(!f.current){f.current=!0;return}v.current!=null&&clearTimeout(v.current),v.current=setTimeout(()=>{c(Array.isArray(m.current)?m.current:[m.current]),v.current=null},g)},[g]),S=y7({callback:C,disabled:b||!l}),P=u.useCallback((N,H)=>{S&&(H&&(S.unobserve(H),f.current=!1),N&&S.observe(N))},[S]),[$,x]=g7(P),E=Nc(e);return u.useEffect(()=>{!S||!$.current||(S.disconnect(),f.current=!1,S.observe($.current))},[$,S]),u.useEffect(()=>(a({type:zn.RegisterDroppable,element:{id:r,key:o,disabled:n,node:$,rect:h,data:E}}),()=>a({type:zn.UnregisterDroppable,key:o,id:r})),[r]),u.useEffect(()=>{n!==d.current.disabled&&(a({type:zn.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)},[r,o,n,a]),{active:l,rect:h,isOver:(s==null?void 0:s.id)===r,node:$,over:s,setNodeRef:x}}const $7=t=>{const{isOver:e,setNodeRef:n}=E7({id:t.id,data:t.data});return u.useEffect(()=>{var r;(r=t.onOver)==null||r.call(t,e,t.data)},[e,t.data,t.onOver]),y.jsx("div",{className:"c__dnd--droppable",ref:n,children:t.children})},P7=({children:t,onClick:e,node:n,dragHandle:r,style:i,forceLoading:o})=>{var S,P;const l=ia(),a=u.useRef(null),[s,c]=u.useState(!1),[d,f]=u.useState(!1),h=o??s,v=n.willReceiveDrop||d,b=n.data.value.childrenCount!==void 0&&n.data.value.childrenCount>0||(((S=n.data.children)==null?void 0:S.length)??0)>0,p=((P=n.children)==null?void 0:P.length)??!1,g=n.isLeaf||!b,m=u.useCallback(async()=>{if(!g){if(p||n.data.value.hasLoadedChildren){n.toggle();return}c(!0),await(l==null?void 0:l.treeData.handleLoadChildren(n.data.value.id)),c(!1),n.open()}},[g,p,n,l==null?void 0:l.treeData]),C=u.useCallback($=>{$&&!n.isOpen&&!n.isDragging&&(a.current=setTimeout(()=>{m()},500)),a.current&&!$&&clearTimeout(a.current)},[m,n.isOpen,n.isDragging]);return u.useEffect(()=>{C(v)},[v,C]),n.data.value.nodeType===Le.SEPARATOR?y.jsx("div",{className:"c__tree-view--node__separator"}):n.data.value.nodeType===Le.TITLE?y.jsx("div",{className:"c__tree-view--node__title",children:n.data.value.headerTitle}):y.jsx($7,{id:n.id,data:{data:n.data,nodeApi:n},onOver:f,children:y.jsxs("div",{onClick:$=>{if(!$.target.closest(".c__tree-view--node")){$.stopPropagation();return}e==null||e()},onKeyDown:$=>{$.target.closest(".c__tree-view--node")||$.stopPropagation()},ref:r,style:i,className:Pe("c__tree-view--node",{...n.state,canDrop:n.data.value.canDrop??!0,externalDrop:d}),children:[g&&y.jsx("div",{className:"c__tree-view--node__leaf"}),!g&&y.jsxs(y.Fragment,{children:[h&&y.jsx("div",{className:"c__tree-view--node__loading",children:y.jsx(Vl,{})}),!h&&y.jsx("span",{onClick:$=>{$.stopPropagation(),m()},className:"c__tree-view--node__arrow material-icons",children:n.isOpen?"keyboard_arrow_down":"keyboard_arrow_right"})]}),t]})})};var Re=(t=>(t.X_SMALL="xsmall",t.SMALL="small",t.MEDIUM="medium",t.LARGE="large",t.X_LARGE="xlarge",t))(Re||{}),Vn=(t=>(t.OUTLINED="outlined",t.FILLED="filled",t))(Vn||{});const D7=({name:t,size:e,className:n,color:r,type:i=Vn.FILLED,...o})=>{const l=Pe("",{[`icon--${e}`]:e!==void 0,[`material-icons-${i}`]:i!==Vn.OUTLINED,"material-icons":i===Vn.OUTLINED},n),a={color:r,fontSize:typeof e=="number"?`${e}px`:void 0};return y.jsx("span",{className:l,style:a,...o,children:t})},_2={[Re.X_SMALL]:11,[Re.SMALL]:16,[Re.MEDIUM]:24,[Re.LARGE]:32,[Re.X_LARGE]:40},T2={[Re.X_SMALL]:16,[Re.SMALL]:24,[Re.MEDIUM]:32,[Re.LARGE]:40,[Re.X_LARGE]:48},_7=t=>T2[t]??24,T7=t=>_2[t]??24,ki=({roles:t,onSelect:e,canUpdate:n=!0,selectedRole:r,isOpen:i,onOpenChange:o,roleTopMessage:l})=>{const a=t.find(s=>s.value===r);return n?y.jsx(It,{isOpen:i,shouldCloseOnInteractOutside:s=>!s.closest(".c__access-role-dropdown"),onOpenChange:o,options:t,selectedValues:[r],onSelectValue:e,topMessage:l,children:y.jsxs("div",{role:"button",className:"c__access-role-dropdown",onClick:()=>{o==null||o(!i)},children:[y.jsx("span",{className:"fs-s clr-greyscale-600",children:a==null?void 0:a.label}),y.jsx("span",{className:"material-icons",children:i?"arrow_drop_up":"arrow_drop_down"})]})}):y.jsx("span",{className:"fs-s clr-greyscale-600",children:a==null?void 0:a.label})},I2=({users:t,onRemoveUser:e,rightActions:n,onShare:r,shareButtonLabel:i,roles:o,selectedRole:l,onSelectRole:a})=>{const{t:s}=le.useCunningham(),[c,d]=u.useState(!1);return y.jsxs("div",{className:"c__add-share-user-list",children:[y.jsx("div",{className:"c__add-share-user-list__items",children:t.map(f=>y.jsx(O2,{user:f,onRemoveUser:e},f.id))}),y.jsxs("div",{className:"c__add-share-user-list__right-actions",children:[n,y.jsx(ki,{roles:o,selectedRole:l,onSelect:a,isOpen:c,onOpenChange:d}),y.jsx(le.Button,{onClick:r,children:i??s("components.share.shareButton")})]})]})},O2=({user:t,onRemoveUser:e})=>y.jsxs("div",{className:"c__add-share-user-item",children:[y.jsx("span",{children:t.full_name||t.email}),y.jsx(le.Button,{color:"tertiary-text",size:"nano",onClick:()=>e==null?void 0:e(t),icon:y.jsx("span",{className:"material-icons",children:"close"})})]}),jc=["purple","blue","green","yellow","orange","red","brown","cyan","gold","olive","rose"],k2=t=>t.split(/[\s-_]+/).slice(0,2).map(e=>e[0]).join("").toUpperCase(),N2=t=>{let e=0;for(let n=0;n<t.length;n++)e+=t.charCodeAt(n);return jc[e%jc.length]},R2=({fullName:t,size:e="medium",forceColor:n})=>{const r=k2(t),i=N2(t);return y.jsx("div",{style:{backgroundColor:n||void 0},className:Pe(`c__avatar ${e}`,{[i]:!n&&i}),children:y.jsx("div",{className:"c__avatar__initials",children:r})})},Ni=({fullName:t,email:e,showEmail:n=!0})=>{const r=t&&t!==""?t:e??"";return y.jsxs("div",{className:"c__user-row",children:[y.jsx(R2,{fullName:r,size:"small"}),y.jsxs("div",{className:"c__user-row__info",children:[y.jsx("span",{className:"c__user-row__name",children:t}),n&&e&&y.jsx("span",{className:Pe("c__user-row__email",{"has-only-email":e&&(t===""||!t)}),children:e})]})]})},cl=({user:t})=>{const{t:e}=le.useCunningham();return y.jsx(Pi,{left:y.jsx(Ni,{fullName:t.full_name,email:t.email}),alwaysShowRight:!1,right:y.jsxs("div",{className:"c__search-user-item-right",children:[y.jsx("span",{children:e("components.share.item.add")}),y.jsx("span",{className:"material-icons",children:"add"})]})})},M2=({accessData:t,roles:e,updateRole:n,deleteAccess:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=le.useCunningham(),a=ht(),s=ht(),c=u.useMemo(()=>{const f=[];return r&&f.push({label:l("components.share.access.delete"),icon:y.jsx("span",{className:"material-icons",children:"back_hand"}),isDisabled:!i,callback:()=>r(t)}),f},[r,t,i,l]),d=()=>{const f=s.isOpen;s.setIsOpen(!f)};return y.jsx("div",{className:"c__share-member-item",children:y.jsx(Pi,{left:y.jsx(Ni,{fullName:t.user.full_name,email:t.user.email,showEmail:!0}),alwaysShowRight:!0,right:y.jsxs("div",{className:"c__share-member-item__right",children:[y.jsx(ki,{roles:e,selectedRole:t.role,onSelect:f=>n==null?void 0:n(t,f),isOpen:a.isOpen,onOpenChange:a.setIsOpen,canUpdate:i,roleTopMessage:o}),c.length>0&&i&&y.jsx(It,{options:c,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:y.jsx(le.Button,{color:"primary-text",onClick:d,size:"small",icon:y.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},L2=({invitation:t,roles:e,updateRole:n,deleteInvitation:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=le.useCunningham(),a=ht(),s=ht(),c=[{label:l("components.share.access.delete"),callback:()=>r==null?void 0:r(t),isDisabled:!i,icon:y.jsx("span",{className:"material-icons",children:"back_hand"})}],d=()=>{const f=s.isOpen;s.setIsOpen(!f)};return y.jsx("div",{className:"c__share-member-item",children:y.jsx(Pi,{left:y.jsx(Ni,{fullName:"",email:t.email,showEmail:!0}),alwaysShowRight:!0,right:y.jsxs("div",{className:"c__share-member-item__right",children:[y.jsx(ki,{roles:e,selectedRole:t.role,onSelect:f=>n==null?void 0:n(t,f),isOpen:a.isOpen,canUpdate:i,onOpenChange:a.setIsOpen,roleTopMessage:o}),i&&y.jsx(It,{options:c,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:y.jsx(le.Button,{color:"primary-text",onClick:d,size:"small",icon:y.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},I7="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2022C10.6167%2022%209.31667%2021.7375%208.1%2021.2125C6.88333%2020.6875%205.825%2019.975%204.925%2019.075C4.025%2018.175%203.3125%2017.1167%202.7875%2015.9C2.2625%2014.6833%202%2013.3833%202%2012C2%2010.6167%202.2625%209.31667%202.7875%208.1C3.3125%206.88333%204.025%205.825%204.925%204.925C5.825%204.025%206.88333%203.3125%208.1%202.7875C9.31667%202.2625%2010.6167%202%2012%202C13.3833%202%2014.6833%202.2625%2015.9%202.7875C17.1167%203.3125%2018.175%204.025%2019.075%204.925C19.975%205.825%2020.6875%206.88333%2021.2125%208.1C21.7375%209.31667%2022%2010.6167%2022%2012C22%2013.3833%2021.7375%2014.6833%2021.2125%2015.9C20.6875%2017.1167%2019.975%2018.175%2019.075%2019.075C18.175%2019.975%2017.1167%2020.6875%2015.9%2021.2125C14.6833%2021.7375%2013.3833%2022%2012%2022ZM11%2019.95V18C10.45%2018%209.97917%2017.8042%209.5875%2017.4125C9.19583%2017.0208%209%2016.55%209%2016V15L4.2%2010.2C4.15%2010.5%204.10417%2010.8%204.0625%2011.1C4.02083%2011.4%204%2011.7%204%2012C4%2014.0167%204.6625%2015.7833%205.9875%2017.3C7.3125%2018.8167%208.98333%2019.7%2011%2019.95ZM17.9%2017.4C18.2333%2017.0333%2018.5333%2016.6375%2018.8%2016.2125C19.0667%2015.7875%2019.2875%2015.3458%2019.4625%2014.8875C19.6375%2014.4292%2019.7708%2013.9583%2019.8625%2013.475C19.9542%2012.9917%2020%2012.5%2020%2012C20%2010.3667%2019.5458%208.875%2018.6375%207.525C17.7292%206.175%2016.5167%205.2%2015%204.6V5C15%205.55%2014.8042%206.02083%2014.4125%206.4125C14.0208%206.80417%2013.55%207%2013%207H11V9C11%209.28333%2010.9042%209.52083%2010.7125%209.7125C10.5208%209.90417%2010.2833%2010%2010%2010H8V12H14C14.2833%2012%2014.5208%2012.0958%2014.7125%2012.2875C14.9042%2012.4792%2015%2012.7167%2015%2013V16H16C16.4333%2016%2016.825%2016.1292%2017.175%2016.3875C17.525%2016.6458%2017.7667%2016.9833%2017.9%2017.4Z'%20fill='%233D3D8C'/%3e%3c/svg%3e",O7="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%2018C18.4167%2018%2018.7708%2017.8542%2019.0625%2017.5625C19.3542%2017.2708%2019.5%2016.9167%2019.5%2016.5C19.5%2016.0833%2019.3542%2015.7292%2019.0625%2015.4375C18.7708%2015.1458%2018.4167%2015%2018%2015C17.5833%2015%2017.2292%2015.1458%2016.9375%2015.4375C16.6458%2015.7292%2016.5%2016.0833%2016.5%2016.5C16.5%2016.9167%2016.6458%2017.2708%2016.9375%2017.5625C17.2292%2017.8542%2017.5833%2018%2018%2018ZM18%2021C18.5%2021%2018.9667%2020.8833%2019.4%2020.65C19.8333%2020.4167%2020.1917%2020.0917%2020.475%2019.675C20.0917%2019.4417%2019.6917%2019.2708%2019.275%2019.1625C18.8583%2019.0542%2018.4333%2019%2018%2019C17.5667%2019%2017.1417%2019.0542%2016.725%2019.1625C16.3083%2019.2708%2015.9083%2019.4417%2015.525%2019.675C15.8083%2020.0917%2016.1667%2020.4167%2016.6%2020.65C17.0333%2020.8833%2017.5%2021%2018%2021ZM9%208H15V6C15%205.16667%2014.7083%204.45833%2014.125%203.875C13.5417%203.29167%2012.8333%203%2012%203C11.1667%203%2010.4583%203.29167%209.875%203.875C9.29167%204.45833%209%205.16667%209%206V8ZM12.25%2022H6C5.45%2022%204.97917%2021.8042%204.5875%2021.4125C4.19583%2021.0208%204%2020.55%204%2020V10C4%209.45%204.19583%208.97917%204.5875%208.5875C4.97917%208.19583%205.45%208%206%208H7V6C7%204.61667%207.4875%203.4375%208.4625%202.4625C9.4375%201.4875%2010.6167%201%2012%201C13.3833%201%2014.5625%201.4875%2015.5375%202.4625C16.5125%203.4375%2017%204.61667%2017%206V8H18C18.55%208%2019.0208%208.19583%2019.4125%208.5875C19.8042%208.97917%2020%209.45%2020%2010V11.3C19.7%2011.2%2019.3875%2011.125%2019.0625%2011.075C18.7375%2011.025%2018.3833%2011%2018%2011V10H6V20H11.3C11.4333%2020.4%2011.5667%2020.7458%2011.7%2021.0375C11.8333%2021.3292%2012.0167%2021.65%2012.25%2022ZM18%2023C16.6167%2023%2015.4375%2022.5125%2014.4625%2021.5375C13.4875%2020.5625%2013%2019.3833%2013%2018C13%2016.6167%2013.4875%2015.4375%2014.4625%2014.4625C15.4375%2013.4875%2016.6167%2013%2018%2013C19.3833%2013%2020.5625%2013.4875%2021.5375%2014.4625C22.5125%2015.4375%2023%2016.6167%2023%2018C23%2019.3833%2022.5125%2020.5625%2021.5375%2021.5375C20.5625%2022.5125%2019.3833%2023%2018%2023Z'%20fill='%233D3D8C'/%3e%3c/svg%3e",xr=t=>{switch(t){case"public":return y.jsx("img",{src:I7,alt:""});case"restricted":return y.jsx("img",{src:O7,alt:""});default:return null}},k7=({linkReachChoices:t=[],canUpdate:e,linkReach:n="public",onUpdateLinkReach:r,showLinkRole:i=!1,linkRoleChoices:o=[],linkRole:l="reader",onUpdateLinkRole:a})=>{const s=ht(),c=ht(),[d,f]=u.useState([n]),h=d[0],[v,b]=u.useState([l]),p=v[0],{t:g}=le.useCunningham(),m=u.useMemo(()=>t.map(N=>({icon:N.icon??xr(N.value),value:N.value,label:g("components.share.linkSettings.reach.choices."+N.value+".title"),...N})),[t]),C=u.useMemo(()=>m.find(N=>N.value===h),[m,h]),S=u.useMemo(()=>o.map(N=>({value:N.value,label:g("components.share.linkSettings.role.choices."+N.value+".title"),...N})),[o]),P=u.useMemo(()=>S.find(N=>N.value===p),[S,p]),$=i&&o.length>0,x=()=>y.jsx("div",{className:"c__share-modal__link-settings__content__select",children:e?y.jsx(It,{onSelectValue:N=>{f([N]),r==null||r(N)},options:m,isOpen:s.isOpen,onOpenChange:s.setIsOpen,selectedValues:d,children:y.jsxs(le.Button,{color:"primary-text",icon:xr(h),iconPosition:"left",onClick:()=>{e&&s.setIsOpen(!s.isOpen)},children:[C==null?void 0:C.label,y.jsx("span",{className:"material-icons",children:s.isOpen?"arrow_drop_up":"arrow_drop_down"})]})}):y.jsxs("span",{className:"c__share-modal__link-settings__content__select__value",children:[xr(h),C==null?void 0:C.label]})}),E=()=>$?y.jsx("div",{className:"c__share-modal__link-settings__content__select-role",children:e?y.jsx(It,{onSelectValue:N=>{b([N]),a==null||a(N)},options:S,isOpen:c.isOpen,onOpenChange:c.setIsOpen,selectedValues:v,children:y.jsx(le.Button,{color:"primary-text",icon:y.jsx("span",{className:"material-icons",children:c.isOpen?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",onClick:()=>{e&&c.setIsOpen(!c.isOpen)},size:"small",children:P==null?void 0:P.label})}):y.jsxs("span",{className:"c__share-modal__link-settings__content__select-role__value",children:[xr(p),P==null?void 0:P.label]})}):null;return y.jsxs("div",{className:"c__share-modal__link-settings",children:[y.jsx("span",{className:"c__share-modal__link-settings__title",children:g("components.share.linkSettings.title")}),y.jsxs("div",{className:"c__share-modal__link-settings__content",children:[x(),y.jsx("div",{className:"c__share-modal__link-settings__content__description desktop",children:g(`components.share.linkSettings.reach.choices.${h}.description`)}),E()]}),y.jsx("div",{className:"c__share-modal__link-settings__content__description mobile",children:g(`components.share.linkSettings.reach.choices.${h}.description`)})]})},N7=({searchUsersResult:t,children:e,outsideSearchContent:n,accesses:r=[],invitations:i=[],hasNextMembers:o=!1,canUpdate:l=!0,canView:a=!0,hasNextInvitations:s=!1,hideInvitations:c=!1,hideMembers:d=!1,cannotViewChildren:f,...h})=>{var O,K;if(!(c&&d)){if(!h.invitationRoles)throw new Error("invitationRoles is required");if(!h.onSearchUsers)throw new Error("onSearchUsers is required")}if(!c&&!h.onInviteUser)throw new Error("onInviteUser is required");if(l&&!a)throw new Error("canView cannot be false if canUpdate is true");const{t:v}=le.useCunningham(),{isMobile:b}=wn(),p=u.useRef(null),[g,m]=u.useState("400px"),C=u.useRef(null),[S,P]=u.useState(""),[$,x]=u.useState(""),[E,N]=u.useState([]),[H,j]=u.useState(((K=(O=h.invitationRoles)==null?void 0:O[0])==null?void 0:K.value)??""),w=b?"calc(100dvh - 32px)":"min(690px, calc(100dvh - 2em - 12px - 32px))",A=M=>{if(p.current&&clearTimeout(p.current),M===""){x(""),h.onSearchUsers("");return}p.current=setTimeout(()=>{h.onSearchUsers(M),x(M)},300)},B=M=>{P(M),A(M)},L=$!==""||E.length>0,U=u.useCallback(M=>{N(z=>[...z,M]),P(""),x(""),h.onSearchUsers("")},[h]),I=M=>{N(z=>z.filter(V=>V.id!==M.id))},R=u.useMemo(()=>{const M=t==null?void 0:t.filter(se=>!E.includes(se));let z=v($!==""?"components.share.user.no_result":"components.share.user.placeholder");const W=(se=>!!se.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z\-0-9]{2,}))$/))($??"")&&!(M!=null&&M.some(se=>se.email===$)),Y={id:$,full_name:"",email:$};return W&&(z=void 0),{groupName:v("components.share.search.group_name"),elements:M??[],showWhenEmpty:!0,emptyString:z,endActions:W?[{content:y.jsx(cl,{user:Y}),onSelect:()=>void U(Y)}]:void 0}},[t,$,v,E,U]),k=M=>{var J;const V=(M==null?void 0:M.clientHeight)??0,W=((J=C.current)==null?void 0:J.clientHeight)??0,Y=`calc(${w} - ${V}px - ${W}px - 70px - 10px)`;m(Y)},G=!c&&!L&&!h.loading&&i.length>0,T=!d&&!L&&!h.loading&&r.length>0,_=a?c&&d?"empty":"search":"cannot_view";return y.jsx(le.Modal,{title:h.modalTitle??v("components.share.modalTitle"),isOpen:h.isOpen,onClose:h.onClose,closeOnClickOutside:!0,size:b?le.ModalSize.FULL:le.ModalSize.LARGE,children:y.jsxs("div",{className:"c__share-modal no-padding",children:[l&&E.length>0&&y.jsx("div",{className:"c__share-modal__selected-users",ref:C,children:y.jsx(I2,{users:E,onRemoveUser:I,roles:h.invitationRoles,selectedRole:H,onSelectRole:j,onShare:()=>{h.onInviteUser(E,H),N([])}})}),_==="cannot_view"&&y.jsxs("div",{className:"c__share-modal__cannot-view",style:{height:g},children:[y.jsx("div",{className:"c__share-modal__cannot-view__content",children:y.jsx("p",{children:h.cannotViewMessage??v("components.share.cannot_view.message")})}),f]}),_==="search"&&y.jsx(O0,{onFilter:B,inputValue:S,showInput:l,loading:h.loading,placeholder:v("components.share.user.placeholder"),children:y.jsxs("div",{style:{height:g,overflowY:"auto"},children:[L&&y.jsx("div",{className:"c__share-modal__search-users",children:y.jsx(k0,{group:R,onSelect:M=>{U(M)},renderElement:M=>y.jsx(cl,{user:M})})}),!L&&e,G&&y.jsxs("div",{className:"c__share-modal__invitations",children:[y.jsx("span",{className:"c__share-modal__invitations-title",children:v("components.share.invitations.title")}),i.map(M=>{var z;return y.jsx(L2,{invitation:M,roles:h.invitationRoles,updateRole:h.onUpdateInvitation,deleteInvitation:h.onDeleteInvitation,canUpdate:l,roleTopMessage:(z=h.invitationRoleTopMessage)==null?void 0:z.call(h,M)},M.id)}),y.jsx(Hc,{show:s,onShowMore:h.onLoadNextInvitations})]}),T&&y.jsxs("div",{className:"c__share-modal__members",children:[y.jsx("span",{className:"c__share-modal__members-title",children:v(r.length>1?"components.share.members.title_plural":"components.share.members.title_singular",{count:r.length})}),r.map(M=>{var z,V;return y.jsx(M2,{accessData:M,canUpdate:l,roleTopMessage:(z=h.accessRoleTopMessage)==null?void 0:z.call(h,M),roles:((V=h.getAccessRoles)==null?void 0:V.call(h,M))??h.invitationRoles,updateRole:h.onUpdateAccess,deleteAccess:h.onDeleteAccess},M.id)}),y.jsx(Hc,{show:o,onShowMore:h.onLoadNextMembers})]})]})}),y.jsx("div",{ref:k,children:!L&&y.jsxs("div",{className:"c__share-modal__footer",children:[h.linkSettings&&y.jsx(k7,{linkReachChoices:h.linkReachChoices,canUpdate:l,onUpdateLinkReach:h.onUpdateLinkReach,linkReach:h.linkReach,linkRoleChoices:h.linkRoleChoices,linkRole:h.linkRole,onUpdateLinkRole:h.onUpdateLinkRole,showLinkRole:h.showLinkRole}),n]})})]})})},Hc=({show:t,onShowMore:e})=>{const{t:n}=le.useCunningham();return t?y.jsx("div",{className:"c__share-modal__show-more-button",children:y.jsx(le.Button,{color:"primary-text",size:"small",icon:y.jsx("span",{className:"material-icons",children:"arrow_downward"}),onClick:e,children:n("components.share.members.load_more")})}):null},R7=({onCopyLink:t,onOk:e})=>{const{t:n}=le.useCunningham();return y.jsxs("div",{className:"c__share-modal__copy-link-footer",children:[y.jsx(le.Button,{color:"tertiary",icon:y.jsx("span",{className:"material-icons",children:"link"}),onClick:t,children:n("components.share.copyLink")}),y.jsx(le.Button,{color:"primary",onClick:e,children:n("components.share.ok")})]})};exports.AccessRoleDropdown=ki;exports.CunninghamProvider=J2;exports.CustomTabs=rb;exports.DropdownMenu=It;exports.Filter=Jg;exports.Footer=Xg;exports.Header=Ef;exports.Hero=e5;exports.HomeGutter=t5;exports.HorizontalSeparator=Xo;exports.Icon=D7;exports.IconSize=Re;exports.IconType=Vn;exports.InvitationUserSelectorItem=O2;exports.InvitationUserSelectorList=I2;exports.LaGaufre=f5;exports.Label=qf;exports.LanguagePicker=xf;exports.LeftPanel=$f;exports.MainLayout=U5;exports.ProConnectButton=Bc;exports.QuickSearch=O0;exports.QuickSearchGroup=k0;exports.QuickSearchInput=I0;exports.QuickSearchItem=_r;exports.QuickSearchItemTemplate=Pi;exports.SearchUserItem=cl;exports.ShareInvitationItem=L2;exports.ShareMemberItem=M2;exports.ShareModal=N7;exports.ShareModalCopyLinkFooter=R7;exports.Spinner=Vl;exports.TreeApi=hn;exports.TreeContext=ra;exports.TreeProvider=f7;exports.TreeView=h7;exports.TreeViewItem=P7;exports.TreeViewMoveModeEnum=yt;exports.TreeViewNodeTypeEnum=Le;exports.TreeViewSeparator=E2;exports.UserAvatar=R2;exports.UserRow=Ni;exports.WithLabel=G5;exports.containerSizeMap=T2;exports.cunninghamConfig=Bo;exports.getContainerSize=_7;exports.getIconSize=T7;exports.getLocales=Vc;exports.getUserColor=N2;exports.getUserInitials=k2;exports.headerHeight=W5;exports.iconSizeMap=_2;exports.isNode=jn;exports.isSeparator=ei;exports.isTitle=ti;exports.useDropdownMenu=ht;exports.useResponsive=wn;exports.useTree=$2;exports.useTreeContext=ia;
|
|
88
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return D.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},R4="DialogDescriptionWarning",M4=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${w2(R4).contentName}}.`;return D.useEffect(()=>{var o;const i=(o=t.current)==null?void 0:o.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},L4=f2,A4=v2,F4=g2,K4=m2,On='[cmdk-group=""]',lo='[cmdk-group-items=""]',j4='[cmdk-group-heading=""]',Zl='[cmdk-item=""]',Ls=`${Zl}:not([aria-disabled="true"])`,Yo="cmdk-item-select",mt="data-value",H4=(t,e,n)=>tg(t,e,n),x2=D.createContext(void 0),nr=()=>D.useContext(x2),E2=D.createContext(void 0),Gl=()=>D.useContext(E2),$2=D.createContext(void 0),P2=D.forwardRef((t,e)=>{let n=nn(()=>{var T,O;return{search:"",value:(O=(T=t.value)!=null?T:t.defaultValue)!=null?O:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=nn(()=>new Set),i=nn(()=>new Map),o=nn(()=>new Map),l=nn(()=>new Set),a=D2(t),{label:s,children:c,value:d,onValueChange:f,filter:h,shouldFilter:v,loop:y,disablePointerSelection:p=!1,vimBindings:g=!0,...m}=t,C=Qe(),S=Qe(),P=Qe(),$=D.useRef(null),x=J4();Nt(()=>{if(d!==void 0){let T=d.trim();n.current.value=T,E.emit()}},[d]),Nt(()=>{x(6,B)},[]);let E=D.useMemo(()=>({subscribe:T=>(l.current.add(T),()=>l.current.delete(T)),snapshot:()=>n.current,setState:(T,O,K)=>{var M,V,z;if(!Object.is(n.current[T],O)){if(n.current[T]=O,T==="search")A(),j(),x(1,w);else if(T==="value"&&(K||x(5,B),((M=a.current)==null?void 0:M.value)!==void 0)){let W=O??"";(z=(V=a.current).onValueChange)==null||z.call(V,W);return}E.emit()}},emit:()=>{l.current.forEach(T=>T())}}),[]),N=D.useMemo(()=>({value:(T,O,K)=>{var M;O!==((M=o.current.get(T))==null?void 0:M.value)&&(o.current.set(T,{value:O,keywords:K}),n.current.filtered.items.set(T,H(O,K)),x(2,()=>{j(),E.emit()}))},item:(T,O)=>(r.current.add(T),O&&(i.current.has(O)?i.current.get(O).add(T):i.current.set(O,new Set([T]))),x(3,()=>{A(),j(),n.current.value||w(),E.emit()}),()=>{o.current.delete(T),r.current.delete(T),n.current.filtered.items.delete(T);let K=L();x(4,()=>{A(),(K==null?void 0:K.getAttribute("id"))===T&&w(),E.emit()})}),group:T=>(i.current.has(T)||i.current.set(T,new Set),()=>{o.current.delete(T),i.current.delete(T)}),filter:()=>a.current.shouldFilter,label:s||t["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:C,inputId:P,labelId:S,listInnerRef:$}),[]);function H(T,O){var K,M;let V=(M=(K=a.current)==null?void 0:K.filter)!=null?M:H4;return T?V(T,n.current.search,O):0}function j(){if(!n.current.search||a.current.shouldFilter===!1)return;let T=n.current.filtered.items,O=[];n.current.filtered.groups.forEach(M=>{let V=i.current.get(M),z=0;V.forEach(W=>{let q=T.get(W);z=Math.max(q,z)}),O.push([M,z])});let K=$.current;U().sort((M,V)=>{var z,W;let q=M.getAttribute("id"),J=V.getAttribute("id");return((z=T.get(J))!=null?z:0)-((W=T.get(q))!=null?W:0)}).forEach(M=>{let V=M.closest(lo);V?V.appendChild(M.parentElement===V?M:M.closest(`${lo} > *`)):K.appendChild(M.parentElement===K?M:M.closest(`${lo} > *`))}),O.sort((M,V)=>V[1]-M[1]).forEach(M=>{var V;let z=(V=$.current)==null?void 0:V.querySelector(`${On}[${mt}="${encodeURIComponent(M[0])}"]`);z==null||z.parentElement.appendChild(z)})}function w(){let T=U().find(K=>K.getAttribute("aria-disabled")!=="true"),O=T==null?void 0:T.getAttribute(mt);E.setState("value",O||void 0)}function A(){var T,O,K,M;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let V=0;for(let z of r.current){let W=(O=(T=o.current.get(z))==null?void 0:T.value)!=null?O:"",q=(M=(K=o.current.get(z))==null?void 0:K.keywords)!=null?M:[],J=H(W,q);n.current.filtered.items.set(z,J),J>0&&V++}for(let[z,W]of i.current)for(let q of W)if(n.current.filtered.items.get(q)>0){n.current.filtered.groups.add(z);break}n.current.filtered.count=V}function B(){var T,O,K;let M=L();M&&(((T=M.parentElement)==null?void 0:T.firstChild)===M&&((K=(O=M.closest(On))==null?void 0:O.querySelector(j4))==null||K.scrollIntoView({block:"nearest"})),M.scrollIntoView({block:"nearest"}))}function L(){var T;return(T=$.current)==null?void 0:T.querySelector(`${Zl}[aria-selected="true"]`)}function U(){var T;return Array.from(((T=$.current)==null?void 0:T.querySelectorAll(Ls))||[])}function I(T){let O=U()[T];O&&E.setState("value",O.getAttribute(mt))}function R(T){var O;let K=L(),M=U(),V=M.findIndex(W=>W===K),z=M[V+T];(O=a.current)!=null&&O.loop&&(z=V+T<0?M[M.length-1]:V+T===M.length?M[0]:M[V+T]),z&&E.setState("value",z.getAttribute(mt))}function k(T){let O=L(),K=O==null?void 0:O.closest(On),M;for(;K&&!M;)K=T>0?Y4(K,On):X4(K,On),M=K==null?void 0:K.querySelector(Ls);M?E.setState("value",M.getAttribute(mt)):R(T)}let Z=()=>I(U().length-1),_=T=>{T.preventDefault(),T.metaKey?Z():T.altKey?k(1):R(1)},F=T=>{T.preventDefault(),T.metaKey?I(0):T.altKey?k(-1):R(-1)};return D.createElement(me.div,{ref:e,tabIndex:-1,...m,"cmdk-root":"",onKeyDown:T=>{var O;if((O=m.onKeyDown)==null||O.call(m,T),!T.defaultPrevented)switch(T.key){case"n":case"j":{g&&T.ctrlKey&&_(T);break}case"ArrowDown":{_(T);break}case"p":case"k":{g&&T.ctrlKey&&F(T);break}case"ArrowUp":{F(T);break}case"Home":{T.preventDefault(),I(0);break}case"End":{T.preventDefault(),Z();break}case"Enter":if(!T.nativeEvent.isComposing&&T.keyCode!==229){T.preventDefault();let K=L();if(K){let M=new Event(Yo);K.dispatchEvent(M)}}}}},D.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:e9},s),$i(t,T=>D.createElement(E2.Provider,{value:E},D.createElement(x2.Provider,{value:N},T))))}),V4=D.forwardRef((t,e)=>{var n,r;let i=Qe(),o=D.useRef(null),l=D.useContext($2),a=nr(),s=D2(t),c=(r=(n=s.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;Nt(()=>{if(!c)return a.item(i,l==null?void 0:l.id)},[c]);let d=T2(i,o,[t.value,t.children,o],t.keywords),f=Gl(),h=Rt(x=>x.value&&x.value===d.current),v=Rt(x=>c||a.filter()===!1?!0:x.search?x.filtered.items.get(i)>0:!0);D.useEffect(()=>{let x=o.current;if(!(!x||t.disabled))return x.addEventListener(Yo,y),()=>x.removeEventListener(Yo,y)},[v,t.onSelect,t.disabled]);function y(){var x,E;p(),(E=(x=s.current).onSelect)==null||E.call(x,d.current)}function p(){f.setState("value",d.current,!0)}if(!v)return null;let{disabled:g,value:m,onSelect:C,forceMount:S,keywords:P,...$}=t;return D.createElement(me.div,{ref:Xn([o,e]),...$,id:i,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!h,"data-disabled":!!g,"data-selected":!!h,onPointerMove:g||a.getDisablePointerSelection()?void 0:p,onClick:g?void 0:y},t.children)}),z4=D.forwardRef((t,e)=>{let{heading:n,children:r,forceMount:i,...o}=t,l=Qe(),a=D.useRef(null),s=D.useRef(null),c=Qe(),d=nr(),f=Rt(v=>i||d.filter()===!1?!0:v.search?v.filtered.groups.has(l):!0);Nt(()=>d.group(l),[]),T2(l,a,[t.value,t.heading,s]);let h=D.useMemo(()=>({id:l,forceMount:i}),[i]);return D.createElement(me.div,{ref:Xn([a,e]),...o,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&D.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),$i(t,v=>D.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},D.createElement($2.Provider,{value:h},v))))}),B4=D.forwardRef((t,e)=>{let{alwaysRender:n,...r}=t,i=D.useRef(null),o=Rt(l=>!l.search);return!n&&!o?null:D.createElement(me.div,{ref:Xn([i,e]),...r,"cmdk-separator":"",role:"separator"})}),U4=D.forwardRef((t,e)=>{let{onValueChange:n,...r}=t,i=t.value!=null,o=Gl(),l=Rt(d=>d.search),a=Rt(d=>d.value),s=nr(),c=D.useMemo(()=>{var d;let f=(d=s.listInnerRef.current)==null?void 0:d.querySelector(`${Zl}[${mt}="${encodeURIComponent(a)}"]`);return f==null?void 0:f.getAttribute("id")},[]);return D.useEffect(()=>{t.value!=null&&o.setState("search",t.value)},[t.value]),D.createElement(me.input,{ref:e,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,"aria-activedescendant":c,id:s.inputId,type:"text",value:i?t.value:l,onChange:d=>{i||o.setState("search",d.target.value),n==null||n(d.target.value)}})}),W4=D.forwardRef((t,e)=>{let{children:n,label:r="Suggestions",...i}=t,o=D.useRef(null),l=D.useRef(null),a=nr();return D.useEffect(()=>{if(l.current&&o.current){let s=l.current,c=o.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let h=s.offsetHeight;c.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return f.observe(s),()=>{cancelAnimationFrame(d),f.unobserve(s)}}},[]),D.createElement(me.div,{ref:Xn([o,e]),...i,"cmdk-list":"",role:"listbox","aria-label":r,id:a.listId},$i(t,s=>D.createElement("div",{ref:Xn([l,a.listInnerRef]),"cmdk-list-sizer":""},s)))}),Z4=D.forwardRef((t,e)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:o,container:l,...a}=t;return D.createElement(L4,{open:n,onOpenChange:r},D.createElement(A4,{container:l},D.createElement(F4,{"cmdk-overlay":"",className:i}),D.createElement(K4,{"aria-label":t.label,"cmdk-dialog":"",className:o},D.createElement(P2,{ref:e,...a}))))}),G4=D.forwardRef((t,e)=>Rt(n=>n.filtered.count===0)?D.createElement(me.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),q4=D.forwardRef((t,e)=>{let{progress:n,children:r,label:i="Loading...",...o}=t;return D.createElement(me.div,{ref:e,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},$i(t,l=>D.createElement("div",{"aria-hidden":!0},l)))}),Yn=Object.assign(P2,{List:W4,Item:V4,Input:U4,Group:z4,Separator:B4,Dialog:Z4,Empty:G4,Loading:q4});function Y4(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}function X4(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}function D2(t){let e=D.useRef(t);return Nt(()=>{e.current=t}),e}var Nt=typeof window>"u"?D.useEffect:D.useLayoutEffect;function nn(t){let e=D.useRef();return e.current===void 0&&(e.current=t()),e}function Xn(t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function Rt(t){let e=Gl(),n=()=>t(e.snapshot());return $l.useSyncExternalStore(e.subscribe,n,n)}function T2(t,e,n,r=[]){let i=D.useRef(),o=nr();return Nt(()=>{var l;let a=(()=>{var c;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(c=d.current.textContent)==null?void 0:c.trim():i.current}})(),s=r.map(c=>c.trim());o.value(t,a,s),(l=e.current)==null||l.setAttribute(mt,a),i.current=a}),i}var J4=()=>{let[t,e]=D.useState(),n=nn(()=>new Map);return Nt(()=>{n.current.forEach(r=>r()),n.current=new Map},[t]),(r,i)=>{n.current.set(r,i),e({})}};function Q4(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function $i({asChild:t,children:e},n){return t&&D.isValidElement(e)?D.cloneElement(Q4(e),{ref:e.ref},n(e.props.children)):n(e)}var e9={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const _2=({withPadding:t=!0,direction:e,width:n="thin",size:r})=>b.jsx("div",{style:{"--size":r},className:Pe("c__separator",`c__separator--${e}`,`c__separator--${n}`,{"with-padding":t})}),Xo=t=>b.jsx(_2,{direction:"horizontal",...t}),I2=({loading:t,inputValue:e,onFilter:n,placeholder:r,children:i,withSeparator:o=!0})=>{const{t:l}=le.useCunningham();return i?b.jsxs(b.Fragment,{children:[i,o&&b.jsx(Xo,{})]}):b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"quick-search-input-container",children:[!t&&b.jsx("span",{className:"material-icons",children:"search"}),t&&b.jsx("div",{children:b.jsx(zl,{size:"md"})}),b.jsx(Yn.Input,{autoFocus:!0,"aria-label":l("Quick search input"),onClick:a=>{a.stopPropagation()},role:"combobox",value:e,placeholder:r,onValueChange:n})]}),o&&b.jsx(Xo,{withPadding:!0})]})},t9=t=>{let e=!1;return u.Children.forEach(t,n=>{e=e||!!n}),e},O2=({onFilter:t,inputContent:e,inputValue:n,loading:r,showInput:i=!0,label:o,placeholder:l,children:a})=>{const s=u.useRef(null);return b.jsx(b.Fragment,{children:b.jsx("div",{className:"quick-search-container",children:b.jsxs(Yn,{label:o,shouldFilter:!1,ref:s,children:[i&&b.jsx(I2,{loading:r,withSeparator:t9(a),inputValue:n,onFilter:t,placeholder:l,children:e}),b.jsx(Yn.List,{children:b.jsx("div",{children:a})})]})})})},Tr=({children:t,onSelect:e,id:n})=>b.jsx(Yn.Item,{value:n,onSelect:e,children:t}),k2=({group:t,onSelect:e,renderElement:n})=>{var r,i;return!t.showWhenEmpty&&t.elements.length===0?null:b.jsx("div",{className:"pt-base",children:b.jsxs(Yn.Group,{heading:t.groupName,forceMount:!1,children:[(r=t.startActions)==null?void 0:r.map((o,l)=>b.jsx(Tr,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.elements.map((o,l)=>b.jsx(Tr,{id:`${t.groupName}-element-${l}`,onSelect:()=>{e==null||e(o)},children:n==null?void 0:n(o)},`${t.groupName}-element-${l}`)),(i=t.endActions)==null?void 0:i.map((o,l)=>b.jsx(Tr,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.emptyString&&t.elements.length===0&&b.jsx("span",{className:"ml-b clr-greyscale-500",children:t.emptyString})]},t.groupName)})},Pi=({alwaysShowRight:t=!1,left:e,right:n})=>{const{isDesktop:r}=wn();return b.jsxs("div",{className:"c__quick-search-item-template",children:[b.jsx("div",{className:"c__quick-search-item-template__left",children:e}),r&&n&&b.jsx("div",{className:Pe("c__quick-search-item-template__right",{"always-show-right":t,"show-right-on-focus":!t}),children:n})]})},n9=t=>b.jsx(_2,{direction:"vertical",...t}),r9=({tabs:t,defaultSelectedTab:e,fullWidth:n=!1})=>t.length===0?null:b.jsx("div",{className:Pe("c__tabs",{"c__tabs__full-width":n}),children:b.jsxs(zp,{defaultSelectedKey:e,children:[b.jsx(Up,{"aria-label":"History of Ancient Rome",children:t.map(r=>b.jsxs(Zp,{id:r.id,children:[r.icon&&b.jsx("span",{className:"material-icons",children:r.icon}),r.label]},r.id))}),t.map(r=>b.jsx(Gp,{id:r.id,children:r.content},r.id))]})}),N2=u.createContext(null);function _e(){const t=u.useContext(N2);if(t===null)throw new Error("No Tree Api Provided");return t}const R2=u.createContext(null);function i9(){const t=u.useContext(R2);if(t===null)throw new Error("Provide a NodesContext");return t}const M2=u.createContext(null);function o9(){const t=u.useContext(M2);if(t===null)throw new Error("Provide a DnDContext");return t}const L2=u.createContext(0);function A2(){u.useContext(L2)}function _r(t,e,n){return Math.max(Math.min(t,n),e)}function F2(t){return t&&t.isLeaf}function K2(t){return t&&t.isInternal&&!t.isOpen}function j2(t){var e;return t&&t.isOpen&&!(!((e=t.children)===null||e===void 0)&&e.length)}const H2=(t,e)=>{let n=t;for(;n;){if(n.id===e.id)return!0;n=n.parent}return!1},V2=t=>{if(!t.parent)throw Error("Node does not have a parent");return t.parent.children.findIndex(e=>e.id===t.id)};function l9(){}function ql(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let n of t.children){const r=ql(n,e);if(r)return r}return null}function Xr(t,e){if(e(t),t.children)for(let n of t.children)Xr(n,e)}function z2(t){const e=U2(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=a9(e,r);break}n==null||n.focus()}function B2(t){const e=U2(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=s9(e,r);break}n==null||n.focus()}function a9(t,e){return e+1<t.length?t[e+1]:t[0]}function s9(t,e){return e-1>=0?t[e-1]:t[t.length-1]}function U2(t){return Array.from(document.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), details:not([disabled]), summary:not(:disabled)')).filter(e=>e===t||!t.contains(e))}function Kn(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function W2(t){return t===null?null:yt(t)}function yt(t){return typeof t=="string"?t:t.id}function c9(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function Z2(t,...e){if(t)return t(...e)}function G2(t){return new Promise((e,n)=>{let r=0;function i(){r+=1,r===100&&n(),t()?e():setTimeout(i,10)}i()})}function q2(t){var e,n;const r=t.focusedNode;return r?r.isOpen?0:r.parent?r.childIndex+1:0:(n=(e=t.root.children)===null||e===void 0?void 0:e.length)!==null&&n!==void 0?n:0}function Y2(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const u9=Object.freeze(Object.defineProperty({__proto__:null,access:Kn,bound:_r,dfs:ql,focusNextElement:z2,focusPrevElement:B2,getInsertIndex:q2,getInsertParentId:Y2,identify:yt,identifyNull:W2,indexOf:V2,isClosed:K2,isDescendant:H2,isItem:F2,isOpenWithEmptyChildren:j2,mergeRefs:c9,noop:l9,safeRun:Z2,waitFor:G2,walk:Xr},Symbol.toStringTag,{value:"Module"})),d9={display:"flex",alignItems:"center",zIndex:1},f9={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},h9={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},p9=u.memo(function({top:e,left:n,indent:r}){const i={position:"absolute",pointerEvents:"none",top:e-2+"px",left:n+"px",right:r+"px"};return b.jsxs("div",{style:Object.assign(Object.assign({},d9),i),children:[b.jsx("div",{style:Object.assign({},h9)}),b.jsx("div",{style:Object.assign({},f9)})]})});function v9({node:t,attrs:e,innerRef:n,children:r}){return b.jsx("div",Object.assign({},e,{ref:n,onFocus:i=>i.stopPropagation(),onClick:t.handleClick,children:r}))}function g9(t){return b.jsxs("div",{ref:t.dragHandle,style:t.style,children:[b.jsx("span",{onClick:e=>{e.stopPropagation(),t.node.toggle()},children:t.node.isLeaf?"🌳":t.node.isOpen?"🗁":"🗀"})," ",t.node.isEditing?b.jsx(y9,Object.assign({},t)):b.jsx(m9,Object.assign({},t))]})}function m9(t){return b.jsx(b.Fragment,{children:b.jsx("span",{children:t.node.data.name})})}function y9({node:t}){const e=u.useRef();return u.useEffect(()=>{var n,r;(n=e.current)===null||n===void 0||n.focus(),(r=e.current)===null||r===void 0||r.select()},[]),b.jsx("input",{ref:e,defaultValue:t.data.name,onBlur:()=>t.reset(),onKeyDown:n=>{var r;n.key==="Escape"&&t.reset(),n.key==="Enter"&&t.submit(((r=e.current)===null||r===void 0?void 0:r.value)||"")}})}function ao(t){return{type:"EDIT",id:t}}function b9(t={id:null},e){return e.type==="EDIT"?Object.assign(Object.assign({},t),{id:e.id}):t}function Gt(t){return{type:"FOCUS",id:t}}function C9(){return{type:"TREE_BLUR"}}function S9(t={id:null,treeFocused:!1},e){return e.type==="FOCUS"?Object.assign(Object.assign({},t),{id:e.id,treeFocused:!0}):e.type==="TREE_BLUR"?Object.assign(Object.assign({},t),{treeFocused:!1}):t}class Jr{constructor(e){this.handleClick=n=>{n.metaKey&&!this.tree.props.disableMultiSelection?this.isSelected?this.deselect():this.selectMulti():n.shiftKey&&!this.tree.props.disableMultiSelection?this.selectContiguous():(this.select(),this.activate())},this.tree=e.tree,this.id=e.id,this.data=e.data,this.level=e.level,this.children=e.children,this.parent=e.parent,this.isDraggable=e.isDraggable,this.rowIndex=e.rowIndex}get isRoot(){return this.id===Jn}get isLeaf(){return!Array.isArray(this.children)}get isInternal(){return!this.isLeaf}get isOpen(){return this.isLeaf?!1:this.tree.isOpen(this.id)}get isClosed(){return this.isLeaf?!1:!this.tree.isOpen(this.id)}get isEditable(){return this.tree.isEditable(this.data)}get isEditing(){return this.tree.editingId===this.id}get isSelected(){return this.tree.isSelected(this.id)}get isOnlySelection(){return this.isSelected&&this.tree.hasOneSelection}get isSelectedStart(){var e;return this.isSelected&&!(!((e=this.prev)===null||e===void 0)&&e.isSelected)}get isSelectedEnd(){var e;return this.isSelected&&!(!((e=this.next)===null||e===void 0)&&e.isSelected)}get isFocused(){return this.tree.isFocused(this.id)}get isDragging(){return this.tree.isDragging(this.id)}get willReceiveDrop(){return this.tree.willReceiveDrop(this.id)}get state(){return{isClosed:this.isClosed,isDragging:this.isDragging,isEditing:this.isEditing,isFocused:this.isFocused,isInternal:this.isInternal,isLeaf:this.isLeaf,isOpen:this.isOpen,isSelected:this.isSelected,isSelectedEnd:this.isSelectedEnd,isSelectedStart:this.isSelectedStart,willReceiveDrop:this.willReceiveDrop}}get childIndex(){return this.parent&&this.parent.children?this.parent.children.findIndex(e=>e.id===this.id):-1}get next(){return this.rowIndex===null?null:this.tree.at(this.rowIndex+1)}get prev(){return this.rowIndex===null?null:this.tree.at(this.rowIndex-1)}get nextSibling(){var e,n;const r=this.childIndex;return(n=(e=this.parent)===null||e===void 0?void 0:e.children[r+1])!==null&&n!==void 0?n:null}isAncestorOf(e){if(!e)return!1;let n=e;for(;n;){if(n.id===this.id)return!0;n=n.parent}return!1}select(){this.tree.select(this)}deselect(){this.tree.deselect(this)}selectMulti(){this.tree.selectMulti(this)}selectContiguous(){this.tree.selectContiguous(this)}activate(){this.tree.activate(this)}focus(){this.tree.focus(this)}toggle(){this.tree.toggle(this)}open(){this.tree.open(this)}openParents(){this.tree.openParents(this)}close(){this.tree.close(this)}submit(e){this.tree.submit(this,e)}reset(){this.tree.reset()}clone(){return new Jr(Object.assign({},this))}edit(){return this.tree.edit(this)}}const Jn="__REACT_ARBORIST_INTERNAL_ROOT__";function As(t){var e;function n(o,l,a){const s=t.accessId(o),c=new Jr({tree:t,data:o,level:l,parent:a,id:s,children:null,isDraggable:t.isDraggable(o),rowIndex:null}),d=t.accessChildren(o);return d&&(c.children=d.map(f=>n(f,l+1,c))),c}const r=new Jr({tree:t,id:Jn,data:{id:Jn},level:-1,parent:null,children:null,isDraggable:!0,rowIndex:null}),i=(e=t.props.data)!==null&&e!==void 0?e:[];return r.children=i.map(o=>n(o,0,r)),r}const Jo={open(t,e){return{type:"VISIBILITY_OPEN",id:t,filtered:e}},close(t,e){return{type:"VISIBILITY_CLOSE",id:t,filtered:e}},toggle(t,e){return{type:"VISIBILITY_TOGGLE",id:t,filtered:e}},clear(t){return{type:"VISIBILITY_CLEAR",filtered:t}}};function Fs(t={},e){if(e.type==="VISIBILITY_OPEN")return Object.assign(Object.assign({},t),{[e.id]:!0});if(e.type==="VISIBILITY_CLOSE")return Object.assign(Object.assign({},t),{[e.id]:!1});if(e.type==="VISIBILITY_TOGGLE"){const n=t[e.id];return Object.assign(Object.assign({},t),{[e.id]:!n})}else return e.type==="VISIBILITY_CLEAR"?{}:t}function w9(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?Object.assign(Object.assign({},t),{filtered:Fs(t.filtered,e)}):Object.assign(Object.assign({},t),{unfiltered:Fs(t.unfiltered,e)}):t}const yn=t=>{var e;return{nodes:{open:{filtered:{},unfiltered:(e=t==null?void 0:t.initialOpenState)!==null&&e!==void 0?e:{}},focus:{id:null,treeFocused:!1},edit:{id:null},drag:{id:null,selectedIds:[],destinationParentId:null,destinationIndex:null},selection:{ids:new Set,anchor:null,mostRecent:null}},dnd:{cursor:{type:"none"},dragId:null,dragIds:[],parentId:null,index:-1}}},Fe={clear:()=>({type:"SELECTION_CLEAR"}),only:t=>({type:"SELECTION_ONLY",id:yt(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(yt)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(yt)}),set:t=>Object.assign({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:yt(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:yt(t)})};function x9(t=yn().nodes.selection,e){const n=t.ids;switch(e.type){case"SELECTION_CLEAR":return Object.assign(Object.assign({},t),{ids:new Set});case"SELECTION_ONLY":return Object.assign(Object.assign({},t),{ids:new Set([e.id])});case"SELECTION_ADD":return e.ids.length===0?t:(e.ids.forEach(r=>n.add(r)),Object.assign(Object.assign({},t),{ids:new Set(n)}));case"SELECTION_REMOVE":return e.ids.length===0?t:(e.ids.forEach(r=>n.delete(r)),Object.assign(Object.assign({},t),{ids:new Set(n)}));case"SELECTION_SET":return Object.assign(Object.assign({},t),{ids:e.ids,mostRecent:e.mostRecent,anchor:e.anchor});case"SELECTION_MOST_RECENT":return Object.assign(Object.assign({},t),{mostRecent:e.id});case"SELECTION_ANCHOR":return Object.assign(Object.assign({},t),{anchor:e.id});default:return t}}const bn={cursor(t){return{type:"DND_CURSOR",cursor:t}},dragStart(t,e){return{type:"DND_DRAG_START",id:t,dragIds:e}},dragEnd(){return{type:"DND_DRAG_END"}},hovering(t,e){return{type:"DND_HOVERING",parentId:t,index:e}}};function E9(t=yn().dnd,e){switch(e.type){case"DND_CURSOR":return Object.assign(Object.assign({},t),{cursor:e.cursor});case"DND_DRAG_START":return Object.assign(Object.assign({},t),{dragId:e.id,dragIds:e.dragIds});case"DND_DRAG_END":return yn().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},t),{parentId:e.parentId,index:e.index});default:return t}}const $9={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},P9=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e}px, ${n}px)`}},D9=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e+10}px, ${n+10}px)`}};function X2({offset:t,mouse:e,id:n,dragIds:r,isDragging:i}){return b.jsxs(T9,{isDragging:i,children:[b.jsx(_9,{offset:t,children:b.jsx(O9,{id:n,dragIds:r})}),b.jsx(I9,{mouse:e,count:r.length})]})}const T9=u.memo(function(e){return e.isDragging?b.jsx("div",{style:$9,children:e.children}):null});function _9(t){return b.jsx("div",{className:"row preview",style:P9(t.offset),children:t.children})}function I9(t){const{count:e,mouse:n}=t;return e>1?b.jsx("div",{className:"selected-count",style:D9(n),children:e}):null}const O9=u.memo(function(e){const n=_e(),r=n.get(e.id);return r?b.jsx(n.renderNode,{preview:!0,node:r,style:{paddingLeft:r.level*n.indent,opacity:.2,background:"transparent"},tree:n}):null});function Qo(){return Qo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qo.apply(null,arguments)}function Ks(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function el(t,e){return el=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},el(t,e)}function k9(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,el(t,e)}var js=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function N9(t,e){return!!(t===e||js(t)&&js(e))}function R9(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!N9(t[n],e[n]))return!1;return!0}function so(t,e){e===void 0&&(e=R9);var n,r=[],i,o=!1;function l(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&e(a,r)||(i=t.apply(this,a),o=!0,n=this,r=a),i}return l}var M9=typeof performance=="object"&&typeof performance.now=="function",Hs=M9?function(){return performance.now()}:function(){return Date.now()};function Vs(t){cancelAnimationFrame(t.id)}function L9(t,e){var n=Hs();function r(){Hs()-n>=e?t.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var co=-1;function zs(t){if(t===void 0&&(t=!1),co===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),co=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return co}var qt=null;function Bs(t){if(t===void 0&&(t=!1),qt===null||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?qt="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?qt="negative":qt="positive-ascending"),document.body.removeChild(e),qt}return qt}process.env.NODE_ENV;var A9=150,F9=function(e,n){return e},Ir=null,Or=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(Ir=new WeakSet,Or=new WeakSet);function K9(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,l=t.getStartIndexForOffset,a=t.getStopIndexForStartIndex,s=t.initInstanceProps,c=t.shouldResetStyleCacheOnItemSizeChange,d=t.validateProps;return e=function(f){k9(h,f);function h(y){var p;return p=f.call(this,y)||this,p._instanceProps=s(p.props,Ks(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:Ks(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=so(function(g,m,C,S){return p.props.onItemsRendered({overscanStartIndex:g,overscanStopIndex:m,visibleStartIndex:C,visibleStopIndex:S})}),p._callOnScroll=void 0,p._callOnScroll=so(function(g,m,C){return p.props.onScroll({scrollDirection:g,scrollOffset:m,scrollUpdateWasRequested:C})}),p._getItemStyle=void 0,p._getItemStyle=function(g){var m=p.props,C=m.direction,S=m.itemSize,P=m.layout,$=p._getItemStyleCache(c&&S,c&&P,c&&C),x;if($.hasOwnProperty(g))x=$[g];else{var E=n(p.props,g,p._instanceProps),N=i(p.props,g,p._instanceProps),H=C==="horizontal"||P==="horizontal",j=C==="rtl",w=H?E:0;$[g]=x={position:"absolute",left:j?void 0:w,right:j?w:void 0,top:H?0:E,height:H?"100%":N,width:H?N:"100%"}}return x},p._getItemStyleCache=void 0,p._getItemStyleCache=so(function(g,m,C){return{}}),p._onScrollHorizontal=function(g){var m=g.currentTarget,C=m.clientWidth,S=m.scrollLeft,P=m.scrollWidth;p.setState(function($){if($.scrollOffset===S)return null;var x=p.props.direction,E=S;if(x==="rtl")switch(Bs()){case"negative":E=-S;break;case"positive-descending":E=P-C-S;break}return E=Math.max(0,Math.min(E,P-C)),{isScrolling:!0,scrollDirection:$.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._onScrollVertical=function(g){var m=g.currentTarget,C=m.clientHeight,S=m.scrollHeight,P=m.scrollTop;p.setState(function($){if($.scrollOffset===P)return null;var x=Math.max(0,Math.min(P,S-C));return{isScrolling:!0,scrollDirection:$.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._outerRefSetter=function(g){var m=p.props.outerRef;p._outerRef=g,typeof m=="function"?m(g):m!=null&&typeof m=="object"&&m.hasOwnProperty("current")&&(m.current=g)},p._resetIsScrollingDebounced=function(){p._resetIsScrollingTimeoutId!==null&&Vs(p._resetIsScrollingTimeoutId),p._resetIsScrollingTimeoutId=L9(p._resetIsScrolling,A9)},p._resetIsScrolling=function(){p._resetIsScrollingTimeoutId=null,p.setState({isScrolling:!1},function(){p._getItemStyleCache(-1,null)})},p}h.getDerivedStateFromProps=function(p,g){return j9(p,g),d(p),null};var v=h.prototype;return v.scrollTo=function(p){p=Math.max(0,p),this.setState(function(g){return g.scrollOffset===p?null:{scrollDirection:g.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(p,g){g===void 0&&(g="auto");var m=this.props,C=m.itemCount,S=m.layout,P=this.state.scrollOffset;p=Math.max(0,Math.min(p,C-1));var $=0;if(this._outerRef){var x=this._outerRef;S==="vertical"?$=x.scrollWidth>x.clientWidth?zs():0:$=x.scrollHeight>x.clientHeight?zs():0}this.scrollTo(o(this.props,p,g,P,this._instanceProps,$))},v.componentDidMount=function(){var p=this.props,g=p.direction,m=p.initialScrollOffset,C=p.layout;if(typeof m=="number"&&this._outerRef!=null){var S=this._outerRef;g==="horizontal"||C==="horizontal"?S.scrollLeft=m:S.scrollTop=m}this._callPropsCallbacks()},v.componentDidUpdate=function(){var p=this.props,g=p.direction,m=p.layout,C=this.state,S=C.scrollOffset,P=C.scrollUpdateWasRequested;if(P&&this._outerRef!=null){var $=this._outerRef;if(g==="horizontal"||m==="horizontal")if(g==="rtl")switch(Bs()){case"negative":$.scrollLeft=-S;break;case"positive-ascending":$.scrollLeft=S;break;default:var x=$.clientWidth,E=$.scrollWidth;$.scrollLeft=E-x-S;break}else $.scrollLeft=S;else $.scrollTop=S}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Vs(this._resetIsScrollingTimeoutId)},v.render=function(){var p=this.props,g=p.children,m=p.className,C=p.direction,S=p.height,P=p.innerRef,$=p.innerElementType,x=p.innerTagName,E=p.itemCount,N=p.itemData,H=p.itemKey,j=H===void 0?F9:H,w=p.layout,A=p.outerElementType,B=p.outerTagName,L=p.style,U=p.useIsScrolling,I=p.width,R=this.state.isScrolling,k=C==="horizontal"||w==="horizontal",Z=k?this._onScrollHorizontal:this._onScrollVertical,_=this._getRangeToRender(),F=_[0],T=_[1],O=[];if(E>0)for(var K=F;K<=T;K++)O.push(u.createElement(g,{data:N,key:j(K,N),index:K,isScrolling:U?R:void 0,style:this._getItemStyle(K)}));var M=r(this.props,this._instanceProps);return u.createElement(A||B||"div",{className:m,onScroll:Z,ref:this._outerRefSetter,style:Qo({position:"relative",height:S,width:I,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},L)},u.createElement($||x||"div",{children:O,ref:P,style:{height:k?"100%":M,pointerEvents:R?"none":void 0,width:k?M:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var g=this._getRangeToRender(),m=g[0],C=g[1],S=g[2],P=g[3];this._callOnItemsRendered(m,C,S,P)}}if(typeof this.props.onScroll=="function"){var $=this.state,x=$.scrollDirection,E=$.scrollOffset,N=$.scrollUpdateWasRequested;this._callOnScroll(x,E,N)}},v._getRangeToRender=function(){var p=this.props,g=p.itemCount,m=p.overscanCount,C=this.state,S=C.isScrolling,P=C.scrollDirection,$=C.scrollOffset;if(g===0)return[0,0,0,0];var x=l(this.props,$,this._instanceProps),E=a(this.props,x,$,this._instanceProps),N=!S||P==="backward"?Math.max(1,m):1,H=!S||P==="forward"?Math.max(1,m):1;return[Math.max(0,x-N),Math.max(0,Math.min(g-1,E+H)),x,E]},h}(u.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var j9=function(e,n){var r=e.children,i=e.direction,o=e.height,l=e.layout,a=e.innerTagName,s=e.outerTagName,c=e.width,d=n.instance;if(process.env.NODE_ENV!=="production"){(a!=null||s!=null)&&Or&&!Or.has(d)&&(Or.add(d),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var f=i==="horizontal"||l==="horizontal";switch(i){case"horizontal":case"vertical":Ir&&!Ir.has(d)&&(Ir.add(d),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(l){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+l+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(f&&typeof c!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(c===null?"null":typeof c)+'" was specified.'));if(!f&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},H9=K9({getItemOffset:function(e,n){var r=e.itemSize;return n*r},getItemSize:function(e,n){var r=e.itemSize;return r},getEstimatedTotalSize:function(e){var n=e.itemCount,r=e.itemSize;return r*n},getOffsetForIndexAndAlignment:function(e,n,r,i,o,l){var a=e.direction,s=e.height,c=e.itemCount,d=e.itemSize,f=e.layout,h=e.width,v=a==="horizontal"||f==="horizontal",y=v?h:s,p=Math.max(0,c*d-y),g=Math.min(p,n*d),m=Math.max(0,n*d-y+d+l);switch(r==="smart"&&(i>=m-y&&i<=g+y?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":{var C=Math.round(m+(g-m)/2);return C<Math.ceil(y/2)?0:C>p+Math.floor(y/2)?p:C}case"auto":default:return i>=m&&i<=g?i:i<m?m:g}},getStartIndexForOffset:function(e,n){var r=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/i)))},getStopIndexForStartIndex:function(e,n,r){var i=e.direction,o=e.height,l=e.itemCount,a=e.itemSize,s=e.layout,c=e.width,d=i==="horizontal"||s==="horizontal",f=n*a,h=d?c:o,v=Math.ceil((h+r-f)/a);return Math.max(0,Math.min(l-1,n+v-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var n=e.itemSize;if(process.env.NODE_ENV!=="production"&&typeof n!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(n===null?"null":typeof n)+'" was specified.'))}});function V9(){var t,e;const n=_e(),i=o9().cursor;if(!i||i.type!=="line")return null;const o=n.indent,l=n.rowHeight*i.index+((e=(t=n.props.padding)!==null&&t!==void 0?t:n.props.paddingTop)!==null&&e!==void 0?e:0),a=o*i.level,s=n.renderCursor;return b.jsx(s,{top:l,left:a,indent:o})}var z9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const B9=u.forwardRef(function(e,n){const{children:r}=e,i=z9(e,["children"]),o=_e();return b.jsxs("div",Object.assign({ref:n},i,{onClick:l=>{l.currentTarget===l.target&&o.deselectAll()},children:[b.jsx(U9,{}),r]}))}),U9=()=>{const t=_e();return b.jsx("div",{style:{height:t.visibleNodes.length*t.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:b.jsx(V9,{})})};var W9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const Z9=u.forwardRef(function(e,n){var r,i,o,l,{style:a}=e,s=W9(e,["style"]);const c=_e(),d=(i=(r=c.props.padding)!==null&&r!==void 0?r:c.props.paddingTop)!==null&&i!==void 0?i:0,f=(l=(o=c.props.padding)!==null&&o!==void 0?o:c.props.paddingBottom)!==null&&l!==void 0?l:0;return b.jsx("div",Object.assign({ref:n,style:Object.assign(Object.assign({},a),{height:`${parseFloat(a.height)+d+f}px`})},s))});var J2=u.createContext({dragDropManager:void 0}),Ne;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Ne||(Ne={}));function Y(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){var o;if(e===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=0;o=new Error(e.replace(/%s/g,function(){return r[l++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var Yl="dnd-core/INIT_COORDS",Di="dnd-core/BEGIN_DRAG",Xl="dnd-core/PUBLISH_DRAG_SOURCE",Ti="dnd-core/HOVER",_i="dnd-core/DROP",Ii="dnd-core/END_DRAG";function Us(t,e){return{type:Yl,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function kr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kr=function(n){return typeof n}:kr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},kr(t)}function G9(t,e,n){return e.split(".").reduce(function(r,i){return r&&r[i]?r[i]:n||null},t)}function q9(t,e){return t.filter(function(n){return n!==e})}function Q2(t){return kr(t)==="object"}function Y9(t,e){var n=new Map,r=function(l){n.set(l,n.has(l)?n.get(l)+1:1)};t.forEach(r),e.forEach(r);var i=[];return n.forEach(function(o,l){o===1&&i.push(l)}),i}function X9(t,e){return t.filter(function(n){return e.indexOf(n)>-1})}var J9={type:Yl,payload:{clientOffset:null,sourceClientOffset:null}};function Q9(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},i=r.publishSource,o=i===void 0?!0:i,l=r.clientOffset,a=r.getSourceClientOffset,s=t.getMonitor(),c=t.getRegistry();t.dispatch(Us(l)),e3(n,s,c);var d=r3(n,s);if(d===null){t.dispatch(J9);return}var f=null;if(l){if(!a)throw new Error("getSourceClientOffset must be defined");t3(a),f=a(d)}t.dispatch(Us(l,f));var h=c.getSource(d),v=h.beginDrag(s,d);if(v!=null){n3(v),c.pinSource(d);var y=c.getSourceType(d);return{type:Di,payload:{itemType:y,item:v,sourceId:d,clientOffset:l||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}}}function e3(t,e,n){Y(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){Y(n.getSource(r),"Expected sourceIds to be registered.")})}function t3(t){Y(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function n3(t){Y(Q2(t),"Item must be an object.")}function r3(t,e){for(var n=null,r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function i3(t){return function(){var n=t.getMonitor();if(n.isDragging())return{type:Xl}}}function tl(t,e){return e===null?t===null:Array.isArray(t)?t.some(function(n){return n===e}):t===e}function o3(t){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.clientOffset;l3(n);var o=n.slice(0),l=t.getMonitor(),a=t.getRegistry();a3(o,l,a);var s=l.getItemType();return s3(o,a,s),c3(o,l,a),{type:Ti,payload:{targetIds:o,clientOffset:i||null}}}}function l3(t){Y(Array.isArray(t),"Expected targetIds to be an array.")}function a3(t,e,n){Y(e.isDragging(),"Cannot call hover while not dragging."),Y(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var i=t[r];Y(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");var o=n.getTarget(i);Y(o,"Expected targetIds to be registered.")}}function s3(t,e,n){for(var r=t.length-1;r>=0;r--){var i=t[r],o=e.getTargetType(i);tl(o,n)||t.splice(r,1)}}function c3(t,e,n){t.forEach(function(r){var i=n.getTarget(r);i.hover(e,r)})}function Ws(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Zs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ws(Object(n),!0).forEach(function(r){u3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ws(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function u3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d3(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getMonitor(),i=t.getRegistry();f3(r);var o=v3(r);o.forEach(function(l,a){var s=h3(l,a,i,r),c={type:_i,payload:{dropResult:Zs(Zs({},n),s)}};t.dispatch(c)})}}function f3(t){Y(t.isDragging(),"Cannot call drop while not dragging."),Y(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function h3(t,e,n,r){var i=n.getTarget(t),o=i?i.drop(r,t):void 0;return p3(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function p3(t){Y(typeof t>"u"||Q2(t),"Drop result must either be an object or undefined.")}function v3(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function g3(t){return function(){var n=t.getMonitor(),r=t.getRegistry();m3(n);var i=n.getSourceId();if(i!=null){var o=r.getSource(i,!0);o.endDrag(n,i),r.unpinSource()}return{type:Ii}}}function m3(t){Y(t.isDragging(),"Cannot call endDrag while not dragging.")}function y3(t){return{beginDrag:Q9(t),publishDragSource:i3(t),hover:o3(t),drop:d3(t),endDrag:g3(t)}}function b3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function C3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function S3(t,e,n){return e&&C3(t.prototype,e),t}function kn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w3=function(){function t(e,n){var r=this;b3(this,t),kn(this,"store",void 0),kn(this,"monitor",void 0),kn(this,"backend",void 0),kn(this,"isSetUp",!1),kn(this,"handleRefCountChange",function(){var i=r.store.getState().refCount>0;r.backend&&(i&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!i&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))}),this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}return S3(t,[{key:"receiveBackend",value:function(n){this.backend=n}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var n=this,r=this.store.dispatch;function i(l){return function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var d=l.apply(n,s);typeof d<"u"&&r(d)}}var o=y3(this);return Object.keys(o).reduce(function(l,a){var s=o[a];return l[a]=i(s),l},{})}},{key:"dispatch",value:function(n){this.store.dispatch(n)}}]),t}();function Ie(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Gs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),qs=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ys={INIT:"@@redux/INIT"+qs(),REPLACE:"@@redux/REPLACE"+qs()};function x3(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function E3(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(D3(t))return"date";if(P3(t))return"error";var n=$3(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function $3(t){return typeof t.constructor=="function"?t.constructor.name:null}function P3(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function D3(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Yt(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=E3(t)),e}function ef(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Ie(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(1):"Expected the enhancer to be a function. Instead, received: '"+Yt(n)+"'");return n(ef)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(2):"Expected the root reducer to be a function. Instead, received: '"+Yt(t)+"'");var i=t,o=e,l=[],a=l,s=!1;function c(){a===l&&(a=l.slice())}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function f(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(4):"Expected the listener to be a function. Instead, received: '"+Yt(p)+"'");if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var g=!0;return c(),a.push(p),function(){if(g){if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");g=!1,c();var C=a.indexOf(p);a.splice(C,1),l=null}}}function h(p){if(!x3(p))throw new Error(process.env.NODE_ENV==="production"?Ie(7):"Actions must be plain objects. Instead, the actual type was: '"+Yt(p)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof p.type>"u")throw new Error(process.env.NODE_ENV==="production"?Ie(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(9):"Reducers may not dispatch actions.");try{s=!0,o=i(o,p)}finally{s=!1}for(var g=l=a,m=0;m<g.length;m++){var C=g[m];C()}return p}function v(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(10):"Expected the nextReducer to be a function. Instead, received: '"+Yt(p));i=p,h({type:Ys.REPLACE})}function y(){var p,g=f;return p={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error(process.env.NODE_ENV==="production"?Ie(11):"Expected the observer to be an object. Instead, received: '"+Yt(C)+"'");function S(){C.next&&C.next(d())}S();var P=g(S);return{unsubscribe:P}}},p[Gs]=function(){return this},p}return h({type:Ys.INIT}),r={dispatch:h,subscribe:f,getState:d,replaceReducer:v},r[Gs]=y,r}var T3=function(e,n){return e===n};function _3(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function I3(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:T3;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function Xs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Js(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xs(Object(n),!0).forEach(function(r){O3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function O3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qs={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function k3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qs,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case Yl:case Di:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Ti:return _3(t.clientOffset,n.clientOffset)?t:Js(Js({},t),{},{clientOffset:n.clientOffset});case Ii:case _i:return Qs;default:return t}}var Jl="dnd-core/ADD_SOURCE",Ql="dnd-core/ADD_TARGET",ea="dnd-core/REMOVE_SOURCE",Oi="dnd-core/REMOVE_TARGET";function N3(t){return{type:Jl,payload:{sourceId:t}}}function R3(t){return{type:Ql,payload:{targetId:t}}}function M3(t){return{type:ea,payload:{sourceId:t}}}function L3(t){return{type:Oi,payload:{targetId:t}}}function ec(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Oe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ec(Object(n),!0).forEach(function(r){A3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ec(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function A3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var F3={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function K3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:F3,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case Di:return Oe(Oe({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Xl:return Oe(Oe({},t),{},{isSourcePublic:!0});case Ti:return Oe(Oe({},t),{},{targetIds:n.targetIds});case Oi:return t.targetIds.indexOf(n.targetId)===-1?t:Oe(Oe({},t),{},{targetIds:q9(t.targetIds,n.targetId)});case _i:return Oe(Oe({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Ii:return Oe(Oe({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function j3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Jl:case Ql:return t+1;case ea:case Oi:return t-1;default:return t}}var Qr=[],ta=[];Qr.__IS_NONE__=!0;ta.__IS_ALL__=!0;function H3(t,e){if(t===Qr)return!1;if(t===ta||typeof e>"u")return!0;var n=X9(e,t);return n.length>0}function V3(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ti:break;case Jl:case Ql:case Oi:case ea:return Qr;case Di:case Xl:case Ii:case _i:default:return ta}var e=t.payload,n=e.targetIds,r=n===void 0?[]:n,i=e.prevTargetIds,o=i===void 0?[]:i,l=Y9(r,o),a=l.length>0||!I3(r,o);if(!a)return Qr;var s=o[o.length-1],c=r[r.length-1];return s!==c&&(s&&l.push(s),c&&l.push(c)),l}function z3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t+1}function tc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function nc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tc(Object(n),!0).forEach(function(r){B3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function B3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:V3(t.dirtyHandlerIds,{type:e.type,payload:nc(nc({},e.payload),{},{prevTargetIds:G9(t,"dragOperation.targetIds",[])})}),dragOffset:k3(t.dragOffset,e),refCount:j3(t.refCount,e),dragOperation:K3(t.dragOperation,e),stateId:z3(t.stateId)}}function W3(t,e){return{x:t.x+e.x,y:t.y+e.y}}function tf(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Z3(t){var e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset;return!e||!n||!r?null:tf(W3(e,r),n)}function G3(t){var e=t.clientOffset,n=t.initialClientOffset;return!e||!n?null:tf(e,n)}function q3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Y3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function X3(t,e,n){return e&&Y3(t.prototype,e),t}function rc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var J3=function(){function t(e,n){q3(this,t),rc(this,"store",void 0),rc(this,"registry",void 0),this.store=e,this.registry=n}return X3(t,[{key:"subscribeToStateChange",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=i.handlerIds;Y(typeof n=="function","listener must be a function."),Y(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var l=this.store.getState().stateId,a=function(){var c=r.store.getState(),d=c.stateId;try{var f=d===l||d===l+1&&!H3(c.dirtyHandlerIds,o);f||n()}finally{l=d}};return this.store.subscribe(a)}},{key:"subscribeToOffsetChange",value:function(n){var r=this;Y(typeof n=="function","listener must be a function.");var i=this.store.getState().dragOffset,o=function(){var a=r.store.getState().dragOffset;a!==i&&(i=a,n())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(n){if(!n)return!1;var r=this.registry.getSource(n);return Y(r,"Expected to find a valid source. sourceId=".concat(n)),this.isDragging()?!1:r.canDrag(this,n)}},{key:"canDropOnTarget",value:function(n){if(!n)return!1;var r=this.registry.getTarget(n);if(Y(r,"Expected to find a valid target. targetId=".concat(n)),!this.isDragging()||this.didDrop())return!1;var i=this.registry.getTargetType(n),o=this.getItemType();return tl(i,o)&&r.canDrop(this,n)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(n){if(!n)return!1;var r=this.registry.getSource(n,!0);if(Y(r,"Expected to find a valid source. sourceId=".concat(n)),!this.isDragging()||!this.isSourcePublic())return!1;var i=this.registry.getSourceType(n),o=this.getItemType();return i!==o?!1:r.isDragging(this,n)}},{key:"isOverTarget",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!n)return!1;var i=r.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(n),l=this.getItemType();if(l&&!tl(o,l))return!1;var a=this.getTargetIds();if(!a.length)return!1;var s=a.indexOf(n);return i?s===a.length-1:s>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return Z3(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return G3(this.store.getState().dragOffset)}}]),t}(),Q3=0;function e7(){return Q3++}function Nr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nr=function(n){return typeof n}:Nr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Nr(t)}function t7(t){Y(typeof t.canDrag=="function","Expected canDrag to be a function."),Y(typeof t.beginDrag=="function","Expected beginDrag to be a function."),Y(typeof t.endDrag=="function","Expected endDrag to be a function.")}function n7(t){Y(typeof t.canDrop=="function","Expected canDrop to be a function."),Y(typeof t.hover=="function","Expected hover to be a function."),Y(typeof t.drop=="function","Expected beginDrag to be a function.")}function nl(t,e){if(e&&Array.isArray(t)){t.forEach(function(n){return nl(n,!1)});return}Y(typeof t=="string"||Nr(t)==="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const ic=typeof global<"u"?global:self,nf=ic.MutationObserver||ic.WebKitMutationObserver;function rf(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function r7(t){let e=1;const n=new nf(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const i7=typeof nf=="function"?r7:rf;class o7{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let r=0,i=e.length-this.index;r<i;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=i7(this.flush),this.requestErrorThrow=rf(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class l7{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class a7{create(e){const n=this.freeTasks,r=n.length?n.pop():new l7(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const of=new o7,s7=new a7(of.registerPendingError);function c7(t){of.enqueueTask(s7.create(t))}function u7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d7(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f7(t,e,n){return e&&d7(t.prototype,e),t}function Xt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h7(t,e){return m7(t)||g7(t,e)||v7(t,e)||p7()}function p7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
89
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v7(t,e){if(t){if(typeof t=="string")return oc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oc(t,e)}}function oc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function g7(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function m7(t){if(Array.isArray(t))return t}function y7(t){var e=e7().toString();switch(t){case Ne.SOURCE:return"S".concat(e);case Ne.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function lc(t){switch(t[0]){case"S":return Ne.SOURCE;case"T":return Ne.TARGET;default:Y(!1,"Cannot parse handler ID: ".concat(t))}}function ac(t,e){var n=t.entries(),r=!1;do{var i=n.next(),o=i.done,l=h7(i.value,2),a=l[1];if(a===e)return!0;r=!!o}while(!r);return!1}var b7=function(){function t(e){u7(this,t),Xt(this,"types",new Map),Xt(this,"dragSources",new Map),Xt(this,"dropTargets",new Map),Xt(this,"pinnedSourceId",null),Xt(this,"pinnedSource",null),Xt(this,"store",void 0),this.store=e}return f7(t,[{key:"addSource",value:function(n,r){nl(n),t7(r);var i=this.addHandler(Ne.SOURCE,n,r);return this.store.dispatch(N3(i)),i}},{key:"addTarget",value:function(n,r){nl(n,!0),n7(r);var i=this.addHandler(Ne.TARGET,n,r);return this.store.dispatch(R3(i)),i}},{key:"containsHandler",value:function(n){return ac(this.dragSources,n)||ac(this.dropTargets,n)}},{key:"getSource",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Y(this.isSourceId(n),"Expected a valid source ID.");var i=r&&n===this.pinnedSourceId,o=i?this.pinnedSource:this.dragSources.get(n);return o}},{key:"getTarget",value:function(n){return Y(this.isTargetId(n),"Expected a valid target ID."),this.dropTargets.get(n)}},{key:"getSourceType",value:function(n){return Y(this.isSourceId(n),"Expected a valid source ID."),this.types.get(n)}},{key:"getTargetType",value:function(n){return Y(this.isTargetId(n),"Expected a valid target ID."),this.types.get(n)}},{key:"isSourceId",value:function(n){var r=lc(n);return r===Ne.SOURCE}},{key:"isTargetId",value:function(n){var r=lc(n);return r===Ne.TARGET}},{key:"removeSource",value:function(n){var r=this;Y(this.getSource(n),"Expected an existing source."),this.store.dispatch(M3(n)),c7(function(){r.dragSources.delete(n),r.types.delete(n)})}},{key:"removeTarget",value:function(n){Y(this.getTarget(n),"Expected an existing target."),this.store.dispatch(L3(n)),this.dropTargets.delete(n),this.types.delete(n)}},{key:"pinSource",value:function(n){var r=this.getSource(n);Y(r,"Expected an existing source."),this.pinnedSourceId=n,this.pinnedSource=r}},{key:"unpinSource",value:function(){Y(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(n,r,i){var o=y7(n);return this.types.set(o,r),n===Ne.SOURCE?this.dragSources.set(o,i):n===Ne.TARGET&&this.dropTargets.set(o,i),o}}]),t}();function C7(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=S7(r),o=new J3(i,new b7(i)),l=new w3(i,o),a=t(l,e,n);return l.receiveBackend(a),l}function S7(t){var e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return ef(U3,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var w7=["children"];function x7(t,e){return D7(t)||P7(t,e)||$7(t,e)||E7()}function E7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
90
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $7(t,e){if(t){if(typeof t=="string")return sc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sc(t,e)}}function sc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function P7(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function D7(t){if(Array.isArray(t))return t}function T7(t,e){if(t==null)return{};var n=_7(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function _7(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var cc=0,Rr=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),I7=u.memo(function(e){var n=e.children,r=T7(e,w7),i=O7(r),o=x7(i,2),l=o[0],a=o[1];return u.useEffect(function(){if(a){var s=lf();return++cc,function(){--cc===0&&(s[Rr]=null)}}},[]),b.jsx(J2.Provider,Object.assign({value:l},{children:n}),void 0)});function O7(t){if("manager"in t){var e={dragDropManager:t.manager};return[e,!1]}var n=k7(t.backend,t.context,t.options,t.debugMode),r=!t.context;return[n,r]}function k7(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lf(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=e;return i[Rr]||(i[Rr]={dragDropManager:C7(t,e,n,r)}),i[Rr]}function lf(){return typeof global<"u"?global:window}function N7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R7(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function M7(t,e,n){return e&&R7(t.prototype,e),t}function uc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var uo=!1,fo=!1,L7=function(){function t(e){N7(this,t),uc(this,"internalMonitor",void 0),uc(this,"sourceId",null),this.internalMonitor=e.getMonitor()}return M7(t,[{key:"receiveHandlerId",value:function(n){this.sourceId=n}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Y(!uo,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return uo=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{uo=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Y(!fo,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return fo=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{fo=!1}}},{key:"subscribeToStateChange",value:function(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}},{key:"isDraggingSource",value:function(n){return this.internalMonitor.isDraggingSource(n)}},{key:"isOverTarget",value:function(n,r){return this.internalMonitor.isOverTarget(n,r)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(n){return this.internalMonitor.subscribeToOffsetChange(n)}},{key:"canDragSource",value:function(n){return this.internalMonitor.canDragSource(n)}},{key:"canDropOnTarget",value:function(n){return this.internalMonitor.canDropOnTarget(n)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}();function A7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F7(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function K7(t,e,n){return e&&F7(t.prototype,e),t}function dc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ho=!1,j7=function(){function t(e){A7(this,t),dc(this,"internalMonitor",void 0),dc(this,"targetId",null),this.internalMonitor=e.getMonitor()}return K7(t,[{key:"receiveHandlerId",value:function(n){this.targetId=n}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;Y(!ho,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return ho=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{ho=!1}}},{key:"isOver",value:function(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!1}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}();function H7(t){if(typeof t.type!="string"){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function V7(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!u.isValidElement(e)){var r=e;return t(r,n),r}var i=e;H7(i);var o=n?function(l){return t(l,n)}:t;return z7(i,o)}}function af(t){var e={};return Object.keys(t).forEach(function(n){var r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{var i=V7(r);e[n]=function(){return i}}}),e}function fc(t,e){typeof t=="function"?t(e):t.current=e}function z7(t,e){var n=t.ref;return Y(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?u.cloneElement(t,{ref:function(i){fc(n,i),fc(e,i)}}):u.cloneElement(t,{ref:e})}function Mr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mr=function(n){return typeof n}:Mr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mr(t)}function rl(t){return t!==null&&Mr(t)==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function il(t,e,n,r){var i=void 0;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;var o=Object.keys(t),l=Object.keys(e);if(o.length!==l.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(e),s=0;s<o.length;s++){var c=o[s];if(!a(c))return!1;var d=t[c],f=e[c];if(i=void 0,i===!1||i===void 0&&d!==f)return!1}return!0}function B7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function U7(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function W7(t,e,n){return e&&U7(t.prototype,e),t}function ye(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Z7=function(){function t(e){var n=this;B7(this,t),ye(this,"hooks",af({dragSource:function(i,o){n.clearDragSource(),n.dragSourceOptions=o||null,rl(i)?n.dragSourceRef=i:n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,o){n.clearDragPreview(),n.dragPreviewOptions=o||null,rl(i)?n.dragPreviewRef=i:n.dragPreviewNode=i,n.reconnectDragPreview()}})),ye(this,"handlerId",null),ye(this,"dragSourceRef",null),ye(this,"dragSourceNode",void 0),ye(this,"dragSourceOptionsInternal",null),ye(this,"dragSourceUnsubscribe",void 0),ye(this,"dragPreviewRef",null),ye(this,"dragPreviewNode",void 0),ye(this,"dragPreviewOptionsInternal",null),ye(this,"dragPreviewUnsubscribe",void 0),ye(this,"lastConnectedHandlerId",null),ye(this,"lastConnectedDragSource",null),ye(this,"lastConnectedDragSourceOptions",null),ye(this,"lastConnectedDragPreview",null),ye(this,"lastConnectedDragPreviewOptions",null),ye(this,"backend",void 0),this.backend=e}return W7(t,[{key:"receiveHandlerId",value:function(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(n){this.dragSourceOptionsInternal=n}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(n){this.dragPreviewOptionsInternal=n}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var n=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(r&&this.disconnectDragSource(),!!this.handlerId){if(!n){this.lastConnectedDragSource=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions))}}},{key:"reconnectDragPreview",value:function(){var n=this.dragPreview,r=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!il(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!il(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}]),t}();function G7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function q7(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Y7(t,e,n){return e&&q7(t.prototype,e),t}function We(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var X7=function(){function t(e){var n=this;G7(this,t),We(this,"hooks",af({dropTarget:function(i,o){n.clearDropTarget(),n.dropTargetOptions=o,rl(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}})),We(this,"handlerId",null),We(this,"dropTargetRef",null),We(this,"dropTargetNode",void 0),We(this,"dropTargetOptionsInternal",null),We(this,"unsubscribeDropTarget",void 0),We(this,"lastConnectedHandlerId",null),We(this,"lastConnectedDropTarget",null),We(this,"lastConnectedDropTargetOptions",null),We(this,"backend",void 0),this.backend=e}return Y7(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();var r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(n){this.dropTargetOptionsInternal=n}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!il(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}]),t}();function J7(t,e,n){var r=n.getRegistry(),i=r.addTarget(t,e);return[i,function(){return r.removeTarget(i)}]}function Q7(t,e,n){var r=n.getRegistry(),i=r.addSource(t,e);return[i,function(){return r.removeSource(i)}]}var Mt=typeof window<"u"?u.useLayoutEffect:u.useEffect;function Lr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lr=function(n){return typeof n}:Lr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lr(t)}function em(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tm(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nm(t,e,n){return e&&tm(t.prototype,e),t}function po(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var rm=function(){function t(e,n,r){em(this,t),po(this,"spec",void 0),po(this,"monitor",void 0),po(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}return nm(t,[{key:"beginDrag",value:function(){var n,r=this.spec,i=this.monitor,o=null;return Lr(r.item)==="object"?o=r.item:typeof r.item=="function"?o=r.item(i):o={},(n=o)!==null&&n!==void 0?n:null}},{key:"canDrag",value:function(){var n=this.spec,r=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(r):!0}},{key:"isDragging",value:function(n,r){var i=this.spec,o=this.monitor,l=i.isDragging;return l?l(o):r===n.getSourceId()}},{key:"endDrag",value:function(){var n=this.spec,r=this.monitor,i=this.connector,o=n.end;o&&o(r.getItem(),r),i.reconnect()}}]),t}();function im(t,e,n){var r=u.useMemo(function(){return new rm(t,e,n)},[e,n]);return u.useEffect(function(){r.spec=t},[t]),r}function Ht(){var t=u.useContext(J2),e=t.dragDropManager;return Y(e!=null,"Expected drag drop context"),e}function om(t){return u.useMemo(function(){var e=t.type;return Y(e!=null,"spec.type must be defined"),e},[t])}function lm(t,e){return um(t)||cm(t,e)||sm(t,e)||am()}function am(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
91
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sm(t,e){if(t){if(typeof t=="string")return hc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hc(t,e)}}function hc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function cm(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function um(t){if(Array.isArray(t))return t}function dm(t,e,n){var r=Ht(),i=im(t,e,n),o=om(t);Mt(function(){if(o!=null){var a=Q7(o,i,r),s=lm(a,2),c=s[0],d=s[1];return e.receiveHandlerId(c),n.receiveHandlerId(c),d}},[r,e,n,i,o])}function fm(t){return gm(t)||vm(t)||pm(t)||hm()}function hm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
92
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pm(t,e){if(t){if(typeof t=="string")return ol(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ol(t,e)}}function vm(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gm(t){if(Array.isArray(t))return ol(t)}function ol(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function sf(t,e){var n=fm(e||[]);return e==null&&typeof t!="function"&&n.push(t),u.useMemo(function(){return typeof t=="function"?t():t},n)}function mm(){var t=Ht();return u.useMemo(function(){return new L7(t)},[t])}function ym(t,e){var n=Ht(),r=u.useMemo(function(){return new Z7(n.getBackend())},[n]);return Mt(function(){return r.dragSourceOptions=t||null,r.reconnect(),function(){return r.disconnectDragSource()}},[r,t]),Mt(function(){return r.dragPreviewOptions=e||null,r.reconnect(),function(){return r.disconnectDragPreview()}},[r,e]),r}var vo,pc;function bm(){return pc||(pc=1,vo=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var l=o[i];if(!t(e[l],n[l]))return!1}return!0}return e!==e&&n!==n}),vo}var Cm=bm();const Sm=Hf(Cm);function wm(t,e){return Pm(t)||$m(t,e)||Em(t,e)||xm()}function xm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
93
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Em(t,e){if(t){if(typeof t=="string")return vc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vc(t,e)}}function vc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $m(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function Pm(t){if(Array.isArray(t))return t}function cf(t,e,n){var r=u.useState(function(){return e(t)}),i=wm(r,2),o=i[0],l=i[1],a=u.useCallback(function(){var s=e(t);Sm(o,s)||(l(s),n&&n())},[o,t,n]);return Mt(a),[o,a]}function Dm(t,e){return Om(t)||Im(t,e)||_m(t,e)||Tm()}function Tm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
94
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _m(t,e){if(t){if(typeof t=="string")return gc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gc(t,e)}}function gc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Im(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function Om(t){if(Array.isArray(t))return t}function km(t,e,n){var r=cf(t,e,n),i=Dm(r,2),o=i[0],l=i[1];return Mt(function(){var s=t.getHandlerId();if(s!=null)return t.subscribeToStateChange(l,{handlerIds:[s]})},[t,l]),o}function uf(t,e,n){return km(e,t||function(){return{}},function(){return n.reconnect()})}function Nm(t){return u.useMemo(function(){return t.hooks.dragSource()},[t])}function Rm(t){return u.useMemo(function(){return t.hooks.dragPreview()},[t])}function Mm(t,e){var n=sf(t,e);Y(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var r=mm(),i=ym(n.options,n.previewOptions);return dm(n,r,i),[uf(n.collect,r,i),Nm(i),Rm(i)]}function Lm(t){var e=t.accept;return u.useMemo(function(){return Y(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]},[e])}function Am(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fm(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Km(t,e,n){return e&&Fm(t.prototype,e),t}function mc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var jm=function(){function t(e,n){Am(this,t),mc(this,"spec",void 0),mc(this,"monitor",void 0),this.spec=e,this.monitor=n}return Km(t,[{key:"canDrop",value:function(){var n=this.spec,r=this.monitor;return n.canDrop?n.canDrop(r.getItem(),r):!0}},{key:"hover",value:function(){var n=this.spec,r=this.monitor;n.hover&&n.hover(r.getItem(),r)}},{key:"drop",value:function(){var n=this.spec,r=this.monitor;if(n.drop)return n.drop(r.getItem(),r)}}]),t}();function Hm(t,e){var n=u.useMemo(function(){return new jm(t,e)},[e]);return u.useEffect(function(){n.spec=t},[t]),n}function Vm(t,e){return Wm(t)||Um(t,e)||Bm(t,e)||zm()}function zm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
95
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bm(t,e){if(t){if(typeof t=="string")return yc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yc(t,e)}}function yc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Um(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function Wm(t){if(Array.isArray(t))return t}function Zm(t,e,n){var r=Ht(),i=Hm(t,e),o=Lm(t);Mt(function(){var a=J7(o,i,r),s=Vm(a,2),c=s[0],d=s[1];return e.receiveHandlerId(c),n.receiveHandlerId(c),d},[r,e,i,n,o.map(function(l){return l.toString()}).join("|")])}function Gm(){var t=Ht();return u.useMemo(function(){return new j7(t)},[t])}function qm(t){var e=Ht(),n=u.useMemo(function(){return new X7(e.getBackend())},[e]);return Mt(function(){return n.dropTargetOptions=t||null,n.reconnect(),function(){return n.disconnectDropTarget()}},[t]),n}function Ym(t){return u.useMemo(function(){return t.hooks.dropTarget()},[t])}function df(t,e){var n=sf(t,e),r=Gm(),i=qm(n.options);return Zm(n,r,i),[uf(n.collect,r,i),Ym(i)]}function Xm(t,e){return ty(t)||ey(t,e)||Qm(t,e)||Jm()}function Jm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
96
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qm(t,e){if(t){if(typeof t=="string")return bc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bc(t,e)}}function bc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ey(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function ty(t){if(Array.isArray(t))return t}function ny(t){var e=Ht(),n=e.getMonitor(),r=cf(n,t),i=Xm(r,2),o=i[0],l=i[1];return u.useEffect(function(){return n.subscribeToOffsetChange(l)}),u.useEffect(function(){return n.subscribeToStateChange(l)}),o}function ff(t){var e=null,n=function(){return e==null&&(e=t()),e};return n}function ry(t,e){return t.filter(function(n){return n!==e})}function iy(t,e){var n=new Set,r=function(l){return n.add(l)};t.forEach(r),e.forEach(r);var i=[];return n.forEach(function(o){return i.push(o)}),i}function oy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ly(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ay(t,e,n){return e&&ly(t.prototype,e),t}function Cc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var sy=function(){function t(e){oy(this,t),Cc(this,"entered",[]),Cc(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}return ay(t,[{key:"enter",value:function(n){var r=this,i=this.entered.length,o=function(a){return r.isNodeInDocument(a)&&(!a.contains||a.contains(n))};return this.entered=iy(this.entered.filter(o),[n]),i===0&&this.entered.length>0}},{key:"leave",value:function(n){var r=this.entered.length;return this.entered=ry(this.entered.filter(this.isNodeInDocument),n),r>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),t}(),cy=ff(function(){return/firefox/i.test(navigator.userAgent)}),hf=ff(function(){return!!window.safari});function uy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fy(t,e,n){return e&&dy(t.prototype,e),t}function Nn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Sc=function(){function t(e,n){uy(this,t),Nn(this,"xs",void 0),Nn(this,"ys",void 0),Nn(this,"c1s",void 0),Nn(this,"c2s",void 0),Nn(this,"c3s",void 0);for(var r=e.length,i=[],o=0;o<r;o++)i.push(o);i.sort(function(N,H){return e[N]<e[H]?-1:1});for(var l=[],a=[],s,c,d=0;d<r-1;d++)s=e[d+1]-e[d],c=n[d+1]-n[d],l.push(s),a.push(c/s);for(var f=[a[0]],h=0;h<l.length-1;h++){var v=a[h],y=a[h+1];if(v*y<=0)f.push(0);else{s=l[h];var p=l[h+1],g=s+p;f.push(3*g/((g+p)/v+(g+s)/y))}}f.push(a[a.length-1]);for(var m=[],C=[],S,P=0;P<f.length-1;P++){S=a[P];var $=f[P],x=1/l[P],E=$+f[P+1]-S-S;m.push((S-$-E)*x),C.push(E*x*x)}this.xs=e,this.ys=n,this.c1s=f,this.c2s=m,this.c3s=C}return fy(t,[{key:"interpolate",value:function(n){var r=this.xs,i=this.ys,o=this.c1s,l=this.c2s,a=this.c3s,s=r.length-1;if(n===r[s])return i[s];for(var c=0,d=a.length-1,f;c<=d;){f=Math.floor(.5*(c+d));var h=r[f];if(h<n)c=f+1;else if(h>n)d=f-1;else return i[f]}s=Math.max(0,d);var v=n-r[s],y=v*v;return i[s]+o[s]*v+l[s]*y+a[s]*v*y}}]),t}(),hy=1;function pf(t){var e=t.nodeType===hy?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top,i=n.left;return{x:i,y:r}}function br(t){return{x:t.clientX,y:t.clientY}}function py(t){var e;return t.nodeName==="IMG"&&(cy()||!((e=document.documentElement)!==null&&e!==void 0&&e.contains(t)))}function vy(t,e,n,r){var i=t?e.width:n,o=t?e.height:r;return hf()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function gy(t,e,n,r,i){var o=py(e),l=o?t:e,a=pf(l),s={x:n.x-a.x,y:n.y-a.y},c=t.offsetWidth,d=t.offsetHeight,f=r.anchorX,h=r.anchorY,v=vy(o,e,c,d),y=v.dragPreviewWidth,p=v.dragPreviewHeight,g=function(){var E=new Sc([0,.5,1],[s.y,s.y/d*p,s.y+p-d]),N=E.interpolate(h);return hf()&&o&&(N+=(window.devicePixelRatio-1)*p),N},m=function(){var E=new Sc([0,.5,1],[s.x,s.x/c*y,s.x+y-c]);return E.interpolate(f)},C=i.offsetX,S=i.offsetY,P=C===0||C,$=S===0||S;return{x:P?C:m(),y:$?S:g()}}var vf="__NATIVE_FILE__",gf="__NATIVE_URL__",mf="__NATIVE_TEXT__",yf="__NATIVE_HTML__";const wc=Object.freeze(Object.defineProperty({__proto__:null,FILE:vf,HTML:yf,TEXT:mf,URL:gf},Symbol.toStringTag,{value:"Module"}));function go(t,e,n){var r=e.reduce(function(i,o){return i||t.getData(o)},"");return r??n}var Jt;function Cr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ll=(Jt={},Cr(Jt,vf,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),Cr(Jt,yf,{exposeProperties:{html:function(e,n){return go(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),Cr(Jt,gf,{exposeProperties:{urls:function(e,n){return go(e,n,"").split(`
|
|
97
|
+
`)},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),Cr(Jt,mf,{exposeProperties:{text:function(e,n){return go(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),Jt);function my(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function by(t,e,n){return e&&yy(t.prototype,e),t}function xc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Cy=function(){function t(e){my(this,t),xc(this,"item",void 0),xc(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return by(t,[{key:"initializeExposedProperties",value:function(){var n=this;Object.keys(this.config.exposeProperties).forEach(function(r){Object.defineProperty(n.item,r,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(r,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(n){var r=this;if(n){var i={};Object.keys(this.config.exposeProperties).forEach(function(o){i[o]={value:r.config.exposeProperties[o](n,r.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,i)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(n,r){return r===n.getSourceId()}},{key:"endDrag",value:function(){}}]),t}();function Sy(t,e){var n=new Cy(ll[t]);return n.loadDataTransfer(e),n}function mo(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(ll).filter(function(n){var r=ll[n].matchesTypes;return r.some(function(i){return e.indexOf(i)>-1})})[0]||null}function wy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ey(t,e,n){return e&&xy(t.prototype,e),t}function yo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $y=function(){function t(e,n){wy(this,t),yo(this,"ownerDocument",null),yo(this,"globalContext",void 0),yo(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}return Ey(t,[{key:"window",get:function(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}},{key:"document",get:function(){var n;return(n=this.globalContext)!==null&&n!==void 0&&n.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var n;return((n=this.optionsArgs)===null||n===void 0?void 0:n.rootElement)||this.window}}]),t}();function Ec(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $c(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ec(Object(n),!0).forEach(function(r){Q(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Py(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ty(t,e,n){return e&&Dy(t.prototype,e),t}function Q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _y=function(){function t(e,n,r){var i=this;Py(this,t),Q(this,"options",void 0),Q(this,"actions",void 0),Q(this,"monitor",void 0),Q(this,"registry",void 0),Q(this,"enterLeaveCounter",void 0),Q(this,"sourcePreviewNodes",new Map),Q(this,"sourcePreviewNodeOptions",new Map),Q(this,"sourceNodes",new Map),Q(this,"sourceNodeOptions",new Map),Q(this,"dragStartSourceIds",null),Q(this,"dropTargetIds",[]),Q(this,"dragEnterTargetIds",[]),Q(this,"currentNativeSource",null),Q(this,"currentNativeHandle",null),Q(this,"currentDragSourceNode",null),Q(this,"altKeyPressed",!1),Q(this,"mouseMoveTimeoutTimer",null),Q(this,"asyncEndDragFrameId",null),Q(this,"dragOverTargetIds",null),Q(this,"lastClientOffset",null),Q(this,"hoverRafId",null),Q(this,"getSourceClientOffset",function(o){var l=i.sourceNodes.get(o);return l&&pf(l)||null}),Q(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),Q(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),Q(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),Q(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),Q(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var l=i.dragStartSourceIds;i.dragStartSourceIds=null;var a=br(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(l||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:a});var s=o.dataTransfer,c=mo(s);if(i.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){var d=i.monitor.getSourceId(),f=i.sourceNodes.get(d),h=i.sourcePreviewNodes.get(d)||f;if(h){var v=i.getCurrentSourcePreviewNodeOptions(),y=v.anchorX,p=v.anchorY,g=v.offsetX,m=v.offsetY,C={anchorX:y,anchorY:p},S={offsetX:g,offsetY:m},P=gy(f,h,a,C,S);s.setDragImage(h,P.x,P.y)}}try{s==null||s.setData("application/json",{})}catch{}i.setCurrentDragSourceNode(o.target);var $=i.getCurrentSourcePreviewNodeOptions(),x=$.captureDraggingState;x?i.actions.publishDragSource():setTimeout(function(){return i.actions.publishDragSource()},0)}else if(c)i.beginDragNativeItem(c);else{if(s&&!s.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}}}),Q(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),Q(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var l=i.enterLeaveCounter.enter(o.target);if(!(!l||i.monitor.isDragging())){var a=o.dataTransfer,s=mo(a);s&&i.beginDragNativeItem(s,a)}}),Q(this,"handleTopDragEnter",function(o){var l=i.dragEnterTargetIds;if(i.dragEnterTargetIds=[],!!i.monitor.isDragging()){i.altKeyPressed=o.altKey,l.length>0&&i.actions.hover(l,{clientOffset:br(o)});var a=l.some(function(s){return i.monitor.canDropOnTarget(s)});a&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),Q(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),Q(this,"handleTopDragOver",function(o){var l=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}i.altKeyPressed=o.altKey,i.lastClientOffset=br(o),i.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(i.hoverRafId=requestAnimationFrame(function(){i.monitor.isDragging()&&i.actions.hover(l||[],{clientOffset:i.lastClientOffset}),i.hoverRafId=null}));var a=(l||[]).some(function(s){return i.monitor.canDropOnTarget(s)});a?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))}),Q(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var l=i.enterLeaveCounter.leave(o.target);l&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),Q(this,"handleTopDropCapture",function(o){if(i.dropTargetIds=[],i.isDraggingNativeItem()){var l;o.preventDefault(),(l=i.currentNativeSource)===null||l===void 0||l.loadDataTransfer(o.dataTransfer)}else mo(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),Q(this,"handleTopDrop",function(o){var l=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(l,{clientOffset:br(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),Q(this,"handleSelectStart",function(o){var l=o.target;typeof l.dragDrop=="function"&&(l.tagName==="INPUT"||l.tagName==="SELECT"||l.tagName==="TEXTAREA"||l.isContentEditable||(o.preventDefault(),l.dragDrop()))}),this.options=new $y(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new sy(this.isNodeInDocument)}return Ty(t,[{key:"profile",value:function(){var n,r;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((n=this.dragStartSourceIds)===null||n===void 0?void 0:n.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var n=this.rootElement;if(n!==void 0){if(n.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");n.__isReactDndBackendSetUp=!0,this.addEventListeners(n)}}},{key:"teardown",value:function(){var n=this.rootElement;if(n!==void 0&&(n.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}},{key:"connectDragPreview",value:function(n,r,i){var o=this;return this.sourcePreviewNodeOptions.set(n,i),this.sourcePreviewNodes.set(n,r),function(){o.sourcePreviewNodes.delete(n),o.sourcePreviewNodeOptions.delete(n)}}},{key:"connectDragSource",value:function(n,r,i){var o=this;this.sourceNodes.set(n,r),this.sourceNodeOptions.set(n,i);var l=function(c){return o.handleDragStart(c,n)},a=function(c){return o.handleSelectStart(c)};return r.setAttribute("draggable","true"),r.addEventListener("dragstart",l),r.addEventListener("selectstart",a),function(){o.sourceNodes.delete(n),o.sourceNodeOptions.delete(n),r.removeEventListener("dragstart",l),r.removeEventListener("selectstart",a),r.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(n,r){var i=this,o=function(c){return i.handleDragEnter(c,n)},l=function(c){return i.handleDragOver(c,n)},a=function(c){return i.handleDrop(c,n)};return r.addEventListener("dragenter",o),r.addEventListener("dragover",l),r.addEventListener("drop",a),function(){r.removeEventListener("dragenter",o),r.removeEventListener("dragover",l),r.removeEventListener("drop",a)}}},{key:"addEventListeners",value:function(n){n.addEventListener&&(n.addEventListener("dragstart",this.handleTopDragStart),n.addEventListener("dragstart",this.handleTopDragStartCapture,!0),n.addEventListener("dragend",this.handleTopDragEndCapture,!0),n.addEventListener("dragenter",this.handleTopDragEnter),n.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.addEventListener("dragover",this.handleTopDragOver),n.addEventListener("dragover",this.handleTopDragOverCapture,!0),n.addEventListener("drop",this.handleTopDrop),n.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(n){n.removeEventListener&&(n.removeEventListener("dragstart",this.handleTopDragStart),n.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),n.removeEventListener("dragend",this.handleTopDragEndCapture,!0),n.removeEventListener("dragenter",this.handleTopDragEnter),n.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.removeEventListener("dragover",this.handleTopDragOver),n.removeEventListener("dragover",this.handleTopDragOverCapture,!0),n.removeEventListener("drop",this.handleTopDrop),n.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var n=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(n);return $c({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var n=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(n);return $c({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}},{key:"isDraggingNativeItem",value:function(){var n=this.monitor.getItemType();return Object.keys(wc).some(function(r){return wc[r]===n})}},{key:"beginDragNativeItem",value:function(n,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=Sy(n,r),this.currentNativeHandle=this.registry.addSource(n,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(n){var r=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=n;var i=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){var o;return(o=r.rootElement)===null||o===void 0?void 0:o.addEventListener("mousemove",r.endDragIfSourceWasRemovedFromDOM,!0)},i)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var n;(n=this.window)===null||n===void 0||n.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(n,r){n.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}},{key:"handleDragEnter",value:function(n,r){this.dragEnterTargetIds.unshift(r)}},{key:"handleDragOver",value:function(n,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}},{key:"handleDrop",value:function(n,r){this.dropTargetIds.unshift(r)}}]),t}(),Sr;function Iy(){return Sr||(Sr=new Image,Sr.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Sr}var Oy=function(e,n,r){return new _y(e,n,r)};function ky(t){const e=_e(),n=e.selectedIds,[r,i,o]=Mm(()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const l=e.isSelected(t.id)?Array.from(n):[t.id];return e.dispatch(bn.dragStart(t.id,l)),{id:t.id,dragIds:l}},end:()=>{e.hideCursor(),e.dispatch(bn.dragEnd())}}),[n,t]);return u.useEffect(()=>{o(Iy())},[o]),i}function Ny(t,e){const n=t.getBoundingClientRect(),r=e.x-Math.round(n.x),i=e.y-Math.round(n.y),o=n.height,l=i<o/2,a=!l,s=o/4,c=i>s&&i<o-s;return{x:r,inTopHalf:l,inBottomHalf:a,inMiddle:c,atTop:!c&&l,atBottom:!c&&a}}function Ry(t,e,n,r){return t?t.isInternal?r.atTop?[e,t]:r.inMiddle?[t,t]:[t,n]:r.inTopHalf?[e,t]:[t,n]:[e,null]}function wr(t,e){return{parentId:t||null,index:e}}function Qt(t,e){return{type:"line",index:t,level:e}}function My(t){return{type:"highlight",id:t}}function bo(t,e){var n;let r=t;for(;r.parent&&r.level>e;)r=r.parent;const i=((n=r.parent)===null||n===void 0?void 0:n.id)||null,o=V2(r)+1;return{parentId:i,index:o}}function bf(t){var e;const n=Ny(t.element,t.offset),r=t.indent,i=Math.round(Math.max(0,n.x-r)/r),{node:o,nextNode:l,prevNode:a}=t,[s,c]=Ry(o,a,l,n);if(o&&o.isInternal&&n.inMiddle)return{drop:wr(o.id,null),cursor:My(o.id)};if(!s)return{drop:wr((e=c==null?void 0:c.parent)===null||e===void 0?void 0:e.id,0),cursor:Qt(0,0)};if(F2(s)){const d=_r(i,(c==null?void 0:c.level)||0,s.level);return{drop:bo(s,d),cursor:Qt(s.rowIndex+1,d)}}if(K2(s)){const d=_r(i,(c==null?void 0:c.level)||0,s.level);return{drop:bo(s,d),cursor:Qt(s.rowIndex+1,d)}}if(j2(s)){const d=_r(i,0,s.level+1);return d>s.level?{drop:wr(s.id,0),cursor:Qt(s.rowIndex+1,d)}:{drop:bo(s,d),cursor:Qt(s.rowIndex+1,d)}}return{drop:wr(s==null?void 0:s.id,0),cursor:Qt(s.rowIndex+1,s.level+1)}}function Ly(t,e){const n=_e(),[r,i]=df(()=>({accept:"NODE",canDrop:()=>n.canDrop(),hover:(o,l)=>{const a=l.getClientOffset();if(!t.current||!a)return;const{cursor:s,drop:c}=bf({element:t.current,offset:a,indent:n.indent,node:e,prevNode:e.prev,nextNode:e.next});c&&n.dispatch(bn.hovering(c.parentId,c.index)),l.canDrop()?s&&n.showCursor(s):n.hideCursor()},drop:(o,l)=>{if(!l.canDrop())return null;let{parentId:a,index:s,dragIds:c}=n.state.dnd;Z2(n.props.onMove,{dragIds:c,parentId:a===Jn?null:a,index:s===null?0:s,dragNodes:n.dragNodes,parentNode:n.get(a)}),n.open(a)}}),[e,t.current,n.props]);return i}function Ay(t){const e=_e(),n=e.at(t);if(!n)throw new Error(`Could not find node for index: ${t}`);return u.useMemo(()=>{const r=n.clone();return e.visibleNodes[t]=r,r},[...Object.values(n.state),n])}const Fy=u.memo(function({index:e,style:n}){A2(),i9();const r=_e(),i=Ay(e),o=u.useRef(null),l=ky(i),a=Ly(o,i),s=u.useCallback(p=>{o.current=p,a(p)},[a]),c=r.indent*i.level,d=u.useMemo(()=>({paddingLeft:c}),[c]),f=u.useMemo(()=>{var p,g;return Object.assign(Object.assign({},n),{top:parseFloat(n.top)+((g=(p=r.props.padding)!==null&&p!==void 0?p:r.props.paddingTop)!==null&&g!==void 0?g:0)})},[n,r.props.padding,r.props.paddingTop]),h={role:"treeitem","aria-level":i.level+1,"aria-selected":i.isSelected,"aria-expanded":i.isOpen,style:f,tabIndex:-1,className:r.props.rowClassName};u.useEffect(()=>{var p;!i.isEditing&&i.isFocused&&((p=o.current)===null||p===void 0||p.focus({preventScroll:!0}))},[i.isEditing,i.isFocused,o.current]);const v=r.renderNode,y=r.renderRow;return b.jsx(y,{node:i,innerRef:s,attrs:h,children:b.jsx(v,{node:i,tree:r,style:d,dragHandle:l})})});let Co="",Pc=null;function Cf(){A2();const t=_e();return b.jsx("div",{role:"tree",style:{height:t.height,width:t.width,minHeight:0,minWidth:0},onContextMenu:t.props.onContextMenu,onClick:t.props.onClick,tabIndex:0,onFocus:e=>{e.currentTarget.contains(e.relatedTarget)||t.onFocus()},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.onBlur()},onKeyDown:e=>{var n;if(t.isEditing)return;if(e.key==="Backspace"){if(!t.props.onDelete)return;const i=Array.from(t.selectedIds);if(i.length>1){let o=t.mostRecentNode;for(;o&&o.isSelected;)o=o.nextSibling;o||(o=t.lastNode),t.focus(o,{scroll:!1}),t.delete(Array.from(i))}else{const o=t.focusedNode;if(o){const l=o.nextSibling,a=o.parent;t.focus(l||a,{scroll:!1}),t.delete(o)}}return}if(e.key==="Tab"&&!e.shiftKey){e.preventDefault(),z2(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),B2(e.currentTarget);return}if(e.key==="ArrowDown"){e.preventDefault();const i=t.nextNode;if(e.metaKey){t.select(t.focusedNode),t.activate(t.focusedNode);return}else if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.firstNode);return}}if(e.key==="ArrowUp"){e.preventDefault();const i=t.prevNode;if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.lastNode);return}}if(e.key==="ArrowRight"){const i=t.focusedNode;if(!i)return;i.isInternal&&i.isOpen?t.focus(t.nextNode):i.isInternal&&t.open(i.id);return}if(e.key==="ArrowLeft"){const i=t.focusedNode;if(!i||i.isRoot)return;i.isInternal&&i.isOpen?t.close(i.id):!((n=i.parent)===null||n===void 0)&&n.isRoot||t.focus(i.parent);return}if(e.key==="a"&&e.metaKey&&!t.props.disableMultiSelection){e.preventDefault(),t.selectAll();return}if(e.key==="a"&&!e.metaKey&&t.props.onCreate){t.createLeaf();return}if(e.key==="A"&&!e.metaKey){if(!t.props.onCreate)return;t.createInternal();return}if(e.key==="Home"){e.preventDefault(),t.focus(t.firstNode);return}if(e.key==="End"){e.preventDefault(),t.focus(t.lastNode);return}if(e.key==="Enter"){const i=t.focusedNode;if(!i||!i.isEditable||!t.props.onRename)return;setTimeout(()=>{i&&t.edit(i)});return}if(e.key===" "){e.preventDefault();const i=t.focusedNode;if(!i)return;i.isLeaf?(i.select(),i.activate()):i.toggle();return}if(e.key==="*"){const i=t.focusedNode;if(!i)return;t.openSiblings(i);return}if(e.key==="PageUp"){e.preventDefault(),t.pageUp();return}e.key==="PageDown"&&(e.preventDefault(),t.pageDown()),clearTimeout(Pc),Co+=e.key,Pc=setTimeout(()=>{Co=""},600);const r=t.visibleNodes.find(i=>{const o=i.data.name;return typeof o=="string"?o.toLowerCase().startsWith(Co):!1});r&&t.focus(r.id)},children:b.jsx(H9,{className:t.props.className,outerRef:t.listEl,itemCount:t.visibleNodes.length,height:t.height,width:t.width,itemSize:t.rowHeight,overscanCount:t.overscanCount,itemKey:e=>{var n;return((n=t.visibleNodes[e])===null||n===void 0?void 0:n.id)||e},outerElementType:B9,innerElementType:Z9,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:Fy})})}function Dc(t){return t.isFiltered?jy(t.root,t.isMatch.bind(t)):Ky(t.root)}function Ky(t){const e=[];function n(r){var i;r.level>=0&&e.push(r),r.isOpen&&((i=r.children)===null||i===void 0||i.forEach(n))}return n(t),e.forEach(Sf),e}function jy(t,e){const n={},r=[];function i(l){if(!l.isRoot&&e(l)){n[l.id]=!0;let s=l.parent;for(;s;)n[s.id]=!0,s=s.parent}if(l.children)for(let s of l.children)i(s)}function o(l){var a;l.level>=0&&n[l.id]&&r.push(l),l.isOpen&&((a=l.children)===null||a===void 0||a.forEach(o))}return i(t),o(t),r.forEach(Sf),r}function Sf(t,e){t.rowIndex=e}const Tc=t=>t.reduce((e,n,r)=>(e[n.id]=r,e),{});var So=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function a(d){try{c(r.next(d))}catch(f){l(f)}}function s(d){try{c(r.throw(d))}catch(f){l(f)}}function c(d){d.done?o(d.value):i(d.value).then(a,s)}c((r=r.apply(t,e||[])).next())})};const{safeRun:ge,identify:Ye,identifyNull:Ke}=u9;class hn{constructor(e,n,r,i){this.store=e,this.props=n,this.list=r,this.listEl=i,this.visibleStartIndex=0,this.visibleStopIndex=0,this.root=As(this),this.visibleNodes=Dc(this),this.idToIndex=Tc(this.visibleNodes)}update(e){this.props=e,this.root=As(this),this.visibleNodes=Dc(this),this.idToIndex=Tc(this.visibleNodes)}dispatch(e){return this.store.dispatch(e)}get state(){return this.store.getState()}get openState(){return this.state.nodes.open.unfiltered}get width(){var e;return(e=this.props.width)!==null&&e!==void 0?e:300}get height(){var e;return(e=this.props.height)!==null&&e!==void 0?e:500}get indent(){var e;return(e=this.props.indent)!==null&&e!==void 0?e:24}get rowHeight(){var e;return(e=this.props.rowHeight)!==null&&e!==void 0?e:24}get overscanCount(){var e;return(e=this.props.overscanCount)!==null&&e!==void 0?e:1}get searchTerm(){return(this.props.searchTerm||"").trim()}get matchFn(){var e;const n=(e=this.props.searchMatch)!==null&&e!==void 0?e:(r,i)=>JSON.stringify(Object.values(r.data)).toLocaleLowerCase().includes(i.toLocaleLowerCase());return r=>n(r,this.searchTerm)}accessChildren(e){var n;const r=this.props.childrenAccessor||"children";return(n=Kn(e,r))!==null&&n!==void 0?n:null}accessId(e){const n=this.props.idAccessor||"id",r=Kn(e,n);if(!r)throw new Error("Data must contain an 'id' property or props.idAccessor must return a string");return r}get firstNode(){var e;return(e=this.visibleNodes[0])!==null&&e!==void 0?e:null}get lastNode(){var e;return(e=this.visibleNodes[this.visibleNodes.length-1])!==null&&e!==void 0?e:null}get focusedNode(){var e;return(e=this.get(this.state.nodes.focus.id))!==null&&e!==void 0?e:null}get mostRecentNode(){var e;return(e=this.get(this.state.nodes.selection.mostRecent))!==null&&e!==void 0?e:null}get nextNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e+1)}get prevNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e-1)}get(e){return e&&e in this.idToIndex&&this.visibleNodes[this.idToIndex[e]]||null}at(e){return this.visibleNodes[e]||null}nodesBetween(e,n){var r;if(e===null||n===null)return[];const i=(r=this.indexOf(e))!==null&&r!==void 0?r:0,o=this.indexOf(n);if(o===null)return[];const l=Math.min(i,o),a=Math.max(i,o);return this.visibleNodes.slice(l,a+1)}indexOf(e){const n=W2(e);return n?this.idToIndex[n]:null}get editingId(){return this.state.nodes.edit.id}createInternal(){return this.create({type:"internal"})}createLeaf(){return this.create({type:"leaf"})}create(){return So(this,arguments,void 0,function*(e={}){var n,r;const i=e.parentId===void 0?Y2(this):e.parentId,o=(n=e.index)!==null&&n!==void 0?n:q2(this),l=(r=e.type)!==null&&r!==void 0?r:"leaf",a=yield ge(this.props.onCreate,{type:l,parentId:i,index:o,parentNode:this.get(i)});a&&(this.focus(a),setTimeout(()=>{this.edit(a).then(()=>{this.select(a),this.activate(a)})}))})}delete(e){return So(this,void 0,void 0,function*(){if(!e)return;const r=(Array.isArray(e)?e:[e]).map(Ye),i=r.map(o=>this.get(o)).filter(o=>!!o);yield ge(this.props.onDelete,{nodes:i,ids:r})})}edit(e){const n=Ye(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(n),this.dispatch(ao(n)),new Promise(r=>{hn.editPromise=r})}submit(e,n){return So(this,void 0,void 0,function*(){if(!e)return;const r=Ye(e);yield ge(this.props.onRename,{id:r,name:n,node:this.get(r)}),this.dispatch(ao(null)),this.resolveEdit({cancelled:!1,value:n}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(ao(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const n=this.get(Ke(e));n&&ge(this.props.onActivate,n)}resolveEdit(e){const n=hn.editPromise;n&&n(e),hn.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let e=[];for(let n of Array.from(this.selectedIds)){const r=this.get(n);r&&e.push(r)}return e}focus(e,n={}){e&&(this.props.selectionFollowsFocus?this.select(e):(this.dispatch(Gt(Ye(e))),n.scroll!==!1&&this.scrollTo(e),this.focusedNode&&ge(this.props.onFocus,this.focusedNode)))}pageUp(){var e,n;const r=this.visibleStartIndex,o=this.visibleStopIndex-r;let l=(n=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&n!==void 0?n:0;l>r?l=r:l=Math.max(r-o,0),this.focus(this.at(l))}pageDown(){var e,n;const r=this.visibleStartIndex,i=this.visibleStopIndex,o=i-r;let l=(n=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&n!==void 0?n:0;l<i?l=i:l=Math.min(l+o,this.visibleNodes.length-1),this.focus(this.at(l))}select(e,n={}){if(!e)return;const r=n.focus!==!1,i=Ye(e);r&&this.dispatch(Gt(i)),this.dispatch(Fe.only(i)),this.dispatch(Fe.anchor(i)),this.dispatch(Fe.mostRecent(i)),this.scrollTo(i,n.align),this.focusedNode&&r&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes)}deselect(e){if(!e)return;const n=Ye(e);this.dispatch(Fe.remove(n)),ge(this.props.onSelect,this.selectedNodes)}selectMulti(e){const n=this.get(Ke(e));n&&(this.dispatch(Gt(n.id)),this.dispatch(Fe.add(n.id)),this.dispatch(Fe.anchor(n.id)),this.dispatch(Fe.mostRecent(n.id)),this.scrollTo(n),this.focusedNode&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes))}selectContiguous(e){if(!e)return;const n=Ye(e),{anchor:r,mostRecent:i}=this.state.nodes.selection;this.dispatch(Gt(n)),this.dispatch(Fe.remove(this.nodesBetween(r,i))),this.dispatch(Fe.add(this.nodesBetween(r,Ke(n)))),this.dispatch(Fe.mostRecent(n)),this.scrollTo(n),this.focusedNode&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),ge(this.props.onSelect,this.selectedNodes)}selectAll(){var e;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(Gt((e=this.lastNode)===null||e===void 0?void 0:e.id)),this.focusedNode&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes)}setSelection(e){var n;const r=new Set((n=e.ids)===null||n===void 0?void 0:n.map(Ye)),i=Ke(e.anchor),o=Ke(e.mostRecent);this.dispatch(Fe.set({ids:r,anchor:i,mostRecent:o})),ge(this.props.onSelect,this.selectedNodes)}get cursorParentId(){const{cursor:e}=this.state.dnd;switch(e.type){case"highlight":return e.id;default:return null}}get cursorOverFolder(){return this.state.dnd.cursor.type==="highlight"}get dragNodes(){return this.state.dnd.dragIds.map(e=>this.get(e)).filter(e=>!!e)}get dragNode(){return this.get(this.state.nodes.drag.id)}get dragDestinationParent(){return this.get(this.state.nodes.drag.destinationParentId)}get dragDestinationIndex(){return this.state.nodes.drag.destinationIndex}canDrop(){var e;if(this.isFiltered)return!1;const n=(e=this.get(this.state.dnd.parentId))!==null&&e!==void 0?e:this.root,r=this.dragNodes,i=this.props.disableDrop;for(const o of r)if(!o||!n||o.isInternal&&H2(n,o))return!1;return typeof i=="function"?!i({parentNode:n,dragNodes:this.dragNodes,index:this.state.dnd.index||0}):typeof i=="string"?!n.data[i]:typeof i=="boolean"?!i:!0}hideCursor(){this.dispatch(bn.cursor({type:"none"}))}showCursor(e){this.dispatch(bn.cursor(e))}open(e){const n=Ke(e);n&&(this.isOpen(n)||(this.dispatch(Jo.open(n,this.isFiltered)),ge(this.props.onToggle,n)))}close(e){const n=Ke(e);n&&this.isOpen(n)&&(this.dispatch(Jo.close(n,this.isFiltered)),ge(this.props.onToggle,n))}toggle(e){const n=Ke(e);if(n)return this.isOpen(n)?this.close(n):this.open(n)}openParents(e){const n=Ke(e);if(!n)return;const r=ql(this.root,n);let i=r==null?void 0:r.parent;for(;i;)this.open(i.id),i=i.parent}openSiblings(e){const n=e.parent;if(!n)this.toggle(e.id);else if(n.children){const r=e.isOpen;for(let i of n.children)i.isInternal&&(r?this.close(i.id):this.open(i.id));this.scrollTo(this.focusedNode)}}openAll(){Xr(this.root,e=>{e.isInternal&&e.open()})}closeAll(){Xr(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,n="smart"){if(!e)return;const r=Ye(e);return this.openParents(r),G2(()=>r in this.idToIndex).then(()=>{var i;const o=this.idToIndex[r];o!==void 0&&((i=this.list.current)===null||i===void 0||i.scrollToItem(o,n))}).catch(()=>{})}get isEditing(){return this.state.nodes.edit.id!==null}get isFiltered(){var e;return!!(!((e=this.props.searchTerm)===null||e===void 0)&&e.trim())}get hasFocus(){return this.state.nodes.focus.treeFocused}get hasNoSelection(){return this.state.nodes.selection.ids.size===0}get hasOneSelection(){return this.state.nodes.selection.ids.size===1}get hasMultipleSelections(){return this.state.nodes.selection.ids.size>1}isSelected(e){return e?this.state.nodes.selection.ids.has(e):!1}isOpen(e){var n,r,i;if(!e)return!1;if(e===Jn)return!0;const o=(n=this.props.openByDefault)!==null&&n!==void 0?n:!0;return this.isFiltered?(r=this.state.nodes.open.filtered[e])!==null&&r!==void 0?r:!0:(i=this.state.nodes.open.unfiltered[e])!==null&&i!==void 0?i:o}isEditable(e){const n=this.props.disableEdit||(()=>!1);return!Kn(e,n)}isDraggable(e){const n=this.props.disableDrag||(()=>!1);return!Kn(e,n)}isDragging(e){const n=Ke(e);return n?this.state.nodes.drag.id===n:!1}isFocused(e){return this.hasFocus&&this.state.nodes.focus.id===e}isMatch(e){return this.matchFn(e)}willReceiveDrop(e){const n=Ke(e);if(!n)return!1;const{destinationParentId:r,destinationIndex:i}=this.state.nodes.drag;return n===r&&i===null}onFocus(){const e=this.focusedNode||this.firstNode;e&&this.dispatch(Gt(e.id))}onBlur(){this.dispatch(C9())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||Cf}get renderRow(){return this.props.renderRow||v9}get renderNode(){return this.props.children||g9}get renderDragPreview(){return this.props.renderDragPreview||X2}get renderCursor(){return this.props.renderCursor||p9}}function be(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Hy=typeof Symbol=="function"&&Symbol.observable||"@@observable",_c=Hy,wo=()=>Math.random().toString(36).substring(7).split("").join("."),Vy={INIT:`@@redux/INIT${wo()}`,REPLACE:`@@redux/REPLACE${wo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${wo()}`},Pt=Vy;function wf(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function zy(t){if(t===void 0)return"undefined";if(t===null)return"null";const e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(Wy(t))return"date";if(Uy(t))return"error";const n=By(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"")}function By(t){return typeof t.constructor=="function"?t.constructor.name:null}function Uy(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Wy(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function lt(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=zy(t)),e}function xf(t,e,n){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?be(2):`Expected the root reducer to be a function. Instead, received: '${lt(t)}'`);if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?be(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?be(1):`Expected the enhancer to be a function. Instead, received: '${lt(n)}'`);return n(xf)(t,e)}let r=t,i=e,o=new Map,l=o,a=0,s=!1;function c(){l===o&&(l=new Map,o.forEach((g,m)=>{l.set(m,g)}))}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?be(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?be(4):`Expected the listener to be a function. Instead, received: '${lt(g)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?be(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let m=!0;c();const C=a++;return l.set(C,g),function(){if(m){if(s)throw new Error(process.env.NODE_ENV==="production"?be(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");m=!1,c(),l.delete(C),o=null}}}function h(g){if(!wf(g))throw new Error(process.env.NODE_ENV==="production"?be(7):`Actions must be plain objects. Instead, the actual type was: '${lt(g)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof g.type>"u")throw new Error(process.env.NODE_ENV==="production"?be(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof g.type!="string")throw new Error(process.env.NODE_ENV==="production"?be(17):`Action "type" property must be a string. Instead, the actual type was: '${lt(g.type)}'. Value was: '${g.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?be(9):"Reducers may not dispatch actions.");try{s=!0,i=r(i,g)}finally{s=!1}return(o=l).forEach(C=>{C()}),g}function v(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?be(10):`Expected the nextReducer to be a function. Instead, received: '${lt(g)}`);r=g,h({type:Pt.REPLACE})}function y(){const g=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(process.env.NODE_ENV==="production"?be(11):`Expected the observer to be an object. Instead, received: '${lt(m)}'`);function C(){const P=m;P.next&&P.next(d())}return C(),{unsubscribe:g(C)}},[_c](){return this}}}return h({type:Pt.INIT}),{dispatch:h,subscribe:f,getState:d,replaceReducer:v,[_c]:y}}function Ic(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function Zy(t,e,n,r){const i=Object.keys(e),o=n&&n.type===Pt.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!wf(t))return`The ${o} has unexpected type of "${lt(t)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const l=Object.keys(t).filter(a=>!e.hasOwnProperty(a)&&!r[a]);if(l.forEach(a=>{r[a]=!0}),!(n&&n.type===Pt.REPLACE)&&l.length>0)return`Unexpected ${l.length>1?"keys":"key"} "${l.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function Gy(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:Pt.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?be(12):`The slice reducer for key "${e}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:Pt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?be(13):`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${Pt.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Oc(t){const e=Object.keys(t),n={};for(let l=0;l<e.length;l++){const a=e[l];process.env.NODE_ENV!=="production"&&typeof t[a]>"u"&&Ic(`No reducer provided for key "${a}"`),typeof t[a]=="function"&&(n[a]=t[a])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let o;try{Gy(n)}catch(l){o=l}return function(a={},s){if(o)throw o;if(process.env.NODE_ENV!=="production"){const f=Zy(a,n,s,i);f&&Ic(f)}let c=!1;const d={};for(let f=0;f<r.length;f++){const h=r[f],v=n[h],y=a[h],p=v(y,s);if(typeof p>"u"){const g=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?be(14):`When called with an action of type ${g?`"${String(g)}"`:"(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}d[h]=p,c=c||p!==y}return c=c||r.length!==Object.keys(a).length,c?d:a}}function qy(t=yn().nodes.drag,e){switch(e.type){case"DND_DRAG_START":return Object.assign(Object.assign({},t),{id:e.id,selectedIds:e.dragIds});case"DND_DRAG_END":return Object.assign(Object.assign({},t),{id:null,destinationParentId:null,destinationIndex:null,selectedIds:[]});case"DND_HOVERING":return e.parentId!==t.destinationParentId||e.index!=t.destinationIndex?Object.assign(Object.assign({},t),{destinationParentId:e.parentId,destinationIndex:e.index}):t;default:return t}}const Yy=Oc({nodes:Oc({focus:S9,edit:b9,open:w9,selection:x9,drag:qy}),dnd:E9}),Xy=yn();function Jy({treeProps:t,imperativeHandle:e,children:n}){const r=u.useRef(null),i=u.useRef(null),o=u.useRef(xf(Yy,yn(t))),l=$l.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>Xy),a=u.useMemo(()=>new hn(o.current,t,r,i),[]),s=u.useRef(0);return u.useMemo(()=>{s.current+=1,a.update(t)},[...Object.values(t),l.nodes.open]),u.useImperativeHandle(e,()=>a),u.useEffect(()=>{a.props.selection?a.select(a.props.selection,{focus:!1}):a.deselectAll()},[a.props.selection]),u.useEffect(()=>{a.props.searchTerm||o.current.dispatch(Jo.clear(!0))},[a.props.searchTerm]),b.jsx(N2.Provider,{value:a,children:b.jsx(L2.Provider,{value:s.current,children:b.jsx(R2.Provider,{value:l.nodes,children:b.jsx(M2.Provider,{value:l.dnd,children:b.jsx(I7,Object.assign({backend:Oy,options:{rootElement:a.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:n}))})})})})}function Qy(){const t=_e(),[,e]=df(()=>({accept:"NODE",canDrop:(n,r)=>r.isOver({shallow:!0})?t.canDrop():!1,hover:(n,r)=>{if(!r.isOver({shallow:!0}))return;const i=r.getClientOffset();if(!t.listEl.current||!i)return;const{cursor:o,drop:l}=bf({element:t.listEl.current,offset:i,indent:t.indent,node:null,prevNode:t.visibleNodes[t.visibleNodes.length-1],nextNode:null});l&&t.dispatch(bn.hovering(l.parentId,l.index)),r.canDrop()?o&&t.showCursor(o):t.hideCursor()}}),[t]);e(t.listEl)}function eb(t){return Qy(),t.children}function tb(){const e=_e().props.renderContainer||Cf;return b.jsx(b.Fragment,{children:b.jsx(e,{})})}function nb(){const t=_e(),{offset:e,mouse:n,item:r,isDragging:i}=ny(l=>({offset:l.getSourceClientOffset(),mouse:l.getClientOffset(),item:l.getItem(),isDragging:l.isDragging()})),o=t.props.renderDragPreview||X2;return b.jsx(o,{offset:e,mouse:n,id:(r==null?void 0:r.id)||null,dragIds:(r==null?void 0:r.dragIds)||[],isDragging:i})}class rb{constructor(e){this.root=ib(e)}get data(){var e,n;return(n=(e=this.root.children)===null||e===void 0?void 0:e.map(r=>r.data))!==null&&n!==void 0?n:[]}create(e){const n=e.parentId?this.find(e.parentId):this.root;if(!n)return null;n.addChild(e.data,e.index)}move(e){const n=this.find(e.id),r=e.parentId?this.find(e.parentId):this.root;!n||!r||(r.addChild(n.data,e.index),n.drop())}update(e){const n=this.find(e.id);n&&n.update(e.changes)}drop(e){const n=this.find(e.id);n&&n.drop()}find(e,n=this.root){if(!n)return null;if(n.id===e)return n;if(n.children){for(let r of n.children){const i=this.find(e,r);if(i)return i}return null}return null}}function ib(t){const e=new Ef({id:"ROOT"},null);return e.children=t.map(n=>na(n,e)),e}function na(t,e){const n=new Ef(t,e);return t.children&&(n.children=t.children.map(r=>na(r,n))),n}class Ef{constructor(e,n){this.data=e,this.parent=n,this.id=e.id}hasParent(){return!!this.parent}get childIndex(){return this.hasParent()?this.parent.children.indexOf(this):-1}addChild(e,n){var r,i;const o=na(e,this);this.children=(r=this.children)!==null&&r!==void 0?r:[],this.children.splice(n,0,o),this.data.children=(i=this.data.children)!==null&&i!==void 0?i:[],this.data.children.splice(n,0,e)}removeChild(e){var n,r;(n=this.children)===null||n===void 0||n.splice(e,1),(r=this.data.children)===null||r===void 0||r.splice(e,1)}update(e){if(this.hasParent()){const n=this.childIndex;this.parent.addChild(Object.assign(Object.assign({},this.data),e),n),this.drop()}}drop(){this.hasParent()&&this.parent.removeChild(this.childIndex)}}let ob=0;function lb(t){const[e,n]=u.useState(t),r=u.useMemo(()=>new rb(e),[e]);return[e,{onMove:c=>{for(const d of c.dragIds)r.move({id:d,parentId:c.parentId,index:c.index});n(r.data)},onRename:({name:c,id:d})=>{r.update({id:d,changes:{name:c}}),n(r.data)},onCreate:({parentId:c,index:d,type:f})=>{const h={id:`simple-tree-id-${ob++}`,name:""};return f==="internal"&&(h.children=[]),r.create({parentId:c,index:d,data:h}),n(r.data),h},onDelete:c=>{c.ids.forEach(d=>r.drop({id:d})),n(r.data)}}]}function ab(t){if(t.initialData&&t.data)throw new Error("React Arborist Tree => Provide either a data or initialData prop, but not both.");if(t.initialData&&(t.onCreate||t.onDelete||t.onMove||t.onRename))throw new Error(`React Arborist Tree => You passed the initialData prop along with a data handler.
|
|
98
|
+
Use the data prop if you want to provide your own handlers.`);if(t.initialData){const[e,n]=lb(t.initialData);return Object.assign(Object.assign(Object.assign({},t),n),{data:e})}else return t}function sb(t,e){const n=ab(t);return b.jsxs(Jy,{treeProps:n,imperativeHandle:e,children:[b.jsx(eb,{children:b.jsx(tb,{})}),b.jsx(nb,{})]})}const cb=u.forwardRef(sb),$f=({top:t,left:e})=>b.jsx("div",{className:"c__tree-view__cursor",style:{top:t-2,left:e+10,width:`calc(100% - ${24+e}px)`}});function ub(t,e){var n=u.useRef(null),r=u.useRef(null);r.current=e;var i=u.useRef(null);u.useEffect(function(){o()});var o=u.useCallback(function(){var l=i.current,a=r.current,s=l||(a?a instanceof Element?a:a.current:null);n.current&&n.current.element===s&&n.current.subscriber===t||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:s,subscriber:t,cleanup:s?t(s):void 0})},[t]);return u.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),u.useCallback(function(l){i.current=l,o()},[o])}function kc(t,e,n){return t[e]?t[e][0]?t[e][0][n]:t[e][n]:e==="contentBoxSize"?t.contentRect[n==="inlineSize"?"width":"height"]:void 0}function db(t){t===void 0&&(t={});var e=t.onResize,n=u.useRef(void 0);n.current=e;var r=t.round||Math.round,i=u.useRef(),o=u.useState({width:void 0,height:void 0}),l=o[0],a=o[1],s=u.useRef(!1);u.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var c=u.useRef({width:void 0,height:void 0}),d=ub(u.useCallback(function(f){return(!i.current||i.current.box!==t.box||i.current.round!==r)&&(i.current={box:t.box,round:r,instance:new ResizeObserver(function(h){var v=h[0],y=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",p=kc(v,y,"inlineSize"),g=kc(v,y,"blockSize"),m=p?r(p):void 0,C=g?r(g):void 0;if(c.current.width!==m||c.current.height!==C){var S={width:m,height:C};c.current.width=m,c.current.height=C,n.current?n.current(S):s.current||a(S)}})}),i.current.instance.observe(f,{box:t.box}),function(){i.current&&i.current.instance.unobserve(f)}},[t.box,r]),t.ref);return u.useMemo(function(){return{ref:d,width:l.width,height:l.height}},[d,l.width,l.height])}var Le=(t=>(t.NODE="node",t.SEPARATOR="separator",t.TITLE="title",t))(Le||{}),bt=(t=>(t.FIRST_CHILD="first-child",t.LAST_CHILD="last-child",t.LEFT="left",t.RIGHT="right",t))(bt||{});const ei=t=>t?t.nodeType===Le.SEPARATOR:!1,ti=t=>t?t.nodeType===Le.TITLE:!1,jn=t=>!ei(t)&&!ti(t),Pf=(t,e,n)=>{const{remove:r,update:i,insert:o,insertBefore:l,insertAfter:a,append:s,prepend:c,getItem:d,move:f,items:h}=pp({initialItems:JSON.parse(JSON.stringify(t)),getKey:_=>_.id,getChildren:_=>_.children||[]}),[v,y]=u.useState(),p=(_=[])=>{const F=h.map(O=>O.key);r(...F);const T=JSON.parse(JSON.stringify(_));T.length>0&&o(null,0,...T),y(void 0)},g=_=>{const F=d(_);F&&y(F.value)},m=(_,F,T)=>{var O;if(_){const K=d(_);K&&o(_,T??((O=K.children)==null?void 0:O.length)??0,F)}else o(null,T??h.length,F)},C=_=>{var F;return(F=d(_))==null?void 0:F.value},S=(_,F)=>{var V;const T=d(_);if(!T){console.error("No item found");return}let O=((V=T.children)==null?void 0:V.map(z=>z.value))??null;const K=F.childrenCount??T.value.childrenCount??0;if((O==null?void 0:O.length)===0&&K>0&&(O=null),F.children&&(O=[...O??[],...F.children]),F.children){const z=new Set(F.children.map(W=>W.id));O=F.children.filter(W=>!z.has(W.id)),O=[...O??[],...F.children]}const M={...T.value,...F,children:O,childrenCount:(O==null?void 0:O.length)??K};i(_,M)},P=_=>{r(_)},$=_=>{r(..._)},x=async _=>{if(!e){console.error("No refresh callback provided");return}try{const F=await e(_);S(_,F)}catch(F){console.error("error while refreshing node:",F)}},E=(_,F)=>{o(null,F??h.length,_)},N=(_,F)=>{o(null,F??h.length,..._)},H=(_,F)=>{const T=d(_);if(!T){console.error("No item found");return}const O={...T.value,children:F,childrenCount:F.length,hasLoadedChildren:F.length>0};i(_,O)},j=_=>{const F=[],T=d(_);if(!T)return[];F.push(T.value);const O=K=>{const M=w(K);if(!M)return;const V=d(M);V&&(F.push(V.value),O(M))};return O(_),F.reverse()},w=_=>{var F;return((F=d(_))==null?void 0:F.parentKey)??null},A=_=>{const F=w(_);if(!F)return null;const T=d(F);return T?T.value:null},B=(_,F)=>{l(_,F)},L=(_,F)=>{a(_,F)},U=(_,F)=>{s(_,F)},I=(_,F)=>{c(_,F)},R=(_,F,T)=>{f(_,F,T)},k=_=>{R(_.sourceId,_.newParentId,_.index)},Z=async _=>{if(!n)return[];const F=await n(_);return S(_,{children:F,hasLoadedChildren:!0,childrenCount:F.length}),F};return u.useEffect(()=>{const _=F=>{F.forEach(T=>{var O;if(T.children&&T.children.length>0){const K=T.value.hasLoadedChildren||((O=T.children)==null?void 0:O.length)>0||T.value.children&&T.value.children.length>0;T.value.children=T.children.map(V=>V.value);const M=K?T.children.length:T.value.childrenCount??0;T.value.childrenCount=M,K&&!T.value.hasLoadedChildren&&(T.value.hasLoadedChildren=!0),_(T.children)}else{const M=T.value.hasLoadedChildren||T.value.children&&T.value.children.length>0?0:T.value.childrenCount;T.value.children=[],T.value.childrenCount=M}})};_(h)},[h]),{nodes:h,addChild:m,updateNode:S,deleteNode:P,deleteNodes:$,addRootNode:E,addRootNodes:N,selectedNode:v,setSelectedNode:y,refreshNode:x,setChildren:H,insertBeforeNode:B,insertAfterNode:L,handleMove:k,prependToNode:I,moveNode:R,appendToNode:U,move:f,resetTree:p,handleLoadChildren:Z,selectNodeById:g,getParent:A,getNode:C,getParentId:w,getAncestors:j}},ra=u.createContext(null),fb=({children:t,onRefresh:e,initialNodeId:n,onLoadChildren:r,initialTreeData:i})=>{const o=u.useRef(null),[l,a]=u.useState(null),[s,c]=u.useState(n??null),d=Pf(i??[],e,r);return b.jsx(ra.Provider,{value:{treeApiRef:o,treeData:d,root:l,initialTargetId:s,setInitialTargetId:c,setRoot:a},children:t})},ia=()=>{const t=u.useContext(ra);if(!t)throw new Error("TreeContext not found");return t},hb=({initialOpenState:t,selectedNodeId:e,rootNodeId:n,renderNode:r,canDrop:i,canDrag:o,afterMove:l,beforeMove:a})=>{const[s,c]=u.useState(400),{ref:d,width:f}=db(),h=ia(),v=(h==null?void 0:h.treeData.nodes)??[];u.useEffect(()=>{const m=document.querySelector(".c__tree-view"),C=m==null?void 0:m.firstElementChild;let S=null;return m&&C&&(S=new ResizeObserver(()=>{if(C&&C instanceof HTMLElement){const P=C.style.height;c(parseInt(P,10)+20)}}),S.observe(C)),()=>S==null?void 0:S.disconnect()},[]);const y=m=>{var k,Z,_,F;const C=JSON.parse(JSON.stringify(v)),S=m.dragNodes[0],P=m.parentId?((k=m.parentNode)==null?void 0:k.data.children)??[]:C,$=m.dragNodes[0].data.value.id,x=m.dragNodes[0].data,E=(Z=m.parentNode)==null?void 0:Z.data;if((E==null?void 0:E.value.nodeType)===Le.TITLE||(E==null?void 0:E.value.nodeType)===Le.SEPARATOR)return null;const N=x.parentKey??n,H=m.parentId??n;let j=m.index+0,w=null,A=H;const B=((F=(_=S.parent)==null?void 0:_.children)==null?void 0:F.findIndex(T=>T.data.value.id===$))??0;if(N===H){if(B===j)return null;j=j<B?j:j-1}const L=m.index-1,U=P[L],I=m.index,R=P[I];return m.index===0?(A=m.parentId??n,w=bt.FIRST_CHILD):!E&&m.index===1&&!jn(U.value)?(A=n,j=1,w=bt.FIRST_CHILD):m.index===P.length?(A=A??n,w=bt.LAST_CHILD):U&&jn(U.value)?(A=U.value.id,w=bt.RIGHT):R&&jn(R.value)&&(w=bt.LEFT,A=R.value.id),w&&A?{targetModeId:A,mode:w,oldParentId:N,index:j,newParentId:m.parentId,sourceId:$}:null},p=m=>{const C=y(m);C&&(a?a(C,()=>{h==null||h.treeData.handleMove(C),l==null||l(C)}):(h==null||h.treeData.handleMove(C),l==null||l(C)))},g=u.useCallback(m=>o?!o(m):!1,[o]);if(h)return b.jsx("div",{ref:d,style:{height:s},className:"c__tree-view--container",children:b.jsx(cb,{data:v,ref:h.treeApiRef,openByDefault:!1,selectionFollowsFocus:!1,disableMultiSelection:!0,disableEdit:!0,className:"c__tree-view",idAccessor:"key",onMove:p,height:s,width:f,paddingTop:10,paddingBottom:10,rowHeight:35,disableDrag:g,disableDrop:({parentNode:m,dragNodes:C,index:S})=>{var N,H;if(i&&!i({parentNode:m,dragNodes:C,index:S}))return m.id!=="__REACT_ARBORIST_INTERNAL_ROOT__"&&(m.data.value.canDrop=!1),!0;const P=C[0];if(P&&P.isDragging&&P.willReceiveDrop||((N=m.data.value)==null?void 0:N.nodeType)===Le.TITLE||((H=m.data.value)==null?void 0:H.nodeType)===Le.SEPARATOR)return!0;if(m.id==="__REACT_ARBORIST_INTERNAL_ROOT__"){const j=v[S-1],w=v[S],A=v[S+1],B=ei(j==null?void 0:j.value),L=ei(w==null?void 0:w.value),U=ti(j==null?void 0:j.value),I=ti(w==null?void 0:w.value),R=jn(A==null?void 0:A.value);return!!(S===0&&(L||I)||B&&I&&R||U&&L&&R)}const $=m==null?void 0:m.isOpen,x=(m==null?void 0:m.data.value.childrenCount)&&m.data.value.childrenCount>0||(m==null?void 0:m.data.children)&&m.data.children.length>0;if(!x)return m.data.value.canDrop=!0,!1;let E=m.data.value.childrenCount&&m.data.value.childrenCount>0&&(m==null?void 0:m.data.children)&&m.data.children.length>0;return E=E??!0,!$&&!E&&x?(m.data.value.canDrop=!0,!0):(m.data.value.canDrop=!0,!1)},initialOpenState:t,overscanCount:20,selection:e,renderCursor:$f,renderRow:pb,rowClassName:"c__tree-view--row",children:r})})},pb=({children:t,...e})=>{const n=e.node.data.value.nodeType===Le.TITLE,r=e.node.data.value.nodeType===Le.SEPARATOR,{style:i}=e.attrs,o={...i};return n||r?u.createElement("div",{...e.attrs,key:e.node.id,style:o,ref:e.innerRef,onFocus:l=>l.stopPropagation(),onClick:e.node.handleClick},t):u.createElement("div",{...e.attrs,style:o,key:e.node.id,ref:e.innerRef,onFocus:l=>l.stopPropagation(),onClick:e.node.handleClick},b.jsx("div",{className:"c__tree-view--row-content",children:t}))},vb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Df=vb?u.useLayoutEffect:u.useEffect;function Tf(t){const e=u.useRef(t);return Df(()=>{e.current=t}),u.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}function Nc(t,e){e===void 0&&(e=[t]);const n=u.useRef(t);return Df(()=>{n.current!==t&&(n.current=t)},e),n}function gb(t){const e=Tf(t),n=u.useRef(null),r=u.useCallback(i=>{i!==n.current&&(e==null||e(i,n.current)),n.current=i},[]);return[n,r]}let xo={};function mb(t,e){return u.useMemo(()=>{const n=xo[t]==null?0:xo[t]+1;return xo[t]=n,t+"-"+n},[t,e])}var Vn;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(Vn||(Vn={}));function Rc(){}const yb=Object.freeze({x:0,y:0});var ln;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(ln||(ln={}));var Mc;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(Mc||(Mc={}));var at;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(at||(at={}));at.Space,at.Enter,at.Esc,at.Space,at.Enter,at.Tab;var Lc;(function(t){t[t.RightClick=2]="RightClick"})(Lc||(Lc={}));var Ac;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(Ac||(Ac={}));var Fc;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(Fc||(Fc={}));ln.Backward+"",ln.Forward+"",ln.Backward+"",ln.Forward+"";var al;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(al||(al={}));var sl;(function(t){t.Optimized="optimized"})(sl||(sl={}));function bb(t){let{callback:e,disabled:n}=t;const r=Tf(e),i=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return u.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}al.WhileDragging,sl.Optimized;const Cb={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Rc,draggableNodes:new Map,over:null,measureDroppableContainers:Rc},Sb=u.createContext(Cb);({...yb});var Kc;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(Kc||(Kc={}));const wb="Droppable",xb={timeout:25};function Eb(t){let{data:e,disabled:n=!1,id:r,resizeObserverConfig:i}=t;const o=mb(wb),{active:l,dispatch:a,over:s,measureDroppableContainers:c}=u.useContext(Sb),d=u.useRef({disabled:n}),f=u.useRef(!1),h=u.useRef(null),v=u.useRef(null),{disabled:y,updateMeasurementsFor:p,timeout:g}={...xb,...i},m=Nc(p??r),C=u.useCallback(()=>{if(!f.current){f.current=!0;return}v.current!=null&&clearTimeout(v.current),v.current=setTimeout(()=>{c(Array.isArray(m.current)?m.current:[m.current]),v.current=null},g)},[g]),S=bb({callback:C,disabled:y||!l}),P=u.useCallback((N,H)=>{S&&(H&&(S.unobserve(H),f.current=!1),N&&S.observe(N))},[S]),[$,x]=gb(P),E=Nc(e);return u.useEffect(()=>{!S||!$.current||(S.disconnect(),f.current=!1,S.observe($.current))},[$,S]),u.useEffect(()=>(a({type:Vn.RegisterDroppable,element:{id:r,key:o,disabled:n,node:$,rect:h,data:E}}),()=>a({type:Vn.UnregisterDroppable,key:o,id:r})),[r]),u.useEffect(()=>{n!==d.current.disabled&&(a({type:Vn.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)},[r,o,n,a]),{active:l,rect:h,isOver:(s==null?void 0:s.id)===r,node:$,over:s,setNodeRef:x}}const $b=t=>{const{isOver:e,setNodeRef:n}=Eb({id:t.id,data:t.data});return u.useEffect(()=>{var r;(r=t.onOver)==null||r.call(t,e,t.data)},[e,t.data,t.onOver]),b.jsx("div",{className:"c__dnd--droppable",ref:n,children:t.children})},Pb=({children:t,onClick:e,node:n,dragHandle:r,style:i,forceLoading:o})=>{var S,P;const l=ia(),a=u.useRef(null),[s,c]=u.useState(!1),[d,f]=u.useState(!1),h=o??s,v=n.willReceiveDrop||d,y=n.data.value.childrenCount!==void 0&&n.data.value.childrenCount>0||(((S=n.data.children)==null?void 0:S.length)??0)>0,p=((P=n.children)==null?void 0:P.length)??!1,g=n.isLeaf||!y,m=u.useCallback(async()=>{if(!g){if(p||n.data.value.hasLoadedChildren){n.toggle();return}c(!0),await(l==null?void 0:l.treeData.handleLoadChildren(n.data.value.id)),c(!1),n.open()}},[g,p,n,l==null?void 0:l.treeData]),C=u.useCallback($=>{$&&!n.isOpen&&!n.isDragging&&(a.current=setTimeout(()=>{m()},500)),a.current&&!$&&clearTimeout(a.current)},[m,n.isOpen,n.isDragging]);return u.useEffect(()=>{C(v)},[v,C]),n.data.value.nodeType===Le.SEPARATOR?b.jsx("div",{className:"c__tree-view--node__separator"}):n.data.value.nodeType===Le.TITLE?b.jsx("div",{className:"c__tree-view--node__title",children:n.data.value.headerTitle}):b.jsx($b,{id:n.id,data:{data:n.data,nodeApi:n},onOver:f,children:b.jsxs("div",{onClick:$=>{if(!$.target.closest(".c__tree-view--node")){$.stopPropagation();return}e==null||e()},onKeyDown:$=>{$.target.closest(".c__tree-view--node")||$.stopPropagation()},ref:r,style:i,className:Pe("c__tree-view--node",{...n.state,canDrop:n.data.value.canDrop??!0,externalDrop:d}),children:[g&&b.jsx("div",{className:"c__tree-view--node__leaf"}),!g&&b.jsxs(b.Fragment,{children:[h&&b.jsx("div",{className:"c__tree-view--node__loading",children:b.jsx(zl,{})}),!h&&b.jsx("span",{onClick:$=>{$.stopPropagation(),m()},className:"c__tree-view--node__arrow material-icons",children:n.isOpen?"keyboard_arrow_down":"keyboard_arrow_right"})]}),t]})})};var Re=(t=>(t.X_SMALL="xsmall",t.SMALL="small",t.MEDIUM="medium",t.LARGE="large",t.X_LARGE="xlarge",t))(Re||{}),zn=(t=>(t.OUTLINED="outlined",t.FILLED="filled",t))(zn||{});const Db=({name:t,size:e,className:n,color:r,type:i=zn.FILLED,...o})=>{const l=Pe("",{[`icon--${e}`]:e!==void 0,[`material-icons-${i}`]:i!==zn.OUTLINED,"material-icons":i===zn.OUTLINED},n),a={color:r,fontSize:typeof e=="number"?`${e}px`:void 0};return b.jsx("span",{className:l,style:a,...o,children:t})},_f={[Re.X_SMALL]:11,[Re.SMALL]:16,[Re.MEDIUM]:24,[Re.LARGE]:32,[Re.X_LARGE]:40},If={[Re.X_SMALL]:16,[Re.SMALL]:24,[Re.MEDIUM]:32,[Re.LARGE]:40,[Re.X_LARGE]:48},Tb=t=>If[t]??24,_b=t=>_f[t]??24,ki=({roles:t,onSelect:e,canUpdate:n=!0,selectedRole:r,isOpen:i,onOpenChange:o,roleTopMessage:l})=>{const a=t.find(s=>s.value===r);return n?b.jsx(It,{isOpen:i,shouldCloseOnInteractOutside:s=>!s.closest(".c__access-role-dropdown"),onOpenChange:o,options:t,selectedValues:[r],onSelectValue:e,topMessage:l,children:b.jsxs("div",{role:"button",className:"c__access-role-dropdown",onClick:()=>{o==null||o(!i)},children:[b.jsx("span",{className:"fs-s clr-greyscale-600",children:a==null?void 0:a.label}),b.jsx("span",{className:"material-icons",children:i?"arrow_drop_up":"arrow_drop_down"})]})}):b.jsx("span",{className:"fs-s clr-greyscale-600",children:a==null?void 0:a.label})},Of=({users:t,onRemoveUser:e,rightActions:n,onShare:r,shareButtonLabel:i,roles:o,selectedRole:l,onSelectRole:a})=>{const{t:s}=le.useCunningham(),[c,d]=u.useState(!1);return b.jsxs("div",{className:"c__add-share-user-list",children:[b.jsx("div",{className:"c__add-share-user-list__items",children:t.map(f=>b.jsx(kf,{user:f,onRemoveUser:e},f.id))}),b.jsxs("div",{className:"c__add-share-user-list__right-actions",children:[n,b.jsx(ki,{roles:o,selectedRole:l,onSelect:a,isOpen:c,onOpenChange:d}),b.jsx(le.Button,{onClick:r,children:i??s("components.share.shareButton")})]})]})},kf=({user:t,onRemoveUser:e})=>b.jsxs("div",{className:"c__add-share-user-item",children:[b.jsx("span",{children:t.full_name||t.email}),b.jsx(le.Button,{color:"tertiary-text",size:"nano",onClick:()=>e==null?void 0:e(t),icon:b.jsx("span",{className:"material-icons",children:"close"})})]}),jc=["purple","blue","green","yellow","orange","red","brown","cyan","gold","olive","rose"],Nf=t=>t.split(/[\s-_]+/).slice(0,2).map(e=>e[0]).join("").toUpperCase(),Rf=t=>{let e=0;for(let n=0;n<t.length;n++)e+=t.charCodeAt(n);return jc[e%jc.length]},Mf=({fullName:t,size:e="medium",forceColor:n})=>{const r=Nf(t),i=Rf(t);return b.jsx("div",{style:{backgroundColor:n||void 0},className:Pe(`c__avatar ${e}`,{[i]:!n&&i}),children:b.jsx("div",{className:"c__avatar__initials",children:r})})},Ni=({fullName:t,email:e,showEmail:n=!0})=>{const r=t&&t!==""?t:e??"";return b.jsxs("div",{className:"c__user-row",children:[b.jsx(Mf,{fullName:r,size:"small"}),b.jsxs("div",{className:"c__user-row__info",children:[b.jsx("span",{className:"c__user-row__name",children:t}),n&&e&&b.jsx("span",{className:Pe("c__user-row__email",{"has-only-email":e&&(t===""||!t)}),children:e})]})]})},cl=({user:t})=>{const{t:e}=le.useCunningham();return b.jsx(Pi,{left:b.jsx(Ni,{fullName:t.full_name,email:t.email}),alwaysShowRight:!1,right:b.jsxs("div",{className:"c__search-user-item-right",children:[b.jsx("span",{children:e("components.share.item.add")}),b.jsx("span",{className:"material-icons",children:"add"})]})})},Lf=({accessData:t,roles:e,updateRole:n,deleteAccess:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=le.useCunningham(),a=ht(),s=ht(),c=u.useMemo(()=>{const f=[];return r&&f.push({label:l("components.share.access.delete"),icon:b.jsx("span",{className:"material-icons",children:"back_hand"}),isDisabled:!i,callback:()=>r(t)}),f},[r,t,i,l]),d=()=>{const f=s.isOpen;s.setIsOpen(!f)};return b.jsx("div",{className:"c__share-member-item",children:b.jsx(Pi,{left:b.jsx(Ni,{fullName:t.user.full_name,email:t.user.email,showEmail:!0}),alwaysShowRight:!0,right:b.jsxs("div",{className:"c__share-member-item__right",children:[b.jsx(ki,{roles:e,selectedRole:t.role,onSelect:f=>n==null?void 0:n(t,f),isOpen:a.isOpen,onOpenChange:a.setIsOpen,canUpdate:i,roleTopMessage:o}),c.length>0&&i&&b.jsx(It,{options:c,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:b.jsx(le.Button,{color:"primary-text",onClick:d,size:"small",icon:b.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},Af=({invitation:t,roles:e,updateRole:n,deleteInvitation:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=le.useCunningham(),a=ht(),s=ht(),c=[{label:l("components.share.access.delete"),callback:()=>r==null?void 0:r(t),isDisabled:!i,icon:b.jsx("span",{className:"material-icons",children:"back_hand"})}],d=()=>{const f=s.isOpen;s.setIsOpen(!f)};return b.jsx("div",{className:"c__share-member-item",children:b.jsx(Pi,{left:b.jsx(Ni,{fullName:"",email:t.email,showEmail:!0}),alwaysShowRight:!0,right:b.jsxs("div",{className:"c__share-member-item__right",children:[b.jsx(ki,{roles:e,selectedRole:t.role,onSelect:f=>n==null?void 0:n(t,f),isOpen:a.isOpen,canUpdate:i,onOpenChange:a.setIsOpen,roleTopMessage:o}),i&&b.jsx(It,{options:c,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:b.jsx(le.Button,{color:"primary-text",onClick:d,size:"small",icon:b.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},Ib="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2022C10.6167%2022%209.31667%2021.7375%208.1%2021.2125C6.88333%2020.6875%205.825%2019.975%204.925%2019.075C4.025%2018.175%203.3125%2017.1167%202.7875%2015.9C2.2625%2014.6833%202%2013.3833%202%2012C2%2010.6167%202.2625%209.31667%202.7875%208.1C3.3125%206.88333%204.025%205.825%204.925%204.925C5.825%204.025%206.88333%203.3125%208.1%202.7875C9.31667%202.2625%2010.6167%202%2012%202C13.3833%202%2014.6833%202.2625%2015.9%202.7875C17.1167%203.3125%2018.175%204.025%2019.075%204.925C19.975%205.825%2020.6875%206.88333%2021.2125%208.1C21.7375%209.31667%2022%2010.6167%2022%2012C22%2013.3833%2021.7375%2014.6833%2021.2125%2015.9C20.6875%2017.1167%2019.975%2018.175%2019.075%2019.075C18.175%2019.975%2017.1167%2020.6875%2015.9%2021.2125C14.6833%2021.7375%2013.3833%2022%2012%2022ZM11%2019.95V18C10.45%2018%209.97917%2017.8042%209.5875%2017.4125C9.19583%2017.0208%209%2016.55%209%2016V15L4.2%2010.2C4.15%2010.5%204.10417%2010.8%204.0625%2011.1C4.02083%2011.4%204%2011.7%204%2012C4%2014.0167%204.6625%2015.7833%205.9875%2017.3C7.3125%2018.8167%208.98333%2019.7%2011%2019.95ZM17.9%2017.4C18.2333%2017.0333%2018.5333%2016.6375%2018.8%2016.2125C19.0667%2015.7875%2019.2875%2015.3458%2019.4625%2014.8875C19.6375%2014.4292%2019.7708%2013.9583%2019.8625%2013.475C19.9542%2012.9917%2020%2012.5%2020%2012C20%2010.3667%2019.5458%208.875%2018.6375%207.525C17.7292%206.175%2016.5167%205.2%2015%204.6V5C15%205.55%2014.8042%206.02083%2014.4125%206.4125C14.0208%206.80417%2013.55%207%2013%207H11V9C11%209.28333%2010.9042%209.52083%2010.7125%209.7125C10.5208%209.90417%2010.2833%2010%2010%2010H8V12H14C14.2833%2012%2014.5208%2012.0958%2014.7125%2012.2875C14.9042%2012.4792%2015%2012.7167%2015%2013V16H16C16.4333%2016%2016.825%2016.1292%2017.175%2016.3875C17.525%2016.6458%2017.7667%2016.9833%2017.9%2017.4Z'%20fill='%233D3D8C'/%3e%3c/svg%3e",Ob="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%2018C18.4167%2018%2018.7708%2017.8542%2019.0625%2017.5625C19.3542%2017.2708%2019.5%2016.9167%2019.5%2016.5C19.5%2016.0833%2019.3542%2015.7292%2019.0625%2015.4375C18.7708%2015.1458%2018.4167%2015%2018%2015C17.5833%2015%2017.2292%2015.1458%2016.9375%2015.4375C16.6458%2015.7292%2016.5%2016.0833%2016.5%2016.5C16.5%2016.9167%2016.6458%2017.2708%2016.9375%2017.5625C17.2292%2017.8542%2017.5833%2018%2018%2018ZM18%2021C18.5%2021%2018.9667%2020.8833%2019.4%2020.65C19.8333%2020.4167%2020.1917%2020.0917%2020.475%2019.675C20.0917%2019.4417%2019.6917%2019.2708%2019.275%2019.1625C18.8583%2019.0542%2018.4333%2019%2018%2019C17.5667%2019%2017.1417%2019.0542%2016.725%2019.1625C16.3083%2019.2708%2015.9083%2019.4417%2015.525%2019.675C15.8083%2020.0917%2016.1667%2020.4167%2016.6%2020.65C17.0333%2020.8833%2017.5%2021%2018%2021ZM9%208H15V6C15%205.16667%2014.7083%204.45833%2014.125%203.875C13.5417%203.29167%2012.8333%203%2012%203C11.1667%203%2010.4583%203.29167%209.875%203.875C9.29167%204.45833%209%205.16667%209%206V8ZM12.25%2022H6C5.45%2022%204.97917%2021.8042%204.5875%2021.4125C4.19583%2021.0208%204%2020.55%204%2020V10C4%209.45%204.19583%208.97917%204.5875%208.5875C4.97917%208.19583%205.45%208%206%208H7V6C7%204.61667%207.4875%203.4375%208.4625%202.4625C9.4375%201.4875%2010.6167%201%2012%201C13.3833%201%2014.5625%201.4875%2015.5375%202.4625C16.5125%203.4375%2017%204.61667%2017%206V8H18C18.55%208%2019.0208%208.19583%2019.4125%208.5875C19.8042%208.97917%2020%209.45%2020%2010V11.3C19.7%2011.2%2019.3875%2011.125%2019.0625%2011.075C18.7375%2011.025%2018.3833%2011%2018%2011V10H6V20H11.3C11.4333%2020.4%2011.5667%2020.7458%2011.7%2021.0375C11.8333%2021.3292%2012.0167%2021.65%2012.25%2022ZM18%2023C16.6167%2023%2015.4375%2022.5125%2014.4625%2021.5375C13.4875%2020.5625%2013%2019.3833%2013%2018C13%2016.6167%2013.4875%2015.4375%2014.4625%2014.4625C15.4375%2013.4875%2016.6167%2013%2018%2013C19.3833%2013%2020.5625%2013.4875%2021.5375%2014.4625C22.5125%2015.4375%2023%2016.6167%2023%2018C23%2019.3833%2022.5125%2020.5625%2021.5375%2021.5375C20.5625%2022.5125%2019.3833%2023%2018%2023Z'%20fill='%233D3D8C'/%3e%3c/svg%3e",xr=t=>{switch(t){case"public":return b.jsx("img",{src:Ib,alt:""});case"restricted":return b.jsx("img",{src:Ob,alt:""});default:return null}},kb=({linkReachChoices:t=[],canUpdate:e,linkReach:n="public",onUpdateLinkReach:r,showLinkRole:i=!1,linkRoleChoices:o=[],linkRole:l="reader",onUpdateLinkRole:a})=>{const s=ht(),c=ht(),[d,f]=u.useState([n]),h=d[0],[v,y]=u.useState([l]),p=v[0],{t:g}=le.useCunningham(),m=u.useMemo(()=>t.map(N=>({icon:N.icon??xr(N.value),value:N.value,label:g("components.share.linkSettings.reach.choices."+N.value+".title"),...N})),[t]),C=u.useMemo(()=>m.find(N=>N.value===h),[m,h]),S=u.useMemo(()=>o.map(N=>({value:N.value,label:g("components.share.linkSettings.role.choices."+N.value+".title"),...N})),[o]),P=u.useMemo(()=>S.find(N=>N.value===p),[S,p]),$=i&&o.length>0,x=()=>b.jsx("div",{className:"c__share-modal__link-settings__content__select",children:e?b.jsx(It,{onSelectValue:N=>{f([N]),r==null||r(N)},options:m,isOpen:s.isOpen,onOpenChange:s.setIsOpen,selectedValues:d,children:b.jsxs(le.Button,{color:"primary-text",icon:xr(h),iconPosition:"left",onClick:()=>{e&&s.setIsOpen(!s.isOpen)},children:[C==null?void 0:C.label,b.jsx("span",{className:"material-icons",children:s.isOpen?"arrow_drop_up":"arrow_drop_down"})]})}):b.jsxs("span",{className:"c__share-modal__link-settings__content__select__value",children:[xr(h),C==null?void 0:C.label]})}),E=()=>$?b.jsx("div",{className:"c__share-modal__link-settings__content__select-role",children:e?b.jsx(It,{onSelectValue:N=>{y([N]),a==null||a(N)},options:S,isOpen:c.isOpen,onOpenChange:c.setIsOpen,selectedValues:v,children:b.jsx(le.Button,{color:"primary-text",icon:b.jsx("span",{className:"material-icons",children:c.isOpen?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",onClick:()=>{e&&c.setIsOpen(!c.isOpen)},size:"small",children:P==null?void 0:P.label})}):b.jsxs("span",{className:"c__share-modal__link-settings__content__select-role__value",children:[xr(p),P==null?void 0:P.label]})}):null;return b.jsxs("div",{className:"c__share-modal__link-settings",children:[b.jsx("span",{className:"c__share-modal__link-settings__title",children:g("components.share.linkSettings.title")}),b.jsxs("div",{className:"c__share-modal__link-settings__content",children:[x(),b.jsx("div",{className:"c__share-modal__link-settings__content__description desktop",children:g(`components.share.linkSettings.reach.choices.${h}.description`)}),E()]}),b.jsx("div",{className:"c__share-modal__link-settings__content__description mobile",children:g(`components.share.linkSettings.reach.choices.${h}.description`)})]})},Nb=({searchUsersResult:t,children:e,outsideSearchContent:n,accesses:r=[],invitations:i=[],hasNextMembers:o=!1,canUpdate:l=!0,canView:a=!0,hasNextInvitations:s=!1,hideInvitations:c=!1,hideMembers:d=!1,cannotViewChildren:f,...h})=>{var O,K;if(!(c&&d)){if(!h.invitationRoles)throw new Error("invitationRoles is required");if(!h.onSearchUsers)throw new Error("onSearchUsers is required")}if(!c&&!h.onInviteUser)throw new Error("onInviteUser is required");if(l&&!a)throw new Error("canView cannot be false if canUpdate is true");const{t:v}=le.useCunningham(),{isMobile:y}=wn(),p=u.useRef(null),[g,m]=u.useState("400px"),C=u.useRef(null),[S,P]=u.useState(""),[$,x]=u.useState(""),[E,N]=u.useState([]),[H,j]=u.useState(((K=(O=h.invitationRoles)==null?void 0:O[0])==null?void 0:K.value)??""),w=y?"calc(100dvh - 32px)":"min(690px, calc(100dvh - 2em - 12px - 32px))",A=M=>{if(p.current&&clearTimeout(p.current),M===""){x(""),h.onSearchUsers("");return}p.current=setTimeout(()=>{h.onSearchUsers(M),x(M)},300)},B=M=>{P(M),A(M)},L=$!==""||E.length>0,U=u.useCallback(M=>{N(V=>[...V,M]),P(""),x(""),h.onSearchUsers("")},[h]),I=M=>{N(V=>V.filter(z=>z.id!==M.id))},R=u.useMemo(()=>{const M=t==null?void 0:t.filter(se=>!E.includes(se));let V=v($!==""?"components.share.user.no_result":"components.share.user.placeholder");const W=(se=>!!se.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z\-0-9]{2,}))$/))($??"")&&!(M!=null&&M.some(se=>se.email===$)),q={id:$,full_name:"",email:$};return W&&(V=void 0),{groupName:v("components.share.search.group_name"),elements:M??[],showWhenEmpty:!0,emptyString:V,endActions:W?[{content:b.jsx(cl,{user:q}),onSelect:()=>void U(q)}]:void 0}},[t,$,v,E,U]),k=M=>{var J;const z=(M==null?void 0:M.clientHeight)??0,W=((J=C.current)==null?void 0:J.clientHeight)??0,q=`calc(${w} - ${z}px - ${W}px - 70px - 10px)`;m(q)},Z=!c&&!L&&!h.loading&&i.length>0,_=!d&&!L&&!h.loading&&r.length>0,T=a?c&&d?"empty":"search":"cannot_view";return b.jsx(le.Modal,{title:h.modalTitle??v("components.share.modalTitle"),isOpen:h.isOpen,onClose:h.onClose,closeOnClickOutside:!0,size:y?le.ModalSize.FULL:le.ModalSize.LARGE,children:b.jsxs("div",{className:"c__share-modal no-padding",children:[l&&E.length>0&&b.jsx("div",{className:"c__share-modal__selected-users",ref:C,children:b.jsx(Of,{users:E,onRemoveUser:I,roles:h.invitationRoles,selectedRole:H,onSelectRole:j,onShare:()=>{h.onInviteUser(E,H),N([])}})}),T==="cannot_view"&&b.jsxs("div",{className:"c__share-modal__cannot-view",style:{height:g},children:[b.jsx("div",{className:"c__share-modal__cannot-view__content",children:b.jsx("p",{children:h.cannotViewMessage??v("components.share.cannot_view.message")})}),f]}),T==="search"&&b.jsx(O2,{onFilter:B,inputValue:S,showInput:l,loading:h.loading,placeholder:v("components.share.user.placeholder"),children:b.jsxs("div",{style:{height:g,overflowY:"auto"},children:[L&&b.jsx("div",{className:"c__share-modal__search-users",children:b.jsx(k2,{group:R,onSelect:M=>{U(M)},renderElement:M=>b.jsx(cl,{user:M})})}),!L&&e,Z&&b.jsxs("div",{className:"c__share-modal__invitations",children:[b.jsx("span",{className:"c__share-modal__invitations-title",children:v("components.share.invitations.title")}),i.map(M=>{var V;return b.jsx(Af,{invitation:M,roles:h.invitationRoles,updateRole:h.onUpdateInvitation,deleteInvitation:h.onDeleteInvitation,canUpdate:l,roleTopMessage:(V=h.invitationRoleTopMessage)==null?void 0:V.call(h,M)},M.id)}),b.jsx(Hc,{show:s,onShowMore:h.onLoadNextInvitations})]}),_&&b.jsxs("div",{className:"c__share-modal__members",children:[b.jsx("span",{className:"c__share-modal__members-title",children:v(r.length>1?"components.share.members.title_plural":"components.share.members.title_singular",{count:r.length})}),r.map(M=>{var V,z;return b.jsx(Lf,{accessData:M,canUpdate:l,roleTopMessage:(V=h.accessRoleTopMessage)==null?void 0:V.call(h,M),roles:((z=h.getAccessRoles)==null?void 0:z.call(h,M))??h.invitationRoles,updateRole:h.onUpdateAccess,deleteAccess:h.onDeleteAccess},M.id)}),b.jsx(Hc,{show:o,onShowMore:h.onLoadNextMembers})]})]})}),b.jsx("div",{ref:k,children:!L&&b.jsxs("div",{className:"c__share-modal__footer",children:[h.linkSettings&&b.jsx(kb,{linkReachChoices:h.linkReachChoices,canUpdate:l,onUpdateLinkReach:h.onUpdateLinkReach,linkReach:h.linkReach,linkRoleChoices:h.linkRoleChoices,linkRole:h.linkRole,onUpdateLinkRole:h.onUpdateLinkRole,showLinkRole:h.showLinkRole}),n]})})]})})},Hc=({show:t,onShowMore:e})=>{const{t:n}=le.useCunningham();return t?b.jsx("div",{className:"c__share-modal__show-more-button",children:b.jsx(le.Button,{color:"primary-text",size:"small",icon:b.jsx("span",{className:"material-icons",children:"arrow_downward"}),onClick:e,children:n("components.share.members.load_more")})}):null},Rb=({onCopyLink:t,onOk:e})=>{const{t:n}=le.useCunningham();return b.jsxs("div",{className:"c__share-modal__copy-link-footer",children:[b.jsx(le.Button,{color:"tertiary",icon:b.jsx("span",{className:"material-icons",children:"link"}),onClick:t,children:n("components.share.copyLink")}),b.jsx(le.Button,{color:"primary",onClick:e,children:n("components.share.ok")})]})};exports.AccessRoleDropdown=ki;exports.CunninghamProvider=qf;exports.CustomTabs=r9;exports.DropdownMenu=It;exports.Filter=Xp;exports.Footer=Yp;exports.Header=xd;exports.Hero=Qp;exports.HomeGutter=ev;exports.HorizontalSeparator=Xo;exports.Icon=Db;exports.IconSize=Re;exports.IconType=zn;exports.InvitationUserSelectorItem=kf;exports.InvitationUserSelectorList=Of;exports.LaGaufre=dv;exports.Label=Zd;exports.LanguagePicker=wd;exports.LeftPanel=Ed;exports.MainLayout=Bv;exports.ProConnectButton=Bc;exports.QuickSearch=O2;exports.QuickSearchGroup=k2;exports.QuickSearchInput=I2;exports.QuickSearchItem=Tr;exports.QuickSearchItemTemplate=Pi;exports.SearchUserItem=cl;exports.ShareInvitationItem=Af;exports.ShareMemberItem=Lf;exports.ShareModal=Nb;exports.ShareModalCopyLinkFooter=Rb;exports.Spinner=zl;exports.TreeApi=hn;exports.TreeContext=ra;exports.TreeProvider=fb;exports.TreeView=hb;exports.TreeViewItem=Pb;exports.TreeViewMoveModeEnum=bt;exports.TreeViewNodeTypeEnum=Le;exports.TreeViewSeparator=$f;exports.UserAvatar=Mf;exports.UserRow=Ni;exports.VerticalSeparator=n9;exports.WithLabel=Wv;exports.containerSizeMap=If;exports.cunninghamConfig=Bo;exports.getContainerSize=Tb;exports.getIconSize=_b;exports.getLocales=zc;exports.getUserColor=Rf;exports.getUserInitials=Nf;exports.headerHeight=Uv;exports.iconSizeMap=_f;exports.isNode=jn;exports.isSeparator=ei;exports.isTitle=ti;exports.useDropdownMenu=ht;exports.useResponsive=wn;exports.useTree=Pf;exports.useTreeContext=ia;
|
|
99
99
|
//# sourceMappingURL=index.cjs.map
|