@gouvfr-lasuite/ui-kit 0.18.5 → 0.18.7
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/cunningham.ts +1166 -412
- package/dist/index.cjs +39 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1232 -420
- package/dist/index.js +10402 -8513
- package/dist/index.js.map +1 -1
- package/dist/sass/fonts.scss +1 -1
- package/dist/storybook/logo-uikit-dark.svg +1 -0
- package/dist/storybook/logo-uikit-default.svg +1 -0
- package/dist/style.css +1 -1
- package/package.json +10 -8
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),X=require("@gouvfr-lasuite/cunningham-react"),Rt=require("react-dom");function m2(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const T=m2(u),Ef=m2(Rt);function wf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fn={exports:{}},$r={};/**
|
|
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
|
|
9
|
+
*/var Pa;function Df(){if(Pa)return $r;Pa=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function r(n,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:n,key:l,ref:i!==void 0?i:null,props:o}}return $r.Fragment=e,$r.jsx=r,$r.jsxs=r,$r}var Pr={};/**
|
|
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
|
|
17
|
+
*/var Aa;function xf(){return Aa||(Aa=1,process.env.NODE_ENV!=="production"&&function(){function t(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===H?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case h:return"Fragment";case m:return"Profiler";case v:return"StrictMode";case D:return"Suspense";case x:return"SuspenseList";case K:return"Activity"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case y:return"Portal";case E:return(I.displayName||"Context")+".Provider";case C:return(I._context.displayName||"Context")+".Consumer";case F:var N=I.render;return I=I.displayName,I||(I=N.displayName||N.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case S:return N=I.displayName||null,N!==null?N:t(I.type)||"Memo";case O:N=I._payload,I=I._init;try{return t(I(N))}catch{}}return null}function e(I){return""+I}function r(I){try{e(I);var N=!1}catch{N=!0}if(N){N=console;var $=N.error,A=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return $.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",A),e(I)}}function n(I){if(I===h)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===O)return"<...>";try{var N=t(I);return N?"<"+N+">":"<...>"}catch{return"<...>"}}function i(){var I=w.A;return I===null?null:I.getOwner()}function o(){return Error("react-stack-top-frame")}function l(I){if(M.call(I,"key")){var N=Object.getOwnPropertyDescriptor(I,"key").get;if(N&&N.isReactWarning)return!1}return I.key!==void 0}function a(I,N){function $(){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)",N))}$.isReactWarning=!0,Object.defineProperty(I,"key",{get:$,configurable:!0})}function s(){var I=t(this.type);return P[I]||(P[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.")),I=this.props.ref,I!==void 0?I:null}function c(I,N,$,A,B,L,j,V){return $=L.ref,I={$$typeof:g,type:I,key:N,props:L,_owner:B},($!==void 0?$:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:s}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:V}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function d(I,N,$,A,B,L,j,V){var W=N.children;if(W!==void 0)if(A)if(Z(W)){for(A=0;A<W.length;A++)f(W[A]);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(M.call(N,"key")){W=t(I);var q=Object.keys(N).filter(function(ae){return ae!=="key"});A=0<q.length?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}",R[W+A]||(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} />`,_,W,q,W),F[W+_]=!0)}if(W=null,P!==void 0&&(n(P),W=""+P),l(K)&&(n(K.key),W=""+K.key),"key"in K){P={};for(var Y in K)Y!=="key"&&(P[Y]=K[Y])}else P=K;return W&&a(P,typeof N=="function"?N.displayName||N.name||"Unknown":N),u(N,W,j,A,i(),P,H,V)}function f(N){typeof N=="object"&&N!==null&&N.$$typeof===v&&N._store&&(N._store.validated=1)}var p=c,v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),C=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),B=Symbol.for("react.client.reference"),S=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=Object.prototype.hasOwnProperty,U=Array.isArray,k=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(N){return N()}};var Z,I={},M=p["react-stack-bottom-frame"].bind(p,o)(),z=k(r(o)),F={};_n.Fragment=h,_n.jsx=function(N,K,P,_,A){var j=1e4>S.recentlyCreatedOwnerStacks++;return d(N,K,P,!1,_,A,j?Error("react-stack-top-frame"):M,j?k(r(N)):z)},_n.jsxs=function(N,K,P,_,A){var j=1e4>S.recentlyCreatedOwnerStacks++;return d(N,K,P,!0,_,A,j?Error("react-stack-top-frame"):M,j?k(r(N)):z)}}()),_n}var Ca;function l1(){return Ca||(Ca=1,process.env.NODE_ENV==="production"?sr.exports=i1():sr.exports=o1()),sr.exports}var m=l1();const a1={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_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"}}}}},laGaufre:{label:"Digital LaSuite services",closeLabel:"Close the menu",viewMoreLabel:"View more",viewLessLabel:"View less",loadingText:"Loading…",newWindowLabelSuffix:" (new window)",headerLabel:"About"},userMenu:{term_of_service:"Terms of service",manage_account:"Manage account",open:"Open user menu",close:"Close user menu",accountSettings:"Account settings",logout:"Logout",dialogTitle:"User menu"},treeView:{viewMore:"Load more elements"},footer:{logo:{alt:"Logo of the French government"}}},s1={components:a1},u1={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"}}}}},laGaufre:{label:"Services de la Suite numérique",closeLabel:"Fermer le menu",loadingText:"Chargement…",viewMoreLabel:"Voir plus",viewLessLabel:"Voir moins",newWindowLabelSuffix:" (nouvelle fenêtre)",headerLabel:"À propos"},userMenu:{term_of_service:"Conditions d'utilisation",open:"Ouvrir le menu utilisateur",close:"Fermer le menu utilisateur",accountSettings:"Paramètres du compte",logout:"Déconnexion",dialogTitle:"Menu utilisateur",manage_account:"Gérer le compte"},treeView:{viewMore:"Charger plus d'éléments"},footer:{logo:{alt:"Logo du gouvernement français"}}},c1={components:u1};function Vi(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Br(t,...e){if(!e.length)return t;const n=e.shift();if(Vi(t)&&Vi(n))for(const r in n)Vi(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Br(t[r],n[r])):Object.assign(t,{[r]:n[r]});return Br(t,...e)}const nc={"en-US":Br(X.enUS,s1),"fr-FR":Br(X.frFR,c1)},d1=t=>m.jsx(X.CunninghamProvider,{customLocales:nc,...t}),f1="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",h1="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",rc=({disabled:t,onClick:e})=>m.jsx(X.Button,{disabled:t,className:"pro-connect-button",onClick:e,style:{backgroundImage:`url("${t?h1:f1}")`}});c.createContext(null);c.createContext(null);c.createContext(null);c.createContext(null);c.createContext(null);const p1=c.createContext({}),re=typeof document<"u"?c.useLayoutEffect:()=>{};var Bi;const v1=(Bi=c.useInsertionEffect)!==null&&Bi!==void 0?Bi:re;function ge(t){const e=c.useRef(null);return v1(()=>{e.current=t},[t]),c.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function g1(t){let[e,n]=c.useState(t),r=c.useRef(null),i=ge(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}e===l.value?i():n(l.value)});re(()=>{r.current&&i()});let o=ge(l=>{r.current=l(e),i()});return[e,o]}const zr={prefix:String(Math.round(Math.random()*1e10)),current:0},ic=c.createContext(zr),m1=c.createContext(!1);let b1=!!(typeof window<"u"&&window.document&&window.document.createElement),zi=new WeakMap;function y1(t=!1){let e=c.useContext(ic),n=c.useRef(null);if(n.current===null&&!t){var r,i;let o=(i=c.__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=zi.get(o);l==null?zi.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,zi.delete(o))}n.current=++e.current}return n.current}function C1(t){let e=c.useContext(ic);e===zr&&!b1&&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=y1(!!t),r=e===zr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function w1(t){let e=c.useId(),[n]=c.useState(ir()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${zr.prefix}`;return t||`${r}-${e}`}const E1=typeof c.useId=="function"?w1:C1;function S1(){return!1}function x1(){return!0}function $1(t){return()=>{}}function ir(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore($1,S1,x1):c.useContext(m1)}let D1=!!(typeof window<"u"&&window.document&&window.document.createElement),dn=new Map,Ln;typeof FinalizationRegistry<"u"&&(Ln=new FinalizationRegistry(t=>{dn.delete(t)}));function $e(t){let[e,n]=c.useState(t),r=c.useRef(null),i=E1(e),o=c.useRef(null);if(Ln&&Ln.register(o,i),D1){const l=dn.get(i);l&&!l.includes(r)?l.push(r):dn.set(i,[r])}return re(()=>{let l=i;return()=>{Ln&&Ln.unregister(o),dn.delete(l)}},[i]),c.useEffect(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),i}function P1(t,e){if(t===e)return t;let n=dn.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=dn.get(e);return r?(r.forEach(i=>i.current=t),t):e}function ft(t=[]){let e=$e(),[n,r]=g1(e),i=c.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return re(i,[e,i,...t]),n}function pt(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const le=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},Oe=t=>t&&"window"in t&&t.window===t?t:le(t).defaultView||window;function _1(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function T1(t){return _1(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let I1=!1;function ui(){return I1}function ce(t,e){if(!ui())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:T1(n)?n=n.host:n=n.parentNode}return!1}const Se=(t=document)=>{var e;if(!ui())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 oe(t){return ui()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}class O1{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 u=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),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 k1(t,e,n,r){return ui()?new O1(t,e,n,r):t.createTreeWalker(e,n,r)}function oc(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=oc(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function ye(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=oc(t))&&(r&&(r+=" "),r+=e);return r}function ie(...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]=pt(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=ye(o,l):i==="id"&&o&&l?e.id=P1(o,l):e[i]=l!==void 0?l:o}}return e}function bl(...t){return t.length===1&&t[0]?t[0]:e=>{let n=!1;const r=t.map(i=>{const o=wa(i,e);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():wa(t[o],null)})}}}function wa(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}const N1=new Set(["id"]),M1=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),R1=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),L1=new Set(["dir","lang","hidden","inert","translate"]),Ea=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),A1=/^(data-.*)$/;function he(t,e={}){let{labelable:n,isLink:r,global:i,events:o=i,propNames:l}=e,a={};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(N1.has(s)||n&&M1.has(s)||r&&R1.has(s)||i&&L1.has(s)||o&&Ea.has(s)||s.endsWith("Capture")&&Ea.has(s.slice(0,-7))||l!=null&&l.has(s)||A1.test(s))&&(a[s]=t[s]);return a}function Be(t){if(F1())t.focus({preventScroll:!0});else{let e=K1(t);t.focus(),j1(e)}}let ur=null;function F1(){if(ur==null){ur=!1;try{document.createElement("div").focus({get preventScroll(){return ur=!0,!0}})}catch{}}return ur}function K1(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 j1(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function ci(t){var e;if(typeof window>"u"||window.navigator==null)return!1;let n=(e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands;return Array.isArray(n)&&n.some(r=>t.test(r.brand))||t.test(window.navigator.userAgent)}function yl(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 nt(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const vt=nt(function(){return yl(/^Mac/i)}),H1=nt(function(){return yl(/^iPhone/i)}),lc=nt(function(){return yl(/^iPad/i)||vt()&&navigator.maxTouchPoints>1}),di=nt(function(){return H1()||lc()}),V1=nt(function(){return vt()||di()}),Cl=nt(function(){return ci(/AppleWebKit/i)&&!ac()}),ac=nt(function(){return ci(/Chrome/i)}),wl=nt(function(){return ci(/Android/i)}),B1=nt(function(){return ci(/Firefox/i)}),z1=c.createContext({isNative:!0,open:Z1,useHref:t=>t});function fi(){return c.useContext(z1)}function U1(t,e){let n=t.getAttribute("target");return(!n||n==="_self")&&t.origin===location.origin&&!t.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function It(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}=e;B1()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(vt()?o=!0:l=!0);let u=Cl()&&vt()&&!lc()&&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});It.isOpening=n,Be(t),t.dispatchEvent(u),It.isOpening=!1}It.isOpening=!1;function W1(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 Z1(t,e){W1(t,n=>It(n,e))}function El(t){let e=fi();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}}function G1(t,e,n,r){!e.isNative&&t.currentTarget instanceof HTMLAnchorElement&&t.currentTarget.href&&!t.isDefaultPrevented()&&U1(t.currentTarget,t)&&n&&(t.preventDefault(),e.open(t.currentTarget,t,n,r))}let ut=new Map,ko=new Set;function Sa(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let i=ut.get(r.target);i||(i=new Set,ut.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=ut.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),ut.delete(r.target)),ut.size===0)){for(let o of ko)o();ko.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Sa():document.addEventListener("DOMContentLoaded",Sa));function q1(){for(const[t]of ut)"isConnected"in t&&!t.isConnected&&ut.delete(t)}function sc(t){requestAnimationFrame(()=>{q1(),ut.size===0?t():ko.add(t)})}function hi(){let t=c.useRef(new Map),e=c.useCallback((i,o,l,a)=>{let s=a!=null&&a.once?(...u)=>{t.current.delete(l),l(...u)}:l;t.current.set(l,{type:o,eventTarget:i,fn:s,options:a}),i.addEventListener(o,s,a)},[]),n=c.useCallback((i,o,l,a)=>{var s;let u=((s=t.current.get(l))===null||s===void 0?void 0:s.fn)||l;i.removeEventListener(o,u,a),t.current.delete(l)},[]),r=c.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return c.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function pi(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=$e(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 rt(t){const e=c.useRef(null),n=c.useRef(void 0),r=c.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 c.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 xa(t,e){const n=c.useRef(!0),r=c.useRef(null);re(()=>(n.current=!0,()=>{n.current=!1}),[]),re(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function Y1(){return typeof window.ResizeObserver<"u"}function No(t){const{ref:e,box:n,onResize:r}=t;c.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(Y1()){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 uc(t,e){re(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Wn(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 cc(t,e){let n=t;for(Wn(n,e)&&(n=n.parentElement);n&&!Wn(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function X1(t,e){const n=[];for(;t&&t!==document.documentElement;)Wn(t,e)&&n.push(t),t=t.parentElement;return n}let J1=0;const Ui=new Map;function Q1(t){let[e,n]=c.useState();return re(()=>{if(!t)return;let r=Ui.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${J1++}`;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},Ui.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Ui.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function cr(t,e,n,r){let i=ge(n),o=n==null;c.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 dc(t,e){let n=$a(t,e,"left"),r=$a(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,l=t.scrollLeft,a=t.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:p,scrollPaddingLeft:v}=getComputedStyle(t),b=l+parseInt(u,10),h=a+parseInt(s,10),g=b+t.clientWidth,y=h+t.clientHeight,w=parseInt(d,10)||0,C=parseInt(p,10)||0,$=parseInt(f,10)||0,D=parseInt(v,10)||0;n<=l+D?l=n-parseInt(u,10)-D:n+i>g-$&&(l+=n+i-g+$),r<=h+w?a=r-parseInt(s,10)-w:r+o>y-C&&(a+=r+o-y+C),t.scrollLeft=l,t.scrollTop=a}function $a(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 Da(t,e){if(t&&document.contains(t)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=X1(t);for(let u of s)dc(u,t)}else{var n;let{left:s,top:u}=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(u-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 Mo(t){return t.pointerType===""&&t.isTrusted?!0:wl()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function e5(t){return!wl()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function t5(t,e,n){let r=ge(()=>{n&&n(e)});c.useEffect(()=>{var i;let o=t==null||(i=t.current)===null||i===void 0?void 0:i.form;return o==null||o.addEventListener("reset",r),()=>{o==null||o.removeEventListener("reset",r)}},[t,r])}function n5(t){const e=c.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const r5="react-aria-clear-focus",i5="react-aria-focus";function on(t){return vt()?t.metaKey:t.ctrlKey}function o5(t,e=!0){let[n,r]=c.useState(!0),i=n&&e;return re(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),fc(t,i,c.useCallback(()=>r(!1),[])),i}function l5(t,e){let[n,r]=c.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 fc(t,i,c.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function fc(t,e,n){re(()=>{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||Ft.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}const a5=typeof Element<"u"&&"checkVisibility"in Element.prototype;function s5(t){const e=Oe(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 u5(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 Sl(t,e){return a5?t.checkVisibility()&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&s5(t)&&u5(t,e)&&(!t.parentElement||Sl(t.parentElement,t))}const xl=["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"])',"permission"],c5=xl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";xl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const d5=xl.join(':not([hidden]):not([tabindex="-1"]),');function hc(t){return t.matches(c5)&&Sl(t)&&!pc(t)}function f5(t){return t.matches(d5)&&Sl(t)&&!pc(t)}function pc(t){let e=t;for(;e!=null;){if(e instanceof e.ownerDocument.defaultView.HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}function vi(t,e,n){let[r,i]=c.useState(t||e),o=c.useRef(t!==void 0),l=t!==void 0;c.useEffect(()=>{let u=o.current;u!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),o.current=l},[l]);let a=l?t:r,s=c.useCallback((u,...d)=>{let f=(p,...v)=>{n&&(Object.is(a,p)||n(p,...v)),l||(a=p)};typeof u=="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 h=u(l?a:v,...b);return f(h,...d),l?v:h})):(l||i(u),f(u,...d))},[l,a,n]);return[a,s]}function Ro(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}const Zn=Symbol("default");function it({values:t,children:e}){for(let[n,r]of t)e=c.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 c.useMemo(()=>{let s,u,d;return typeof e=="function"?s=e({...a,defaultClassName:i}):s=e,typeof n=="function"?u=n({...a,defaultStyle:l||{}}):u=n,typeof r=="function"?d=r({...a,defaultChildren:o}):r==null?d=o:d=r,{className:s??i,style:u||l?{...l,...u}:void 0,children:d??o,"data-rac":""}},[e,n,r,i,o,l,a])}function gi(t,e){let n=c.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||Zn;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 Xe(t,e,n){let r=gi(n,t.slot)||{},{ref:i,...o}=r,l=rt(c.useMemo(()=>bl(e,i),[e,i])),a=ie(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 u=typeof o.style=="function"?o.style(s):o.style,d={...s.defaultStyle,...u},f=typeof t.style=="function"?t.style({...s,defaultStyle:d}):t.style;return{...d,...f}}:a.style={...o.style,...t.style}),[a,l]}function $l(t=!0){let[e,n]=c.useState(t),r=c.useRef(!1),i=c.useCallback(o=>{r.current=!0,n(!!o)},[]);return re(()=>{r.current||n(!1)},[]),[i,e]}function h5(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}class Dl{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new Dl(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 Pl{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 Pl,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(Pa(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();Pa(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 Pa(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 vc{*[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 fn extends vc{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof fn?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 fn?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 u;if(o.lastChildKey=(u=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&u!==void 0?u:null,(o.colSpan!=null||o.colIndex!=null)&&i){var d,f;let p=((d=o.colIndex)!==null&&d!==void 0?d:o.index)+((f=o.colSpan)!==null&&f!==void 0?f:1);if(p!==i.node.colIndex){let v=i.getMutableNode();v.colIndex=p}}}setProps(e,n,r,i){let o=this.getMutableNode(),{value:l,textValue:a,id:s,...u}=e;if(u.ref=n,o.props=u,o.rendered=r,o.render=i,o.value=l,o.textValue=a||(typeof u.children=="string"?u.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}u.colSpan!=null&&(o.colSpan=u.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 Dl(e,`react-aria-${++n.nodeId}`)}}class p5 extends vc{get isConnected(){return this.isMounted}createElement(e){return new fn(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 fn&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof fn&&(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 gc(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=c.useMemo(()=>new WeakMap,o);return c.useMemo(()=>{if(n&&typeof e=="function"){let u=[];for(let d of n){let f=l.get(d);if(!f){f=e(d);var a,s;let p=(s=(a=f.props.id)!==null&&a!==void 0?a:d.key)!==null&&s!==void 0?s:d.id;if(p==null)throw new Error("Could not determine key for item");r&&(p=r+":"+p),f=c.cloneElement(f,i?{key:p,id:p,value:d}:{key:p}),l.set(d,f)}u.push(f)}return u}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 Ur=c.createContext(!1);function v5(t){if(c.useContext(Ur))return c.createElement(c.Fragment,null,t.children);let n=c.createElement(Ur.Provider,{value:!0},t.children);return c.createElement("template",{"data-react-aria-hidden":!0},n)}function _l(t){let e=(n,r)=>c.useContext(Ur)?null:t(n,r);return e.displayName=t.displayName||t.name,c.forwardRef(e)}function g5(){return c.useContext(Ur)}function Tl(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function mc(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function bc(t){let e=c.useRef({isFocused:!1,observer:null});re(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=ge(r=>{t==null||t(r)});return c.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=Tl(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 Wr=!1;function _a(t){for(;t&&!hc(t);)t=t.parentElement;let e=Oe(t),n=e.document.activeElement;if(!n||n===t)return;Wr=!0;let r=!1,i=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},o=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),!t&&!r&&(r=!0,Be(n),s()))},l=d=>{(d.target===t||r)&&d.stopImmediatePropagation()},a=d=>{(d.target===t||r)&&(d.stopImmediatePropagation(),r||(r=!0,Be(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(u),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",a,!0),e.removeEventListener("focus",l,!0),Wr=!1,r=!1},u=requestAnimationFrame(s);return s}let sn="default",Lo="",Ir=new WeakMap;function Ta(t){if(di()){if(sn==="default"){const e=le(t);Lo=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}sn="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";Ir.set(t,t.style[e]),t.style[e]="none"}}function Wi(t){if(di()){if(sn!=="disabled")return;sn="restoring",setTimeout(()=>{sc(()=>{if(sn==="restoring"){const e=le(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Lo||""),Lo="",sn="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Ir.has(t)){let e=Ir.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Ir.delete(t)}}const Il=c.createContext({register:()=>{}});Il.displayName="PressResponderContext";function m5(t,e){return e.get?e.get.call(t):e.value}function yc(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function b5(t,e){var n=yc(t,e,"get");return m5(t,n)}function y5(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function C5(t,e,n){y5(t,e),e.set(t,n)}function w5(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 Ia(t,e,n){var r=yc(t,e,"set");return w5(t,r,n),n}function E5(t){let e=c.useContext(Il);if(e){let{register:n,...r}=e;t=ie(r,t),n()}return uc(e,t.ref),t}var dr=new WeakMap;class fr{continuePropagation(){Ia(this,dr,!1)}get shouldStopPropagation(){return b5(this,dr)}constructor(e,n,r,i){C5(this,dr,{writable:!0,value:void 0}),Ia(this,dr,!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,u=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,u=f-a.top):(s=a.width/2,u=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=u}}const Oa=Symbol("linkClicked"),ka="react-aria-pressable-style",Na="data-react-aria-pressable";function mi(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:a,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...v}=E5(t),[b,h]=c.useState(!1),g=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:w}=hi(),C=ge((S,R)=>{let U=g.current;if(a||U.didFirePressStart)return!1;let k=!0;if(U.isTriggeringEvent=!0,r){let Z=new fr("pressstart",R,S);r(Z),k=Z.shouldStopPropagation}return n&&n(!0),U.isTriggeringEvent=!1,U.didFirePressStart=!0,h(!0),k}),$=ge((S,R,U=!0)=>{let k=g.current;if(!k.didFirePressStart)return!1;k.didFirePressStart=!1,k.isTriggeringEvent=!0;let Z=!0;if(i){let I=new fr("pressend",R,S);i(I),Z=I.shouldStopPropagation}if(n&&n(!1),h(!1),e&&U&&!a){let I=new fr("press",R,S);e(I),Z&&(Z=I.shouldStopPropagation)}return k.isTriggeringEvent=!1,Z}),D=ge((S,R)=>{let U=g.current;if(a)return!1;if(o){U.isTriggeringEvent=!0;let k=new fr("pressup",R,S);return o(k),U.isTriggeringEvent=!1,k.shouldStopPropagation}return!0}),E=ge(S=>{let R=g.current;if(R.isPressed&&R.target){R.didFirePressStart&&R.pointerType!=null&&$(yt(R.target,S),R.pointerType,!1),R.isPressed=!1,R.isOverTarget=!1,R.activePointerId=null,R.pointerType=null,w(),f||Wi(R.target);for(let U of R.disposables)U();R.disposables=[]}}),x=ge(S=>{d&&E(S)}),L=ge(S=>{l==null||l(S)}),O=ge((S,R)=>{if(l){let U=new MouseEvent("click",S);mc(U,R),l(Tl(U))}}),B=c.useMemo(()=>{let S=g.current,R={onKeyDown(k){if(Zi(k.nativeEvent,k.currentTarget)&&ce(k.currentTarget,oe(k.nativeEvent))){var Z;La(oe(k.nativeEvent),k.key)&&k.preventDefault();let I=!0;if(!S.isPressed&&!k.repeat){S.target=k.currentTarget,S.isPressed=!0,S.pointerType="keyboard",I=C(k,"keyboard");let M=k.currentTarget,z=F=>{Zi(F,M)&&!F.repeat&&ce(M,oe(F))&&S.target&&D(yt(S.target,F),"keyboard")};y(le(k.currentTarget),"keyup",pt(z,U),!0)}I&&k.stopPropagation(),k.metaKey&&vt()&&((Z=S.metaKeyEvents)===null||Z===void 0||Z.set(k.key,k.nativeEvent))}else k.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(k){if(!(k&&!ce(k.currentTarget,oe(k.nativeEvent)))&&k&&k.button===0&&!S.isTriggeringEvent&&!It.isOpening){let Z=!0;if(a&&k.preventDefault(),!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||Mo(k.nativeEvent))){let I=C(k,"virtual"),M=D(k,"virtual"),z=$(k,"virtual");L(k),Z=I&&M&&z}else if(S.isPressed&&S.pointerType!=="keyboard"){let I=S.pointerType||k.nativeEvent.pointerType||"virtual",M=D(yt(k.currentTarget,k),I),z=$(yt(k.currentTarget,k),I,!0);Z=M&&z,S.isOverTarget=!1,L(k),E(k)}S.ignoreEmulatedMouseEvents=!1,Z&&k.stopPropagation()}}},U=k=>{var Z;if(S.isPressed&&S.target&&Zi(k,S.target)){var I;La(oe(k),k.key)&&k.preventDefault();let z=oe(k),F=ce(S.target,oe(k));$(yt(S.target,k),"keyboard",F),F&&O(k,S.target),w(),k.key!=="Enter"&&Ol(S.target)&&ce(S.target,z)&&!k[Oa]&&(k[Oa]=!0,It(S.target,k,!1)),S.isPressed=!1,(I=S.metaKeyEvents)===null||I===void 0||I.delete(k.key)}else if(k.key==="Meta"&&(!((Z=S.metaKeyEvents)===null||Z===void 0)&&Z.size)){var M;let z=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let F of z.values())(M=S.target)===null||M===void 0||M.dispatchEvent(new KeyboardEvent("keyup",F))}};if(typeof PointerEvent<"u"){R.onPointerDown=I=>{if(I.button!==0||!ce(I.currentTarget,oe(I.nativeEvent)))return;if(e5(I.nativeEvent)){S.pointerType="virtual";return}S.pointerType=I.pointerType;let M=!0;if(!S.isPressed){S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=I.pointerId,S.target=I.currentTarget,f||Ta(S.target),M=C(I,S.pointerType);let z=oe(I.nativeEvent);"releasePointerCapture"in z&&z.releasePointerCapture(I.pointerId),y(le(I.currentTarget),"pointerup",k,!1),y(le(I.currentTarget),"pointercancel",Z,!1)}M&&I.stopPropagation()},R.onMouseDown=I=>{if(ce(I.currentTarget,oe(I.nativeEvent))&&I.button===0){if(u){let M=_a(I.target);M&&S.disposables.push(M)}I.stopPropagation()}},R.onPointerUp=I=>{!ce(I.currentTarget,oe(I.nativeEvent))||S.pointerType==="virtual"||I.button===0&&!S.isPressed&&D(I,S.pointerType||I.pointerType)},R.onPointerEnter=I=>{I.pointerId===S.activePointerId&&S.target&&!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,C(yt(S.target,I),S.pointerType))},R.onPointerLeave=I=>{I.pointerId===S.activePointerId&&S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,$(yt(S.target,I),S.pointerType,!1),x(I))};let k=I=>{if(I.pointerId===S.activePointerId&&S.isPressed&&I.button===0&&S.target){if(ce(S.target,oe(I))&&S.pointerType!=null){let M=!1,z=setTimeout(()=>{S.isPressed&&S.target instanceof HTMLElement&&(M?E(I):(Be(S.target),S.target.click()))},80);y(I.currentTarget,"click",()=>M=!0,!0),S.disposables.push(()=>clearTimeout(z))}else E(I);S.isOverTarget=!1}},Z=I=>{E(I)};R.onDragStart=I=>{ce(I.currentTarget,oe(I.nativeEvent))&&E(I)}}else if(process.env.NODE_ENV==="test"){R.onMouseDown=I=>{if(I.button!==0||!ce(I.currentTarget,oe(I.nativeEvent)))return;if(S.ignoreEmulatedMouseEvents){I.stopPropagation();return}if(S.isPressed=!0,S.isOverTarget=!0,S.target=I.currentTarget,S.pointerType=Mo(I.nativeEvent)?"virtual":"mouse",Ft.flushSync(()=>C(I,S.pointerType))&&I.stopPropagation(),u){let z=_a(I.target);z&&S.disposables.push(z)}y(le(I.currentTarget),"mouseup",k,!1)},R.onMouseEnter=I=>{if(!ce(I.currentTarget,oe(I.nativeEvent)))return;let M=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,M=C(I,S.pointerType)),M&&I.stopPropagation()},R.onMouseLeave=I=>{if(!ce(I.currentTarget,oe(I.nativeEvent)))return;let M=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,M=$(I,S.pointerType,!1),x(I)),M&&I.stopPropagation()},R.onMouseUp=I=>{ce(I.currentTarget,oe(I.nativeEvent))&&!S.ignoreEmulatedMouseEvents&&I.button===0&&!S.isPressed&&D(I,S.pointerType||"mouse")};let k=I=>{if(I.button===0){if(S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&S.target.contains(I.target)&&S.pointerType!=null||E(I),S.isOverTarget=!1}};R.onTouchStart=I=>{if(!ce(I.currentTarget,oe(I.nativeEvent)))return;let M=S5(I.nativeEvent);if(!M)return;S.activePointerId=M.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=I.currentTarget,S.pointerType="touch",f||Ta(S.target),C(ot(S.target,I),S.pointerType)&&I.stopPropagation(),y(Oe(I.currentTarget),"scroll",Z,!0)},R.onTouchMove=I=>{if(!ce(I.currentTarget,oe(I.nativeEvent)))return;if(!S.isPressed){I.stopPropagation();return}let M=Ma(I.nativeEvent,S.activePointerId),z=!0;M&&Ra(M,I.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,z=C(ot(S.target,I),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,z=$(ot(S.target,I),S.pointerType,!1),x(ot(S.target,I))),z&&I.stopPropagation()},R.onTouchEnd=I=>{if(!ce(I.currentTarget,oe(I.nativeEvent)))return;if(!S.isPressed){I.stopPropagation();return}let M=Ma(I.nativeEvent,S.activePointerId),z=!0;M&&Ra(M,I.currentTarget)&&S.pointerType!=null?(D(ot(S.target,I),S.pointerType),z=$(ot(S.target,I),S.pointerType),O(I.nativeEvent,S.target)):S.isOverTarget&&S.pointerType!=null&&(z=$(ot(S.target,I),S.pointerType,!1)),z&&I.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!f&&Wi(S.target),w()},R.onTouchCancel=I=>{ce(I.currentTarget,oe(I.nativeEvent))&&(I.stopPropagation(),S.isPressed&&E(ot(S.target,I)))};let Z=I=>{S.isPressed&&ce(oe(I),S.target)&&E({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};R.onDragStart=I=>{ce(I.currentTarget,oe(I.nativeEvent))&&E(I)}}return R},[y,a,u,w,f,E,x,$,C,D,L,O]);return c.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const S=le(p.current);if(!S||!S.head||S.getElementById(ka))return;const R=S.createElement("style");R.id=ka,R.textContent=`
|
|
22
|
+
<%s key={someKey} {...props} />`,A,W,q,W),R[W+A]=!0)}if(W=null,$!==void 0&&(r($),W=""+$),l(N)&&(r(N.key),W=""+N.key),"key"in N){$={};for(var Y in N)Y!=="key"&&($[Y]=N[Y])}else $=N;return W&&a($,typeof I=="function"?I.displayName||I.name||"Unknown":I),c(I,W,L,B,i(),$,j,V)}function f(I){typeof I=="object"&&I!==null&&I.$$typeof===g&&I._store&&(I._store.validated=1)}var p=u,g=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),E=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),H=Symbol.for("react.client.reference"),w=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,Z=Array.isArray,_=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(I){return I()}};var U,P={},k=p.react_stack_bottom_frame.bind(p,o)(),z=_(n(o)),R={};Pr.Fragment=h,Pr.jsx=function(I,N,$,A,B){var L=1e4>w.recentlyCreatedOwnerStacks++;return d(I,N,$,!1,A,B,L?Error("react-stack-top-frame"):k,L?_(n(I)):z)},Pr.jsxs=function(I,N,$,A,B){var L=1e4>w.recentlyCreatedOwnerStacks++;return d(I,N,$,!0,A,B,L?Error("react-stack-top-frame"):k,L?_(n(I)):z)}}()),Pr}var Ta;function Sf(){return Ta||(Ta=1,process.env.NODE_ENV==="production"?fn.exports=Df():fn.exports=xf()),fn.exports}var b=Sf();const Ff={share:{copyLink:"Copy link",ok:"Ok",shareButton:"Share",modalTitle:"Share folder",modalAriaLabel:"Share modal",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_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"},authenticated:{title:"Authenticated",description:"Only authenticated users 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"}}}}},laGaufre:{label:"Digital LaSuite services",closeLabel:"Close the menu",viewMoreLabel:"View more",viewLessLabel:"View less",loadingText:"Loading…",newWindowLabelSuffix:" (new window)",headerLabel:"About"},userMenu:{term_of_service:"Terms of service",manage_account:"Manage account",open:"Open user menu",close:"Close user menu",accountSettings:"Account settings",logout:"Logout",dialogTitle:"User menu"},treeView:{viewMore:"Load more elements"},footer:{logo:{alt:"Logo of the French government"}}},$f={components:Ff},Pf={share:{copyLink:"Copier le lien",ok:"Ok",modalTitle:"Partage",modalAriaLabel:"Modale de 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"},authenticated:{title:"Authenticated",description:"Seuls les utilisateurs authentifiés peuvent accéder au document"}}},role:{choices:{reader:{title:"Lecture seule"},editor:{title:"Édition"}}}}},laGaufre:{label:"Services de la Suite numérique",closeLabel:"Fermer le menu",loadingText:"Chargement…",viewMoreLabel:"Voir plus",viewLessLabel:"Voir moins",newWindowLabelSuffix:" (nouvelle fenêtre)",headerLabel:"À propos"},userMenu:{term_of_service:"Conditions d'utilisation",open:"Ouvrir le menu utilisateur",close:"Fermer le menu utilisateur",accountSettings:"Paramètres du compte",logout:"Déconnexion",dialogTitle:"Menu utilisateur",manage_account:"Gérer le compte"},treeView:{viewMore:"Charger plus d'éléments"},footer:{logo:{alt:"Logo du gouvernement français"}}},Af={components:Pf};function Gi(t){return t&&typeof t=="object"&&!Array.isArray(t)}function br(t,...e){if(!e.length)return t;const r=e.shift();if(Gi(t)&&Gi(r))for(const n in r)Gi(r[n])?(t[n]||Object.assign(t,{[n]:{}}),br(t[n],r[n])):Object.assign(t,{[n]:r[n]});return br(t,...e)}const y2={"en-US":br(X.enUS,$f),"fr-FR":br(X.frFR,Af)},Tf=t=>b.jsx(X.CunninghamProvider,{customLocales:y2,...t}),_f="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",kf="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",C2=({disabled:t,onClick:e})=>b.jsx(X.Button,{disabled:t,className:"pro-connect-button",onClick:e,style:{backgroundImage:`url("${t?kf:_f}")`}});u.createContext(null);u.createContext(null);u.createContext(null);u.createContext(null);u.createContext(null);const If=u.createContext({}),ne=typeof document<"u"?u.useLayoutEffect:()=>{};var qi;const Of=(qi=u.useInsertionEffect)!==null&&qi!==void 0?qi:ne;function ve(t){const e=u.useRef(null);return Of(()=>{e.current=t},[t]),u.useCallback((...r)=>{const n=e.current;return n==null?void 0:n(...r)},[])}function Mf(t){let[e,r]=u.useState(t),n=u.useRef(null),i=ve(()=>{if(!n.current)return;let l=n.current.next();if(l.done){n.current=null;return}e===l.value?i():r(l.value)});ne(()=>{n.current&&i()});let o=ve(l=>{n.current=l(e),i()});return[e,o]}const Zn={prefix:String(Math.round(Math.random()*1e10)),current:0},E2=u.createContext(Zn),Nf=u.createContext(!1);let Bf=!!(typeof window<"u"&&window.document&&window.document.createElement),Yi=new WeakMap;function Rf(t=!1){let e=u.useContext(E2),r=u.useRef(null);if(r.current===null&&!t){var n,i;let o=(i=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(n=i.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(o){let l=Yi.get(o);l==null?Yi.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,Yi.delete(o))}r.current=++e.current}return r.current}function Lf(t){let e=u.useContext(E2);e===Zn&&!Bf&&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 r=Rf(!!t),n=e===Zn&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${n}-${r}`}function Kf(t){let e=u.useId(),[r]=u.useState(sn()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Zn.prefix}`;return t||`${n}-${e}`}const jf=typeof u.useId=="function"?Kf:Lf;function Hf(){return!1}function Vf(){return!0}function zf(t){return()=>{}}function sn(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(zf,Hf,Vf):u.useContext(Nf)}let Uf=!!(typeof window<"u"&&window.document&&window.document.createElement),ur=new Map,Lr;typeof FinalizationRegistry<"u"&&(Lr=new FinalizationRegistry(t=>{ur.delete(t)}));function Se(t){let[e,r]=u.useState(t),n=u.useRef(null),i=jf(e),o=u.useRef(null);if(Lr&&Lr.register(o,i),Uf){const l=ur.get(i);l&&!l.includes(n)?l.push(n):ur.set(i,[n])}return ne(()=>{let l=i;return()=>{Lr&&Lr.unregister(o),ur.delete(l)}},[i]),u.useEffect(()=>{let l=n.current;return l&&r(l),()=>{l&&(n.current=null)}}),i}function Wf(t,e){if(t===e)return t;let r=ur.get(t);if(r)return r.forEach(i=>i.current=e),e;let n=ur.get(e);return n?(n.forEach(i=>i.current=t),t):e}function ft(t=[]){let e=Se(),[r,n]=Mf(e),i=u.useCallback(()=>{n(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,n]);return ne(i,[e,i,...t]),r}function pt(...t){return(...e)=>{for(let r of t)typeof r=="function"&&r(...e)}}const le=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},_e=t=>t&&"window"in t&&t.window===t?t:le(t).defaultView||window;function Zf(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function Gf(t){return Zf(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let qf=!1;function hi(){return qf}function ue(t,e){if(!hi())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let r=e;for(;r!==null;){if(r===t)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:Gf(r)?r=r.host:r=r.parentNode}return!1}const De=(t=document)=>{var e;if(!hi())return t.activeElement;let r=t.activeElement;for(;r&&"shadowRoot"in r&&(!((e=r.shadowRoot)===null||e===void 0)&&e.activeElement);)r=r.shadowRoot.activeElement;return r};function oe(t){return hi()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}class Yf{get currentNode(){return this._currentNode}set currentNode(e){if(!ue(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=e,i=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=n,a=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});r.push(a),a.currentNode=i,this._currentSetFor.add(a),n=i=l.host}else n=n.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=r}get doc(){return this._doc}firstChild(){let e=this.currentNode,r=this.nextNode();return ue(e,r)?(r&&(this.currentNode=r),r):(this.currentNode=e,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var r;let i;if(typeof this.filter=="function"?i=this.filter(e):!((r=this.filter)===null||r===void 0)&&r.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 n=this.nextNode();return n&&(this.currentNode=n),n}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 r=e.previousNode();if(r){if(r.shadowRoot){var n;let o;if(typeof this.filter=="function"?o=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(o=this.filter.acceptNode(r)),o===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let l=this.lastChild();return l&&(this.currentNode=l),l}return r&&(this.currentNode=r),r}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,r,n,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=r,this.filter=i??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(e.createTreeWalker(r,n,this._acceptNode));const o=r.shadowRoot;if(o){const l=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function Xf(t,e,r,n){return hi()?new Yf(t,e,r,n):t.createTreeWalker(e,r,n)}function w2(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=w2(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function ye(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=w2(t))&&(n&&(n+=" "),n+=e);return n}function ie(...t){let e={...t[0]};for(let r=1;r<t.length;r++){let n=t[r];for(let i in n){let o=e[i],l=n[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=pt(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=ye(o,l):i==="id"&&o&&l?e.id=Wf(o,l):e[i]=l!==void 0?l:o}}return e}function $l(...t){return t.length===1&&t[0]?t[0]:e=>{let r=!1;const n=t.map(i=>{const o=_a(i,e);return r||(r=typeof o=="function"),o});if(r)return()=>{n.forEach((i,o)=>{typeof i=="function"?i():_a(t[o],null)})}}}function _a(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}const Jf=new Set(["id"]),Qf=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),e5=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),t5=new Set(["dir","lang","hidden","inert","translate"]),ka=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),r5=/^(data-.*)$/;function he(t,e={}){let{labelable:r,isLink:n,global:i,events:o=i,propNames:l}=e,a={};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(Jf.has(s)||r&&Qf.has(s)||n&&e5.has(s)||i&&t5.has(s)||o&&ka.has(s)||s.endsWith("Capture")&&ka.has(s.slice(0,-7))||l!=null&&l.has(s)||r5.test(s))&&(a[s]=t[s]);return a}function Ve(t){if(n5())t.focus({preventScroll:!0});else{let e=i5(t);t.focus(),o5(e)}}let hn=null;function n5(){if(hn==null){hn=!1;try{document.createElement("div").focus({get preventScroll(){return hn=!0,!0}})}catch{}}return hn}function i5(t){let e=t.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==n;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&r.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function o5(t){for(let{element:e,scrollTop:r,scrollLeft:n}of t)e.scrollTop=r,e.scrollLeft=n}function pi(t){var e;if(typeof window>"u"||window.navigator==null)return!1;let r=(e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands;return Array.isArray(r)&&r.some(n=>t.test(n.brand))||t.test(window.navigator.userAgent)}function Pl(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 rt(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const gt=rt(function(){return Pl(/^Mac/i)}),l5=rt(function(){return Pl(/^iPhone/i)}),D2=rt(function(){return Pl(/^iPad/i)||gt()&&navigator.maxTouchPoints>1}),gi=rt(function(){return l5()||D2()}),a5=rt(function(){return gt()||gi()}),Al=rt(function(){return pi(/AppleWebKit/i)&&!x2()}),x2=rt(function(){return pi(/Chrome/i)}),Tl=rt(function(){return pi(/Android/i)}),s5=rt(function(){return pi(/Firefox/i)}),c5=u.createContext({isNative:!0,open:f5,useHref:t=>t});function vi(){return u.useContext(c5)}function u5(t,e){let r=t.getAttribute("target");return(!r||r==="_self")&&t.origin===location.origin&&!t.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function Tt(t,e,r=!0){var n,i;let{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}=e;s5()&&(!((i=window.event)===null||i===void 0||(n=i.type)===null||n===void 0)&&n.startsWith("key"))&&t.target==="_blank"&&(gt()?o=!0:l=!0);let c=Al()&>()&&!D2()&&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=r,Ve(t),t.dispatchEvent(c),Tt.isOpening=!1}Tt.isOpening=!1;function d5(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let r=document.createElement("a");r.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(r.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(r.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(r.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(r.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(r),e(r),t.removeChild(r)}}function f5(t,e){d5(t,r=>Tt(r,e))}function _l(t){let e=vi();var r;const n=e.useHref((r=t==null?void 0:t.href)!==null&&r!==void 0?r:"");return{href:t!=null&&t.href?n: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}}function h5(t,e,r,n){!e.isNative&&t.currentTarget instanceof HTMLAnchorElement&&t.currentTarget.href&&!t.isDefaultPrevented()&&u5(t.currentTarget,t)&&r&&(t.preventDefault(),e.open(t.currentTarget,t,r,n))}let ct=new Map,jo=new Set;function Ia(){if(typeof window>"u")return;function t(n){return"propertyName"in n}let e=n=>{if(!t(n)||!n.target)return;let i=ct.get(n.target);i||(i=new Set,ct.set(n.target,i),n.target.addEventListener("transitioncancel",r,{once:!0})),i.add(n.propertyName)},r=n=>{if(!t(n)||!n.target)return;let i=ct.get(n.target);if(i&&(i.delete(n.propertyName),i.size===0&&(n.target.removeEventListener("transitioncancel",r),ct.delete(n.target)),ct.size===0)){for(let o of jo)o();jo.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Ia():document.addEventListener("DOMContentLoaded",Ia));function p5(){for(const[t]of ct)"isConnected"in t&&!t.isConnected&&ct.delete(t)}function S2(t){requestAnimationFrame(()=>{p5(),ct.size===0?t():jo.add(t)})}function bi(){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)},[]),r=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)},[]),n=u.useCallback(()=>{t.current.forEach((i,o)=>{r(i.eventTarget,i.type,o,i.options)})},[r]);return u.useEffect(()=>n,[n]),{addGlobalListener:e,removeGlobalListener:r,removeAllGlobalListeners:n}}function mi(t,e){let{id:r,"aria-label":n,"aria-labelledby":i}=t;return r=Se(r),i&&n?i=[...new Set([r,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!n&&!i&&e&&(n=e),{id:r,"aria-label":n,"aria-labelledby":i}}function nt(t){const e=u.useRef(null),r=u.useRef(void 0),n=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,r.current&&(r.current(),r.current=void 0),i!=null&&(r.current=n(i))}}),[n])}function Oa(t,e){const r=u.useRef(!0),n=u.useRef(null);ne(()=>(r.current=!0,()=>{r.current=!1}),[]),ne(()=>{r.current?r.current=!1:(!n.current||e.some((i,o)=>!Object.is(i,n[o])))&&t(),n.current=e},e)}function g5(){return typeof window.ResizeObserver<"u"}function Ho(t){const{ref:e,box:r,onResize:n}=t;u.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(g5()){const o=new window.ResizeObserver(l=>{l.length&&n()});return o.observe(i,{box:r}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,e,r])}function F2(t,e){ne(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Gr(t,e){if(!t)return!1;let r=window.getComputedStyle(t),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&e&&(n=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),n}function $2(t,e){let r=t;for(Gr(r,e)&&(r=r.parentElement);r&&!Gr(r,e);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function v5(t,e){const r=[];for(;t&&t!==document.documentElement;)Gr(t,e)&&r.push(t),t=t.parentElement;return r}let b5=0;const Xi=new Map;function m5(t){let[e,r]=u.useState();return ne(()=>{if(!t)return;let n=Xi.get(t);if(n)r(n.element.id);else{let i=`react-aria-description-${b5++}`;r(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),n={refCount:0,element:o},Xi.set(t,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Xi.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function pn(t,e,r,n){let i=ve(r),o=r==null;u.useEffect(()=>{if(o||!t.current)return;let l=t.current;return l.addEventListener(e,i,n),()=>{l.removeEventListener(e,i,n)}},[t,e,n,o,i])}function P2(t,e){let r=Ma(t,e,"left"),n=Ma(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,l=t.scrollLeft,a=t.scrollTop,{borderTopWidth:s,borderLeftWidth:c,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:p,scrollPaddingLeft:g}=getComputedStyle(t),y=l+parseInt(c,10),h=a+parseInt(s,10),v=y+t.clientWidth,m=h+t.clientHeight,C=parseInt(d,10)||0,E=parseInt(p,10)||0,F=parseInt(f,10)||0,D=parseInt(g,10)||0;r<=l+D?l=r-parseInt(c,10)-D:r+i>v-F&&(l+=r+i-v+F),n<=h+C?a=n-parseInt(s,10)-C:n+o>m-E&&(a+=n+o-m+E),t.scrollLeft=l,t.scrollTop=a}function Ma(t,e,r){const n=r==="left"?"offsetLeft":"offsetTop";let i=0;for(;e.offsetParent&&(i+=e[n],e.offsetParent!==t);){if(e.offsetParent.contains(t)){i-=t[n];break}e=e.offsetParent}return i}function Na(t,e){if(t&&document.contains(t)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=v5(t);for(let c of s)P2(c,t)}else{var r;let{left:s,top:c}=t.getBoundingClientRect();t==null||(r=t.scrollIntoView)===null||r===void 0||r.call(t,{block:"nearest"});let{left:d,top:f}=t.getBoundingClientRect();if(Math.abs(s-d)>1||Math.abs(c-f)>1){var n,i,o;e==null||(i=e.containingElement)===null||i===void 0||(n=i.scrollIntoView)===null||n===void 0||n.call(i,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}}}function Vo(t){return t.pointerType===""&&t.isTrusted?!0:Tl()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function y5(t){return!Tl()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function C5(t,e,r){let n=ve(()=>{r&&r(e)});u.useEffect(()=>{var i;let o=t==null||(i=t.current)===null||i===void 0?void 0:i.form;return o==null||o.addEventListener("reset",n),()=>{o==null||o.removeEventListener("reset",n)}},[t,n])}function E5(t){const e=u.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const w5="react-aria-clear-focus",D5="react-aria-focus";function ir(t){return gt()?t.metaKey:t.ctrlKey}function x5(t,e=!0){let[r,n]=u.useState(!0),i=r&&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]),A2(t,i,u.useCallback(()=>n(!1),[])),i}function S5(t,e){let[r,n]=u.useState(e?"open":"closed");switch(r){case"open":e||n("exiting");break;case"closed":case"exiting":e&&n("open");break}let i=r==="exiting";return A2(t,i,u.useCallback(()=>{n(o=>o==="exiting"?"closed":o)},[])),i}function A2(t,e,r){ne(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){r();return}let n=t.current.getAnimations();if(n.length===0){r();return}let i=!1;return Promise.all(n.map(o=>o.finished)).then(()=>{i||Rt.flushSync(()=>{r()})}).catch(()=>{}),()=>{i=!0}}},[t,e,r])}const F5=typeof Element<"u"&&"checkVisibility"in Element.prototype;function $5(t){const e=_e(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:r,visibility:n}=t.style,i=r!=="none"&&n!=="hidden"&&n!=="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 P5(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 kl(t,e){return F5?t.checkVisibility()&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&$5(t)&&P5(t,e)&&(!t.parentElement||kl(t.parentElement,t))}const Il=["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"])',"permission"],A5=Il.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Il.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const T5=Il.join(':not([hidden]):not([tabindex="-1"]),');function T2(t){return t.matches(A5)&&kl(t)&&!_2(t)}function _5(t){return t.matches(T5)&&kl(t)&&!_2(t)}function _2(t){let e=t;for(;e!=null;){if(e instanceof e.ownerDocument.defaultView.HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}function yi(t,e,r){let[n,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:n,s=u.useCallback((c,...d)=>{let f=(p,...g)=>{r&&(Object.is(a,p)||r(p,...g)),l||(a=p)};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((g,...y)=>{let h=c(l?a:g,...y);return f(h,...d),l?g:h})):(l||i(c),f(c,...d))},[l,a,r]);return[a,s]}function zo(t,e=-1/0,r=1/0){return Math.min(Math.max(t,e),r)}const qr=Symbol("default");function it({values:t,children:e}){for(let[r,n]of t)e=u.createElement(r.Provider,{value:n},e);return e}function Fe(t){let{className:e,style:r,children:n,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 r=="function"?c=r({...a,defaultStyle:l||{}}):c=r,typeof n=="function"?d=n({...a,defaultChildren:o}):n==null?d=o:d=n,{className:s??i,style:c||l?{...l,...c}:void 0,children:d??o,"data-rac":""}},[e,r,n,i,o,l,a])}function Ci(t,e){let r=u.useContext(t);if(e===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=e||qr;if(!r.slots[n]){let i=new Intl.ListFormat().format(Object.keys(r.slots).map(l=>`"${l}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return r.slots[n]}return r}function Xe(t,e,r){let n=Ci(r,t.slot)||{},{ref:i,...o}=n,l=nt(u.useMemo(()=>$l(e,i),[e,i])),a=ie(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 Ol(t=!0){let[e,r]=u.useState(t),n=u.useRef(!1),i=u.useCallback(o=>{n.current=!0,r(!!o)},[]);return ne(()=>{n.current||r(!1)},[]),[i,e]}function k5(t){const e=/^(data-.*)$/;let r={};for(const n in t)e.test(n)||(r[n]=t[n]);return r}class Ml{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new Ml(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,r){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=r}}class Nl{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 r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(e),i=(n==null?void 0:n.firstChildKey)!=null?r.get(n.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?r.get(i.nextKey):void 0}}}getKeyBefore(e){let r=this.keyMap.get(e);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);var n;return(n=r==null?void 0:r.key)!==null&&n!==void 0?n:null}return r.parentKey}getKeyAfter(e){let r=this.keyMap.get(e);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.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 r;return(r=e==null?void 0:e.key)!==null&&r!==void 0?r:null}getItem(e){var r;return(r=this.keyMap.get(e))!==null&&r!==void 0?r:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,r=new e;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r}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,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=r,this.frozen=!n}UNSTABLE_filter(e){let r=new Nl,n=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(Ba(a,e,this,r)){let s=a.clone();l==null&&(o.firstChildKey=s.key),r.firstKey==null&&(r.firstKey=o.key),l&&l.parentKey===s.parentKey?(l.nextKey=s.key,s.prevKey=l.key):s.prevKey=null,s.nextKey=null,r.addNode(s),l=s}l&&(l.type!=="header"?(o.lastChildKey=l.key,n==null?o.prevKey=null:(n.type==="section"||n.type==="separator")&&(n.nextKey=o.key,o.prevKey=n.key),o.nextKey=null,n=o,r.addNode(o)):(r.firstKey===o.key&&(r.firstKey=null),r.removeNode(l.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,(n==null?void 0:n.type)==="section"&&(n.nextKey=o.key,o.prevKey=n.key,n=o,r.addNode(o))}else{let o=i.clone();Ba(o,e,this,r)&&(r.firstKey==null&&(r.firstKey=o.key),n!=null&&n.type!=="section"&&n.type!=="separator"&&n.parentKey===o.parentKey?(n.nextKey=o.key,o.prevKey=n.key):o.prevKey=null,o.nextKey=null,r.addNode(o),n=o)}if((n==null?void 0:n.type)==="separator"&&n.nextKey===null){let i;n.prevKey!=null&&(i=r.getItem(n.prevKey),i.nextKey=null),r.removeNode(n.key),n=i}return r.lastKey=(n==null?void 0:n.key)||null,r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}function Ba(t,e,r,n){if(t.type==="subdialogtrigger"||t.type==="submenutrigger"){let i=[...r.getChildren(t.key)][0];if(i&&e(i.textValue)){let o=i.clone();return n.addNode(o),!0}else return!1}else return t.type==="header"?!0:e(t.textValue)}class k2{*[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,r){if(r==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=r,e.previousSibling=r.previousSibling,e.index=r.index,this.firstChild===r?this.firstChild=e:r.previousSibling&&(r.previousSibling.nextSibling=e),r.previousSibling=e,e.parentNode=r.parentNode,this.invalidateChildIndices(r),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 dr extends k2{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof dr?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,r,n;let i=this.nextVisibleSibling,o=this.getMutableNode();o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof dr?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=(r=this.firstVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&s!==void 0?s:null;var c;if(o.lastChildKey=(c=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&c!==void 0?c:null,(o.colSpan!=null||o.colIndex!=null)&&i){var d,f;let p=((d=o.colIndex)!==null&&d!==void 0?d:o.index)+((f=o.colSpan)!==null&&f!==void 0?f:1);if(p!==i.node.colIndex){let g=i.getMutableNode();g.colIndex=p}}}setProps(e,r,n,i){let o=this.getMutableNode(),{value:l,textValue:a,id:s,...c}=e;if(c.ref=r,o.props=c,o.rendered=n,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(r){let n=r==="none";if(e.isHidden!==n){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=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new Ml(e,`react-aria-${++r.nodeId}`)}}class I5 extends k2{get isConnected(){return this.isMounted}createElement(e){return new dr(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 r=this.getMutableCollection();if(!r.getItem(e.node.key))for(let n of e)this.addNode(n);r.addNode(e.node)}removeNode(e){for(let n of e)this.removeNode(n);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 dr&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof dr&&(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,r,n,i;this.nextCollection.commit((n=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&n!==void 0?n:null,(i=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.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 I2(t){let{children:e,items:r,idScope:n,addIdAndValue:i,dependencies:o=[]}=t,l=u.useMemo(()=>new WeakMap,o);return u.useMemo(()=>{if(r&&typeof e=="function"){let c=[];for(let d of r){let f=l.get(d);if(!f){f=e(d);var a,s;let p=(s=(a=f.props.id)!==null&&a!==void 0?a:d.key)!==null&&s!==void 0?s:d.id;if(p==null)throw new Error("Could not determine key for item");n&&(p=n+":"+p),f=u.cloneElement(f,i?{key:p,id:p,value:d}:{key:p}),l.set(d,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,r,l,n,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 Gn=u.createContext(!1);function O5(t){if(u.useContext(Gn))return u.createElement(u.Fragment,null,t.children);let r=u.createElement(Gn.Provider,{value:!0},t.children);return u.createElement("template",{"data-react-aria-hidden":!0},r)}function Bl(t){let e=(r,n)=>u.useContext(Gn)?null:t(r,n);return e.displayName=t.displayName||t.name,u.forwardRef(e)}function M5(){return u.useContext(Gn)}function Rl(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function O2(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function M2(t){let e=u.useRef({isFocused:!1,observer:null});ne(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=ve(n=>{t==null||t(n)});return u.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=n.target,o=l=>{if(e.current.isFocused=!1,i.disabled){let a=Rl(l);r(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"]})}},[r])}let qn=!1;function Ra(t){for(;t&&!T2(t);)t=t.parentElement;let e=_e(t),r=e.document.activeElement;if(!r||r===t)return;qn=!0;let n=!1,i=d=>{(d.target===r||n)&&d.stopImmediatePropagation()},o=d=>{(d.target===r||n)&&(d.stopImmediatePropagation(),!t&&!n&&(n=!0,Ve(r),s()))},l=d=>{(d.target===t||n)&&d.stopImmediatePropagation()},a=d=>{(d.target===t||n)&&(d.stopImmediatePropagation(),n||(n=!0,Ve(r),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),qn=!1,n=!1},c=requestAnimationFrame(s);return s}let ar="default",Uo="",On=new WeakMap;function La(t){if(gi()){if(ar==="default"){const e=le(t);Uo=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}ar="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";On.set(t,t.style[e]),t.style[e]="none"}}function Ji(t){if(gi()){if(ar!=="disabled")return;ar="restoring",setTimeout(()=>{S2(()=>{if(ar==="restoring"){const e=le(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Uo||""),Uo="",ar="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&On.has(t)){let e=On.get(t),r="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[r]==="none"&&(t.style[r]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),On.delete(t)}}const Ll=u.createContext({register:()=>{}});Ll.displayName="PressResponderContext";function N5(t,e){return e.get?e.get.call(t):e.value}function N2(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function B5(t,e){var r=N2(t,e,"get");return N5(t,r)}function R5(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function L5(t,e,r){R5(t,e),e.set(t,r)}function K5(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function Ka(t,e,r){var n=N2(t,e,"set");return K5(t,n,r),r}function j5(t){let e=u.useContext(Ll);if(e){let{register:r,...n}=e;t=ie(n,t),r()}return F2(e,t.ref),t}var gn=new WeakMap;class vn{continuePropagation(){Ka(this,gn,!1)}get shouldStopPropagation(){return B5(this,gn)}constructor(e,r,n,i){L5(this,gn,{writable:!0,value:void 0}),Ka(this,gn,!0);var o;let l=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:n.currentTarget;const a=l==null?void 0:l.getBoundingClientRect();let s,c=0,d,f=null;n.clientX!=null&&n.clientY!=null&&(d=n.clientX,f=n.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=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=c}}const ja=Symbol("linkClicked"),Ha="react-aria-pressable-style",Va="data-react-aria-pressable";function Ei(t){let{onPress:e,onPressChange:r,onPressStart:n,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:a,isPressed:s,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...g}=j5(t),[y,h]=u.useState(!1),v=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:m,removeAllGlobalListeners:C}=bi(),E=ve((w,M)=>{let Z=v.current;if(a||Z.didFirePressStart)return!1;let _=!0;if(Z.isTriggeringEvent=!0,n){let U=new vn("pressstart",M,w);n(U),_=U.shouldStopPropagation}return r&&r(!0),Z.isTriggeringEvent=!1,Z.didFirePressStart=!0,h(!0),_}),F=ve((w,M,Z=!0)=>{let _=v.current;if(!_.didFirePressStart)return!1;_.didFirePressStart=!1,_.isTriggeringEvent=!0;let U=!0;if(i){let P=new vn("pressend",M,w);i(P),U=P.shouldStopPropagation}if(r&&r(!1),h(!1),e&&Z&&!a){let P=new vn("press",M,w);e(P),U&&(U=P.shouldStopPropagation)}return _.isTriggeringEvent=!1,U}),D=ve((w,M)=>{let Z=v.current;if(a)return!1;if(o){Z.isTriggeringEvent=!0;let _=new vn("pressup",M,w);return o(_),Z.isTriggeringEvent=!1,_.shouldStopPropagation}return!0}),x=ve(w=>{let M=v.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&F(yt(M.target,w),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,C(),f||Ji(M.target);for(let Z of M.disposables)Z();M.disposables=[]}}),S=ve(w=>{d&&x(w)}),O=ve(w=>{l==null||l(w)}),K=ve((w,M)=>{if(l){let Z=new MouseEvent("click",w);O2(Z,M),l(Rl(Z))}}),H=u.useMemo(()=>{let w=v.current,M={onKeyDown(_){if(Qi(_.nativeEvent,_.currentTarget)&&ue(_.currentTarget,oe(_.nativeEvent))){var U;Wa(oe(_.nativeEvent),_.key)&&_.preventDefault();let P=!0;if(!w.isPressed&&!_.repeat){w.target=_.currentTarget,w.isPressed=!0,w.pointerType="keyboard",P=E(_,"keyboard");let k=_.currentTarget,z=R=>{Qi(R,k)&&!R.repeat&&ue(k,oe(R))&&w.target&&D(yt(w.target,R),"keyboard")};m(le(_.currentTarget),"keyup",pt(z,Z),!0)}P&&_.stopPropagation(),_.metaKey&>()&&((U=w.metaKeyEvents)===null||U===void 0||U.set(_.key,_.nativeEvent))}else _.key==="Meta"&&(w.metaKeyEvents=new Map)},onClick(_){if(!(_&&!ue(_.currentTarget,oe(_.nativeEvent)))&&_&&_.button===0&&!w.isTriggeringEvent&&!Tt.isOpening){let U=!0;if(a&&_.preventDefault(),!w.ignoreEmulatedMouseEvents&&!w.isPressed&&(w.pointerType==="virtual"||Vo(_.nativeEvent))){let P=E(_,"virtual"),k=D(_,"virtual"),z=F(_,"virtual");O(_),U=P&&k&&z}else if(w.isPressed&&w.pointerType!=="keyboard"){let P=w.pointerType||_.nativeEvent.pointerType||"virtual",k=D(yt(_.currentTarget,_),P),z=F(yt(_.currentTarget,_),P,!0);U=k&&z,w.isOverTarget=!1,O(_),x(_)}w.ignoreEmulatedMouseEvents=!1,U&&_.stopPropagation()}}},Z=_=>{var U;if(w.isPressed&&w.target&&Qi(_,w.target)){var P;Wa(oe(_),_.key)&&_.preventDefault();let z=oe(_),R=ue(w.target,oe(_));F(yt(w.target,_),"keyboard",R),R&&K(_,w.target),C(),_.key!=="Enter"&&Kl(w.target)&&ue(w.target,z)&&!_[ja]&&(_[ja]=!0,Tt(w.target,_,!1)),w.isPressed=!1,(P=w.metaKeyEvents)===null||P===void 0||P.delete(_.key)}else if(_.key==="Meta"&&(!((U=w.metaKeyEvents)===null||U===void 0)&&U.size)){var k;let z=w.metaKeyEvents;w.metaKeyEvents=void 0;for(let R of z.values())(k=w.target)===null||k===void 0||k.dispatchEvent(new KeyboardEvent("keyup",R))}};if(typeof PointerEvent<"u"){M.onPointerDown=P=>{if(P.button!==0||!ue(P.currentTarget,oe(P.nativeEvent)))return;if(y5(P.nativeEvent)){w.pointerType="virtual";return}w.pointerType=P.pointerType;let k=!0;if(!w.isPressed){w.isPressed=!0,w.isOverTarget=!0,w.activePointerId=P.pointerId,w.target=P.currentTarget,f||La(w.target),k=E(P,w.pointerType);let z=oe(P.nativeEvent);"releasePointerCapture"in z&&z.releasePointerCapture(P.pointerId),m(le(P.currentTarget),"pointerup",_,!1),m(le(P.currentTarget),"pointercancel",U,!1)}k&&P.stopPropagation()},M.onMouseDown=P=>{if(ue(P.currentTarget,oe(P.nativeEvent))&&P.button===0){if(c){let k=Ra(P.target);k&&w.disposables.push(k)}P.stopPropagation()}},M.onPointerUp=P=>{!ue(P.currentTarget,oe(P.nativeEvent))||w.pointerType==="virtual"||P.button===0&&!w.isPressed&&D(P,w.pointerType||P.pointerType)},M.onPointerEnter=P=>{P.pointerId===w.activePointerId&&w.target&&!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,E(yt(w.target,P),w.pointerType))},M.onPointerLeave=P=>{P.pointerId===w.activePointerId&&w.target&&w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,F(yt(w.target,P),w.pointerType,!1),S(P))};let _=P=>{if(P.pointerId===w.activePointerId&&w.isPressed&&P.button===0&&w.target){if(ue(w.target,oe(P))&&w.pointerType!=null){let k=!1,z=setTimeout(()=>{w.isPressed&&w.target instanceof HTMLElement&&(k?x(P):(Ve(w.target),w.target.click()))},80);m(P.currentTarget,"click",()=>k=!0,!0),w.disposables.push(()=>clearTimeout(z))}else x(P);w.isOverTarget=!1}},U=P=>{x(P)};M.onDragStart=P=>{ue(P.currentTarget,oe(P.nativeEvent))&&x(P)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=P=>{if(P.button!==0||!ue(P.currentTarget,oe(P.nativeEvent)))return;if(w.ignoreEmulatedMouseEvents){P.stopPropagation();return}if(w.isPressed=!0,w.isOverTarget=!0,w.target=P.currentTarget,w.pointerType=Vo(P.nativeEvent)?"virtual":"mouse",Rt.flushSync(()=>E(P,w.pointerType))&&P.stopPropagation(),c){let z=Ra(P.target);z&&w.disposables.push(z)}m(le(P.currentTarget),"mouseup",_,!1)},M.onMouseEnter=P=>{if(!ue(P.currentTarget,oe(P.nativeEvent)))return;let k=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!0,k=E(P,w.pointerType)),k&&P.stopPropagation()},M.onMouseLeave=P=>{if(!ue(P.currentTarget,oe(P.nativeEvent)))return;let k=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!1,k=F(P,w.pointerType,!1),S(P)),k&&P.stopPropagation()},M.onMouseUp=P=>{ue(P.currentTarget,oe(P.nativeEvent))&&!w.ignoreEmulatedMouseEvents&&P.button===0&&!w.isPressed&&D(P,w.pointerType||"mouse")};let _=P=>{if(P.button===0){if(w.ignoreEmulatedMouseEvents){w.ignoreEmulatedMouseEvents=!1;return}w.target&&w.target.contains(P.target)&&w.pointerType!=null||x(P),w.isOverTarget=!1}};M.onTouchStart=P=>{if(!ue(P.currentTarget,oe(P.nativeEvent)))return;let k=H5(P.nativeEvent);if(!k)return;w.activePointerId=k.identifier,w.ignoreEmulatedMouseEvents=!0,w.isOverTarget=!0,w.isPressed=!0,w.target=P.currentTarget,w.pointerType="touch",f||La(w.target),E(ot(w.target,P),w.pointerType)&&P.stopPropagation(),m(_e(P.currentTarget),"scroll",U,!0)},M.onTouchMove=P=>{if(!ue(P.currentTarget,oe(P.nativeEvent)))return;if(!w.isPressed){P.stopPropagation();return}let k=za(P.nativeEvent,w.activePointerId),z=!0;k&&Ua(k,P.currentTarget)?!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,z=E(ot(w.target,P),w.pointerType)):w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,z=F(ot(w.target,P),w.pointerType,!1),S(ot(w.target,P))),z&&P.stopPropagation()},M.onTouchEnd=P=>{if(!ue(P.currentTarget,oe(P.nativeEvent)))return;if(!w.isPressed){P.stopPropagation();return}let k=za(P.nativeEvent,w.activePointerId),z=!0;k&&Ua(k,P.currentTarget)&&w.pointerType!=null?(D(ot(w.target,P),w.pointerType),z=F(ot(w.target,P),w.pointerType),K(P.nativeEvent,w.target)):w.isOverTarget&&w.pointerType!=null&&(z=F(ot(w.target,P),w.pointerType,!1)),z&&P.stopPropagation(),w.isPressed=!1,w.activePointerId=null,w.isOverTarget=!1,w.ignoreEmulatedMouseEvents=!0,w.target&&!f&&Ji(w.target),C()},M.onTouchCancel=P=>{ue(P.currentTarget,oe(P.nativeEvent))&&(P.stopPropagation(),w.isPressed&&x(ot(w.target,P)))};let U=P=>{w.isPressed&&ue(oe(P),w.target)&&x({currentTarget:w.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=P=>{ue(P.currentTarget,oe(P.nativeEvent))&&x(P)}}return M},[m,a,c,C,f,x,S,F,E,D,O,K]);return u.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const w=le(p.current);if(!w||!w.head||w.getElementById(Ha))return;const M=w.createElement("style");M.id=Ha,M.textContent=`
|
|
23
23
|
@layer {
|
|
24
|
-
[${
|
|
24
|
+
[${Va}] {
|
|
25
25
|
touch-action: pan-x pan-y pinch-zoom;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
`.trim(),S.head.prepend(R)},[p]),c.useEffect(()=>{let S=g.current;return()=>{var R;f||Wi((R=S.target)!==null&&R!==void 0?R:void 0);for(let U of S.disposables)U();S.disposables=[]}},[f]),{isPressed:s||b,pressProps:ie(v,B,{[Na]:!0})}}function Ol(t){return t.tagName==="A"&&t.hasAttribute("href")}function Zi(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Oe(i).HTMLInputElement&&!Cc(i,n)||i instanceof Oe(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&Ol(i))&&n!=="Enter")}function S5(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Ma(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 ot(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 yt(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 x5(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 $5(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Ra(t,e){let n=e.getBoundingClientRect(),r=x5(t);return $5(n,r)}function D5(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Ol(t)}function La(t,e){return t instanceof HTMLInputElement?!Cc(t,e):D5(t)}const P5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Cc(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":P5.has(t.type)}let Kt=null,Ao=new Set,Bn=new Map,Ot=!1,Fo=!1;const _5={Tab:!0,Escape:!0};function bi(t,e){for(let n of Ao)n(t,e)}function T5(t){return!(t.metaKey||!vt()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Zr(t){Ot=!0,T5(t)&&(Kt="keyboard",bi("keyboard",t))}function Re(t){Kt="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Ot=!0,bi("pointer",t))}function wc(t){Mo(t)&&(Ot=!0,Kt="virtual")}function Ec(t){t.target===window||t.target===document||Wr||!t.isTrusted||(!Ot&&!Fo&&(Kt="virtual",bi("virtual",t)),Ot=!1,Fo=!1)}function Sc(){Wr||(Ot=!1,Fo=!0)}function Ko(t){if(typeof window>"u"||typeof document>"u"||Bn.get(Oe(t)))return;const e=Oe(t),n=le(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Ot=!0,r.apply(this,arguments)},n.addEventListener("keydown",Zr,!0),n.addEventListener("keyup",Zr,!0),n.addEventListener("click",wc,!0),e.addEventListener("focus",Ec,!0),e.addEventListener("blur",Sc,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Re,!0),n.addEventListener("pointermove",Re,!0),n.addEventListener("pointerup",Re,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Re,!0),n.addEventListener("mousemove",Re,!0),n.addEventListener("mouseup",Re,!0)),e.addEventListener("beforeunload",()=>{xc(t)},{once:!0}),Bn.set(e,{focus:r})}const xc=(t,e)=>{const n=Oe(t),r=le(t);e&&r.removeEventListener("DOMContentLoaded",e),Bn.has(n)&&(n.HTMLElement.prototype.focus=Bn.get(n).focus,r.removeEventListener("keydown",Zr,!0),r.removeEventListener("keyup",Zr,!0),r.removeEventListener("click",wc,!0),n.removeEventListener("focus",Ec,!0),n.removeEventListener("blur",Sc,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Re,!0),r.removeEventListener("pointermove",Re,!0),r.removeEventListener("pointerup",Re,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Re,!0),r.removeEventListener("mousemove",Re,!0),r.removeEventListener("mouseup",Re,!0)),Bn.delete(n))};function I5(t){const e=le(t);let n;return e.readyState!=="loading"?Ko(t):(n=()=>{Ko(t)},e.addEventListener("DOMContentLoaded",n)),()=>xc(t,n)}typeof document<"u"&&I5();function bn(){return Kt!=="pointer"}function Gr(){return Kt}function $c(t){Kt=t,bi(t,null)}const O5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function k5(t,e,n){let r=le(n==null?void 0:n.target);const i=typeof window<"u"?Oe(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?Oe(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?Oe(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?Oe(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||r.activeElement instanceof i&&!O5.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof l&&r.activeElement.isContentEditable,!(t&&e==="keyboard"&&n instanceof a&&!_5[n.key])}function N5(t,e,n){Ko(),c.useEffect(()=>{let r=(i,o)=>{k5(!!(n!=null&&n.isTextInput),i,o)&&t(bn())};return Ao.add(r),()=>{Ao.delete(r)}},e)}function gt(t){const e=le(t),n=Se(e);if(Gr()==="virtual"){let r=n;sc(()=>{Se(e)===r&&t.isConnected&&Be(t)})}else Be(t)}function kl(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=c.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=bc(o),a=c.useCallback(s=>{const u=le(s.target),d=u?Se(u):Se();s.target===s.currentTarget&&d===oe(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 Aa(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 Dc(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Aa(t.onKeyDown),onKeyUp:Aa(t.onKeyUp)}}}let jo=c.createContext(null);function M5(t){let e=c.useContext(jo)||{};uc(e,t);let{ref:n,...r}=e;return r}function Pc(t,e){let{focusProps:n}=kl(t),{keyboardProps:r}=Dc(t),i=ie(n,r),o=M5(e),l=t.isDisabled?{}:o,a=c.useRef(t.autoFocus);c.useEffect(()=>{a.current&&e.current&>(e.current),a.current=!1},[e]);let s=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(s=void 0),{focusableProps:ie({...i,tabIndex:s},l)}}function R5({children:t}){let e=c.useMemo(()=>({register:()=>{}}),[]);return c.createElement(Il.Provider,{value:e},t)}function yi(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=c.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=hi(),s=c.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]),u=bc(s),d=c.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const p=le(f.target),v=Se(p);if(!o.current.isFocusWithin&&v===oe(f.nativeEvent)){r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,u(f);let b=f.currentTarget;l(p,"focus",h=>{if(o.current.isFocusWithin&&!ce(b,h.target)){let g=new p.defaultView.FocusEvent("blur",{relatedTarget:h.target});mc(g,b);let y=Tl(g);s(y)}},{capture:!0})}},[r,i,u,l,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let qr=!1,hr=0;function Ho(){qr=!0,setTimeout(()=>{qr=!1},50)}function Fa(t){t.pointerType==="touch"&&Ho()}function L5(){if(!(typeof document>"u"))return hr===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Fa):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Ho)),hr++,()=>{hr--,!(hr>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Fa):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Ho))}}function Sn(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=c.useState(!1),a=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(L5,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=hi(),{hoverProps:d,triggerHoverEnd:f}=c.useMemo(()=>{let p=(h,g)=>{if(a.pointerType=g,i||g==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let y=h.currentTarget;a.target=y,s(le(h.target),"pointerover",w=>{a.isHovered&&a.target&&!ce(a.target,w.target)&&v(w,w.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:y,pointerType:g}),n&&n(!0),l(!0)},v=(h,g)=>{let y=a.target;a.pointerType="",a.target=null,!(g==="touch"||!a.isHovered||!y)&&(a.isHovered=!1,u(),r&&r({type:"hoverend",target:y,pointerType:g}),n&&n(!1),l(!1))},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=h=>{qr&&h.pointerType==="mouse"||p(h,h.pointerType)},b.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&v(h,h.pointerType)}):process.env.NODE_ENV==="test"&&(b.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!qr&&p(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&v(h,"mouse")}),{hoverProps:b,triggerHoverEnd:v}},[e,n,r,i,a,s,u]);return c.useEffect(()=>{i&&f({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:d,isHovered:o}}function A5(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=ge(s=>{n&&pr(s,e)&&(i&&i(s),o.current.isPointerDown=!0)}),a=ge(s=>{n&&n(s)});c.useEffect(()=>{let s=o.current;if(r)return;const u=e.current,d=le(u);if(typeof PointerEvent<"u"){let f=p=>{s.isPointerDown&&pr(p,e)&&a(p),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&&pr(v,e)&&a(v),s.isPointerDown=!1},p=v=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&pr(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",p,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",p,!0)}}},[e,r,l,a])}function pr(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 F5=500;function _c(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=F5,accessibilityDescription:l}=t;const a=c.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:u}=hi(),{pressProps:d}=mi({isDisabled:e,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),a.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),le(p.target).activeElement!==p.target&&Be(p.target),i&&i({...p,type:"longpress"}),a.current=void 0},o),p.pointerType==="touch")){let v=b=>{b.preventDefault()};s(p.target,"contextmenu",v,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",v)},30)},{once:!0})}},onPressEnd(p){a.current&&clearTimeout(a.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Q1(i&&!e?l:void 0);return{longPressProps:ie(d,f)}}var vr={exports:{}},Gi={};/**
|
|
28
|
+
`.trim(),w.head.prepend(M)},[p]),u.useEffect(()=>{let w=v.current;return()=>{var M;f||Ji((M=w.target)!==null&&M!==void 0?M:void 0);for(let Z of w.disposables)Z();w.disposables=[]}},[f]),{isPressed:s||y,pressProps:ie(g,H,{[Va]:!0})}}function Kl(t){return t.tagName==="A"&&t.hasAttribute("href")}function Qi(t,e){const{key:r,code:n}=t,i=e,o=i.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(i instanceof _e(i).HTMLInputElement&&!B2(i,r)||i instanceof _e(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&Kl(i))&&r!=="Enter")}function H5(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function za(t,e){const r=t.changedTouches;for(let n=0;n<r.length;n++){const i=r[n];if(i.identifier===e)return i}return null}function ot(t,e){let r=0,n=0;return e.targetTouches&&e.targetTouches.length===1&&(r=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:r,clientY:n}}function yt(t,e){let r=e.clientX,n=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:r,clientY:n}}function V5(t){let e=0,r=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?r=t.height/2:t.radiusY!==void 0&&(r=t.radiusY),{top:t.clientY-r,right:t.clientX+e,bottom:t.clientY+r,left:t.clientX-e}}function z5(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Ua(t,e){let r=e.getBoundingClientRect(),n=V5(t);return z5(r,n)}function U5(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Kl(t)}function Wa(t,e){return t instanceof HTMLInputElement?!B2(t,e):U5(t)}const W5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function B2(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":W5.has(t.type)}let Lt=null,Wo=new Set,Wr=new Map,_t=!1,Zo=!1;const Z5={Tab:!0,Escape:!0};function wi(t,e){for(let r of Wo)r(t,e)}function G5(t){return!(t.metaKey||!gt()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Yn(t){_t=!0,G5(t)&&(Lt="keyboard",wi("keyboard",t))}function Me(t){Lt="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(_t=!0,wi("pointer",t))}function R2(t){Vo(t)&&(_t=!0,Lt="virtual")}function L2(t){t.target===window||t.target===document||qn||!t.isTrusted||(!_t&&!Zo&&(Lt="virtual",wi("virtual",t)),_t=!1,Zo=!1)}function K2(){qn||(_t=!1,Zo=!0)}function Go(t){if(typeof window>"u"||typeof document>"u"||Wr.get(_e(t)))return;const e=_e(t),r=le(t);let n=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){_t=!0,n.apply(this,arguments)},r.addEventListener("keydown",Yn,!0),r.addEventListener("keyup",Yn,!0),r.addEventListener("click",R2,!0),e.addEventListener("focus",L2,!0),e.addEventListener("blur",K2,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",Me,!0),r.addEventListener("pointermove",Me,!0),r.addEventListener("pointerup",Me,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",Me,!0),r.addEventListener("mousemove",Me,!0),r.addEventListener("mouseup",Me,!0)),e.addEventListener("beforeunload",()=>{j2(t)},{once:!0}),Wr.set(e,{focus:n})}const j2=(t,e)=>{const r=_e(t),n=le(t);e&&n.removeEventListener("DOMContentLoaded",e),Wr.has(r)&&(r.HTMLElement.prototype.focus=Wr.get(r).focus,n.removeEventListener("keydown",Yn,!0),n.removeEventListener("keyup",Yn,!0),n.removeEventListener("click",R2,!0),r.removeEventListener("focus",L2,!0),r.removeEventListener("blur",K2,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",Me,!0),n.removeEventListener("pointermove",Me,!0),n.removeEventListener("pointerup",Me,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",Me,!0),n.removeEventListener("mousemove",Me,!0),n.removeEventListener("mouseup",Me,!0)),Wr.delete(r))};function q5(t){const e=le(t);let r;return e.readyState!=="loading"?Go(t):(r=()=>{Go(t)},e.addEventListener("DOMContentLoaded",r)),()=>j2(t,r)}typeof document<"u"&&q5();function mr(){return Lt!=="pointer"}function Xn(){return Lt}function H2(t){Lt=t,wi(t,null)}const Y5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function X5(t,e,r){let n=le(r==null?void 0:r.target);const i=typeof window<"u"?_e(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?_e(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?_e(r==null?void 0:r.target).HTMLElement:HTMLElement,a=typeof window<"u"?_e(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return t=t||n.activeElement instanceof i&&!Y5.has(n.activeElement.type)||n.activeElement instanceof o||n.activeElement instanceof l&&n.activeElement.isContentEditable,!(t&&e==="keyboard"&&r instanceof a&&!Z5[r.key])}function J5(t,e,r){Go(),u.useEffect(()=>{let n=(i,o)=>{X5(!!(r!=null&&r.isTextInput),i,o)&&t(mr())};return Wo.add(n),()=>{Wo.delete(n)}},e)}function vt(t){const e=le(t),r=De(e);if(Xn()==="virtual"){let n=r;S2(()=>{De(e)===n&&t.isConnected&&Ve(t)})}else Ve(t)}function jl(t){let{isDisabled:e,onFocus:r,onBlur:n,onFocusChange:i}=t;const o=u.useCallback(s=>{if(s.target===s.currentTarget)return n&&n(s),i&&i(!1),!0},[n,i]),l=M2(o),a=u.useCallback(s=>{const c=le(s.target),d=c?De(c):De();s.target===s.currentTarget&&d===oe(s.nativeEvent)&&(r&&r(s),i&&i(!0),l(s))},[i,r,l]);return{focusProps:{onFocus:!e&&(r||i||n)?a:void 0,onBlur:!e&&(n||i)?o:void 0}}}function Za(t){if(!t)return;let e=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.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(n),e&&r.stopPropagation()}}function V2(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Za(t.onKeyDown),onKeyUp:Za(t.onKeyUp)}}}let qo=u.createContext(null);function Q5(t){let e=u.useContext(qo)||{};F2(e,t);let{ref:r,...n}=e;return n}function z2(t,e){let{focusProps:r}=jl(t),{keyboardProps:n}=V2(t),i=ie(r,n),o=Q5(e),l=t.isDisabled?{}:o,a=u.useRef(t.autoFocus);u.useEffect(()=>{a.current&&e.current&&vt(e.current),a.current=!1},[e]);let s=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(s=void 0),{focusableProps:ie({...i,tabIndex:s},l)}}function e4({children:t}){let e=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(Ll.Provider,{value:e},t)}function Di(t){let{isDisabled:e,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:i}=t,o=u.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=bi(),s=u.useCallback(f=>{f.currentTarget.contains(f.target)&&o.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(o.current.isFocusWithin=!1,a(),r&&r(f),i&&i(!1))},[r,i,o,a]),c=M2(s),d=u.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const p=le(f.target),g=De(p);if(!o.current.isFocusWithin&&g===oe(f.nativeEvent)){n&&n(f),i&&i(!0),o.current.isFocusWithin=!0,c(f);let y=f.currentTarget;l(p,"focus",h=>{if(o.current.isFocusWithin&&!ue(y,h.target)){let v=new p.defaultView.FocusEvent("blur",{relatedTarget:h.target});O2(v,y);let m=Rl(v);s(m)}},{capture:!0})}},[n,i,c,l,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let Jn=!1,bn=0;function Yo(){Jn=!0,setTimeout(()=>{Jn=!1},50)}function Ga(t){t.pointerType==="touch"&&Yo()}function t4(){if(!(typeof document>"u"))return bn===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Ga):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Yo)),bn++,()=>{bn--,!(bn>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Ga):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Yo))}}function Dr(t){let{onHoverStart:e,onHoverChange:r,onHoverEnd:n,isDisabled:i}=t,[o,l]=u.useState(!1),a=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(t4,[]);let{addGlobalListener:s,removeAllGlobalListeners:c}=bi(),{hoverProps:d,triggerHoverEnd:f}=u.useMemo(()=>{let p=(h,v)=>{if(a.pointerType=v,i||v==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let m=h.currentTarget;a.target=m,s(le(h.target),"pointerover",C=>{a.isHovered&&a.target&&!ue(a.target,C.target)&&g(C,C.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:m,pointerType:v}),r&&r(!0),l(!0)},g=(h,v)=>{let m=a.target;a.pointerType="",a.target=null,!(v==="touch"||!a.isHovered||!m)&&(a.isHovered=!1,c(),n&&n({type:"hoverend",target:m,pointerType:v}),r&&r(!1),l(!1))},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=h=>{Jn&&h.pointerType==="mouse"||p(h,h.pointerType)},y.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&g(h,h.pointerType)}):process.env.NODE_ENV==="test"&&(y.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!Jn&&p(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&g(h,"mouse")}),{hoverProps:y,triggerHoverEnd:g}},[e,r,n,i,a,s,c]);return u.useEffect(()=>{i&&f({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:d,isHovered:o}}function r4(t){let{ref:e,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:i}=t,o=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=ve(s=>{r&&mn(s,e)&&(i&&i(s),o.current.isPointerDown=!0)}),a=ve(s=>{r&&r(s)});u.useEffect(()=>{let s=o.current;if(n)return;const c=e.current,d=le(c);if(typeof PointerEvent<"u"){let f=p=>{s.isPointerDown&&mn(p,e)&&a(p),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=g=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&mn(g,e)&&a(g),s.isPointerDown=!1},p=g=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&mn(g,e)&&a(g),s.isPointerDown=!1};return d.addEventListener("mousedown",l,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",l,!0),d.addEventListener("touchend",p,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",p,!0)}}},[e,n,l,a])}function mn(t,e){if(t.button>0)return!1;if(t.target){const r=t.target.ownerDocument;if(!r||!r.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const n4=500;function U2(t){let{isDisabled:e,onLongPressStart:r,onLongPressEnd:n,onLongPress:i,threshold:o=n4,accessibilityDescription:l}=t;const a=u.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:c}=bi(),{pressProps:d}=Ei({isDisabled:e,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(r&&r({...p,type:"longpressstart"}),a.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),le(p.target).activeElement!==p.target&&Ve(p.target),i&&i({...p,type:"longpress"}),a.current=void 0},o),p.pointerType==="touch")){let g=y=>{y.preventDefault()};s(p.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(p){a.current&&clearTimeout(a.current),n&&(p.pointerType==="mouse"||p.pointerType==="touch")&&n({...p,type:"longpressend"})}}),f=m5(i&&!e?l:void 0);return{longPressProps:ie(d,f)}}var yn={exports:{}},eo={};/**
|
|
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
|
|
36
|
+
*/var qa;function i4(){if(qa)return eo;qa=1;var t=u;function e(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:e,n=t.useState,i=t.useEffect,o=t.useLayoutEffect,l=t.useDebugValue;function a(f,p){var g=p(),y=n({inst:{value:g,getSnapshot:p}}),h=y[0].inst,v=y[1];return o(function(){h.value=g,h.getSnapshot=p,s(h)&&v({inst:h})},[f,g,p]),i(function(){return s(h)&&v({inst:h}),f(function(){s(h)&&v({inst:h})})},[f]),l(g),g}function s(f){var p=f.getSnapshot;f=f.value;try{var g=p();return!r(f,g)}catch{return!0}}function c(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return eo.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,eo}var to={};/**
|
|
37
37
|
* @license React
|
|
38
38
|
* use-sync-external-store-shim.development.js
|
|
39
39
|
*
|
|
@@ -41,59 +41,59 @@ 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 ja;function j5(){return ja||(ja=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 h=b();if(!f){var g=b();o(h,g)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}g=l({inst:{value:h,getSnapshot:b}});var y=g[0].inst,w=g[1];return s(function(){y.value=h,y.getSnapshot=b,n(y)&&w({inst:y})},[v,h,b]),a(function(){return n(y)&&w({inst:y}),v(function(){n(y)&&w({inst:y})})},[v]),u(h),h}function n(v){var b=v.getSnapshot;v=v.value;try{var h=b();return!o(v,h)}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=c,o=typeof Object.is=="function"?Object.is:t,l=i.useState,a=i.useEffect,s=i.useLayoutEffect,u=i.useDebugValue,d=!1,f=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;qi.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),qi}var Ha;function H5(){return Ha||(Ha=1,process.env.NODE_ENV==="production"?vr.exports=K5():vr.exports=j5()),vr.exports}var Nl=H5();const Tc=c.createContext(!1),Gn=c.createContext(null);function Ci(t){if(c.useContext(Gn))return t.content;let{collection:n,document:r}=U5(t.createCollection);return c.createElement(c.Fragment,null,c.createElement(v5,null,c.createElement(Gn.Provider,{value:r},t.content)),c.createElement(V5,{render:t.children,collection:n}))}function V5({collection:t,render:e}){return e(t)}function B5(t,e,n){let r=ir(),i=c.useRef(r);i.current=r;let o=c.useCallback(()=>i.current?n():e(),[e,n]);return Nl.useSyncExternalStore(t,o)}const z5=typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore:B5;function U5(t){let[e]=c.useState(()=>new p5((t==null?void 0:t())||new Pl)),n=c.useCallback(l=>e.subscribe(l),[e]),r=c.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=c.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=z5(n,r,i);return re(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const Vo=c.createContext(null);function W5(t,e,n,r,i,o){let l=c.useCallback(s=>{s==null||s.setProps(e,n,r,o)},[e,n,r,o]),a=c.useContext(Vo);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?c.createElement(Vo.Provider,{value:s},i):null}return c.createElement(t,{ref:l},i)}function wi(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=c.forwardRef((i,o)=>{let l=c.useContext(jo);if(!c.useContext(Tc)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return W5(t,i,o,"children"in i?i.children:null,null,s=>c.createElement(jo.Provider,{value:l},c.createElement(n,{node:s})))});return r.displayName=e.name,r}function Z5(t){return gc({...t,addIdAndValue:!0})}const Va=c.createContext(null);function Ml(t){let e=c.useContext(Va),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope||(e==null?void 0:e.idScope),i=Z5({...t,idScope:r,dependencies:n});return c.useContext(Gn)&&(i=c.createElement(G5,null,i)),e=c.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),c.createElement(Va.Provider,{value:e},i)}function G5({children:t}){let e=c.useContext(Gn),n=c.useMemo(()=>c.createElement(Gn.Provider,{value:null},c.createElement(Tc.Provider,{value:!0},t)),[t]);return ir()?c.createElement(Vo.Provider,{value:e},n):Ft.createPortal(n,e)}const q5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Y5=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function X5(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 q5.has(n.script)}let e=t.split("-")[0];return Y5.has(e)}const J5=Symbol.for("react-aria.i18n.locale");function Ic(){let t=typeof window<"u"&&window[J5]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:X5(t)?"rtl":"ltr"}}let Bo=Ic(),An=new Set;function Ba(){Bo=Ic();for(let t of An)t(Bo)}function Q5(){let t=ir(),[e,n]=c.useState(Bo);return c.useEffect(()=>(An.size===0&&window.addEventListener("languagechange",Ba),An.add(n),()=>{An.delete(n),An.size===0&&window.removeEventListener("languagechange",Ba)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const eh=c.createContext(null);function jt(){let t=Q5();return c.useContext(eh)||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 Oc(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 th(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 nh=Symbol.for("react-aria.i18n.locale"),rh=Symbol.for("react-aria.i18n.strings");let Wt;class Ei{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=ih(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[nh];if(Wt===void 0){let i=window[rh];if(!i)return null;Wt={};for(let o in i)Wt[o]=new Ei({[n]:i[o]},n)}let r=Wt==null?void 0:Wt[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 ih(t,e,n="en-US"){if(e[t])return e[t];let r=oh(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function oh(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const za=new Map,Ua=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=za.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),za.set(o,l));let a=l.select(e);return i=n[a]||n.other,typeof i=="function"?i():i}number(e){let n=Ua.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Ua.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 Wa=new WeakMap;function ah(t){let e=Wa.get(t);return e||(e=new Ei(t),Wa.set(t,e)),e}function sh(t,e){return e&&Ei.getGlobalDictionaryForPackage(e)||ah(t)}function kc(t,e){let{locale:n}=jt(),r=sh(t,e);return c.useMemo(()=>new lh(n,r),[n,r])}let Yi=new Map;function Rl(t){let{locale:e}=jt(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Yi.has(n))return Yi.get(n);let r=new Intl.Collator(e,t);return Yi.set(n,r),r}function uh(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:a,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:f,href:p,target:v,rel:b,type:h="button"}=t,g;n==="button"?g={type:h,disabled:r,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:g={role:"button",href:n==="a"&&!r?p:void 0,target:n==="a"?v:void 0,type:n==="input"?h:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?b:void 0};let{pressProps:y,isPressed:w}=mi({onPressStart:o,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:a,onClick:f,isDisabled:r,preventFocusOnPress:u,ref:e}),{focusableProps:C}=Pc(t,e);d&&(C.tabIndex=r?-1:C.tabIndex);let $=ie(C,y,he(t,{labelable:!0}));return{isPressed:w,buttonProps:ie(g,$,{"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"],"aria-disabled":t["aria-disabled"]})}}const Za=c.createContext(null),zo="react-aria-focus-scope-restore";let ue=null;function Ll(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=c.useRef(null),l=c.useRef(null),a=c.useRef([]),{parentNode:s}=c.useContext(Za)||{},u=c.useMemo(()=>new Wo({scopeRef:a}),[a]);re(()=>{let p=s||ve.root;if(ve.getTreeNode(p.scopeRef)&&ue&&!Yr(ue,p.scopeRef)){let v=ve.getTreeNode(ue);v&&(p=v)}p.addChild(u),ve.addNode(u)},[u,s]),re(()=>{let p=ve.getTreeNode(a);p&&(p.contain=!!n)},[n]),re(()=>{var p;let v=(p=o.current)===null||p===void 0?void 0:p.nextSibling,b=[],h=g=>g.stopPropagation();for(;v&&v!==l.current;)b.push(v),v.addEventListener(zo,h),v=v.nextSibling;return a.current=b,()=>{for(let g of b)g.removeEventListener(zo,h)}},[e]),vh(a,r,n),fh(a,n),gh(a,r,n),ph(a,i),c.useEffect(()=>{const p=Se(le(a.current?a.current[0]:void 0));let v=null;if(Ae(p,a.current)){for(let b of ve.traverse())b.scopeRef&&Ae(p,b.scopeRef.current)&&(v=b);v===ve.getTreeNode(a)&&(ue=v.scopeRef)}},[a]),re(()=>()=>{var p,v,b;let h=(b=(v=ve.getTreeNode(a))===null||v===void 0||(p=v.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&b!==void 0?b:null;(a===ue||Yr(a,ue))&&(!h||ve.getTreeNode(h))&&(ue=h),ve.removeTreeNode(a)},[a]);let d=c.useMemo(()=>ch(a),[]),f=c.useMemo(()=>({focusManager:d,parentNode:u}),[u,d]);return c.createElement(Za.Provider,{value:f},c.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,c.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function ch(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||Se(le((a=n[0])!==null&&a!==void 0?a:void 0)),u=n[0].previousElementSibling,d=xt(n),f=qe(d,{tabbable:i,accept:l},n);f.currentNode=Ae(s,n)?s:u;let p=f.nextNode();return!p&&o&&(f.currentNode=u,p=f.nextNode()),p&&et(p,!0),p},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||Se(le((a=n[0])!==null&&a!==void 0?a:void 0)),u=n[n.length-1].nextElementSibling,d=xt(n),f=qe(d,{tabbable:i,accept:l},n);f.currentNode=Ae(s,n)?s:u;let p=f.previousNode();return!p&&o&&(f.currentNode=u,p=f.previousNode()),p&&et(p,!0),p},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=xt(n),l=qe(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let a=l.nextNode();return a&&et(a,!0),a},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=xt(n),l=qe(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let a=l.previousNode();return a&&et(a,!0),a}}}function xt(t){return t[0].parentElement}function Fn(t){let e=ve.getTreeNode(ue);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function dh(t){if(t.checked)return!0;let e=[];if(!t.form)e=[...le(t).querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`)].filter(o=>!o.form);else{var n,r;let o=(r=t.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(t.name);e=[...o??[]]}return e?!e.some(o=>o.checked):!1}function fh(t,e){let n=c.useRef(void 0),r=c.useRef(void 0);re(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=le(i?i[0]:void 0);let l=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Fn(t)||u.isComposing)return;let d=Se(o),f=t.current;if(!f||!Ae(d,f))return;let p=xt(f),v=qe(p,{tabbable:!0},f);if(!d)return;v.currentNode=d;let b=u.shiftKey?v.previousNode():v.nextNode();b||(v.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=u.shiftKey?v.previousNode():v.nextNode()),u.preventDefault(),b&&et(b,!0)},a=u=>{(!ue||Yr(ue,t))&&Ae(oe(u),t.current)?(ue=t,n.current=oe(u)):Fn(t)&&!dt(oe(u),t)?n.current?n.current.focus():ue&&ue.current&&Uo(ue.current):Fn(t)&&(n.current=oe(u))},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=Gr(),f=(d==="virtual"||d===null)&&wl()&&ac(),p=Se(o);if(!f&&p&&Fn(t)&&!dt(p,t)){ue=t;let b=oe(u);if(b&&b.isConnected){var v;n.current=b,(v=n.current)===null||v===void 0||v.focus()}else ue.current&&Uo(ue.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",a,!1),i==null||i.forEach(u=>u.addEventListener("focusin",a,!1)),i==null||i.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",a,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",a,!1)),i==null||i.forEach(u=>u.removeEventListener("focusout",s,!1))}},[t,e]),re(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Nc(t){return dt(t)}function Ae(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function dt(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of ve.traverse(ve.getTreeNode(e)))if(n&&Ae(t,n.current))return!0;return!1}function hh(t){return dt(t,ue)}function Yr(t,e){var n;let r=(n=ve.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function et(t,e=!1){if(t!=null&&!e)try{gt(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Mc(t,e=!0){let n=t[0].previousElementSibling,r=xt(t),i=qe(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=xt(t),i=qe(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function Uo(t,e=!0){et(Mc(t,e))}function ph(t,e){const n=c.useRef(e);c.useEffect(()=>{if(n.current){ue=t;const r=le(t.current?t.current[0]:void 0);!Ae(Se(r),ue.current)&&t.current&&Uo(t.current)}n.current=!1},[t])}function vh(t,e,n){re(()=>{if(e||n)return;let r=t.current;const i=le(r?r[0]:void 0);let o=l=>{let a=oe(l);Ae(a,t.current)?ue=t:Nc(a)||(ue=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 Ga(t){let e=ve.getTreeNode(ue);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function gh(t,e,n){const r=c.useRef(typeof document<"u"?Se(le(t.current?t.current[0]:void 0)):null);re(()=>{let i=t.current;const o=le(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!ue||Yr(ue,t))&&Ae(Se(o),t.current)&&(ue=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]),re(()=>{const i=le(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Fn(t)||l.isComposing)return;let a=i.activeElement;if(!dt(a,t)||!Ga(t))return;let s=ve.getTreeNode(t);if(!s)return;let u=s.nodeToRestore,d=qe(i.body,{tabbable:!0});d.currentNode=a;let f=l.shiftKey?d.previousNode():d.nextNode();if((!u||!u.isConnected||u===i.body)&&(u=void 0,s.nodeToRestore=void 0),(!f||!dt(f,t))&&u){d.currentNode=u;do f=l.shiftKey?d.previousNode():d.nextNode();while(dt(f,t));l.preventDefault(),l.stopPropagation(),f?et(f,!0):Nc(u)?et(u,!0):a.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),re(()=>{const i=le(t.current?t.current[0]:void 0);if(!e)return;let o=ve.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let a=ve.getTreeNode(t);if(!a)return;let s=a.nodeToRestore,u=Se(i);if(e&&s&&(u&&dt(u,t)||u===i.body&&Ga(t))){let d=ve.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){qa(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&ve.getTreeNode(f.scopeRef)){let p=Mc(f.scopeRef.current,!0);qa(p);return}f=f.parent}}})}}}},[t,e])}function qa(t){t.dispatchEvent(new CustomEvent(zo,{bubbles:!0,cancelable:!0}))&&et(t)}function qe(t,e,n){let r=e!=null&&e.tabbable?f5:hc,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=le(i),l=k1(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(e==null||(s=e.from)===null||s===void 0)&&s.contains(a)||e!=null&&e.tabbable&&a.tagName==="INPUT"&&a.getAttribute("type")==="radio"&&(!dh(a)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===a.name)?NodeFilter.FILTER_REJECT:r(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 Al{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 Wo({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 Al;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 Wo({scopeRef:null}),this.fastMap.set(null,this.root)}}class Wo{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 ve=new Al;function xn(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=c.useRef({isFocused:!1,isFocusVisible:e||bn()}),[o,l]=c.useState(!1),[a,s]=c.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=c.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),d=c.useCallback(v=>{i.current.isFocused=v,l(v),u()},[u]);N5(v=>{i.current.isFocusVisible=v,u()},[],{isTextInput:n});let{focusProps:f}=kl({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=yi({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?p:f}}function mh(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=c.useState(!1);return re(()=>{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 Rc(t){let e=yh(le(t));e!==t&&(e&&bh(e,t),t&&Lc(t,e))}function bh(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Lc(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function yh(t){let e=Se(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const Ac=7e3;let Ue=null;function Ya(t,e="assertive",n=Ac){Ue?Ue.announce(t,e,n):(Ue=new Ch,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ue.announce(t,e,n):setTimeout(()=>{Ue!=null&&Ue.isAttached()&&(Ue==null||Ue.announce(t,e,n))},100))}class Ch{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=Ac){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 Fc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Kc={...Fc,customError:!0,valid:!1},Tn={isInvalid:!1,validationDetails:Fc,validationErrors:[]},wh=c.createContext({}),Xa="__formValidationState"+Date.now();function Eh(t){if(t[Xa]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[Xa];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return Sh(t)}function Sh(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:Kc}:null,u=c.useMemo(()=>{if(!l||i==null)return null;let B=xh(l,i);return Ja(B)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let d=c.useContext(wh),f=c.useMemo(()=>r?Array.isArray(r)?r.flatMap(B=>Zo(d[B])):Zo(d[r]):[],[d,r]),[p,v]=c.useState(d),[b,h]=c.useState(!1);d!==p&&(v(d),h(!1));let g=c.useMemo(()=>Ja(b?[]:f),[b,f]),y=c.useRef(Tn),[w,C]=c.useState(Tn),$=c.useRef(Tn),D=()=>{if(!E)return;x(!1);let B=u||o||y.current;Xi(B,$.current)||($.current=B,C(B))},[E,x]=c.useState(!1);return c.useEffect(D),{realtimeValidation:s||g||u||o||Tn,displayValidation:a==="native"?s||g||w:s||g||u||o||w,updateValidation(B){a==="aria"&&!Xi(w,B)?C(B):y.current=B},resetValidation(){let B=Tn;Xi(B,$.current)||($.current=B,C(B)),a==="native"&&x(!1),h(!0)},commitValidation(){a==="native"&&x(!0),h(!0)}}}function Zo(t){return t?Array.isArray(t)?t:[t]:[]}function xh(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return Zo(n)}return[]}function Ja(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:Kc}:null}function Xi(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 $h(t,e,n){let{validationBehavior:r,focus:i}=t;re(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let u=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(u),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(Ph(n.current))}});let o=c.useRef(!1),l=ge(()=>{o.current||e.resetValidation()}),a=ge(u=>{var d;e.displayValidation.isInvalid||e.commitValidation();let f=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!u.defaultPrevented&&n&&f&&_h(f)===n.current){var p;i?i():(p=n.current)===null||p===void 0||p.focus(),$c("keyboard")}u.preventDefault()}),s=ge(()=>{e.commitValidation()});c.useEffect(()=>{let u=n==null?void 0:n.current;if(!u)return;let d=u.form,f=d==null?void 0:d.reset;return d&&(d.reset=()=>{o.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,f==null||f.call(d),o.current=!1}),u.addEventListener("invalid",a),u.addEventListener("change",s),d==null||d.addEventListener("reset",l),()=>{u.removeEventListener("invalid",a),u.removeEventListener("change",s),d==null||d.removeEventListener("reset",l),d&&(d.reset=f)}},[n,a,s,l,r])}function Dh(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 Ph(t){return{isInvalid:!t.validity.valid,validationDetails:Dh(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function _h(t){for(let e=0;e<t.elements.length;e++){let n=t.elements[e];if(!n.validity.valid)return n}return null}function jc(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=$e(e);let l=$e(),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=pi({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:s}}function Th(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=jc(t),a=ft([!!e,!!n,r,i]),s=ft([!!e,!!n,r,i]);return l=ie(l,{"aria-describedby":[a,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:s}}}const Qa={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 Hc(t={}){let{style:e,isFocusable:n}=t,[r,i]=c.useState(!1),{focusWithinProps:o}=yi({isDisabled:!n,onFocusWithinChange:a=>i(a)}),l=c.useMemo(()=>r?e:e?{...Qa,...e}:Qa,[r]);return{visuallyHiddenProps:{...o,style:l}}}function Ih(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=Hc(t);return c.createElement(n,ie(o,l),e)}const Ye={top:"top",bottom:"top",left:"left",right:"left"},Xr={top:"bottom",bottom:"top",left:"right",right:"left"},Oh={top:"left",left:"top"},Go={top:"height",left:"width"},Vc={width:"totalWidth",height:"totalHeight"},gr={};let me=typeof document<"u"?window.visualViewport:null;function es(t){let e=0,n=0,r=0,i=0,o=0,l=0,a={};var s;let u=((s=me==null?void 0:me.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=me==null?void 0:me.width)!==null&&d!==void 0?d:r;var f;n=(f=me==null?void 0:me.height)!==null&&f!==void 0?f:i,a.top=b.scrollTop||t.scrollTop,a.left=b.scrollLeft||t.scrollLeft,me&&(o=me.offsetTop,l=me.offsetLeft)}else({width:e,height:n,top:o,left:l}=hn(t,!1)),a.top=t.scrollTop,a.left=t.scrollLeft,r=e,i=n;if(Cl()&&(t.tagName==="BODY"||t.tagName==="HTML")&&u){a.top=0,a.left=0;var p;o=(p=me==null?void 0:me.pageTop)!==null&&p!==void 0?p:0;var v;l=(v=me==null?void 0:me.pageLeft)!==null&&v!==void 0?v:0}return{width:e,height:n,totalWidth:r,totalHeight:i,scroll:a,top:o,left:l}}function kh(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function ts(t,e,n,r,i,o,l){var a;let s=(a=i.scroll[t])!==null&&a!==void 0?a:0,u=r[Go[t]],d=r.scroll[Ye[t]]+o,f=u+r.scroll[Ye[t]]-o,p=e-s+l[t]-r[Ye[t]],v=e-s+n+l[t]-r[Ye[t]];return p<d?d-p:v>f?Math.max(f-v,d-p):0}function Nh(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 ns(t){if(gr[t])return gr[t];let[e,n]=t.split(" "),r=Ye[e]||"right",i=Oh[r];Ye[n]||(n="center");let o=Go[r],l=Go[i];return gr[t]={placement:e,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:l},gr[t]}function Ji(t,e,n,r,i,o,l,a,s,u){let{placement:d,crossPlacement:f,axis:p,crossAxis:v,size:b,crossSize:h}=r,g={};var y;g[v]=(y=t[v])!==null&&y!==void 0?y:0;var w,C,$,D;f==="center"?g[v]+=(((w=t[h])!==null&&w!==void 0?w:0)-((C=n[h])!==null&&C!==void 0?C:0))/2:f!==v&&(g[v]+=(($=t[h])!==null&&$!==void 0?$:0)-((D=n[h])!==null&&D!==void 0?D:0)),g[v]+=o;const E=t[v]-n[h]+s+u,x=t[v]+t[h]-s-u;if(g[v]=Ro(g[v],E,x),d===p){const L=a?l[b]:e[Vc[b]];g[Xr[p]]=Math.floor(L-t[p]+i)}else g[p]=Math.floor(t[p]+t[b]+i);return g}function Mh(t,e,n,r,i,o,l,a){const s=r?n.height:e[Vc.height];var u;let d=t.top!=null?n.top+t.top:n.top+(s-((u=t.bottom)!==null&&u!==void 0?u:0)-l);var f,p,v,b,h,g;let y=a!=="top"?Math.max(0,e.height+e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0)-d-(((p=i.top)!==null&&p!==void 0?p: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))-(((h=i.top)!==null&&h!==void 0?h:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o));return Math.min(e.height-o*2,y)}function rs(t,e,n,r,i,o){let{placement:l,axis:a,size:s}=o;var u,d;if(l===a)return Math.max(0,n[a]-t[a]-((u=t.scroll[a])!==null&&u!==void 0?u:0)+e[a]-((d=r[a])!==null&&d!==void 0?d:0)-r[Xr[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[Xr[a]]-i)}function Rh(t,e,n,r,i,o,l,a,s,u,d,f,p,v,b,h){let g=ns(t),{size:y,crossAxis:w,crossSize:C,placement:$,crossPlacement:D}=g,E=Ji(e,a,n,g,d,f,u,p,b,h),x=d,L=rs(a,u,e,i,o+d,g);if(l&&r[y]>L){let V=ns(`${Xr[$]} ${D}`),W=Ji(e,a,n,V,d,f,u,p,b,h);rs(a,u,e,i,o+d,V)>L&&(g=V,E=W,x=d)}let O="bottom";g.axis==="top"?g.placement==="top"?O="top":g.placement==="bottom"&&(O="bottom"):g.crossAxis==="top"&&(g.crossPlacement==="top"?O="bottom":g.crossPlacement==="bottom"&&(O="top"));let B=ts(w,E[w],n[C],a,s,o,u);E[w]+=B;let S=Mh(E,a,u,p,i,o,n.height,O);v&&v<S&&(S=v),n.height=Math.min(n.height,S),E=Ji(e,a,n,g,x,f,u,p,b,h),B=ts(w,E[w],n[C],a,s,o,u),E[w]+=B;let R={},U=e[w]-E[w]-i[Ye[w]],k=U+.5*e[C];const Z=b/2+h;var I,M,z,F;const N=Ye[w]==="left"?((I=i.left)!==null&&I!==void 0?I:0)+((M=i.right)!==null&&M!==void 0?M:0):((z=i.top)!==null&&z!==void 0?z:0)+((F=i.bottom)!==null&&F!==void 0?F:0),K=n[C]-N-b/2-h,P=e[w]+b/2-(E[w]+i[Ye[w]]),_=e[w]+e[C]-b/2-(E[w]+i[Ye[w]]),A=Ro(k,P,_);R[w]=Ro(A,Z,K),{placement:$,crossPlacement:D}=g,b?U=R[w]:D==="right"?U+=e[C]:D==="center"&&(U+=e[C]/2);let j=$==="left"||$==="top"?n[y]:0,H={x:$==="top"||$==="bottom"?U:j,y:$==="left"||$==="right"?U:j};return{position:E,maxHeight:S,arrowOffsetLeft:R.left,arrowOffsetTop:R.top,placement:$,triggerAnchorPoint:H}}function Lh(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:l,boundaryElement:a,offset:s,crossOffset:u,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:p=0}=t,v=r instanceof HTMLElement?Ah(r):document.documentElement,b=v===document.documentElement;const h=window.getComputedStyle(v).position;let g=!!h&&h!=="static",y=b?hn(n,!1):is(n,v,!1);if(!b){let{marginTop:R,marginLeft:U}=window.getComputedStyle(n);y.top+=parseInt(R,10)||0,y.left+=parseInt(U,10)||0}let w=hn(r,!0),C=Nh(r);var $,D;w.width+=(($=C.left)!==null&&$!==void 0?$:0)+((D=C.right)!==null&&D!==void 0?D:0);var E,x;w.height+=((E=C.top)!==null&&E!==void 0?E:0)+((x=C.bottom)!==null&&x!==void 0?x:0);let L=kh(i),O=es(a),B=es(v),S=a.tagName==="BODY"?hn(v,!1):is(v,a,!1);return v.tagName==="HTML"&&a.tagName==="BODY"&&(B.scroll.top=0,B.scroll.left=0),Rh(e,y,w,L,C,o,l,O,B,S,s,u,g,d,f,p)}function Fl(t,e){let{top:n,left:r,width:i,height:o}=t.getBoundingClientRect();return e&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(i=t.offsetWidth,o=t.offsetHeight),{top:n,left:r,width:i,height:o}}function hn(t,e){let{top:n,left:r,width:i,height:o}=Fl(t,e),{scrollTop:l,scrollLeft:a,clientTop:s,clientLeft:u}=document.documentElement;return{top:n+l-s,left:r+a-u,width:i,height:o}}function is(t,e,n){let r=window.getComputedStyle(t),i;if(r.position==="fixed")i=Fl(t,n);else{i=hn(t,n);let o=hn(e,n),l=window.getComputedStyle(e);o.top+=(parseInt(l.borderTopWidth,10)||0)-e.scrollTop,o.left+=(parseInt(l.borderLeftWidth,10)||0)-e.scrollLeft,i.top-=o.top,i.left-=o.left}return i.top-=parseInt(r.marginTop,10)||0,i.left-=parseInt(r.marginLeft,10)||0,i}function Ah(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!os(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!os(e);)e=e.parentElement;return e||document.documentElement}function os(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 Bc=new WeakMap;function Fh(t){let{triggerRef:e,isOpen:n,onClose:r}=t;c.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||Bc.get(e.current);a&&a()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,e])}let fe=typeof document<"u"?window.visualViewport:null;function Kh(t){let{direction:e}=jt(),{arrowSize:n,targetRef:r,overlayRef:i,arrowRef:o,scrollRef:l=i,placement:a="bottom",containerPadding:s=12,shouldFlip:u=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:p=0,shouldUpdatePosition:v=!0,isOpen:b=!0,onClose:h,maxHeight:g,arrowBoundaryOffset:y=0}=t,[w,C]=c.useState(null),$=[v,a,i.current,r.current,o==null?void 0:o.current,l.current,s,u,d,f,p,b,e,g,y,n],D=c.useRef(fe==null?void 0:fe.scale);c.useEffect(()=>{b&&(D.current=fe==null?void 0:fe.scale)},[b]);let E=c.useCallback(()=>{if(v===!1||!b||!i.current||!r.current||!d||(fe==null?void 0:fe.scale)!==D.current)return;let R=null;if(l.current&&l.current.contains(document.activeElement)){var U;let N=(U=document.activeElement)===null||U===void 0?void 0:U.getBoundingClientRect(),K=l.current.getBoundingClientRect();var k;if(R={type:"top",offset:((k=N==null?void 0:N.top)!==null&&k!==void 0?k:0)-K.top},R.offset>K.height/2){R.type="bottom";var Z;R.offset=((Z=N==null?void 0:N.bottom)!==null&&Z!==void 0?Z:0)-K.bottom}}let I=i.current;if(!g&&i.current){var M;I.style.top="0px",I.style.bottom="";var z;I.style.maxHeight=((z=(M=window.visualViewport)===null||M===void 0?void 0:M.height)!==null&&z!==void 0?z:window.innerHeight)+"px"}let F=Lh({placement:Hh(a,e),overlayNode:i.current,targetNode:r.current,scrollNode:l.current||i.current,padding:s,shouldFlip:u,boundaryElement:d,offset:f,crossOffset:p,maxHeight:g,arrowSize:n??(o!=null&&o.current?Fl(o.current,!0).width:0),arrowBoundaryOffset:y});if(F.position){if(I.style.top="",I.style.bottom="",I.style.left="",I.style.right="",Object.keys(F.position).forEach(N=>I.style[N]=F.position[N]+"px"),I.style.maxHeight=F.maxHeight!=null?F.maxHeight+"px":"",R&&document.activeElement&&l.current){let N=document.activeElement.getBoundingClientRect(),K=l.current.getBoundingClientRect(),P=N[R.type]-K[R.type];l.current.scrollTop+=P-R.offset}C(F)}},$);re(E,$),jh(E),No({ref:i,onResize:E}),No({ref:r,onResize:E});let x=c.useRef(!1);re(()=>{let R,U=()=>{x.current=!0,clearTimeout(R),R=setTimeout(()=>{x.current=!1},500),E()},k=()=>{x.current&&U()};return fe==null||fe.addEventListener("resize",U),fe==null||fe.addEventListener("scroll",k),()=>{fe==null||fe.removeEventListener("resize",U),fe==null||fe.removeEventListener("scroll",k)}},[E]);let L=c.useCallback(()=>{x.current||h==null||h()},[h,x]);Fh({triggerRef:r,isOpen:b,onClose:h&&L});var O,B,S;return{overlayProps:{style:{position:w?"absolute":"fixed",top:w?void 0:0,left:w?void 0:0,zIndex:1e5,...w==null?void 0:w.position,maxHeight:(O=w==null?void 0:w.maxHeight)!==null&&O!==void 0?O:"100vh"}},placement:(B=w==null?void 0:w.placement)!==null&&B!==void 0?B:null,triggerAnchorPoint:(S=w==null?void 0:w.triggerAnchorPoint)!==null&&S!==void 0?S:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:w==null?void 0:w.arrowOffsetLeft,top:w==null?void 0:w.arrowOffsetTop}},updatePosition:E}}function jh(t){re(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Hh(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const We=[];function Vh(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t;c.useEffect(()=>{if(i&&!We.includes(e))return We.push(e),()=>{let b=We.indexOf(e);b>=0&&We.splice(b,1)}},[i,e]);let s=()=>{We[We.length-1]===e&&n&&n()},u=b=>{(!a||a(b.target))&&We[We.length-1]===e&&(b.stopPropagation(),b.preventDefault())},d=b=>{(!a||a(b.target))&&(We[We.length-1]===e&&(b.stopPropagation(),b.preventDefault()),s())},f=b=>{b.key==="Escape"&&!l&&!b.nativeEvent.isComposing&&(b.stopPropagation(),b.preventDefault(),s())};A5({ref:e,onInteractOutside:o&&i?d:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=yi({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||hh(b.relatedTarget)||(!a||a(b.relatedTarget))&&(n==null||n())}}),v=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:v}}}function Bh(t,e,n){let{type:r}=t,{isOpen:i}=e;c.useEffect(()=>{n&&n.current&&Bc.set(n.current,e.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let l=$e();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}const Qi=typeof document<"u"&&window.visualViewport,zh=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let mr=0,eo;function Uh(t={}){let{isDisabled:e}=t;re(()=>{if(!e)return mr++,mr===1&&(di()?eo=Zh():eo=Wh()),()=>{mr--,mr===0&&eo()}},[e])}function Wh(){let t=window.innerWidth-document.documentElement.clientWidth;return pt(t>0&&("scrollbarGutter"in document.documentElement.style?$t(document.documentElement,"scrollbarGutter","stable"):$t(document.documentElement,"paddingRight",`${t}px`)),$t(document.documentElement,"overflow","hidden"))}function Zh(){let t,e,n=u=>{t=cc(u.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=$t(t,"overscrollBehavior","contain"))},r=u=>{if(!t||t===document.documentElement||t===document.body){u.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&u.preventDefault()},i=()=>{e&&e()},o=u=>{let d=u.target;Gh(d)&&(a(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Qi&&(Qi.height<window.innerHeight?requestAnimationFrame(()=>{ls(d)}):Qi.addEventListener("resize",()=>ls(d),{once:!0}))}))},l=null,a=()=>{if(l)return;let u=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;l=pt(In(window,"scroll",u),$t(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),$t(document.documentElement,"overflow","hidden"),$t(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},s=pt(In(document,"touchstart",n,{passive:!1,capture:!0}),In(document,"touchmove",r,{passive:!1,capture:!0}),In(document,"touchend",i,{passive:!1,capture:!0}),In(document,"focus",o,!0));return()=>{e==null||e(),l==null||l(),s()}}function $t(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function In(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function ls(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=cc(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 Gh(t){return t instanceof HTMLInputElement&&!zh.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const qh=c.createContext({});function Yh(){var t;return(t=c.useContext(qh))!==null&&t!==void 0?t:{}}var zc={};zc={dismiss:"تجاهل"};var Uc={};Uc={dismiss:"Отхвърляне"};var Wc={};Wc={dismiss:"Odstranit"};var Zc={};Zc={dismiss:"Luk"};var Gc={};Gc={dismiss:"Schließen"};var qc={};qc={dismiss:"Απόρριψη"};var Yc={};Yc={dismiss:"Dismiss"};var Xc={};Xc={dismiss:"Descartar"};var Jc={};Jc={dismiss:"Lõpeta"};var Qc={};Qc={dismiss:"Hylkää"};var e0={};e0={dismiss:"Rejeter"};var t0={};t0={dismiss:"התעלם"};var n0={};n0={dismiss:"Odbaci"};var r0={};r0={dismiss:"Elutasítás"};var i0={};i0={dismiss:"Ignora"};var o0={};o0={dismiss:"閉じる"};var l0={};l0={dismiss:"무시"};var a0={};a0={dismiss:"Atmesti"};var s0={};s0={dismiss:"Nerādīt"};var u0={};u0={dismiss:"Lukk"};var c0={};c0={dismiss:"Negeren"};var d0={};d0={dismiss:"Zignoruj"};var f0={};f0={dismiss:"Descartar"};var h0={};h0={dismiss:"Dispensar"};var p0={};p0={dismiss:"Revocare"};var v0={};v0={dismiss:"Пропустить"};var g0={};g0={dismiss:"Zrušiť"};var m0={};m0={dismiss:"Opusti"};var b0={};b0={dismiss:"Odbaci"};var y0={};y0={dismiss:"Avvisa"};var C0={};C0={dismiss:"Kapat"};var w0={};w0={dismiss:"Скасувати"};var E0={};E0={dismiss:"取消"};var S0={};S0={dismiss:"關閉"};var x0={};x0={"ar-AE":zc,"bg-BG":Uc,"cs-CZ":Wc,"da-DK":Zc,"de-DE":Gc,"el-GR":qc,"en-US":Yc,"es-ES":Xc,"et-EE":Jc,"fi-FI":Qc,"fr-FR":e0,"he-IL":t0,"hr-HR":n0,"hu-HU":r0,"it-IT":i0,"ja-JP":o0,"ko-KR":l0,"lt-LT":a0,"lv-LV":s0,"nb-NO":u0,"nl-NL":c0,"pl-PL":d0,"pt-BR":f0,"pt-PT":h0,"ro-RO":p0,"ru-RU":v0,"sk-SK":g0,"sl-SI":m0,"sr-SP":b0,"sv-SE":y0,"tr-TR":C0,"uk-UA":w0,"zh-CN":E0,"zh-TW":S0};function Xh(t){return t&&t.__esModule?t.default:t}function as(t){let{onDismiss:e,...n}=t,r=kc(Xh(x0),"@react-aria/overlays"),i=pi(n,r.format("dismiss")),o=()=>{e&&e()};return c.createElement(Ih,null,c.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}const Jh=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let On=new WeakMap,_e=[];function Qh(t,e){let n=Oe(t==null?void 0:t[0]),r=e instanceof n.Element?{root:e}:e;var i;let o=(i=r==null?void 0:r.root)!==null&&i!==void 0?i:document.body,l=(r==null?void 0:r.shouldUseInert)&&Jh,a=new Set(t),s=new Set,u=h=>l&&h instanceof n.HTMLElement?h.inert:h.getAttribute("aria-hidden")==="true",d=(h,g)=>{l&&h instanceof n.HTMLElement?h.inert=g:g?h.setAttribute("aria-hidden","true"):(h.removeAttribute("aria-hidden"),h instanceof n.HTMLElement&&(h.inert=!1))},f=h=>{for(let C of h.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))a.add(C);let g=C=>{if(s.has(C)||a.has(C)||C.parentElement&&s.has(C.parentElement)&&C.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let $ of a)if(C.contains($))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},y=document.createTreeWalker(h,NodeFilter.SHOW_ELEMENT,{acceptNode:g}),w=g(h);if(w===NodeFilter.FILTER_ACCEPT&&p(h),w!==NodeFilter.FILTER_REJECT){let C=y.nextNode();for(;C!=null;)p(C),C=y.nextNode()}},p=h=>{var g;let y=(g=On.get(h))!==null&&g!==void 0?g:0;u(h)&&y===0||(y===0&&d(h,!0),s.add(h),On.set(h,y+1))};_e.length&&_e[_e.length-1].disconnect(),f(o);let v=new MutationObserver(h=>{for(let g of h)if(g.type==="childList"&&![...a,...s].some(y=>y.contains(g.target)))for(let y of g.addedNodes)(y instanceof HTMLElement||y instanceof SVGElement)&&(y.dataset.liveAnnouncer==="true"||y.dataset.reactAriaTopLayer==="true")?a.add(y):y instanceof Element&&f(y)});v.observe(o,{childList:!0,subtree:!0});let b={visibleNodes:a,hiddenNodes:s,observe(){v.observe(o,{childList:!0,subtree:!0})},disconnect(){v.disconnect()}};return _e.push(b),()=>{v.disconnect();for(let h of s){let g=On.get(h);g!=null&&(g===1?(d(h,!1),On.delete(h)):On.set(h,g-1))}b===_e[_e.length-1]?(_e.pop(),_e.length&&_e[_e.length-1].observe()):_e.splice(_e.indexOf(b),1)}}function ep(t){let e=_e[_e.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}function tp(t,e){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:o,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a,...s}=t,u=s.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=Vh({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o||u,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a},i??r),{overlayProps:p,arrowProps:v,placement:b,triggerAnchorPoint:h}=Kh({...s,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:o&&!u?e.close:null});return Uh({isDisabled:o||!e.isOpen}),c.useEffect(()=>{if(e.isOpen&&r.current){var g,y;return o?ep((g=i==null?void 0:i.current)!==null&&g!==void 0?g:r.current):Qh([(y=i==null?void 0:i.current)!==null&&y!==void 0?y:r.current],{shouldUseInert:!0})}},[o,e.isOpen,r,i]),{popoverProps:ie(d,p),arrowProps:v,underlayProps:f,placement:b,triggerAnchorPoint:h}}const $0=c.createContext(null);function ss(t){let e=ir(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=c.useState(!1),l=c.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=Yh();if(!t.portalContainer&&a&&(n=a()),!n)return null;let s=t.children;return t.disableFocusManagement||(s=c.createElement(Ll,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},s)),s=c.createElement($0.Provider,{value:l},c.createElement(R5,null,s)),Ft.createPortal(s,n)}function np(){let t=c.useContext($0),e=t==null?void 0:t.setContain;re(()=>{e==null||e(!0)},[e])}const Kl=new WeakMap;function rp(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function ip(t,e){let n=Kl.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${rp(e)}`}function qo(t){return V1()?t.altKey:t.ctrlKey}function Or(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 op(t){let e=$e();return D0.set(t,e),e}function lp(t){return D0.get(t)}const ap=1e3;function P0(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=c.useRef({search:"",timeout:void 0}).current,o=l=>{let a=sp(l.key);if(!(!a||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target)||i.search.length===0&&a===" ")){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=""},ap)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function sp(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function _0(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,isVirtualized:v,scrollRef:b=r,linkBehavior:h="action"}=t,{direction:g}=jt(),y=fi(),w=M=>{var z;if(M.altKey&&M.key==="Tab"&&M.preventDefault(),!(!((z=r.current)===null||z===void 0)&&z.contains(M.target)))return;const F=(G,te)=>{if(G!=null){if(e.isLink(G)&&h==="selection"&&u&&!qo(M)){Ft.flushSync(()=>{e.setFocusedKey(G,te)});let de=Or(r,G),Fe=e.getItemProps(G);de&&y.open(de,M,Fe.href,Fe.routerOptions);return}if(e.setFocusedKey(G,te),e.isLink(G)&&h==="override")return;M.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):u&&!qo(M)&&e.replaceSelection(G)}};switch(M.key){case"ArrowDown":if(n.getKeyBelow){var N,K,P;let G=e.focusedKey!=null?(N=n.getKeyBelow)===null||N===void 0?void 0:N.call(n,e.focusedKey):(K=n.getFirstKey)===null||K===void 0?void 0:K.call(n);G==null&&o&&(G=(P=n.getFirstKey)===null||P===void 0?void 0:P.call(n,e.focusedKey)),G!=null&&(M.preventDefault(),F(G))}break;case"ArrowUp":if(n.getKeyAbove){var _,A,j;let G=e.focusedKey!=null?(_=n.getKeyAbove)===null||_===void 0?void 0:_.call(n,e.focusedKey):(A=n.getLastKey)===null||A===void 0?void 0:A.call(n);G==null&&o&&(G=(j=n.getLastKey)===null||j===void 0?void 0:j.call(n,e.focusedKey)),G!=null&&(M.preventDefault(),F(G))}break;case"ArrowLeft":if(n.getKeyLeftOf){var H,V,W;let G=e.focusedKey!=null?(H=n.getKeyLeftOf)===null||H===void 0?void 0:H.call(n,e.focusedKey):null;G==null&&o&&(G=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)),G!=null&&(M.preventDefault(),F(G,g==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var q,Y,ae;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"?(Y=n.getLastKey)===null||Y===void 0?void 0:Y.call(n,e.focusedKey):(ae=n.getFirstKey)===null||ae===void 0?void 0:ae.call(n,e.focusedKey)),G!=null&&(M.preventDefault(),F(G,g==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&M.shiftKey)return;M.preventDefault();let G=n.getFirstKey(e.focusedKey,on(M));e.setFocusedKey(G),G!=null&&(on(M)&&M.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):u&&e.replaceSelection(G))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&M.shiftKey)return;M.preventDefault();let G=n.getLastKey(e.focusedKey,on(M));e.setFocusedKey(G),G!=null&&(on(M)&&M.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):u&&e.replaceSelection(G))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let G=n.getKeyPageBelow(e.focusedKey);G!=null&&(M.preventDefault(),F(G))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let G=n.getKeyPageAbove(e.focusedKey);G!=null&&(M.preventDefault(),F(G))}break;case"a":on(M)&&e.selectionMode==="multiple"&&a!==!0&&(M.preventDefault(),e.selectAll());break;case"Escape":s==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(M.stopPropagation(),M.preventDefault(),e.clearSelection());break;case"Tab":if(!p){if(M.shiftKey)r.current.focus();else{let G=qe(r.current,{tabbable:!0}),te,de;do de=G.lastChild(),de&&(te=de);while(de);te&&!te.contains(document.activeElement)&&Be(te)}break}}},C=c.useRef({top:0,left:0});cr(b,"scroll",v?void 0:()=>{var M,z,F,N;C.current={top:(F=(M=b.current)===null||M===void 0?void 0:M.scrollTop)!==null&&F!==void 0?F:0,left:(N=(z=b.current)===null||z===void 0?void 0:z.scrollLeft)!==null&&N!==void 0?N:0}});let $=M=>{if(e.isFocused){M.currentTarget.contains(M.target)||e.setFocused(!1);return}if(M.currentTarget.contains(M.target)){if(e.setFocused(!0),e.focusedKey==null){var z,F;let P=A=>{A!=null&&(e.setFocusedKey(A),u&&!e.isSelected(A)&&e.replaceSelection(A))},_=M.relatedTarget;var N,K;_&&M.currentTarget.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_FOLLOWING?P((N=e.lastSelectedKey)!==null&&N!==void 0?N:(z=n.getLastKey)===null||z===void 0?void 0:z.call(n)):P((K=e.firstSelectedKey)!==null&&K!==void 0?K:(F=n.getFirstKey)===null||F===void 0?void 0:F.call(n))}else!v&&b.current&&(b.current.scrollTop=C.current.top,b.current.scrollLeft=C.current.left);if(e.focusedKey!=null&&b.current){let P=Or(r,e.focusedKey);P instanceof HTMLElement&&(!P.contains(document.activeElement)&&!f&&Be(P),Gr()==="keyboard"&&Da(P,{containingElement:r.current}))}}},D=M=>{M.currentTarget.contains(M.relatedTarget)||e.setFocused(!1)},E=c.useRef(!1);cr(r,i5,f?M=>{let{detail:z}=M;M.stopPropagation(),e.setFocused(!0),(z==null?void 0:z.focusStrategy)==="first"&&(E.current=!0)}:void 0);let x=ge(()=>{var M,z;let F=(z=(M=n.getFirstKey)===null||M===void 0?void 0:M.call(n))!==null&&z!==void 0?z:null;if(F==null){let N=Se();Rc(r.current),Lc(N,null),e.collection.size>0&&(E.current=!1)}else e.setFocusedKey(F),E.current=!1});xa(()=>{E.current&&x()},[e.collection,x]);let L=ge(()=>{e.collection.size>0&&(E.current=!1)});xa(()=>{L()},[e.focusedKey,L]),cr(r,r5,f?M=>{var z;M.stopPropagation(),e.setFocused(!1),!((z=M.detail)===null||z===void 0)&&z.clearFocusKey&&e.setFocusedKey(null)}:void 0);const O=c.useRef(i),B=c.useRef(!1);c.useEffect(()=>{if(O.current){var M,z;let K=null;var F;i==="first"&&(K=(F=(M=n.getFirstKey)===null||M===void 0?void 0:M.call(n))!==null&&F!==void 0?F:null);var N;i==="last"&&(K=(N=(z=n.getLastKey)===null||z===void 0?void 0:z.call(n))!==null&&N!==void 0?N:null);let P=e.selectedKeys;if(P.size){for(let _ of P)if(e.canSelectItem(_)){K=_;break}}e.setFocused(!0),e.setFocusedKey(K),K==null&&!f&&r.current&>(r.current),e.collection.size>0&&(O.current=!1,B.current=!0)}});let S=c.useRef(e.focusedKey),R=c.useRef(null);c.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==S.current||B.current)&&b.current&&r.current){let M=Gr(),z=Or(r,e.focusedKey);if(!(z instanceof HTMLElement))return;(M==="keyboard"||B.current)&&(R.current&&cancelAnimationFrame(R.current),R.current=requestAnimationFrame(()=>{b.current&&(dc(b.current,z),M!=="virtual"&&Da(z,{containingElement:r.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&S.current!=null&&r.current&>(r.current),S.current=e.focusedKey,B.current=!1}),c.useEffect(()=>()=>{R.current&&cancelAnimationFrame(R.current)},[]),cr(r,"react-aria-focus-scope-restore",M=>{M.preventDefault(),e.setFocused(!0)});let U={onKeyDown:w,onFocus:$,onBlur:D,onMouseDown(M){b.current===M.target&&M.preventDefault()}},{typeSelectProps:k}=P0({keyboardDelegate:n,selectionManager:e});d||(U=ie(k,U));let Z;f||(Z=e.focusedKey==null?0:-1);let I=op(e.collection);return{collectionProps:ie(U,{tabIndex:Z,"data-collection":I})}}function jl(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:s,onAction:u,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,p=fi();e=$e(e);let v=F=>{if(F.pointerType==="keyboard"&&qo(F))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let N=n.getItemProps(r);p.open(i.current,F,N.href,N.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):F&&F.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||F&&(on(F)||F.pointerType==="touch"||F.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};c.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?Rc(i.current):a?a():document.activeElement!==i.current&&i.current&>(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(F){F.target===i.current&&n.setFocusedKey(r)}}:s&&(b.onMouseDown=F=>{F.preventDefault()});let h=n.isLink(r)&&f==="override",g=n.isLink(r)&&f!=="selection"&&f!=="none",y=!s&&n.canSelectItem(r)&&!h,w=(u||g)&&!s,C=w&&(n.selectionBehavior==="replace"?!y:!y||n.isEmpty),$=w&&y&&n.selectionBehavior==="replace",D=C||$,E=c.useRef(null),x=D&&y,L=c.useRef(!1),O=c.useRef(!1),B=n.getItemProps(r),S=F=>{u&&u(),g&&i.current&&p.open(i.current,F,B.href,B.routerOptions)},R={ref:i};if(o?(R.onPressStart=F=>{E.current=F.pointerType,L.current=x,F.pointerType==="keyboard"&&(!D||cs())&&v(F)},d?(R.onPressUp=C?void 0:F=>{F.pointerType==="mouse"&&y&&v(F)},R.onPress=C?S:F=>{F.pointerType!=="keyboard"&&F.pointerType!=="mouse"&&y&&v(F)}):R.onPress=F=>{if(C||$&&F.pointerType!=="mouse"){if(F.pointerType==="keyboard"&&!us())return;S(F)}else F.pointerType!=="keyboard"&&y&&v(F)}):(R.onPressStart=F=>{E.current=F.pointerType,L.current=x,O.current=C,y&&(F.pointerType==="mouse"&&!C||F.pointerType==="keyboard"&&(!w||cs()))&&v(F)},R.onPress=F=>{(F.pointerType==="touch"||F.pointerType==="pen"||F.pointerType==="virtual"||F.pointerType==="keyboard"&&D&&us()||F.pointerType==="mouse"&&O.current)&&(D?S(F):y&&v(F))}),b["data-collection"]=lp(n.collection),b["data-key"]=r,R.preventFocusOnPress=l,l&&(R=ie(R,{onPressStart(F){F.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(F){F.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),B)for(let F of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])B[F]&&(R[F]=pt(R[F],B[F]));let{pressProps:U,isPressed:k}=mi(R),Z=$?F=>{E.current==="mouse"&&(F.stopPropagation(),F.preventDefault(),S(F))}:void 0,{longPressProps:I}=_c({isDisabled:!x,onLongPress(F){F.pointerType==="touch"&&(v(F),n.setSelectionBehavior("toggle"))}}),M=F=>{E.current==="touch"&&L.current&&F.preventDefault()},z=f!=="none"&&n.isLink(r)?F=>{It.isOpening||F.preventDefault()}:void 0;return{itemProps:ie(b,y||C||l&&!s?U:{},x?I:{},{onDoubleClick:Z,onDragStartCapture:M,onClick:z,id:e},l?{onMouseDown:F=>F.preventDefault()}:void 0),isPressed:k,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:y,hasAction:D}}function us(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function cs(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class ds{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?Or(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 Hl{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&&!Wn(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&&!Wn(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 ds(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 ds(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function T0(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:l}=t,a=Rl({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,u=c.useMemo(()=>o||new Hl({collection:n,disabledKeys:r,disabledBehavior:s,ref:i,collator:a,layoutDelegate:l}),[o,l,n,r,i,a,s]),{collectionProps:d}=_0({...t,ref:i,selectionManager:e,keyboardDelegate:u});return{listProps:d}}function up(t,e,n){let r=he(t,{labelable:!0}),i=t.selectionBehavior||"toggle",o=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:l}=T0({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:o}),{focusWithinProps:a}=yi({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=$e(t.id);Kl.set(e,{id:s,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:o});let{labelProps:u,fieldProps:d}=jc({...t,id:s,labelElementType:"span"});return{labelProps:u,listBoxProps:ie(r,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...ie(d,l)})}}class cp{build(e,n){return this.context=n,fs(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(c.isValidElement(n)&&n.type===c.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=[];c.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(c.isValidElement(e.element)&&e.element.type===c.Fragment){let g=[];c.Children.forEach(e.element.props.children,w=>{g.push(w)});var o;let y=(o=e.index)!==null&&o!==void 0?o:0;for(const w of g)yield*this.getFullNode({element:w,index:y++},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(c.isValidElement(l)){let g=l.type;if(typeof g!="function"&&typeof g.getCollectionNode!="function"){let $=l.type;throw new Error(`Unknown element <${$}> in collection.`)}let y=g.getCollectionNode(l.props,this.context);var a;let w=(a=e.index)!==null&&a!==void 0?a:0,C=y.next();for(;!C.done&&C.value;){let $=C.value;e.index=w;var s;let D=(s=$.key)!==null&&s!==void 0?s:null;D==null&&(D=$.element?null:this.getKey(l,e,n,r));let x=[...this.getFullNode({...$,key:D,index:w,wrapper:dp(e.wrapper,$.wrapper)},this.getChildState(n,$),r?`${r}${l.key}`:l.key,i)];for(let L of x){var u,d;L.value=(d=(u=$.value)!==null&&u!==void 0?u:e.value)!==null&&d!==void 0?d:null,L.value&&this.cache.set(L.value,L);var f;if(e.type&&L.type!==e.type)throw new Error(`Unsupported type <${to(L.type)}> in <${to((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${to(e.type)}> is supported.`);w++,yield L}C=y.next(x)}return}if(e.key==null||e.type==null)return;let p=this;var v,b;let h={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:fs(function*(){if(!e.hasChildNodes||!e.childNodes)return;let g=0;for(let y of e.childNodes()){y.key!=null&&(y.key=`${h.key}${y.key}`);let w=p.getFullNode({...y,index:g},p.getChildState(n,y),h.key,h);for(let C of w)g++,yield C}})};yield h}constructor(){this.cache=new WeakMap}}function fs(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 dp(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function to(t){return t[0].toUpperCase()+t.slice(1)}function I0(t,e,n){let r=c.useMemo(()=>new cp,[]),{children:i,items:o,collection:l}=t;return c.useMemo(()=>{if(l)return l;let s=r.build({children:i,items:o},n);return e(s)},[r,i,o,l,n,e])}function O0(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function fp(t){return hp(t)}function hp(t,e){for(let n of t)return n}function no(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...hs(t,e),e],i=[...hs(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 hs(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 ps=new WeakMap;function k0(t){let e=ps.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r(O0(o,t)):o.type==="item"&&n++};return r(t),ps.set(t,n),n}function pp(t,e,n){var r,i;let{key:o}=t,l=Kl.get(e);var a;let s=(a=t.isDisabled)!==null&&a!==void 0?a:e.selectionManager.isDisabled(o);var u;let d=(u=t.isSelected)!==null&&u!==void 0?u:e.selectionManager.isSelected(o);var f;let p=(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 h;let g=(h=t.shouldUseVirtualFocus)!==null&&h!==void 0?h:l==null?void 0:l.shouldUseVirtualFocus;var y;let w=(y=t.isVirtualized)!==null&&y!==void 0?y:l==null?void 0:l.isVirtualized,C=ft(),$=ft(),D={role:"option","aria-disabled":s||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};vt()&&Cl()||(D["aria-label"]=t["aria-label"],D["aria-labelledby"]=C,D["aria-describedby"]=$);let E=e.collection.getItem(o);if(w){let M=Number(E==null?void 0:E.index);D["aria-posinset"]=Number.isNaN(M)?void 0:M+1,D["aria-setsize"]=k0(e.collection)}let x=l!=null&&l.onAction?()=>{var M;return l==null||(M=l.onAction)===null||M===void 0?void 0:M.call(l,o)}:void 0,L=ip(e,o),{itemProps:O,isPressed:B,isFocused:S,hasAction:R,allowsSelection:U}=jl({selectionManager:e.selectionManager,key:o,ref:n,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&b,isVirtualized:w,shouldUseVirtualFocus:g,isDisabled:s,onAction:x||!(E==null||(r=E.props)===null||r===void 0)&&r.onAction?pt(E==null||(i=E.props)===null||i===void 0?void 0:i.onAction,x):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:L}),{hoverProps:k}=Sn({isDisabled:s||!b,onHoverStart(){bn()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(o))}}),Z=he(E==null?void 0:E.props);delete Z.id;let I=El(E==null?void 0:E.props);return{optionProps:{...D,...ie(Z,O,k,I),id:L},labelProps:{id:C},descriptionProps:{id:$},isFocused:S,isFocusVisible:S&&e.selectionManager.isFocused&&bn(),isSelected:d,isDisabled:s,isPressed:B,allowsSelection:U,hasAction:R}}function vp(t){let{heading:e,"aria-label":n}=t,r=$e();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}var N0={};N0={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var M0={};M0={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var R0={};R0={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var L0={};L0={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var A0={};A0={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var F0={};F0={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var K0={};K0={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var j0={};j0={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var H0={};H0={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var V0={};V0={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var B0={};B0={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var z0={};z0={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var U0={};U0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var W0={};W0={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Z0={};Z0={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var G0={};G0={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var q0={};q0={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Y0={};Y0={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var X0={};X0={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var J0={};J0={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Q0={};Q0={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var e2={};e2={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var t2={};t2={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var n2={};n2={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var r2={};r2={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var i2={};i2={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var o2={};o2={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var l2={};l2={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var a2={};a2={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var s2={};s2={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var u2={};u2={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var c2={};c2={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var d2={};d2={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var f2={};f2={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var h2={};h2={"ar-AE":N0,"bg-BG":M0,"cs-CZ":R0,"da-DK":L0,"de-DE":A0,"el-GR":F0,"en-US":K0,"es-ES":j0,"et-EE":H0,"fi-FI":V0,"fr-FR":B0,"he-IL":z0,"hr-HR":U0,"hu-HU":W0,"it-IT":Z0,"ja-JP":G0,"ko-KR":q0,"lt-LT":Y0,"lv-LV":X0,"nb-NO":J0,"nl-NL":Q0,"pl-PL":e2,"pt-BR":t2,"pt-PT":n2,"ro-RO":r2,"ru-RU":i2,"sk-SK":o2,"sl-SI":l2,"sr-SP":a2,"sv-SE":s2,"tr-TR":u2,"uk-UA":c2,"zh-CN":d2,"zh-TW":f2};function gp(t){return t&&t.__esModule?t.default:t}function mp(t,e,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=t,l=$e(),{triggerProps:a,overlayProps:s}=Bh({type:r},e,n),u=v=>{if(!i&&!(o==="longPress"&&!v.altKey)&&n&&n.current)switch(v.key){case"Enter":case" ":if(o==="longPress"||v.isDefaultPrevented())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=kc(gp(h2),"@react-aria/menu"),{longPressProps:f}=_c({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),p={preventFocusOnPress:!0,onPressStart(v){v.pointerType!=="touch"&&v.pointerType!=="keyboard"&&!i&&(Be(v.target),e.open(v.pointerType==="virtual"?"first":null))},onPress(v){v.pointerType==="touch"&&!i&&(Be(v.target),e.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...o==="press"?p:f,id:l,onKeyDown:u},menuProps:{...s,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const p2=new WeakMap;function bp(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=he(t,{labelable:!0}),{listProps:s}=T0({...l,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return p2.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:ie(a,{onKeyDown:i,onKeyUp:o},{role:"menu",...s,onKeyDown:u=>{var d;(u.key!=="Escape"||t.shouldUseVirtualFocus)&&((d=s.onKeyDown)===null||d===void 0||d.call(s,u))}})}}function yp(t,e,n){let{id:r,key:i,closeOnSelect:o,isVirtualized:l,"aria-haspopup":a,onPressStart:s,onPressUp:u,onPress:d,onPressChange:f,onPressEnd:p,onClick:v,onHoverStart:b,onHoverChange:h,onHoverEnd:g,onKeyDown:y,onKeyUp:w,onFocus:C,onFocusChange:$,onBlur:D,selectionManager:E=e.selectionManager}=t,x=!!a,L=x&&t["aria-expanded"]==="true";var O;let B=(O=t.isDisabled)!==null&&O!==void 0?O:E.isDisabled(i);var S;let R=(S=t.isSelected)!==null&&S!==void 0?S:E.isSelected(i),U=p2.get(e),k=e.collection.getItem(i),Z=t.onClose||U.onClose,I=fi(),M=()=>{var ne;if(!x&&(!(k==null||(ne=k.props)===null||ne===void 0)&&ne.onAction?k.props.onAction():t.onAction&&t.onAction(i),U.onAction)){let pe=U.onAction;pe(i)}},z="menuitem";x||(E.selectionMode==="single"?z="menuitemradio":E.selectionMode==="multiple"&&(z="menuitemcheckbox"));let F=ft(),N=ft(),K=ft(),P={id:r,"aria-disabled":B||void 0,role:z,"aria-label":t["aria-label"],"aria-labelledby":F,"aria-describedby":[N,K].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":a,"aria-expanded":t["aria-expanded"]};E.selectionMode!=="none"&&!x&&(P["aria-checked"]=R),l&&(P["aria-posinset"]=k==null?void 0:k.index,P["aria-setsize"]=k0(e.collection));let _=c.useRef(!1),A=ne=>{f==null||f(ne),_.current=ne},j=c.useRef(null),H=ne=>{ne.pointerType!=="keyboard"&&(j.current={pointerType:ne.pointerType}),ne.pointerType==="mouse"&&(_.current||ne.target.click()),u==null||u(ne)},V=ne=>{var pe,Ut;v==null||v(ne),M(),G1(ne,I,k.props.href,k==null?void 0:k.props.routerOptions);let $n=((pe=j.current)===null||pe===void 0?void 0:pe.pointerType)==="keyboard"?((Ut=j.current)===null||Ut===void 0?void 0:Ut.key)==="Enter"||E.selectionMode==="none"||E.isLink(i):E.selectionMode!=="multiple"||E.isLink(i);$n=o??$n,Z&&!x&&$n&&Z(),j.current=null},{itemProps:W,isFocused:q}=jl({id:r,selectionManager:E,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:U.shouldUseVirtualFocus}),{pressProps:Y,isPressed:ae}=mi({onPressStart:s,onPress:d,onPressUp:H,onPressChange:A,onPressEnd:p,isDisabled:B}),{hoverProps:G}=Sn({isDisabled:B,onHoverStart(ne){!bn()&&!(L&&a)&&(E.setFocused(!0),E.setFocusedKey(i)),b==null||b(ne)},onHoverChange:h,onHoverEnd:g}),{keyboardProps:te}=Dc({onKeyDown:ne=>{if(ne.repeat){ne.continuePropagation();return}switch(ne.key){case" ":j.current={pointerType:"keyboard",key:" "},ne.target.click();break;case"Enter":j.current={pointerType:"keyboard",key:"Enter"},ne.target.tagName!=="A"&&ne.target.click();break;default:x||ne.continuePropagation(),y==null||y(ne);break}},onKeyUp:w}),{focusProps:de}=kl({onBlur:D,onFocus:C,onFocusChange:$}),Fe=he(k==null?void 0:k.props);delete Fe.id;let zt=El(k==null?void 0:k.props);return{menuItemProps:{...P,...ie(Fe,zt,x?{onFocus:W.onFocus,"data-collection":W["data-collection"],"data-key":W["data-key"]}:W,Y,G,te,de,U.shouldUseVirtualFocus||x?{onMouseDown:ne=>ne.preventDefault()}:void 0,B?void 0:{onClick:V}),tabIndex:W.tabIndex!=null&&L&&!U.shouldUseVirtualFocus?-1:W.tabIndex},labelProps:{id:F},descriptionProps:{id:N},keyboardShortcutProps:{id:K},isFocused:q,isFocusVisible:q&&E.isFocused&&bn()&&!L,isSelected:R,isPressed:ae,isDisabled:B}}function Cp(t){let{heading:e,"aria-label":n}=t,r=$e();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}function wp(t,e){let{role:n="dialog"}=t,r=ft();r=t["aria-label"]?void 0:r;let i=c.useRef(!1);return c.useEffect(()=>{if(e.current&&!e.current.contains(document.activeElement)){gt(e.current);let o=setTimeout(()=>{(document.activeElement===e.current||document.activeElement===document.body)&&(i.current=!0,e.current&&(e.current.blur(),gt(e.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[e]),np(),{dialogProps:{...he(t,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}const Vl=new WeakMap;function Ep(t,e,n){let{keyboardDelegate:r,isDisabled:i,isRequired:o,name:l,form:a,validationBehavior:s="aria"}=t,u=Rl({usage:"search",sensitivity:"base"}),d=c.useMemo(()=>r||new Hl(e.collection,e.disabledKeys,n,u),[r,e.collection,e.disabledKeys,u,n]),{menuTriggerProps:f,menuProps:p}=mp({isDisabled:i,type:"listbox"},e,n),v=O=>{switch(O.key){case"ArrowLeft":{var B,S;O.preventDefault();let k=e.selectedKey!=null?(B=d.getKeyAbove)===null||B===void 0?void 0:B.call(d,e.selectedKey):(S=d.getFirstKey)===null||S===void 0?void 0:S.call(d);k&&e.setSelectedKey(k);break}case"ArrowRight":{var R,U;O.preventDefault();let k=e.selectedKey!=null?(R=d.getKeyBelow)===null||R===void 0?void 0:R.call(d,e.selectedKey):(U=d.getFirstKey)===null||U===void 0?void 0:U.call(d);k&&e.setSelectedKey(k);break}}},{typeSelectProps:b}=P0({keyboardDelegate:d,selectionManager:e.selectionManager,onTypeSelect(O){e.setSelectedKey(O)}}),{isInvalid:h,validationErrors:g,validationDetails:y}=e.displayValidation,{labelProps:w,fieldProps:C,descriptionProps:$,errorMessageProps:D}=Th({...t,labelElementType:"span",isInvalid:h,errorMessage:t.errorMessage||g});b.onKeyDown=b.onKeyDownCapture,delete b.onKeyDownCapture;let E=he(t,{labelable:!0}),x=ie(b,f,C),L=$e();return Vl.set(e,{isDisabled:i,isRequired:o,name:l,form:a,validationBehavior:s}),{labelProps:{...w,onClick:()=>{if(!t.isDisabled){var O;(O=n.current)===null||O===void 0||O.focus(),$c("keyboard")}}},triggerProps:ie(E,{...x,isDisabled:i,onKeyDown:pt(x.onKeyDown,v,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[L,x["aria-labelledby"],x["aria-label"]&&!x["aria-labelledby"]?x.id:null].filter(Boolean).join(" "),onFocus(O){e.isFocused||(t.onFocus&&t.onFocus(O),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(O){e.isOpen||(t.onBlur&&t.onBlur(O),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:L},menuProps:{...p,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:O=>{O.currentTarget.contains(O.relatedTarget)||(t.onBlur&&t.onBlur(O),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:$,errorMessageProps:D,isInvalid:h,validationErrors:g,validationDetails:y,hiddenSelectProps:{isDisabled:i,name:l,label:t.label,state:e,triggerRef:n,form:a}}}function Sp(t,e,n){let r=Vl.get(e)||{},{autoComplete:i,name:o=r.name,form:l=r.form,isDisabled:a=r.isDisabled}=t,{validationBehavior:s,isRequired:u}=r,{visuallyHiddenProps:d}=Hc({style:{position:"fixed",top:0,left:0}});t5(t.selectRef,e.defaultSelectedKey,e.setSelectedKey),$h({validationBehavior:s,focus:()=>{var v;return(v=n.current)===null||v===void 0?void 0:v.focus()}},e,t.selectRef);let f=c.useCallback(v=>e.setSelectedKey(v.currentTarget.value),[e.setSelectedKey]);var p;return{containerProps:{...d,"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:a,required:s==="native"&&u,name:o,form:l,value:(p=e.selectedKey)!==null&&p!==void 0?p:"",onChange:f,onInput:f}}}function xp(t){let{state:e,triggerRef:n,label:r,name:i,form:o,isDisabled:l}=t,a=c.useRef(null),s=c.useRef(null),{containerProps:u,selectProps:d}=Sp({...t,selectRef:e.collection.size<=300?a:s},e,n);if(e.collection.size<=300)return c.createElement("div",{...u,"data-testid":"hidden-select-container"},c.createElement("label",null,r,c.createElement("select",{...d,ref:a},c.createElement("option",null),[...e.collection.getKeys()].map(p=>{let v=e.collection.getItem(p);if(v&&v.type==="item")return c.createElement("option",{key:v.key,value:v.key},v.textValue)}))));if(i){let p=Vl.get(e)||{},{validationBehavior:v}=p;var f;let b={type:"hidden",autoComplete:d.autoComplete,name:i,form:o,disabled:l,value:(f=e.selectedKey)!==null&&f!==void 0?f:""};return v==="native"?c.createElement("input",{...b,ref:s,style:{display:"none"},type:"text",required:d.required,onChange:()=>{}}):c.createElement("input",{...b,ref:s})}return null}function $p(t){let e=he(t,{labelable:!0}),n;return t.orientation==="vertical"&&(n="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":n}}:{separatorProps:e}}const v2=new WeakMap;function Jr(t,e,n){if(!t)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let r=v2.get(t);return process.env.NODE_ENV!=="production"&&!r&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${r}-${n}-${e}`}function Dp(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:a}=e,s=r===a,u=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:d,isPressed:f}=jl({selectionManager:l,key:r,ref:n,isDisabled:u,shouldSelectOnPressUp:o,linkBehavior:"selection"}),p=Jr(e,r,"tab"),v=Jr(e,r,"tabpanel"),{tabIndex:b}=d,h=e.collection.getItem(r),g=he(h==null?void 0:h.props,{labelable:!0});delete g.id;let y=El(h==null?void 0:h.props),{focusableProps:w}=Pc({isDisabled:u},n);return{tabProps:ie(g,w,y,d,{id:p,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?v:void 0,tabIndex:u?void 0:b,role:"tab"}),isSelected:s,isDisabled:u,isPressed:f}}function Pp(t,e,n){let r=mh(n)?void 0:0;var i;const o=Jr(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=pi({...t,id:o,"aria-labelledby":Jr(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:ie(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class _p{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 Tp(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:a}=e,{direction:s}=jt(),u=c.useMemo(()=>new _p(o,s,r,a),[o,a,r,s]),{collectionProps:d}=_0({ref:n,selectionManager:l,keyboardDelegate:u,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=$e();v2.set(e,f);let p=pi({...t,id:f});return{tabListProps:{...ie(d,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const g2=c.createContext({}),Ip=_l(function(e,n){[e,n]=Xe(e,n,g2);let{elementType:r="label",...i}=e;return c.createElement(r,{className:"react-aria-Label",...i,ref:n})}),Op=c.createContext(null),kp=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Bl=c.createContext({}),Np=_l(function(e,n){[e,n]=Xe(e,n,Bl),e=Mp(e);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=uh(e,n),{focusProps:a,isFocused:s,isFocusVisible:u}=xn(e),{hoverProps:d,isHovered:f}=Sn({...e,isDisabled:e.isDisabled||i}),p={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:s,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:i??!1},v=De({...e,values:p,defaultClassName:"react-aria-Button"}),b=$e(o.id),h=$e(),g=o["aria-labelledby"];i&&(g?g=`${g} ${h}`:o["aria-label"]&&(g=`${b} ${h}`));let y=c.useRef(i);return c.useEffect(()=>{let w={"aria-labelledby":g||b};(!y.current&&s&&i||y.current&&s&&!i)&&Ya(w,"assertive"),y.current=i},[i,s,g,b]),c.createElement("button",{...he(e,{propNames:kp}),...ie(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":p.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":u||void 0},c.createElement(Op.Provider,{value:{id:h}},v.children))});function Mp(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 zl=c.createContext({}),Rp=c.createContext(null);class vs{*[Symbol.iterator](){yield*this.iterable}get size(){return this._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=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let s of a.childNodes)n(s)};for(let a of e)n(a);let r=null,i=0,o=0;for(let[a,s]of this.keyMap)r?(r.nextKey=a,s.prevKey=r.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=i++),(s.type==="section"||s.type==="item")&&o++,r=s,r.nextKey=void 0;this._size=o;var l;this.lastKey=(l=r==null?void 0:r.key)!==null&&l!==void 0?l:null}}class He extends Set{constructor(e,n,r){super(e),e instanceof He?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Lp(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Ul(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=c.useRef(!1),[,a]=c.useState(!1),s=c.useRef(null),u=c.useRef(null),[,d]=c.useState(null),f=c.useMemo(()=>gs(t.selectedKeys),[t.selectedKeys]),p=c.useMemo(()=>gs(t.defaultSelectedKeys,new He),[t.defaultSelectedKeys]),[v,b]=vi(f,p,t.onSelectionChange),h=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[g,y]=c.useState(i);i==="replace"&&g==="toggle"&&typeof v=="object"&&v.size===0&&y("replace");let w=c.useRef(i);return c.useEffect(()=>{i!==w.current&&(y(i),w.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:g,setSelectionBehavior:y,get isFocused(){return l.current},setFocused(C){l.current=C,a(C)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(C,$="first"){s.current=C,u.current=$,d(C)},selectedKeys:v,setSelectedKeys(C){(r||!Lp(C,v))&&b(C)},disabledKeys:h,disabledBehavior:o}}function gs(t,e){return t?t==="all"?"all":new He(t):e}class or{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&&no(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&&no(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 He([n],n,n);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new He(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?no(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 He(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 He([n],n,n):new He;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new He;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=fp(O0(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 He)}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 or(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 m2(t){let{filter:e,layoutDelegate:n}=t,r=Ul(t),i=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=c.useCallback(u=>e?new vs(e(u)):new vs(u),[e]),l=c.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=I0(t,o,l),s=c.useMemo(()=>new or(a,r,{layoutDelegate:n}),[a,r,n]);return b2(a,s),{collection:a,disabledKeys:i,selectionManager:s}}function Ap(t,e){let n=c.useMemo(()=>e?t.collection.filter(e):t.collection,[t.collection,e]),r=t.selectionManager.withCollection(n);return b2(n,r),{collection:n,selectionManager:r,disabledKeys:t.disabledKeys}}function b2(t,e){const n=c.useRef(null);c.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const d=n.current.getItem(e.focusedKey),f=[...n.current.getKeys()].map(y=>{const w=n.current.getItem(y);return(w==null?void 0:w.type)==="item"?w:null}).filter(y=>y!==null),p=[...t.getKeys()].map(y=>{const w=t.getItem(y);return(w==null?void 0:w.type)==="item"?w:null}).filter(y=>y!==null);var r,i;const v=((r=f==null?void 0:f.length)!==null&&r!==void 0?r:0)-((i=p==null?void 0:p.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=p==null?void 0:p.length)!==null&&a!==void 0?a:0)-1),h=null,g=!1;for(;b>=0;){if(!e.isDisabled(p[b].key)){h=p[b];break}if(b<p.length-1&&!g)b++;else{g=!0;var s,u;b>((s=d==null?void 0:d.index)!==null&&s!==void 0?s:0)&&(b=(u=d==null?void 0:d.index)!==null&&u!==void 0?u:0),b--}}e.setFocusedKey(h?h.key:null)}n.current=t},[t,e])}function y2(t){var e;let[n,r]=vi(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=c.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:a}=m2({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:u=>{if(u==="all")return;var d;let f=(d=u.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 Wl(t){let[e,n]=vi(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=c.useCallback(()=>{n(!0)},[n]),i=c.useCallback(()=>{n(!1)},[n]),o=c.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}function Fp(t){let{initialItems:e=[],initialSelectedKeys:n,getKey:r=h=>{var g;return(g=h.id)!==null&&g!==void 0?g:h.key},getChildren:i=h=>h.children}=t,[o,l]=c.useState(()=>f(e,new Map)),{items:a,nodeMap:s}=o,[u,d]=c.useState(new Set(n||[]));function f(h=[],g,y){return h==null&&(h=[]),{items:h.map(w=>{let C={key:r(w),parentKey:y??null,value:w,children:null};return C.children=f(i(w),g,C.key).items,g.set(C.key,C),C}),nodeMap:g}}function p(h,g,y,w){let C=g==null?null:w.get(g);if(C==null)return{items:h,nodeMap:w};let $=new Map(w),D=y(C);for(D==null?b(C,$):v(D,$);C&&C.parentKey;){let x=$.get(C.parentKey),L={key:x.key,parentKey:x.parentKey,value:x.value,children:null},O=x.children;D==null&&O&&(O=O.filter(B=>B!==C));var E;L.children=(E=O==null?void 0:O.map(B=>B===C?D:B))!==null&&E!==void 0?E:null,$.set(L.key,L),D=L,C=x}return D==null&&(h=h.filter(x=>x!==C)),{items:h.map(x=>x===C?D:x),nodeMap:$}}function v(h,g){if(g.set(h.key,h),h.children)for(let y of h.children)v(y,g)}function b(h,g){if(g.delete(h.key),h.children)for(let y of h.children)b(y,g)}return{items:a,selectedKeys:u,setSelectedKeys:d,getItem(h){return s.get(h)},insert(h,g,...y){l(({items:w,nodeMap:C})=>{let{items:$,nodeMap:D}=f(y,C,h);return h==null?{items:[...w.slice(0,g),...$,...w.slice(g)],nodeMap:D}:p(w,h,E=>({key:E.key,parentKey:E.parentKey,value:E.value,children:[...E.children.slice(0,g),...$,...E.children.slice(g)]}),D)})},insertBefore(h,...g){let y=s.get(h);if(!y)return;let w=s.get(y.parentKey),$=(w?w.children:a).indexOf(y);var D;this.insert((D=w==null?void 0:w.key)!==null&&D!==void 0?D:null,$,...g)},insertAfter(h,...g){let y=s.get(h);if(!y)return;let w=s.get(y.parentKey),$=(w?w.children:a).indexOf(y);var D;this.insert((D=w==null?void 0:w.key)!==null&&D!==void 0?D:null,$+1,...g)},prepend(h,...g){this.insert(h,0,...g)},append(h,...g){if(h==null)this.insert(null,a.length,...g);else{let y=s.get(h);if(!y)return;this.insert(h,y.children.length,...g)}},remove(...h){if(h.length===0)return;let g=a,y=s,w;for(let $ of h)w=p(g,$,()=>null,y),y=w.nodeMap,g=w.items;l(w);let C=new Set(u);for(let $ of u)w.nodeMap.has($)||C.delete($);d(C)},removeSelectedItems(){this.remove(...u)},move(h,g,y){l(({items:w,nodeMap:C})=>{let $=C.get(h);if(!$)return{items:w,nodeMap:C};let{items:D,nodeMap:E}=p(w,h,()=>null,C);const x={...$,parentKey:g};return g==null?(v(x,E),{items:[...D.slice(0,y),x,...D.slice(y)],nodeMap:E}):p(D,g,L=>({key:L.key,parentKey:L.parentKey,value:L.value,children:[...L.children.slice(0,y),x,...L.children.slice(y)]}),E)})},moveBefore(h,g){l(y=>{let{items:w,nodeMap:C}=y,$=C.get(h);if(!$)return y;var D;let E=(D=$.parentKey)!==null&&D!==void 0?D:null,x=null;var L;E!=null&&(x=(L=C.get(E))!==null&&L!==void 0?L:null);let O=x!=null&&x.children?x.children.indexOf($):w.indexOf($);return ms(y,g,x,O,p,v)})},moveAfter(h,g){l(y=>{let{items:w,nodeMap:C}=y,$=C.get(h);if(!$)return y;var D;let E=(D=$.parentKey)!==null&&D!==void 0?D:null,x=null;var L;E!=null&&(x=(L=C.get(E))!==null&&L!==void 0?L:null);let O=x!=null&&x.children?x.children.indexOf($):w.indexOf($);return O++,ms(y,g,x,O,p,v)})},update(h,g){l(({items:y,nodeMap:w})=>p(y,h,C=>{let $={key:C.key,parentKey:C.parentKey,value:g,children:null},D=f(i(g),w,$.key);return $.children=D.items,$},w))}}}function ms(t,e,n,r,i,o){let{items:l,nodeMap:a}=t,s=n,u=new Set(e);for(;(s==null?void 0:s.parentKey)!=null;){if(u.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,p=Array.isArray(e)?e:[...e],v=new Map,b=[],h=l,g=a,y=0;function w(E,{inorder:x,postorder:L}){x==null||x(E);var O;if(E!=null)for(let B of(O=E.children)!==null&&O!==void 0?O:[])w(B,{inorder:x,postorder:L}),L==null||L(B)}function C(E){p.includes(E.key)&&v.set(E.key,y++)}function $(E){if(p.includes(E.key)){var x;b.push({...g.get(E.key),parentKey:(x=n==null?void 0:n.key)!==null&&x!==void 0?x:null});let{items:L,nodeMap:O}=i(h,E.key,()=>null,g);h=L,g=O}(E.parentKey===n||E.parentKey===(n==null?void 0:n.key))&&p.includes(E.key)&&(n!=null&&n.children?n.children.indexOf(E):l.indexOf(E))<f&&r--}w({children:l},{inorder:C,postorder:$});let D=b.sort((E,x)=>v.get(E.key)>v.get(x.key)?1:-1);return!n||n.key==null?(D.forEach(E=>{o(E,g)}),{items:[...h.slice(0,r),...D,...h.slice(r)],nodeMap:g}):i(h,n.key,E=>({key:E.key,parentKey:E.parentKey,value:E.value,children:[...E.children.slice(0,r),...D,...E.children.slice(r)]}),g)}function Kp(t){let e=Wl(t),[n,r]=c.useState(null),[i,o]=c.useState([]),l=()=>{o([]),e.close()};return{focusStrategy:n,...e,open(u=null){r(u),e.open()},toggle(u=null){r(u),e.toggle()},close(){l()},expandedKeysStack:i,openSubmenu:(u,d)=>{o(f=>d>f.length?f:[...f.slice(0,d),u])},closeSubmenu:(u,d)=>{o(f=>f[d]===u?f.slice(0,d):f)}}}function jp(t){let e=Wl(t),[n,r]=c.useState(null),i=y2({...t,onSelectionChange:d=>{t.onSelectionChange!=null&&t.onSelectionChange(d),e.close(),o.commitValidation()}}),o=Eh({...t,value:i.selectedKey}),[l,a]=c.useState(!1),[s]=c.useState(i.selectedKey);var u;return{...o,...i,...e,defaultSelectedKey:(u=t.defaultSelectedKey)!==null&&u!==void 0?u:s,focusStrategy:n,open(d=null){i.collection.size!==0&&(r(d),e.open())},toggle(d=null){i.collection.size!==0&&(r(d),e.toggle())},isFocused:l,setFocused:a}}function Hp(t){var e,n;let r=y2({...t,onSelectionChange:t.onSelectionChange?s=>{var u;s!=null&&((u=t.onSelectionChange)===null||u===void 0||u.call(t,s))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:bs(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=c.useRef(l);return c.useEffect(()=>{let s=l;t.selectedKey==null&&(i.isEmpty||s==null||!o.getItem(s))&&(s=bs(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 bs(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 Vp{*[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]=vi(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=Ul(t),o=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=I0(t,c.useCallback(s=>new Vp(s,{expandedKeys:n}),[n]),null);return c.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:o,toggleKey:s=>{r(zp(n,s))},setExpandedKeys:r,selectionManager:new or(l,i)}}function zp(t,e){let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}const Up=c.createContext(null),Yo=c.createContext(null),C2=c.createContext(null),w2={CollectionRoot({collection:t,renderDropIndicator:e}){return ys(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return ys(t,e,n)}};function ys(t,e,n){return gc({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 c.createElement(c.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 Ht=c.createContext(w2);function E2(t){return c.useMemo(()=>t!=null?new Set([t]):null,[t])}const Si=c.createContext({}),S2=c.createContext(null),Wp=c.forwardRef(function(e,n){let{render:r}=c.useContext(S2);return c.createElement(c.Fragment,null,r(e,n))});function x2(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=c.useCallback(l=>{if(i||e!=null&&e.isDropTarget(l))return r?r(l):c.createElement(Wp,{target:l})},[e==null?void 0:e.target,i,r]);return t!=null&&t.useDropIndicator?o:void 0}function Zp(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 c.useMemo(()=>new Set([o,l].filter(s=>s!=null)),[o,l])}const $2=c.createContext({}),Zl=c.createContext({}),D2=wi("separator",function(e,n){[e,n]=Xe(e,n,Zl);let{elementType:r,orientation:i,style:o,className:l,slot:a,...s}=e,u=r||"hr";u==="hr"&&i==="vertical"&&(u="div");let{separatorProps:d}=$p({...s,elementType:r,orientation:i});return c.createElement(u,{...he(e),...d,style:o,className:l??"react-aria-Separator",ref:n,slot:a||void 0})}),Gl=c.createContext(null),lr=c.createContext(null),Gp=c.forwardRef(function(e,n){[e,n]=Xe(e,n,Gl);let r=c.useContext(lr);return r?c.createElement(P2,{state:r,props:e,listBoxRef:n}):c.createElement(Ci,{content:c.createElement(Ml,e)},i=>c.createElement(qp,{props:e,listBoxRef:n,collection:i}))});function qp({props:t,listBoxRef:e,collection:n}){t={...t,collection:n,children:null,items:null};let{layoutDelegate:r}=c.useContext(Ht),i=m2({...t,layoutDelegate:r});return c.createElement(P2,{state:i,props:t,listBoxRef:e})}function P2({state:t,props:e,listBoxRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=c.useContext(Yo)||{};e=c.useMemo(()=>i?{...e,...i}:e,[e,i]);let{dragAndDropHooks:l,layout:a="stack",orientation:s="vertical"}=e;n=rt(c.useMemo(()=>bl(n,o!==void 0?o:null),[o,n]));let u=Ap(t,r),{collection:d,selectionManager:f}=u,p=!!(l!=null&&l.useDraggableCollectionState),v=!!(l!=null&&l.useDroppableCollectionState),{direction:b}=jt(),{disabledBehavior:h,disabledKeys:g}=f,y=Rl({usage:"search",sensitivity:"base"}),{isVirtualized:w,layoutDelegate:C,dropTargetDelegate:$,CollectionRoot:D}=c.useContext(Ht),E=c.useMemo(()=>e.keyboardDelegate||new Hl({collection:d,collator:y,ref:n,disabledKeys:g,disabledBehavior:h,layout:a,orientation:s,direction:b,layoutDelegate:C}),[d,y,n,h,g,s,b,e.keyboardDelegate,a,C]),{listBoxProps:x}=up({...e,shouldSelectOnPressUp:p||e.shouldSelectOnPressUp,keyboardDelegate:E,isVirtualized:w},u,n),L=c.useRef(p),O=c.useRef(v);c.useEffect(()=>{process.env.NODE_ENV!=="production"&&(L.current!==p&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),O.current!==v&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[p,v]);let B,S,R,U=!1,k=null,Z=c.useRef(null);if(p&&l){B=l.useDraggableCollectionState({collection:d,selectionManager:f,preview:l.renderDragPreview?Z:void 0}),l.useDraggableCollection({},B,n);let P=l.DragPreview;k=l.renderDragPreview?c.createElement(P,{ref:Z},l.renderDragPreview):null}if(v&&l){S=l.useDroppableCollectionState({collection:d,selectionManager:f});let P=l.dropTargetDelegate||$||new l.ListDropTargetDelegate(d,n,{orientation:s,layout:a,direction:b});R=l.useDroppableCollection({keyboardDelegate:E,dropTargetDelegate:P},S,n),U=S.isDropTarget({type:"root"})}let{focusProps:I,isFocused:M,isFocusVisible:z}=xn(),F={isDropTarget:U,isEmpty:u.collection.size===0,isFocused:M,isFocusVisible:z,layout:e.layout||"stack",state:u},N=De({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:F}),K=null;return u.collection.size===0&&e.renderEmptyState&&(K=c.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(F))),c.createElement(Ll,null,c.createElement("div",{...he(e),...ie(x,I,R==null?void 0:R.collectionProps),...N,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":U||void 0,"data-empty":u.collection.size===0||void 0,"data-focused":M||void 0,"data-focus-visible":z||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},c.createElement(it,{values:[[Gl,e],[lr,u],[Si,{dragAndDropHooks:l,dragState:B,dropState:S}],[Zl,{elementType:"div"}],[S2,{render:Jp}],[C2,{name:"ListBoxSection",render:Yp}]]},c.createElement(D,{collection:d,scrollRef:n,persistedKeys:Zp(f,l,S),renderDropIndicator:x2(l,S)})),K,k))}function Yp(t,e,n,r="react-aria-ListBoxSection"){let i=c.useContext(lr),{dragAndDropHooks:o,dropState:l}=c.useContext(Si),{CollectionBranch:a}=c.useContext(Ht),[s,u]=$l();var d;let{headingProps:f,groupProps:p}=vp({heading:u,"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 c.createElement("section",{...he(t),...p,...v,ref:e},c.createElement($2.Provider,{value:{...f,ref:s}},c.createElement(a,{collection:i.collection,parent:n,renderDropIndicator:x2(o,l)})))}const Xp=wi("item",function(e,n,r){let i=rt(n),o=c.useContext(lr),{dragAndDropHooks:l,dragState:a,dropState:s}=c.useContext(Si),{optionProps:u,labelProps:d,descriptionProps:f,...p}=pp({key:r.key,"aria-label":e==null?void 0:e["aria-label"]},o,i),{hoverProps:v,isHovered:b}=Sn({isDisabled:!p.allowsSelection&&!p.hasAction,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),h=null;a&&l&&(h=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 y=a&&a.isDragging(r.key),w=De({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:b,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:y,isDropTarget:g==null?void 0:g.isDropTarget}});c.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 C=e.href?"a":"div";return c.createElement(C,{...ie(u,v,h==null?void 0:h.dragProps,g==null?void 0:g.dropProps),...w,ref:i,"data-allows-dragging":!!a||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":y||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},c.createElement(it,{values:[[zl,{slots:{[Zn]:d,label:d,description:f}}]]},w.children))});function Jp(t,e){e=rt(e);let{dragAndDropHooks:n,dropState:r}=c.useContext(Si),{dropIndicatorProps:i,isHidden:o,isDropTarget:l}=n.useDropIndicator(t,r,e);return o?null:c.createElement(e4,{...t,dropIndicatorProps:i,isDropTarget:l,ref:e})}function Qp(t,e){let{dropIndicatorProps:n,isDropTarget:r,...i}=t,o=De({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return c.createElement("div",{...n,...o,role:"option",ref:e,"data-drop-target":r||void 0})}const e4=c.forwardRef(Qp),t4=c.createContext({placement:"bottom"}),_2=c.createContext(null),Cs=c.createContext(null),ql=c.forwardRef(function(e,n){[e,n]=Xe(e,n,_2);let r=c.useContext(Xl),i=Wl(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,l=l5(n,o.isOpen)||e.isExiting||!1,a=g5(),{direction:s}=jt();if(a){let u=e.children;return typeof u=="function"&&(u=u({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),c.createElement(c.Fragment,null,u)}return o&&!o.isOpen&&!l?null:c.createElement(n4,{...e,triggerRef:e.triggerRef,state:o,popoverRef:n,isExiting:l,dir:s})});function n4({state:t,isExiting:e,UNSTABLE_portalContainer:n,...r}){let i=c.useRef(null),[o,l]=c.useState(0),a=c.useRef(null),s=c.useContext(Cs),u=s&&r.trigger==="SubmenuTrigger";re(()=>{i.current&&t.isOpen&&l(i.current.getBoundingClientRect().width)},[t.isOpen,i]);var d;let{popoverProps:f,underlayProps:p,arrowProps:v,placement:b}=tp({...r,offset:(d=r.offset)!==null&&d!==void 0?d:8,arrowSize:o,groupRef:u?s:a},t),h=r.popoverRef,g=o5(h,!!b)||r.isEntering||!1,y=De({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:b,isEntering:g,isExiting:e}}),w=!r.isNonModal||r.trigger==="SubmenuTrigger",[C,$]=c.useState(!1);re(()=>{h.current&&$(w&&!h.current.querySelector("[role=dialog]"))},[h,w]),c.useEffect(()=>{C&&h.current&&!h.current.contains(document.activeElement)&>(h.current)},[C,h]);let D={...f.style,...y.style},E=c.createElement("div",{...ie(he(r),f),...y,role:C?"dialog":void 0,tabIndex:C?-1:void 0,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"],ref:h,slot:r.slot||void 0,style:D,dir:r.dir,"data-trigger":r.trigger,"data-placement":b,"data-entering":g||void 0,"data-exiting":e||void 0},!r.isNonModal&&c.createElement(as,{onDismiss:t.close}),c.createElement(t4.Provider,{value:{...v,placement:b,ref:i}},y.children),c.createElement(as,{onDismiss:t.close}));if(!u)return c.createElement(ss,{...r,shouldContainFocus:C,isExiting:e,portalContainer:n},!r.isNonModal&&t.isOpen&&c.createElement("div",{"data-testid":"underlay",...p,style:{position:"fixed",inset:0}}),c.createElement("div",{ref:a,style:{display:"contents"}},c.createElement(Cs.Provider,{value:a},E)));var x;return c.createElement(ss,{...r,shouldContainFocus:C,isExiting:e,portalContainer:(x=n??(s==null?void 0:s.current))!==null&&x!==void 0?x:void 0},E)}const r4=c.createContext({}),i4=c.createContext(null),Yl=c.createContext(null),ws=c.createContext(null),Qr=c.createContext(null),o4=c.createContext(null),l4=c.forwardRef(function(e,n){return[e,n]=Xe(e,n,i4),c.createElement(Ci,{content:c.createElement(Ml,e)},r=>c.createElement(a4,{props:e,collection:r,menuRef:n}))});function a4({props:t,collection:e,menuRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=c.useContext(Yo)||{};n=rt(c.useMemo(()=>bl(n,o!==void 0?o:null),[o,n]));let l=c.useMemo(()=>r?e.UNSTABLE_filter(r):e,[e,r]),a=Bp({...t,collection:l,children:void 0}),s=c.useContext(ws),{isVirtualized:u,CollectionRoot:d}=c.useContext(Ht),{menuProps:f}=bp({...t,...i,isVirtualized:u,onClose:t.onClose||(s==null?void 0:s.close)},a,n),p=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=c.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState())),c.createElement(Ll,null,c.createElement("div",{...he(t),...f,...p,ref:n,slot:t.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:t.onScroll},c.createElement(it,{values:[[Yl,a],[Zl,{elementType:"div"}],[C2,{name:"MenuSection",render:u4}],[o4,{parentMenuRef:n,shouldUseVirtualFocus:i==null?void 0:i.shouldUseVirtualFocus}],[Xo,null],[Yo,null],[Qr,a.selectionManager],[ws,s??Kp({})]]},c.createElement(d,{collection:a.collection,persistedKeys:E2(a.selectionManager.focusedKey),scrollRef:n})),v))}class s4 extends or{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 u4(t,e,n,r="react-aria-MenuSection"){var i,o;let l=c.useContext(Yl),{CollectionBranch:a}=c.useContext(Ht),[s,u]=$l();var d;let{headingProps:f,groupProps:p}=Cp({heading:u,"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=c.useContext(Qr),h=Ul(t),g=t.selectionMode!=null?new s4(b,h):b;return c.createElement("section",{...he(t),...p,...v,ref:e},c.createElement(it,{values:[[$2,{...f,ref:s}],[Qr,g]]},c.createElement(a,{collection:l.collection,parent:n})))}const Xo=c.createContext(null),Es=wi("item",function(e,n,r){var i;[e,n]=Xe(e,n,Xo);let o=(i=gi(Xo))===null||i===void 0?void 0:i.id,l=c.useContext(Yl),a=rt(n),s=c.useContext(Qr),{menuItemProps:u,labelProps:d,descriptionProps:f,keyboardShortcutProps:p,...v}=yp({...e,id:o,key:r.key,selectionManager:s},l,a),{hoverProps:b,isHovered:h}=Sn({isDisabled:v.isDisabled}),g=De({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...v,isHovered:h,isFocusVisible:v.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),y=e.href?"a":"div";return c.createElement(y,{...ie(u,b),...g,ref:a,"data-disabled":v.isDisabled||void 0,"data-hovered":h||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},c.createElement(it,{values:[[zl,{slots:{[Zn]:d,label:d,description:f}}],[r4,p]]},g.children))}),c4=c.createContext(null),Xl=c.createContext(null),d4=c.forwardRef(function(e,n){let r=e["aria-labelledby"];[e,n]=Xe(e,n,c4);let{dialogProps:i,titleProps:o}=wp({...e,"aria-labelledby":r},n),l=c.useContext(Xl);!i["aria-label"]&&!i["aria-labelledby"]&&(e["aria-labelledby"]?i["aria-labelledby"]=e["aria-labelledby"]:process.env.NODE_ENV!=="production"&&console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let a=De({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}});return c.createElement("section",{...he(e),...i,...a,ref:n,slot:e.slot||void 0},c.createElement(it,{values:[[p1,{slots:{[Zn]:{},title:{...o,level:2}}}],[Bl,{slots:{[Zn]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},a.children))}),T2=c.createContext(null),I2=c.createContext(null),f4=c.forwardRef(function(e,n){[e,n]=Xe(e,n,T2);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:l=!1}=e,a=c.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 c.createElement(Ci,{content:a},s=>c.createElement(h4,{props:e,collection:s,selectRef:n}))});function h4({props:t,selectRef:e,collection:n}){let{validationBehavior:r}=gi(Up)||{};var i,o;let l=(o=(i=t.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",a=jp({...t,collection:n,children:void 0,validationBehavior:l}),{isFocusVisible:s,focusProps:u}=xn({within:!0}),d=c.useRef(null),[f,p]=$l(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:v,triggerProps:b,valueProps:h,menuProps:g,descriptionProps:y,errorMessageProps:w,...C}=Ep({...h5(t),label:p,validationBehavior:l},a,d),[$,D]=c.useState(null),E=c.useCallback(()=>{d.current&&D(d.current.offsetWidth+"px")},[d]);No({ref:d,onResize:E});let x=c.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:s,isDisabled:t.isDisabled||!1,isInvalid:C.isInvalid||!1,isRequired:t.isRequired||!1}),[a.isOpen,a.isFocused,s,t.isDisabled,C.isInvalid,t.isRequired]),L=De({...t,values:x,defaultClassName:"react-aria-Select"}),O=he(t);delete O.id;let B=c.useRef(null);return c.createElement(it,{values:[[T2,t],[I2,a],[p4,h],[g2,{...v,ref:f,elementType:"span"}],[Bl,{...b,ref:d,isPressed:a.isOpen}],[Xl,a],[_2,{trigger:"Select",triggerRef:d,scrollRef:B,placement:"bottom start",style:{"--trigger-width":$},"aria-labelledby":g["aria-labelledby"]}],[Gl,{...g,ref:B}],[lr,a],[zl,{slots:{description:y,errorMessage:w}}],[Rp,C]]},c.createElement("div",{...O,...L,...u,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":C.isInvalid||void 0,"data-required":t.isRequired||void 0}),c.createElement(xp,{autoComplete:t.autoComplete,state:a,triggerRef:d,label:p,name:t.name,isDisabled:t.isDisabled}))}const p4=c.createContext(null),xi=c.createContext(null),yn=c.createContext(null),v4=c.forwardRef(function(e,n){[e,n]=Xe(e,n,xi);let{children:r,orientation:i="horizontal"}=e;return r=c.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),c.createElement(Ci,{content:r},o=>c.createElement(g4,{props:e,collection:o,tabsRef:n}))});function g4({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=Hp({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:a}=xn({within:!0}),s=c.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:a}),[r,l,a]),u=De({...t,defaultClassName:"react-aria-Tabs",values:s});return c.createElement("div",{...he(t),...o,...u,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},c.createElement(it,{values:[[xi,t],[yn,i]]},u.children))}const m4=c.forwardRef(function(e,n){return c.useContext(yn)?c.createElement(b4,{props:e,forwardedRef:n}):c.createElement(Ml,e)});function b4({props:t,forwardedRef:e}){let n=c.useContext(yn),{CollectionRoot:r}=c.useContext(Ht),{orientation:i="horizontal",keyboardActivation:o="automatic"}=gi(xi),l=rt(e),{tabListProps:a}=Tp({...t,orientation:i,keyboardActivation:o},n,l),s=De({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),u=he(t);return delete u.id,c.createElement("div",{...u,...a,ref:l,...s,"data-orientation":i||void 0},c.createElement(r,{collection:n.collection,persistedKeys:E2(n.selectionManager.focusedKey)}))}const y4=wi("item",(t,e,n)=>{let r=c.useContext(yn),i=rt(e),{tabProps:o,isSelected:l,isDisabled:a,isPressed:s}=Dp({key:n.key,...t},r,i),{focusProps:u,isFocused:d,isFocusVisible:f}=xn(),{hoverProps:p,isHovered:v}=Sn({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}}),h=n.props.href?"a":"div";return c.createElement(h,{...ie(o,u,p,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)}),C4=_l(function(e,n){const r=c.useContext(yn);let i=rt(n),{tabPanelProps:o}=Pp(e,r,i),{focusProps:l,isFocused:a,isFocusVisible:s}=xn(),u=r.selectedKey===e.id,d=De({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!u,state:r}});if(!u&&!e.shouldForceMount)return null;let f=he(e);delete f.id;let p=u?ie(f,o,l,d):d;return c.createElement("div",{...p,ref:i,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:n5(!u),"data-inert":u?void 0:"true"},c.createElement(it,{values:[[xi,null],[yn,null]]},c.createElement(Ht.Provider,{value:w2},d.children)))}),kt=({options:t,isOpen:e=!1,onOpenChange:n,children:r,selectedValues:i=[],onSelectValue:o,topMessage:l,shouldCloseOnInteractOutside:a})=>{const s=c.useId(),u=f=>{n==null||n(f)},d=c.useRef(null);return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"c__dropdown-menu-trigger",ref:d,id:s,onClick:f=>{f.stopPropagation(),f.preventDefault()},children:r}),m.jsx(ql,{triggerRef:d,style:{marginTop:"0px"},isOpen:e,shouldCloseOnInteractOutside:a,onOpenChange:u,children:m.jsxs(l4,{className:"c__dropdown-menu","aria-labelledby":s,children:[l&&m.jsx(Es,{className:"c__dropdown-menu-item-top-message",children:l}),t.map(f=>f.isHidden?null:m.jsxs(c.Fragment,{children:[m.jsxs(Es,{className:"c__dropdown-menu-item","aria-label":f.label,onAction:()=>{var p;f.value&&(o==null||o(f.value)),(p=f.callback)==null||p.call(f),u(!1)},isDisabled:f.isDisabled,children:[f.icon,m.jsx("div",{className:"c__dropdown-menu-item__label","aria-label":f.label,children:f.label}),(f.isChecked||f.value&&i.includes(f.value))&&m.jsx("span",{className:"material-icons checked",children:"check"})]},f.label),f.showSeparator&&m.jsx(D2,{})]},f.label))]})})]})},mt=()=>{const[t,e]=c.useState(!1);return{isOpen:t,setIsOpen:e}},Ss="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",w4="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",E4=({externalLinks:t,legalLinks:e,license:n,logo:r})=>{const{t:i}=X.useCunningham();return m.jsxs("footer",{className:"c__footer",children:[m.jsx("div",{className:"c__footer__stripe"}),m.jsxs("div",{className:"c__footer__content",children:[m.jsxs("div",{className:"c__footer__content__top",children:[m.jsx("div",{children:m.jsx("div",{className:"c__footer__content__top__logo",children:m.jsx("img",{className:"c__footer__logo",alt:(r==null?void 0:r.alt)||i("components.footer.logo.alt"),width:r==null?void 0:r.width,height:r==null?void 0:r.height,decoding:"async",src:(r==null?void 0:r.src)||w4})})}),m.jsx("div",{className:"c__footer__content__top__links",children:t==null?void 0:t.map(({label:o,href:l})=>m.jsxs("a",{href:l,target:"_blank",children:[m.jsx("span",{children:o}),m.jsx("img",{alt:"",width:"18",decoding:"async",src:Ss})]},o))})]}),m.jsx("div",{className:"c__footer__content__middle",children:e==null?void 0:e.map(({label:o,href:l})=>m.jsx("a",{href:l,children:m.jsx("span",{children:o})},o))}),n&&m.jsxs("p",{className:"c__footer__content__mention",children:[n==null?void 0:n.label," ",m.jsxs("a",{href:n==null?void 0:n.link.href,target:"_blank",children:[m.jsx("span",{children:n==null?void 0:n.link.label}),m.jsx("img",{alt:"",width:"18",decoding:"async",src:Ss})]})]})]})]})},S4=t=>m.jsx(f4,{...t,className:"c__filter",children:m.jsx(x4,{...t})}),x4=t=>{const e=c.useContext(I2),n=e!=null&&e.selectedItem?t.options.find(r=>{var i;return r.value===((i=e.selectedItem)==null?void 0:i.key)}):null;return m.jsxs(m.Fragment,{children:[m.jsxs(Np,{className:ye("c__filter__button",{"c__filter__button--active":!!n}),children:[m.jsx(Ip,{className:"c__filter__label",children:n?m.jsxs(m.Fragment,{children:[t.label," : ",n.label]}):m.jsx(m.Fragment,{children:t.label})}),m.jsx("span",{"aria-hidden":"true",className:ye("material-icons c__filter__button__icon",{opened:e==null?void 0:e.isOpen}),children:"keyboard_arrow_down"})]}),m.jsx(ql,{className:"c__dropdown-menu",children:m.jsx(Gp,{children:t.options.map(r=>m.jsxs(c.Fragment,{children:[m.jsx(Xp,{id:r.value,className:"c__dropdown-menu-item",children:m.jsxs("div",{className:"c__filter__item",children:[r.render?r.render():r.label,(t.selectedKey===r.value||r.isChecked)&&m.jsx("span",{className:"material-icons checked",children:"check"})]})},r.value),r.showSeparator&&m.jsx(D2,{})]},r.value))})})]})},$4=({logo:t,mainButton:e,banner:n,title:r,subtitle:i})=>m.jsx("div",{className:"c__hero",children:m.jsxs("div",{className:"c__hero__display",children:[m.jsxs("div",{className:"c__hero__display__captions",children:[t,m.jsx("h2",{children:r}),m.jsx("span",{className:"c__hero__display__captions__subtitle",children:i}),e||m.jsx(rc,{})]}),m.jsx("img",{src:n,alt:""})]})}),D4=({children:t})=>m.jsx("div",{className:"c__home-gutter",children:t}),O2=(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:O2(t[i],r.slice(1),n)},P4={placeholder:"Entrez votre adresse e-mail",srLabel:"Adresse e-mail",submit:"Suivant",title:"Connexion avec {linebreak}votre adresse e-mail"},_4={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"}},T4={label:"Les services de La Suite numérique"},I4={homepageLinkTitle:"Accueil - {serviceName}"},O4={newWindow:"{title} - nouvelle fenêtre"},k4={help:"Qu'est-ce que ProConnect ?",loginWith:"S’identifier avec",loginWithProconnect:"{loginWith} {proconnect}",or:"ou",title:"Connexion avec ProConnect"},k2={email:P4,footer:_4,gaufre:T4,header:I4,links:O4,proconnect:k4},N4=c.createContext(k2);function M4(){const t=c.useContext(N4)||k2;return{t:function(e,n={}){const r=O2(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 m.jsx(m.Fragment,{children:o.map((l,a)=>l in n?m.jsx(c.Fragment,{children:n[l]},a):l)})}return r}}}const R4={responsive:"lasuite-gaufre-btn--responsive",small:"lasuite-gaufre-btn--small"},L4=({variant:t})=>{const{t:e}=M4(),n=t?R4[t]:"";return m.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")})},A4=()=>m.jsxs(m.Fragment,{children:[m.jsx("script",{src:"https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js",id:"lasuite-gaufre-script",async:!0,defer:!0}),m.jsx(L4,{variant:"small"})]}),F4="data:image/svg+xml,%3csvg%20width='64'%20height='26'%20viewBox='0%200%2064%2026'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_7771_15979)'%3e%3cpath%20d='M63.4259%2019.6175C63.4259%2020.1333%2063.4259%2020.3912%2063.3731%2020.6274C63.2756%2021.0639%2063.0469%2021.4602%2062.7177%2021.763C62.5395%2021.9269%2062.3162%2022.0559%2061.8696%2022.3139L59.9192%2023.4406C59.4723%2023.6988%2059.2488%2023.8279%2059.0177%2023.9003C58.5905%2024.0343%2058.1326%2024.0343%2057.7055%2023.9003C57.4744%2023.8279%2057.2509%2023.6988%2056.804%2023.4406L55.4779%2022.6746C54.9159%2022.3499%2054.6348%2022.1875%2054.5043%2021.9996C54.2603%2021.6483%2054.2605%2021.1823%2054.5049%2020.8313C54.6356%2020.6435%2054.9168%2020.4814%2055.4792%2020.1572L56.8083%2019.3911C57.2557%2019.1333%2057.4793%2019.0044%2057.6578%2018.8405C57.9875%2018.5376%2058.2167%2018.1411%2058.3144%2017.7041C58.3673%2017.4677%2058.3673%2017.2095%2058.3673%2016.6932V15.1651C58.3673%2014.5163%2058.3673%2014.1919%2058.4647%2013.9849C58.6468%2013.598%2059.0502%2013.365%2059.4763%2013.4008C59.7042%2013.42%2059.9852%2013.5822%2060.5471%2013.9066L61.869%2014.6698C62.3157%2014.9277%2062.5391%2015.0567%2062.7173%2015.2206C63.0467%2015.5234%2063.2755%2015.9198%2063.3731%2016.3564C63.4259%2016.5927%2063.4259%2016.8506%2063.4259%2017.3665V19.6175Z'%20fill='%23C83F49'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M52.1227%2010.0913C54.0237%2010.0913%2055.2764%2011.3056%2055.4296%2013.0311C55.4634%2013.4125%2055.483%2013.8298%2055.4161%2014.2062C55.3942%2014.3293%2055.2848%2014.4154%2055.1598%2014.4154H50.4038C50.3227%2014.4154%2050.2598%2014.4872%2050.2735%2014.5671C50.4893%2015.8206%2051.1794%2016.3447%2052.2824%2016.3447C52.6047%2016.3447%2052.9343%2016.2299%2053.1712%2016.1233C53.3024%2016.0642%2053.3687%2016.0345%2053.4122%2016.0248C53.5046%2016.0041%2053.5644%2016.0079%2053.6538%2016.0395C53.6958%2016.0543%2053.745%2016.0841%2053.8434%2016.1435L54.2508%2016.3894C54.5156%2016.549%2054.6484%2016.6286%2054.7029%2016.7099C54.8054%2016.8634%2054.8021%2017.0598%2054.6943%2017.2097C54.6371%2017.2891%2054.5058%2017.3625%2054.2429%2017.5088C54.0455%2017.6186%2053.8437%2017.7185%2053.633%2017.7938C52.9051%2018.0543%2052.1282%2018.0627%2051.3458%2017.8972C49.3995%2017.4855%2048.3644%2015.875%2048.3644%2014.038C48.3645%2011.8759%2049.7285%2010.0914%2052.1227%2010.0913ZM52.0793%2011.6003C51.1906%2011.6004%2050.5851%2012.0639%2050.3482%2012.9186C50.3253%2013.0011%2050.3898%2013.0807%2050.4754%2013.0807H53.5357C53.6121%2013.0806%2053.6738%2013.0164%2053.6642%2012.9406C53.5771%2012.2499%2053.0446%2011.6003%2052.0793%2011.6003Z'%20fill='%232845C1'/%3e%3cpath%20d='M27.0483%207.27437C28.4287%207.27441%2029.5109%207.83538%2030.3491%208.7076C30.4132%208.77435%2030.4455%208.80771%2030.4647%208.84951C30.4989%208.9242%2030.4955%209.02087%2030.4562%209.09297C30.4341%209.13343%2030.3969%209.16737%2030.3222%209.23489L29.401%2010.0674C29.3152%2010.1449%2029.272%2010.1842%2029.2303%2010.202C29.1493%2010.2366%2029.0681%2010.2321%2028.9911%2010.1891C28.9515%2010.1671%2028.9094%2010.1201%2028.8253%2010.0264C28.2997%209.4409%2027.7178%209.07156%2027.0624%209.07156C26.3381%209.07169%2025.8599%209.53539%2025.8598%2010.1439C25.8598%2010.9189%2026.6772%2011.2755%2027.6234%2011.6878C28.924%2012.2546%2030.4683%2012.9276%2030.4684%2014.9409C30.4394%2016.8538%2028.9612%2017.9987%2027.0918%2017.9988C25.5333%2017.9988%2024.444%2017.4813%2023.583%2016.5778C23.5199%2016.5115%2023.4882%2016.478%2023.4693%2016.4365C23.4356%2016.3625%2023.4388%2016.2671%2023.4772%2016.1955C23.4988%2016.1552%2023.5355%2016.1211%2023.6087%2016.0536L24.5226%2015.2112C24.6088%2015.1317%2024.652%2015.0918%2024.6927%2015.0736C24.7735%2015.0376%2024.8496%2015.0396%2024.9282%2015.0803C24.9678%2015.1009%2025.0139%2015.1485%2025.1056%2015.2437C25.6733%2015.8326%2026.3698%2016.1728%2027.0771%2016.1728C27.8886%2016.1728%2028.3812%2015.7381%2028.3813%2015.0137C28.3813%2014.22%2027.551%2013.8546%2026.5951%2013.4342C25.2993%2012.8644%2023.7734%2012.193%2023.7733%2010.2167C23.7733%208.60804%2025.1064%207.27437%2027.0483%207.27437Z'%20fill='%232845C1'/%3e%3cpath%20d='M33.0816%2010.4051C33.1877%2010.4051%2033.2407%2010.4052%2033.2834%2010.4198C33.3629%2010.447%2033.4257%2010.5091%2033.4529%2010.5886C33.4675%2010.6314%2033.4676%2010.6848%2033.4676%2010.7911V14.55C33.4677%2015.6077%2034.0181%2016.2596%2035.0323%2016.2597C36.0322%2016.2597%2036.5829%2015.6077%2036.583%2014.55V10.7911C36.583%2010.6848%2036.583%2010.6314%2036.5977%2010.5886C36.6249%2010.5091%2036.6877%2010.447%2036.7671%2010.4198C36.8099%2010.4052%2036.8629%2010.4051%2036.969%2010.4051H38.0523C38.1585%2010.4051%2038.212%2010.4051%2038.2548%2010.4198C38.3341%2010.447%2038.3964%2010.5093%2038.4236%2010.5886C38.4382%2010.6314%2038.4383%2010.6848%2038.4383%2010.7911V14.4625C38.4383%2016.6508%2037.163%2017.9987%2035.0182%2017.9988C32.8734%2017.9988%2031.6123%2016.6508%2031.6123%2014.4625V10.7911C31.6123%2010.6848%2031.6123%2010.6314%2031.627%2010.5886C31.6541%2010.5093%2031.7165%2010.447%2031.7958%2010.4198C31.8386%2010.4051%2031.892%2010.4051%2031.9983%2010.4051H33.0816Z'%20fill='%232845C1'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M18.6864%2010.109C20.8021%2010.109%2021.8892%2011.3699%2021.8892%2012.9785V17.3173C21.8892%2017.4233%2021.8891%2017.4765%2021.8746%2017.5192C21.8474%2017.5986%2021.7846%2017.6614%2021.7051%2017.6886C21.6624%2017.7032%2021.6092%2017.7033%2021.5033%2017.7033H20.4346C20.3284%2017.7033%2020.2749%2017.7033%2020.2321%2017.6886C20.1527%2017.6614%2020.0905%2017.5986%2020.0633%2017.5192C20.0487%2017.4764%2020.0486%2017.4234%2020.0486%2017.3173V17.2415C20.0486%2017.1766%2020.0485%2017.144%2020.0413%2017.1302C20.0267%2017.1027%2019.999%2017.0907%2019.9691%2017.099C19.954%2017.1033%2019.9286%2017.127%2019.8786%2017.1742C19.3908%2017.6343%2018.6201%2017.9204%2017.8606%2017.9205C16.3969%2017.9205%2015.3967%2017.08%2015.3966%2015.7324C15.3966%2014.6311%2016.2515%2013.8046%2017.8165%2013.5437L19.8627%2013.1981C19.9699%2013.18%2020.0486%2013.0873%2020.0486%2012.9785C20.0486%2012.2105%2019.4687%2011.7178%2018.6282%2011.7178C18.0616%2011.7178%2017.5966%2011.9303%2017.2329%2012.2885C17.1368%2012.3832%2017.0884%2012.4305%2017.0519%2012.4494C16.9763%2012.4885%2016.9134%2012.4922%2016.8335%2012.4628C16.7949%2012.4487%2016.7508%2012.415%2016.6628%2012.3478L15.9276%2011.7869C15.849%2011.7269%2015.8096%2011.6967%2015.7838%2011.6566C15.7392%2011.5871%2015.7297%2011.4822%2015.7612%2011.4058C15.7794%2011.3617%2015.8085%2011.3298%2015.8664%2011.2664C16.5273%2010.542%2017.5043%2010.109%2018.6864%2010.109ZM19.8241%2014.4943L18.3095%2014.747C17.5416%2014.8774%2017.2227%2015.1958%2017.2225%2015.6449C17.2225%2016.1377%2017.6142%2016.4567%2018.2374%2016.4567C18.9727%2016.4566%2019.5305%2016.1571%2019.9012%2015.6939C19.9264%2015.6624%2019.9392%2015.6465%2019.9618%2015.6082C19.9962%2015.5498%2020.0329%2015.4453%2020.0425%2015.3782C20.0487%2015.3344%2020.0486%2015.2998%2020.0486%2015.2308V14.6846C20.0486%2014.623%2020.0483%2014.5923%2020.0394%2014.5689C20.0228%2014.5254%2019.9854%2014.4932%2019.9397%2014.4839C19.9152%2014.479%2019.8848%2014.4842%2019.8241%2014.4943Z'%20fill='%232845C1'/%3e%3cpath%20d='M45.2967%208.57914C45.4029%208.57914%2045.4564%208.57917%2045.4992%208.59382C45.5785%208.62109%2045.6408%208.68332%2045.668%208.76265C45.6826%208.8054%2045.6827%208.85848%2045.6827%208.96451V10.2717C45.6827%2010.3083%2045.6825%2010.3267%2045.6876%2010.3415C45.697%2010.3689%2045.7188%2010.3902%2045.7463%2010.3996C45.7611%2010.4046%2045.7794%2010.4051%2045.816%2010.4051H47.5288C47.6349%2010.4051%2047.6879%2010.4051%2047.7307%2010.4198C47.8101%2010.447%2047.8723%2010.5092%2047.8995%2010.5886C47.9142%2010.6314%2047.9142%2010.6848%2047.9142%2010.7911V11.6713C47.9142%2011.7774%2047.9141%2011.8304%2047.8995%2011.8732C47.8723%2011.9526%2047.8101%2012.0154%2047.7307%2012.0426C47.6879%2012.0572%2047.6348%2012.0573%2047.5288%2012.0573H45.816C45.7794%2012.0573%2045.7611%2012.0572%2045.7463%2012.0622C45.7189%2012.0716%2045.697%2012.0929%2045.6876%2012.1203C45.6825%2012.1351%2045.6827%2012.1539%2045.6827%2012.1906V15.0424C45.6827%2015.8539%2046.1173%2016.1728%2046.8419%2016.1728C47.126%2016.1728%2047.3557%2016.1547%2047.5459%2016.1208C47.6769%2016.0976%2047.7423%2016.0861%2047.7766%2016.0927C47.8485%2016.1066%2047.8904%2016.1412%2047.9166%2016.2095C47.9291%2016.2421%2047.9289%2016.2989%2047.9289%2016.412V17.3706C47.9289%2017.4389%2047.9286%2017.4731%2047.9191%2017.5082C47.9029%2017.5673%2047.8551%2017.6323%2047.8035%2017.6654C47.7728%2017.685%2047.7464%2017.6935%2047.6934%2017.71C47.3789%2017.8083%2047.0056%2017.8538%2046.5232%2017.8538C44.6972%2017.8538%2043.8274%2016.8249%2043.8274%2015.0424V12.1906C43.8274%2012.1539%2043.8276%2012.1351%2043.8225%2012.1203C43.813%2012.0929%2043.7912%2012.0716%2043.7638%2012.0622C43.749%2012.0572%2043.7306%2012.0573%2043.694%2012.0573H42.8511C42.7451%2012.0573%2042.692%2012.0572%2042.6492%2012.0426C42.5698%2012.0154%2042.507%2011.9526%2042.4798%2011.8732C42.4652%2011.8304%2042.4651%2011.7773%2042.4651%2011.6713V10.7911C42.4651%2010.6848%2042.4652%2010.6314%2042.4798%2010.5886C42.507%2010.5091%2042.5698%2010.447%2042.6492%2010.4198C42.692%2010.4052%2042.745%2010.4051%2042.8511%2010.4051H43.694C43.7306%2010.4051%2043.749%2010.4046%2043.7638%2010.3996C43.7912%2010.3902%2043.8131%2010.3689%2043.8225%2010.3415C43.8276%2010.3267%2043.8274%2010.3083%2043.8274%2010.2717V8.96451C43.8274%208.85851%2043.8275%208.80539%2043.8421%208.76265C43.8693%208.6832%2043.9321%208.62102%2044.0115%208.59382C44.0543%208.57921%2044.1073%208.57914%2044.2134%208.57914H45.2967Z'%20fill='%232845C1'/%3e%3cpath%20d='M10.4969%207.60347C10.6271%207.59288%2010.7502%207.66445%2010.8058%207.7827C10.8355%207.84596%2010.8357%207.94515%2010.8357%208.14299V15.7141C10.8357%2015.767%2010.8358%2015.7936%2010.8431%2015.815C10.8567%2015.8546%2010.8878%2015.8858%2010.9275%2015.8994C10.9489%2015.9067%2010.9754%2015.9067%2011.0284%2015.9067H14.2013C14.3074%2015.9067%2014.3605%2015.9068%2014.4032%2015.9214C14.4825%2015.9486%2014.5448%2016.011%2014.572%2016.0903C14.5867%2016.133%2014.5867%2016.1865%2014.5867%2016.2927V17.3326C14.5867%2017.4387%2014.5867%2017.4917%2014.572%2017.5345C14.5448%2017.6139%2014.4827%2017.6767%2014.4032%2017.7039C14.3605%2017.7185%2014.3073%2017.7186%2014.2013%2017.7186H9.25388C9.14764%2017.7186%209.09419%2017.7186%209.0514%2017.7039C8.972%2017.6767%208.90977%2017.6139%208.88258%2017.5345C8.86796%2017.4917%208.86789%2017.4387%208.86789%2017.3326V9.01834C8.86789%208.87045%208.86801%208.79609%208.88319%208.7284C8.91128%208.6034%208.97706%208.49005%209.07159%208.40358C9.12277%208.35678%209.1868%208.31985%209.31505%208.24637L10.1696%207.75701C10.3413%207.65863%2010.4272%207.60914%2010.4969%207.60347Z'%20fill='%232845C1'/%3e%3cpath%20d='M41.3506%2010.4051C41.4567%2010.4051%2041.5097%2010.4052%2041.5525%2010.4198C41.6319%2010.447%2041.6947%2010.5091%2041.7219%2010.5886C41.7366%2010.6314%2041.7366%2010.6848%2041.7366%2010.7911V17.3235C41.7366%2017.4295%2041.7365%2017.4826%2041.7219%2017.5253C41.6947%2017.6048%2041.6319%2017.6669%2041.5525%2017.6941C41.5097%2017.7087%2041.4567%2017.7088%2041.3506%2017.7088H40.282C40.1757%2017.7088%2040.1223%2017.7088%2040.0795%2017.6941C40.0001%2017.6669%2039.9378%2017.6047%2039.9106%2017.5253C39.896%2017.4826%2039.896%2017.4295%2039.896%2017.3235V10.7911C39.896%2010.6848%2039.896%2010.6314%2039.9106%2010.5886C39.9378%2010.5092%2040.0001%2010.447%2040.0795%2010.4198C40.1223%2010.4051%2040.1757%2010.4051%2040.282%2010.4051H41.3506Z'%20fill='%232845C1'/%3e%3cpath%20d='M5.0894%201.1867C5.51644%201.05287%205.97448%201.05281%206.4015%201.1867C6.63253%201.25916%206.85582%201.38863%207.30254%201.6467L8.62872%202.41255C9.19079%202.73725%209.47203%202.89994%209.60255%203.08787C9.8464%203.43915%209.84622%203.90523%209.60194%204.25623C9.47119%204.44396%209.18971%204.60566%208.62749%204.92971L7.29826%205.69618C6.85114%205.95389%206.6276%206.0829%206.44922%206.24671C6.11946%206.54958%205.88998%206.94632%205.79225%207.38326C5.73941%207.61961%205.73964%207.87775%205.73964%208.39379V9.92244C5.73964%2010.571%205.73973%2010.8955%205.64238%2011.1024C5.46034%2011.4893%205.05667%2011.7223%204.63062%2011.6866C4.40267%2011.6675%204.12141%2011.5051%203.55953%2011.1807L2.23763%2010.4173C1.79099%2010.1594%201.56738%2010.0306%201.3892%209.86678C1.0599%209.56394%200.831048%209.16745%200.733454%208.73084C0.680657%208.49461%200.680847%208.23666%200.680847%207.72092V5.46985C0.680847%204.95415%200.680686%204.69612%200.733454%204.45992C0.83101%204.02338%201.05999%203.62683%201.3892%203.32399C1.56729%203.16021%201.79065%203.03132%202.23702%202.77346L4.18775%201.6467C4.63463%201.38855%204.8583%201.25915%205.0894%201.1867Z'%20fill='%232845C1'/%3e%3cpath%20d='M40.8233%206.72384C41.4755%206.72384%2042.0119%207.27491%2042.0119%207.92706C42.0117%208.57908%2041.4754%209.12967%2040.8233%209.12967C40.1713%209.12963%2039.6209%208.57906%2039.6207%207.92706C39.6207%207.27494%2040.1712%206.72389%2040.8233%206.72384Z'%20fill='%232845C1'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_7771_15979'%3e%3crect%20width='64'%20height='25.098'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",K4={themes:{default:{globals:{colors:{"brand-050":"#EDF0FF","brand-100":"#DAE2FF","brand-150":"#C8D3FF","brand-200":"#B5C4FF","brand-250":"#A2B6FF","brand-300":"#90A7FF","brand-350":"#7E98FF","brand-400":"#6C89FE","brand-450":"#5C7AF7","brand-500":"#4C6CEF","brand-550":"#3E5DE7","brand-600":"#304DDF","brand-650":"#2845C1","brand-700":"#223E9E","brand-750":"#1F367D","brand-800":"#1B2E5F","brand-850":"#172446","brand-900":"#121B30","brand-950":"#0C111A","gray-000":"#FFFFFF","gray-025":"#F6F8F9","gray-050":"#EEF1F4","gray-100":"#DFE2EA","gray-150":"#CFD5DE","gray-200":"#C1C7D3","gray-250":"#B2B9C7","gray-300":"#A4ABBC","gray-350":"#969EB0","gray-400":"#8891A4","gray-450":"#7B8498","gray-500":"#6D778C","gray-550":"#626A80","gray-600":"#555E74","gray-650":"#4A5267","gray-700":"#3F4759","gray-750":"#363B4C","gray-800":"#2B303D","gray-850":"#222631","gray-900":"#181B24","gray-950":"#0F1117","gray-1000":"#000000","info-050":"#E7F2FF","info-100":"#CFE5FF","info-150":"#B7D7FF","info-200":"#A0CAFE","info-250":"#8CBCF9","info-300":"#77AEF4","info-350":"#63A0EE","info-400":"#5092E7","info-450":"#4185DC","info-500":"#3677CC","info-550":"#2F6ABB","info-600":"#265EAA","info-650":"#28528F","info-700":"#274775","info-750":"#243C5E","info-800":"#20314A","info-850":"#1B2637","info-900":"#141C27","info-950":"#0D1118","success-050":"#DEF7E6","success-100":"#BAEECF","success-150":"#A5E2C0","success-200":"#95D4B3","success-250":"#85C6A7","success-300":"#74B99B","success-350":"#65AB8F","success-400":"#579E84","success-450":"#4B9079","success-500":"#40836F","success-550":"#367664","success-600":"#2B695A","success-650":"#2C5A50","success-700":"#2A4D45","success-750":"#26403C","success-800":"#213430","success-850":"#1B2826","success-900":"#151D1C","success-950":"#0D1212","warning-050":"#FFEEDF","warning-100":"#FFDCBE","warning-150":"#FFCA9C","warning-200":"#FFB778","warning-250":"#FDA54F","warning-300":"#F59425","warning-350":"#E78613","warning-400":"#D7790C","warning-450":"#C86C08","warning-500":"#B85F03","warning-550":"#A75400","warning-600":"#984800","warning-650":"#814112","warning-700":"#6C3A19","warning-750":"#58321C","warning-800":"#452A1A","warning-850":"#352117","warning-900":"#261813","warning-950":"#170F0C","error-050":"#FFEDEB","error-100":"#FFDAD7","error-150":"#FFC7C2","error-200":"#FFB3AD","error-250":"#FF9F99","error-300":"#FF8984","error-350":"#FF706E","error-400":"#FB5759","error-450":"#F63A45","error-500":"#E32C39","error-550":"#CF202D","error-600":"#BD0F23","error-650":"#9D2227","error-700":"#812727","error-750":"#672624","error-800":"#512220","error-850":"#3D1C1B","error-900":"#2A1614","error-950":"#190E0D","red-050":"#FFEDEB","red-100":"#FFDAD7","red-150":"#FFC7C2","red-200":"#FFB3AD","red-250":"#FF9F99","red-300":"#FF8984","red-350":"#FF706E","red-400":"#FB5759","red-450":"#F63A45","red-500":"#E32C39","red-550":"#CF202D","red-600":"#BD0F23","red-650":"#9D2227","red-700":"#812727","red-750":"#672624","red-800":"#512220","red-850":"#3D1C1B","red-900":"#2A1614","red-950":"#190E0D","orange-050":"#FCEDEB","orange-100":"#F8DCD7","orange-150":"#F1CCC5","orange-200":"#EABCB4","orange-250":"#E2ACA2","orange-300":"#DA9C92","orange-350":"#D28C81","orange-400":"#CA7C70","orange-450":"#BE6E62","orange-500":"#AE6257","orange-550":"#9E564D","orange-600":"#8F4B42","orange-650":"#79443D","orange-700":"#643C37","orange-750":"#513430","orange-800":"#412B28","orange-850":"#312220","orange-900":"#231918","orange-950":"#150F0F","brown-050":"#F9EFEA","brown-100":"#F3DFD3","brown-150":"#EACFC1","brown-200":"#E2BFAE","brown-250":"#D8B19C","brown-300":"#D0A189","brown-350":"#C3937B","brown-400":"#B5866D","brown-450":"#A77A62","brown-500":"#996D57","brown-550":"#8B614D","brown-600":"#7C5542","brown-650":"#6A4C3C","brown-700":"#594236","brown-750":"#49382F","brown-800":"#3B2E28","brown-850":"#2D2420","brown-900":"#201A18","brown-950":"#13100F","yellow-050":"#FDF1C5","yellow-100":"#FBE18E","yellow-150":"#F4D261","yellow-200":"#EAC244","yellow-250":"#DFB41B","yellow-300":"#D1A516","yellow-350":"#C49711","yellow-400":"#B78A0C","yellow-450":"#A87D07","yellow-500":"#9B6F02","yellow-550":"#8D6300","yellow-600":"#7F5600","yellow-650":"#6E4C11","yellow-700":"#5D4219","yellow-750":"#4D371B","yellow-800":"#3D2E1A","yellow-850":"#2F2417","yellow-900":"#221A12","yellow-950":"#14100C","green-050":"#E7F9B3","green-100":"#D5EC98","green-150":"#C5DE86","green-200":"#B5D174","green-250":"#A5C464","green-300":"#95B755","green-350":"#85AA45","green-400":"#769D39","green-450":"#688F30","green-500":"#5A8228","green-550":"#4D7621","green-600":"#416919","green-650":"#3A5B20","green-700":"#324E22","green-750":"#2C4122","green-800":"#24351D","green-850":"#1D2919","green-900":"#161E13","green-950":"#0E120C","blue1-050":"#E7F2FF","blue1-100":"#CFE5FF","blue1-150":"#B7D7FF","blue1-200":"#A0CAFE","blue1-250":"#8CBCF9","blue1-300":"#77AEF4","blue1-350":"#63A0EE","blue1-400":"#5092E7","blue1-450":"#4185DC","blue1-500":"#3677CC","blue1-550":"#2F6ABB","blue1-600":"#265EAA","blue1-650":"#28528F","blue1-700":"#274775","blue1-750":"#243C5E","blue1-800":"#20314A","blue1-850":"#1B2637","blue1-900":"#141C27","blue1-950":"#0D1118","blue2-050":"#E2F4FD","blue2-100":"#C4E8F8","blue2-150":"#AADCF2","blue2-200":"#93CFEB","blue2-250":"#7CC2E2","blue2-300":"#6CB4D6","blue2-350":"#5CA7C9","blue2-400":"#5099BC","blue2-450":"#458BAE","blue2-500":"#3A7EA0","blue2-550":"#327191","blue2-600":"#286483","blue2-650":"#2B5770","blue2-700":"#294A5E","blue2-750":"#263E4D","blue2-800":"#22323D","blue2-850":"#1C272E","blue2-900":"#151D21","blue2-950":"#0E1114","purple-050":"#F5EEFF","purple-100":"#ECDCFF","purple-150":"#E2CBFF","purple-200":"#D9B9FF","purple-250":"#D0A7FF","purple-300":"#C894FE","purple-350":"#BE83FA","purple-400":"#B570F5","purple-450":"#AB5EF0","purple-500":"#A04BE8","purple-550":"#933CDB","purple-600":"#8530C8","purple-650":"#7033A5","purple-700":"#5D3185","purple-750":"#4C2C6A","purple-800":"#3C2652","purple-850":"#2D203C","purple-900":"#21182A","purple-950":"#130F19","pink-050":"#FFEBF6","pink-100":"#FFD8ED","pink-150":"#FCC4E3","pink-200":"#F7B2D9","pink-250":"#F29FCE","pink-300":"#ED8CC3","pink-350":"#E779B8","pink-400":"#E264AD","pink-450":"#D2579E","pink-500":"#C24B8E","pink-550":"#B0417F","pink-600":"#9F3670","pink-650":"#873560","pink-700":"#6F3250","pink-750":"#5A2C43","pink-800":"#472635","pink-850":"#351F29","pink-900":"#26171D","pink-950":"#170F12"},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(contextuals.background.semantic.neutral.tertiary)"},button:{"medium-height":"40px","medium-text-height":"40px","border-radius":"4px","border-radius--active":"4px","border-radius--focus":"4px"},datagrid:{"header--color":"ref(contextuals.content.semantic.neutral.primary)","header--size":"12px","header--weight":"500","body--background-color-hover":"ref(contextuals.background.semantic.neutral.tertiary)"},"forms-checkbox":{"font-size":"ref(globals.font.sizes.sm)"},badge:{"font-size":"ref(globals.font.sizes.xs)","border-radius":"12px","padding-inline":"ref(globals.spacings.xs)","padding-block":"ref(globals.spacings.2xs)",accent:{"background-color":"ref(contextuals.background.semantic.brand.secondary)",color:"ref(contextuals.content.semantic.brand.secondary)"},neutral:{"background-color":"ref(contextuals.background.semantic.neutral.secondary)",color:"ref(contextuals.content.semantic.neutral.secondary)"},danger:{"background-color":"ref(contextuals.background.semantic.error.secondary)",color:"ref(contextuals.content.semantic.error.secondary)"},success:{"background-color":"ref(contextuals.background.semantic.success.secondary)",color:"ref(contextuals.content.semantic.success.secondary)"},warning:{"background-color":"ref(contextuals.background.semantic.warning.secondary)",color:"ref(contextuals.content.semantic.warning.secondary)"},info:{"background-color":"ref(contextuals.background.semantic.info.secondary)",color:"ref(contextuals.content.semantic.info.secondary)"}}}}}},Jo={...K4},xs={mobile:parseInt(Jo.themes.default.globals.breakpoints.mobile.replace("px","")),tablet:parseInt(Jo.themes.default.globals.breakpoints.tablet.replace("px",""))},$s=(t,e)=>({isMobile:t<=e.mobile,isTablet:t<=e.tablet,isDesktop:t>e.tablet}),bt=()=>{const[t,e]=c.useState($s(window.innerWidth,xs));return c.useEffect(()=>{const n=()=>{const r=$s(window.innerWidth,xs);JSON.stringify(r)===JSON.stringify(t)||e(r)};return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[t]),t},N2=c.memo(({apiUrl:t,data:e,...n})=>{const{t:r}=X.useCunningham(),{isMobile:i}=bt(),o=c.useRef(null),l=c.useMemo(()=>n.widgetPath||"https://static.suite.anct.gouv.fr/widgets/lagaufre.js",[n.widgetPath]),a=e!=null&&e.services?void 0:t,s=n.label||r("components.laGaufre.label"),u=n.closeLabel||r("components.laGaufre.closeLabel"),d=n.loadingText||r("components.laGaufre.loadingText"),f=n.newWindowLabelSuffix||r("components.laGaufre.newWindowLabelSuffix"),p=n.background||"",v=n.headerLabel||r("components.laGaufre.headerLabel"),b=n.viewMoreLabel||r("components.laGaufre.viewMoreLabel"),h=n.viewLessLabel||r("components.laGaufre.viewLessLabel");return c.useEffect(()=>{window._lasuite_widget=window._lasuite_widget||[],document.querySelectorAll("#lasuite-widget-lagaufre-shadow").forEach(y=>{var w;return(w=y.parentNode)==null?void 0:w.removeChild(y)}),window._lasuite_widget.push(["lagaufre","init",{...n,api:a,label:s,data:e,closeLabel:u,background:p,showFooter:i,headerLabel:v,headerLogo:F4,loadingText:d,newWindowLabelSuffix:f,viewMoreLabel:b,viewLessLabel:h,buttonElement:o.current,position:()=>{var y,w,C,$;return{position:"absolute",top:(((y=o.current)==null?void 0:y.offsetTop)??0)+(((w=o.current)==null?void 0:w.offsetHeight)??0)+10,right:window.innerWidth-(((C=o.current)==null?void 0:C.offsetLeft)??0)-((($=o.current)==null?void 0:$.offsetWidth)??0)}}}])},[b,h,u,v,d,a,l]),m.jsxs(m.Fragment,{children:[m.jsx("script",{src:l,id:"lasuite-gaufre-script",async:!0}),m.jsx("div",{children:m.jsx(X.Button,{ref:o,icon:m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",viewBox:"0 0 18 18",children:[m.jsx("defs",{children:m.jsx("path",{id:"a",fill:"var(--c--contextuals--background--semantic--brand--primary)",d:"M2.796.5c.469 0 .704 0 .892.064.351.12.627.397.748.748.064.188.064.423.064.892v.592c0 .469 0 .704-.064.892-.12.351-.397.627-.748.748-.188.064-.423.064-.892.064h-.592c-.469 0-.704 0-.892-.064a1.2 1.2 0 0 1-.748-.748C.5 3.5.5 3.265.5 2.796v-.592c0-.469 0-.704.064-.892.12-.351.397-.627.748-.748C1.5.5 1.735.5 2.204.5z"})}),m.jsx("use",{href:"#a"}),m.jsx("use",{href:"#a",transform:"translate(6.5)"}),m.jsx("use",{href:"#a",transform:"translate(13)"}),m.jsx("use",{href:"#a",transform:"translate(0 6.5)"}),m.jsx("use",{href:"#a",transform:"translate(6.5 6.5)"}),m.jsx("use",{href:"#a",transform:"translate(13 6.5)"}),m.jsx("use",{href:"#a",transform:"translate(0 13)"}),m.jsx("use",{href:"#a",transform:"translate(6.5 13)"}),m.jsx("use",{href:"#a",transform:"translate(13 13)"})]}),"aria-label":s,variant:"tertiary",className:"lagaufre-button"})})]})});N2.displayName="LaGaufreV2";var xe=(t=>(t.X_SMALL="xsmall",t.SMALL="small",t.MEDIUM="medium",t.LARGE="large",t.X_LARGE="xlarge",t))(xe||{}),zn=(t=>(t.OUTLINED="outlined",t.FILLED="filled",t))(zn||{});const qn=({name:t,size:e,className:n,color:r,type:i=zn.FILLED,...o})=>{const l=ye("",{[`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 m.jsx("span",{className:l,style:a,...o,children:t})},M2={[xe.X_SMALL]:11,[xe.SMALL]:16,[xe.MEDIUM]:24,[xe.LARGE]:32,[xe.X_LARGE]:40},R2={[xe.X_SMALL]:16,[xe.SMALL]:24,[xe.MEDIUM]:32,[xe.LARGE]:40,[xe.X_LARGE]:48},j4=t=>R2[t]??24,H4=t=>M2[t]??24,L2=({languages:t,onChange:e,size:n,color:r="brand",variant:i="tertiary",fullWidth:o,compact:l=!1})=>{const{isOpen:a,setIsOpen:s}=mt(),u=()=>{const h=t.find(g=>g.isChecked);return(h==null?void 0:h.value)??t[0].value},[d,f]=c.useState(u),p=h=>{f(h),e==null||e(h)},v=c.useMemo(()=>{if(n)switch(n){case"nano":return xe.X_SMALL;case"small":return xe.SMALL;case"medium":return xe.MEDIUM}},[n]);c.useEffect(()=>{f(u)},[t]);const b=c.useMemo(()=>{const h=t.find(g=>g.value===d);return(h==null?void 0:h.shortLabel)??(h==null?void 0:h.label)},[t,d]);return m.jsx(kt,{options:t,isOpen:a,onOpenChange:s,onSelectValue:p,selectedValues:[d],children:m.jsxs(X.Button,{onClick:()=>s(!a),className:"c__language-picker",icon:m.jsx(qn,{name:a?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",size:n,color:l?"neutral":r,variant:i,fullWidth:o,children:[l?null:m.jsx(qn,{name:"translate",size:v}),m.jsx("span",{className:"c__language-picker__label",children:b})]})})},A2=({leftIcon:t,rightIcon:e,languages:n,onTogglePanel:r,isPanelOpen:i})=>{const{t:o}=X.useCunningham();return m.jsxs("div",{className:"c__header",children:[m.jsx("div",{className:"c__header__toggle-menu",children:m.jsx(X.Button,{size:"medium",onClick:r,"aria-label":o(i?"Close the menu":"Open the menu"),variant:"tertiary",icon:m.jsx("span",{className:"material-icons c__header__toggle-menu__icon",children:i?"close":"menu"})})}),m.jsx("div",{className:"c__header__left",children:t}),m.jsxs("div",{className:"c__header__right",children:[n&&m.jsx("div",{className:"c__header__right__language-picker",children:m.jsx(L2,{languages:n})}),e]})]})},F2=({children:t,isOpen:e=!1,hasHeader:n=!0})=>{const{isDesktop:r}=bt();return r?m.jsx("div",{className:ye("c__left-panel",{"has-header":n}),children:t}):m.jsx("div",{className:ye("c__left-panel__mobile",{open:e}),children:t})},{createElement:Cn,createContext:V4,forwardRef:K2,useCallback:Pe,useContext:j2,useEffect:Pt,useImperativeHandle:H2,useLayoutEffect:B4,useMemo:z4,useRef:Te,useState:pn}=T,Ds=T[`useId${Math.random()}`.slice(0,5)],U4=B4,$i=V4(null);$i.displayName="PanelGroupContext";const _t=U4,W4=typeof Ds=="function"?Ds:()=>null;let Z4=0;function Jl(t=null){const e=W4(),n=Te(t||e||null);return n.current===null&&(n.current=""+Z4++),t??n.current}function V2({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:u,onExpand:d,onResize:f,order:p,style:v,tagName:b="div",...h}){const g=j2($i);if(g===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:w,getPanelSize:C,getPanelStyle:$,groupId:D,isPanelCollapsed:E,reevaluatePanelConstraints:x,registerPanel:L,resizePanel:O,unregisterPanel:B}=g,S=Jl(l),R=Te({callbacks:{onCollapse:u,onExpand:d,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:S,idIsFromProps:l!==void 0,order:p});Te({didLogMissingDefaultSizeWarning:!1}),_t(()=>{const{callbacks:k,constraints:Z}=R.current,I={...Z};R.current.id=S,R.current.idIsFromProps=l!==void 0,R.current.order=p,k.onCollapse=u,k.onExpand=d,k.onResize=f,Z.collapsedSize=n,Z.collapsible=r,Z.defaultSize=i,Z.maxSize=a,Z.minSize=s,(I.collapsedSize!==Z.collapsedSize||I.collapsible!==Z.collapsible||I.maxSize!==Z.maxSize||I.minSize!==Z.minSize)&&x(R.current,I)}),_t(()=>{const k=R.current;return L(k),()=>{B(k)}},[p,S,L,B]),H2(o,()=>({collapse:()=>{y(R.current)},expand:k=>{w(R.current,k)},getId(){return S},getSize(){return C(R.current)},isCollapsed(){return E(R.current)},isExpanded(){return!E(R.current)},resize:k=>{O(R.current,k)}}),[y,w,C,E,S,O]);const U=$(R.current,i);return Cn(b,{...h,children:t,className:e,id:l,style:{...U,...v},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":D,"data-panel-id":S,"data-panel-size":parseFloat(""+U.flexGrow).toFixed(1)})}const Qo=K2((t,e)=>Cn(V2,{...t,forwardedRef:e}));V2.displayName="Panel";Qo.displayName="forwardRef(Panel)";let el=null,Dt=null;function G4(t,e){if(e){const n=(e&Z2)!==0,r=(e&G2)!==0,i=(e&q2)!==0,o=(e&Y2)!==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 q4(){Dt!==null&&(document.head.removeChild(Dt),el=null,Dt=null)}function ro(t,e){const n=G4(t,e);el!==n&&(el=n,Dt===null&&(Dt=document.createElement("style"),document.head.appendChild(Dt)),Dt.innerHTML=`*{cursor: ${n}!important;}`)}function B2(t){return t.type==="keydown"}function z2(t){return t.type.startsWith("pointer")}function U2(t){return t.type.startsWith("mouse")}function Di(t){if(z2(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(U2(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function Y4(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function X4(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 J4(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:Ts(t),b:Ts(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;Q(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:_s(Ps(n.a)),b:_s(Ps(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 Q4=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function ev(t){var e;const n=getComputedStyle((e=W2(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function tv(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"||Q4.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function Ps(t){let e=t.length;for(;e--;){const n=t[e];if(Q(n,"Missing node"),tv(n))return n}return null}function _s(t){return t&&Number(getComputedStyle(t).zIndex)||0}function Ts(t){const e=[];for(;t;)e.push(t),t=W2(t);return e}function W2(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const Z2=1,G2=2,q2=4,Y2=8,nv=Y4()==="coarse";let Ve=[],vn=!1,ct=new Map,Pi=new Map;const Yn=new Set;function rv(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),Yn.add(a),ei(),function(){var d;Pi.delete(t),Yn.delete(a);const f=(d=ct.get(l))!==null&&d!==void 0?d:1;if(ct.set(l,f-1),ei(),f===1&&ct.delete(l),Ve.includes(a)){const p=Ve.indexOf(a);p>=0&&Ve.splice(p,1),ea(),i("up",!0,null)}}}function Is(t){const{target:e}=t,{x:n,y:r}=Di(t);vn=!0,Ql({target:e,x:n,y:r}),ei(),Ve.length>0&&(ti("down",t),t.preventDefault(),t.stopPropagation())}function kn(t){const{x:e,y:n}=Di(t);if(vn&&t.buttons===0&&(vn=!1,ti("up",t)),!vn){const{target:r}=t;Ql({target:r,x:e,y:n})}ti("move",t),ea(),Ve.length>0&&t.preventDefault()}function Zt(t){const{target:e}=t,{x:n,y:r}=Di(t);Pi.clear(),vn=!1,Ve.length>0&&t.preventDefault(),ti("up",t),Ql({target:e,x:n,y:r}),ea(),ei()}function Ql({target:t,x:e,y:n}){Ve.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Yn.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:u,right:d,top:f}=a,p=nv?l.coarse:l.fine;if(e>=u-p&&e<=d+p&&n>=f-p&&n<=s+p){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&J4(r,o)>0){let b=r,h=!1;for(;b&&!b.contains(o);){if(X4(b.getBoundingClientRect(),a)){h=!0;break}b=b.parentElement}if(h)return}Ve.push(i)}})}function io(t,e){Pi.set(t,e)}function ea(){let t=!1,e=!1;Ve.forEach(r=>{const{direction:i}=r;i==="horizontal"?t=!0:e=!0});let n=0;Pi.forEach(r=>{n|=r}),t&&e?ro("intersection",n):t?ro("horizontal",n):e?ro("vertical",n):q4()}function ei(){ct.forEach((t,e)=>{const{body:n}=e;n.removeEventListener("contextmenu",Zt),n.removeEventListener("pointerdown",Is),n.removeEventListener("pointerleave",kn),n.removeEventListener("pointermove",kn)}),window.removeEventListener("pointerup",Zt),window.removeEventListener("pointercancel",Zt),Yn.size>0&&(vn?(Ve.length>0&&ct.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("contextmenu",Zt),n.addEventListener("pointerleave",kn),n.addEventListener("pointermove",kn))}),window.addEventListener("pointerup",Zt),window.addEventListener("pointercancel",Zt)):ct.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("pointerdown",Is,{capture:!0}),n.addEventListener("pointermove",kn))}))}function ti(t,e){Yn.forEach(n=>{const{setResizeHandlerState:r}=n,i=Ve.includes(n);r(t,i,e)})}function iv(){const[t,e]=pn(0);return Pe(()=>e(n=>n+1),[])}function Q(t,e){if(!t)throw console.error(e),Error(e)}const ta=10;function Nt(t,e,n=ta){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function Qe(t,e,n=ta){return Nt(t,e,n)===0}function Ie(t,e,n){return Nt(t,e,n)===0}function ov(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(!Ie(i,o,n))return!1}return!0}function un({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];Q(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(Nt(n,a)<0)if(o){const s=(i+a)/2;Nt(n,s)<0?n=i:n=a}else n=a;return n=Math.min(l,n),n=parseFloat(n.toFixed(ta)),n}function Kn({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(Ie(t,0))return e;const l=[...e],[a,s]=r;Q(a!=null,"Invalid first pivot index"),Q(s!=null,"Invalid second pivot index");let u=0;if(o==="keyboard"){{const f=t<0?s:a,p=n[f];Q(p,`Panel constraints not found for index ${f}`);const{collapsedSize:v=0,collapsible:b,minSize:h=0}=p;if(b){const g=e[f];if(Q(g!=null,`Previous layout not found for panel index ${f}`),Ie(g,v)){const y=h-g;Nt(y,Math.abs(t))>0&&(t=t<0?0-y:y)}}}{const f=t<0?a:s,p=n[f];Q(p,`No panel constraints found for index ${f}`);const{collapsedSize:v=0,collapsible:b,minSize:h=0}=p;if(b){const g=e[f];if(Q(g!=null,`Previous layout not found for panel index ${f}`),Ie(g,h)){const y=g-v;Nt(y,Math.abs(t))>0&&(t=t<0?0-y:y)}}}}{const f=t<0?1:-1;let p=t<0?s:a,v=0;for(;;){const h=e[p];Q(h!=null,`Previous layout not found for panel index ${p}`);const y=un({panelConstraints:n,panelIndex:p,size:100})-h;if(v+=y,p+=f,p<0||p>=n.length)break}const b=Math.min(Math.abs(t),Math.abs(v));t=t<0?0-b:b}{let p=t<0?a:s;for(;p>=0&&p<n.length;){const v=Math.abs(t)-Math.abs(u),b=e[p];Q(b!=null,`Previous layout not found for panel index ${p}`);const h=b-v,g=un({panelConstraints:n,panelIndex:p,size:h});if(!Ie(b,g)&&(u+=b-g,l[p]=g,u.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?p--:p++}}if(ov(i,l))return i;{const f=t<0?s:a,p=e[f];Q(p!=null,`Previous layout not found for panel index ${f}`);const v=p+u,b=un({panelConstraints:n,panelIndex:f,size:v});if(l[f]=b,!Ie(b,v)){let h=v-b,y=t<0?s:a;for(;y>=0&&y<n.length;){const w=l[y];Q(w!=null,`Previous layout not found for panel index ${y}`);const C=w+h,$=un({panelConstraints:n,panelIndex:y,size:C});if(Ie(w,$)||(h-=$-w,l[y]=$),Ie(h,0))break;t>0?y--:y++}}}const d=l.reduce((f,p)=>p+f,0);return Ie(d,100)?l:i}function lv({layout:t,panelsArray:e,pivotIndices:n}){let r=0,i=100,o=0,l=0;const a=n[0];Q(a!=null,"No pivot index found"),e.forEach((f,p)=>{const{constraints:v}=f,{maxSize:b=100,minSize:h=0}=v;p===a?(r=h,i=b):(o+=h,l+=b)});const s=Math.min(i,100-o),u=Math.max(r,100-l),d=t[a];return{valueMax:s,valueMin:u,valueNow:d}}function Xn(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function X2(t,e,n=document){const i=Xn(t,n).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function J2(t,e,n){const r=X2(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function Q2(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 _i(t,e=document){const n=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return n||null}function av(t,e,n,r=document){var i,o,l,a;const s=_i(e,r),u=Xn(t,r),d=s?u.indexOf(s):-1,f=(i=(o=n[d])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,p=(l=(a=n[d+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[f,p]}function sv({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){Te({didWarnAboutMissingResizeHandle:!1}),_t(()=>{if(!o)return;const a=Xn(n,o);for(let s=0;s<i.length-1;s++){const{valueMax:u,valueMin:d,valueNow:f}=lv({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),p=a[s];if(p!=null){const v=i[s];Q(v,`No panel data found for index "${s}"`),p.setAttribute("aria-controls",v.id),p.setAttribute("aria-valuemax",""+Math.round(u)),p.setAttribute("aria-valuemin",""+Math.round(d)),p.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{a.forEach((s,u)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[n,r,i,o]),Pt(()=>{if(!o)return;const a=e.current;Q(a,"Eager values not found");const{panelDataArray:s}=a,u=Q2(n,o);Q(u!=null,`No group found for id "${n}"`);const d=Xn(n,o);Q(d,`No resize handles found for group id "${n}"`);const f=d.map(p=>{const v=p.getAttribute("data-panel-resize-handle-id");Q(v,"Resize handle element has no handle id attribute");const[b,h]=av(n,v,s,o);if(b==null||h==null)return()=>{};const g=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const w=s.findIndex(C=>C.id===b);if(w>=0){const C=s[w];Q(C,`No panel data found for index ${w}`);const $=r[w],{collapsedSize:D=0,collapsible:E,minSize:x=0}=C.constraints;if($!=null&&E){const L=Kn({delta:Ie($,D)?x-D:D-$,initialLayout:r,panelConstraints:s.map(O=>O.constraints),pivotIndices:J2(n,v,o),prevLayout:r,trigger:"keyboard"});r!==L&&l(L)}}break}}};return p.addEventListener("keydown",g),()=>{p.removeEventListener("keydown",g)}});return()=>{f.forEach(p=>p())}},[o,t,e,n,r,i,l])}function Os(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 ed(t,e){const n=t==="horizontal",{x:r,y:i}=Di(e);return n?r:i}function uv(t,e,n,r,i){const o=n==="horizontal",l=_i(e,i);Q(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute("data-panel-group-id");Q(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const u=ed(n,t),d=Q2(a,i);Q(d,`No group element found for id "${a}"`);const f=d.getBoundingClientRect(),p=o?f.width:f.height;return(u-s)/p*100}function cv(t,e,n,r,i,o){if(B2(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:uv(t,e,n,r,o)}function dv({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];Q(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];Q(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=t.length-r,u=i/s;r++,e[o]=u,i-=u}return e}function Gt(t,e,n){e.forEach((r,i)=>{const o=t[i];Q(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:u=0,collapsible:d}=a,f=n[s];if(f==null||r!==f){n[s]=r;const{onCollapse:p,onExpand:v,onResize:b}=l;b&&b(r,f),d&&(p||v)&&(v&&(f==null||Qe(f,u))&&!Qe(r,u)&&v(),p&&(f==null||!Qe(f,u))&&Qe(r,u)&&p())}})}function br(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 fv({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 hv(t,e=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function ks(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 td(t){return`react-resizable-panels:${t}`}function nd(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 rd(t,e){try{const n=td(t),r=e.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function pv(t,e,n){var r,i;const o=(r=rd(t,n))!==null&&r!==void 0?r:{},l=nd(e);return(i=o[l])!==null&&i!==void 0?i:null}function vv(t,e,n,r,i){var o;const l=td(t),a=nd(e),s=(o=rd(t,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(u){console.error(u)}}function Ns({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(!Ie(r,100)&&n.length>0)for(let o=0;o<e.length;o++){const l=n[o];Q(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];Q(l!=null,`No layout data found for index ${o}`);const a=un({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,n[o]=a)}if(!Ie(i,0))for(let o=0;o<e.length;o++){const l=n[o];Q(l!=null,`No layout data found for index ${o}`);const a=l+i,s=un({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,n[o]=s,Ie(i,0)))break}return n}const gv=100,jn={getItem:t=>(ks(jn),jn.getItem(t)),setItem:(t,e)=>{ks(jn),jn.setItem(t,e)}},Ms={};function id({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=jn,style:u,tagName:d="div",...f}){const p=Jl(o),v=Te(null),[b,h]=pn(null),[g,y]=pn([]),w=iv(),C=Te({}),$=Te(new Map),D=Te(0),E=Te({autoSaveId:t,direction:r,dragState:b,id:p,keyboardResizeBy:a,onLayout:l,storage:s}),x=Te({layout:g,panelDataArray:[],panelDataArrayChanged:!1});Te({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),H2(i,()=>({getId:()=>E.current.id,getLayout:()=>{const{layout:_}=x.current;return _},setLayout:_=>{const{onLayout:A}=E.current,{layout:j,panelDataArray:H}=x.current,V=Ns({layout:_,panelConstraints:H.map(W=>W.constraints)});Os(j,V)||(y(V),x.current.layout=V,A&&A(V),Gt(H,V,C.current))}}),[]),_t(()=>{E.current.autoSaveId=t,E.current.direction=r,E.current.dragState=b,E.current.id=p,E.current.onLayout=l,E.current.storage=s}),sv({committedValuesRef:E,eagerValuesRef:x,groupId:p,layout:g,panelDataArray:x.current.panelDataArray,setLayout:y,panelGroupElement:v.current}),Pt(()=>{const{panelDataArray:_}=x.current;if(t){if(g.length===0||g.length!==_.length)return;let A=Ms[t];A==null&&(A=hv(vv,gv),Ms[t]=A);const j=[..._],H=new Map($.current);A(t,j,H,g,s)}},[t,g,s]),Pt(()=>{});const L=Pe(_=>{const{onLayout:A}=E.current,{layout:j,panelDataArray:H}=x.current;if(_.constraints.collapsible){const V=H.map(ae=>ae.constraints),{collapsedSize:W=0,panelSize:q,pivotIndices:Y}=Ct(H,_,j);if(Q(q!=null,`Panel size not found for panel "${_.id}"`),!Qe(q,W)){$.current.set(_.id,q);const G=ln(H,_)===H.length-1?q-W:W-q,te=Kn({delta:G,initialLayout:j,panelConstraints:V,pivotIndices:Y,prevLayout:j,trigger:"imperative-api"});br(j,te)||(y(te),x.current.layout=te,A&&A(te),Gt(H,te,C.current))}}},[]),O=Pe((_,A)=>{const{onLayout:j}=E.current,{layout:H,panelDataArray:V}=x.current;if(_.constraints.collapsible){const W=V.map(de=>de.constraints),{collapsedSize:q=0,panelSize:Y=0,minSize:ae=0,pivotIndices:G}=Ct(V,_,H),te=A??ae;if(Qe(Y,q)){const de=$.current.get(_.id),Fe=de!=null&&de>=te?de:te,ne=ln(V,_)===V.length-1?Y-Fe:Fe-Y,pe=Kn({delta:ne,initialLayout:H,panelConstraints:W,pivotIndices:G,prevLayout:H,trigger:"imperative-api"});br(H,pe)||(y(pe),x.current.layout=pe,j&&j(pe),Gt(V,pe,C.current))}}},[]),B=Pe(_=>{const{layout:A,panelDataArray:j}=x.current,{panelSize:H}=Ct(j,_,A);return Q(H!=null,`Panel size not found for panel "${_.id}"`),H},[]),S=Pe((_,A)=>{const{panelDataArray:j}=x.current,H=ln(j,_);return fv({defaultSize:A,dragState:b,layout:g,panelData:j,panelIndex:H})},[b,g]),R=Pe(_=>{const{layout:A,panelDataArray:j}=x.current,{collapsedSize:H=0,collapsible:V,panelSize:W}=Ct(j,_,A);return Q(W!=null,`Panel size not found for panel "${_.id}"`),V===!0&&Qe(W,H)},[]),U=Pe(_=>{const{layout:A,panelDataArray:j}=x.current,{collapsedSize:H=0,collapsible:V,panelSize:W}=Ct(j,_,A);return Q(W!=null,`Panel size not found for panel "${_.id}"`),!V||Nt(W,H)>0},[]),k=Pe(_=>{const{panelDataArray:A}=x.current;A.push(_),A.sort((j,H)=>{const V=j.order,W=H.order;return V==null&&W==null?0:V==null?-1:W==null?1:V-W}),x.current.panelDataArrayChanged=!0,w()},[w]);_t(()=>{if(x.current.panelDataArrayChanged){x.current.panelDataArrayChanged=!1;const{autoSaveId:_,onLayout:A,storage:j}=E.current,{layout:H,panelDataArray:V}=x.current;let W=null;if(_){const Y=pv(_,V,j);Y&&($.current=new Map(Object.entries(Y.expandToSizes)),W=Y.layout)}W==null&&(W=dv({panelDataArray:V}));const q=Ns({layout:W,panelConstraints:V.map(Y=>Y.constraints)});Os(H,q)||(y(q),x.current.layout=q,A&&A(q),Gt(V,q,C.current))}}),_t(()=>{const _=x.current;return()=>{_.layout=[]}},[]);const Z=Pe(_=>{let A=!1;const j=v.current;return j&&window.getComputedStyle(j,null).getPropertyValue("direction")==="rtl"&&(A=!0),function(V){V.preventDefault();const W=v.current;if(!W)return()=>null;const{direction:q,dragState:Y,id:ae,keyboardResizeBy:G,onLayout:te}=E.current,{layout:de,panelDataArray:Fe}=x.current,{initialLayout:zt}=Y??{},ne=J2(ae,_,W);let pe=cv(V,_,q,Y,G,W);const Ut=q==="horizontal";Ut&&A&&(pe=-pe);const $n=Fe.map(t1=>t1.constraints),Dn=Kn({delta:pe,initialLayout:zt??de,panelConstraints:$n,pivotIndices:ne,prevLayout:de,trigger:B2(V)?"keyboard":"mouse-or-touch"}),ma=!br(de,Dn);(z2(V)||U2(V))&&D.current!=pe&&(D.current=pe,!ma&&pe!==0?Ut?io(_,pe<0?Z2:G2):io(_,pe<0?q2:Y2):io(_,0)),ma&&(y(Dn),x.current.layout=Dn,te&&te(Dn),Gt(Fe,Dn,C.current))}},[]),I=Pe((_,A)=>{const{onLayout:j}=E.current,{layout:H,panelDataArray:V}=x.current,W=V.map(de=>de.constraints),{panelSize:q,pivotIndices:Y}=Ct(V,_,H);Q(q!=null,`Panel size not found for panel "${_.id}"`);const G=ln(V,_)===V.length-1?q-A:A-q,te=Kn({delta:G,initialLayout:H,panelConstraints:W,pivotIndices:Y,prevLayout:H,trigger:"imperative-api"});br(H,te)||(y(te),x.current.layout=te,j&&j(te),Gt(V,te,C.current))},[]),M=Pe((_,A)=>{const{layout:j,panelDataArray:H}=x.current,{collapsedSize:V=0,collapsible:W}=A,{collapsedSize:q=0,collapsible:Y,maxSize:ae=100,minSize:G=0}=_.constraints,{panelSize:te}=Ct(H,_,j);te!=null&&(W&&Y&&Qe(te,V)?Qe(V,q)||I(_,q):te<G?I(_,G):te>ae&&I(_,ae))},[I]),z=Pe((_,A)=>{const{direction:j}=E.current,{layout:H}=x.current;if(!v.current)return;const V=_i(_,v.current);Q(V,`Drag handle element not found for id "${_}"`);const W=ed(j,A);h({dragHandleId:_,dragHandleRect:V.getBoundingClientRect(),initialCursorPosition:W,initialLayout:H})},[]),F=Pe(()=>{h(null)},[]),N=Pe(_=>{const{panelDataArray:A}=x.current,j=ln(A,_);j>=0&&(A.splice(j,1),delete C.current[_.id],x.current.panelDataArrayChanged=!0,w())},[w]),K=z4(()=>({collapsePanel:L,direction:r,dragState:b,expandPanel:O,getPanelSize:B,getPanelStyle:S,groupId:p,isPanelCollapsed:R,isPanelExpanded:U,reevaluatePanelConstraints:M,registerPanel:k,registerResizeHandle:Z,resizePanel:I,startDragging:z,stopDragging:F,unregisterPanel:N,panelGroupElement:v.current}),[L,b,r,O,B,S,p,R,U,M,k,Z,I,z,F,N]),P={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return Cn($i.Provider,{value:K},Cn(d,{...f,children:e,className:n,id:o,ref:v,style:{...P,...u},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":p}))}const od=K2((t,e)=>Cn(id,{...t,forwardedRef:e}));id.displayName="PanelGroup";od.displayName="forwardRef(PanelGroup)";function ln(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function Ct(t,e,n){const r=ln(t,e),o=r===t.length-1?[r-1,r]:[r,r+1],l=n[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function mv({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){Pt(()=>{if(t||n==null||r==null)return;const i=_i(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");Q(a,`No group element found for id "${a}"`);const s=Xn(a,r),u=X2(a,e,r);Q(u!==null,`No resize element found for id "${e}"`);const d=l.shiftKey?u>0?u-1:s.length-1:u+1<s.length?u+1:0;s[d].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,t,e,n])}function ld({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:l,onFocus:a,style:s={},tabIndex:u=0,tagName:d="div",...f}){var p,v;const b=Te(null),h=Te({onDragging:l});Pt(()=>{h.current.onDragging=l});const g=j2($i);if(g===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:y,groupId:w,registerResizeHandle:C,startDragging:$,stopDragging:D,panelGroupElement:E}=g,x=Jl(i),[L,O]=pn("inactive"),[B,S]=pn(!1),[R,U]=pn(null),k=Te({state:L});_t(()=>{k.current.state=L}),Pt(()=>{if(n)U(null);else{const z=C(x);U(()=>z)}},[n,x,C]);const Z=(p=r==null?void 0:r.coarse)!==null&&p!==void 0?p:15,I=(v=r==null?void 0:r.fine)!==null&&v!==void 0?v:5;return Pt(()=>{if(n||R==null)return;const z=b.current;return Q(z,"Element ref not attached"),rv(x,z,y,{coarse:Z,fine:I},(N,K,P)=>{if(K)switch(N){case"down":{O("drag"),Q(P,'Expected event to be defined for "down" action'),$(x,P);const{onDragging:_}=h.current;_&&_(!0);break}case"move":{const{state:_}=k.current;_!=="drag"&&O("hover"),Q(P,'Expected event to be defined for "move" action'),R(P);break}case"up":{O("hover"),D();const{onDragging:_}=h.current;_&&_(!1);break}}else O("inactive")})},[Z,y,n,I,C,x,R,$,D]),mv({disabled:n,handleId:x,resizeHandler:R,panelGroupElement:E}),Cn(d,{...f,children:t,className:e,id:i,onBlur:()=>{S(!1),o==null||o()},onFocus:()=>{S(!0),a==null||a()},ref:b,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...s},tabIndex:u,"data-panel-group-direction":y,"data-panel-group-id":w,"data-resize-handle":"","data-resize-handle-active":L==="drag"?"pointer":B?"keyboard":void 0,"data-resize-handle-state":L,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":x})}ld.displayName="PanelResizeHandle";const bv=({children:t,isOpen:e})=>{const{isDesktop:n}=bt();return n?m.jsx("div",{className:ye("c__right-panel",{open:e}),children:t}):m.jsx("div",{className:ye("c__right-panel__mobile",{open:e}),children:t})},yv=(t,e,n)=>{const[r,i]=c.useState(typeof e>"u"?t:e),o=l=>{n?n(l):i(l)};return c.useEffect(()=>{n&&typeof e<"u"&&e!==r&&i(e)},[e]),[r,o]},Cv=({icon:t,children:e,hideLeftPanelOnDesktop:n=!1,leftPanelContent:r,rightPanelContent:i,rightHeaderContent:o,languages:l,enableResize:a=!1,rightPanelIsOpen:s=!1,...u})=>{const[d,f]=yv(!1,u.isLeftPanelOpen,u.setIsLeftPanelOpen),{isDesktop:p}=bt(),v=c.useRef(null),[b,h]=c.useState(!1),g=c.useRef(void 0);c.useEffect(()=>{const L=()=>{h(!0),g.current&&clearTimeout(g.current),g.current=window.setTimeout(()=>{h(!1)},150)};return window.addEventListener("resize",L),()=>{window.removeEventListener("resize",L),g.current&&clearTimeout(g.current)}},[]);const y=p?!n:!0,w=p?!n:d,[C,$]=c.useState(yr(300,p)),[D,E]=c.useState(yr(450,p)),x=()=>{f(!d)};return c.useEffect(()=>{const L=()=>{const O=Math.round(yr(300,p)),B=Math.round(Math.min(yr(450,p),40));$(p?O:0),E(a?B:O)};return L(),window.addEventListener("resize",L),()=>{window.removeEventListener("resize",L)}},[p,a]),m.jsxs("div",{className:ye("c__main-layout",{resizing:b}),children:[m.jsx("div",{className:"c__main-layout__header",children:m.jsx(A2,{onTogglePanel:x,isPanelOpen:d,rightIcon:o,leftIcon:t,languages:l})}),m.jsx("div",{className:"c__main-layout__content",children:m.jsxs(od,{autoSaveId:"persistance",direction:"horizontal",children:[y&&m.jsxs(m.Fragment,{children:[m.jsx(Qo,{ref:v,order:0,defaultSize:C,minSize:C,maxSize:D,children:m.jsx(F2,{isOpen:w,children:r})}),p&&m.jsx(ld,{className:"border-clr-surface-primary",style:{borderRightWidth:"1px",borderRightStyle:"solid"}})]}),m.jsx(Qo,{order:1,children:m.jsxs("div",{className:"c__main-layout__content__center",children:[m.jsx("div",{className:"c__main-layout__content__center__children",children:e}),m.jsx(bv,{isOpen:s,children:i})]})})]})})]})},yr=(t,e)=>{if(!e)return 0;const n=window.innerWidth;return t/n*100},wv=52,ni=({size:t="sm"})=>m.jsx("div",{className:["c__spinner",t].join(" ")}),ad=({children:t,text:e,...n})=>m.jsxs("div",{className:"suite__label__container",children:[m.jsx("label",{...n,children:t}),e&&m.jsx("span",{className:"suite__label__container__description",children:e})]}),Ev=({label:t,text:e,labelSide:n="right",children:r})=>m.jsxs("div",{className:ye("c__with-label",{[n]:!0}),children:[m.jsx(ad,{children:t,text:e}),r]});var Rs=1,Sv=.9,xv=.8,$v=.17,oo=.1,lo=.999,Dv=.9999,Pv=.99,_v=/[\\\/_+.#"@\[\(\{&]/,Tv=/[\\\/_+.#"@\[\(\{&]/g,Iv=/[\s-]/,sd=/[\s-]/g;function tl(t,e,n,r,i,o,l){if(o===e.length)return i===t.length?Rs:Pv;var a=`${i},${o}`;if(l[a]!==void 0)return l[a];for(var s=r.charAt(o),u=n.indexOf(s,i),d=0,f,p,v,b;u>=0;)f=tl(t,e,n,r,u+1,o+1,l),f>d&&(u===i?f*=Rs:_v.test(t.charAt(u-1))?(f*=xv,v=t.slice(i,u-1).match(Tv),v&&i>0&&(f*=Math.pow(lo,v.length))):Iv.test(t.charAt(u-1))?(f*=Sv,b=t.slice(i,u-1).match(sd),b&&i>0&&(f*=Math.pow(lo,b.length))):(f*=$v,i>0&&(f*=Math.pow(lo,u-i))),t.charAt(u)!==e.charAt(o)&&(f*=Dv)),(f<oo&&n.charAt(u-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(u-1)!==r.charAt(o))&&(p=tl(t,e,n,r,u+1,o+2,l),p*oo>f&&(f=p*oo)),f>d&&(d=f),u=n.indexOf(s,u+1);return l[a]=d,d}function Ls(t){return t.toLowerCase().replace(sd," ")}function Ov(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,tl(t,e,Ls(t),Ls(e),0,0,{})}function ht(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 As(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function ud(...t){return e=>{let n=!1;const r=t.map(i=>{const o=As(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():As(t[i],null)}}}}function Vt(...t){return T.useCallback(ud(...t),t)}function kv(t,e){const n=T.createContext(e),r=o=>{const{children:l,...a}=o,s=T.useMemo(()=>a,Object.values(a));return m.jsx(n.Provider,{value:s,children:l})};r.displayName=t+"Provider";function i(o){const l=T.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 Nv(t,e=[]){let n=[];function r(o,l){const a=T.createContext(l),s=n.length;n=[...n,l];const u=f=>{var y;const{scope:p,children:v,...b}=f,h=((y=p==null?void 0:p[t])==null?void 0:y[s])||a,g=T.useMemo(()=>b,Object.values(b));return m.jsx(h.Provider,{value:g,children:v})};u.displayName=o+"Provider";function d(f,p){var h;const v=((h=p==null?void 0:p[t])==null?void 0:h[s])||a,b=T.useContext(v);if(b)return b;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[u,d]}const i=()=>{const o=n.map(l=>T.createContext(l));return function(a){const s=(a==null?void 0:a[t])||o;return T.useMemo(()=>({[`__scope${t}`]:{...a,[t]:s}}),[a,s])}};return i.scopeName=t,[r,Mv(i,...e)]}function Mv(...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:u})=>{const f=s(o)[`__scope${u}`];return{...a,...f}},{});return T.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return n.scopeName=e.scopeName,n}var Jn=globalThis!=null&&globalThis.document?T.useLayoutEffect:()=>{},Rv=T[" useId ".trim().toString()]||(()=>{}),Lv=0;function tt(t){const[e,n]=T.useState(Rv());return Jn(()=>{n(r=>r??String(Lv++))},[t]),e?`radix-${e}`:""}var Av=T[" useInsertionEffect ".trim().toString()]||Jn;function Fv({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[i,o,l]=Kv({defaultProp:e,onChange:n}),a=t!==void 0,s=a?t:i;{const d=T.useRef(t!==void 0);T.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 u=T.useCallback(d=>{var f;if(a){const p=jv(d)?d(t):d;p!==t&&((f=l.current)==null||f.call(l,p))}else o(d)},[a,t,o,l]);return[s,u]}function Kv({defaultProp:t,onChange:e}){const[n,r]=T.useState(t),i=T.useRef(n),o=T.useRef(e);return Av(()=>{o.current=e},[e]),T.useEffect(()=>{var l;i.current!==n&&((l=o.current)==null||l.call(o,n),i.current=n)},[n,i]),[n,r,o]}function jv(t){return typeof t=="function"}function cd(t){const e=Hv(t),n=T.forwardRef((r,i)=>{const{children:o,...l}=r,a=T.Children.toArray(o),s=a.find(Bv);if(s){const u=s.props.children,d=a.map(f=>f===s?T.Children.count(u)>1?T.Children.only(null):T.isValidElement(u)?u.props.children:null:f);return m.jsx(e,{...l,ref:i,children:T.isValidElement(u)?T.cloneElement(u,void 0,d):null})}return m.jsx(e,{...l,ref:i,children:o})});return n.displayName=`${t}.Slot`,n}function Hv(t){const e=T.forwardRef((n,r)=>{const{children:i,...o}=n;if(T.isValidElement(i)){const l=Uv(i),a=zv(o,i.props);return i.type!==T.Fragment&&(a.ref=r?ud(r,l):l),T.cloneElement(i,a)}return T.Children.count(i)>1?T.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Vv=Symbol("radix.slottable");function Bv(t){return T.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Vv}function zv(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 Uv(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 Wv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ce=Wv.reduce((t,e)=>{const n=cd(`Primitive.${e}`),r=T.forwardRef((i,o)=>{const{asChild:l,...a}=i,s=l?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(s,{...a,ref:o})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function Zv(t,e){t&&n1.flushSync(()=>t.dispatchEvent(e))}function Qn(t){const e=T.useRef(t);return T.useEffect(()=>{e.current=t}),T.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function Gv(t,e=globalThis==null?void 0:globalThis.document){const n=Qn(t);T.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 qv="DismissableLayer",nl="dismissableLayer.update",Yv="dismissableLayer.pointerDownOutside",Xv="dismissableLayer.focusOutside",Fs,dd=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fd=T.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:a,...s}=t,u=T.useContext(dd),[d,f]=T.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=T.useState({}),b=Vt(e,x=>f(x)),h=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(g),w=d?h.indexOf(d):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,$=w>=y,D=e3(x=>{const L=x.target,O=[...u.branches].some(B=>B.contains(L));!$||O||(i==null||i(x),l==null||l(x),x.defaultPrevented||a==null||a())},p),E=t3(x=>{const L=x.target;[...u.branches].some(B=>B.contains(L))||(o==null||o(x),l==null||l(x),x.defaultPrevented||a==null||a())},p);return Gv(x=>{w===u.layers.size-1&&(r==null||r(x),!x.defaultPrevented&&a&&(x.preventDefault(),a()))},p),T.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Fs=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ks(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Fs)}},[d,p,n,u]),T.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ks())},[d,u]),T.useEffect(()=>{const x=()=>v({});return document.addEventListener(nl,x),()=>document.removeEventListener(nl,x)},[]),m.jsx(Ce.div,{...s,ref:b,style:{pointerEvents:C?$?"auto":"none":void 0,...t.style},onFocusCapture:ht(t.onFocusCapture,E.onFocusCapture),onBlurCapture:ht(t.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ht(t.onPointerDownCapture,D.onPointerDownCapture)})});fd.displayName=qv;var Jv="DismissableLayerBranch",Qv=T.forwardRef((t,e)=>{const n=T.useContext(dd),r=T.useRef(null),i=Vt(e,r);return T.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),m.jsx(Ce.div,{...t,ref:i})});Qv.displayName=Jv;function e3(t,e=globalThis==null?void 0:globalThis.document){const n=Qn(t),r=T.useRef(!1),i=T.useRef(()=>{});return T.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let s=function(){hd(Yv,n,u,{discrete:!0})};const u={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 t3(t,e=globalThis==null?void 0:globalThis.document){const n=Qn(t),r=T.useRef(!1);return T.useEffect(()=>{const i=o=>{o.target&&!r.current&&hd(Xv,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 Ks(){const t=new CustomEvent(nl);document.dispatchEvent(t)}function hd(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?Zv(i,o):i.dispatchEvent(o)}var ao="focusScope.autoFocusOnMount",so="focusScope.autoFocusOnUnmount",js={bubbles:!1,cancelable:!0},n3="FocusScope",pd=T.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=t,[a,s]=T.useState(null),u=Qn(i),d=Qn(o),f=T.useRef(null),p=Vt(e,h=>s(h)),v=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(r){let h=function(C){if(v.paused||!a)return;const $=C.target;a.contains($)?f.current=$:lt(f.current,{select:!0})},g=function(C){if(v.paused||!a)return;const $=C.relatedTarget;$!==null&&(a.contains($)||lt(f.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const D of C)D.removedNodes.length>0&<(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const w=new MutationObserver(y);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),w.disconnect()}}},[r,a,v.paused]),T.useEffect(()=>{if(a){Vs.add(v);const h=document.activeElement;if(!a.contains(h)){const y=new CustomEvent(ao,js);a.addEventListener(ao,u),a.dispatchEvent(y),y.defaultPrevented||(r3(s3(vd(a)),{select:!0}),document.activeElement===h&<(a))}return()=>{a.removeEventListener(ao,u),setTimeout(()=>{const y=new CustomEvent(so,js);a.addEventListener(so,d),a.dispatchEvent(y),y.defaultPrevented||lt(h??document.body,{select:!0}),a.removeEventListener(so,d),Vs.remove(v)},0)}}},[a,u,d,v]);const b=T.useCallback(h=>{if(!n&&!r||v.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(g&&y){const w=h.currentTarget,[C,$]=i3(w);C&&$?!h.shiftKey&&y===$?(h.preventDefault(),n&<(C,{select:!0})):h.shiftKey&&y===C&&(h.preventDefault(),n&<($,{select:!0})):y===w&&h.preventDefault()}},[n,r,v.paused]);return m.jsx(Ce.div,{tabIndex:-1,...l,ref:p,onKeyDown:b})});pd.displayName=n3;function r3(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(lt(r,{select:e}),document.activeElement!==n)return}function i3(t){const e=vd(t),n=Hs(e,t),r=Hs(e.reverse(),t);return[n,r]}function vd(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 Hs(t,e){for(const n of t)if(!o3(n,{upTo:e}))return n}function o3(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 l3(t){return t instanceof HTMLInputElement&&"select"in t}function lt(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&l3(t)&&e&&t.select()}}var Vs=a3();function a3(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=Bs(t,e),t.unshift(e)},remove(e){var n;t=Bs(t,e),(n=t[0])==null||n.resume()}}}function Bs(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function s3(t){return t.filter(e=>e.tagName!=="A")}var u3="Portal",gd=T.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[i,o]=T.useState(!1);Jn(()=>o(!0),[]);const l=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?Ft.createPortal(m.jsx(Ce.div,{...r,ref:e}),l):null});gd.displayName=u3;function c3(t,e){return T.useReducer((n,r)=>e[n][r]??n,t)}var Ti=t=>{const{present:e,children:n}=t,r=d3(e),i=typeof n=="function"?n({present:r.isPresent}):T.Children.only(n),o=Vt(r.ref,f3(i));return typeof n=="function"||r.isPresent?T.cloneElement(i,{ref:o}):null};Ti.displayName="Presence";function d3(t){const[e,n]=T.useState(),r=T.useRef(null),i=T.useRef(t),o=T.useRef("none"),l=t?"mounted":"unmounted",[a,s]=c3(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const u=Cr(r.current);o.current=a==="mounted"?u:"none"},[a]),Jn(()=>{const u=r.current,d=i.current;if(d!==t){const p=o.current,v=Cr(u);t?s("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(d&&p!==v?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),Jn(()=>{if(e){let u;const d=e.ownerDocument.defaultView??window,f=v=>{const h=Cr(r.current).includes(CSS.escape(v.animationName));if(v.target===e&&h&&(s("ANIMATION_END"),!i.current)){const g=e.style.animationFillMode;e.style.animationFillMode="forwards",u=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=g)})}},p=v=>{v.target===e&&(o.current=Cr(r.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{d.clearTimeout(u),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:T.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Cr(t){return(t==null?void 0:t.animationName)||"none"}function f3(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 uo=0;function h3(){T.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??zs()),document.body.insertAdjacentElement("beforeend",t[1]??zs()),uo++,()=>{uo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),uo--}},[])}function zs(){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 kr="right-scroll-bar-position",Nr="width-before-scroll-bar",p3="with-scroll-bars-hidden",v3="--removed-body-scroll-bar-size";function co(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function g3(t,e){var n=c.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 m3=typeof window<"u"?T.useLayoutEffect:T.useEffect,Us=new WeakMap;function b3(t,e){var n=g3(null,function(r){return t.forEach(function(i){return co(i,r)})});return m3(function(){var r=Us.get(n);if(r){var i=new Set(r),o=new Set(t),l=n.current;i.forEach(function(a){o.has(a)||co(a,null)}),o.forEach(function(a){i.has(a)||co(a,l)})}Us.set(n,t)},[t]),n}function y3(t){return t}function C3(t,e){e===void 0&&(e=y3);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)},u=function(){return Promise.resolve().then(s)};u(),n={push:function(d){l.push(d),u()},filter:function(d){return l=l.filter(d),n}}}};return i}function w3(t){t===void 0&&(t={});var e=C3(null);return e.options=Ge({async:!0,ssr:!1},t),e}var md=function(t){var e=t.sideCar,n=Oc(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 T.createElement(r,Ge({},n))};md.isSideCarExport=!0;function E3(t,e){return t.useMedium(e),md}var bd=w3(),fo=function(){},Ii=T.forwardRef(function(t,e){var n=T.useRef(null),r=T.useState({onScrollCapture:fo,onWheelCapture:fo,onTouchMoveCapture:fo}),i=r[0],o=r[1],l=t.forwardProps,a=t.children,s=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,v=t.noRelative,b=t.noIsolation,h=t.inert,g=t.allowPinchZoom,y=t.as,w=y===void 0?"div":y,C=t.gapMode,$=Oc(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=p,E=b3([n,e]),x=Ge(Ge({},$),i);return T.createElement(T.Fragment,null,d&&T.createElement(D,{sideCar:bd,removeScrollBar:u,shards:f,noRelative:v,noIsolation:b,inert:h,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:C}),l?T.cloneElement(T.Children.only(a),Ge(Ge({},x),{ref:E})):T.createElement(w,Ge({},x,{className:s,ref:E}),a))});Ii.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ii.classNames={fullWidth:Nr,zeroRight:kr};var S3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function x3(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=S3();return e&&t.setAttribute("nonce",e),t}function $3(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function D3(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var P3=function(){var t=0,e=null;return{add:function(n){t==0&&(e=x3())&&($3(e,n),D3(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},_3=function(){var t=P3();return function(e,n){T.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},yd=function(){var t=_3(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},T3={left:0,top:0,right:0,gap:0},ho=function(t){return parseInt(t||"",10)||0},I3=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[ho(n),ho(r),ho(i)]},O3=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return T3;var e=I3(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])}},k3=yd(),gn="data-scroll-locked",N3=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(
|
|
46
|
-
overflow: hidden `).concat(
|
|
47
|
-
padding-right: `).concat(a,"px ").concat(
|
|
44
|
+
*/var Ya;function o4(){return Ya||(Ya=1,process.env.NODE_ENV!=="production"&&function(){function t(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}function e(g,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 h=y();if(!f){var v=y();o(h,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=l({inst:{value:h,getSnapshot:y}});var m=v[0].inst,C=v[1];return s(function(){m.value=h,m.getSnapshot=y,r(m)&&C({inst:m})},[g,h,y]),a(function(){return r(m)&&C({inst:m}),g(function(){r(m)&&C({inst:m})})},[g]),c(h),h}function r(g){var y=g.getSnapshot;g=g.value;try{var h=y();return!o(g,h)}catch{return!0}}function n(g,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,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:e;to.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),to}var Xa;function l4(){return Xa||(Xa=1,process.env.NODE_ENV==="production"?yn.exports=i4():yn.exports=o4()),yn.exports}var Hl=l4();const W2=u.createContext(!1),Yr=u.createContext(null);function xi(t){if(u.useContext(Yr))return t.content;let{collection:r,document:n}=u4(t.createCollection);return u.createElement(u.Fragment,null,u.createElement(O5,null,u.createElement(Yr.Provider,{value:n},t.content)),u.createElement(a4,{render:t.children,collection:r}))}function a4({collection:t,render:e}){return e(t)}function s4(t,e,r){let n=sn(),i=u.useRef(n);i.current=n;let o=u.useCallback(()=>i.current?r():e(),[e,r]);return Hl.useSyncExternalStore(t,o)}const c4=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:s4;function u4(t){let[e]=u.useState(()=>new I5((t==null?void 0:t())||new Nl)),r=u.useCallback(l=>e.subscribe(l),[e]),n=u.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=u.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=c4(r,n,i);return ne(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const Xo=u.createContext(null);function d4(t,e,r,n,i,o){let l=u.useCallback(s=>{s==null||s.setProps(e,r,n,o)},[e,r,n,o]),a=u.useContext(Xo);if(a){let s=a.ownerDocument.nodesByProps.get(e);return s||(s=a.ownerDocument.createElement(t),s.setProps(e,r,n,o),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(e,s)),i?u.createElement(Xo.Provider,{value:s},i):null}return u.createElement(t,{ref:l},i)}function Si(t,e){let r=({node:i})=>e(i.props,i.props.ref,i),n=u.forwardRef((i,o)=>{let l=u.useContext(qo);if(!u.useContext(W2)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return d4(t,i,o,"children"in i?i.children:null,null,s=>u.createElement(qo.Provider,{value:l},u.createElement(r,{node:s})))});return n.displayName=e.name,n}function f4(t){return I2({...t,addIdAndValue:!0})}const Ja=u.createContext(null);function Vl(t){let e=u.useContext(Ja),r=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),n=t.idScope||(e==null?void 0:e.idScope),i=f4({...t,idScope:n,dependencies:r});return u.useContext(Yr)&&(i=u.createElement(h4,null,i)),e=u.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),u.createElement(Ja.Provider,{value:e},i)}function h4({children:t}){let e=u.useContext(Yr),r=u.useMemo(()=>u.createElement(Yr.Provider,{value:null},u.createElement(W2.Provider,{value:!0},t)),[t]);return sn()?u.createElement(Xo.Provider,{value:e},r):Rt.createPortal(r,e)}const p4=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),g4=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function v4(t){if(Intl.Locale){let r=new Intl.Locale(t).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return p4.has(r.script)}let e=t.split("-")[0];return g4.has(e)}const b4=Symbol.for("react-aria.i18n.locale");function Z2(){let t=typeof window<"u"&&window[b4]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:v4(t)?"rtl":"ltr"}}let Jo=Z2(),Kr=new Set;function Qa(){Jo=Z2();for(let t of Kr)t(Jo)}function m4(){let t=sn(),[e,r]=u.useState(Jo);return u.useEffect(()=>(Kr.size===0&&window.addEventListener("languagechange",Qa),Kr.add(r),()=>{Kr.delete(r),Kr.size===0&&window.removeEventListener("languagechange",Qa)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const y4=u.createContext(null);function Kt(){let t=m4();return u.useContext(y4)||t}var Ge=function(){return Ge=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ge.apply(this,arguments)};function G2(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function C4(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}const E4=Symbol.for("react-aria.i18n.locale"),w4=Symbol.for("react-aria.i18n.strings");let Wt;class Fi{getStringForLocale(e,r){let i=this.getStringsForLocale(r)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${r} locale`);return i}getStringsForLocale(e){let r=this.strings[e];return r||(r=D4(e,this.strings,this.defaultLocale),this.strings[e]=r),r}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let r=window[E4];if(Wt===void 0){let i=window[w4];if(!i)return null;Wt={};for(let o in i)Wt[o]=new Fi({[r]:i[o]},r)}let n=Wt==null?void 0:Wt[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,r="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,n])=>n)),this.defaultLocale=r}}function D4(t,e,r="en-US"){if(e[t])return e[t];let n=x4(t);if(e[n])return e[n];for(let i in e)if(i.startsWith(n+"-"))return e[i];return e[r]}function x4(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const e0=new Map,t0=new Map;class S4{format(e,r){let n=this.strings.getStringForLocale(e,this.locale);return typeof n=="function"?n(r,this):n}plural(e,r,n="cardinal"){let i=r["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+n,l=e0.get(o);l||(l=new Intl.PluralRules(this.locale,{type:n}),e0.set(o,l));let a=l.select(e);return i=r[a]||r.other,typeof i=="function"?i():i}number(e){let r=t0.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),t0.set(this.locale,r)),r.format(e)}select(e,r){let n=e[r]||e.other;return typeof n=="function"?n():n}constructor(e,r){this.locale=e,this.strings=r}}const r0=new WeakMap;function F4(t){let e=r0.get(t);return e||(e=new Fi(t),r0.set(t,e)),e}function $4(t,e){return e&&Fi.getGlobalDictionaryForPackage(e)||F4(t)}function q2(t,e){let{locale:r}=Kt(),n=$4(t,e);return u.useMemo(()=>new S4(r,n),[r,n])}let ro=new Map;function zl(t){let{locale:e}=Kt(),r=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(ro.has(r))return ro.get(r);let n=new Intl.Collator(e,t);return ro.set(r,n),n}function P4(t,e){let{elementType:r="button",isDisabled:n,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:a,onPressChange:s,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:g,rel:y,type:h="button"}=t,v;r==="button"?v={type:h,disabled:n,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:v={role:"button",href:r==="a"&&!n?p:void 0,target:r==="a"?g:void 0,type:r==="input"?h:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?y:void 0};let{pressProps:m,isPressed:C}=Ei({onPressStart:o,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:a,onClick:f,isDisabled:n,preventFocusOnPress:c,ref:e}),{focusableProps:E}=z2(t,e);d&&(E.tabIndex=n?-1:E.tabIndex);let F=ie(E,m,he(t,{labelable:!0}));return{isPressed:C,buttonProps:ie(v,F,{"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"],"aria-disabled":t["aria-disabled"]})}}const n0=u.createContext(null),Qo="react-aria-focus-scope-restore";let ce=null;function Ul(t){let{children:e,contain:r,restoreFocus:n,autoFocus:i}=t,o=u.useRef(null),l=u.useRef(null),a=u.useRef([]),{parentNode:s}=u.useContext(n0)||{},c=u.useMemo(()=>new tl({scopeRef:a}),[a]);ne(()=>{let p=s||ge.root;if(ge.getTreeNode(p.scopeRef)&&ce&&!Qn(ce,p.scopeRef)){let g=ge.getTreeNode(ce);g&&(p=g)}p.addChild(c),ge.addNode(c)},[c,s]),ne(()=>{let p=ge.getTreeNode(a);p&&(p.contain=!!r)},[r]),ne(()=>{var p;let g=(p=o.current)===null||p===void 0?void 0:p.nextSibling,y=[],h=v=>v.stopPropagation();for(;g&&g!==l.current;)y.push(g),g.addEventListener(Qo,h),g=g.nextSibling;return a.current=y,()=>{for(let v of y)v.removeEventListener(Qo,h)}},[e]),O4(a,n,r),_4(a,r),M4(a,n,r),I4(a,i),u.useEffect(()=>{const p=De(le(a.current?a.current[0]:void 0));let g=null;if(Be(p,a.current)){for(let y of ge.traverse())y.scopeRef&&Be(p,y.scopeRef.current)&&(g=y);g===ge.getTreeNode(a)&&(ce=g.scopeRef)}},[a]),ne(()=>()=>{var p,g,y;let h=(y=(g=ge.getTreeNode(a))===null||g===void 0||(p=g.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&y!==void 0?y:null;(a===ce||Qn(a,ce))&&(!h||ge.getTreeNode(h))&&(ce=h),ge.removeTreeNode(a)},[a]);let d=u.useMemo(()=>A4(a),[]),f=u.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return u.createElement(n0.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 A4(t){return{focusNext(e={}){let r=t.current,{from:n,tabbable:i,wrap:o,accept:l}=e;var a;let s=n||De(le((a=r[0])!==null&&a!==void 0?a:void 0)),c=r[0].previousElementSibling,d=xt(r),f=qe(d,{tabbable:i,accept:l},r);f.currentNode=Be(s,r)?s:c;let p=f.nextNode();return!p&&o&&(f.currentNode=c,p=f.nextNode()),p&&et(p,!0),p},focusPrevious(e={}){let r=t.current,{from:n,tabbable:i,wrap:o,accept:l}=e;var a;let s=n||De(le((a=r[0])!==null&&a!==void 0?a:void 0)),c=r[r.length-1].nextElementSibling,d=xt(r),f=qe(d,{tabbable:i,accept:l},r);f.currentNode=Be(s,r)?s:c;let p=f.previousNode();return!p&&o&&(f.currentNode=c,p=f.previousNode()),p&&et(p,!0),p},focusFirst(e={}){let r=t.current,{tabbable:n,accept:i}=e,o=xt(r),l=qe(o,{tabbable:n,accept:i},r);l.currentNode=r[0].previousElementSibling;let a=l.nextNode();return a&&et(a,!0),a},focusLast(e={}){let r=t.current,{tabbable:n,accept:i}=e,o=xt(r),l=qe(o,{tabbable:n,accept:i},r);l.currentNode=r[r.length-1].nextElementSibling;let a=l.previousNode();return a&&et(a,!0),a}}}function xt(t){return t[0].parentElement}function jr(t){let e=ge.getTreeNode(ce);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function T4(t){if(t.checked)return!0;let e=[];if(!t.form)e=[...le(t).querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`)].filter(o=>!o.form);else{var r,n;let o=(n=t.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(t.name);e=[...o??[]]}return e?!e.some(o=>o.checked):!1}function _4(t,e){let r=u.useRef(void 0),n=u.useRef(void 0);ne(()=>{let i=t.current;if(!e){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const o=le(i?i[0]:void 0);let l=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!jr(t)||c.isComposing)return;let d=De(o),f=t.current;if(!f||!Be(d,f))return;let p=xt(f),g=qe(p,{tabbable:!0},f);if(!d)return;g.currentNode=d;let y=c.shiftKey?g.previousNode():g.nextNode();y||(g.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,y=c.shiftKey?g.previousNode():g.nextNode()),c.preventDefault(),y&&et(y,!0)},a=c=>{(!ce||Qn(ce,t))&&Be(oe(c),t.current)?(ce=t,r.current=oe(c)):jr(t)&&!dt(oe(c),t)?r.current?r.current.focus():ce&&ce.current&&el(ce.current):jr(t)&&(r.current=oe(c))},s=c=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let d=Xn(),f=(d==="virtual"||d===null)&&Tl()&&x2(),p=De(o);if(!f&&p&&jr(t)&&!dt(p,t)){ce=t;let y=oe(c);if(y&&y.isConnected){var g;r.current=y,(g=r.current)===null||g===void 0||g.focus()}else ce.current&&el(ce.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(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function Y2(t){return dt(t)}function Be(t,e){return!t||!e?!1:e.some(r=>r.contains(t))}function dt(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of ge.traverse(ge.getTreeNode(e)))if(r&&Be(t,r.current))return!0;return!1}function k4(t){return dt(t,ce)}function Qn(t,e){var r;let n=(r=ge.getTreeNode(e))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===t)return!0;n=n.parent}return!1}function et(t,e=!1){if(t!=null&&!e)try{vt(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function X2(t,e=!0){let r=t[0].previousElementSibling,n=xt(t),i=qe(n,{tabbable:e},t);i.currentNode=r;let o=i.nextNode();return e&&!o&&(n=xt(t),i=qe(n,{tabbable:!1},t),i.currentNode=r,o=i.nextNode()),o}function el(t,e=!0){et(X2(t,e))}function I4(t,e){const r=u.useRef(e);u.useEffect(()=>{if(r.current){ce=t;const n=le(t.current?t.current[0]:void 0);!Be(De(n),ce.current)&&t.current&&el(t.current)}r.current=!1},[t])}function O4(t,e,r){ne(()=>{if(e||r)return;let n=t.current;const i=le(n?n[0]:void 0);let o=l=>{let a=oe(l);Be(a,t.current)?ce=t:Y2(a)||(ce=null)};return i.addEventListener("focusin",o,!1),n==null||n.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),n==null||n.forEach(l=>l.removeEventListener("focusin",o,!1))}},[t,e,r])}function i0(t){let e=ge.getTreeNode(ce);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function M4(t,e,r){const n=u.useRef(typeof document<"u"?De(le(t.current?t.current[0]:void 0)):null);ne(()=>{let i=t.current;const o=le(i?i[0]:void 0);if(!e||r)return;let l=()=>{(!ce||Qn(ce,t))&&Be(De(o),t.current)&&(ce=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,r]),ne(()=>{const i=le(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!jr(t)||l.isComposing)return;let a=i.activeElement;if(!dt(a,t)||!i0(t))return;let s=ge.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||!dt(f,t))&&c){d.currentNode=c;do f=l.shiftKey?d.previousNode():d.nextNode();while(dt(f,t));l.preventDefault(),l.stopPropagation(),f?et(f,!0):Y2(c)?et(c,!0):a.blur()}};return r||i.addEventListener("keydown",o,!0),()=>{r||i.removeEventListener("keydown",o,!0)}},[t,e,r]),ne(()=>{const i=le(t.current?t.current[0]:void 0);if(!e)return;let o=ge.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=n.current)!==null&&l!==void 0?l:void 0,()=>{let a=ge.getTreeNode(t);if(!a)return;let s=a.nodeToRestore,c=De(i);if(e&&s&&(c&&dt(c,t)||c===i.body&&i0(t))){let d=ge.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){o0(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&ge.getTreeNode(f.scopeRef)){let p=X2(f.scopeRef.current,!0);o0(p);return}f=f.parent}}})}}}},[t,e])}function o0(t){t.dispatchEvent(new CustomEvent(Qo,{bubbles:!0,cancelable:!0}))&&et(t)}function qe(t,e,r){let n=e!=null&&e.tabbable?_5:T2,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=le(i),l=Xf(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(e==null||(s=e.from)===null||s===void 0)&&s.contains(a)||e!=null&&e.tabbable&&a.tagName==="INPUT"&&a.getAttribute("type")==="radio"&&(!T4(a)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===a.name)?NodeFilter.FILTER_REJECT:n(a)&&(!r||Be(a,r))&&(!(e!=null&&e.accept)||e.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}class Wl{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,r,n){let i=this.fastMap.get(r??null);if(!i)return;let o=new tl({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let r=this.fastMap.get(e);if(!r)return;let n=r.parent;for(let o of this.traverse())o!==r&&r.nodeToRestore&&o.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Be(o.nodeToRestore,r.scopeRef.current)&&(o.nodeToRestore=r.nodeToRestore);let i=r.children;n&&(n.removeChild(r),i.size>0&&i.forEach(o=>n&&n.addChild(o))),this.fastMap.delete(r.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let r of e.children)yield*this.traverse(r)}clone(){var e;let r=new Wl;var n;for(let i of this.traverse())r.addTreeNode(i.scopeRef,(n=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&n!==void 0?n:null,i.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new tl({scopeRef:null}),this.fastMap.set(null,this.root)}}class tl{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 ge=new Wl;function xr(t={}){let{autoFocus:e=!1,isTextInput:r,within:n}=t,i=u.useRef({isFocused:!1,isFocusVisible:e||mr()}),[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(g=>{i.current.isFocused=g,l(g),c()},[c]);J5(g=>{i.current.isFocusVisible=g,c()},[],{isTextInput:r});let{focusProps:f}=jl({isDisabled:n,onFocusChange:d}),{focusWithinProps:p}=Di({isDisabled:!n,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:n?p:f}}function N4(t,e){let r=e==null?void 0:e.isDisabled,[n,i]=u.useState(!1);return ne(()=>{if(t!=null&&t.current&&!r){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()}}}),r?!1:n}function J2(t){let e=R4(le(t));e!==t&&(e&&B4(e,t),t&&Q2(t,e))}function B4(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Q2(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function R4(t){let e=De(t),r=e==null?void 0:e.getAttribute("aria-activedescendant");return r&&t.getElementById(r)||e}const ec=7e3;let Ue=null;function l0(t,e="assertive",r=ec){Ue?Ue.announce(t,e,r):(Ue=new L4,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ue.announce(t,e,r):setTimeout(()=>{Ue!=null&&Ue.isAttached()&&(Ue==null||Ue.announce(t,e,r))},100))}class L4{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",e),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,r="assertive",n=ec){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,r==="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()},n)}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 tc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},rc={...tc,customError:!0,valid:!1},Ar={isInvalid:!1,validationDetails:tc,validationErrors:[]},K4=u.createContext({}),a0="__formValidationState"+Date.now();function j4(t){if(t[a0]){let{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:o}=t[a0];return{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:o}}return H4(t)}function H4(t){let{isInvalid:e,validationState:r,name:n,value:i,builtinValidation:o,validate:l,validationBehavior:a="aria"}=t;r&&(e||(e=r==="invalid"));let s=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:rc}:null,c=u.useMemo(()=>{if(!l||i==null)return null;let H=V4(l,i);return s0(H)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let d=u.useContext(K4),f=u.useMemo(()=>n?Array.isArray(n)?n.flatMap(H=>rl(d[H])):rl(d[n]):[],[d,n]),[p,g]=u.useState(d),[y,h]=u.useState(!1);d!==p&&(g(d),h(!1));let v=u.useMemo(()=>s0(y?[]:f),[y,f]),m=u.useRef(Ar),[C,E]=u.useState(Ar),F=u.useRef(Ar),D=()=>{if(!x)return;S(!1);let H=c||o||m.current;no(H,F.current)||(F.current=H,E(H))},[x,S]=u.useState(!1);return u.useEffect(D),{realtimeValidation:s||v||c||o||Ar,displayValidation:a==="native"?s||v||C:s||v||c||o||C,updateValidation(H){a==="aria"&&!no(C,H)?E(H):m.current=H},resetValidation(){let H=Ar;no(H,F.current)||(F.current=H,E(H)),a==="native"&&S(!1),h(!0)},commitValidation(){a==="native"&&S(!0),h(!0)}}}function rl(t){return t?Array.isArray(t)?t:[t]:[]}function V4(t,e){if(typeof t=="function"){let r=t(e);if(r&&typeof r!="boolean")return rl(r)}return[]}function s0(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:rc}:null}function no(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((r,n)=>r===e.validationErrors[n])&&Object.entries(t.validationDetails).every(([r,n])=>e.validationDetails[r]===n)}function z4(t,e,r){let{validationBehavior:n,focus:i}=t;ne(()=>{if(n==="native"&&(r!=null&&r.current)&&!r.current.disabled){let c=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(c),r.current.hasAttribute("title")||(r.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(W4(r.current))}});let o=u.useRef(!1),l=ve(()=>{o.current||e.resetValidation()}),a=ve(c=>{var d;e.displayValidation.isInvalid||e.commitValidation();let f=r==null||(d=r.current)===null||d===void 0?void 0:d.form;if(!c.defaultPrevented&&r&&f&&Z4(f)===r.current){var p;i?i():(p=r.current)===null||p===void 0||p.focus(),H2("keyboard")}c.preventDefault()}),s=ve(()=>{e.commitValidation()});u.useEffect(()=>{let c=r==null?void 0:r.current;if(!c)return;let d=c.form,f=d==null?void 0:d.reset;return d&&(d.reset=()=>{o.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,f==null||f.call(d),o.current=!1}),c.addEventListener("invalid",a),c.addEventListener("change",s),d==null||d.addEventListener("reset",l),()=>{c.removeEventListener("invalid",a),c.removeEventListener("change",s),d==null||d.removeEventListener("reset",l),d&&(d.reset=f)}},[r,a,s,l,n])}function U4(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 W4(t){return{isInvalid:!t.validity.valid,validationDetails:U4(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function Z4(t){for(let e=0;e<t.elements.length;e++){let r=t.elements[e];if(!r.validity.valid)return r}return null}function nc(t){let{id:e,label:r,"aria-labelledby":n,"aria-label":i,labelElementType:o="label"}=t;e=Se(e);let l=Se(),a={};r?(n=n?`${l} ${n}`:l,a={id:l,htmlFor:o==="label"?e:void 0}):!n&&!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=mi({id:e,"aria-label":i,"aria-labelledby":n});return{labelProps:a,fieldProps:s}}function G4(t){let{description:e,errorMessage:r,isInvalid:n,validationState:i}=t,{labelProps:o,fieldProps:l}=nc(t),a=ft([!!e,!!r,n,i]),s=ft([!!e,!!r,n,i]);return l=ie(l,{"aria-describedby":[a,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:s}}}const c0={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 ic(t={}){let{style:e,isFocusable:r}=t,[n,i]=u.useState(!1),{focusWithinProps:o}=Di({isDisabled:!r,onFocusWithinChange:a=>i(a)}),l=u.useMemo(()=>n?e:e?{...c0,...e}:c0,[n]);return{visuallyHiddenProps:{...o,style:l}}}function q4(t){let{children:e,elementType:r="div",isFocusable:n,style:i,...o}=t,{visuallyHiddenProps:l}=ic(t);return u.createElement(r,ie(o,l),e)}const Ye={top:"top",bottom:"top",left:"left",right:"left"},ei={top:"bottom",bottom:"top",left:"right",right:"left"},Y4={top:"left",left:"top"},nl={top:"height",left:"width"},oc={width:"totalWidth",height:"totalHeight"},Cn={};let be=typeof document<"u"?window.visualViewport:null;function u0(t){let e=0,r=0,n=0,i=0,o=0,l=0,a={};var s;let c=((s=be==null?void 0:be.scale)!==null&&s!==void 0?s:1)>1;if(t.tagName==="BODY"){let y=document.documentElement;n=y.clientWidth,i=y.clientHeight;var d;e=(d=be==null?void 0:be.width)!==null&&d!==void 0?d:n;var f;r=(f=be==null?void 0:be.height)!==null&&f!==void 0?f:i,a.top=y.scrollTop||t.scrollTop,a.left=y.scrollLeft||t.scrollLeft,be&&(o=be.offsetTop,l=be.offsetLeft)}else({width:e,height:r,top:o,left:l}=fr(t,!1)),a.top=t.scrollTop,a.left=t.scrollLeft,n=e,i=r;if(Al()&&(t.tagName==="BODY"||t.tagName==="HTML")&&c){a.top=0,a.left=0;var p;o=(p=be==null?void 0:be.pageTop)!==null&&p!==void 0?p:0;var g;l=(g=be==null?void 0:be.pageLeft)!==null&&g!==void 0?g:0}return{width:e,height:r,totalWidth:n,totalHeight:i,scroll:a,top:o,left:l}}function X4(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function d0(t,e,r,n,i,o,l){var a;let s=(a=i.scroll[t])!==null&&a!==void 0?a:0,c=n[nl[t]],d=n.scroll[Ye[t]]+o,f=c+n.scroll[Ye[t]]-o,p=e-s+l[t]-n[Ye[t]],g=e-s+r+l[t]-n[Ye[t]];return p<d?d-p:g>f?Math.max(f-g,d-p):0}function J4(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 f0(t){if(Cn[t])return Cn[t];let[e,r]=t.split(" "),n=Ye[e]||"right",i=Y4[n];Ye[r]||(r="center");let o=nl[n],l=nl[i];return Cn[t]={placement:e,crossPlacement:r,axis:n,crossAxis:i,size:o,crossSize:l},Cn[t]}function io(t,e,r,n,i,o,l,a,s,c){let{placement:d,crossPlacement:f,axis:p,crossAxis:g,size:y,crossSize:h}=n,v={};var m;v[g]=(m=t[g])!==null&&m!==void 0?m:0;var C,E,F,D;f==="center"?v[g]+=(((C=t[h])!==null&&C!==void 0?C:0)-((E=r[h])!==null&&E!==void 0?E:0))/2:f!==g&&(v[g]+=((F=t[h])!==null&&F!==void 0?F:0)-((D=r[h])!==null&&D!==void 0?D:0)),v[g]+=o;const x=t[g]-r[h]+s+c,S=t[g]+t[h]-s-c;if(v[g]=zo(v[g],x,S),d===p){const O=a?l[y]:e[oc[y]];v[ei[p]]=Math.floor(O-t[p]+i)}else v[p]=Math.floor(t[p]+t[y]+i);return v}function Q4(t,e,r,n,i,o,l,a){const s=n?r.height:e[oc.height];var c;let d=t.top!=null?r.top+t.top:r.top+(s-((c=t.bottom)!==null&&c!==void 0?c:0)-l);var f,p,g,y,h,v;let m=a!=="top"?Math.max(0,e.height+e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0)-d-(((p=i.top)!==null&&p!==void 0?p:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,d+l-(e.top+((y=e.scroll.top)!==null&&y!==void 0?y:0))-(((h=i.top)!==null&&h!==void 0?h:0)+((v=i.bottom)!==null&&v!==void 0?v:0)+o));return Math.min(e.height-o*2,m)}function h0(t,e,r,n,i,o){let{placement:l,axis:a,size:s}=o;var c,d;if(l===a)return Math.max(0,r[a]-t[a]-((c=t.scroll[a])!==null&&c!==void 0?c:0)+e[a]-((d=n[a])!==null&&d!==void 0?d:0)-n[ei[a]]-i);var f;return Math.max(0,t[s]+t[a]+t.scroll[a]-e[a]-r[a]-r[s]-((f=n[a])!==null&&f!==void 0?f:0)-n[ei[a]]-i)}function e3(t,e,r,n,i,o,l,a,s,c,d,f,p,g,y,h){let v=f0(t),{size:m,crossAxis:C,crossSize:E,placement:F,crossPlacement:D}=v,x=io(e,a,r,v,d,f,c,p,y,h),S=d,O=h0(a,c,e,i,o+d,v);if(l&&n[m]>O){let V=f0(`${ei[F]} ${D}`),W=io(e,a,r,V,d,f,c,p,y,h);h0(a,c,e,i,o+d,V)>O&&(v=V,x=W,S=d)}let K="bottom";v.axis==="top"?v.placement==="top"?K="top":v.placement==="bottom"&&(K="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?K="bottom":v.crossPlacement==="bottom"&&(K="top"));let H=d0(C,x[C],r[E],a,s,o,c);x[C]+=H;let w=Q4(x,a,c,p,i,o,r.height,K);g&&g<w&&(w=g),r.height=Math.min(r.height,w),x=io(e,a,r,v,S,f,c,p,y,h),H=d0(C,x[C],r[E],a,s,o,c),x[C]+=H;let M={},Z=e[C]-x[C]-i[Ye[C]],_=Z+.5*e[E];const U=y/2+h;var P,k,z,R;const I=Ye[C]==="left"?((P=i.left)!==null&&P!==void 0?P:0)+((k=i.right)!==null&&k!==void 0?k:0):((z=i.top)!==null&&z!==void 0?z:0)+((R=i.bottom)!==null&&R!==void 0?R:0),N=r[E]-I-y/2-h,$=e[C]+y/2-(x[C]+i[Ye[C]]),A=e[C]+e[E]-y/2-(x[C]+i[Ye[C]]),B=zo(_,$,A);M[C]=zo(B,U,N),{placement:F,crossPlacement:D}=v,y?Z=M[C]:D==="right"?Z+=e[E]:D==="center"&&(Z+=e[E]/2);let L=F==="left"||F==="top"?r[m]:0,j={x:F==="top"||F==="bottom"?Z:L,y:F==="left"||F==="right"?Z:L};return{position:x,maxHeight:w,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:F,triggerAnchorPoint:j}}function t3(t){let{placement:e,targetNode:r,overlayNode:n,scrollNode:i,padding:o,shouldFlip:l,boundaryElement:a,offset:s,crossOffset:c,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:p=0}=t,g=n instanceof HTMLElement?r3(n):document.documentElement,y=g===document.documentElement;const h=window.getComputedStyle(g).position;let v=!!h&&h!=="static",m=y?fr(r,!1):p0(r,g,!1);if(!y){let{marginTop:M,marginLeft:Z}=window.getComputedStyle(r);m.top+=parseInt(M,10)||0,m.left+=parseInt(Z,10)||0}let C=fr(n,!0),E=J4(n);var F,D;C.width+=((F=E.left)!==null&&F!==void 0?F:0)+((D=E.right)!==null&&D!==void 0?D:0);var x,S;C.height+=((x=E.top)!==null&&x!==void 0?x:0)+((S=E.bottom)!==null&&S!==void 0?S:0);let O=X4(i),K=u0(a),H=u0(g),w=a.tagName==="BODY"?fr(g,!1):p0(g,a,!1);return g.tagName==="HTML"&&a.tagName==="BODY"&&(H.scroll.top=0,H.scroll.left=0),e3(e,m,C,O,E,o,l,K,H,w,s,c,v,d,f,p)}function Zl(t,e){let{top:r,left:n,width:i,height:o}=t.getBoundingClientRect();return e&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(i=t.offsetWidth,o=t.offsetHeight),{top:r,left:n,width:i,height:o}}function fr(t,e){let{top:r,left:n,width:i,height:o}=Zl(t,e),{scrollTop:l,scrollLeft:a,clientTop:s,clientLeft:c}=document.documentElement;return{top:r+l-s,left:n+a-c,width:i,height:o}}function p0(t,e,r){let n=window.getComputedStyle(t),i;if(n.position==="fixed")i=Zl(t,r);else{i=fr(t,r);let o=fr(e,r),l=window.getComputedStyle(e);o.top+=(parseInt(l.borderTopWidth,10)||0)-e.scrollTop,o.left+=(parseInt(l.borderLeftWidth,10)||0)-e.scrollLeft,i.top-=o.top,i.left-=o.left}return i.top-=parseInt(n.marginTop,10)||0,i.left-=parseInt(n.marginLeft,10)||0,i}function r3(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!g0(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!g0(e);)e=e.parentElement;return e||document.documentElement}function g0(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 lc=new WeakMap;function n3(t){let{triggerRef:e,isOpen:r,onClose:n}=t;u.useEffect(()=>{if(!r||n===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=n||lc.get(e.current);a&&a()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[r,n,e])}let fe=typeof document<"u"?window.visualViewport:null;function i3(t){let{direction:e}=Kt(),{arrowSize:r,targetRef:n,overlayRef:i,arrowRef:o,scrollRef:l=i,placement:a="bottom",containerPadding:s=12,shouldFlip:c=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:p=0,shouldUpdatePosition:g=!0,isOpen:y=!0,onClose:h,maxHeight:v,arrowBoundaryOffset:m=0}=t,[C,E]=u.useState(null),F=[g,a,i.current,n.current,o==null?void 0:o.current,l.current,s,c,d,f,p,y,e,v,m,r],D=u.useRef(fe==null?void 0:fe.scale);u.useEffect(()=>{y&&(D.current=fe==null?void 0:fe.scale)},[y]);let x=u.useCallback(()=>{if(g===!1||!y||!i.current||!n.current||!d||(fe==null?void 0:fe.scale)!==D.current)return;let M=null;if(l.current&&l.current.contains(document.activeElement)){var Z;let I=(Z=document.activeElement)===null||Z===void 0?void 0:Z.getBoundingClientRect(),N=l.current.getBoundingClientRect();var _;if(M={type:"top",offset:((_=I==null?void 0:I.top)!==null&&_!==void 0?_:0)-N.top},M.offset>N.height/2){M.type="bottom";var U;M.offset=((U=I==null?void 0:I.bottom)!==null&&U!==void 0?U:0)-N.bottom}}let P=i.current;if(!v&&i.current){var k;P.style.top="0px",P.style.bottom="";var z;P.style.maxHeight=((z=(k=window.visualViewport)===null||k===void 0?void 0:k.height)!==null&&z!==void 0?z:window.innerHeight)+"px"}let R=t3({placement:l3(a,e),overlayNode:i.current,targetNode:n.current,scrollNode:l.current||i.current,padding:s,shouldFlip:c,boundaryElement:d,offset:f,crossOffset:p,maxHeight:v,arrowSize:r??(o!=null&&o.current?Zl(o.current,!0).width:0),arrowBoundaryOffset:m});if(R.position){if(P.style.top="",P.style.bottom="",P.style.left="",P.style.right="",Object.keys(R.position).forEach(I=>P.style[I]=R.position[I]+"px"),P.style.maxHeight=R.maxHeight!=null?R.maxHeight+"px":"",M&&document.activeElement&&l.current){let I=document.activeElement.getBoundingClientRect(),N=l.current.getBoundingClientRect(),$=I[M.type]-N[M.type];l.current.scrollTop+=$-M.offset}E(R)}},F);ne(x,F),o3(x),Ho({ref:i,onResize:x}),Ho({ref:n,onResize:x});let S=u.useRef(!1);ne(()=>{let M,Z=()=>{S.current=!0,clearTimeout(M),M=setTimeout(()=>{S.current=!1},500),x()},_=()=>{S.current&&Z()};return fe==null||fe.addEventListener("resize",Z),fe==null||fe.addEventListener("scroll",_),()=>{fe==null||fe.removeEventListener("resize",Z),fe==null||fe.removeEventListener("scroll",_)}},[x]);let O=u.useCallback(()=>{S.current||h==null||h()},[h,S]);n3({triggerRef:n,isOpen:y,onClose:h&&O});var K,H,w;return{overlayProps:{style:{position:C?"absolute":"fixed",top:C?void 0:0,left:C?void 0:0,zIndex:1e5,...C==null?void 0:C.position,maxHeight:(K=C==null?void 0:C.maxHeight)!==null&&K!==void 0?K:"100vh"}},placement:(H=C==null?void 0:C.placement)!==null&&H!==void 0?H:null,triggerAnchorPoint:(w=C==null?void 0:C.triggerAnchorPoint)!==null&&w!==void 0?w:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:C==null?void 0:C.arrowOffsetLeft,top:C==null?void 0:C.arrowOffsetTop}},updatePosition:x}}function o3(t){ne(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function l3(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const We=[];function a3(t,e){let{onClose:r,shouldCloseOnBlur:n,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t;u.useEffect(()=>{if(i&&!We.includes(e))return We.push(e),()=>{let y=We.indexOf(e);y>=0&&We.splice(y,1)}},[i,e]);let s=()=>{We[We.length-1]===e&&r&&r()},c=y=>{(!a||a(y.target))&&We[We.length-1]===e&&(y.stopPropagation(),y.preventDefault())},d=y=>{(!a||a(y.target))&&(We[We.length-1]===e&&(y.stopPropagation(),y.preventDefault()),s())},f=y=>{y.key==="Escape"&&!l&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),s())};r4({ref:e,onInteractOutside:o&&i?d:void 0,onInteractOutsideStart:c});let{focusWithinProps:p}=Di({isDisabled:!n,onBlurWithin:y=>{!y.relatedTarget||k4(y.relatedTarget)||(!a||a(y.relatedTarget))&&(r==null||r())}}),g=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:g}}}function s3(t,e,r){let{type:n}=t,{isOpen:i}=e;u.useEffect(()=>{r&&r.current&&lc.set(r.current,e.close)});let o;n==="menu"?o=!0:n==="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 oo=typeof document<"u"&&window.visualViewport,c3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let En=0,lo;function u3(t={}){let{isDisabled:e}=t;ne(()=>{if(!e)return En++,En===1&&(gi()?lo=f3():lo=d3()),()=>{En--,En===0&&lo()}},[e])}function d3(){let t=window.innerWidth-document.documentElement.clientWidth;return pt(t>0&&("scrollbarGutter"in document.documentElement.style?St(document.documentElement,"scrollbarGutter","stable"):St(document.documentElement,"paddingRight",`${t}px`)),St(document.documentElement,"overflow","hidden"))}function f3(){let t,e,r=c=>{t=$2(c.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=St(t,"overscrollBehavior","contain"))},n=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;h3(d)&&(a(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",oo&&(oo.height<window.innerHeight?requestAnimationFrame(()=>{v0(d)}):oo.addEventListener("resize",()=>v0(d),{once:!0}))}))},l=null,a=()=>{if(l)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;l=pt(Tr(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=pt(Tr(document,"touchstart",r,{passive:!1,capture:!0}),Tr(document,"touchmove",n,{passive:!1,capture:!0}),Tr(document,"touchend",i,{passive:!1,capture:!0}),Tr(document,"focus",o,!0));return()=>{e==null||e(),l==null||l(),s()}}function St(t,e,r){let n=t.style[e];return t.style[e]=r,()=>{t.style[e]=n}}function Tr(t,e,r,n){return t.addEventListener(e,r,n),()=>{t.removeEventListener(e,r,n)}}function v0(t){let e=document.scrollingElement||document.documentElement,r=t;for(;r&&r!==e;){let n=$2(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let i=n.getBoundingClientRect().top,o=r.getBoundingClientRect().top;o>i+r.clientHeight&&(n.scrollTop+=o-i)}r=n.parentElement}}function h3(t){return t instanceof HTMLInputElement&&!c3.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const p3=u.createContext({});function g3(){var t;return(t=u.useContext(p3))!==null&&t!==void 0?t:{}}var ac={};ac={dismiss:"تجاهل"};var sc={};sc={dismiss:"Отхвърляне"};var cc={};cc={dismiss:"Odstranit"};var uc={};uc={dismiss:"Luk"};var dc={};dc={dismiss:"Schließen"};var fc={};fc={dismiss:"Απόρριψη"};var hc={};hc={dismiss:"Dismiss"};var pc={};pc={dismiss:"Descartar"};var gc={};gc={dismiss:"Lõpeta"};var vc={};vc={dismiss:"Hylkää"};var bc={};bc={dismiss:"Rejeter"};var mc={};mc={dismiss:"התעלם"};var yc={};yc={dismiss:"Odbaci"};var Cc={};Cc={dismiss:"Elutasítás"};var Ec={};Ec={dismiss:"Ignora"};var wc={};wc={dismiss:"閉じる"};var Dc={};Dc={dismiss:"무시"};var xc={};xc={dismiss:"Atmesti"};var Sc={};Sc={dismiss:"Nerādīt"};var Fc={};Fc={dismiss:"Lukk"};var $c={};$c={dismiss:"Negeren"};var Pc={};Pc={dismiss:"Zignoruj"};var Ac={};Ac={dismiss:"Descartar"};var Tc={};Tc={dismiss:"Dispensar"};var _c={};_c={dismiss:"Revocare"};var kc={};kc={dismiss:"Пропустить"};var Ic={};Ic={dismiss:"Zrušiť"};var Oc={};Oc={dismiss:"Opusti"};var Mc={};Mc={dismiss:"Odbaci"};var Nc={};Nc={dismiss:"Avvisa"};var Bc={};Bc={dismiss:"Kapat"};var Rc={};Rc={dismiss:"Скасувати"};var Lc={};Lc={dismiss:"取消"};var Kc={};Kc={dismiss:"關閉"};var jc={};jc={"ar-AE":ac,"bg-BG":sc,"cs-CZ":cc,"da-DK":uc,"de-DE":dc,"el-GR":fc,"en-US":hc,"es-ES":pc,"et-EE":gc,"fi-FI":vc,"fr-FR":bc,"he-IL":mc,"hr-HR":yc,"hu-HU":Cc,"it-IT":Ec,"ja-JP":wc,"ko-KR":Dc,"lt-LT":xc,"lv-LV":Sc,"nb-NO":Fc,"nl-NL":$c,"pl-PL":Pc,"pt-BR":Ac,"pt-PT":Tc,"ro-RO":_c,"ru-RU":kc,"sk-SK":Ic,"sl-SI":Oc,"sr-SP":Mc,"sv-SE":Nc,"tr-TR":Bc,"uk-UA":Rc,"zh-CN":Lc,"zh-TW":Kc};function v3(t){return t&&t.__esModule?t.default:t}function b0(t){let{onDismiss:e,...r}=t,n=q2(v3(jc),"@react-aria/overlays"),i=mi(r,n.format("dismiss")),o=()=>{e&&e()};return u.createElement(q4,null,u.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}const b3=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let _r=new WeakMap,Pe=[];function m3(t,e){let r=_e(t==null?void 0:t[0]),n=e instanceof r.Element?{root:e}:e;var i;let o=(i=n==null?void 0:n.root)!==null&&i!==void 0?i:document.body,l=(n==null?void 0:n.shouldUseInert)&&b3,a=new Set(t),s=new Set,c=h=>l&&h instanceof r.HTMLElement?h.inert:h.getAttribute("aria-hidden")==="true",d=(h,v)=>{l&&h instanceof r.HTMLElement?h.inert=v:v?h.setAttribute("aria-hidden","true"):(h.removeAttribute("aria-hidden"),h instanceof r.HTMLElement&&(h.inert=!1))},f=h=>{for(let E of h.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))a.add(E);let v=E=>{if(s.has(E)||a.has(E)||E.parentElement&&s.has(E.parentElement)&&E.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let F of a)if(E.contains(F))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},m=document.createTreeWalker(h,NodeFilter.SHOW_ELEMENT,{acceptNode:v}),C=v(h);if(C===NodeFilter.FILTER_ACCEPT&&p(h),C!==NodeFilter.FILTER_REJECT){let E=m.nextNode();for(;E!=null;)p(E),E=m.nextNode()}},p=h=>{var v;let m=(v=_r.get(h))!==null&&v!==void 0?v:0;c(h)&&m===0||(m===0&&d(h,!0),s.add(h),_r.set(h,m+1))};Pe.length&&Pe[Pe.length-1].disconnect(),f(o);let g=new MutationObserver(h=>{for(let v of h)if(v.type==="childList"&&![...a,...s].some(m=>m.contains(v.target)))for(let m of v.addedNodes)(m instanceof HTMLElement||m instanceof SVGElement)&&(m.dataset.liveAnnouncer==="true"||m.dataset.reactAriaTopLayer==="true")?a.add(m):m instanceof Element&&f(m)});g.observe(o,{childList:!0,subtree:!0});let y={visibleNodes:a,hiddenNodes:s,observe(){g.observe(o,{childList:!0,subtree:!0})},disconnect(){g.disconnect()}};return Pe.push(y),()=>{g.disconnect();for(let h of s){let v=_r.get(h);v!=null&&(v===1?(d(h,!1),_r.delete(h)):_r.set(h,v-1))}y===Pe[Pe.length-1]?(Pe.pop(),Pe.length&&Pe[Pe.length-1].observe()):Pe.splice(Pe.indexOf(y),1)}}function y3(t){let e=Pe[Pe.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}function C3(t,e){let{triggerRef:r,popoverRef:n,groupRef:i,isNonModal:o,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a,...s}=t,c=s.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=a3({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o||c,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a},i??n),{overlayProps:p,arrowProps:g,placement:y,triggerAnchorPoint:h}=i3({...s,targetRef:r,overlayRef:n,isOpen:e.isOpen,onClose:o&&!c?e.close:null});return u3({isDisabled:o||!e.isOpen}),u.useEffect(()=>{if(e.isOpen&&n.current){var v,m;return o?y3((v=i==null?void 0:i.current)!==null&&v!==void 0?v:n.current):m3([(m=i==null?void 0:i.current)!==null&&m!==void 0?m:n.current],{shouldUseInert:!0})}},[o,e.isOpen,n,i]),{popoverProps:ie(d,p),arrowProps:g,underlayProps:f,placement:y,triggerAnchorPoint:h}}const Hc=u.createContext(null);function m0(t){let e=sn(),{portalContainer:r=e?null:document.body,isExiting:n}=t,[i,o]=u.useState(!1),l=u.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=g3();if(!t.portalContainer&&a&&(r=a()),!r)return null;let s=t.children;return t.disableFocusManagement||(s=u.createElement(Ul,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!n},s)),s=u.createElement(Hc.Provider,{value:l},u.createElement(e4,null,s)),Rt.createPortal(s,r)}function E3(){let t=u.useContext(Hc),e=t==null?void 0:t.setContain;ne(()=>{e==null||e(!0)},[e])}const Gl=new WeakMap;function w3(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function D3(t,e){let r=Gl.get(t);if(!r)throw new Error("Unknown list");return`${r.id}-option-${w3(e)}`}function il(t){return a5()?t.altKey:t.ctrlKey}function Mn(t,e){var r,n;let i=`[data-key="${CSS.escape(String(e))}"]`,o=(r=t.current)===null||r===void 0?void 0:r.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(n=t.current)===null||n===void 0?void 0:n.querySelector(i)}const Vc=new WeakMap;function x3(t){let e=Se();return Vc.set(t,e),e}function S3(t){return Vc.get(t)}const F3=1e3;function zc(t){let{keyboardDelegate:e,selectionManager:r,onTypeSelect:n}=t,i=u.useRef({search:"",timeout:void 0}).current,o=l=>{let a=$3(l.key);if(!(!a||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target)||i.search.length===0&&a===" ")){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,r.focusedKey);s==null&&(s=e.getKeyForSearch(i.search)),s!=null&&(r.setFocusedKey(s),n&&n(s))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},F3)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function $3(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function Uc(t){let{selectionManager:e,keyboardDelegate:r,ref:n,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:p=!1,isVirtualized:g,scrollRef:y=n,linkBehavior:h="action"}=t,{direction:v}=Kt(),m=vi(),C=k=>{var z;if(k.altKey&&k.key==="Tab"&&k.preventDefault(),!(!((z=n.current)===null||z===void 0)&&z.contains(k.target)))return;const R=(G,te)=>{if(G!=null){if(e.isLink(G)&&h==="selection"&&c&&!il(k)){Rt.flushSync(()=>{e.setFocusedKey(G,te)});let de=Mn(n,G),Re=e.getItemProps(G);de&&m.open(de,k,Re.href,Re.routerOptions);return}if(e.setFocusedKey(G,te),e.isLink(G)&&h==="override")return;k.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):c&&!il(k)&&e.replaceSelection(G)}};switch(k.key){case"ArrowDown":if(r.getKeyBelow){var I,N,$;let G=e.focusedKey!=null?(I=r.getKeyBelow)===null||I===void 0?void 0:I.call(r,e.focusedKey):(N=r.getFirstKey)===null||N===void 0?void 0:N.call(r);G==null&&o&&(G=($=r.getFirstKey)===null||$===void 0?void 0:$.call(r,e.focusedKey)),G!=null&&(k.preventDefault(),R(G))}break;case"ArrowUp":if(r.getKeyAbove){var A,B,L;let G=e.focusedKey!=null?(A=r.getKeyAbove)===null||A===void 0?void 0:A.call(r,e.focusedKey):(B=r.getLastKey)===null||B===void 0?void 0:B.call(r);G==null&&o&&(G=(L=r.getLastKey)===null||L===void 0?void 0:L.call(r,e.focusedKey)),G!=null&&(k.preventDefault(),R(G))}break;case"ArrowLeft":if(r.getKeyLeftOf){var j,V,W;let G=e.focusedKey!=null?(j=r.getKeyLeftOf)===null||j===void 0?void 0:j.call(r,e.focusedKey):null;G==null&&o&&(G=v==="rtl"?(V=r.getFirstKey)===null||V===void 0?void 0:V.call(r,e.focusedKey):(W=r.getLastKey)===null||W===void 0?void 0:W.call(r,e.focusedKey)),G!=null&&(k.preventDefault(),R(G,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var q,Y,ae;let G=e.focusedKey!=null?(q=r.getKeyRightOf)===null||q===void 0?void 0:q.call(r,e.focusedKey):null;G==null&&o&&(G=v==="rtl"?(Y=r.getLastKey)===null||Y===void 0?void 0:Y.call(r,e.focusedKey):(ae=r.getFirstKey)===null||ae===void 0?void 0:ae.call(r,e.focusedKey)),G!=null&&(k.preventDefault(),R(G,v==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(e.focusedKey===null&&k.shiftKey)return;k.preventDefault();let G=r.getFirstKey(e.focusedKey,ir(k));e.setFocusedKey(G),G!=null&&(ir(k)&&k.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):c&&e.replaceSelection(G))}break;case"End":if(r.getLastKey){if(e.focusedKey===null&&k.shiftKey)return;k.preventDefault();let G=r.getLastKey(e.focusedKey,ir(k));e.setFocusedKey(G),G!=null&&(ir(k)&&k.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):c&&e.replaceSelection(G))}break;case"PageDown":if(r.getKeyPageBelow&&e.focusedKey!=null){let G=r.getKeyPageBelow(e.focusedKey);G!=null&&(k.preventDefault(),R(G))}break;case"PageUp":if(r.getKeyPageAbove&&e.focusedKey!=null){let G=r.getKeyPageAbove(e.focusedKey);G!=null&&(k.preventDefault(),R(G))}break;case"a":ir(k)&&e.selectionMode==="multiple"&&a!==!0&&(k.preventDefault(),e.selectAll());break;case"Escape":s==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(k.stopPropagation(),k.preventDefault(),e.clearSelection());break;case"Tab":if(!p){if(k.shiftKey)n.current.focus();else{let G=qe(n.current,{tabbable:!0}),te,de;do de=G.lastChild(),de&&(te=de);while(de);te&&!te.contains(document.activeElement)&&Ve(te)}break}}},E=u.useRef({top:0,left:0});pn(y,"scroll",g?void 0:()=>{var k,z,R,I;E.current={top:(R=(k=y.current)===null||k===void 0?void 0:k.scrollTop)!==null&&R!==void 0?R:0,left:(I=(z=y.current)===null||z===void 0?void 0:z.scrollLeft)!==null&&I!==void 0?I:0}});let F=k=>{if(e.isFocused){k.currentTarget.contains(k.target)||e.setFocused(!1);return}if(k.currentTarget.contains(k.target)){if(e.setFocused(!0),e.focusedKey==null){var z,R;let $=B=>{B!=null&&(e.setFocusedKey(B),c&&!e.isSelected(B)&&e.replaceSelection(B))},A=k.relatedTarget;var I,N;A&&k.currentTarget.compareDocumentPosition(A)&Node.DOCUMENT_POSITION_FOLLOWING?$((I=e.lastSelectedKey)!==null&&I!==void 0?I:(z=r.getLastKey)===null||z===void 0?void 0:z.call(r)):$((N=e.firstSelectedKey)!==null&&N!==void 0?N:(R=r.getFirstKey)===null||R===void 0?void 0:R.call(r))}else!g&&y.current&&(y.current.scrollTop=E.current.top,y.current.scrollLeft=E.current.left);if(e.focusedKey!=null&&y.current){let $=Mn(n,e.focusedKey);$ instanceof HTMLElement&&(!$.contains(document.activeElement)&&!f&&Ve($),Xn()==="keyboard"&&Na($,{containingElement:n.current}))}}},D=k=>{k.currentTarget.contains(k.relatedTarget)||e.setFocused(!1)},x=u.useRef(!1);pn(n,D5,f?k=>{let{detail:z}=k;k.stopPropagation(),e.setFocused(!0),(z==null?void 0:z.focusStrategy)==="first"&&(x.current=!0)}:void 0);let S=ve(()=>{var k,z;let R=(z=(k=r.getFirstKey)===null||k===void 0?void 0:k.call(r))!==null&&z!==void 0?z:null;if(R==null){let I=De();J2(n.current),Q2(I,null),e.collection.size>0&&(x.current=!1)}else e.setFocusedKey(R),x.current=!1});Oa(()=>{x.current&&S()},[e.collection,S]);let O=ve(()=>{e.collection.size>0&&(x.current=!1)});Oa(()=>{O()},[e.focusedKey,O]),pn(n,w5,f?k=>{var z;k.stopPropagation(),e.setFocused(!1),!((z=k.detail)===null||z===void 0)&&z.clearFocusKey&&e.setFocusedKey(null)}:void 0);const K=u.useRef(i),H=u.useRef(!1);u.useEffect(()=>{if(K.current){var k,z;let N=null;var R;i==="first"&&(N=(R=(k=r.getFirstKey)===null||k===void 0?void 0:k.call(r))!==null&&R!==void 0?R:null);var I;i==="last"&&(N=(I=(z=r.getLastKey)===null||z===void 0?void 0:z.call(r))!==null&&I!==void 0?I:null);let $=e.selectedKeys;if($.size){for(let A of $)if(e.canSelectItem(A)){N=A;break}}e.setFocused(!0),e.setFocusedKey(N),N==null&&!f&&n.current&&vt(n.current),e.collection.size>0&&(K.current=!1,H.current=!0)}});let w=u.useRef(e.focusedKey),M=u.useRef(null);u.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==w.current||H.current)&&y.current&&n.current){let k=Xn(),z=Mn(n,e.focusedKey);if(!(z instanceof HTMLElement))return;(k==="keyboard"||H.current)&&(M.current&&cancelAnimationFrame(M.current),M.current=requestAnimationFrame(()=>{y.current&&(P2(y.current,z),k!=="virtual"&&Na(z,{containingElement:n.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&w.current!=null&&n.current&&vt(n.current),w.current=e.focusedKey,H.current=!1}),u.useEffect(()=>()=>{M.current&&cancelAnimationFrame(M.current)},[]),pn(n,"react-aria-focus-scope-restore",k=>{k.preventDefault(),e.setFocused(!0)});let Z={onKeyDown:C,onFocus:F,onBlur:D,onMouseDown(k){y.current===k.target&&k.preventDefault()}},{typeSelectProps:_}=zc({keyboardDelegate:r,selectionManager:e});d||(Z=ie(_,Z));let U;f||(U=e.focusedKey==null?0:-1);let P=x3(e.collection);return{collectionProps:ie(Z,{tabIndex:U,"data-collection":P})}}function ql(t){let{id:e,selectionManager:r,key:n,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:s,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,p=vi();e=Se(e);let g=R=>{if(R.pointerType==="keyboard"&&il(R))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(f==="selection"&&i.current){let I=r.getItemProps(n);p.open(i.current,R,I.href,I.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(f==="override"||f==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):R&&R.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||R&&(ir(R)||R.pointerType==="touch"||R.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};u.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(l?J2(i.current):a?a():document.activeElement!==i.current&&i.current&&vt(i.current))},[i,n,r.focusedKey,r.childFocusStrategy,r.isFocused,l]),s=s||r.isDisabled(n);let y={};!l&&!s?y={tabIndex:n===r.focusedKey?0:-1,onFocus(R){R.target===i.current&&r.setFocusedKey(n)}}:s&&(y.onMouseDown=R=>{R.preventDefault()});let h=r.isLink(n)&&f==="override",v=r.isLink(n)&&f!=="selection"&&f!=="none",m=!s&&r.canSelectItem(n)&&!h,C=(c||v)&&!s,E=C&&(r.selectionBehavior==="replace"?!m:!m||r.isEmpty),F=C&&m&&r.selectionBehavior==="replace",D=E||F,x=u.useRef(null),S=D&&m,O=u.useRef(!1),K=u.useRef(!1),H=r.getItemProps(n),w=R=>{c&&c(),v&&i.current&&p.open(i.current,R,H.href,H.routerOptions)},M={ref:i};if(o?(M.onPressStart=R=>{x.current=R.pointerType,O.current=S,R.pointerType==="keyboard"&&(!D||C0())&&g(R)},d?(M.onPressUp=E?void 0:R=>{R.pointerType==="mouse"&&m&&g(R)},M.onPress=E?w:R=>{R.pointerType!=="keyboard"&&R.pointerType!=="mouse"&&m&&g(R)}):M.onPress=R=>{if(E||F&&R.pointerType!=="mouse"){if(R.pointerType==="keyboard"&&!y0())return;w(R)}else R.pointerType!=="keyboard"&&m&&g(R)}):(M.onPressStart=R=>{x.current=R.pointerType,O.current=S,K.current=E,m&&(R.pointerType==="mouse"&&!E||R.pointerType==="keyboard"&&(!C||C0()))&&g(R)},M.onPress=R=>{(R.pointerType==="touch"||R.pointerType==="pen"||R.pointerType==="virtual"||R.pointerType==="keyboard"&&D&&y0()||R.pointerType==="mouse"&&K.current)&&(D?w(R):m&&g(R))}),y["data-collection"]=S3(r.collection),y["data-key"]=n,M.preventFocusOnPress=l,l&&(M=ie(M,{onPressStart(R){R.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(R){R.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),H)for(let R of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])H[R]&&(M[R]=pt(M[R],H[R]));let{pressProps:Z,isPressed:_}=Ei(M),U=F?R=>{x.current==="mouse"&&(R.stopPropagation(),R.preventDefault(),w(R))}:void 0,{longPressProps:P}=U2({isDisabled:!S,onLongPress(R){R.pointerType==="touch"&&(g(R),r.setSelectionBehavior("toggle"))}}),k=R=>{x.current==="touch"&&O.current&&R.preventDefault()},z=f!=="none"&&r.isLink(n)?R=>{Tt.isOpening||R.preventDefault()}:void 0;return{itemProps:ie(y,m||E||l&&!s?Z:{},S?P:{},{onDoubleClick:U,onDragStartCapture:k,onClick:z,id:e},l?{onMouseDown:R=>R.preventDefault()}:void 0),isPressed:_,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:m,hasAction:D}}function y0(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function C0(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class E0{getItemRect(e){let r=this.ref.current;if(!r)return null;let n=e!=null?Mn(this.ref,e):null;if(!n)return null;let i=r.getBoundingClientRect(),o=n.getBoundingClientRect();return{x:o.left-i.left+r.scrollLeft,y:o.top-i.top+r.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var r,n;return{width:(r=e==null?void 0:e.scrollWidth)!==null&&r!==void 0?r:0,height:(n=e==null?void 0:e.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let e=this.ref.current;var r,n,i,o;return{x:(r=e==null?void 0:e.scrollLeft)!==null&&r!==void 0?r:0,y:(n=e==null?void 0:e.scrollTop)!==null&&n!==void 0?n: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 Yl{isDisabled(e){var r;return this.disabledBehavior==="all"&&(((r=e.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,r){let n=e;for(;n!=null;){let i=this.collection.getItem(n);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return n;n=r(n)}return null}getNextKey(e){let r=e;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,n=>this.collection.getKeyAfter(n))}getPreviousKey(e){let r=e;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,n=>this.collection.getKeyBefore(n))}findKey(e,r,n){let i=e,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let l=o;do{if(i=r(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&n(l,o)&&i!=null);return i}isSameRow(e,r){return e.y===r.y||e.x!==r.x}isSameColumn(e,r){return e.x===r.x||e.y!==r.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,r){return r?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(e=this.layoutDelegate[r](e),this.findNextNonDisabled(e,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(e=this.layoutDelegate[r](e),this.findNextNonDisabled(e,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,n=>this.getNextColumn(n,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,r=>this.collection.getKeyAfter(r))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(e){let r=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(r&&!Gr(r))return this.getFirstKey();let i=e;if(this.orientation==="horizontal"){let o=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>o&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>o&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(e){let r=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(r&&!Gr(r))return this.getLastKey();let i=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<o&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<o&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(e,r){if(!this.collator)return null;let n=this.collection,i=r||this.getFirstKey();for(;i!=null;){let o=n.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 r=e[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new E0(r.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 E0(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Wc(t){let{selectionManager:e,collection:r,disabledKeys:n,ref:i,keyboardDelegate:o,layoutDelegate:l}=t,a=zl({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,c=u.useMemo(()=>o||new Yl({collection:r,disabledKeys:n,disabledBehavior:s,ref:i,collator:a,layoutDelegate:l}),[o,l,r,n,i,a,s]),{collectionProps:d}=Uc({...t,ref:i,selectionManager:e,keyboardDelegate:c});return{listProps:d}}function P3(t,e,r){let n=he(t,{labelable:!0}),i=t.selectionBehavior||"toggle",o=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:l}=Wc({...t,ref:r,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:o}),{focusWithinProps:a}=Di({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=Se(t.id);Gl.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}=nc({...t,id:s,labelElementType:"span"});return{labelProps:c,listBoxProps:ie(n,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...ie(d,l)})}}class A3{build(e,r){return this.context=r,w0(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:r,items:n}=e;if(u.isValidElement(r)&&r.type===u.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of n)yield*this.getFullNode({value:o,index:i},{renderer:r}),i++}else{let i=[];u.Children.forEach(r,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,r,n,i){if(e.key!=null)return e.key;if(r.type==="cell"&&r.key!=null)return`${i}${r.key}`;let o=r.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}.${r.index}`:`$.${r.index}`}getChildState(e,r){return{renderer:r.renderer||e.renderer}}*getFullNode(e,r,n,i){if(u.isValidElement(e.element)&&e.element.type===u.Fragment){let v=[];u.Children.forEach(e.element.props.children,C=>{v.push(C)});var o;let m=(o=e.index)!==null&&o!==void 0?o:0;for(const C of v)yield*this.getFullNode({element:C,index:m++},r,n,i);return}let l=e.element;if(!l&&e.value&&r&&r.renderer){let v=this.cache.get(e.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=e.index,v.parentKey=i?i.key:null,yield v;return}l=r.renderer(e.value)}if(u.isValidElement(l)){let v=l.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let F=l.type;throw new Error(`Unknown element <${F}> in collection.`)}let m=v.getCollectionNode(l.props,this.context);var a;let C=(a=e.index)!==null&&a!==void 0?a:0,E=m.next();for(;!E.done&&E.value;){let F=E.value;e.index=C;var s;let D=(s=F.key)!==null&&s!==void 0?s:null;D==null&&(D=F.element?null:this.getKey(l,e,r,n));let S=[...this.getFullNode({...F,key:D,index:C,wrapper:T3(e.wrapper,F.wrapper)},this.getChildState(r,F),n?`${n}${l.key}`:l.key,i)];for(let O of S){var c,d;O.value=(d=(c=F.value)!==null&&c!==void 0?c:e.value)!==null&&d!==void 0?d:null,O.value&&this.cache.set(O.value,O);var f;if(e.type&&O.type!==e.type)throw new Error(`Unsupported type <${ao(O.type)}> in <${ao((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${ao(e.type)}> is supported.`);C++,yield O}E=m.next(S)}return}if(e.key==null||e.type==null)return;let p=this;var g,y;let h={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(g=e.value)!==null&&g!==void 0?g: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:w0(function*(){if(!e.hasChildNodes||!e.childNodes)return;let v=0;for(let m of e.childNodes()){m.key!=null&&(m.key=`${h.key}${m.key}`);let C=p.getFullNode({...m,index:v},p.getChildState(r,m),h.key,h);for(let E of C)v++,yield E}})};yield h}constructor(){this.cache=new WeakMap}}function w0(t){let e=[],r=null;return{*[Symbol.iterator](){for(let n of e)yield n;r||(r=t());for(let n of r)e.push(n),yield n}}}function T3(t,e){if(t&&e)return r=>t(e(r));if(t)return t;if(e)return e}function ao(t){return t[0].toUpperCase()+t.slice(1)}function Zc(t,e,r){let n=u.useMemo(()=>new A3,[]),{children:i,items:o,collection:l}=t;return u.useMemo(()=>{if(l)return l;let s=n.build({children:i,items:o},r);return e(s)},[n,i,o,l,r,e])}function Gc(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function _3(t){return k3(t)}function k3(t,e){for(let r of t)return r}function so(t,e,r){if(e.parentKey===r.parentKey)return e.index-r.index;let n=[...D0(t,e),e],i=[...D0(t,r),r],o=n.slice(0,i.length).findIndex((l,a)=>l!==i[a]);return o!==-1?(e=n[o],r=i[o],e.index-r.index):n.findIndex(l=>l===r)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function D0(t,e){let r=[],n=e;for(;(n==null?void 0:n.parentKey)!=null;)n=t.getItem(n.parentKey),n&&r.unshift(n);return r}const x0=new WeakMap;function qc(t){let e=x0.get(t);if(e!=null)return e;let r=0,n=i=>{for(let o of i)o.type==="section"?n(Gc(o,t)):o.type==="item"&&r++};return n(t),x0.set(t,r),r}function I3(t,e,r){var n,i;let{key:o}=t,l=Gl.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 p=(f=t.shouldSelectOnPressUp)!==null&&f!==void 0?f:l==null?void 0:l.shouldSelectOnPressUp;var g;let y=(g=t.shouldFocusOnHover)!==null&&g!==void 0?g:l==null?void 0:l.shouldFocusOnHover;var h;let v=(h=t.shouldUseVirtualFocus)!==null&&h!==void 0?h:l==null?void 0:l.shouldUseVirtualFocus;var m;let C=(m=t.isVirtualized)!==null&&m!==void 0?m:l==null?void 0:l.isVirtualized,E=ft(),F=ft(),D={role:"option","aria-disabled":s||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};gt()&&Al()||(D["aria-label"]=t["aria-label"],D["aria-labelledby"]=E,D["aria-describedby"]=F);let x=e.collection.getItem(o);if(C){let k=Number(x==null?void 0:x.index);D["aria-posinset"]=Number.isNaN(k)?void 0:k+1,D["aria-setsize"]=qc(e.collection)}let S=l!=null&&l.onAction?()=>{var k;return l==null||(k=l.onAction)===null||k===void 0?void 0:k.call(l,o)}:void 0,O=D3(e,o),{itemProps:K,isPressed:H,isFocused:w,hasAction:M,allowsSelection:Z}=ql({selectionManager:e.selectionManager,key:o,ref:r,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&y,isVirtualized:C,shouldUseVirtualFocus:v,isDisabled:s,onAction:S||!(x==null||(n=x.props)===null||n===void 0)&&n.onAction?pt(x==null||(i=x.props)===null||i===void 0?void 0:i.onAction,S):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:O}),{hoverProps:_}=Dr({isDisabled:s||!y,onHoverStart(){mr()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(o))}}),U=he(x==null?void 0:x.props);delete U.id;let P=_l(x==null?void 0:x.props);return{optionProps:{...D,...ie(U,K,_,P),id:O},labelProps:{id:E},descriptionProps:{id:F},isFocused:w,isFocusVisible:w&&e.selectionManager.isFocused&&mr(),isSelected:d,isDisabled:s,isPressed:H,allowsSelection:Z,hasAction:M}}function O3(t){let{heading:e,"aria-label":r}=t,n=Se();return{itemProps:{role:"presentation"},headingProps:e?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":e?n:void 0}}}var Yc={};Yc={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Xc={};Xc={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Jc={};Jc={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Qc={};Qc={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var eu={};eu={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var tu={};tu={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var ru={};ru={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var nu={};nu={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var iu={};iu={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var ou={};ou={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var lu={};lu={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var au={};au={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var su={};su={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var cu={};cu={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var uu={};uu={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var du={};du={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var fu={};fu={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var hu={};hu={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var pu={};pu={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var gu={};gu={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var vu={};vu={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var bu={};bu={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var mu={};mu={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var yu={};yu={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Cu={};Cu={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Eu={};Eu={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var wu={};wu={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Du={};Du={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var xu={};xu={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Su={};Su={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Fu={};Fu={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var $u={};$u={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Pu={};Pu={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Au={};Au={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Tu={};Tu={"ar-AE":Yc,"bg-BG":Xc,"cs-CZ":Jc,"da-DK":Qc,"de-DE":eu,"el-GR":tu,"en-US":ru,"es-ES":nu,"et-EE":iu,"fi-FI":ou,"fr-FR":lu,"he-IL":au,"hr-HR":su,"hu-HU":cu,"it-IT":uu,"ja-JP":du,"ko-KR":fu,"lt-LT":hu,"lv-LV":pu,"nb-NO":gu,"nl-NL":vu,"pl-PL":bu,"pt-BR":mu,"pt-PT":yu,"ro-RO":Cu,"ru-RU":Eu,"sk-SK":wu,"sl-SI":Du,"sr-SP":xu,"sv-SE":Su,"tr-TR":Fu,"uk-UA":$u,"zh-CN":Pu,"zh-TW":Au};function M3(t){return t&&t.__esModule?t.default:t}function N3(t,e,r){let{type:n="menu",isDisabled:i,trigger:o="press"}=t,l=Se(),{triggerProps:a,overlayProps:s}=s3({type:n},e,r),c=g=>{if(!i&&!(o==="longPress"&&!g.altKey)&&r&&r.current)switch(g.key){case"Enter":case" ":if(o==="longPress"||g.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),e.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},d=q2(M3(Tu),"@react-aria/menu"),{longPressProps:f}=U2({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),p={preventFocusOnPress:!0,onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&(Ve(g.target),e.open(g.pointerType==="virtual"?"first":null))},onPress(g){g.pointerType==="touch"&&!i&&(Ve(g.target),e.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...o==="press"?p:f,id:l,onKeyDown:c},menuProps:{...s,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const _u=new WeakMap;function B3(t,e,r){let{shouldFocusWrap:n=!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=he(t,{labelable:!0}),{listProps:s}=Wc({...l,ref:r,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return _u.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:ie(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 R3(t,e,r){let{id:n,key:i,closeOnSelect:o,isVirtualized:l,"aria-haspopup":a,onPressStart:s,onPressUp:c,onPress:d,onPressChange:f,onPressEnd:p,onClick:g,onHoverStart:y,onHoverChange:h,onHoverEnd:v,onKeyDown:m,onKeyUp:C,onFocus:E,onFocusChange:F,onBlur:D,selectionManager:x=e.selectionManager}=t,S=!!a,O=S&&t["aria-expanded"]==="true";var K;let H=(K=t.isDisabled)!==null&&K!==void 0?K:x.isDisabled(i);var w;let M=(w=t.isSelected)!==null&&w!==void 0?w:x.isSelected(i),Z=_u.get(e),_=e.collection.getItem(i),U=t.onClose||Z.onClose,P=vi(),k=()=>{var re;if(!S&&(!(_==null||(re=_.props)===null||re===void 0)&&re.onAction?_.props.onAction():t.onAction&&t.onAction(i),Z.onAction)){let pe=Z.onAction;pe(i)}},z="menuitem";S||(x.selectionMode==="single"?z="menuitemradio":x.selectionMode==="multiple"&&(z="menuitemcheckbox"));let R=ft(),I=ft(),N=ft(),$={id:n,"aria-disabled":H||void 0,role:z,"aria-label":t["aria-label"],"aria-labelledby":R,"aria-describedby":[I,N].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":a,"aria-expanded":t["aria-expanded"]};x.selectionMode!=="none"&&!S&&($["aria-checked"]=M),l&&($["aria-posinset"]=_==null?void 0:_.index,$["aria-setsize"]=qc(e.collection));let A=u.useRef(!1),B=re=>{f==null||f(re),A.current=re},L=u.useRef(null),j=re=>{re.pointerType!=="keyboard"&&(L.current={pointerType:re.pointerType}),re.pointerType==="mouse"&&(A.current||re.target.click()),c==null||c(re)},V=re=>{var pe,Ut;g==null||g(re),k(),h5(re,P,_.props.href,_==null?void 0:_.props.routerOptions);let Sr=((pe=L.current)===null||pe===void 0?void 0:pe.pointerType)==="keyboard"?((Ut=L.current)===null||Ut===void 0?void 0:Ut.key)==="Enter"||x.selectionMode==="none"||x.isLink(i):x.selectionMode!=="multiple"||x.isLink(i);Sr=o??Sr,U&&!S&&Sr&&U(),L.current=null},{itemProps:W,isFocused:q}=ql({id:n,selectionManager:x,key:i,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:Z.shouldUseVirtualFocus}),{pressProps:Y,isPressed:ae}=Ei({onPressStart:s,onPress:d,onPressUp:j,onPressChange:B,onPressEnd:p,isDisabled:H}),{hoverProps:G}=Dr({isDisabled:H,onHoverStart(re){!mr()&&!(O&&a)&&(x.setFocused(!0),x.setFocusedKey(i)),y==null||y(re)},onHoverChange:h,onHoverEnd:v}),{keyboardProps:te}=V2({onKeyDown:re=>{if(re.repeat){re.continuePropagation();return}switch(re.key){case" ":L.current={pointerType:"keyboard",key:" "},re.target.click();break;case"Enter":L.current={pointerType:"keyboard",key:"Enter"},re.target.tagName!=="A"&&re.target.click();break;default:S||re.continuePropagation(),m==null||m(re);break}},onKeyUp:C}),{focusProps:de}=jl({onBlur:D,onFocus:E,onFocusChange:F}),Re=he(_==null?void 0:_.props);delete Re.id;let zt=_l(_==null?void 0:_.props);return{menuItemProps:{...$,...ie(Re,zt,S?{onFocus:W.onFocus,"data-collection":W["data-collection"],"data-key":W["data-key"]}:W,Y,G,te,de,Z.shouldUseVirtualFocus||S?{onMouseDown:re=>re.preventDefault()}:void 0,H?void 0:{onClick:V}),tabIndex:W.tabIndex!=null&&O&&!Z.shouldUseVirtualFocus?-1:W.tabIndex},labelProps:{id:R},descriptionProps:{id:I},keyboardShortcutProps:{id:N},isFocused:q,isFocusVisible:q&&x.isFocused&&mr()&&!O,isSelected:M,isPressed:ae,isDisabled:H}}function L3(t){let{heading:e,"aria-label":r}=t,n=Se();return{itemProps:{role:"presentation"},headingProps:e?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":e?n:void 0}}}function K3(t,e){let{role:r="dialog"}=t,n=ft();n=t["aria-label"]?void 0:n;let i=u.useRef(!1);return u.useEffect(()=>{if(e.current&&!e.current.contains(document.activeElement)){vt(e.current);let o=setTimeout(()=>{(document.activeElement===e.current||document.activeElement===document.body)&&(i.current=!0,e.current&&(e.current.blur(),vt(e.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[e]),E3(),{dialogProps:{...he(t,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||n,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:n}}}const Xl=new WeakMap;function j3(t,e,r){let{keyboardDelegate:n,isDisabled:i,isRequired:o,name:l,form:a,validationBehavior:s="aria"}=t,c=zl({usage:"search",sensitivity:"base"}),d=u.useMemo(()=>n||new Yl(e.collection,e.disabledKeys,r,c),[n,e.collection,e.disabledKeys,c,r]),{menuTriggerProps:f,menuProps:p}=N3({isDisabled:i,type:"listbox"},e,r),g=K=>{switch(K.key){case"ArrowLeft":{var H,w;K.preventDefault();let _=e.selectedKey!=null?(H=d.getKeyAbove)===null||H===void 0?void 0:H.call(d,e.selectedKey):(w=d.getFirstKey)===null||w===void 0?void 0:w.call(d);_&&e.setSelectedKey(_);break}case"ArrowRight":{var M,Z;K.preventDefault();let _=e.selectedKey!=null?(M=d.getKeyBelow)===null||M===void 0?void 0:M.call(d,e.selectedKey):(Z=d.getFirstKey)===null||Z===void 0?void 0:Z.call(d);_&&e.setSelectedKey(_);break}}},{typeSelectProps:y}=zc({keyboardDelegate:d,selectionManager:e.selectionManager,onTypeSelect(K){e.setSelectedKey(K)}}),{isInvalid:h,validationErrors:v,validationDetails:m}=e.displayValidation,{labelProps:C,fieldProps:E,descriptionProps:F,errorMessageProps:D}=G4({...t,labelElementType:"span",isInvalid:h,errorMessage:t.errorMessage||v});y.onKeyDown=y.onKeyDownCapture,delete y.onKeyDownCapture;let x=he(t,{labelable:!0}),S=ie(y,f,E),O=Se();return Xl.set(e,{isDisabled:i,isRequired:o,name:l,form:a,validationBehavior:s}),{labelProps:{...C,onClick:()=>{if(!t.isDisabled){var K;(K=r.current)===null||K===void 0||K.focus(),H2("keyboard")}}},triggerProps:ie(x,{...S,isDisabled:i,onKeyDown:pt(S.onKeyDown,g,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[O,S["aria-labelledby"],S["aria-label"]&&!S["aria-labelledby"]?S.id:null].filter(Boolean).join(" "),onFocus(K){e.isFocused||(t.onFocus&&t.onFocus(K),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(K){e.isOpen||(t.onBlur&&t.onBlur(K),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:O},menuProps:{...p,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:K=>{K.currentTarget.contains(K.relatedTarget)||(t.onBlur&&t.onBlur(K),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[E["aria-labelledby"],S["aria-label"]&&!E["aria-labelledby"]?S.id:null].filter(Boolean).join(" ")},descriptionProps:F,errorMessageProps:D,isInvalid:h,validationErrors:v,validationDetails:m,hiddenSelectProps:{isDisabled:i,name:l,label:t.label,state:e,triggerRef:r,form:a}}}function H3(t,e,r){let n=Xl.get(e)||{},{autoComplete:i,name:o=n.name,form:l=n.form,isDisabled:a=n.isDisabled}=t,{validationBehavior:s,isRequired:c}=n,{visuallyHiddenProps:d}=ic({style:{position:"fixed",top:0,left:0}});C5(t.selectRef,e.defaultSelectedKey,e.setSelectedKey),z4({validationBehavior:s,focus:()=>{var g;return(g=r.current)===null||g===void 0?void 0:g.focus()}},e,t.selectRef);let f=u.useCallback(g=>e.setSelectedKey(g.currentTarget.value),[e.setSelectedKey]);var p;return{containerProps:{...d,"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:a,required:s==="native"&&c,name:o,form:l,value:(p=e.selectedKey)!==null&&p!==void 0?p:"",onChange:f,onInput:f}}}function V3(t){let{state:e,triggerRef:r,label:n,name:i,form:o,isDisabled:l}=t,a=u.useRef(null),s=u.useRef(null),{containerProps:c,selectProps:d}=H3({...t,selectRef:e.collection.size<=300?a:s},e,r);if(e.collection.size<=300)return u.createElement("div",{...c,"data-testid":"hidden-select-container"},u.createElement("label",null,n,u.createElement("select",{...d,ref:a},u.createElement("option",null),[...e.collection.getKeys()].map(p=>{let g=e.collection.getItem(p);if(g&&g.type==="item")return u.createElement("option",{key:g.key,value:g.key},g.textValue)}))));if(i){let p=Xl.get(e)||{},{validationBehavior:g}=p;var f;let y={type:"hidden",autoComplete:d.autoComplete,name:i,form:o,disabled:l,value:(f=e.selectedKey)!==null&&f!==void 0?f:""};return g==="native"?u.createElement("input",{...y,ref:s,style:{display:"none"},type:"text",required:d.required,onChange:()=>{}}):u.createElement("input",{...y,ref:s})}return null}function z3(t){let e=he(t,{labelable:!0}),r;return t.orientation==="vertical"&&(r="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":r}}:{separatorProps:e}}const ku=new WeakMap;function ti(t,e,r){if(!t)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let n=ku.get(t);return process.env.NODE_ENV!=="production"&&!n&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${n}-${r}-${e}`}function U3(t,e,r){let{key:n,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:a}=e,s=n===a,c=i||e.isDisabled||e.selectionManager.isDisabled(n),{itemProps:d,isPressed:f}=ql({selectionManager:l,key:n,ref:r,isDisabled:c,shouldSelectOnPressUp:o,linkBehavior:"selection"}),p=ti(e,n,"tab"),g=ti(e,n,"tabpanel"),{tabIndex:y}=d,h=e.collection.getItem(n),v=he(h==null?void 0:h.props,{labelable:!0});delete v.id;let m=_l(h==null?void 0:h.props),{focusableProps:C}=z2({isDisabled:c},r);return{tabProps:ie(v,C,m,d,{id:p,"aria-selected":s,"aria-disabled":c||void 0,"aria-controls":s?g:void 0,tabIndex:c?void 0:y,role:"tab"}),isSelected:s,isDisabled:c,isPressed:f}}function W3(t,e,r){let n=N4(r)?void 0:0;var i;const o=ti(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=mi({...t,id:o,"aria-labelledby":ti(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:ie(l,{tabIndex:n,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class Z3{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 r,n;return this.disabledKeys.has(e)||!!(!((n=this.collection.getItem(e))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.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 r=e;do r=this.collection.getKeyAfter(r),r==null&&(r=this.collection.getFirstKey());while(r!=null&&this.isDisabled(r));return r}getPreviousKey(e){let r=e;do r=this.collection.getKeyBefore(r),r==null&&(r=this.collection.getLastKey());while(r!=null&&this.isDisabled(r));return r}constructor(e,r,n,i=new Set){this.collection=e,this.flipDirection=r==="rtl"&&n==="horizontal",this.disabledKeys=i,this.tabDirection=n==="horizontal"}}function G3(t,e,r){let{orientation:n="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:a}=e,{direction:s}=Kt(),c=u.useMemo(()=>new Z3(o,s,n,a),[o,a,n,s]),{collectionProps:d}=Uc({ref:r,selectionManager:l,keyboardDelegate:c,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),f=Se();ku.set(e,f);let p=mi({...t,id:f});return{tabListProps:{...ie(d,p),role:"tablist","aria-orientation":n,tabIndex:void 0}}}const Iu=u.createContext({}),q3=Bl(function(e,r){[e,r]=Xe(e,r,Iu);let{elementType:n="label",...i}=e;return u.createElement(n,{className:"react-aria-Label",...i,ref:r})}),Y3=u.createContext(null),X3=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Jl=u.createContext({}),J3=Bl(function(e,r){[e,r]=Xe(e,r,Jl),e=Q3(e);let n=e,{isPending:i}=n,{buttonProps:o,isPressed:l}=P4(e,r),{focusProps:a,isFocused:s,isFocusVisible:c}=xr(e),{hoverProps:d,isHovered:f}=Dr({...e,isDisabled:e.isDisabled||i}),p={isHovered:f,isPressed:(n.isPressed||l)&&!i,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:i??!1},g=Fe({...e,values:p,defaultClassName:"react-aria-Button"}),y=Se(o.id),h=Se(),v=o["aria-labelledby"];i&&(v?v=`${v} ${h}`:o["aria-label"]&&(v=`${y} ${h}`));let m=u.useRef(i);return u.useEffect(()=>{let C={"aria-labelledby":v||y};(!m.current&&s&&i||m.current&&s&&!i)&&l0(C,"assertive"),m.current=i},[i,s,v,y]),u.createElement("button",{...he(e,{propNames:X3}),...ie(o,a,d),...g,type:o.type==="submit"&&i?"button":o.type,id:y,ref:r,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":p.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(Y3.Provider,{value:{id:h}},g.children))});function Q3(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 Ql=u.createContext({}),e7=u.createContext(null);class S0{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let r=this.keyMap.get(e);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(e){let r=this.keyMap.get(e);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var r;return(r=this.keyMap.get(e))!==null&&r!==void 0?r:null}at(e){const r=[...this.getKeys()];return this.getItem(r[e])}getChildren(e){let r=this.keyMap.get(e);return(r==null?void 0:r.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let s of a.childNodes)r(s)};for(let a of e)r(a);let n=null,i=0,o=0;for(let[a,s]of this.keyMap)n?(n.nextKey=a,s.prevKey=n.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=i++),(s.type==="section"||s.type==="item")&&o++,n=s,n.nextKey=void 0;this._size=o;var l;this.lastKey=(l=n==null?void 0:n.key)!==null&&l!==void 0?l:null}}class je extends Set{constructor(e,r,n){super(e),e instanceof je?(this.anchorKey=r??e.anchorKey,this.currentKey=n??e.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function t7(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}function ea(t){let{selectionMode:e="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,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(()=>F0(t.selectedKeys),[t.selectedKeys]),p=u.useMemo(()=>F0(t.defaultSelectedKeys,new je),[t.defaultSelectedKeys]),[g,y]=yi(f,p,t.onSelectionChange),h=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[v,m]=u.useState(i);i==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let C=u.useRef(i);return u.useEffect(()=>{i!==C.current&&(m(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(E){l.current=E,a(E)},get focusedKey(){return s.current},get childFocusStrategy(){return c.current},setFocusedKey(E,F="first"){s.current=E,c.current=F,d(E)},selectedKeys:g,setSelectedKeys(E){(n||!t7(E,g))&&y(E)},disabledKeys:h,disabledBehavior:o}}function F0(t,e){return t?t==="all"?"all":new je(t):e}class cn{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,r){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,r)}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 r=this.getKey(e);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=e.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let i=this.collection.getItem(n);(!e||i&&so(this.collection,i,e)<0)&&(e=i)}var r;return(r=e==null?void 0:e.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let i=this.collection.getItem(n);(!e||i&&so(this.collection,i,e)>0)&&(e=i)}var r;return(r=e==null?void 0:e.key)!==null&&r!==void 0?r: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 r=this.getKey(e);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new je([r],r,r);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:r;n=new je(l,a,r);var o;for(let s of this.getKeyRange(a,(o=l.currentKey)!==null&&o!==void 0?o:r))n.delete(s);for(let s of this.getKeyRange(r,a))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(e,r){let n=this.collection.getItem(e),i=this.collection.getItem(r);return n&&i?so(this.collection,n,i)<=0?this.getKeyRangeInternal(e,r):this.getKeyRangeInternal(r,e):[]}getKeyRangeInternal(e,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(e,r);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===r)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let r=this.collection.getItem(e);if(!r||r.type==="cell"&&this.allowsCellSelection)return e;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let r=this.getKey(e);if(r==null)return;let n=new je(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode==="none")return;let r=this.getKey(e);if(r==null)return;let n=this.canSelectItem(r)?new je([r],r,r):new je;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode==="none")return;let r=new je;for(let n of e){let i=this.getKey(n);if(i!=null&&(r.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let e=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var i;let l=this.collection.getItem(n);(l==null?void 0:l.type)==="item"&&e.push(n);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&r((o=(i=_3(Gc(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}n=this.collection.getKeyAfter(n)}};return r(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,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(e.size!==r.size)return!1;for(let n of e)if(!r.has(n))return!1;for(let n of r)if(!e.has(n))return!1;return!0}canSelectItem(e){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((n=this.collection.getItem(e))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(e){var r,n;return!!(!((n=this.collection.getItem(e))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(e){var r;return(r=this.collection.getItem(e))===null||r===void 0?void 0:r.props}withCollection(e){return new cn(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,r,n){this.collection=e,this.state=r;var i;this.allowsCellSelection=(i=n==null?void 0:n.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null}}function Ou(t){let{filter:e,layoutDelegate:r}=t,n=ea(t),i=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=u.useCallback(c=>e?new S0(e(c)):new S0(c),[e]),l=u.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=Zc(t,o,l),s=u.useMemo(()=>new cn(a,n,{layoutDelegate:r}),[a,n,r]);return Mu(a,s),{collection:a,disabledKeys:i,selectionManager:s}}function r7(t,e){let r=u.useMemo(()=>e?t.collection.filter(e):t.collection,[t.collection,e]),n=t.selectionManager.withCollection(r);return Mu(r,n),{collection:r,selectionManager:n,disabledKeys:t.disabledKeys}}function Mu(t,e){const r=u.useRef(null);u.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&r.current){const d=r.current.getItem(e.focusedKey),f=[...r.current.getKeys()].map(m=>{const C=r.current.getItem(m);return(C==null?void 0:C.type)==="item"?C:null}).filter(m=>m!==null),p=[...t.getKeys()].map(m=>{const C=t.getItem(m);return(C==null?void 0:C.type)==="item"?C:null}).filter(m=>m!==null);var n,i;const g=((n=f==null?void 0:f.length)!==null&&n!==void 0?n:0)-((i=p==null?void 0:p.length)!==null&&i!==void 0?i:0);var o,l,a;let y=Math.min(g>1?Math.max(((o=d==null?void 0:d.index)!==null&&o!==void 0?o:0)-g+1,0):(l=d==null?void 0:d.index)!==null&&l!==void 0?l:0,((a=p==null?void 0:p.length)!==null&&a!==void 0?a:0)-1),h=null,v=!1;for(;y>=0;){if(!e.isDisabled(p[y].key)){h=p[y];break}if(y<p.length-1&&!v)y++;else{v=!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(h?h.key:null)}r.current=t},[t,e])}function Nu(t){var e;let[r,n]=yi(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=u.useMemo(()=>r!=null?[r]:[],[r]),{collection:o,disabledKeys:l,selectionManager:a}=Ou({...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===r&&t.onSelectionChange&&t.onSelectionChange(f),n(f)}}),s=r!=null?o.getItem(r):null;return{collection:o,disabledKeys:l,selectionManager:a,selectedKey:r,setSelectedKey:n,selectedItem:s}}function ta(t){let[e,r]=yi(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const n=u.useCallback(()=>{r(!0)},[r]),i=u.useCallback(()=>{r(!1)},[r]),o=u.useCallback(()=>{r(!e)},[r,e]);return{isOpen:e,setOpen:r,open:n,close:i,toggle:o}}function n7(t){let{initialItems:e=[],initialSelectedKeys:r,getKey:n=h=>{var v;return(v=h.id)!==null&&v!==void 0?v:h.key},getChildren:i=h=>h.children}=t,[o,l]=u.useState(()=>f(e,new Map)),{items:a,nodeMap:s}=o,[c,d]=u.useState(new Set(r||[]));function f(h=[],v,m){return h==null&&(h=[]),{items:h.map(C=>{let E={key:n(C),parentKey:m??null,value:C,children:null};return E.children=f(i(C),v,E.key).items,v.set(E.key,E),E}),nodeMap:v}}function p(h,v,m,C){let E=v==null?null:C.get(v);if(E==null)return{items:h,nodeMap:C};let F=new Map(C),D=m(E);for(D==null?y(E,F):g(D,F);E&&E.parentKey;){let S=F.get(E.parentKey),O={key:S.key,parentKey:S.parentKey,value:S.value,children:null},K=S.children;D==null&&K&&(K=K.filter(H=>H!==E));var x;O.children=(x=K==null?void 0:K.map(H=>H===E?D:H))!==null&&x!==void 0?x:null,F.set(O.key,O),D=O,E=S}return D==null&&(h=h.filter(S=>S!==E)),{items:h.map(S=>S===E?D:S),nodeMap:F}}function g(h,v){if(v.set(h.key,h),h.children)for(let m of h.children)g(m,v)}function y(h,v){if(v.delete(h.key),h.children)for(let m of h.children)y(m,v)}return{items:a,selectedKeys:c,setSelectedKeys:d,getItem(h){return s.get(h)},insert(h,v,...m){l(({items:C,nodeMap:E})=>{let{items:F,nodeMap:D}=f(m,E,h);return h==null?{items:[...C.slice(0,v),...F,...C.slice(v)],nodeMap:D}:p(C,h,x=>({key:x.key,parentKey:x.parentKey,value:x.value,children:[...x.children.slice(0,v),...F,...x.children.slice(v)]}),D)})},insertBefore(h,...v){let m=s.get(h);if(!m)return;let C=s.get(m.parentKey),F=(C?C.children:a).indexOf(m);var D;this.insert((D=C==null?void 0:C.key)!==null&&D!==void 0?D:null,F,...v)},insertAfter(h,...v){let m=s.get(h);if(!m)return;let C=s.get(m.parentKey),F=(C?C.children:a).indexOf(m);var D;this.insert((D=C==null?void 0:C.key)!==null&&D!==void 0?D:null,F+1,...v)},prepend(h,...v){this.insert(h,0,...v)},append(h,...v){if(h==null)this.insert(null,a.length,...v);else{let m=s.get(h);if(!m)return;this.insert(h,m.children.length,...v)}},remove(...h){if(h.length===0)return;let v=a,m=s,C;for(let F of h)C=p(v,F,()=>null,m),m=C.nodeMap,v=C.items;l(C);let E=new Set(c);for(let F of c)C.nodeMap.has(F)||E.delete(F);d(E)},removeSelectedItems(){this.remove(...c)},move(h,v,m){l(({items:C,nodeMap:E})=>{let F=E.get(h);if(!F)return{items:C,nodeMap:E};let{items:D,nodeMap:x}=p(C,h,()=>null,E);const S={...F,parentKey:v};return v==null?(g(S,x),{items:[...D.slice(0,m),S,...D.slice(m)],nodeMap:x}):p(D,v,O=>({key:O.key,parentKey:O.parentKey,value:O.value,children:[...O.children.slice(0,m),S,...O.children.slice(m)]}),x)})},moveBefore(h,v){l(m=>{let{items:C,nodeMap:E}=m,F=E.get(h);if(!F)return m;var D;let x=(D=F.parentKey)!==null&&D!==void 0?D:null,S=null;var O;x!=null&&(S=(O=E.get(x))!==null&&O!==void 0?O:null);let K=S!=null&&S.children?S.children.indexOf(F):C.indexOf(F);return $0(m,v,S,K,p,g)})},moveAfter(h,v){l(m=>{let{items:C,nodeMap:E}=m,F=E.get(h);if(!F)return m;var D;let x=(D=F.parentKey)!==null&&D!==void 0?D:null,S=null;var O;x!=null&&(S=(O=E.get(x))!==null&&O!==void 0?O:null);let K=S!=null&&S.children?S.children.indexOf(F):C.indexOf(F);return K++,$0(m,v,S,K,p,g)})},update(h,v){l(({items:m,nodeMap:C})=>p(m,h,E=>{let F={key:E.key,parentKey:E.parentKey,value:v,children:null},D=f(i(v),C,F.key);return F.children=D.items,F},C))}}}function $0(t,e,r,n,i,o){let{items:l,nodeMap:a}=t,s=r,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=n,p=Array.isArray(e)?e:[...e],g=new Map,y=[],h=l,v=a,m=0;function C(x,{inorder:S,postorder:O}){S==null||S(x);var K;if(x!=null)for(let H of(K=x.children)!==null&&K!==void 0?K:[])C(H,{inorder:S,postorder:O}),O==null||O(H)}function E(x){p.includes(x.key)&&g.set(x.key,m++)}function F(x){if(p.includes(x.key)){var S;y.push({...v.get(x.key),parentKey:(S=r==null?void 0:r.key)!==null&&S!==void 0?S:null});let{items:O,nodeMap:K}=i(h,x.key,()=>null,v);h=O,v=K}(x.parentKey===r||x.parentKey===(r==null?void 0:r.key))&&p.includes(x.key)&&(r!=null&&r.children?r.children.indexOf(x):l.indexOf(x))<f&&n--}C({children:l},{inorder:E,postorder:F});let D=y.sort((x,S)=>g.get(x.key)>g.get(S.key)?1:-1);return!r||r.key==null?(D.forEach(x=>{o(x,v)}),{items:[...h.slice(0,n),...D,...h.slice(n)],nodeMap:v}):i(h,r.key,x=>({key:x.key,parentKey:x.parentKey,value:x.value,children:[...x.children.slice(0,n),...D,...x.children.slice(n)]}),v)}function i7(t){let e=ta(t),[r,n]=u.useState(null),[i,o]=u.useState([]),l=()=>{o([]),e.close()};return{focusStrategy:r,...e,open(c=null){n(c),e.open()},toggle(c=null){n(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 o7(t){let e=ta(t),[r,n]=u.useState(null),i=Nu({...t,onSelectionChange:d=>{t.onSelectionChange!=null&&t.onSelectionChange(d),e.close(),o.commitValidation()}}),o=j4({...t,value:i.selectedKey}),[l,a]=u.useState(!1),[s]=u.useState(i.selectedKey);var c;return{...o,...i,...e,defaultSelectedKey:(c=t.defaultSelectedKey)!==null&&c!==void 0?c:s,focusStrategy:r,open(d=null){i.collection.size!==0&&(n(d),e.open())},toggle(d=null){i.collection.size!==0&&(n(d),e.toggle())},isFocused:l,setFocused:a}}function l7(t){var e,r;let n=Nu({...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:(r=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:P0(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&r!==void 0?r:void 0}),{selectionManager:i,collection:o,selectedKey:l}=n,a=u.useRef(l);return u.useEffect(()=>{let s=l;t.selectedKey==null&&(i.isEmpty||s==null||!o.getItem(s))&&(s=P0(o,n.disabledKeys),s!=null&&i.setSelectedKeys([s])),(s!=null&&i.focusedKey==null||!i.isFocused&&s!==a.current)&&i.setFocusedKey(s),a.current=s}),{...n,isDisabled:t.isDisabled||!1}}function P0(t,e){let r=null;if(t){var n,i,o,l;for(r=t.getFirstKey();r!=null&&(e.has(r)||!((i=t.getItem(r))===null||i===void 0||(n=i.props)===null||n===void 0)&&n.isDisabled)&&r!==t.getLastKey();)r=t.getKeyAfter(r);r!=null&&(e.has(r)||!((l=t.getItem(r))===null||l===void 0||(o=l.props)===null||o===void 0)&&o.isDisabled)&&r===t.getLastKey()&&(r=t.getFirstKey())}return r}class a7{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let r=this.keyMap.get(e);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(e){let r=this.keyMap.get(e);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var r;return(r=this.keyMap.get(e))!==null&&r!==void 0?r:null}at(e){const r=[...this.getKeys()];return this.getItem(r[e])}constructor(e,{expandedKeys:r}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,r=r||new Set;let n=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||r.has(a.key)))for(let s of a.childNodes)n(s)};for(let a of e)n(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 s7(t){let{onExpandedChange:e}=t,[r,n]=yi(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=ea(t),o=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=Zc(t,u.useCallback(s=>new a7(s,{expandedKeys:r}),[r]),null);return u.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:r,disabledKeys:o,toggleKey:s=>{n(c7(r,s))},setExpandedKeys:n,selectionManager:new cn(l,i)}}function c7(t,e){let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r}const u7=u.createContext(null),ol=u.createContext(null),Bu=u.createContext(null),Ru={CollectionRoot({collection:t,renderDropIndicator:e}){return A0(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:r}){return A0(t,e,r)}};function A0(t,e,r){return I2({items:e?t.getChildren(e.key):t,dependencies:[r],children(n){var i;let o=n.render(n);if(!r||n.type!=="item")return o;let l=n.key,a=t.getKeyAfter(l);return u.createElement(u.Fragment,null,r({type:"item",key:l,dropPosition:"before"}),o,(a==null||((i=t.getItem(a))===null||i===void 0?void 0:i.type)!=="item")&&r({type:"item",key:l,dropPosition:"after"}))}})}const jt=u.createContext(Ru);function Lu(t){return u.useMemo(()=>t!=null?new Set([t]):null,[t])}const $i=u.createContext({}),Ku=u.createContext(null),d7=u.forwardRef(function(e,r){let{render:n}=u.useContext(Ku);return u.createElement(u.Fragment,null,n(e,r))});function ju(t,e){var r;let n=t==null?void 0:t.renderDropIndicator,i=t==null||(r=t.isVirtualDragging)===null||r===void 0?void 0:r.call(t),o=u.useCallback(l=>{if(i||e!=null&&e.isDropTarget(l))return n?n(l):u.createElement(d7,{target:l})},[e==null?void 0:e.target,i,n]);return t!=null&&t.useDropIndicator?o:void 0}function f7(t,e,r){var n,i;let o=t.focusedKey,l=null;if(!(e==null||(n=e.isVirtualDragging)===null||n===void 0)&&n.call(e)&&(r==null||(i=r.target)===null||i===void 0?void 0:i.type)==="item"){l=r.target.key;var a;r.target.dropPosition==="after"&&(l=(a=r.collection.getKeyAfter(l))!==null&&a!==void 0?a:l)}return u.useMemo(()=>new Set([o,l].filter(s=>s!=null)),[o,l])}const Hu=u.createContext({}),ra=u.createContext({}),Vu=Si("separator",function(e,r){[e,r]=Xe(e,r,ra);let{elementType:n,orientation:i,style:o,className:l,slot:a,...s}=e,c=n||"hr";c==="hr"&&i==="vertical"&&(c="div");let{separatorProps:d}=z3({...s,elementType:n,orientation:i});return u.createElement(c,{...he(e),...d,style:o,className:l??"react-aria-Separator",ref:r,slot:a||void 0})}),na=u.createContext(null),un=u.createContext(null),h7=u.forwardRef(function(e,r){[e,r]=Xe(e,r,na);let n=u.useContext(un);return n?u.createElement(zu,{state:n,props:e,listBoxRef:r}):u.createElement(xi,{content:u.createElement(Vl,e)},i=>u.createElement(p7,{props:e,listBoxRef:r,collection:i}))});function p7({props:t,listBoxRef:e,collection:r}){t={...t,collection:r,children:null,items:null};let{layoutDelegate:n}=u.useContext(jt),i=Ou({...t,layoutDelegate:n});return u.createElement(zu,{state:i,props:t,listBoxRef:e})}function zu({state:t,props:e,listBoxRef:r}){let{filter:n,collectionProps:i,collectionRef:o}=u.useContext(ol)||{};e=u.useMemo(()=>i?{...e,...i}:e,[e,i]);let{dragAndDropHooks:l,layout:a="stack",orientation:s="vertical"}=e;r=nt(u.useMemo(()=>$l(r,o!==void 0?o:null),[o,r]));let c=r7(t,n),{collection:d,selectionManager:f}=c,p=!!(l!=null&&l.useDraggableCollectionState),g=!!(l!=null&&l.useDroppableCollectionState),{direction:y}=Kt(),{disabledBehavior:h,disabledKeys:v}=f,m=zl({usage:"search",sensitivity:"base"}),{isVirtualized:C,layoutDelegate:E,dropTargetDelegate:F,CollectionRoot:D}=u.useContext(jt),x=u.useMemo(()=>e.keyboardDelegate||new Yl({collection:d,collator:m,ref:r,disabledKeys:v,disabledBehavior:h,layout:a,orientation:s,direction:y,layoutDelegate:E}),[d,m,r,h,v,s,y,e.keyboardDelegate,a,E]),{listBoxProps:S}=P3({...e,shouldSelectOnPressUp:p||e.shouldSelectOnPressUp,keyboardDelegate:x,isVirtualized:C},c,r),O=u.useRef(p),K=u.useRef(g);u.useEffect(()=>{process.env.NODE_ENV!=="production"&&(O.current!==p&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),K.current!==g&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[p,g]);let H,w,M,Z=!1,_=null,U=u.useRef(null);if(p&&l){H=l.useDraggableCollectionState({collection:d,selectionManager:f,preview:l.renderDragPreview?U:void 0}),l.useDraggableCollection({},H,r);let $=l.DragPreview;_=l.renderDragPreview?u.createElement($,{ref:U},l.renderDragPreview):null}if(g&&l){w=l.useDroppableCollectionState({collection:d,selectionManager:f});let $=l.dropTargetDelegate||F||new l.ListDropTargetDelegate(d,r,{orientation:s,layout:a,direction:y});M=l.useDroppableCollection({keyboardDelegate:x,dropTargetDelegate:$},w,r),Z=w.isDropTarget({type:"root"})}let{focusProps:P,isFocused:k,isFocusVisible:z}=xr(),R={isDropTarget:Z,isEmpty:c.collection.size===0,isFocused:k,isFocusVisible:z,layout:e.layout||"stack",state:c},I=Fe({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:R}),N=null;return c.collection.size===0&&e.renderEmptyState&&(N=u.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(R))),u.createElement(Ul,null,u.createElement("div",{...he(e),...ie(S,P,M==null?void 0:M.collectionProps),...I,ref:r,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":Z||void 0,"data-empty":c.collection.size===0||void 0,"data-focused":k||void 0,"data-focus-visible":z||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},u.createElement(it,{values:[[na,e],[un,c],[$i,{dragAndDropHooks:l,dragState:H,dropState:w}],[ra,{elementType:"div"}],[Ku,{render:b7}],[Bu,{name:"ListBoxSection",render:g7}]]},u.createElement(D,{collection:d,scrollRef:r,persistedKeys:f7(f,l,w),renderDropIndicator:ju(l,w)})),N,_))}function g7(t,e,r,n="react-aria-ListBoxSection"){let i=u.useContext(un),{dragAndDropHooks:o,dropState:l}=u.useContext($i),{CollectionBranch:a}=u.useContext(jt),[s,c]=Ol();var d;let{headingProps:f,groupProps:p}=O3({heading:c,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),g=Fe({defaultClassName:n,className:t.className,style:t.style,values:{}});return u.createElement("section",{...he(t),...p,...g,ref:e},u.createElement(Hu.Provider,{value:{...f,ref:s}},u.createElement(a,{collection:i.collection,parent:r,renderDropIndicator:ju(o,l)})))}const v7=Si("item",function(e,r,n){let i=nt(r),o=u.useContext(un),{dragAndDropHooks:l,dragState:a,dropState:s}=u.useContext($i),{optionProps:c,labelProps:d,descriptionProps:f,...p}=I3({key:n.key,"aria-label":e==null?void 0:e["aria-label"]},o,i),{hoverProps:g,isHovered:y}=Dr({isDisabled:!p.allowsSelection&&!p.hasAction,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),h=null;a&&l&&(h=l.useDraggableItem({key:n.key},a));let v=null;s&&l&&(v=l.useDroppableItem({target:{type:"item",key:n.key,dropPosition:"on"}},s,i));let m=a&&a.isDragging(n.key),C=Fe({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:y,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:m,isDropTarget:v==null?void 0:v.isDropTarget}});u.useEffect(()=>{!n.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.")},[n.textValue]);let E=e.href?"a":"div";return u.createElement(E,{...ie(c,g,h==null?void 0:h.dragProps,v==null?void 0:v.dropProps),...C,ref:i,"data-allows-dragging":!!a||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":m||void 0,"data-drop-target":(v==null?void 0:v.isDropTarget)||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},u.createElement(it,{values:[[Ql,{slots:{[qr]:d,label:d,description:f}}]]},C.children))});function b7(t,e){e=nt(e);let{dragAndDropHooks:r,dropState:n}=u.useContext($i),{dropIndicatorProps:i,isHidden:o,isDropTarget:l}=r.useDropIndicator(t,n,e);return o?null:u.createElement(y7,{...t,dropIndicatorProps:i,isDropTarget:l,ref:e})}function m7(t,e){let{dropIndicatorProps:r,isDropTarget:n,...i}=t,o=Fe({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:n}});return u.createElement("div",{...r,...o,role:"option",ref:e,"data-drop-target":n||void 0})}const y7=u.forwardRef(m7),C7=u.createContext({placement:"bottom"}),Uu=u.createContext(null),T0=u.createContext(null),ia=u.forwardRef(function(e,r){[e,r]=Xe(e,r,Uu);let n=u.useContext(la),i=ta(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?i:n,l=S5(r,o.isOpen)||e.isExiting||!1,a=M5(),{direction:s}=Kt();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(E7,{...e,triggerRef:e.triggerRef,state:o,popoverRef:r,isExiting:l,dir:s})});function E7({state:t,isExiting:e,UNSTABLE_portalContainer:r,...n}){let i=u.useRef(null),[o,l]=u.useState(0),a=u.useRef(null),s=u.useContext(T0),c=s&&n.trigger==="SubmenuTrigger";ne(()=>{i.current&&t.isOpen&&l(i.current.getBoundingClientRect().width)},[t.isOpen,i]);var d;let{popoverProps:f,underlayProps:p,arrowProps:g,placement:y}=C3({...n,offset:(d=n.offset)!==null&&d!==void 0?d:8,arrowSize:o,groupRef:c?s:a},t),h=n.popoverRef,v=x5(h,!!y)||n.isEntering||!1,m=Fe({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:y,isEntering:v,isExiting:e}}),C=!n.isNonModal||n.trigger==="SubmenuTrigger",[E,F]=u.useState(!1);ne(()=>{h.current&&F(C&&!h.current.querySelector("[role=dialog]"))},[h,C]),u.useEffect(()=>{E&&h.current&&!h.current.contains(document.activeElement)&&vt(h.current)},[E,h]);let D={...f.style,...m.style},x=u.createElement("div",{...ie(he(n),f),...m,role:E?"dialog":void 0,tabIndex:E?-1:void 0,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],ref:h,slot:n.slot||void 0,style:D,dir:n.dir,"data-trigger":n.trigger,"data-placement":y,"data-entering":v||void 0,"data-exiting":e||void 0},!n.isNonModal&&u.createElement(b0,{onDismiss:t.close}),u.createElement(C7.Provider,{value:{...g,placement:y,ref:i}},m.children),u.createElement(b0,{onDismiss:t.close}));if(!c)return u.createElement(m0,{...n,shouldContainFocus:E,isExiting:e,portalContainer:r},!n.isNonModal&&t.isOpen&&u.createElement("div",{"data-testid":"underlay",...p,style:{position:"fixed",inset:0}}),u.createElement("div",{ref:a,style:{display:"contents"}},u.createElement(T0.Provider,{value:a},x)));var S;return u.createElement(m0,{...n,shouldContainFocus:E,isExiting:e,portalContainer:(S=r??(s==null?void 0:s.current))!==null&&S!==void 0?S:void 0},x)}const w7=u.createContext({}),D7=u.createContext(null),oa=u.createContext(null),_0=u.createContext(null),ri=u.createContext(null),x7=u.createContext(null),S7=u.forwardRef(function(e,r){return[e,r]=Xe(e,r,D7),u.createElement(xi,{content:u.createElement(Vl,e)},n=>u.createElement(F7,{props:e,collection:n,menuRef:r}))});function F7({props:t,collection:e,menuRef:r}){let{filter:n,collectionProps:i,collectionRef:o}=u.useContext(ol)||{};r=nt(u.useMemo(()=>$l(r,o!==void 0?o:null),[o,r]));let l=u.useMemo(()=>n?e.UNSTABLE_filter(n):e,[e,n]),a=s7({...t,collection:l,children:void 0}),s=u.useContext(_0),{isVirtualized:c,CollectionRoot:d}=u.useContext(jt),{menuProps:f}=B3({...t,...i,isVirtualized:c,onClose:t.onClose||(s==null?void 0:s.close)},a,r),p=Fe({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{isEmpty:a.collection.size===0}}),g=null;return a.collection.size===0&&t.renderEmptyState&&(g=u.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState())),u.createElement(Ul,null,u.createElement("div",{...he(t),...f,...p,ref:r,slot:t.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:t.onScroll},u.createElement(it,{values:[[oa,a],[ra,{elementType:"div"}],[Bu,{name:"MenuSection",render:P7}],[x7,{parentMenuRef:r,shouldUseVirtualFocus:i==null?void 0:i.shouldUseVirtualFocus}],[ll,null],[ol,null],[ri,a.selectionManager],[_0,s??i7({})]]},u.createElement(d,{collection:a.collection,persistedKeys:Lu(a.selectionManager.focusedKey),scrollRef:r})),g))}class $7 extends cn{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,r){return this.parent.setFocusedKey(e,r)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,r){super(e.collection,r),this.parent=e}}function P7(t,e,r,n="react-aria-MenuSection"){var i,o;let l=u.useContext(oa),{CollectionBranch:a}=u.useContext(jt),[s,c]=Ol();var d;let{headingProps:f,groupProps:p}=L3({heading:c,"aria-label":(d=r.props["aria-label"])!==null&&d!==void 0?d:void 0}),g=Fe({defaultClassName:n,className:(i=r.props)===null||i===void 0?void 0:i.className,style:(o=r.props)===null||o===void 0?void 0:o.style,values:{}}),y=u.useContext(ri),h=ea(t),v=t.selectionMode!=null?new $7(y,h):y;return u.createElement("section",{...he(t),...p,...g,ref:e},u.createElement(it,{values:[[Hu,{...f,ref:s}],[ri,v]]},u.createElement(a,{collection:l.collection,parent:r})))}const ll=u.createContext(null),k0=Si("item",function(e,r,n){var i;[e,r]=Xe(e,r,ll);let o=(i=Ci(ll))===null||i===void 0?void 0:i.id,l=u.useContext(oa),a=nt(r),s=u.useContext(ri),{menuItemProps:c,labelProps:d,descriptionProps:f,keyboardShortcutProps:p,...g}=R3({...e,id:o,key:n.key,selectionManager:s},l,a),{hoverProps:y,isHovered:h}=Dr({isDisabled:g.isDisabled}),v=Fe({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...g,isHovered:h,isFocusVisible:g.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,{...ie(c,y),...v,ref:a,"data-disabled":g.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":g.isFocused||void 0,"data-focus-visible":g.isFocusVisible||void 0,"data-pressed":g.isPressed||void 0,"data-selected":g.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(it,{values:[[Ql,{slots:{[qr]:d,label:d,description:f}}],[w7,p]]},v.children))}),A7=u.createContext(null),la=u.createContext(null),T7=u.forwardRef(function(e,r){let n=e["aria-labelledby"];[e,r]=Xe(e,r,A7);let{dialogProps:i,titleProps:o}=K3({...e,"aria-labelledby":n},r),l=u.useContext(la);!i["aria-label"]&&!i["aria-labelledby"]&&(e["aria-labelledby"]?i["aria-labelledby"]=e["aria-labelledby"]:process.env.NODE_ENV!=="production"&&console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let a=Fe({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}});return u.createElement("section",{...he(e),...i,...a,ref:r,slot:e.slot||void 0},u.createElement(it,{values:[[If,{slots:{[qr]:{},title:{...o,level:2}}}],[Jl,{slots:{[qr]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},a.children))}),Wu=u.createContext(null),Zu=u.createContext(null),_7=u.forwardRef(function(e,r){[e,r]=Xe(e,r,Wu);let{children:n,isDisabled:i=!1,isInvalid:o=!1,isRequired:l=!1}=e,a=u.useMemo(()=>typeof n=="function"?n({isOpen:!1,isDisabled:i,isInvalid:o,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):n,[n,i,o,l]);return u.createElement(xi,{content:a},s=>u.createElement(k7,{props:e,collection:s,selectRef:r}))});function k7({props:t,selectRef:e,collection:r}){let{validationBehavior:n}=Ci(u7)||{};var i,o;let l=(o=(i=t.validationBehavior)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:"native",a=o7({...t,collection:r,children:void 0,validationBehavior:l}),{isFocusVisible:s,focusProps:c}=xr({within:!0}),d=u.useRef(null),[f,p]=Ol(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:g,triggerProps:y,valueProps:h,menuProps:v,descriptionProps:m,errorMessageProps:C,...E}=j3({...k5(t),label:p,validationBehavior:l},a,d),[F,D]=u.useState(null),x=u.useCallback(()=>{d.current&&D(d.current.offsetWidth+"px")},[d]);Ho({ref:d,onResize:x});let S=u.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:s,isDisabled:t.isDisabled||!1,isInvalid:E.isInvalid||!1,isRequired:t.isRequired||!1}),[a.isOpen,a.isFocused,s,t.isDisabled,E.isInvalid,t.isRequired]),O=Fe({...t,values:S,defaultClassName:"react-aria-Select"}),K=he(t);delete K.id;let H=u.useRef(null);return u.createElement(it,{values:[[Wu,t],[Zu,a],[I7,h],[Iu,{...g,ref:f,elementType:"span"}],[Jl,{...y,ref:d,isPressed:a.isOpen}],[la,a],[Uu,{trigger:"Select",triggerRef:d,scrollRef:H,placement:"bottom start",style:{"--trigger-width":F},"aria-labelledby":v["aria-labelledby"]}],[na,{...v,ref:H}],[un,a],[Ql,{slots:{description:m,errorMessage:C}}],[e7,E]]},u.createElement("div",{...K,...O,...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":E.isInvalid||void 0,"data-required":t.isRequired||void 0}),u.createElement(V3,{autoComplete:t.autoComplete,state:a,triggerRef:d,label:p,name:t.name,isDisabled:t.isDisabled}))}const I7=u.createContext(null),Pi=u.createContext(null),yr=u.createContext(null),O7=u.forwardRef(function(e,r){[e,r]=Xe(e,r,Pi);let{children:n,orientation:i="horizontal"}=e;return n=u.useMemo(()=>typeof n=="function"?n({orientation:i,defaultChildren:null}):n,[n,i]),u.createElement(xi,{content:n},o=>u.createElement(M7,{props:e,collection:o,tabsRef:r}))});function M7({props:t,tabsRef:e,collection:r}){let{orientation:n="horizontal"}=t,i=l7({...t,collection:r,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:a}=xr({within:!0}),s=u.useMemo(()=>({orientation:n,isFocusWithin:l,isFocusVisible:a}),[n,l,a]),c=Fe({...t,defaultClassName:"react-aria-Tabs",values:s});return u.createElement("div",{...he(t),...o,...c,ref:e,slot:t.slot||void 0,"data-focused":l||void 0,"data-orientation":n,"data-focus-visible":a||void 0,"data-disabled":i.isDisabled||void 0},u.createElement(it,{values:[[Pi,t],[yr,i]]},c.children))}const N7=u.forwardRef(function(e,r){return u.useContext(yr)?u.createElement(B7,{props:e,forwardedRef:r}):u.createElement(Vl,e)});function B7({props:t,forwardedRef:e}){let r=u.useContext(yr),{CollectionRoot:n}=u.useContext(jt),{orientation:i="horizontal",keyboardActivation:o="automatic"}=Ci(Pi),l=nt(e),{tabListProps:a}=G3({...t,orientation:i,keyboardActivation:o},r,l),s=Fe({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:r}}),c=he(t);return delete c.id,u.createElement("div",{...c,...a,ref:l,...s,"data-orientation":i||void 0},u.createElement(n,{collection:r.collection,persistedKeys:Lu(r.selectionManager.focusedKey)}))}const R7=Si("item",(t,e,r)=>{let n=u.useContext(yr),i=nt(e),{tabProps:o,isSelected:l,isDisabled:a,isPressed:s}=U3({key:r.key,...t},n,i),{focusProps:c,isFocused:d,isFocusVisible:f}=xr(),{hoverProps:p,isHovered:g}=Dr({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),y=Fe({...t,id:void 0,children:r.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:a,isFocused:d,isFocusVisible:f,isPressed:s,isHovered:g}}),h=r.props.href?"a":"div";return u.createElement(h,{...ie(o,c,p,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":g||void 0},y.children)}),L7=Bl(function(e,r){const n=u.useContext(yr);let i=nt(r),{tabPanelProps:o}=W3(e,n,i),{focusProps:l,isFocused:a,isFocusVisible:s}=xr(),c=n.selectedKey===e.id,d=Fe({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!c,state:n}});if(!c&&!e.shouldForceMount)return null;let f=he(e);delete f.id;let p=c?ie(f,o,l,d):d;return u.createElement("div",{...p,ref:i,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:E5(!c),"data-inert":c?void 0:"true"},u.createElement(it,{values:[[Pi,null],[yr,null]]},u.createElement(jt.Provider,{value:Ru},d.children)))}),kt=({options:t,isOpen:e=!1,onOpenChange:r,children:n,selectedValues:i=[],onSelectValue:o,topMessage:l,shouldCloseOnInteractOutside:a})=>{const s=u.useId(),c=u.useRef(null),d=f=>{r==null||r(f)};return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"c__dropdown-menu-trigger",ref:c,id:s,onClick:f=>{f.stopPropagation(),f.preventDefault()},children:n}),b.jsx(ia,{triggerRef:c,style:{marginTop:"0px"},isOpen:e,shouldCloseOnInteractOutside:a,onOpenChange:d,children:b.jsxs(S7,{className:"c__dropdown-menu","aria-labelledby":s,children:[l&&b.jsx(k0,{className:"c__dropdown-menu-item-top-message",children:l}),t.map(f=>f.isHidden?null:b.jsxs(u.Fragment,{children:[b.jsxs(k0,{className:"c__dropdown-menu-item","aria-label":f.label,onAction:()=>{var p;f.value&&(o==null||o(f.value)),(p=f.callback)==null||p.call(f),d(!1)},isDisabled:f.isDisabled,children:[f.icon,b.jsxs("div",{className:"c__dropdown-menu-item__label-container",children:[b.jsx("div",{className:"c__dropdown-menu-item__label","aria-label":f.label,children:f.label}),f.subText&&b.jsx("div",{className:"c__dropdown-menu-item__label-subtext",children:f.subText})]}),(f.isChecked||f.value&&i.includes(f.value))&&b.jsx("span",{className:"material-icons checked",children:"check"})]},f.label),f.showSeparator&&b.jsx(Vu,{})]},f.label))]})})]})},bt=()=>{const[t,e]=u.useState(!1);return{isOpen:t,setIsOpen:e}},I0="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",K7="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",j7=({externalLinks:t,legalLinks:e,license:r,logo:n})=>{const{t:i}=X.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:(n==null?void 0:n.alt)||i("components.footer.logo.alt"),width:n==null?void 0:n.width,height:n==null?void 0:n.height,decoding:"async",src:(n==null?void 0:n.src)||K7})})}),b.jsx("div",{className:"c__footer__content__top__links",children:t==null?void 0:t.map(({label:o,href:l})=>b.jsxs("a",{href:l,target:"_blank",children:[b.jsx("span",{children:o}),b.jsx("img",{alt:"",width:"18",decoding:"async",src:I0})]},o))})]}),b.jsx("div",{className:"c__footer__content__middle",children:e==null?void 0:e.map(({label:o,href:l})=>b.jsx("a",{href:l,children:b.jsx("span",{children:o})},o))}),r&&b.jsxs("p",{className:"c__footer__content__mention",children:[r==null?void 0:r.label," ",b.jsxs("a",{href:r==null?void 0:r.link.href,target:"_blank",children:[b.jsx("span",{children:r==null?void 0:r.link.label}),b.jsx("img",{alt:"",width:"18",decoding:"async",src:I0})]})]})]})]})},H7=t=>b.jsx(_7,{...t,className:"c__filter",children:b.jsx(V7,{...t})}),V7=t=>{const e=u.useContext(Zu),r=e!=null&&e.selectedItem?t.options.find(n=>{var i;return n.value===((i=e.selectedItem)==null?void 0:i.key)}):null;return b.jsxs(b.Fragment,{children:[b.jsxs(J3,{className:ye("c__filter__button",{"c__filter__button--active":!!r}),children:[b.jsx(q3,{className:"c__filter__label",children:r?b.jsxs(b.Fragment,{children:[t.label," : ",r.label]}):b.jsx(b.Fragment,{children:t.label})}),b.jsx("span",{"aria-hidden":"true",className:ye("material-icons c__filter__button__icon",{opened:e==null?void 0:e.isOpen}),children:"keyboard_arrow_down"})]}),b.jsx(ia,{className:"c__dropdown-menu",children:b.jsx(h7,{children:t.options.map(n=>b.jsxs(u.Fragment,{children:[b.jsx(v7,{id:n.value,className:"c__dropdown-menu-item",children:b.jsxs("div",{className:"c__filter__item",children:[n.render?n.render():n.label,(t.selectedKey===n.value||n.isChecked)&&b.jsx("span",{className:"material-icons checked",children:"check"})]})},n.value),n.showSeparator&&b.jsx(Vu,{})]},n.value))})})]})},z7=({logo:t,mainButton:e,banner:r,title:n,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:n}),b.jsx("span",{className:"c__hero__display__captions__subtitle",children:i}),e||b.jsx(C2,{})]}),b.jsx("img",{src:r,alt:""})]})}),U7=({children:t})=>b.jsx("div",{className:"c__home-gutter",children:t}),Gu=(t,e,r=void 0)=>{const n=Array.isArray(e)?e:e.replace(/(\[(\d)\])/g,".$2").replace(/^\./,"").split(".");if(!n.length||n[0]===void 0)return t;const i=n[0];return typeof t!="object"||t===null||!(i in t)||t[i]===void 0?r:Gu(t[i],n.slice(1),r)},W7={placeholder:"Entrez votre adresse e-mail",srLabel:"Adresse e-mail",submit:"Suivant",title:"Connexion avec {linebreak}votre adresse e-mail"},Z7={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"}},G7={label:"Les services de La Suite numérique"},q7={homepageLinkTitle:"Accueil - {serviceName}"},Y7={newWindow:"{title} - nouvelle fenêtre"},X7={help:"Qu'est-ce que ProConnect ?",loginWith:"S’identifier avec",loginWithProconnect:"{loginWith} {proconnect}",or:"ou",title:"Connexion avec ProConnect"},qu={email:W7,footer:Z7,gaufre:G7,header:q7,links:Y7,proconnect:X7},J7=u.createContext(qu);function Q7(){const t=u.useContext(J7)||qu;return{t:function(e,r={}){const n=Gu(t,e);if(!n)return console.warn(`Translation for key "${e}" not found`),e;if(r){const i=[];if(Object.keys(r).forEach(l=>{typeof r[l]!="string"&&i.push(l)}),!i.length)return n.replace(/{(\w+)}/g,(l,a)=>r[a]);const o=n.split(/{(.*?)}/);return b.jsx(b.Fragment,{children:o.map((l,a)=>l in r?b.jsx(u.Fragment,{children:r[l]},a):l)})}return n}}}const eh={responsive:"lasuite-gaufre-btn--responsive",small:"lasuite-gaufre-btn--small"},th=({variant:t})=>{const{t:e}=Q7(),r=t?eh[t]:"";return b.jsx("button",{type:"button",className:`lasuite-gaufre-btn ${r} lasuite-gaufre-btn--vanilla js-lasuite-gaufre-btn`,title:e("gaufre.label"),children:e("gaufre.label")})},rh=()=>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(th,{variant:"small"})]}),nh="data:image/svg+xml,%3csvg%20width='64'%20height='26'%20viewBox='0%200%2064%2026'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_7771_15979)'%3e%3cpath%20d='M63.4259%2019.6175C63.4259%2020.1333%2063.4259%2020.3912%2063.3731%2020.6274C63.2756%2021.0639%2063.0469%2021.4602%2062.7177%2021.763C62.5395%2021.9269%2062.3162%2022.0559%2061.8696%2022.3139L59.9192%2023.4406C59.4723%2023.6988%2059.2488%2023.8279%2059.0177%2023.9003C58.5905%2024.0343%2058.1326%2024.0343%2057.7055%2023.9003C57.4744%2023.8279%2057.2509%2023.6988%2056.804%2023.4406L55.4779%2022.6746C54.9159%2022.3499%2054.6348%2022.1875%2054.5043%2021.9996C54.2603%2021.6483%2054.2605%2021.1823%2054.5049%2020.8313C54.6356%2020.6435%2054.9168%2020.4814%2055.4792%2020.1572L56.8083%2019.3911C57.2557%2019.1333%2057.4793%2019.0044%2057.6578%2018.8405C57.9875%2018.5376%2058.2167%2018.1411%2058.3144%2017.7041C58.3673%2017.4677%2058.3673%2017.2095%2058.3673%2016.6932V15.1651C58.3673%2014.5163%2058.3673%2014.1919%2058.4647%2013.9849C58.6468%2013.598%2059.0502%2013.365%2059.4763%2013.4008C59.7042%2013.42%2059.9852%2013.5822%2060.5471%2013.9066L61.869%2014.6698C62.3157%2014.9277%2062.5391%2015.0567%2062.7173%2015.2206C63.0467%2015.5234%2063.2755%2015.9198%2063.3731%2016.3564C63.4259%2016.5927%2063.4259%2016.8506%2063.4259%2017.3665V19.6175Z'%20fill='%23C83F49'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M52.1227%2010.0913C54.0237%2010.0913%2055.2764%2011.3056%2055.4296%2013.0311C55.4634%2013.4125%2055.483%2013.8298%2055.4161%2014.2062C55.3942%2014.3293%2055.2848%2014.4154%2055.1598%2014.4154H50.4038C50.3227%2014.4154%2050.2598%2014.4872%2050.2735%2014.5671C50.4893%2015.8206%2051.1794%2016.3447%2052.2824%2016.3447C52.6047%2016.3447%2052.9343%2016.2299%2053.1712%2016.1233C53.3024%2016.0642%2053.3687%2016.0345%2053.4122%2016.0248C53.5046%2016.0041%2053.5644%2016.0079%2053.6538%2016.0395C53.6958%2016.0543%2053.745%2016.0841%2053.8434%2016.1435L54.2508%2016.3894C54.5156%2016.549%2054.6484%2016.6286%2054.7029%2016.7099C54.8054%2016.8634%2054.8021%2017.0598%2054.6943%2017.2097C54.6371%2017.2891%2054.5058%2017.3625%2054.2429%2017.5088C54.0455%2017.6186%2053.8437%2017.7185%2053.633%2017.7938C52.9051%2018.0543%2052.1282%2018.0627%2051.3458%2017.8972C49.3995%2017.4855%2048.3644%2015.875%2048.3644%2014.038C48.3645%2011.8759%2049.7285%2010.0914%2052.1227%2010.0913ZM52.0793%2011.6003C51.1906%2011.6004%2050.5851%2012.0639%2050.3482%2012.9186C50.3253%2013.0011%2050.3898%2013.0807%2050.4754%2013.0807H53.5357C53.6121%2013.0806%2053.6738%2013.0164%2053.6642%2012.9406C53.5771%2012.2499%2053.0446%2011.6003%2052.0793%2011.6003Z'%20fill='%232845C1'/%3e%3cpath%20d='M27.0483%207.27437C28.4287%207.27441%2029.5109%207.83538%2030.3491%208.7076C30.4132%208.77435%2030.4455%208.80771%2030.4647%208.84951C30.4989%208.9242%2030.4955%209.02087%2030.4562%209.09297C30.4341%209.13343%2030.3969%209.16737%2030.3222%209.23489L29.401%2010.0674C29.3152%2010.1449%2029.272%2010.1842%2029.2303%2010.202C29.1493%2010.2366%2029.0681%2010.2321%2028.9911%2010.1891C28.9515%2010.1671%2028.9094%2010.1201%2028.8253%2010.0264C28.2997%209.4409%2027.7178%209.07156%2027.0624%209.07156C26.3381%209.07169%2025.8599%209.53539%2025.8598%2010.1439C25.8598%2010.9189%2026.6772%2011.2755%2027.6234%2011.6878C28.924%2012.2546%2030.4683%2012.9276%2030.4684%2014.9409C30.4394%2016.8538%2028.9612%2017.9987%2027.0918%2017.9988C25.5333%2017.9988%2024.444%2017.4813%2023.583%2016.5778C23.5199%2016.5115%2023.4882%2016.478%2023.4693%2016.4365C23.4356%2016.3625%2023.4388%2016.2671%2023.4772%2016.1955C23.4988%2016.1552%2023.5355%2016.1211%2023.6087%2016.0536L24.5226%2015.2112C24.6088%2015.1317%2024.652%2015.0918%2024.6927%2015.0736C24.7735%2015.0376%2024.8496%2015.0396%2024.9282%2015.0803C24.9678%2015.1009%2025.0139%2015.1485%2025.1056%2015.2437C25.6733%2015.8326%2026.3698%2016.1728%2027.0771%2016.1728C27.8886%2016.1728%2028.3812%2015.7381%2028.3813%2015.0137C28.3813%2014.22%2027.551%2013.8546%2026.5951%2013.4342C25.2993%2012.8644%2023.7734%2012.193%2023.7733%2010.2167C23.7733%208.60804%2025.1064%207.27437%2027.0483%207.27437Z'%20fill='%232845C1'/%3e%3cpath%20d='M33.0816%2010.4051C33.1877%2010.4051%2033.2407%2010.4052%2033.2834%2010.4198C33.3629%2010.447%2033.4257%2010.5091%2033.4529%2010.5886C33.4675%2010.6314%2033.4676%2010.6848%2033.4676%2010.7911V14.55C33.4677%2015.6077%2034.0181%2016.2596%2035.0323%2016.2597C36.0322%2016.2597%2036.5829%2015.6077%2036.583%2014.55V10.7911C36.583%2010.6848%2036.583%2010.6314%2036.5977%2010.5886C36.6249%2010.5091%2036.6877%2010.447%2036.7671%2010.4198C36.8099%2010.4052%2036.8629%2010.4051%2036.969%2010.4051H38.0523C38.1585%2010.4051%2038.212%2010.4051%2038.2548%2010.4198C38.3341%2010.447%2038.3964%2010.5093%2038.4236%2010.5886C38.4382%2010.6314%2038.4383%2010.6848%2038.4383%2010.7911V14.4625C38.4383%2016.6508%2037.163%2017.9987%2035.0182%2017.9988C32.8734%2017.9988%2031.6123%2016.6508%2031.6123%2014.4625V10.7911C31.6123%2010.6848%2031.6123%2010.6314%2031.627%2010.5886C31.6541%2010.5093%2031.7165%2010.447%2031.7958%2010.4198C31.8386%2010.4051%2031.892%2010.4051%2031.9983%2010.4051H33.0816Z'%20fill='%232845C1'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M18.6864%2010.109C20.8021%2010.109%2021.8892%2011.3699%2021.8892%2012.9785V17.3173C21.8892%2017.4233%2021.8891%2017.4765%2021.8746%2017.5192C21.8474%2017.5986%2021.7846%2017.6614%2021.7051%2017.6886C21.6624%2017.7032%2021.6092%2017.7033%2021.5033%2017.7033H20.4346C20.3284%2017.7033%2020.2749%2017.7033%2020.2321%2017.6886C20.1527%2017.6614%2020.0905%2017.5986%2020.0633%2017.5192C20.0487%2017.4764%2020.0486%2017.4234%2020.0486%2017.3173V17.2415C20.0486%2017.1766%2020.0485%2017.144%2020.0413%2017.1302C20.0267%2017.1027%2019.999%2017.0907%2019.9691%2017.099C19.954%2017.1033%2019.9286%2017.127%2019.8786%2017.1742C19.3908%2017.6343%2018.6201%2017.9204%2017.8606%2017.9205C16.3969%2017.9205%2015.3967%2017.08%2015.3966%2015.7324C15.3966%2014.6311%2016.2515%2013.8046%2017.8165%2013.5437L19.8627%2013.1981C19.9699%2013.18%2020.0486%2013.0873%2020.0486%2012.9785C20.0486%2012.2105%2019.4687%2011.7178%2018.6282%2011.7178C18.0616%2011.7178%2017.5966%2011.9303%2017.2329%2012.2885C17.1368%2012.3832%2017.0884%2012.4305%2017.0519%2012.4494C16.9763%2012.4885%2016.9134%2012.4922%2016.8335%2012.4628C16.7949%2012.4487%2016.7508%2012.415%2016.6628%2012.3478L15.9276%2011.7869C15.849%2011.7269%2015.8096%2011.6967%2015.7838%2011.6566C15.7392%2011.5871%2015.7297%2011.4822%2015.7612%2011.4058C15.7794%2011.3617%2015.8085%2011.3298%2015.8664%2011.2664C16.5273%2010.542%2017.5043%2010.109%2018.6864%2010.109ZM19.8241%2014.4943L18.3095%2014.747C17.5416%2014.8774%2017.2227%2015.1958%2017.2225%2015.6449C17.2225%2016.1377%2017.6142%2016.4567%2018.2374%2016.4567C18.9727%2016.4566%2019.5305%2016.1571%2019.9012%2015.6939C19.9264%2015.6624%2019.9392%2015.6465%2019.9618%2015.6082C19.9962%2015.5498%2020.0329%2015.4453%2020.0425%2015.3782C20.0487%2015.3344%2020.0486%2015.2998%2020.0486%2015.2308V14.6846C20.0486%2014.623%2020.0483%2014.5923%2020.0394%2014.5689C20.0228%2014.5254%2019.9854%2014.4932%2019.9397%2014.4839C19.9152%2014.479%2019.8848%2014.4842%2019.8241%2014.4943Z'%20fill='%232845C1'/%3e%3cpath%20d='M45.2967%208.57914C45.4029%208.57914%2045.4564%208.57917%2045.4992%208.59382C45.5785%208.62109%2045.6408%208.68332%2045.668%208.76265C45.6826%208.8054%2045.6827%208.85848%2045.6827%208.96451V10.2717C45.6827%2010.3083%2045.6825%2010.3267%2045.6876%2010.3415C45.697%2010.3689%2045.7188%2010.3902%2045.7463%2010.3996C45.7611%2010.4046%2045.7794%2010.4051%2045.816%2010.4051H47.5288C47.6349%2010.4051%2047.6879%2010.4051%2047.7307%2010.4198C47.8101%2010.447%2047.8723%2010.5092%2047.8995%2010.5886C47.9142%2010.6314%2047.9142%2010.6848%2047.9142%2010.7911V11.6713C47.9142%2011.7774%2047.9141%2011.8304%2047.8995%2011.8732C47.8723%2011.9526%2047.8101%2012.0154%2047.7307%2012.0426C47.6879%2012.0572%2047.6348%2012.0573%2047.5288%2012.0573H45.816C45.7794%2012.0573%2045.7611%2012.0572%2045.7463%2012.0622C45.7189%2012.0716%2045.697%2012.0929%2045.6876%2012.1203C45.6825%2012.1351%2045.6827%2012.1539%2045.6827%2012.1906V15.0424C45.6827%2015.8539%2046.1173%2016.1728%2046.8419%2016.1728C47.126%2016.1728%2047.3557%2016.1547%2047.5459%2016.1208C47.6769%2016.0976%2047.7423%2016.0861%2047.7766%2016.0927C47.8485%2016.1066%2047.8904%2016.1412%2047.9166%2016.2095C47.9291%2016.2421%2047.9289%2016.2989%2047.9289%2016.412V17.3706C47.9289%2017.4389%2047.9286%2017.4731%2047.9191%2017.5082C47.9029%2017.5673%2047.8551%2017.6323%2047.8035%2017.6654C47.7728%2017.685%2047.7464%2017.6935%2047.6934%2017.71C47.3789%2017.8083%2047.0056%2017.8538%2046.5232%2017.8538C44.6972%2017.8538%2043.8274%2016.8249%2043.8274%2015.0424V12.1906C43.8274%2012.1539%2043.8276%2012.1351%2043.8225%2012.1203C43.813%2012.0929%2043.7912%2012.0716%2043.7638%2012.0622C43.749%2012.0572%2043.7306%2012.0573%2043.694%2012.0573H42.8511C42.7451%2012.0573%2042.692%2012.0572%2042.6492%2012.0426C42.5698%2012.0154%2042.507%2011.9526%2042.4798%2011.8732C42.4652%2011.8304%2042.4651%2011.7773%2042.4651%2011.6713V10.7911C42.4651%2010.6848%2042.4652%2010.6314%2042.4798%2010.5886C42.507%2010.5091%2042.5698%2010.447%2042.6492%2010.4198C42.692%2010.4052%2042.745%2010.4051%2042.8511%2010.4051H43.694C43.7306%2010.4051%2043.749%2010.4046%2043.7638%2010.3996C43.7912%2010.3902%2043.8131%2010.3689%2043.8225%2010.3415C43.8276%2010.3267%2043.8274%2010.3083%2043.8274%2010.2717V8.96451C43.8274%208.85851%2043.8275%208.80539%2043.8421%208.76265C43.8693%208.6832%2043.9321%208.62102%2044.0115%208.59382C44.0543%208.57921%2044.1073%208.57914%2044.2134%208.57914H45.2967Z'%20fill='%232845C1'/%3e%3cpath%20d='M10.4969%207.60347C10.6271%207.59288%2010.7502%207.66445%2010.8058%207.7827C10.8355%207.84596%2010.8357%207.94515%2010.8357%208.14299V15.7141C10.8357%2015.767%2010.8358%2015.7936%2010.8431%2015.815C10.8567%2015.8546%2010.8878%2015.8858%2010.9275%2015.8994C10.9489%2015.9067%2010.9754%2015.9067%2011.0284%2015.9067H14.2013C14.3074%2015.9067%2014.3605%2015.9068%2014.4032%2015.9214C14.4825%2015.9486%2014.5448%2016.011%2014.572%2016.0903C14.5867%2016.133%2014.5867%2016.1865%2014.5867%2016.2927V17.3326C14.5867%2017.4387%2014.5867%2017.4917%2014.572%2017.5345C14.5448%2017.6139%2014.4827%2017.6767%2014.4032%2017.7039C14.3605%2017.7185%2014.3073%2017.7186%2014.2013%2017.7186H9.25388C9.14764%2017.7186%209.09419%2017.7186%209.0514%2017.7039C8.972%2017.6767%208.90977%2017.6139%208.88258%2017.5345C8.86796%2017.4917%208.86789%2017.4387%208.86789%2017.3326V9.01834C8.86789%208.87045%208.86801%208.79609%208.88319%208.7284C8.91128%208.6034%208.97706%208.49005%209.07159%208.40358C9.12277%208.35678%209.1868%208.31985%209.31505%208.24637L10.1696%207.75701C10.3413%207.65863%2010.4272%207.60914%2010.4969%207.60347Z'%20fill='%232845C1'/%3e%3cpath%20d='M41.3506%2010.4051C41.4567%2010.4051%2041.5097%2010.4052%2041.5525%2010.4198C41.6319%2010.447%2041.6947%2010.5091%2041.7219%2010.5886C41.7366%2010.6314%2041.7366%2010.6848%2041.7366%2010.7911V17.3235C41.7366%2017.4295%2041.7365%2017.4826%2041.7219%2017.5253C41.6947%2017.6048%2041.6319%2017.6669%2041.5525%2017.6941C41.5097%2017.7087%2041.4567%2017.7088%2041.3506%2017.7088H40.282C40.1757%2017.7088%2040.1223%2017.7088%2040.0795%2017.6941C40.0001%2017.6669%2039.9378%2017.6047%2039.9106%2017.5253C39.896%2017.4826%2039.896%2017.4295%2039.896%2017.3235V10.7911C39.896%2010.6848%2039.896%2010.6314%2039.9106%2010.5886C39.9378%2010.5092%2040.0001%2010.447%2040.0795%2010.4198C40.1223%2010.4051%2040.1757%2010.4051%2040.282%2010.4051H41.3506Z'%20fill='%232845C1'/%3e%3cpath%20d='M5.0894%201.1867C5.51644%201.05287%205.97448%201.05281%206.4015%201.1867C6.63253%201.25916%206.85582%201.38863%207.30254%201.6467L8.62872%202.41255C9.19079%202.73725%209.47203%202.89994%209.60255%203.08787C9.8464%203.43915%209.84622%203.90523%209.60194%204.25623C9.47119%204.44396%209.18971%204.60566%208.62749%204.92971L7.29826%205.69618C6.85114%205.95389%206.6276%206.0829%206.44922%206.24671C6.11946%206.54958%205.88998%206.94632%205.79225%207.38326C5.73941%207.61961%205.73964%207.87775%205.73964%208.39379V9.92244C5.73964%2010.571%205.73973%2010.8955%205.64238%2011.1024C5.46034%2011.4893%205.05667%2011.7223%204.63062%2011.6866C4.40267%2011.6675%204.12141%2011.5051%203.55953%2011.1807L2.23763%2010.4173C1.79099%2010.1594%201.56738%2010.0306%201.3892%209.86678C1.0599%209.56394%200.831048%209.16745%200.733454%208.73084C0.680657%208.49461%200.680847%208.23666%200.680847%207.72092V5.46985C0.680847%204.95415%200.680686%204.69612%200.733454%204.45992C0.83101%204.02338%201.05999%203.62683%201.3892%203.32399C1.56729%203.16021%201.79065%203.03132%202.23702%202.77346L4.18775%201.6467C4.63463%201.38855%204.8583%201.25915%205.0894%201.1867Z'%20fill='%232845C1'/%3e%3cpath%20d='M40.8233%206.72384C41.4755%206.72384%2042.0119%207.27491%2042.0119%207.92706C42.0117%208.57908%2041.4754%209.12967%2040.8233%209.12967C40.1713%209.12963%2039.6209%208.57906%2039.6207%207.92706C39.6207%207.27494%2040.1712%206.72389%2040.8233%206.72384Z'%20fill='%232845C1'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_7771_15979'%3e%3crect%20width='64'%20height='25.098'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";var co={},kr={},O0;function ih(){return O0||(O0=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.tokens=void 0,kr.tokens={themes:{default:{globals:{colors:{"logo-1-light":"#377FDB","logo-2-light":"#377FDB","logo-1-dark":"#C1D6F2","logo-2-dark":"#C1D6F2","brand-050":"#EAF1FB","brand-100":"#D5E4F7","brand-150":"#C0D6F4","brand-200":"#ABC9F0","brand-250":"#96BCEC","brand-300":"#80AEE8","brand-350":"#6CA0E4","brand-400":"#5693E0","brand-450":"#4085DC","brand-500":"#2976D8","brand-550":"#1167D4","brand-600":"#0659C5","brand-650":"#1A509F","brand-700":"#20467F","brand-750":"#203C63","brand-800":"#1D314C","brand-850":"#1A2638","brand-900":"#141C28","brand-950":"#0C1117","gray-000":"#FFFFFF","gray-025":"#F7F8F8","gray-050":"#F0F1F2","gray-100":"#E1E2E5","gray-150":"#D2D4D8","gray-200":"#C4C7CB","gray-250":"#B5B9BE","gray-300":"#A7ACB2","gray-350":"#999EA5","gray-400":"#8D9197","gray-450":"#80848A","gray-500":"#74777C","gray-550":"#686B6F","gray-600":"#5C5F63","gray-650":"#505356","gray-700":"#45474A","gray-750":"#3A3B3E","gray-800":"#2F3033","gray-850":"#252627","gray-900":"#1B1C1D","gray-950":"#101112","gray-1000":"#000000","info-050":"#EAF1FB","info-100":"#D5E4F7","info-150":"#C0D6F4","info-200":"#ABC9F0","info-250":"#96BCEC","info-300":"#80AEE8","info-350":"#6CA0E4","info-400":"#5693E0","info-450":"#4085DC","info-500":"#2976D8","info-550":"#1167D4","info-600":"#0659C5","info-650":"#1A509F","info-700":"#20467F","info-750":"#203C63","info-800":"#1D314C","info-850":"#1A2638","info-900":"#141C28","info-950":"#0C1117","success-050":"#E4F7D4","success-100":"#C8EEA8","success-150":"#AAE579","success-200":"#89DC45","success-250":"#72CF27","success-300":"#6AC024","success-350":"#61B121","success-400":"#59A21E","success-450":"#51941C","success-500":"#4B851A","success-550":"#427816","success-600":"#3A6A14","success-650":"#385C1F","success-700":"#344D24","success-750":"#2E4022","success-800":"#27341F","success-850":"#20281A","success-900":"#181D15","success-950":"#10120E","warning-050":"#FFF1BD","warning-100":"#FFE176","warning-150":"#FFCF25","warning-200":"#F4BF06","warning-250":"#E3B205","warning-300":"#D3A504","warning-350":"#C29805","warning-400":"#B28C03","warning-450":"#A27F03","warning-500":"#937303","warning-550":"#836703","warning-600":"#745B03","warning-650":"#625019","warning-700":"#524620","warning-750":"#443B20","warning-800":"#36301D","warning-850":"#2A2619","warning-900":"#1E1C13","warning-950":"#12110C","error-050":"#FCEDED","error-100":"#FADBDB","error-150":"#F7C9C9","error-200":"#F5B7B7","error-250":"#F2A4A4","error-300":"#EF9191","error-350":"#EC7D7D","error-400":"#E96868","error-450":"#E55050","error-500":"#E13131","error-550":"#D80000","error-600":"#C00101","error-650":"#9E2219","error-700":"#802820","error-750":"#662820","error-800":"#4F231E","error-850":"#3B1D19","error-900":"#2A1614","error-950":"#1A0E0C","red-050":"#FDEDED","red-100":"#FADBDB","red-150":"#F8C9C9","red-200":"#F5B7B6","red-250":"#F3A4A3","red-300":"#F09190","red-350":"#EE7C7B","red-400":"#EB6665","red-450":"#E74E4D","red-500":"#D83F3D","red-550":"#C23837","red-600":"#AC3231","red-650":"#8D3531","red-700":"#73332F","red-750":"#5B2F2B","red-800":"#472826","red-850":"#35211F","red-900":"#251817","red-950":"#160F0E","orange-050":"#FDEEE2","orange-100":"#FCDDC5","orange-150":"#FACBA8","orange-200":"#F8B98B","orange-250":"#F6A76A","orange-300":"#F4934B","orange-350":"#F27E27","orange-400":"#E76E12","orange-450":"#D26411","orange-500":"#BE5B0F","orange-550":"#AA510E","orange-600":"#97480C","orange-650":"#7E431D","orange-700":"#673C22","orange-750":"#533422","orange-800":"#412C1F","orange-850":"#31231B","orange-900":"#221A14","orange-950":"#15100C","brown-050":"#F3F0EF","brown-100":"#E7E1DF","brown-150":"#DCD2CF","brown-200":"#D0C4BF","brown-250":"#C5B6B0","brown-300":"#BAA7A1","brown-350":"#AF9992","brown-400":"#A48B83","brown-450":"#997E74","brown-500":"#8F7065","brown-550":"#846357","brown-600":"#7A5649","brown-650":"#684C42","brown-700":"#57423C","brown-750":"#463833","brown-800":"#382E2A","brown-850":"#2B2422","brown-900":"#1F1B19","brown-950":"#121010","yellow-050":"#FAF0D3","yellow-100":"#F5E2A4","yellow-150":"#F0D275","yellow-200":"#EBC242","yellow-250":"#E4B213","yellow-300":"#D4A511","yellow-350":"#C39810","yellow-400":"#B38B0F","yellow-450":"#A37F0D","yellow-500":"#93730C","yellow-550":"#84670B","yellow-600":"#755B0A","yellow-650":"#63501C","yellow-700":"#534521","yellow-750":"#443A21","yellow-800":"#36301F","yellow-850":"#29261A","yellow-900":"#1D1C14","yellow-950":"#12110C","green-050":"#E2F6E5","green-100":"#C5ECCA","green-150":"#A7E3AF","green-200":"#89D894","green-250":"#67CE75","green-300":"#4DC25D","green-350":"#48B257","green-400":"#41A44F","green-450":"#3B9548","green-500":"#368741","green-550":"#30793A","green-600":"#2B6B33","green-650":"#2F5C34","green-700":"#2E4E31","green-750":"#2A412C","green-800":"#253426","green-850":"#1E281F","green-900":"#171D17","green-950":"#0F120F","blue-1-050":"#EBF1FF","blue-1-100":"#D6E3FE","blue-1-150":"#C2D5FE","blue-1-200":"#ADC7FE","blue-1-250":"#99B8FD","blue-1-300":"#84AAFD","blue-1-350":"#6F9BFD","blue-1-400":"#5A8DFB","blue-1-450":"#437DFC","blue-1-500":"#3D71E4","blue-1-550":"#3665CC","blue-1-600":"#305AB5","blue-1-650":"#315093","blue-1-700":"#2E4675","blue-1-750":"#293B5E","blue-1-800":"#243048","blue-1-850":"#1E2635","blue-1-900":"#171C25","blue-1-950":"#0E1116","blue-2-050":"#E2F4F9","blue-2-100":"#C5E9F3","blue-2-150":"#A7DDED","blue-2-200":"#88D1E6","blue-2-250":"#68C5E0","blue-2-300":"#48B8D9","blue-2-350":"#3BAACA","blue-2-400":"#359CB9","blue-2-450":"#318EA9","blue-2-500":"#2C8199","blue-2-550":"#277389","blue-2-600":"#236679","blue-2-650":"#2A5866","blue-2-700":"#2A4B55","blue-2-750":"#283F47","blue-2-800":"#233337","blue-2-850":"#1D272A","blue-2-900":"#161C1E","blue-2-950":"#0E1112","purple-050":"#F6EEFF","purple-100":"#ECDCFF","purple-150":"#E3CBFE","purple-200":"#DAB9FE","purple-250":"#D0A7FE","purple-300":"#C795FE","purple-350":"#BD83FD","purple-400":"#B36FFD","purple-450":"#A85BFD","purple-500":"#9B4BF3","purple-550":"#8B43DA","purple-600":"#7B3CC1","purple-650":"#673C9B","purple-700":"#56387D","purple-750":"#463162","purple-800":"#382A4A","purple-850":"#2A2237","purple-900":"#1E1926","purple-950":"#121017","pink-050":"#FCEDF5","pink-100":"#F9DAEA","pink-150":"#F7C7E0","pink-200":"#F4B4D5","pink-250":"#F1A1CA","pink-300":"#EE8CBF","pink-350":"#EA77B3","pink-400":"#E760A6","pink-450":"#E24797","pink-500":"#CD4089","pink-550":"#B8397B","pink-600":"#A3336D","pink-650":"#86355E","pink-700":"#6E334F","pink-750":"#582E42","pink-800":"#442834","pink-850":"#332028","pink-900":"#24181D","pink-950":"#160F12","black-000":"#1B1C1D00","black-050":"#1B1C1D0D","black-100":"#1B1C1D1A","black-150":"#1B1C1D26","black-200":"#1B1C1D33","black-250":"#1B1C1D40","black-300":"#1B1C1D4D","black-350":"#1B1C1D59","black-400":"#1B1C1D66","black-450":"#1B1C1D73","black-500":"#1B1C1D80","black-550":"#1B1C1D8C","black-600":"#1B1C1D99","black-650":"#1B1C1DA6","black-700":"#1B1C1DB2","black-750":"#1B1C1DBF","black-800":"#1B1C1DCC","black-850":"#1B1C1DD9","black-900":"#1B1C1DE5","black-950":"#101112F2","white-000":"#F7F8F800","white-050":"#F7F8F80D","white-100":"#F7F8F81A","white-150":"#F7F8F826","white-200":"#F7F8F833","white-250":"#F7F8F840","white-300":"#F7F8F84D","white-350":"#F7F8F859","white-400":"#F7F8F866","white-450":"#F7F8F873","white-500":"#F7F8F880","white-550":"#F7F8F88C","white-600":"#F7F8F899","white-650":"#F7F8F8A6","white-700":"#F7F8F8B2","white-750":"#F7F8F8BF","white-800":"#F7F8F8CC","white-850":"#F7F8F8D9","white-900":"#F7F8F8E5","white-950":"#F7F8F8F2","white-975":"#F7F8F8F9"},transitions:{"ease-in":"cubic-bezier(0.32, 0, 0.67, 0)","ease-out":"cubic-bezier(0.33, 1, 0.68, 1)","ease-in-out":"cubic-bezier(0.65, 0, 0.35, 1)",duration:"250ms"},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:200,light:300,regular:400,medium:500,bold:600,extrabold:700,black:800},families:{base:'"Roboto Flex Variable", sans-serif',accent:'"Roboto Flex Variable", sans-serif'}},spacings:{l:"3rem",b:"1.625rem",m:"0.8125rem",s:"1rem",t:"0.5rem",st:"0.25rem","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xxxs:"0.25rem",xxs:"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem",xxxl:"3.5rem","2xl":"3rem","3xl":"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px"}},contextuals:{background:{surface:{primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#F7F8F8"},semantic:{overlay:{primary:"#1B1C1D0D","primary-hover":"#1B1C1D1A"},contextual:{primary:"#1B1C1D0D","primary-hover":"#1B1C1D1A"},brand:{primary:"#1167D4","primary-hover":"#1A509F",secondary:"#D5E4F7","secondary-hover":"#C0D6F4",tertiary:"#EAF1FB","tertiary-hover":"#D5E4F7"},neutral:{primary:"#686B6F","primary-hover":"#505356",secondary:"#E1E2E5","secondary-hover":"#D2D4D8",tertiary:"#F0F1F2","tertiary-hover":"#E1E2E5"},info:{primary:"#1167D4","primary-hover":"#1A509F",secondary:"#D5E4F7","secondary-hover":"#C0D6F4",tertiary:"#EAF1FB","tertiary-hover":"#D5E4F7"},success:{primary:"#427816","primary-hover":"#385C1F",secondary:"#C8EEA8","secondary-hover":"#AAE579",tertiary:"#E4F7D4","tertiary-hover":"#C8EEA8"},warning:{primary:"#836703","primary-hover":"#625019",secondary:"#FFE176","secondary-hover":"#FFCF25",tertiary:"#FFF1BD","tertiary-hover":"#FFE176"},error:{primary:"#D80000","primary-hover":"#9E2219",secondary:"#FADBDB","secondary-hover":"#F7C9C9",tertiary:"#FCEDED","tertiary-hover":"#FADBDB"},disabled:{primary:"#E1E2E5",secondary:"#F0F1F2"}},palette:{brand:{primary:"#2976D8",secondary:"#6CA0E4",tertiary:"#C0D6F4"},red:{primary:"#D83F3D",secondary:"#EE7C7B",tertiary:"#F8C9C9"},orange:{primary:"#BE5B0F",secondary:"#F27E27",tertiary:"#FACBA8"},brown:{primary:"#8F7065",secondary:"#AF9992",tertiary:"#DCD2CF"},yellow:{primary:"#93730C",secondary:"#C39810",tertiary:"#F0D275"},green:{primary:"#368741",secondary:"#48B257",tertiary:"#A7E3AF"},"blue-1":{primary:"#3D71E4",secondary:"#6F9BFD",tertiary:"#C2D5FE"},"blue-2":{primary:"#2C8199",secondary:"#3BAACA",tertiary:"#A7DDED"},purple:{primary:"#9B4BF3",secondary:"#BD83FD",tertiary:"#E3CBFE"},pink:{primary:"#CD4089",secondary:"#EA77B3",tertiary:"#F7C7E0"},gray:{primary:"#74777C",secondary:"#999EA5",tertiary:"#D2D4D8"}}},content:{logo1:"#377FDB",logo2:"#377FDB",semantic:{contextual:{primary:"#F7F8F8F2"},overlay:{primary:"#F7F8F8F2"},brand:{primary:"#20467F",secondary:"#0659C5",tertiary:"#1167D4","on-brand":"#EAF1FB"},neutral:{primary:"#252627",secondary:"#5C5F63",tertiary:"#686B6F","on-neutral":"#F0F1F2"},info:{primary:"#20467F",secondary:"#0659C5",tertiary:"#1167D4","on-info":"#EAF1FB"},success:{primary:"#344D24",secondary:"#3A6A14",tertiary:"#427816","on-success":"#E4F7D4"},warning:{primary:"#524620",secondary:"#745B03",tertiary:"#836703","on-warning":"#FFF1BD"},error:{primary:"#802820",secondary:"#C00101",tertiary:"#D80000","on-error":"#FCEDED"},disabled:{primary:"#A7ACB2",secondary:"#F7F8F880"}},palette:{brand:{primary:"#2976D8"},red:{primary:"#D83F3D"},orange:{primary:"#BE5B0F"},brown:{primary:"#8F7065"},yellow:{primary:"#93730C"},green:{primary:"#368741"},"blue-1":{primary:"#3D71E4"},"blue-2":{primary:"#2C8199"},purple:{primary:"#9B4BF3"},pink:{primary:"#CD4089"},gray:{primary:"#74777C"}}},border:{surface:{primary:"#E1E2E5"},semantic:{contextual:{primary:"#F7F8F833"},overlay:{primary:"#F7F8F833"},brand:{primary:"#1167D4",secondary:"#80AEE8",tertiary:"#C0D6F4"},neutral:{primary:"#686B6F",secondary:"#A7ACB2",tertiary:"#D2D4D8"},info:{primary:"#1167D4",secondary:"#80AEE8",tertiary:"#C0D6F4"},success:{primary:"#427816",secondary:"#6AC024",tertiary:"#AAE579"},warning:{primary:"#836703",secondary:"#D3A504",tertiary:"#FFCF25"},error:{primary:"#D80000",secondary:"#EF9191",tertiary:"#F7C9C9"},disabled:{primary:"#E1E2E5"}}}},components:{}},dark:{globals:{colors:{"logo-1-light":"#377FDB","logo-2-light":"#377FDB","logo-1-dark":"#C1D6F2","logo-2-dark":"#C1D6F2","brand-050":"#EAF1FB","brand-100":"#D5E4F7","brand-150":"#C0D6F4","brand-200":"#ABC9F0","brand-250":"#96BCEC","brand-300":"#80AEE8","brand-350":"#6CA0E4","brand-400":"#5693E0","brand-450":"#4085DC","brand-500":"#2976D8","brand-550":"#1167D4","brand-600":"#0659C5","brand-650":"#1A509F","brand-700":"#20467F","brand-750":"#203C63","brand-800":"#1D314C","brand-850":"#1A2638","brand-900":"#141C28","brand-950":"#0C1117","gray-000":"#FFFFFF","gray-025":"#F7F8F8","gray-050":"#F0F1F2","gray-100":"#E1E2E5","gray-150":"#D2D4D8","gray-200":"#C4C7CB","gray-250":"#B5B9BE","gray-300":"#A7ACB2","gray-350":"#999EA5","gray-400":"#8D9197","gray-450":"#80848A","gray-500":"#74777C","gray-550":"#686B6F","gray-600":"#5C5F63","gray-650":"#505356","gray-700":"#45474A","gray-750":"#3A3B3E","gray-800":"#2F3033","gray-850":"#252627","gray-900":"#1B1C1D","gray-950":"#101112","gray-1000":"#000000","info-050":"#EAF1FB","info-100":"#D5E4F7","info-150":"#C0D6F4","info-200":"#ABC9F0","info-250":"#96BCEC","info-300":"#80AEE8","info-350":"#6CA0E4","info-400":"#5693E0","info-450":"#4085DC","info-500":"#2976D8","info-550":"#1167D4","info-600":"#0659C5","info-650":"#1A509F","info-700":"#20467F","info-750":"#203C63","info-800":"#1D314C","info-850":"#1A2638","info-900":"#141C28","info-950":"#0C1117","success-050":"#E4F7D4","success-100":"#C8EEA8","success-150":"#AAE579","success-200":"#89DC45","success-250":"#72CF27","success-300":"#6AC024","success-350":"#61B121","success-400":"#59A21E","success-450":"#51941C","success-500":"#4B851A","success-550":"#427816","success-600":"#3A6A14","success-650":"#385C1F","success-700":"#344D24","success-750":"#2E4022","success-800":"#27341F","success-850":"#20281A","success-900":"#181D15","success-950":"#10120E","warning-050":"#FFF1BD","warning-100":"#FFE176","warning-150":"#FFCF25","warning-200":"#F4BF06","warning-250":"#E3B205","warning-300":"#D3A504","warning-350":"#C29805","warning-400":"#B28C03","warning-450":"#A27F03","warning-500":"#937303","warning-550":"#836703","warning-600":"#745B03","warning-650":"#625019","warning-700":"#524620","warning-750":"#443B20","warning-800":"#36301D","warning-850":"#2A2619","warning-900":"#1E1C13","warning-950":"#12110C","error-050":"#FCEDED","error-100":"#FADBDB","error-150":"#F7C9C9","error-200":"#F5B7B7","error-250":"#F2A4A4","error-300":"#EF9191","error-350":"#EC7D7D","error-400":"#E96868","error-450":"#E55050","error-500":"#E13131","error-550":"#D80000","error-600":"#C00101","error-650":"#9E2219","error-700":"#802820","error-750":"#662820","error-800":"#4F231E","error-850":"#3B1D19","error-900":"#2A1614","error-950":"#1A0E0C","red-050":"#FDEDED","red-100":"#FADBDB","red-150":"#F8C9C9","red-200":"#F5B7B6","red-250":"#F3A4A3","red-300":"#F09190","red-350":"#EE7C7B","red-400":"#EB6665","red-450":"#E74E4D","red-500":"#D83F3D","red-550":"#C23837","red-600":"#AC3231","red-650":"#8D3531","red-700":"#73332F","red-750":"#5B2F2B","red-800":"#472826","red-850":"#35211F","red-900":"#251817","red-950":"#160F0E","orange-050":"#FDEEE2","orange-100":"#FCDDC5","orange-150":"#FACBA8","orange-200":"#F8B98B","orange-250":"#F6A76A","orange-300":"#F4934B","orange-350":"#F27E27","orange-400":"#E76E12","orange-450":"#D26411","orange-500":"#BE5B0F","orange-550":"#AA510E","orange-600":"#97480C","orange-650":"#7E431D","orange-700":"#673C22","orange-750":"#533422","orange-800":"#412C1F","orange-850":"#31231B","orange-900":"#221A14","orange-950":"#15100C","brown-050":"#F3F0EF","brown-100":"#E7E1DF","brown-150":"#DCD2CF","brown-200":"#D0C4BF","brown-250":"#C5B6B0","brown-300":"#BAA7A1","brown-350":"#AF9992","brown-400":"#A48B83","brown-450":"#997E74","brown-500":"#8F7065","brown-550":"#846357","brown-600":"#7A5649","brown-650":"#684C42","brown-700":"#57423C","brown-750":"#463833","brown-800":"#382E2A","brown-850":"#2B2422","brown-900":"#1F1B19","brown-950":"#121010","yellow-050":"#FAF0D3","yellow-100":"#F5E2A4","yellow-150":"#F0D275","yellow-200":"#EBC242","yellow-250":"#E4B213","yellow-300":"#D4A511","yellow-350":"#C39810","yellow-400":"#B38B0F","yellow-450":"#A37F0D","yellow-500":"#93730C","yellow-550":"#84670B","yellow-600":"#755B0A","yellow-650":"#63501C","yellow-700":"#534521","yellow-750":"#443A21","yellow-800":"#36301F","yellow-850":"#29261A","yellow-900":"#1D1C14","yellow-950":"#12110C","green-050":"#E2F6E5","green-100":"#C5ECCA","green-150":"#A7E3AF","green-200":"#89D894","green-250":"#67CE75","green-300":"#4DC25D","green-350":"#48B257","green-400":"#41A44F","green-450":"#3B9548","green-500":"#368741","green-550":"#30793A","green-600":"#2B6B33","green-650":"#2F5C34","green-700":"#2E4E31","green-750":"#2A412C","green-800":"#253426","green-850":"#1E281F","green-900":"#171D17","green-950":"#0F120F","blue-1-050":"#EBF1FF","blue-1-100":"#D6E3FE","blue-1-150":"#C2D5FE","blue-1-200":"#ADC7FE","blue-1-250":"#99B8FD","blue-1-300":"#84AAFD","blue-1-350":"#6F9BFD","blue-1-400":"#5A8DFB","blue-1-450":"#437DFC","blue-1-500":"#3D71E4","blue-1-550":"#3665CC","blue-1-600":"#305AB5","blue-1-650":"#315093","blue-1-700":"#2E4675","blue-1-750":"#293B5E","blue-1-800":"#243048","blue-1-850":"#1E2635","blue-1-900":"#171C25","blue-1-950":"#0E1116","blue-2-050":"#E2F4F9","blue-2-100":"#C5E9F3","blue-2-150":"#A7DDED","blue-2-200":"#88D1E6","blue-2-250":"#68C5E0","blue-2-300":"#48B8D9","blue-2-350":"#3BAACA","blue-2-400":"#359CB9","blue-2-450":"#318EA9","blue-2-500":"#2C8199","blue-2-550":"#277389","blue-2-600":"#236679","blue-2-650":"#2A5866","blue-2-700":"#2A4B55","blue-2-750":"#283F47","blue-2-800":"#233337","blue-2-850":"#1D272A","blue-2-900":"#161C1E","blue-2-950":"#0E1112","purple-050":"#F6EEFF","purple-100":"#ECDCFF","purple-150":"#E3CBFE","purple-200":"#DAB9FE","purple-250":"#D0A7FE","purple-300":"#C795FE","purple-350":"#BD83FD","purple-400":"#B36FFD","purple-450":"#A85BFD","purple-500":"#9B4BF3","purple-550":"#8B43DA","purple-600":"#7B3CC1","purple-650":"#673C9B","purple-700":"#56387D","purple-750":"#463162","purple-800":"#382A4A","purple-850":"#2A2237","purple-900":"#1E1926","purple-950":"#121017","pink-050":"#FCEDF5","pink-100":"#F9DAEA","pink-150":"#F7C7E0","pink-200":"#F4B4D5","pink-250":"#F1A1CA","pink-300":"#EE8CBF","pink-350":"#EA77B3","pink-400":"#E760A6","pink-450":"#E24797","pink-500":"#CD4089","pink-550":"#B8397B","pink-600":"#A3336D","pink-650":"#86355E","pink-700":"#6E334F","pink-750":"#582E42","pink-800":"#442834","pink-850":"#332028","pink-900":"#24181D","pink-950":"#160F12","black-000":"#1B1C1D00","black-050":"#1B1C1D0D","black-100":"#1B1C1D1A","black-150":"#1B1C1D26","black-200":"#1B1C1D33","black-250":"#1B1C1D40","black-300":"#1B1C1D4D","black-350":"#1B1C1D59","black-400":"#1B1C1D66","black-450":"#1B1C1D73","black-500":"#1B1C1D80","black-550":"#1B1C1D8C","black-600":"#1B1C1D99","black-650":"#1B1C1DA6","black-700":"#1B1C1DB2","black-750":"#1B1C1DBF","black-800":"#1B1C1DCC","black-850":"#1B1C1DD9","black-900":"#1B1C1DE5","black-950":"#101112F2","white-000":"#F7F8F800","white-050":"#F7F8F80D","white-100":"#F7F8F81A","white-150":"#F7F8F826","white-200":"#F7F8F833","white-250":"#F7F8F840","white-300":"#F7F8F84D","white-350":"#F7F8F859","white-400":"#F7F8F866","white-450":"#F7F8F873","white-500":"#F7F8F880","white-550":"#F7F8F88C","white-600":"#F7F8F899","white-650":"#F7F8F8A6","white-700":"#F7F8F8B2","white-750":"#F7F8F8BF","white-800":"#F7F8F8CC","white-850":"#F7F8F8D9","white-900":"#F7F8F8E5","white-950":"#F7F8F8F2","white-975":"#F7F8F8F9"},transitions:{"ease-in":"cubic-bezier(0.32, 0, 0.67, 0)","ease-out":"cubic-bezier(0.33, 1, 0.68, 1)","ease-in-out":"cubic-bezier(0.65, 0, 0.35, 1)",duration:"250ms"},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:200,light:300,regular:400,medium:500,bold:600,extrabold:700,black:800},families:{base:'"Roboto Flex Variable", sans-serif',accent:'"Roboto Flex Variable", sans-serif'}},spacings:{l:"3rem",b:"1.625rem",m:"0.8125rem",s:"1rem",t:"0.5rem",st:"0.25rem","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xxxs:"0.25rem",xxs:"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem",xxxl:"3.5rem","2xl":"3rem","3xl":"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px"}},contextuals:{background:{surface:{primary:"#2F3033",secondary:"#252627",tertiary:"#1B1C1D"},semantic:{contextual:{primary:"#F7F8F80D","primary-hover":"#F7F8F81A"},overlay:{primary:"#F7F8F80D","primary-hover":"#F7F8F81A"},brand:{primary:"#1167D4","primary-hover":"#1A509F",secondary:"#20467F","secondary-hover":"#203C63",tertiary:"#203C63","tertiary-hover":"#1D314C"},neutral:{primary:"#686B6F","primary-hover":"#505356",secondary:"#45474A","secondary-hover":"#3A3B3E",tertiary:"#3A3B3E","tertiary-hover":"#2F3033"},info:{primary:"#1167D4","primary-hover":"#1A509F",secondary:"#20467F","secondary-hover":"#203C63",tertiary:"#203C63","tertiary-hover":"#1D314C"},success:{primary:"#427816","primary-hover":"#385C1F",secondary:"#344D24","secondary-hover":"#2E4022",tertiary:"#2E4022","tertiary-hover":"#27341F"},warning:{primary:"#836703","primary-hover":"#625019",secondary:"#524620","secondary-hover":"#443B20",tertiary:"#443B20","tertiary-hover":"#36301D"},error:{primary:"#D80000","primary-hover":"#9E2219",secondary:"#802820","secondary-hover":"#662820",tertiary:"#662820","tertiary-hover":"#4F231E"},disabled:{primary:"#3A3B3E",secondary:"#2F3033"}},palette:{brand:{primary:"#6CA0E4",secondary:"#4085DC",tertiary:"#1167D4"},red:{primary:"#EE7C7B",secondary:"#E74E4D",tertiary:"#C23837"},orange:{primary:"#F27E27",secondary:"#D26411",tertiary:"#AA510E"},brown:{primary:"#AF9992",secondary:"#997E74",tertiary:"#846357"},yellow:{primary:"#C39810",secondary:"#A37F0D",tertiary:"#84670B"},green:{primary:"#48B257",secondary:"#3B9548",tertiary:"#30793A"},"blue-1":{primary:"#6F9BFD",secondary:"#437DFC",tertiary:"#3665CC"},"blue-2":{primary:"#3BAACA",secondary:"#318EA9",tertiary:"#277389"},purple:{primary:"#BD83FD",secondary:"#A85BFD",tertiary:"#8B43DA"},pink:{primary:"#EA77B3",secondary:"#E24797",tertiary:"#B8397B"},gray:{primary:"#999EA5",secondary:"#80848A",tertiary:"#686B6F"}}},content:{logo1:"#C1D6F2",logo2:"#C1D6F2",semantic:{contextual:{primary:"#1B1C1DD9"},overlay:{primary:"#1B1C1DD9"},brand:{primary:"#EAF1FB",secondary:"#D5E4F7",tertiary:"#96BCEC","on-brand":"#EAF1FB"},neutral:{primary:"#F0F1F2",secondary:"#E1E2E5",tertiary:"#B5B9BE","on-neutral":"#F0F1F2"},info:{primary:"#EAF1FB",secondary:"#D5E4F7",tertiary:"#96BCEC","on-info":"#EAF1FB"},success:{primary:"#E4F7D4",secondary:"#C8EEA8",tertiary:"#72CF27","on-success":"#E4F7D4"},warning:{primary:"#FFF1BD",secondary:"#FFE176",tertiary:"#E3B205","on-warning":"#FFF1BD"},error:{primary:"#FCEDED",secondary:"#FADBDB",tertiary:"#F2A4A4","on-error":"#FCEDED"},disabled:{primary:"#5C5F63",secondary:"#1B1C1D4D"}},palette:{brand:{primary:"#2976D8"},red:{primary:"#D83F3D"},orange:{primary:"#BE5B0F"},brown:{primary:"#8F7065"},yellow:{primary:"#93730C"},green:{primary:"#368741"},"blue-1":{primary:"#3D71E4"},"blue-2":{primary:"#2C8199"},purple:{primary:"#9B4BF3"},pink:{primary:"#CD4089"},gray:{primary:"#74777C"}}},border:{surface:{primary:"#3A3B3E"},semantic:{contextual:{primary:"#1B1C1D33"},overlay:{primary:"#1B1C1D33"},brand:{primary:"#4085DC",secondary:"#0659C5",tertiary:"#20467F"},neutral:{primary:"#80848A",secondary:"#5C5F63",tertiary:"#45474A"},info:{primary:"#4085DC",secondary:"#0659C5",tertiary:"#20467F"},success:{primary:"#51941C",secondary:"#3A6A14",tertiary:"#344D24"},warning:{primary:"#A27F03",secondary:"#745B03",tertiary:"#524620"},error:{primary:"#E55050",secondary:"#C00101",tertiary:"#802820"},disabled:{primary:"#2F3033"}}}},components:{}}}}),kr}var Ir={},M0;function oh(){if(M0)return Ir;M0=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.buildRefs=void 0;const t=e=>{const r=(n,i)=>{if(typeof i=="object"){const o={};return Object.entries(i).forEach(([l,a])=>{o[l]=r((n?n+".":"")+l,a)}),o}return"ref("+n+")"};return r("",e)};return Ir.buildRefs=t,Ir}var Or={},uo,N0;function lh(){if(N0)return uo;N0=1;var t=function(C){return e(C)&&!r(C)};function e(m){return!!m&&typeof m=="object"}function r(m){var C=Object.prototype.toString.call(m);return C==="[object RegExp]"||C==="[object Date]"||o(m)}var n=typeof Symbol=="function"&&Symbol.for,i=n?Symbol.for("react.element"):60103;function o(m){return m.$$typeof===i}function l(m){return Array.isArray(m)?[]:{}}function a(m,C){return C.clone!==!1&&C.isMergeableObject(m)?h(l(m),m,C):m}function s(m,C,E){return m.concat(C).map(function(F){return a(F,E)})}function c(m,C){if(!C.customMerge)return h;var E=C.customMerge(m);return typeof E=="function"?E:h}function d(m){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(m).filter(function(C){return Object.propertyIsEnumerable.call(m,C)}):[]}function f(m){return Object.keys(m).concat(d(m))}function p(m,C){try{return C in m}catch{return!1}}function g(m,C){return p(m,C)&&!(Object.hasOwnProperty.call(m,C)&&Object.propertyIsEnumerable.call(m,C))}function y(m,C,E){var F={};return E.isMergeableObject(m)&&f(m).forEach(function(D){F[D]=a(m[D],E)}),f(C).forEach(function(D){g(m,D)||(p(m,D)&&E.isMergeableObject(C[D])?F[D]=c(D,E)(m[D],C[D],E):F[D]=a(C[D],E))}),F}function h(m,C,E){E=E||{},E.arrayMerge=E.arrayMerge||s,E.isMergeableObject=E.isMergeableObject||t,E.cloneUnlessOtherwiseSpecified=a;var F=Array.isArray(C),D=Array.isArray(m),x=F===D;return x?F?E.arrayMerge(m,C,E):y(m,C,E):a(C,E)}h.all=function(C,E){if(!Array.isArray(C))throw new Error("first argument should be an array");return C.reduce(function(F,D){return h(F,D,E)},{})};var v=h;return uo=v,uo}var fo={},B0;function ah(){return B0||(B0=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.contextualDarkTokens=t.contextualDefaultTokens=t.globals=t.colors=void 0,t.colors={"logo-1-light":"#377FDB","logo-2-light":"#377FDB","logo-1-dark":"#C1D6F2","logo-2-dark":"#C1D6F2","brand-050":"#EAF1FB","brand-100":"#D5E4F7","brand-150":"#C0D6F4","brand-200":"#ABC9F0","brand-250":"#96BCEC","brand-300":"#80AEE8","brand-350":"#6CA0E4","brand-400":"#5693E0","brand-450":"#4085DC","brand-500":"#2976D8","brand-550":"#1167D4","brand-600":"#0659C5","brand-650":"#1A509F","brand-700":"#20467F","brand-750":"#203C63","brand-800":"#1D314C","brand-850":"#1A2638","brand-900":"#141C28","brand-950":"#0C1117","gray-000":"#FFFFFF","gray-025":"#F7F8F8","gray-050":"#F0F1F2","gray-100":"#E1E2E5","gray-150":"#D2D4D8","gray-200":"#C4C7CB","gray-250":"#B5B9BE","gray-300":"#A7ACB2","gray-350":"#999EA5","gray-400":"#8D9197","gray-450":"#80848A","gray-500":"#74777C","gray-550":"#686B6F","gray-600":"#5C5F63","gray-650":"#505356","gray-700":"#45474A","gray-750":"#3A3B3E","gray-800":"#2F3033","gray-850":"#252627","gray-900":"#1B1C1D","gray-950":"#101112","gray-1000":"#000000","info-050":"#EAF1FB","info-100":"#D5E4F7","info-150":"#C0D6F4","info-200":"#ABC9F0","info-250":"#96BCEC","info-300":"#80AEE8","info-350":"#6CA0E4","info-400":"#5693E0","info-450":"#4085DC","info-500":"#2976D8","info-550":"#1167D4","info-600":"#0659C5","info-650":"#1A509F","info-700":"#20467F","info-750":"#203C63","info-800":"#1D314C","info-850":"#1A2638","info-900":"#141C28","info-950":"#0C1117","success-050":"#E4F7D4","success-100":"#C8EEA8","success-150":"#AAE579","success-200":"#89DC45","success-250":"#72CF27","success-300":"#6AC024","success-350":"#61B121","success-400":"#59A21E","success-450":"#51941C","success-500":"#4B851A","success-550":"#427816","success-600":"#3A6A14","success-650":"#385C1F","success-700":"#344D24","success-750":"#2E4022","success-800":"#27341F","success-850":"#20281A","success-900":"#181D15","success-950":"#10120E","warning-050":"#FFF1BD","warning-100":"#FFE176","warning-150":"#FFCF25","warning-200":"#F4BF06","warning-250":"#E3B205","warning-300":"#D3A504","warning-350":"#C29805","warning-400":"#B28C03","warning-450":"#A27F03","warning-500":"#937303","warning-550":"#836703","warning-600":"#745B03","warning-650":"#625019","warning-700":"#524620","warning-750":"#443B20","warning-800":"#36301D","warning-850":"#2A2619","warning-900":"#1E1C13","warning-950":"#12110C","error-050":"#FCEDED","error-100":"#FADBDB","error-150":"#F7C9C9","error-200":"#F5B7B7","error-250":"#F2A4A4","error-300":"#EF9191","error-350":"#EC7D7D","error-400":"#E96868","error-450":"#E55050","error-500":"#E13131","error-550":"#D80000","error-600":"#C00101","error-650":"#9E2219","error-700":"#802820","error-750":"#662820","error-800":"#4F231E","error-850":"#3B1D19","error-900":"#2A1614","error-950":"#1A0E0C","red-050":"#FDEDED","red-100":"#FADBDB","red-150":"#F8C9C9","red-200":"#F5B7B6","red-250":"#F3A4A3","red-300":"#F09190","red-350":"#EE7C7B","red-400":"#EB6665","red-450":"#E74E4D","red-500":"#D83F3D","red-550":"#C23837","red-600":"#AC3231","red-650":"#8D3531","red-700":"#73332F","red-750":"#5B2F2B","red-800":"#472826","red-850":"#35211F","red-900":"#251817","red-950":"#160F0E","orange-050":"#FDEEE2","orange-100":"#FCDDC5","orange-150":"#FACBA8","orange-200":"#F8B98B","orange-250":"#F6A76A","orange-300":"#F4934B","orange-350":"#F27E27","orange-400":"#E76E12","orange-450":"#D26411","orange-500":"#BE5B0F","orange-550":"#AA510E","orange-600":"#97480C","orange-650":"#7E431D","orange-700":"#673C22","orange-750":"#533422","orange-800":"#412C1F","orange-850":"#31231B","orange-900":"#221A14","orange-950":"#15100C","brown-050":"#F3F0EF","brown-100":"#E7E1DF","brown-150":"#DCD2CF","brown-200":"#D0C4BF","brown-250":"#C5B6B0","brown-300":"#BAA7A1","brown-350":"#AF9992","brown-400":"#A48B83","brown-450":"#997E74","brown-500":"#8F7065","brown-550":"#846357","brown-600":"#7A5649","brown-650":"#684C42","brown-700":"#57423C","brown-750":"#463833","brown-800":"#382E2A","brown-850":"#2B2422","brown-900":"#1F1B19","brown-950":"#121010","yellow-050":"#FAF0D3","yellow-100":"#F5E2A4","yellow-150":"#F0D275","yellow-200":"#EBC242","yellow-250":"#E4B213","yellow-300":"#D4A511","yellow-350":"#C39810","yellow-400":"#B38B0F","yellow-450":"#A37F0D","yellow-500":"#93730C","yellow-550":"#84670B","yellow-600":"#755B0A","yellow-650":"#63501C","yellow-700":"#534521","yellow-750":"#443A21","yellow-800":"#36301F","yellow-850":"#29261A","yellow-900":"#1D1C14","yellow-950":"#12110C","green-050":"#E2F6E5","green-100":"#C5ECCA","green-150":"#A7E3AF","green-200":"#89D894","green-250":"#67CE75","green-300":"#4DC25D","green-350":"#48B257","green-400":"#41A44F","green-450":"#3B9548","green-500":"#368741","green-550":"#30793A","green-600":"#2B6B33","green-650":"#2F5C34","green-700":"#2E4E31","green-750":"#2A412C","green-800":"#253426","green-850":"#1E281F","green-900":"#171D17","green-950":"#0F120F","blue-1-050":"#EBF1FF","blue-1-100":"#D6E3FE","blue-1-150":"#C2D5FE","blue-1-200":"#ADC7FE","blue-1-250":"#99B8FD","blue-1-300":"#84AAFD","blue-1-350":"#6F9BFD","blue-1-400":"#5A8DFB","blue-1-450":"#437DFC","blue-1-500":"#3D71E4","blue-1-550":"#3665CC","blue-1-600":"#305AB5","blue-1-650":"#315093","blue-1-700":"#2E4675","blue-1-750":"#293B5E","blue-1-800":"#243048","blue-1-850":"#1E2635","blue-1-900":"#171C25","blue-1-950":"#0E1116","blue-2-050":"#E2F4F9","blue-2-100":"#C5E9F3","blue-2-150":"#A7DDED","blue-2-200":"#88D1E6","blue-2-250":"#68C5E0","blue-2-300":"#48B8D9","blue-2-350":"#3BAACA","blue-2-400":"#359CB9","blue-2-450":"#318EA9","blue-2-500":"#2C8199","blue-2-550":"#277389","blue-2-600":"#236679","blue-2-650":"#2A5866","blue-2-700":"#2A4B55","blue-2-750":"#283F47","blue-2-800":"#233337","blue-2-850":"#1D272A","blue-2-900":"#161C1E","blue-2-950":"#0E1112","purple-050":"#F6EEFF","purple-100":"#ECDCFF","purple-150":"#E3CBFE","purple-200":"#DAB9FE","purple-250":"#D0A7FE","purple-300":"#C795FE","purple-350":"#BD83FD","purple-400":"#B36FFD","purple-450":"#A85BFD","purple-500":"#9B4BF3","purple-550":"#8B43DA","purple-600":"#7B3CC1","purple-650":"#673C9B","purple-700":"#56387D","purple-750":"#463162","purple-800":"#382A4A","purple-850":"#2A2237","purple-900":"#1E1926","purple-950":"#121017","pink-050":"#FCEDF5","pink-100":"#F9DAEA","pink-150":"#F7C7E0","pink-200":"#F4B4D5","pink-250":"#F1A1CA","pink-300":"#EE8CBF","pink-350":"#EA77B3","pink-400":"#E760A6","pink-450":"#E24797","pink-500":"#CD4089","pink-550":"#B8397B","pink-600":"#A3336D","pink-650":"#86355E","pink-700":"#6E334F","pink-750":"#582E42","pink-800":"#442834","pink-850":"#332028","pink-900":"#24181D","pink-950":"#160F12","black-000":"#1B1C1D00","black-050":"#1B1C1D0D","black-100":"#1B1C1D1A","black-150":"#1B1C1D26","black-200":"#1B1C1D33","black-250":"#1B1C1D40","black-300":"#1B1C1D4D","black-350":"#1B1C1D59","black-400":"#1B1C1D66","black-450":"#1B1C1D73","black-500":"#1B1C1D80","black-550":"#1B1C1D8C","black-600":"#1B1C1D99","black-650":"#1B1C1DA6","black-700":"#1B1C1DB2","black-750":"#1B1C1DBF","black-800":"#1B1C1DCC","black-850":"#1B1C1DD9","black-900":"#1B1C1DE5","black-950":"#101112F2","white-000":"#F7F8F800","white-050":"#F7F8F80D","white-100":"#F7F8F81A","white-150":"#F7F8F826","white-200":"#F7F8F833","white-250":"#F7F8F840","white-300":"#F7F8F84D","white-350":"#F7F8F859","white-400":"#F7F8F866","white-450":"#F7F8F873","white-500":"#F7F8F880","white-550":"#F7F8F88C","white-600":"#F7F8F899","white-650":"#F7F8F8A6","white-700":"#F7F8F8B2","white-750":"#F7F8F8BF","white-800":"#F7F8F8CC","white-850":"#F7F8F8D9","white-900":"#F7F8F8E5","white-950":"#F7F8F8F2","white-975":"#F7F8F8F9"};const e={base:'"Roboto Flex Variable", sans-serif',accent:'"Roboto Flex Variable", sans-serif'},r={l:"3rem",b:"1.625rem",m:"0.8125rem",s:"1rem",t:"0.5rem",st:"0.25rem","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xxxs:"0.25rem",xxs:"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem",xxxl:"3.5rem","2xl":"3rem","3xl":"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},n={"ease-in":"cubic-bezier(0.32, 0, 0.67, 0)","ease-out":"cubic-bezier(0.33, 1, 0.68, 1)","ease-in-out":"cubic-bezier(0.65, 0, 0.35, 1)",duration:"250ms"},i={xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px"},o={thin:200,light:300,regular:400,medium:500,bold:600,extrabold:700,black:800};t.globals={colors:t.colors,transitions:n,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:o,families:e},spacings:r,breakpoints:i},t.contextualDefaultTokens={background:{surface:{primary:"ref(globals.colors.gray-000)",secondary:"ref(globals.colors.gray-000)",tertiary:"ref(globals.colors.gray-025)"},semantic:{overlay:{primary:"ref(globals.colors.black-050)","primary-hover":"ref(globals.colors.black-100)"},contextual:{primary:"ref(globals.colors.black-050)","primary-hover":"ref(globals.colors.black-100)"},brand:{primary:"ref(globals.colors.brand-550)","primary-hover":"ref(globals.colors.brand-650)",secondary:"ref(globals.colors.brand-100)","secondary-hover":"ref(globals.colors.brand-150)",tertiary:"ref(globals.colors.brand-050)","tertiary-hover":"ref(globals.colors.brand-100)"},neutral:{primary:"ref(globals.colors.gray-550)","primary-hover":"ref(globals.colors.gray-650)",secondary:"ref(globals.colors.gray-100)","secondary-hover":"ref(globals.colors.gray-150)",tertiary:"ref(globals.colors.gray-050)","tertiary-hover":"ref(globals.colors.gray-100)"},info:{primary:"ref(globals.colors.info-550)","primary-hover":"ref(globals.colors.info-650)",secondary:"ref(globals.colors.info-100)","secondary-hover":"ref(globals.colors.info-150)",tertiary:"ref(globals.colors.info-050)","tertiary-hover":"ref(globals.colors.info-100)"},success:{primary:"ref(globals.colors.success-550)","primary-hover":"ref(globals.colors.success-650)",secondary:"ref(globals.colors.success-100)","secondary-hover":"ref(globals.colors.success-150)",tertiary:"ref(globals.colors.success-050)","tertiary-hover":"ref(globals.colors.success-100)"},warning:{primary:"ref(globals.colors.warning-550)","primary-hover":"ref(globals.colors.warning-650)",secondary:"ref(globals.colors.warning-100)","secondary-hover":"ref(globals.colors.warning-150)",tertiary:"ref(globals.colors.warning-050)","tertiary-hover":"ref(globals.colors.warning-100)"},error:{primary:"ref(globals.colors.error-550)","primary-hover":"ref(globals.colors.error-650)",secondary:"ref(globals.colors.error-100)","secondary-hover":"ref(globals.colors.error-150)",tertiary:"ref(globals.colors.error-050)","tertiary-hover":"ref(globals.colors.error-100)"},disabled:{primary:"ref(globals.colors.gray-100)",secondary:"ref(globals.colors.gray-050)"}},palette:{brand:{primary:"ref(globals.colors.brand-500)",secondary:"ref(globals.colors.brand-350)",tertiary:"ref(globals.colors.brand-150)"},red:{primary:"ref(globals.colors.red-500)",secondary:"ref(globals.colors.red-350)",tertiary:"ref(globals.colors.red-150)"},orange:{primary:"ref(globals.colors.orange-500)",secondary:"ref(globals.colors.orange-350)",tertiary:"ref(globals.colors.orange-150)"},brown:{primary:"ref(globals.colors.brown-500)",secondary:"ref(globals.colors.brown-350)",tertiary:"ref(globals.colors.brown-150)"},yellow:{primary:"ref(globals.colors.yellow-500)",secondary:"ref(globals.colors.yellow-350)",tertiary:"ref(globals.colors.yellow-150)"},green:{primary:"ref(globals.colors.green-500)",secondary:"ref(globals.colors.green-350)",tertiary:"ref(globals.colors.green-150)"},"blue-1":{primary:"ref(globals.colors.blue-1-500)",secondary:"ref(globals.colors.blue-1-350)",tertiary:"ref(globals.colors.blue-1-150)"},"blue-2":{primary:"ref(globals.colors.blue-2-500)",secondary:"ref(globals.colors.blue-2-350)",tertiary:"ref(globals.colors.blue-2-150)"},purple:{primary:"ref(globals.colors.purple-500)",secondary:"ref(globals.colors.purple-350)",tertiary:"ref(globals.colors.purple-150)"},pink:{primary:"ref(globals.colors.pink-500)",secondary:"ref(globals.colors.pink-350)",tertiary:"ref(globals.colors.pink-150)"},gray:{primary:"ref(globals.colors.gray-500)",secondary:"ref(globals.colors.gray-350)",tertiary:"ref(globals.colors.gray-150)"}}},content:{logo1:"ref(globals.colors.logo-1-light)",logo2:"ref(globals.colors.logo-2-light)",semantic:{contextual:{primary:"ref(globals.colors.white-950)"},overlay:{primary:"ref(globals.colors.white-950)"},brand:{primary:"ref(globals.colors.brand-700)",secondary:"ref(globals.colors.brand-600)",tertiary:"ref(globals.colors.brand-550)","on-brand":"ref(globals.colors.brand-050)"},neutral:{primary:"ref(globals.colors.gray-850)",secondary:"ref(globals.colors.gray-600)",tertiary:"ref(globals.colors.gray-550)","on-neutral":"ref(globals.colors.gray-050)"},info:{primary:"ref(globals.colors.info-700)",secondary:"ref(globals.colors.info-600)",tertiary:"ref(globals.colors.info-550)","on-info":"ref(globals.colors.info-050)"},success:{primary:"ref(globals.colors.success-700)",secondary:"ref(globals.colors.success-600)",tertiary:"ref(globals.colors.success-550)","on-success":"ref(globals.colors.success-050)"},warning:{primary:"ref(globals.colors.warning-700)",secondary:"ref(globals.colors.warning-600)",tertiary:"ref(globals.colors.warning-550)","on-warning":"ref(globals.colors.warning-050)"},error:{primary:"ref(globals.colors.error-700)",secondary:"ref(globals.colors.error-600)",tertiary:"ref(globals.colors.error-550)","on-error":"ref(globals.colors.error-050)"},disabled:{primary:"ref(globals.colors.gray-300)",secondary:"ref(globals.colors.white-500)"}},palette:{brand:{primary:"ref(globals.colors.brand-500)"},red:{primary:"ref(globals.colors.red-500)"},orange:{primary:"ref(globals.colors.orange-500)"},brown:{primary:"ref(globals.colors.brown-500)"},yellow:{primary:"ref(globals.colors.yellow-500)"},green:{primary:"ref(globals.colors.green-500)"},"blue-1":{primary:"ref(globals.colors.blue-1-500)"},"blue-2":{primary:"ref(globals.colors.blue-2-500)"},purple:{primary:"ref(globals.colors.purple-500)"},pink:{primary:"ref(globals.colors.pink-500)"},gray:{primary:"ref(globals.colors.gray-500)"}}},border:{surface:{primary:"ref(globals.colors.gray-100)"},semantic:{contextual:{primary:"ref(globals.colors.white-200)"},overlay:{primary:"ref(globals.colors.white-200)"},brand:{primary:"ref(globals.colors.brand-550)",secondary:"ref(globals.colors.brand-300)",tertiary:"ref(globals.colors.brand-150)"},neutral:{primary:"ref(globals.colors.gray-550)",secondary:"ref(globals.colors.gray-300)",tertiary:"ref(globals.colors.gray-150)"},info:{primary:"ref(globals.colors.info-550)",secondary:"ref(globals.colors.info-300)",tertiary:"ref(globals.colors.info-150)"},success:{primary:"ref(globals.colors.success-550)",secondary:"ref(globals.colors.success-300)",tertiary:"ref(globals.colors.success-150)"},warning:{primary:"ref(globals.colors.warning-550)",secondary:"ref(globals.colors.warning-300)",tertiary:"ref(globals.colors.warning-150)"},error:{primary:"ref(globals.colors.error-550)",secondary:"ref(globals.colors.error-300)",tertiary:"ref(globals.colors.error-150)"},disabled:{primary:"ref(globals.colors.gray-100)"}}}},t.contextualDarkTokens={background:{surface:{primary:"ref(globals.colors.gray-800)",secondary:"ref(globals.colors.gray-850)",tertiary:"ref(globals.colors.gray-900)"},semantic:{contextual:{primary:"ref(globals.colors.white-050)","primary-hover":"ref(globals.colors.white-100)"},overlay:{primary:"ref(globals.colors.white-050)","primary-hover":"ref(globals.colors.white-100)"},brand:{primary:"ref(globals.colors.brand-550)","primary-hover":"ref(globals.colors.brand-650)",secondary:"ref(globals.colors.brand-700)","secondary-hover":"ref(globals.colors.brand-750)",tertiary:"ref(globals.colors.brand-750)","tertiary-hover":"ref(globals.colors.brand-800)"},neutral:{primary:"ref(globals.colors.gray-550)","primary-hover":"ref(globals.colors.gray-650)",secondary:"ref(globals.colors.gray-700)","secondary-hover":"ref(globals.colors.gray-750)",tertiary:"ref(globals.colors.gray-750)","tertiary-hover":"ref(globals.colors.gray-800)"},info:{primary:"ref(globals.colors.info-550)","primary-hover":"ref(globals.colors.info-650)",secondary:"ref(globals.colors.info-700)","secondary-hover":"ref(globals.colors.info-750)",tertiary:"ref(globals.colors.info-750)","tertiary-hover":"ref(globals.colors.info-800)"},success:{primary:"ref(globals.colors.success-550)","primary-hover":"ref(globals.colors.success-650)",secondary:"ref(globals.colors.success-700)","secondary-hover":"ref(globals.colors.success-750)",tertiary:"ref(globals.colors.success-750)","tertiary-hover":"ref(globals.colors.success-800)"},warning:{primary:"ref(globals.colors.warning-550)","primary-hover":"ref(globals.colors.warning-650)",secondary:"ref(globals.colors.warning-700)","secondary-hover":"ref(globals.colors.warning-750)",tertiary:"ref(globals.colors.warning-750)","tertiary-hover":"ref(globals.colors.warning-800)"},error:{primary:"ref(globals.colors.error-550)","primary-hover":"ref(globals.colors.error-650)",secondary:"ref(globals.colors.error-700)","secondary-hover":"ref(globals.colors.error-750)",tertiary:"ref(globals.colors.error-750)","tertiary-hover":"ref(globals.colors.error-800)"},disabled:{primary:"ref(globals.colors.gray-750)",secondary:"ref(globals.colors.gray-800)"}},palette:{brand:{primary:"ref(globals.colors.brand-350)",secondary:"ref(globals.colors.brand-450)",tertiary:"ref(globals.colors.brand-550)"},red:{primary:"ref(globals.colors.red-350)",secondary:"ref(globals.colors.red-450)",tertiary:"ref(globals.colors.red-550)"},orange:{primary:"ref(globals.colors.orange-350)",secondary:"ref(globals.colors.orange-450)",tertiary:"ref(globals.colors.orange-550)"},brown:{primary:"ref(globals.colors.brown-350)",secondary:"ref(globals.colors.brown-450)",tertiary:"ref(globals.colors.brown-550)"},yellow:{primary:"ref(globals.colors.yellow-350)",secondary:"ref(globals.colors.yellow-450)",tertiary:"ref(globals.colors.yellow-550)"},green:{primary:"ref(globals.colors.green-350)",secondary:"ref(globals.colors.green-450)",tertiary:"ref(globals.colors.green-550)"},"blue-1":{primary:"ref(globals.colors.blue-1-350)",secondary:"ref(globals.colors.blue-1-450)",tertiary:"ref(globals.colors.blue-1-550)"},"blue-2":{primary:"ref(globals.colors.blue-2-350)",secondary:"ref(globals.colors.blue-2-450)",tertiary:"ref(globals.colors.blue-2-550)"},purple:{primary:"ref(globals.colors.purple-350)",secondary:"ref(globals.colors.purple-450)",tertiary:"ref(globals.colors.purple-550)"},pink:{primary:"ref(globals.colors.pink-350)",secondary:"ref(globals.colors.pink-450)",tertiary:"ref(globals.colors.pink-550)"},gray:{primary:"ref(globals.colors.gray-350)",secondary:"ref(globals.colors.gray-450)",tertiary:"ref(globals.colors.gray-550)"}}},content:{logo1:"ref(globals.colors.logo-1-dark)",logo2:"ref(globals.colors.logo-2-dark)",semantic:{contextual:{primary:"ref(globals.colors.black-850)"},overlay:{primary:"ref(globals.colors.black-850)"},brand:{primary:"ref(globals.colors.brand-050)",secondary:"ref(globals.colors.brand-100)",tertiary:"ref(globals.colors.brand-250)","on-brand":"ref(globals.colors.brand-050)"},neutral:{primary:"ref(globals.colors.gray-050)",secondary:"ref(globals.colors.gray-100)",tertiary:"ref(globals.colors.gray-250)","on-neutral":"ref(globals.colors.gray-050)"},info:{primary:"ref(globals.colors.info-050)",secondary:"ref(globals.colors.info-100)",tertiary:"ref(globals.colors.info-250)","on-info":"ref(globals.colors.info-050)"},success:{primary:"ref(globals.colors.success-050)",secondary:"ref(globals.colors.success-100)",tertiary:"ref(globals.colors.success-250)","on-success":"ref(globals.colors.success-050)"},warning:{primary:"ref(globals.colors.warning-050)",secondary:"ref(globals.colors.warning-100)",tertiary:"ref(globals.colors.warning-250)","on-warning":"ref(globals.colors.warning-050)"},error:{primary:"ref(globals.colors.error-050)",secondary:"ref(globals.colors.error-100)",tertiary:"ref(globals.colors.error-250)","on-error":"ref(globals.colors.error-050)"},disabled:{primary:"ref(globals.colors.gray-600)",secondary:"ref(globals.colors.black-300)"}},palette:{brand:{primary:"ref(globals.colors.brand-500)"},red:{primary:"ref(globals.colors.red-500)"},orange:{primary:"ref(globals.colors.orange-500)"},brown:{primary:"ref(globals.colors.brown-500)"},yellow:{primary:"ref(globals.colors.yellow-500)"},green:{primary:"ref(globals.colors.green-500)"},"blue-1":{primary:"ref(globals.colors.blue-1-500)"},"blue-2":{primary:"ref(globals.colors.blue-2-500)"},purple:{primary:"ref(globals.colors.purple-500)"},pink:{primary:"ref(globals.colors.pink-500)"},gray:{primary:"ref(globals.colors.gray-500)"}}},border:{surface:{primary:"ref(globals.colors.gray-750)"},semantic:{contextual:{primary:"ref(globals.colors.black-200)"},overlay:{primary:"ref(globals.colors.black-200)"},brand:{primary:"ref(globals.colors.brand-450)",secondary:"ref(globals.colors.brand-600)",tertiary:"ref(globals.colors.brand-700)"},neutral:{primary:"ref(globals.colors.gray-450)",secondary:"ref(globals.colors.gray-600)",tertiary:"ref(globals.colors.gray-700)"},info:{primary:"ref(globals.colors.info-450)",secondary:"ref(globals.colors.info-600)",tertiary:"ref(globals.colors.info-700)"},success:{primary:"ref(globals.colors.success-450)",secondary:"ref(globals.colors.success-600)",tertiary:"ref(globals.colors.success-700)"},warning:{primary:"ref(globals.colors.warning-450)",secondary:"ref(globals.colors.warning-600)",tertiary:"ref(globals.colors.warning-700)"},error:{primary:"ref(globals.colors.error-450)",secondary:"ref(globals.colors.error-600)",tertiary:"ref(globals.colors.error-700)"},disabled:{primary:"ref(globals.colors.gray-800)"}}}},t.default={themes:{default:{globals:t.globals,contextuals:t.contextualDefaultTokens,components:{}},dark:{globals:t.globals,contextuals:t.contextualDarkTokens,components:{}}}}}(fo)),fo}var R0;function sh(){if(R0)return Or;R0=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.getThemesFromGlobals=void 0;const t=lh(),e=ah(),r=["light","dark"],n={light:e.contextualDefaultTokens,dark:e.contextualDarkTokens},i=(o={},l={})=>(l.variants||r).reduce((s,c)=>{const d=l.prefix?`${l.prefix}-${c}`:c;return s[d]=t({globals:o,contextuals:n[c]},l.overrides||{}),s},{});return Or.getThemesFromGlobals=i,Or}var L0;function ch(){return L0||(L0=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getThemesFromGlobals=t.buildRefs=t.defaultTokenRefs=t.defaultThemes=t.defaultTokens=void 0;const e=ih(),r=oh();Object.defineProperty(t,"buildRefs",{enumerable:!0,get:function(){return r.buildRefs}});const n=sh();Object.defineProperty(t,"getThemesFromGlobals",{enumerable:!0,get:function(){return n.getThemesFromGlobals}}),t.defaultTokens=e.tokens.themes.default,t.defaultThemes=e.tokens.themes,t.defaultTokenRefs=(0,r.buildRefs)(t.defaultTokens)}(co)),co}var Ai=ch();const Ti={components:{modal:{"width-small":"342px"},tooltip:{padding:"4px 8px"},button:{"medium-height":"40px","medium-text-height":"40px","border-radius":"4px","border-radius--active":"4px","border-radius--focus":"4px"},datagrid:{"header--color":"ref(contextuals.content.semantic.neutral.primary)","header--size":"12px","header--weight":"500","body--background-color-hover":"ref(contextuals.background.semantic.neutral.tertiary)"},"forms-checkbox":{"font-size":"ref(globals.font.sizes.sm)"},badge:{"font-size":"ref(globals.font.sizes.xs)","border-radius":"12px","padding-inline":"ref(globals.spacings.xs)","padding-block":"ref(globals.spacings.2xs)",accent:{"background-color":"ref(contextuals.background.semantic.brand.secondary)",color:"ref(contextuals.content.semantic.brand.secondary)"},neutral:{"background-color":"ref(contextuals.background.semantic.neutral.secondary)",color:"ref(contextuals.content.semantic.neutral.secondary)"},danger:{"background-color":"ref(contextuals.background.semantic.error.secondary)",color:"ref(contextuals.content.semantic.error.secondary)"},success:{"background-color":"ref(contextuals.background.semantic.success.secondary)",color:"ref(contextuals.content.semantic.success.secondary)"},warning:{"background-color":"ref(contextuals.background.semantic.warning.secondary)",color:"ref(contextuals.content.semantic.warning.secondary)"},info:{"background-color":"ref(contextuals.background.semantic.info.secondary)",color:"ref(contextuals.content.semantic.info.secondary)"}}}},Xr={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, Inter, Roboto Flex Variable, sans-serif",base:"Marianne, Inter, Roboto Flex Variable, sans-serif"}},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","2xl":"3rem",xxxl:"3.5rem","3xl":"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xxs:"320px",xs:"480px",mobile:"768px",tablet:"1024px"}},Yu={colors:{"logo-1-light":"#4844AD","logo-2-light":"#4844AD","logo-1-dark":"#BEC5F0","logo-2-dark":"#BEC5F0","brand-050":"#EEF1FA","brand-100":"#DDE2F5","brand-150":"#CED3F1","brand-200":"#BEC5F0","brand-250":"#AFB5F1","brand-300":"#A0A5F6","brand-350":"#8F94FD","brand-400":"#8184FC","brand-450":"#7576EE","brand-500":"#6969DF","brand-550":"#5E5CD0","brand-600":"#534FC2","brand-650":"#4844AD","brand-700":"#3E3B98","brand-750":"#36347D","brand-800":"#2D2F5F","brand-850":"#262848","brand-900":"#1C1E32","brand-950":"#11131F","gray-000":"#FFFFFF","gray-025":"#F8F8F9","gray-050":"#F0F0F3","gray-100":"#E2E2EA","gray-150":"#D3D4E0","gray-200":"#C5C6D5","gray-250":"#B7B7CB","gray-300":"#A9A9BF","gray-350":"#9C9CB2","gray-400":"#8F8FA4","gray-450":"#828297","gray-500":"#75758A","gray-550":"#69697D","gray-600":"#5D5D70","gray-650":"#515164","gray-700":"#454558","gray-750":"#3A3A4C","gray-800":"#2F303D","gray-850":"#25252F","gray-900":"#1B1B23","gray-950":"#111114","gray-1000":"#000000","info-050":"#EAF2F9","info-100":"#D5E4F3","info-150":"#BFD7F0","info-200":"#A7CAEE","info-250":"#8DBDEF","info-300":"#6EB0F2","info-350":"#50A2F5","info-400":"#3593F4","info-450":"#1185ED","info-500":"#0077DE","info-550":"#0069CF","info-600":"#005BC0","info-650":"#0D4EAA","info-700":"#124394","info-750":"#163878","info-800":"#192F5A","info-850":"#192541","info-900":"#141B2D","info-950":"#0C111C","success-050":"#E8F1EA","success-100":"#CFE4D4","success-150":"#BAD9C1","success-200":"#A2CFAD","success-250":"#86C597","success-300":"#6CBA83","success-350":"#4FB070","success-400":"#40A363","success-450":"#309556","success-500":"#1E884A","success-550":"#027B3E","success-600":"#016D31","success-650":"#006024","success-700":"#005317","success-750":"#0D4511","success-800":"#11380E","success-850":"#132A11","success-900":"#101E0F","success-950":"#091209","warning-050":"#F8F0E9","warning-100":"#F1E0D3","warning-150":"#ECD0BC","warning-200":"#E8C0A4","warning-250":"#E8AE8A","warning-300":"#EB9970","warning-350":"#E98456","warning-400":"#E57036","warning-450":"#DA5E18","warning-500":"#CB5000","warning-550":"#BC4200","warning-600":"#AD3300","warning-650":"#9E2300","warning-700":"#882011","warning-750":"#731E16","warning-800":"#58201A","warning-850":"#401D18","warning-900":"#2E1714","warning-950":"#1D0F0D","error-050":"#F9EFEC","error-100":"#F4DFD9","error-150":"#F0CEC6","error-200":"#EEBCB2","error-250":"#EEA99D","error-300":"#EF9486","error-350":"#F37C6E","error-400":"#F65F53","error-450":"#F0463D","error-500":"#E82322","error-550":"#D7010E","error-600":"#C00100","error-650":"#AA0000","error-700":"#910C06","error-750":"#731E16","error-800":"#58201A","error-850":"#401D18","error-900":"#2E1714","error-950":"#1D0F0D","red-050":"#FAEFEE","red-100":"#F4DEDD","red-150":"#F1CDCB","red-200":"#EFBBBA","red-250":"#EEA8A8","red-300":"#F09394","red-350":"#F37B7E","red-400":"#EF6569","red-450":"#E94A55","red-500":"#DA3B49","red-550":"#CA2A3C","red-600":"#BB1330","red-650":"#A90021","red-700":"#910A13","red-750":"#731E16","red-800":"#58201A","red-850":"#411D18","red-900":"#2E1714","red-950":"#1D0F0D","orange-050":"#F8F0E9","orange-100":"#F1E0D3","orange-150":"#ECD0BD","orange-200":"#EABFA6","orange-250":"#EBAC90","orange-300":"#EC9772","orange-350":"#E5845A","orange-400":"#D6774D","orange-450":"#C86A40","orange-500":"#B95D33","orange-550":"#AB5025","orange-600":"#9D4315","orange-650":"#8F3600","orange-700":"#812900","orange-750":"#6C2511","orange-800":"#572017","orange-850":"#401D18","orange-900":"#2E1714","orange-950":"#1D0F0D","brown-050":"#F6F0E8","brown-100":"#F1E0D3","brown-150":"#EBD0BA","brown-200":"#E2C0A6","brown-250":"#D4B398","brown-300":"#C6A58B","brown-350":"#B8987E","brown-400":"#AA8B71","brown-450":"#9D7E65","brown-500":"#8F7158","brown-550":"#82654C","brown-600":"#765841","brown-650":"#694C35","brown-700":"#5D412A","brown-750":"#51361E","brown-800":"#452A13","brown-850":"#392008","brown-900":"#29180A","brown-950":"#1B0F08","yellow-050":"#F3F0E7","yellow-100":"#E9E2CF","yellow-150":"#E1D4B7","yellow-200":"#D9C599","yellow-250":"#D2B677","yellow-300":"#CAA756","yellow-350":"#C2972E","yellow-400":"#B98900","yellow-450":"#AB7B00","yellow-500":"#9D6E00","yellow-550":"#916100","yellow-600":"#855400","yellow-650":"#784700","yellow-700":"#6C3A00","yellow-750":"#5F2E00","yellow-800":"#512302","yellow-850":"#3E1D10","yellow-900":"#2D1711","yellow-950":"#1D0F0D","green-050":"#E6F1E9","green-100":"#CFE4D5","green-150":"#B8D8C1","green-200":"#A0CFAE","green-250":"#84C59A","green-300":"#65BA86","green-350":"#45B173","green-400":"#23A562","green-450":"#029755","green-500":"#008948","green-550":"#017B3B","green-600":"#006E2E","green-650":"#006022","green-700":"#005314","green-750":"#0D4510","green-800":"#11380E","green-850":"#132A11","green-900":"#101E0F","green-950":"#091209","blue-1-050":"#EBF1F9","blue-1-100":"#D6E4F4","blue-1-150":"#C1D7F0","blue-1-200":"#AACAEF","blue-1-250":"#8FBCEF","blue-1-300":"#7CAFEB","blue-1-350":"#68A1E4","blue-1-400":"#5B94D6","blue-1-450":"#4E86C7","blue-1-500":"#4279B9","blue-1-550":"#356CAC","blue-1-600":"#28609E","blue-1-650":"#1B5390","blue-1-700":"#0B4783","blue-1-750":"#0F3C6E","blue-1-800":"#133059","blue-1-850":"#152641","blue-1-900":"#121C2D","blue-1-950":"#0B111C","blue-2-050":"#E7F3F4","blue-2-100":"#CEE7E9","blue-2-150":"#B2DCE0","blue-2-200":"#91D1D7","blue-2-250":"#68C7D0","blue-2-300":"#43BBC5","blue-2-350":"#00AFBA","blue-2-400":"#01A0AA","blue-2-450":"#00929D","blue-2-500":"#00848F","blue-2-550":"#007682","blue-2-600":"#016874","blue-2-650":"#005B67","blue-2-700":"#004E5A","blue-2-750":"#00424E","blue-2-800":"#003642","blue-2-850":"#002A38","blue-2-900":"#061E28","blue-2-950":"#071219","purple-050":"#F7F0F6","purple-100":"#EEE0EE","purple-150":"#E7D1E7","purple-200":"#DBBFE4","purple-250":"#D3AEE2","purple-300":"#CB99E1","purple-350":"#C188D9","purple-400":"#B47BCB","purple-450":"#A66EBD","purple-500":"#9961AF","purple-550":"#8B55A1","purple-600":"#7E4894","purple-650":"#723C87","purple-700":"#633376","purple-750":"#552A65","purple-800":"#452551","purple-850":"#35213D","purple-900":"#261A2C","purple-950":"#17111C","pink-050":"#F8EFF4","pink-100":"#F0DFEA","pink-150":"#EACEDF","pink-200":"#E9BBD1","pink-250":"#E9A7C2","pink-300":"#E095B4","pink-350":"#D685A8","pink-400":"#C7799B","pink-450":"#B86C8D","pink-500":"#AA5F80","pink-550":"#9C5374","pink-600":"#8E4767","pink-650":"#813B5B","pink-700":"#732E4F","pink-750":"#632643","pink-800":"#521F38","pink-850":"#3E1C2B","pink-900":"#2D171F","pink-950":"#1C0E12","black-000":"#1B1B2300","black-050":"#1B1B230D","black-100":"#1B1B231A","black-150":"#1B1B2326","black-200":"#1B1B2333","black-250":"#1B1B2340","black-300":"#1B1B234D","black-350":"#1B1B2359","black-400":"#1B1B2366","black-450":"#1B1B2373","black-500":"#1B1B2380","black-550":"#1B1B238C","black-600":"#1B1B2399","black-650":"#1B1B23A6","black-700":"#1B1B23B2","black-750":"#1B1B23BF","black-800":"#1B1B23CC","black-850":"#1B1B23D9","black-900":"#1B1B23E5","black-950":"#111114F2","white-000":"#F8F8F900","white-050":"#F8F8F90D","white-100":"#F8F8F91A","white-150":"#F8F8F926","white-200":"#F8F8F933","white-250":"#F8F8F940","white-300":"#F8F8F94D","white-350":"#F8F8F959","white-400":"#F8F8F966","white-450":"#F8F8F973","white-500":"#F8F8F980","white-550":"#F8F8F98C","white-600":"#F8F8F999","white-650":"#F8F8F9A6","white-700":"#F8F8F9B2","white-750":"#F8F8F9BF","white-800":"#F8F8F9CC","white-850":"#F8F8F9D9","white-900":"#F8F8F9E5","white-950":"#F8F8F9F2","white-975":"#F8F8F9F9"},...Xr,font:{...Xr.font,families:{base:"Hanken Grotesk, Inter, Roboto Flex Variable, sans-serif",accent:"Hanken Grotesk, Inter, Roboto Flex Variable, sans-serif"}}},Xu={colors:{"logo-1-light":"#2845C1","logo-2-light":"#C83F49","logo-1-dark":"#95ABFF","logo-2-dark":"#E78087","brand-050":"#EDF0FF","brand-100":"#DAE2FF","brand-150":"#C8D3FF","brand-200":"#B5C4FF","brand-250":"#A2B6FF","brand-300":"#90A7FF","brand-350":"#7E98FF","brand-400":"#6C89FE","brand-450":"#5C7AF7","brand-500":"#4C6CEF","brand-550":"#3E5DE7","brand-600":"#304DDF","brand-650":"#2845C1","brand-700":"#223E9E","brand-750":"#1F367D","brand-800":"#1B2E5F","brand-850":"#172446","brand-900":"#121B30","brand-950":"#0C111A","gray-100":"#DFE2EA","gray-150":"#CFD5DE","gray-200":"#C1C7D3","gray-250":"#B2B9C7","gray-300":"#A4ABBC","gray-350":"#969EB0","gray-400":"#8891A4","gray-450":"#7B8498","gray-500":"#6D778C","gray-550":"#626A80","gray-600":"#555E74","gray-650":"#4A5267","gray-700":"#3F4759","gray-750":"#363B4C","gray-800":"#2B303D","gray-850":"#222631","gray-900":"#181B24","gray-950":"#0F1117","gray-1000":"#000000","info-050":"#E7F2FF","info-100":"#CFE5FF","info-150":"#B7D7FF","info-200":"#A0CAFE","info-250":"#8CBCF9","info-300":"#77AEF4","info-350":"#63A0EE","info-400":"#5092E7","info-450":"#4185DC","info-500":"#3677CC","info-550":"#2F6ABB","info-600":"#265EAA","info-650":"#28528F","info-700":"#274775","info-750":"#243C5E","info-800":"#20314A","info-850":"#1B2637","info-900":"#141C27","info-950":"#0D1118","success-050":"#DEF7E6","success-100":"#BAEECF","success-150":"#A5E2C0","success-200":"#95D4B3","success-250":"#85C6A7","success-300":"#74B99B","success-350":"#65AB8F","success-400":"#579E84","success-450":"#4B9079","success-500":"#40836F","success-550":"#367664","success-600":"#2B695A","success-650":"#2C5A50","success-700":"#2A4D45","success-750":"#26403C","success-800":"#213430","success-850":"#1B2826","success-900":"#151D1C","success-950":"#0D1212","warning-050":"#FFEEDF","warning-100":"#FFDCBE","warning-150":"#FFCA9C","warning-200":"#FFB778","warning-250":"#FDA54F","warning-300":"#F59425","warning-350":"#E78613","warning-400":"#D7790C","warning-450":"#C86C08","warning-500":"#B85F03","warning-550":"#A75400","warning-600":"#984800","warning-650":"#814112","warning-700":"#6C3A19","warning-750":"#58321C","warning-800":"#452A1A","warning-850":"#352117","warning-900":"#261813","warning-950":"#170F0C","error-050":"#FFEDEB","error-100":"#FFDAD7","error-150":"#FFC7C2","error-200":"#FFB3AD","error-250":"#FF9F99","error-300":"#FF8984","error-350":"#FF706E","error-400":"#FB5759","error-450":"#F63A45","error-500":"#E32C39","error-550":"#CF202D","error-600":"#BD0F23","error-650":"#9D2227","error-700":"#812727","error-750":"#672624","error-800":"#512220","error-850":"#3D1C1B","error-900":"#2A1614","error-950":"#190E0D","red-050":"#FFEDEB","red-100":"#FFDAD7","red-150":"#FFC7C2","red-200":"#FFB3AD","red-250":"#FF9F99","red-300":"#FF8984","red-350":"#FF706E","red-400":"#FB5759","red-450":"#F63A45","red-500":"#E32C39","red-550":"#CF202D","red-600":"#BD0F23","red-650":"#9D2227","red-700":"#812727","red-750":"#672624","red-800":"#512220","red-850":"#3D1C1B","red-900":"#410003","red-950":"#190E0D","orange-050":"#FCEDEB","orange-100":"#F8DCD7","orange-150":"#F1CCC5","orange-200":"#EABCB4","orange-250":"#E2ACA2","orange-300":"#DA9C92","orange-350":"#D28C81","orange-400":"#CA7C70","orange-450":"#BE6E62","orange-500":"#AE6257","orange-550":"#9E564D","orange-600":"#8F4B42","orange-650":"#79443D","orange-700":"#643C37","orange-750":"#513430","orange-800":"#412B28","orange-850":"#312220","orange-900":"#231918","orange-950":"#150F0F","brown-050":"#F9EFEA","brown-100":"#F3DFD3","brown-150":"#EACFC1","brown-200":"#E2BFAE","brown-250":"#D8B19C","brown-300":"#D0A189","brown-350":"#C3937B","brown-400":"#B5866D","brown-450":"#A77A62","brown-500":"#996D57","brown-550":"#8B614D","brown-600":"#7C5542","brown-650":"#6A4C3C","brown-700":"#594236","brown-750":"#49382F","brown-800":"#3B2E28","brown-850":"#2D2420","brown-900":"#201A18","brown-950":"#13100F","yellow-050":"#FDF1C5","yellow-100":"#FBE18E","yellow-150":"#F4D261","yellow-200":"#EAC244","yellow-250":"#DFB41B","yellow-300":"#D1A516","yellow-350":"#C49711","yellow-400":"#B78A0C","yellow-450":"#A87D07","yellow-500":"#9B6F02","yellow-550":"#8D6300","yellow-600":"#7F5600","yellow-650":"#6E4C11","yellow-700":"#5D4219","yellow-750":"#4D371B","yellow-800":"#3D2E1A","yellow-850":"#2F2417","yellow-900":"#221A12","yellow-950":"#14100C","green-050":"#E7F9B3","green-100":"#D5EC98","green-150":"#C5DE86","green-200":"#B5D174","green-250":"#A5C464","green-300":"#95B755","green-350":"#85AA45","green-400":"#769D39","green-450":"#688F30","green-500":"#5A8228","green-550":"#4D7621","green-600":"#416919","green-650":"#3A5B20","green-700":"#324E22","green-750":"#2C4122","green-800":"#24351D","green-850":"#1D2919","green-900":"#161E13","green-950":"#0E120C","blue-1-050":"#E7F2FF","blue-1-100":"#CFE5FF","blue-1-150":"#B7D7FF","blue-1-200":"#A0CAFE","blue-1-250":"#8CBCF9","blue-1-300":"#77AEF4","blue-1-350":"#63A0EE","blue-1-400":"#5092E7","blue-1-450":"#4185DC","blue-1-500":"#3677CC","blue-1-550":"#2F6ABB","blue-1-600":"#265EAA","blue-1-650":"#28528F","blue-1-700":"#274775","blue-1-750":"#243C5E","blue-1-800":"#20314A","blue-1-850":"#1B2637","blue-1-900":"#141C27","blue-1-950":"#0D1118","blue-2-050":"#E2F4FD","blue-2-100":"#C4E8F8","blue-2-150":"#AADCF2","blue-2-200":"#93CFEB","blue-2-250":"#7CC2E2","blue-2-300":"#6CB4D6","blue-2-350":"#5CA7C9","blue-2-400":"#5099BC","blue-2-450":"#458BAE","blue-2-500":"#3A7EA0","blue-2-550":"#327191","blue-2-600":"#286483","blue-2-650":"#2B5770","blue-2-700":"#294A5E","blue-2-750":"#263E4D","blue-2-800":"#22323D","blue-2-850":"#1C272E","blue-2-900":"#151D21","blue-2-950":"#0E1114","purple-050":"#F5EEFF","purple-100":"#ECDCFF","purple-150":"#E2CBFF","purple-200":"#D9B9FF","purple-250":"#D0A7FF","purple-300":"#C894FE","purple-350":"#BE83FA","purple-400":"#B570F5","purple-450":"#AB5EF0","purple-500":"#A04BE8","purple-550":"#933CDB","purple-600":"#8530C8","purple-650":"#7033A5","purple-700":"#5D3185","purple-750":"#4C2C6A","purple-800":"#3C2652","purple-850":"#2D203C","purple-900":"#21182A","purple-950":"#130F19","pink-050":"#FFEBF6","pink-100":"#FFD8ED","pink-150":"#FCC4E3","pink-200":"#F7B2D9","pink-250":"#F29FCE","pink-300":"#ED8CC3","pink-350":"#E779B8","pink-400":"#E264AD","pink-450":"#D2579E","pink-500":"#C24B8E","pink-550":"#B0417F","pink-600":"#9F3670","pink-650":"#873560","pink-700":"#6F3250","pink-750":"#5A2C43","pink-800":"#472635","pink-850":"#351F29","pink-900":"#26171D","pink-950":"#170F12","black-000":"#181B2400","black-050":"#181B240D","black-100":"#181B241A","black-150":"#181B2426","black-200":"#181B2433","black-250":"#181B2440","black-300":"#181B244D","black-350":"#181B2459","black-400":"#181B2466","black-450":"#181B2473","black-500":"#181B2480","black-550":"#181B248C","black-600":"#181B2499","black-650":"#181B24A6","black-700":"#181B24B2","black-750":"#181B24BF","black-800":"#181B24CC","black-850":"#181B24D9","black-900":"#181B24E5","black-950":"#0F1117F2","white-000":"#F6F8F900","white-050":"#F6F8F90D","white-100":"#F6F8F91A","white-150":"#F6F8F926","white-200":"#F6F8F933","white-250":"#F6F8F940","white-300":"#F6F8F94D","white-350":"#F6F8F959","white-400":"#F6F8F966","white-450":"#F6F8F973","white-500":"#F6F8F980","white-550":"#F6F8F98C","white-600":"#F6F8F999","white-650":"#F6F8F9A6","white-700":"#F6F8F9B2","white-750":"#F6F8F9BF","white-800":"#F6F8F9CC","white-850":"#F6F8F9D9","white-900":"#F6F8F9E5","white-950":"#F6F8F9F2","white-975":"#F6F8F9F9"},...Xr},Ju={colors:{"logo-1-light":"#2845C1","logo-2-light":"#FBC63A","logo-1-dark":"#94A3E5","logo-2-dark":"#EFD183","brand-050":"#EEF0F9","brand-100":"#DDE2F5","brand-150":"#CBD4F1","brand-200":"#B8C6F0","brand-250":"#A5B7F2","brand-300":"#91A8F7","brand-350":"#7C98FE","brand-400":"#6A89FF","brand-450":"#5A7AFB","brand-500":"#4B6BF0","brand-550":"#3E5CE7","brand-600":"#3352D5","brand-650":"#2A47C0","brand-700":"#2340A3","brand-750":"#223A7F","brand-800":"#1F325F","brand-850":"#1B2845","brand-900":"#151E30","brand-950":"#0D121D","gray-000":"#FFFFFF","gray-025":"#F6F8FA","gray-050":"#ECF1F7","gray-100":"#DDE3F3","gray-150":"#CCD4EA","gray-200":"#BCC7E0","gray-250":"#AEB9D2","gray-300":"#A1ABC4","gray-350":"#949EB6","gray-400":"#8791A9","gray-450":"#7A849B","gray-500":"#6D778E","gray-550":"#616A81","gray-600":"#555E75","gray-650":"#495268","gray-700":"#3E475C","gray-750":"#333B50","gray-800":"#283044","gray-850":"#1E2539","gray-900":"#171B28","gray-950":"#0F1118","gray-1000":"#000000","info-050":"#E9F2F8","info-100":"#D2E5F1","info-150":"#C0D7F0","info-200":"#AEC8F0","info-250":"#9EB9F2","info-300":"#8DABEE","info-350":"#7B9DE9","info-400":"#6E8FDB","info-450":"#6282CD","info-500":"#5575BF","info-550":"#4968B1","info-600":"#3E5CA3","info-650":"#344F97","info-700":"#294389","info-750":"#243972","info-800":"#1D2F5B","info-850":"#1A2744","info-900":"#151D2F","info-950":"#0E131F","success-050":"#E7F1E9","success-100":"#CFE3D3","success-150":"#B9D8C0","success-200":"#A1CEAC","success-250":"#85C496","success-300":"#63BC7F","success-350":"#45B16B","success-400":"#1CA659","success-450":"#00984C","success-500":"#008A3F","success-550":"#007C32","success-600":"#006E24","success-650":"#016016","success-700":"#005305","success-750":"#0D450A","success-800":"#11380E","success-850":"#132A11","success-900":"#101E0F","success-950":"#091209","warning-050":"#F6F0E8","warning-100":"#EDE2D1","warning-150":"#E6D3B8","warning-200":"#E3C39F","warning-250":"#E3B082","warning-300":"#E19E5C","warning-350":"#D98E3F","warning-400":"#CF7D19","warning-450":"#C17000","warning-500":"#B36300","warning-550":"#A45600","warning-600":"#964900","warning-650":"#893C00","warning-700":"#7B2F00","warning-750":"#68270D","warning-800":"#562013","warning-850":"#411D18","warning-900":"#2E1714","warning-950":"#1D0F0D","error-050":"#F9EFEC","error-100":"#F4DFD9","error-150":"#F0CEC6","error-200":"#EEBCB2","error-250":"#EEA99D","error-300":"#EF9487","error-350":"#F37C6E","error-400":"#F65F53","error-450":"#EF443C","error-500":"#E0342E","error-550":"#D0201F","error-600":"#C0000C","error-650":"#AA0000","error-700":"#910C06","error-750":"#731E16","error-800":"#58201A","error-850":"#411D18","error-900":"#2E1714","error-950":"#1D0F0D","red-050":"#F9EFEC","red-100":"#F4DEDA","red-150":"#F0CDC9","red-200":"#EEBBB6","red-250":"#EEA8A2","red-300":"#F0938D","red-350":"#EC7E78","red-400":"#E46D67","red-450":"#D95B58","red-500":"#CA4E4B","red-550":"#BB403F","red-600":"#AC3233","red-650":"#9D2227","red-700":"#882023","red-750":"#721D1B","red-800":"#58201A","red-850":"#401D18","red-900":"#2E1714","red-950":"#1D0F0D","orange-050":"#F8F0E9","orange-100":"#F1E0D3","orange-150":"#ECD0BD","orange-200":"#E9C0A5","orange-250":"#E8AE8A","orange-300":"#EB9870","orange-350":"#EB845A","orange-400":"#E66E37","orange-450":"#DD5B16","orange-500":"#CE4D00","orange-550":"#BF3E00","orange-600":"#B02F00","orange-650":"#A11E00","orange-700":"#8A1E14","orange-750":"#731E16","orange-800":"#58201A","orange-850":"#401D18","orange-900":"#2E1714","orange-950":"#1D0F0D","brown-050":"#F5F0E8","brown-100":"#ECE2D1","brown-150":"#E9D1B9","brown-200":"#E3C19D","brown-250":"#DCB187","brown-300":"#D2A26F","brown-350":"#C49562","brown-400":"#B68855","brown-450":"#A97B48","brown-500":"#9B6E3B","brown-550":"#8E612F","brown-600":"#815521","brown-650":"#744913","brown-700":"#673D00","brown-750":"#5A3100","brown-800":"#4E2600","brown-850":"#3D1F0B","brown-900":"#2C170F","brown-950":"#1C0F0B","yellow-050":"#F3F0E7","yellow-100":"#E9E2CF","yellow-150":"#E0D4B7","yellow-200":"#DAC59A","yellow-250":"#D5B67A","yellow-300":"#D0A559","yellow-350":"#CC9331","yellow-400":"#C48400","yellow-450":"#B77600","yellow-500":"#AA6800","yellow-550":"#9D5A00","yellow-600":"#914D00","yellow-650":"#843F00","yellow-700":"#773200","yellow-750":"#6A2601","yellow-800":"#56210F","yellow-850":"#401D16","yellow-900":"#2E1714","yellow-950":"#1D0F0D","green-050":"#E3F1EF","green-100":"#CAE5E1","green-150":"#B0DBD4","green-200":"#91D1C7","green-250":"#6AC8BC","green-300":"#4DBCAF","green-350":"#3CAFA2","green-400":"#2AA194","green-450":"#109487","green-500":"#00867A","green-550":"#00786D","green-600":"#016A60","green-650":"#015D53","green-700":"#005047","green-750":"#00443B","green-800":"#00382F","green-850":"#002C25","green-900":"#041F1A","green-950":"#041310","blue-1-050":"#EAF2F9","blue-1-100":"#D4E4F3","blue-1-150":"#BFD7F0","blue-1-200":"#AAC9EF","blue-1-250":"#96BBF1","blue-1-300":"#82ACF6","blue-1-350":"#709BFE","blue-1-400":"#608BFF","blue-1-450":"#537BFB","blue-1-500":"#476DEC","blue-1-550":"#3C60DD","blue-1-600":"#3252CF","blue-1-650":"#2B48B9","blue-1-700":"#28409B","blue-1-750":"#24397E","blue-1-800":"#223260","blue-1-850":"#1F2A48","blue-1-900":"#191F32","blue-1-950":"#111320","blue-2-050":"#E5F2F3","blue-2-100":"#CDE6EC","blue-2-150":"#B7D9EA","blue-2-200":"#9BCDE7","blue-2-250":"#84C1E0","blue-2-300":"#6BB4D8","blue-2-350":"#5CA6CB","blue-2-400":"#4D99BC","blue-2-450":"#3E8CAE","blue-2-500":"#2F7FA2","blue-2-550":"#1F7295","blue-2-600":"#056688","blue-2-650":"#00597B","blue-2-700":"#004C6C","blue-2-750":"#003F5E","blue-2-800":"#003353","blue-2-850":"#0C273E","blue-2-900":"#0E1C2C","blue-2-950":"#0A121C","purple-050":"#EDF1FA","purple-100":"#DCE2F5","purple-150":"#CCD4F1","purple-200":"#BCC4F0","purple-250":"#ADB6F2","purple-300":"#9EA6F6","purple-350":"#8E95FD","purple-400":"#8083FF","purple-450":"#7173FF","purple-500":"#6665F1","purple-550":"#5B57E2","purple-600":"#5049D4","purple-650":"#4641BC","purple-700":"#3D39A2","purple-750":"#363680","purple-800":"#2E3162","purple-850":"#242848","purple-900":"#1C1E32","purple-950":"#121320","pink-050":"#F8EFF4","pink-100":"#F0DEE9","pink-150":"#EBCDDF","pink-200":"#E7BDD6","pink-250":"#E5A9CC","pink-300":"#E695C0","pink-350":"#EA7CAE","pink-400":"#E4659F","pink-450":"#DD4F93","pink-500":"#CD4085","pink-550":"#BE3279","pink-600":"#AE216D","pink-650":"#9B195D","pink-700":"#86164E","pink-750":"#6E1B3D","pink-800":"#551E31","pink-850":"#3F1C24","pink-900":"#2D161A","pink-950":"#1C0E10","black-000":"#191B2200","black-050":"#191B220D","black-100":"#191B221A","black-150":"#191B2226","black-200":"#191B2233","black-250":"#191B2240","black-300":"#191B224D","black-350":"#191B2259","black-400":"#191B2266","black-450":"#191B2273","black-500":"#191B2280","black-550":"#191B228C","black-600":"#191B2299","black-650":"#191B22A6","black-700":"#191B22B2","black-750":"#191B22BF","black-800":"#191B22CC","black-850":"#191B22D9","black-900":"#191B22E5","black-950":"#0F1115F2","white-000":"#F7F8F800","white-050":"#F7F8F80D","white-100":"#F7F8F81A","white-150":"#F7F8F826","white-200":"#F7F8F833","white-250":"#F7F8F840","white-300":"#F7F8F84D","white-350":"#F7F8F859","white-400":"#F7F8F866","white-450":"#F7F8F873","white-500":"#F7F8F880","white-550":"#F7F8F88C","white-600":"#F7F8F899","white-650":"#F7F8F8A6","white-700":"#F7F8F8B2","white-750":"#F7F8F8BF","white-800":"#F7F8F8CC","white-850":"#F7F8F8D9","white-900":"#F7F8F8E5","white-950":"#F7F8F8F2","white-975":"#F7F8F8F9"},...Xr},K0=Ai.getThemesFromGlobals(Yu,{overrides:Ti}),uh=Ai.getThemesFromGlobals(Xu,{prefix:"dsfr",overrides:Ti}),dh=Ai.getThemesFromGlobals(Ju,{prefix:"anct",overrides:Ti}),fh={themes:{default:K0.light,dark:K0.dark,...uh,...dh}},al={...fh},j0={mobile:parseInt(al.themes.default.globals.breakpoints.mobile.replace("px","")),tablet:parseInt(al.themes.default.globals.breakpoints.tablet.replace("px",""))},H0=(t,e)=>({isMobile:t<=e.mobile,isTablet:t<=e.tablet,isDesktop:t>e.tablet}),mt=()=>{const[t,e]=u.useState(H0(window.innerWidth,j0));return u.useEffect(()=>{const r=()=>{const n=H0(window.innerWidth,j0);JSON.stringify(n)===JSON.stringify(t)||e(n)};return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[t]),t},Qu=u.memo(({apiUrl:t,data:e,...r})=>{const{t:n}=X.useCunningham(),{isMobile:i}=mt(),o=u.useRef(null),l=u.useMemo(()=>r.widgetPath||"https://static.suite.anct.gouv.fr/widgets/lagaufre.js",[r.widgetPath]),a=e!=null&&e.services?void 0:t,s=r.label||n("components.laGaufre.label"),c=r.closeLabel||n("components.laGaufre.closeLabel"),d=r.loadingText||n("components.laGaufre.loadingText"),f=r.newWindowLabelSuffix||n("components.laGaufre.newWindowLabelSuffix"),p=r.background||"",g=r.headerLabel||n("components.laGaufre.headerLabel"),y=r.viewMoreLabel||n("components.laGaufre.viewMoreLabel"),h=r.viewLessLabel||n("components.laGaufre.viewLessLabel");return u.useEffect(()=>{window._lasuite_widget=window._lasuite_widget||[],document.querySelectorAll("#lasuite-widget-lagaufre-shadow").forEach(m=>{var C;return(C=m.parentNode)==null?void 0:C.removeChild(m)}),window._lasuite_widget.push(["lagaufre","init",{...r,api:a,label:s,data:e,closeLabel:c,background:p,showFooter:i,headerLabel:g,headerLogo:nh,loadingText:d,newWindowLabelSuffix:f,viewMoreLabel:y,viewLessLabel:h,buttonElement:o.current,position:()=>{var m,C,E,F;return{position:"absolute",top:(((m=o.current)==null?void 0:m.offsetTop)??0)+(((C=o.current)==null?void 0:C.offsetHeight)??0)+10,right:window.innerWidth-(((E=o.current)==null?void 0:E.offsetLeft)??0)-(((F=o.current)==null?void 0:F.offsetWidth)??0)}}}])},[y,h,c,g,d,a,l]),b.jsxs(b.Fragment,{children:[b.jsx("script",{src:l,id:"lasuite-gaufre-script",async:!0}),b.jsx("div",{children:b.jsx(X.Button,{ref:o,icon:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",viewBox:"0 0 18 18",children:[b.jsx("defs",{children:b.jsx("path",{id:"a",fill:"var(--c--contextuals--background--semantic--brand--primary)",d:"M2.796.5c.469 0 .704 0 .892.064.351.12.627.397.748.748.064.188.064.423.064.892v.592c0 .469 0 .704-.064.892-.12.351-.397.627-.748.748-.188.064-.423.064-.892.064h-.592c-.469 0-.704 0-.892-.064a1.2 1.2 0 0 1-.748-.748C.5 3.5.5 3.265.5 2.796v-.592c0-.469 0-.704.064-.892.12-.351.397-.627.748-.748C1.5.5 1.735.5 2.204.5z"})}),b.jsx("use",{href:"#a"}),b.jsx("use",{href:"#a",transform:"translate(6.5)"}),b.jsx("use",{href:"#a",transform:"translate(13)"}),b.jsx("use",{href:"#a",transform:"translate(0 6.5)"}),b.jsx("use",{href:"#a",transform:"translate(6.5 6.5)"}),b.jsx("use",{href:"#a",transform:"translate(13 6.5)"}),b.jsx("use",{href:"#a",transform:"translate(0 13)"}),b.jsx("use",{href:"#a",transform:"translate(6.5 13)"}),b.jsx("use",{href:"#a",transform:"translate(13 13)"})]}),"aria-label":s,variant:"tertiary",className:"lagaufre-button"})})]})});Qu.displayName="LaGaufreV2";var xe=(t=>(t.X_SMALL="xsmall",t.SMALL="small",t.MEDIUM="medium",t.LARGE="large",t.X_LARGE="xlarge",t))(xe||{}),ni=(t=>(t.OUTLINED="outlined",t.FILLED="filled",t))(ni||{});const Jr=({name:t,size:e,className:r,color:n,type:i=ni.FILLED,...o})=>{const l=ye("material-icons",{[`icon--${e}`]:e!==void 0,[`icon--${i}`]:i!==ni.OUTLINED},r),a={color:n,fontSize:typeof e=="number"?`${e}px`:void 0};return b.jsx("span",{className:l,style:a,...o,children:t})},ed={[xe.X_SMALL]:11,[xe.SMALL]:16,[xe.MEDIUM]:24,[xe.LARGE]:32,[xe.X_LARGE]:40},td={[xe.X_SMALL]:16,[xe.SMALL]:24,[xe.MEDIUM]:32,[xe.LARGE]:40,[xe.X_LARGE]:48},hh=t=>td[t]??24,ph=t=>ed[t]??24,rd=({languages:t,onChange:e,size:r,color:n="brand",variant:i="tertiary",fullWidth:o,compact:l=!1})=>{const{isOpen:a,setIsOpen:s}=bt(),c=()=>{const h=t.find(v=>v.isChecked);return(h==null?void 0:h.value)??t[0].value},[d,f]=u.useState(c),p=h=>{f(h),e==null||e(h)},g=u.useMemo(()=>{if(r)switch(r){case"nano":return xe.X_SMALL;case"small":return xe.SMALL;case"medium":return xe.MEDIUM}},[r]);u.useEffect(()=>{f(c)},[t]);const y=u.useMemo(()=>{const h=t.find(v=>v.value===d);return(h==null?void 0:h.shortLabel)??(h==null?void 0:h.label)},[t,d]);return b.jsx(kt,{options:t,isOpen:a,onOpenChange:s,onSelectValue:p,selectedValues:[d],children:b.jsxs(X.Button,{onClick:()=>s(!a),className:"c__language-picker",icon:b.jsx(Jr,{name:a?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",size:r,color:l?"neutral":n,variant:i,fullWidth:o,children:[l?null:b.jsx(Jr,{name:"translate",size:g}),b.jsx("span",{className:"c__language-picker__label",children:y})]})})},nd=({leftIcon:t,rightIcon:e,languages:r,onTogglePanel:n,isPanelOpen:i})=>{const{t:o}=X.useCunningham();return b.jsxs("div",{className:"c__header",children:[b.jsx("div",{className:"c__header__toggle-menu",children:b.jsx(X.Button,{size:"medium",onClick:n,"aria-label":o(i?"Close the menu":"Open the menu"),variant:"tertiary",icon:b.jsx("span",{className:"material-icons c__header__toggle-menu__icon",children:i?"close":"menu"})})}),b.jsx("div",{className:"c__header__left",children:t}),b.jsxs("div",{className:"c__header__right",children:[r&&b.jsx("div",{className:"c__header__right__language-picker",children:b.jsx(rd,{languages:r})}),e]})]})},id=({children:t,isOpen:e=!1,hasHeader:r=!0})=>{const{isDesktop:n}=mt();return n?b.jsx("div",{className:ye("c__left-panel",{"has-header":r}),children:t}):b.jsx("div",{className:ye("c__left-panel__mobile",{open:e}),children:t})},{createElement:Cr,createContext:gh,forwardRef:od,useCallback:$e,useContext:ld,useEffect:$t,useImperativeHandle:ad,useLayoutEffect:vh,useMemo:bh,useRef:Ae,useState:hr}=T,V0=T[`useId${Math.random()}`.slice(0,5)],mh=vh,_i=gh(null);_i.displayName="PanelGroupContext";const Pt=mh,yh=typeof V0=="function"?V0:()=>null;let Ch=0;function aa(t=null){const e=yh(),r=Ae(t||e||null);return r.current===null&&(r.current=""+Ch++),t??r.current}function sd({children:t,className:e="",collapsedSize:r,collapsible:n,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:c,onExpand:d,onResize:f,order:p,style:g,tagName:y="div",...h}){const v=ld(_i);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:m,expandPanel:C,getPanelSize:E,getPanelStyle:F,groupId:D,isPanelCollapsed:x,reevaluatePanelConstraints:S,registerPanel:O,resizePanel:K,unregisterPanel:H}=v,w=aa(l),M=Ae({callbacks:{onCollapse:c,onExpand:d,onResize:f},constraints:{collapsedSize:r,collapsible:n,defaultSize:i,maxSize:a,minSize:s},id:w,idIsFromProps:l!==void 0,order:p});Ae({didLogMissingDefaultSizeWarning:!1}),Pt(()=>{const{callbacks:_,constraints:U}=M.current,P={...U};M.current.id=w,M.current.idIsFromProps=l!==void 0,M.current.order=p,_.onCollapse=c,_.onExpand=d,_.onResize=f,U.collapsedSize=r,U.collapsible=n,U.defaultSize=i,U.maxSize=a,U.minSize=s,(P.collapsedSize!==U.collapsedSize||P.collapsible!==U.collapsible||P.maxSize!==U.maxSize||P.minSize!==U.minSize)&&S(M.current,P)}),Pt(()=>{const _=M.current;return O(_),()=>{H(_)}},[p,w,O,H]),ad(o,()=>({collapse:()=>{m(M.current)},expand:_=>{C(M.current,_)},getId(){return w},getSize(){return E(M.current)},isCollapsed(){return x(M.current)},isExpanded(){return!x(M.current)},resize:_=>{K(M.current,_)}}),[m,C,E,x,w,K]);const Z=F(M.current,i);return Cr(y,{...h,children:t,className:e,id:l,style:{...Z,...g},"data-panel":"","data-panel-collapsible":n||void 0,"data-panel-group-id":D,"data-panel-id":w,"data-panel-size":parseFloat(""+Z.flexGrow).toFixed(1)})}const sl=od((t,e)=>Cr(sd,{...t,forwardedRef:e}));sd.displayName="Panel";sl.displayName="forwardRef(Panel)";let cl=null,Ft=null;function Eh(t,e){if(e){const r=(e&hd)!==0,n=(e&pd)!==0,i=(e&gd)!==0,o=(e&vd)!==0;if(r)return i?"se-resize":o?"ne-resize":"e-resize";if(n)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 wh(){Ft!==null&&(document.head.removeChild(Ft),cl=null,Ft=null)}function ho(t,e){const r=Eh(t,e);cl!==r&&(cl=r,Ft===null&&(Ft=document.createElement("style"),document.head.appendChild(Ft)),Ft.innerHTML=`*{cursor: ${r}!important;}`)}function cd(t){return t.type==="keydown"}function ud(t){return t.type.startsWith("pointer")}function dd(t){return t.type.startsWith("mouse")}function ki(t){if(ud(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(dd(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function Dh(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function xh(t,e,r){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 Sh(t,e){if(t===e)throw new Error("Cannot compare node with itself");const r={a:W0(t),b:W0(e)};let n;for(;r.a.at(-1)===r.b.at(-1);)t=r.a.pop(),e=r.b.pop(),n=t;Q(n,"Stacking order can only be calculated for elements with a common ancestor");const i={a:U0(z0(r.a)),b:U0(z0(r.b))};if(i.a===i.b){const o=n.childNodes,l={a:r.a.at(-1),b:r.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 Fh=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function $h(t){var e;const r=getComputedStyle((e=fd(t))!==null&&e!==void 0?e:t).display;return r==="flex"||r==="inline-flex"}function Ph(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||$h(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"||Fh.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function z0(t){let e=t.length;for(;e--;){const r=t[e];if(Q(r,"Missing node"),Ph(r))return r}return null}function U0(t){return t&&Number(getComputedStyle(t).zIndex)||0}function W0(t){const e=[];for(;t;)e.push(t),t=fd(t);return e}function fd(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const hd=1,pd=2,gd=4,vd=8,Ah=Dh()==="coarse";let He=[],pr=!1,ut=new Map,Ii=new Map;const Qr=new Set;function Th(t,e,r,n,i){var o;const{ownerDocument:l}=e,a={direction:r,element:e,hitAreaMargins:n,setResizeHandlerState:i},s=(o=ut.get(l))!==null&&o!==void 0?o:0;return ut.set(l,s+1),Qr.add(a),ii(),function(){var d;Ii.delete(t),Qr.delete(a);const f=(d=ut.get(l))!==null&&d!==void 0?d:1;if(ut.set(l,f-1),ii(),f===1&&ut.delete(l),He.includes(a)){const p=He.indexOf(a);p>=0&&He.splice(p,1),ca(),i("up",!0,null)}}}function Z0(t){const{target:e}=t,{x:r,y:n}=ki(t);pr=!0,sa({target:e,x:r,y:n}),ii(),He.length>0&&(oi("down",t),t.preventDefault(),t.stopPropagation())}function Mr(t){const{x:e,y:r}=ki(t);if(pr&&t.buttons===0&&(pr=!1,oi("up",t)),!pr){const{target:n}=t;sa({target:n,x:e,y:r})}oi("move",t),ca(),He.length>0&&t.preventDefault()}function Zt(t){const{target:e}=t,{x:r,y:n}=ki(t);Ii.clear(),pr=!1,He.length>0&&t.preventDefault(),oi("up",t),sa({target:e,x:r,y:n}),ca(),ii()}function sa({target:t,x:e,y:r}){He.splice(0);let n=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(n=t),Qr.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:c,right:d,top:f}=a,p=Ah?l.coarse:l.fine;if(e>=c-p&&e<=d+p&&r>=f-p&&r<=s+p){if(n!==null&&document.contains(n)&&o!==n&&!o.contains(n)&&!n.contains(o)&&Sh(n,o)>0){let y=n,h=!1;for(;y&&!y.contains(o);){if(xh(y.getBoundingClientRect(),a)){h=!0;break}y=y.parentElement}if(h)return}He.push(i)}})}function po(t,e){Ii.set(t,e)}function ca(){let t=!1,e=!1;He.forEach(n=>{const{direction:i}=n;i==="horizontal"?t=!0:e=!0});let r=0;Ii.forEach(n=>{r|=n}),t&&e?ho("intersection",r):t?ho("horizontal",r):e?ho("vertical",r):wh()}function ii(){ut.forEach((t,e)=>{const{body:r}=e;r.removeEventListener("contextmenu",Zt),r.removeEventListener("pointerdown",Z0),r.removeEventListener("pointerleave",Mr),r.removeEventListener("pointermove",Mr)}),window.removeEventListener("pointerup",Zt),window.removeEventListener("pointercancel",Zt),Qr.size>0&&(pr?(He.length>0&&ut.forEach((t,e)=>{const{body:r}=e;t>0&&(r.addEventListener("contextmenu",Zt),r.addEventListener("pointerleave",Mr),r.addEventListener("pointermove",Mr))}),window.addEventListener("pointerup",Zt),window.addEventListener("pointercancel",Zt)):ut.forEach((t,e)=>{const{body:r}=e;t>0&&(r.addEventListener("pointerdown",Z0,{capture:!0}),r.addEventListener("pointermove",Mr))}))}function oi(t,e){Qr.forEach(r=>{const{setResizeHandlerState:n}=r,i=He.includes(r);n(t,i,e)})}function _h(){const[t,e]=hr(0);return $e(()=>e(r=>r+1),[])}function Q(t,e){if(!t)throw console.error(e),Error(e)}const ua=10;function It(t,e,r=ua){return t.toFixed(r)===e.toFixed(r)?0:t>e?1:-1}function Qe(t,e,r=ua){return It(t,e,r)===0}function Te(t,e,r){return It(t,e,r)===0}function kh(t,e,r){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){const i=t[n],o=e[n];if(!Te(i,o,r))return!1}return!0}function sr({panelConstraints:t,panelIndex:e,size:r}){const n=t[e];Q(n!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=n;if(It(r,a)<0)if(o){const s=(i+a)/2;It(r,s)<0?r=i:r=a}else r=a;return r=Math.min(l,r),r=parseFloat(r.toFixed(ua)),r}function Hr({delta:t,initialLayout:e,panelConstraints:r,pivotIndices:n,prevLayout:i,trigger:o}){if(Te(t,0))return e;const l=[...e],[a,s]=n;Q(a!=null,"Invalid first pivot index"),Q(s!=null,"Invalid second pivot index");let c=0;if(o==="keyboard"){{const f=t<0?s:a,p=r[f];Q(p,`Panel constraints not found for index ${f}`);const{collapsedSize:g=0,collapsible:y,minSize:h=0}=p;if(y){const v=e[f];if(Q(v!=null,`Previous layout not found for panel index ${f}`),Te(v,g)){const m=h-v;It(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}{const f=t<0?a:s,p=r[f];Q(p,`No panel constraints found for index ${f}`);const{collapsedSize:g=0,collapsible:y,minSize:h=0}=p;if(y){const v=e[f];if(Q(v!=null,`Previous layout not found for panel index ${f}`),Te(v,h)){const m=v-g;It(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}}{const f=t<0?1:-1;let p=t<0?s:a,g=0;for(;;){const h=e[p];Q(h!=null,`Previous layout not found for panel index ${p}`);const m=sr({panelConstraints:r,panelIndex:p,size:100})-h;if(g+=m,p+=f,p<0||p>=r.length)break}const y=Math.min(Math.abs(t),Math.abs(g));t=t<0?0-y:y}{let p=t<0?a:s;for(;p>=0&&p<r.length;){const g=Math.abs(t)-Math.abs(c),y=e[p];Q(y!=null,`Previous layout not found for panel index ${p}`);const h=y-g,v=sr({panelConstraints:r,panelIndex:p,size:h});if(!Te(y,v)&&(c+=y-v,l[p]=v,c.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?p--:p++}}if(kh(i,l))return i;{const f=t<0?s:a,p=e[f];Q(p!=null,`Previous layout not found for panel index ${f}`);const g=p+c,y=sr({panelConstraints:r,panelIndex:f,size:g});if(l[f]=y,!Te(y,g)){let h=g-y,m=t<0?s:a;for(;m>=0&&m<r.length;){const C=l[m];Q(C!=null,`Previous layout not found for panel index ${m}`);const E=C+h,F=sr({panelConstraints:r,panelIndex:m,size:E});if(Te(C,F)||(h-=F-C,l[m]=F),Te(h,0))break;t>0?m--:m++}}}const d=l.reduce((f,p)=>p+f,0);return Te(d,100)?l:i}function Ih({layout:t,panelsArray:e,pivotIndices:r}){let n=0,i=100,o=0,l=0;const a=r[0];Q(a!=null,"No pivot index found"),e.forEach((f,p)=>{const{constraints:g}=f,{maxSize:y=100,minSize:h=0}=g;p===a?(n=h,i=y):(o+=h,l+=y)});const s=Math.min(i,100-o),c=Math.max(n,100-l),d=t[a];return{valueMax:s,valueMin:c,valueNow:d}}function en(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function bd(t,e,r=document){const i=en(t,r).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function md(t,e,r){const n=bd(t,e,r);return n!=null?[n,n+1]:[-1,-1]}function yd(t,e=document){var r;if(e instanceof HTMLElement&&(e==null||(r=e.dataset)===null||r===void 0?void 0:r.panelGroupId)==t)return e;const n=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return n||null}function Oi(t,e=document){const r=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return r||null}function Oh(t,e,r,n=document){var i,o,l,a;const s=Oi(e,n),c=en(t,n),d=s?c.indexOf(s):-1,f=(i=(o=r[d])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,p=(l=(a=r[d+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[f,p]}function Mh({committedValuesRef:t,eagerValuesRef:e,groupId:r,layout:n,panelDataArray:i,panelGroupElement:o,setLayout:l}){Ae({didWarnAboutMissingResizeHandle:!1}),Pt(()=>{if(!o)return;const a=en(r,o);for(let s=0;s<i.length-1;s++){const{valueMax:c,valueMin:d,valueNow:f}=Ih({layout:n,panelsArray:i,pivotIndices:[s,s+1]}),p=a[s];if(p!=null){const g=i[s];Q(g,`No panel data found for index "${s}"`),p.setAttribute("aria-controls",g.id),p.setAttribute("aria-valuemax",""+Math.round(c)),p.setAttribute("aria-valuemin",""+Math.round(d)),p.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")})}},[r,n,i,o]),$t(()=>{if(!o)return;const a=e.current;Q(a,"Eager values not found");const{panelDataArray:s}=a,c=yd(r,o);Q(c!=null,`No group found for id "${r}"`);const d=en(r,o);Q(d,`No resize handles found for group id "${r}"`);const f=d.map(p=>{const g=p.getAttribute("data-panel-resize-handle-id");Q(g,"Resize handle element has no handle id attribute");const[y,h]=Oh(r,g,s,o);if(y==null||h==null)return()=>{};const v=m=>{if(!m.defaultPrevented)switch(m.key){case"Enter":{m.preventDefault();const C=s.findIndex(E=>E.id===y);if(C>=0){const E=s[C];Q(E,`No panel data found for index ${C}`);const F=n[C],{collapsedSize:D=0,collapsible:x,minSize:S=0}=E.constraints;if(F!=null&&x){const O=Hr({delta:Te(F,D)?S-D:D-F,initialLayout:n,panelConstraints:s.map(K=>K.constraints),pivotIndices:md(r,g,o),prevLayout:n,trigger:"keyboard"});n!==O&&l(O)}}break}}};return p.addEventListener("keydown",v),()=>{p.removeEventListener("keydown",v)}});return()=>{f.forEach(p=>p())}},[o,t,e,r,n,i,l])}function G0(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function Cd(t,e){const r=t==="horizontal",{x:n,y:i}=ki(e);return r?n:i}function Nh(t,e,r,n,i){const o=r==="horizontal",l=Oi(e,i);Q(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute("data-panel-group-id");Q(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=n;const c=Cd(r,t),d=yd(a,i);Q(d,`No group element found for id "${a}"`);const f=d.getBoundingClientRect(),p=o?f.width:f.height;return(c-s)/p*100}function Bh(t,e,r,n,i,o){if(cd(t)){const l=r==="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 n==null?0:Nh(t,e,r,n,o)}function Rh({panelDataArray:t}){const e=Array(t.length),r=t.map(o=>o.constraints);let n=0,i=100;for(let o=0;o<t.length;o++){const l=r[o];Q(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;a!=null&&(n++,e[o]=a,i-=a)}for(let o=0;o<t.length;o++){const l=r[o];Q(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=t.length-n,c=i/s;n++,e[o]=c,i-=c}return e}function Gt(t,e,r){e.forEach((n,i)=>{const o=t[i];Q(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:c=0,collapsible:d}=a,f=r[s];if(f==null||n!==f){r[s]=n;const{onCollapse:p,onExpand:g,onResize:y}=l;y&&y(n,f),d&&(p||g)&&(g&&(f==null||Qe(f,c))&&!Qe(n,c)&&g(),p&&(f==null||!Qe(f,c))&&Qe(n,c)&&p())}})}function wn(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!=e[r])return!1;return!0}function Lh({defaultSize:t,dragState:e,layout:r,panelData:n,panelIndex:i,precision:o=3}){const l=r[i];let a;return l==null?a=t!=null?t.toPrecision(o):"1":n.length===1?a="1":a=l.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Kh(t,e=10){let r=null;return(...i)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{t(...i)},e)}}function q0(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,r)=>{localStorage.setItem(e,r)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function Ed(t){return`react-resizable-panels:${t}`}function wd(t){return t.map(e=>{const{constraints:r,id:n,idIsFromProps:i,order:o}=e;return i?n:o?`${o}:${JSON.stringify(r)}`:JSON.stringify(r)}).sort((e,r)=>e.localeCompare(r)).join(",")}function Dd(t,e){try{const r=Ed(t),n=e.getItem(r);if(n){const i=JSON.parse(n);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function jh(t,e,r){var n,i;const o=(n=Dd(t,r))!==null&&n!==void 0?n:{},l=wd(e);return(i=o[l])!==null&&i!==void 0?i:null}function Hh(t,e,r,n,i){var o;const l=Ed(t),a=wd(e),s=(o=Dd(t,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(r.entries()),layout:n};try{i.setItem(l,JSON.stringify(s))}catch(c){console.error(c)}}function Y0({layout:t,panelConstraints:e}){const r=[...t],n=r.reduce((o,l)=>o+l,0);if(r.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${r.map(o=>`${o}%`).join(", ")}`);if(!Te(n,100)&&r.length>0)for(let o=0;o<e.length;o++){const l=r[o];Q(l!=null,`No layout data found for index ${o}`);const a=100/n*l;r[o]=a}let i=0;for(let o=0;o<e.length;o++){const l=r[o];Q(l!=null,`No layout data found for index ${o}`);const a=sr({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,r[o]=a)}if(!Te(i,0))for(let o=0;o<e.length;o++){const l=r[o];Q(l!=null,`No layout data found for index ${o}`);const a=l+i,s=sr({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,r[o]=s,Te(i,0)))break}return r}const Vh=100,Vr={getItem:t=>(q0(Vr),Vr.getItem(t)),setItem:(t,e)=>{q0(Vr),Vr.setItem(t,e)}},X0={};function xd({autoSaveId:t=null,children:e,className:r="",direction:n,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=Vr,style:c,tagName:d="div",...f}){const p=aa(o),g=Ae(null),[y,h]=hr(null),[v,m]=hr([]),C=_h(),E=Ae({}),F=Ae(new Map),D=Ae(0),x=Ae({autoSaveId:t,direction:n,dragState:y,id:p,keyboardResizeBy:a,onLayout:l,storage:s}),S=Ae({layout:v,panelDataArray:[],panelDataArrayChanged:!1});Ae({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),ad(i,()=>({getId:()=>x.current.id,getLayout:()=>{const{layout:A}=S.current;return A},setLayout:A=>{const{onLayout:B}=x.current,{layout:L,panelDataArray:j}=S.current,V=Y0({layout:A,panelConstraints:j.map(W=>W.constraints)});G0(L,V)||(m(V),S.current.layout=V,B&&B(V),Gt(j,V,E.current))}}),[]),Pt(()=>{x.current.autoSaveId=t,x.current.direction=n,x.current.dragState=y,x.current.id=p,x.current.onLayout=l,x.current.storage=s}),Mh({committedValuesRef:x,eagerValuesRef:S,groupId:p,layout:v,panelDataArray:S.current.panelDataArray,setLayout:m,panelGroupElement:g.current}),$t(()=>{const{panelDataArray:A}=S.current;if(t){if(v.length===0||v.length!==A.length)return;let B=X0[t];B==null&&(B=Kh(Hh,Vh),X0[t]=B);const L=[...A],j=new Map(F.current);B(t,L,j,v,s)}},[t,v,s]),$t(()=>{});const O=$e(A=>{const{onLayout:B}=x.current,{layout:L,panelDataArray:j}=S.current;if(A.constraints.collapsible){const V=j.map(ae=>ae.constraints),{collapsedSize:W=0,panelSize:q,pivotIndices:Y}=Ct(j,A,L);if(Q(q!=null,`Panel size not found for panel "${A.id}"`),!Qe(q,W)){F.current.set(A.id,q);const G=or(j,A)===j.length-1?q-W:W-q,te=Hr({delta:G,initialLayout:L,panelConstraints:V,pivotIndices:Y,prevLayout:L,trigger:"imperative-api"});wn(L,te)||(m(te),S.current.layout=te,B&&B(te),Gt(j,te,E.current))}}},[]),K=$e((A,B)=>{const{onLayout:L}=x.current,{layout:j,panelDataArray:V}=S.current;if(A.constraints.collapsible){const W=V.map(de=>de.constraints),{collapsedSize:q=0,panelSize:Y=0,minSize:ae=0,pivotIndices:G}=Ct(V,A,j),te=B??ae;if(Qe(Y,q)){const de=F.current.get(A.id),Re=de!=null&&de>=te?de:te,re=or(V,A)===V.length-1?Y-Re:Re-Y,pe=Hr({delta:re,initialLayout:j,panelConstraints:W,pivotIndices:G,prevLayout:j,trigger:"imperative-api"});wn(j,pe)||(m(pe),S.current.layout=pe,L&&L(pe),Gt(V,pe,E.current))}}},[]),H=$e(A=>{const{layout:B,panelDataArray:L}=S.current,{panelSize:j}=Ct(L,A,B);return Q(j!=null,`Panel size not found for panel "${A.id}"`),j},[]),w=$e((A,B)=>{const{panelDataArray:L}=S.current,j=or(L,A);return Lh({defaultSize:B,dragState:y,layout:v,panelData:L,panelIndex:j})},[y,v]),M=$e(A=>{const{layout:B,panelDataArray:L}=S.current,{collapsedSize:j=0,collapsible:V,panelSize:W}=Ct(L,A,B);return Q(W!=null,`Panel size not found for panel "${A.id}"`),V===!0&&Qe(W,j)},[]),Z=$e(A=>{const{layout:B,panelDataArray:L}=S.current,{collapsedSize:j=0,collapsible:V,panelSize:W}=Ct(L,A,B);return Q(W!=null,`Panel size not found for panel "${A.id}"`),!V||It(W,j)>0},[]),_=$e(A=>{const{panelDataArray:B}=S.current;B.push(A),B.sort((L,j)=>{const V=L.order,W=j.order;return V==null&&W==null?0:V==null?-1:W==null?1:V-W}),S.current.panelDataArrayChanged=!0,C()},[C]);Pt(()=>{if(S.current.panelDataArrayChanged){S.current.panelDataArrayChanged=!1;const{autoSaveId:A,onLayout:B,storage:L}=x.current,{layout:j,panelDataArray:V}=S.current;let W=null;if(A){const Y=jh(A,V,L);Y&&(F.current=new Map(Object.entries(Y.expandToSizes)),W=Y.layout)}W==null&&(W=Rh({panelDataArray:V}));const q=Y0({layout:W,panelConstraints:V.map(Y=>Y.constraints)});G0(j,q)||(m(q),S.current.layout=q,B&&B(q),Gt(V,q,E.current))}}),Pt(()=>{const A=S.current;return()=>{A.layout=[]}},[]);const U=$e(A=>{let B=!1;const L=g.current;return L&&window.getComputedStyle(L,null).getPropertyValue("direction")==="rtl"&&(B=!0),function(V){V.preventDefault();const W=g.current;if(!W)return()=>null;const{direction:q,dragState:Y,id:ae,keyboardResizeBy:G,onLayout:te}=x.current,{layout:de,panelDataArray:Re}=S.current,{initialLayout:zt}=Y??{},re=md(ae,A,W);let pe=Bh(V,A,q,Y,G,W);const Ut=q==="horizontal";Ut&&B&&(pe=-pe);const Sr=Re.map(Cf=>Cf.constraints),Fr=Hr({delta:pe,initialLayout:zt??de,panelConstraints:Sr,pivotIndices:re,prevLayout:de,trigger:cd(V)?"keyboard":"mouse-or-touch"}),$a=!wn(de,Fr);(ud(V)||dd(V))&&D.current!=pe&&(D.current=pe,!$a&&pe!==0?Ut?po(A,pe<0?hd:pd):po(A,pe<0?gd:vd):po(A,0)),$a&&(m(Fr),S.current.layout=Fr,te&&te(Fr),Gt(Re,Fr,E.current))}},[]),P=$e((A,B)=>{const{onLayout:L}=x.current,{layout:j,panelDataArray:V}=S.current,W=V.map(de=>de.constraints),{panelSize:q,pivotIndices:Y}=Ct(V,A,j);Q(q!=null,`Panel size not found for panel "${A.id}"`);const G=or(V,A)===V.length-1?q-B:B-q,te=Hr({delta:G,initialLayout:j,panelConstraints:W,pivotIndices:Y,prevLayout:j,trigger:"imperative-api"});wn(j,te)||(m(te),S.current.layout=te,L&&L(te),Gt(V,te,E.current))},[]),k=$e((A,B)=>{const{layout:L,panelDataArray:j}=S.current,{collapsedSize:V=0,collapsible:W}=B,{collapsedSize:q=0,collapsible:Y,maxSize:ae=100,minSize:G=0}=A.constraints,{panelSize:te}=Ct(j,A,L);te!=null&&(W&&Y&&Qe(te,V)?Qe(V,q)||P(A,q):te<G?P(A,G):te>ae&&P(A,ae))},[P]),z=$e((A,B)=>{const{direction:L}=x.current,{layout:j}=S.current;if(!g.current)return;const V=Oi(A,g.current);Q(V,`Drag handle element not found for id "${A}"`);const W=Cd(L,B);h({dragHandleId:A,dragHandleRect:V.getBoundingClientRect(),initialCursorPosition:W,initialLayout:j})},[]),R=$e(()=>{h(null)},[]),I=$e(A=>{const{panelDataArray:B}=S.current,L=or(B,A);L>=0&&(B.splice(L,1),delete E.current[A.id],S.current.panelDataArrayChanged=!0,C())},[C]),N=bh(()=>({collapsePanel:O,direction:n,dragState:y,expandPanel:K,getPanelSize:H,getPanelStyle:w,groupId:p,isPanelCollapsed:M,isPanelExpanded:Z,reevaluatePanelConstraints:k,registerPanel:_,registerResizeHandle:U,resizePanel:P,startDragging:z,stopDragging:R,unregisterPanel:I,panelGroupElement:g.current}),[O,y,n,K,H,w,p,M,Z,k,_,U,P,z,R,I]),$={display:"flex",flexDirection:n==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return Cr(_i.Provider,{value:N},Cr(d,{...f,children:e,className:r,id:o,ref:g,style:{...$,...c},"data-panel-group":"","data-panel-group-direction":n,"data-panel-group-id":p}))}const Sd=od((t,e)=>Cr(xd,{...t,forwardedRef:e}));xd.displayName="PanelGroup";Sd.displayName="forwardRef(PanelGroup)";function or(t,e){return t.findIndex(r=>r===e||r.id===e.id)}function Ct(t,e,r){const n=or(t,e),o=n===t.length-1?[n-1,n]:[n,n+1],l=r[n];return{...e.constraints,panelSize:l,pivotIndices:o}}function zh({disabled:t,handleId:e,resizeHandler:r,panelGroupElement:n}){$t(()=>{if(t||r==null||n==null)return;const i=Oi(e,n);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(),r(l);break}case"F6":{l.preventDefault();const a=i.getAttribute("data-panel-group-id");Q(a,`No group element found for id "${a}"`);const s=en(a,n),c=bd(a,e,n);Q(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)}},[n,t,e,r])}function Fd({children:t=null,className:e="",disabled:r=!1,hitAreaMargins:n,id:i,onBlur:o,onDragging:l,onFocus:a,style:s={},tabIndex:c=0,tagName:d="div",...f}){var p,g;const y=Ae(null),h=Ae({onDragging:l});$t(()=>{h.current.onDragging=l});const v=ld(_i);if(v===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:m,groupId:C,registerResizeHandle:E,startDragging:F,stopDragging:D,panelGroupElement:x}=v,S=aa(i),[O,K]=hr("inactive"),[H,w]=hr(!1),[M,Z]=hr(null),_=Ae({state:O});Pt(()=>{_.current.state=O}),$t(()=>{if(r)Z(null);else{const z=E(S);Z(()=>z)}},[r,S,E]);const U=(p=n==null?void 0:n.coarse)!==null&&p!==void 0?p:15,P=(g=n==null?void 0:n.fine)!==null&&g!==void 0?g:5;return $t(()=>{if(r||M==null)return;const z=y.current;return Q(z,"Element ref not attached"),Th(S,z,m,{coarse:U,fine:P},(I,N,$)=>{if(N)switch(I){case"down":{K("drag"),Q($,'Expected event to be defined for "down" action'),F(S,$);const{onDragging:A}=h.current;A&&A(!0);break}case"move":{const{state:A}=_.current;A!=="drag"&&K("hover"),Q($,'Expected event to be defined for "move" action'),M($);break}case"up":{K("hover"),D();const{onDragging:A}=h.current;A&&A(!1);break}}else K("inactive")})},[U,m,r,P,E,S,M,F,D]),zh({disabled:r,handleId:S,resizeHandler:M,panelGroupElement:x}),Cr(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":O==="drag"?"pointer":H?"keyboard":void 0,"data-resize-handle-state":O,"data-panel-resize-handle-enabled":!r,"data-panel-resize-handle-id":S})}Fd.displayName="PanelResizeHandle";const Uh=({children:t,isOpen:e})=>{const{isDesktop:r}=mt();return r?b.jsx("div",{className:ye("c__right-panel",{open:e}),children:t}):b.jsx("div",{className:ye("c__right-panel__mobile",{open:e}),children:t})},Wh=(t,e,r)=>{const[n,i]=u.useState(typeof e>"u"?t:e),o=l=>{r?r(l):i(l)};return u.useEffect(()=>{r&&typeof e<"u"&&e!==n&&i(e)},[e]),[n,o]},Zh=({icon:t,children:e,hideLeftPanelOnDesktop:r=!1,leftPanelContent:n,rightPanelContent:i,rightHeaderContent:o,languages:l,enableResize:a=!1,rightPanelIsOpen:s=!1,...c})=>{const[d,f]=Wh(!1,c.isLeftPanelOpen,c.setIsLeftPanelOpen),{isDesktop:p}=mt(),g=u.useRef(null),[y,h]=u.useState(!1),v=u.useRef(void 0);u.useEffect(()=>{const O=()=>{h(!0),v.current&&clearTimeout(v.current),v.current=window.setTimeout(()=>{h(!1)},150)};return window.addEventListener("resize",O),()=>{window.removeEventListener("resize",O),v.current&&clearTimeout(v.current)}},[]);const m=p?!r:!0,C=p?!r:d,[E,F]=u.useState(Dn(300,p)),[D,x]=u.useState(Dn(450,p)),S=()=>{f(!d)};return u.useEffect(()=>{const O=()=>{const K=Math.round(Dn(300,p)),H=Math.round(Math.min(Dn(450,p),40));F(p?K:0),x(a?H:K)};return O(),window.addEventListener("resize",O),()=>{window.removeEventListener("resize",O)}},[p,a]),b.jsxs("div",{className:ye("c__main-layout",{resizing:y}),children:[b.jsx("div",{className:"c__main-layout__header",children:b.jsx(nd,{onTogglePanel:S,isPanelOpen:d,rightIcon:o,leftIcon:t,languages:l})}),b.jsx("div",{className:"c__main-layout__content",children:b.jsxs(Sd,{autoSaveId:"persistance",direction:"horizontal",children:[m&&b.jsxs(b.Fragment,{children:[b.jsx(sl,{ref:g,order:0,defaultSize:E,minSize:E,maxSize:D,children:b.jsx(id,{isOpen:C,children:n})}),p&&b.jsx(Fd,{className:"border-clr-surface-primary",style:{borderRightWidth:"1px",borderRightStyle:"solid"}})]}),b.jsx(sl,{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(Uh,{isOpen:s,children:i})]})})]})})]})},Dn=(t,e)=>{if(!e)return 0;const r=window.innerWidth;return t/r*100},Gh=52,li=({size:t="sm"})=>b.jsx("div",{className:["c__spinner",t].join(" ")}),$d=({children:t,text:e,...r})=>b.jsxs("div",{className:"suite__label__container",children:[b.jsx("label",{...r,children:t}),e&&b.jsx("span",{className:"suite__label__container__description",children:e})]}),qh=({label:t,text:e,labelSide:r="right",children:n})=>b.jsxs("div",{className:ye("c__with-label",{[r]:!0}),children:[b.jsx($d,{children:t,text:e}),n]});var J0=1,Yh=.9,Xh=.8,Jh=.17,go=.1,vo=.999,Qh=.9999,e9=.99,t9=/[\\\/_+.#"@\[\(\{&]/,r9=/[\\\/_+.#"@\[\(\{&]/g,n9=/[\s-]/,Pd=/[\s-]/g;function ul(t,e,r,n,i,o,l){if(o===e.length)return i===t.length?J0:e9;var a=`${i},${o}`;if(l[a]!==void 0)return l[a];for(var s=n.charAt(o),c=r.indexOf(s,i),d=0,f,p,g,y;c>=0;)f=ul(t,e,r,n,c+1,o+1,l),f>d&&(c===i?f*=J0:t9.test(t.charAt(c-1))?(f*=Xh,g=t.slice(i,c-1).match(r9),g&&i>0&&(f*=Math.pow(vo,g.length))):n9.test(t.charAt(c-1))?(f*=Yh,y=t.slice(i,c-1).match(Pd),y&&i>0&&(f*=Math.pow(vo,y.length))):(f*=Jh,i>0&&(f*=Math.pow(vo,c-i))),t.charAt(c)!==e.charAt(o)&&(f*=Qh)),(f<go&&r.charAt(c-1)===n.charAt(o+1)||n.charAt(o+1)===n.charAt(o)&&r.charAt(c-1)!==n.charAt(o))&&(p=ul(t,e,r,n,c+1,o+2,l),p*go>f&&(f=p*go)),f>d&&(d=f),c=r.indexOf(s,c+1);return l[a]=d,d}function Q0(t){return t.toLowerCase().replace(Pd," ")}function i9(t,e,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ul(t,e,Q0(t),Q0(e),0,0,{})}function ht(t,e,{checkForDefaultPrevented:r=!0}={}){return function(i){if(t==null||t(i),r===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function es(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Ad(...t){return e=>{let r=!1;const n=t.map(i=>{const o=es(i,e);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let i=0;i<n.length;i++){const o=n[i];typeof o=="function"?o():es(t[i],null)}}}}function Ht(...t){return T.useCallback(Ad(...t),t)}function o9(t,e){const r=T.createContext(e),n=o=>{const{children:l,...a}=o,s=T.useMemo(()=>a,Object.values(a));return b.jsx(r.Provider,{value:s,children:l})};n.displayName=t+"Provider";function i(o){const l=T.useContext(r);if(l)return l;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${t}\``)}return[n,i]}function l9(t,e=[]){let r=[];function n(o,l){const a=T.createContext(l),s=r.length;r=[...r,l];const c=f=>{var m;const{scope:p,children:g,...y}=f,h=((m=p==null?void 0:p[t])==null?void 0:m[s])||a,v=T.useMemo(()=>y,Object.values(y));return b.jsx(h.Provider,{value:v,children:g})};c.displayName=o+"Provider";function d(f,p){var h;const g=((h=p==null?void 0:p[t])==null?void 0:h[s])||a,y=T.useContext(g);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=r.map(l=>T.createContext(l));return function(a){const s=(a==null?void 0:a[t])||o;return T.useMemo(()=>({[`__scope${t}`]:{...a,[t]:s}}),[a,s])}};return i.scopeName=t,[n,a9(i,...e)]}function a9(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=n.reduce((a,{useScope:s,scopeName:c})=>{const f=s(o)[`__scope${c}`];return{...a,...f}},{});return T.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return r.scopeName=e.scopeName,r}var tn=globalThis!=null&&globalThis.document?T.useLayoutEffect:()=>{},s9=T[" useId ".trim().toString()]||(()=>{}),c9=0;function tt(t){const[e,r]=T.useState(s9());return tn(()=>{r(n=>n??String(c9++))},[t]),e?`radix-${e}`:""}var u9=T[" useInsertionEffect ".trim().toString()]||tn;function d9({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[i,o,l]=f9({defaultProp:e,onChange:r}),a=t!==void 0,s=a?t:i;{const d=T.useRef(t!==void 0);T.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${n} 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,n])}const c=T.useCallback(d=>{var f;if(a){const p=h9(d)?d(t):d;p!==t&&((f=l.current)==null||f.call(l,p))}else o(d)},[a,t,o,l]);return[s,c]}function f9({defaultProp:t,onChange:e}){const[r,n]=T.useState(t),i=T.useRef(r),o=T.useRef(e);return u9(()=>{o.current=e},[e]),T.useEffect(()=>{var l;i.current!==r&&((l=o.current)==null||l.call(o,r),i.current=r)},[r,i]),[r,n,o]}function h9(t){return typeof t=="function"}function Td(t){const e=p9(t),r=T.forwardRef((n,i)=>{const{children:o,...l}=n,a=T.Children.toArray(o),s=a.find(v9);if(s){const c=s.props.children,d=a.map(f=>f===s?T.Children.count(c)>1?T.Children.only(null):T.isValidElement(c)?c.props.children:null:f);return b.jsx(e,{...l,ref:i,children:T.isValidElement(c)?T.cloneElement(c,void 0,d):null})}return b.jsx(e,{...l,ref:i,children:o})});return r.displayName=`${t}.Slot`,r}function p9(t){const e=T.forwardRef((r,n)=>{const{children:i,...o}=r;if(T.isValidElement(i)){const l=m9(i),a=b9(o,i.props);return i.type!==T.Fragment&&(a.ref=n?Ad(n,l):l),T.cloneElement(i,a)}return T.Children.count(i)>1?T.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var g9=Symbol("radix.slottable");function v9(t){return T.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===g9}function b9(t,e){const r={...e};for(const n in e){const i=t[n],o=e[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...a)=>{const s=o(...a);return i(...a),s}:i&&(r[n]=i):n==="style"?r[n]={...i,...o}:n==="className"&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...t,...r}}function m9(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var y9=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ce=y9.reduce((t,e)=>{const r=Td(`Primitive.${e}`),n=T.forwardRef((i,o)=>{const{asChild:l,...a}=i,s=l?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(s,{...a,ref:o})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function C9(t,e){t&&Ef.flushSync(()=>t.dispatchEvent(e))}function rn(t){const e=T.useRef(t);return T.useEffect(()=>{e.current=t}),T.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function E9(t,e=globalThis==null?void 0:globalThis.document){const r=rn(t);T.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var w9="DismissableLayer",dl="dismissableLayer.update",D9="dismissableLayer.pointerDownOutside",x9="dismissableLayer.focusOutside",ts,_d=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kd=T.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:a,...s}=t,c=T.useContext(_d),[d,f]=T.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=T.useState({}),y=Ht(e,S=>f(S)),h=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=h.indexOf(v),C=d?h.indexOf(d):-1,E=c.layersWithOutsidePointerEventsDisabled.size>0,F=C>=m,D=$9(S=>{const O=S.target,K=[...c.branches].some(H=>H.contains(O));!F||K||(i==null||i(S),l==null||l(S),S.defaultPrevented||a==null||a())},p),x=P9(S=>{const O=S.target;[...c.branches].some(H=>H.contains(O))||(o==null||o(S),l==null||l(S),S.defaultPrevented||a==null||a())},p);return E9(S=>{C===c.layers.size-1&&(n==null||n(S),!S.defaultPrevented&&a&&(S.preventDefault(),a()))},p),T.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(ts=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),rs(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=ts)}},[d,p,r,c]),T.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),rs())},[d,c]),T.useEffect(()=>{const S=()=>g({});return document.addEventListener(dl,S),()=>document.removeEventListener(dl,S)},[]),b.jsx(Ce.div,{...s,ref:y,style:{pointerEvents:E?F?"auto":"none":void 0,...t.style},onFocusCapture:ht(t.onFocusCapture,x.onFocusCapture),onBlurCapture:ht(t.onBlurCapture,x.onBlurCapture),onPointerDownCapture:ht(t.onPointerDownCapture,D.onPointerDownCapture)})});kd.displayName=w9;var S9="DismissableLayerBranch",F9=T.forwardRef((t,e)=>{const r=T.useContext(_d),n=T.useRef(null),i=Ht(e,n);return T.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),b.jsx(Ce.div,{...t,ref:i})});F9.displayName=S9;function $9(t,e=globalThis==null?void 0:globalThis.document){const r=rn(t),n=T.useRef(!1),i=T.useRef(()=>{});return T.useEffect(()=>{const o=a=>{if(a.target&&!n.current){let s=function(){Id(D9,r,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);n.current=!1},l=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),e.removeEventListener("pointerdown",o),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function P9(t,e=globalThis==null?void 0:globalThis.document){const r=rn(t),n=T.useRef(!1);return T.useEffect(()=>{const i=o=>{o.target&&!n.current&&Id(x9,r,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function rs(){const t=new CustomEvent(dl);document.dispatchEvent(t)}function Id(t,e,r,{discrete:n}){const i=r.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?C9(i,o):i.dispatchEvent(o)}var bo="focusScope.autoFocusOnMount",mo="focusScope.autoFocusOnUnmount",ns={bubbles:!1,cancelable:!0},A9="FocusScope",Od=T.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=t,[a,s]=T.useState(null),c=rn(i),d=rn(o),f=T.useRef(null),p=Ht(e,h=>s(h)),g=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(n){let h=function(E){if(g.paused||!a)return;const F=E.target;a.contains(F)?f.current=F:lt(f.current,{select:!0})},v=function(E){if(g.paused||!a)return;const F=E.relatedTarget;F!==null&&(a.contains(F)||lt(f.current,{select:!0}))},m=function(E){if(document.activeElement===document.body)for(const D of E)D.removedNodes.length>0&<(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const C=new MutationObserver(m);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),C.disconnect()}}},[n,a,g.paused]),T.useEffect(()=>{if(a){os.add(g);const h=document.activeElement;if(!a.contains(h)){const m=new CustomEvent(bo,ns);a.addEventListener(bo,c),a.dispatchEvent(m),m.defaultPrevented||(T9(M9(Md(a)),{select:!0}),document.activeElement===h&<(a))}return()=>{a.removeEventListener(bo,c),setTimeout(()=>{const m=new CustomEvent(mo,ns);a.addEventListener(mo,d),a.dispatchEvent(m),m.defaultPrevented||lt(h??document.body,{select:!0}),a.removeEventListener(mo,d),os.remove(g)},0)}}},[a,c,d,g]);const y=T.useCallback(h=>{if(!r&&!n||g.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,m=document.activeElement;if(v&&m){const C=h.currentTarget,[E,F]=_9(C);E&&F?!h.shiftKey&&m===F?(h.preventDefault(),r&<(E,{select:!0})):h.shiftKey&&m===E&&(h.preventDefault(),r&<(F,{select:!0})):m===C&&h.preventDefault()}},[r,n,g.paused]);return b.jsx(Ce.div,{tabIndex:-1,...l,ref:p,onKeyDown:y})});Od.displayName=A9;function T9(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(lt(n,{select:e}),document.activeElement!==r)return}function _9(t){const e=Md(t),r=is(e,t),n=is(e.reverse(),t);return[r,n]}function Md(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function is(t,e){for(const r of t)if(!k9(r,{upTo:e}))return r}function k9(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 I9(t){return t instanceof HTMLInputElement&&"select"in t}function lt(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&I9(t)&&e&&t.select()}}var os=O9();function O9(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=ls(t,e),t.unshift(e)},remove(e){var r;t=ls(t,e),(r=t[0])==null||r.resume()}}}function ls(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function M9(t){return t.filter(e=>e.tagName!=="A")}var N9="Portal",Nd=T.forwardRef((t,e)=>{var a;const{container:r,...n}=t,[i,o]=T.useState(!1);tn(()=>o(!0),[]);const l=r||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?Rt.createPortal(b.jsx(Ce.div,{...n,ref:e}),l):null});Nd.displayName=N9;function B9(t,e){return T.useReducer((r,n)=>e[r][n]??r,t)}var Mi=t=>{const{present:e,children:r}=t,n=R9(e),i=typeof r=="function"?r({present:n.isPresent}):T.Children.only(r),o=Ht(n.ref,L9(i));return typeof r=="function"||n.isPresent?T.cloneElement(i,{ref:o}):null};Mi.displayName="Presence";function R9(t){const[e,r]=T.useState(),n=T.useRef(null),i=T.useRef(t),o=T.useRef("none"),l=t?"mounted":"unmounted",[a,s]=B9(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const c=xn(n.current);o.current=a==="mounted"?c:"none"},[a]),tn(()=>{const c=n.current,d=i.current;if(d!==t){const p=o.current,g=xn(c);t?s("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),tn(()=>{if(e){let c;const d=e.ownerDocument.defaultView??window,f=g=>{const h=xn(n.current).includes(CSS.escape(g.animationName));if(g.target===e&&h&&(s("ANIMATION_END"),!i.current)){const v=e.style.animationFillMode;e.style.animationFillMode="forwards",c=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=v)})}},p=g=>{g.target===e&&(o.current=xn(n.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{d.clearTimeout(c),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:T.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function xn(t){return(t==null?void 0:t.animationName)||"none"}function L9(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var yo=0;function K9(){T.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??as()),document.body.insertAdjacentElement("beforeend",t[1]??as()),yo++,()=>{yo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),yo--}},[])}function as(){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 Nn="right-scroll-bar-position",Bn="width-before-scroll-bar",j9="with-scroll-bars-hidden",H9="--removed-body-scroll-bar-size";function Co(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function V9(t,e){var r=u.useState(function(){return{value:t,callback:e,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=e,r.facade}var z9=typeof window<"u"?T.useLayoutEffect:T.useEffect,ss=new WeakMap;function U9(t,e){var r=V9(null,function(n){return t.forEach(function(i){return Co(i,n)})});return z9(function(){var n=ss.get(r);if(n){var i=new Set(n),o=new Set(t),l=r.current;i.forEach(function(a){o.has(a)||Co(a,null)}),o.forEach(function(a){i.has(a)||Co(a,l)})}ss.set(r,t)},[t]),r}function W9(t){return t}function Z9(t,e){e===void 0&&(e=W9);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(o){var l=e(o,n);return r.push(l),function(){r=r.filter(function(a){return a!==l})}},assignSyncMedium:function(o){for(n=!0;r.length;){var l=r;r=[],l.forEach(o)}r={push:function(a){return o(a)},filter:function(){return r}}},assignMedium:function(o){n=!0;var l=[];if(r.length){var a=r;r=[],a.forEach(o),l=r}var s=function(){var d=l;l=[],d.forEach(o)},c=function(){return Promise.resolve().then(s)};c(),r={push:function(d){l.push(d),c()},filter:function(d){return l=l.filter(d),r}}}};return i}function G9(t){t===void 0&&(t={});var e=Z9(null);return e.options=Ge({async:!0,ssr:!1},t),e}var Bd=function(t){var e=t.sideCar,r=G2(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=e.read();if(!n)throw new Error("Sidecar medium not found");return T.createElement(n,Ge({},r))};Bd.isSideCarExport=!0;function q9(t,e){return t.useMedium(e),Bd}var Rd=G9(),Eo=function(){},Ni=T.forwardRef(function(t,e){var r=T.useRef(null),n=T.useState({onScrollCapture:Eo,onWheelCapture:Eo,onTouchMoveCapture:Eo}),i=n[0],o=n[1],l=t.forwardProps,a=t.children,s=t.className,c=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,g=t.noRelative,y=t.noIsolation,h=t.inert,v=t.allowPinchZoom,m=t.as,C=m===void 0?"div":m,E=t.gapMode,F=G2(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=p,x=U9([r,e]),S=Ge(Ge({},F),i);return T.createElement(T.Fragment,null,d&&T.createElement(D,{sideCar:Rd,removeScrollBar:c,shards:f,noRelative:g,noIsolation:y,inert:h,setCallbacks:o,allowPinchZoom:!!v,lockRef:r,gapMode:E}),l?T.cloneElement(T.Children.only(a),Ge(Ge({},S),{ref:x})):T.createElement(C,Ge({},S,{className:s,ref:x}),a))});Ni.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ni.classNames={fullWidth:Bn,zeroRight:Nn};var Y9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function X9(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=Y9();return e&&t.setAttribute("nonce",e),t}function J9(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function Q9(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var ep=function(){var t=0,e=null;return{add:function(r){t==0&&(e=X9())&&(J9(e,r),Q9(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},tp=function(){var t=ep();return function(e,r){T.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}},Ld=function(){var t=tp(),e=function(r){var n=r.styles,i=r.dynamic;return t(n,i),null};return e},rp={left:0,top:0,right:0,gap:0},wo=function(t){return parseInt(t||"",10)||0},np=function(t){var e=window.getComputedStyle(document.body),r=e[t==="padding"?"paddingLeft":"marginLeft"],n=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[wo(r),wo(n),wo(i)]},ip=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return rp;var e=np(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},op=Ld(),gr="data-scroll-locked",lp=function(t,e,r,n){var i=t.left,o=t.top,l=t.right,a=t.gap;return r===void 0&&(r="margin"),`
|
|
45
|
+
.`.concat(j9,` {
|
|
46
|
+
overflow: hidden `).concat(n,`;
|
|
47
|
+
padding-right: `).concat(a,"px ").concat(n,`;
|
|
48
48
|
}
|
|
49
|
-
body[`).concat(
|
|
50
|
-
overflow: hidden `).concat(
|
|
49
|
+
body[`).concat(gr,`] {
|
|
50
|
+
overflow: hidden `).concat(n,`;
|
|
51
51
|
overscroll-behavior: contain;
|
|
52
|
-
`).concat([e&&"position: relative ".concat(
|
|
52
|
+
`).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
53
53
|
padding-left: `.concat(i,`px;
|
|
54
54
|
padding-top: `).concat(o,`px;
|
|
55
55
|
padding-right: `).concat(l,`px;
|
|
56
56
|
margin-left:0;
|
|
57
57
|
margin-top:0;
|
|
58
|
-
margin-right: `).concat(a,"px ").concat(
|
|
59
|
-
`),
|
|
58
|
+
margin-right: `).concat(a,"px ").concat(n,`;
|
|
59
|
+
`),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
.`).concat(
|
|
63
|
-
right: `).concat(a,"px ").concat(
|
|
62
|
+
.`).concat(Nn,` {
|
|
63
|
+
right: `).concat(a,"px ").concat(n,`;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.`).concat(
|
|
67
|
-
margin-right: `).concat(a,"px ").concat(
|
|
66
|
+
.`).concat(Bn,` {
|
|
67
|
+
margin-right: `).concat(a,"px ").concat(n,`;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
.`).concat(
|
|
71
|
-
right: 0 `).concat(
|
|
70
|
+
.`).concat(Nn," .").concat(Nn,` {
|
|
71
|
+
right: 0 `).concat(n,`;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
.`).concat(
|
|
75
|
-
margin-right: 0 `).concat(
|
|
74
|
+
.`).concat(Bn," .").concat(Bn,` {
|
|
75
|
+
margin-right: 0 `).concat(n,`;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
body[`).concat(
|
|
79
|
-
`).concat(
|
|
78
|
+
body[`).concat(gr,`] {
|
|
79
|
+
`).concat(H9,": ").concat(a,`px;
|
|
80
80
|
}
|
|
81
|
-
`)},
|
|
81
|
+
`)},cs=function(){var t=parseInt(document.body.getAttribute(gr)||"0",10);return isFinite(t)?t:0},ap=function(){T.useEffect(function(){return document.body.setAttribute(gr,(cs()+1).toString()),function(){var t=cs()-1;t<=0?document.body.removeAttribute(gr):document.body.setAttribute(gr,t.toString())}},[])},sp=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n;ap();var o=T.useMemo(function(){return ip(i)},[i]);return T.createElement(op,{styles:lp(o,!e,i,r?"":"!important")})},fl=!1;if(typeof window<"u")try{var Sn=Object.defineProperty({},"passive",{get:function(){return fl=!0,!0}});window.addEventListener("test",Sn,Sn),window.removeEventListener("test",Sn,Sn)}catch{fl=!1}var qt=fl?{passive:!1}:!1,cp=function(t){return t.tagName==="TEXTAREA"},Kd=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!cp(t)&&r[e]==="visible")},up=function(t){return Kd(t,"overflowY")},dp=function(t){return Kd(t,"overflowX")},us=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=jd(t,n);if(i){var o=Hd(t,n),l=o[1],a=o[2];if(l>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},fp=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},hp=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},jd=function(t,e){return t==="v"?up(e):dp(e)},Hd=function(t,e){return t==="v"?fp(e):hp(e)},pp=function(t,e){return t==="h"&&e==="rtl"?-1:1},gp=function(t,e,r,n,i){var o=pp(t,window.getComputedStyle(e).direction),l=o*n,a=r.target,s=e.contains(a),c=!1,d=l>0,f=0,p=0;do{if(!a)break;var g=Hd(t,a),y=g[0],h=g[1],v=g[2],m=h-v-o*y;(y||m)&&jd(t,a)&&(f+=m,p+=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(p)<1)&&(c=!0),c},Fn=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},ds=function(t){return[t.deltaX,t.deltaY]},fs=function(t){return t&&"current"in t?t.current:t},vp=function(t,e){return t[0]===e[0]&&t[1]===e[1]},bp=function(t){return`
|
|
82
82
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
83
83
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
84
|
-
`)},
|
|
84
|
+
`)},mp=0,Yt=[];function yp(t){var e=T.useRef([]),r=T.useRef([0,0]),n=T.useRef(),i=T.useState(mp++)[0],o=T.useState(Ld)[0],l=T.useRef(t);T.useEffect(function(){l.current=t},[t]),T.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var h=C4([t.lockRef.current],(t.shards||[]).map(fs),!0).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=T.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!l.current.allowPinchZoom;var m=Fn(h),C=r.current,E="deltaX"in h?h.deltaX:C[0]-m[0],F="deltaY"in h?h.deltaY:C[1]-m[1],D,x=h.target,S=Math.abs(E)>Math.abs(F)?"h":"v";if("touches"in h&&S==="h"&&x.type==="range")return!1;var O=us(S,x);if(!O)return!0;if(O?D=S:(D=S==="v"?"h":"v",O=us(S,x)),!O)return!1;if(!n.current&&"changedTouches"in h&&(E||F)&&(n.current=D),!D)return!0;var K=n.current||D;return gp(K,v,h,K==="h"?E:F)},[]),s=T.useCallback(function(h){var v=h;if(!(!Yt.length||Yt[Yt.length-1]!==o)){var m="deltaY"in v?ds(v):Fn(v),C=e.current.filter(function(D){return D.name===v.type&&(D.target===v.target||v.target===D.shadowParent)&&vp(D.delta,m)})[0];if(C&&C.should){v.cancelable&&v.preventDefault();return}if(!C){var E=(l.current.shards||[]).map(fs).filter(Boolean).filter(function(D){return D.contains(v.target)}),F=E.length>0?a(v,E[0]):!l.current.noIsolation;F&&v.cancelable&&v.preventDefault()}}},[]),c=T.useCallback(function(h,v,m,C){var E={name:h,delta:v,target:m,should:C,shadowParent:Cp(m)};e.current.push(E),setTimeout(function(){e.current=e.current.filter(function(F){return F!==E})},1)},[]),d=T.useCallback(function(h){r.current=Fn(h),n.current=void 0},[]),f=T.useCallback(function(h){c(h.type,ds(h),h.target,a(h,t.lockRef.current))},[]),p=T.useCallback(function(h){c(h.type,Fn(h),h.target,a(h,t.lockRef.current))},[]);T.useEffect(function(){return Yt.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,qt),document.addEventListener("touchmove",s,qt),document.addEventListener("touchstart",d,qt),function(){Yt=Yt.filter(function(h){return h!==o}),document.removeEventListener("wheel",s,qt),document.removeEventListener("touchmove",s,qt),document.removeEventListener("touchstart",d,qt)}},[]);var g=t.removeScrollBar,y=t.inert;return T.createElement(T.Fragment,null,y?T.createElement(o,{styles:bp(i)}):null,g?T.createElement(sp,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Cp(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const Ep=q9(Rd,yp);var Vd=T.forwardRef(function(t,e){return T.createElement(Ni,Ge({},t,{ref:e,sideCar:Ep}))});Vd.classNames=Ni.classNames;var wp=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Xt=new WeakMap,$n=new WeakMap,Pn={},Do=0,zd=function(t){return t&&(t.host||zd(t.parentNode))},Dp=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=zd(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},xp=function(t,e,r,n){var i=Dp(e,Array.isArray(t)?t:[t]);Pn[r]||(Pn[r]=new WeakMap);var o=Pn[r],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(p){if(a.has(p))d(p);else try{var g=p.getAttribute(n),y=g!==null&&g!=="false",h=(Xt.get(p)||0)+1,v=(o.get(p)||0)+1;Xt.set(p,h),o.set(p,v),l.push(p),h===1&&y&&$n.set(p,!0),v===1&&p.setAttribute(r,"true"),y||p.setAttribute(n,"true")}catch(m){console.error("aria-hidden: cannot operate on ",p,m)}})};return d(e),a.clear(),Do++,function(){l.forEach(function(f){var p=Xt.get(f)-1,g=o.get(f)-1;Xt.set(f,p),o.set(f,g),p||($n.has(f)||f.removeAttribute(n),$n.delete(f)),g||f.removeAttribute(r)}),Do--,Do||(Xt=new WeakMap,Xt=new WeakMap,$n=new WeakMap,Pn={})}},Sp=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=wp(t);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),xp(n,i,r,"aria-hidden")):function(){return null}},Bi="Dialog",[Ud]=l9(Bi),[Fp,ze]=Ud(Bi),Wd=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:l=!0}=t,a=T.useRef(null),s=T.useRef(null),[c,d]=d9({prop:n,defaultProp:i??!1,onChange:o,caller:Bi});return b.jsx(Fp,{scope:e,triggerRef:a,contentRef:s,contentId:tt(),titleId:tt(),descriptionId:tt(),open:c,onOpenChange:d,onOpenToggle:T.useCallback(()=>d(f=>!f),[d]),modal:l,children:r})};Wd.displayName=Bi;var Zd="DialogTrigger",$p=T.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=ze(Zd,r),o=Ht(e,i.triggerRef);return b.jsx(Ce.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":ha(i.open),...n,ref:o,onClick:ht(t.onClick,i.onOpenToggle)})});$p.displayName=Zd;var da="DialogPortal",[Pp,Gd]=Ud(da,{forceMount:void 0}),qd=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:i}=t,o=ze(da,e);return b.jsx(Pp,{scope:e,forceMount:r,children:T.Children.map(n,l=>b.jsx(Mi,{present:r||o.open,children:b.jsx(Nd,{asChild:!0,container:i,children:l})}))})};qd.displayName=da;var ai="DialogOverlay",Yd=T.forwardRef((t,e)=>{const r=Gd(ai,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,o=ze(ai,t.__scopeDialog);return o.modal?b.jsx(Mi,{present:n||o.open,children:b.jsx(Tp,{...i,ref:e})}):null});Yd.displayName=ai;var Ap=Td("DialogOverlay.RemoveScroll"),Tp=T.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=ze(ai,r);return b.jsx(Vd,{as:Ap,allowPinchZoom:!0,shards:[i.contentRef],children:b.jsx(Ce.div,{"data-state":ha(i.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),Ot="DialogContent",Xd=T.forwardRef((t,e)=>{const r=Gd(Ot,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,o=ze(Ot,t.__scopeDialog);return b.jsx(Mi,{present:n||o.open,children:o.modal?b.jsx(_p,{...i,ref:e}):b.jsx(kp,{...i,ref:e})})});Xd.displayName=Ot;var _p=T.forwardRef((t,e)=>{const r=ze(Ot,t.__scopeDialog),n=T.useRef(null),i=Ht(e,r.contentRef,n);return T.useEffect(()=>{const o=n.current;if(o)return Sp(o)},[]),b.jsx(Jd,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ht(t.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=r.triggerRef.current)==null||l.focus()}),onPointerDownOutside:ht(t.onPointerDownOutside,o=>{const l=o.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0;(l.button===2||a)&&o.preventDefault()}),onFocusOutside:ht(t.onFocusOutside,o=>o.preventDefault())})}),kp=T.forwardRef((t,e)=>{const r=ze(Ot,t.__scopeDialog),n=T.useRef(!1),i=T.useRef(!1);return b.jsx(Jd,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,a;(l=t.onCloseAutoFocus)==null||l.call(t,o),o.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),o.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:o=>{var s,c;(s=t.onInteractOutside)==null||s.call(t,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=o.target;((c=r.triggerRef.current)==null?void 0:c.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),Jd=T.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,...l}=t,a=ze(Ot,r),s=T.useRef(null),c=Ht(e,s);return K9(),b.jsxs(b.Fragment,{children:[b.jsx(Od,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o,children:b.jsx(kd,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":ha(a.open),...l,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(Np,{titleId:a.titleId}),b.jsx(Rp,{contentRef:s,descriptionId:a.descriptionId})]})]})}),fa="DialogTitle",Ip=T.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=ze(fa,r);return b.jsx(Ce.h2,{id:i.titleId,...n,ref:e})});Ip.displayName=fa;var Qd="DialogDescription",Op=T.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=ze(Qd,r);return b.jsx(Ce.p,{id:i.descriptionId,...n,ref:e})});Op.displayName=Qd;var e1="DialogClose",Mp=T.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=ze(e1,r);return b.jsx(Ce.button,{type:"button",...n,ref:e,onClick:ht(t.onClick,()=>i.onOpenChange(!1))})});Mp.displayName=e1;function ha(t){return t?"open":"closed"}var t1="DialogTitleWarning",[Um,r1]=o9(t1,{contentName:Ot,titleName:fa,docsSlug:"dialog"}),Np=({titleId:t})=>{const e=r1(t1),r=`\`${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 T.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},c9="DialogDescriptionWarning",d9=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ld(c9).contentName}}.`;return T.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},f9=Dd,h9=Td,p9=Id,v9=Od,Nn='[cmdk-group=""]',vo='[cmdk-group-items=""]',g9='[cmdk-group-heading=""]',oa='[cmdk-item=""]',Ys=`${oa}:not([aria-disabled="true"])`,il="cmdk-item-select",wt="data-value",m9=(t,e,n)=>Ov(t,e,n),Ad=T.createContext(void 0),ar=()=>T.useContext(Ad),Fd=T.createContext(void 0),la=()=>T.useContext(Fd),Kd=T.createContext(void 0),jd=T.forwardRef((t,e)=>{let n=an(()=>{var P,_;return{search:"",value:(_=(P=t.value)!=null?P:t.defaultValue)!=null?_:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=an(()=>new Set),i=an(()=>new Map),o=an(()=>new Map),l=an(()=>new Set),a=Hd(t),{label:s,children:u,value:d,onValueChange:f,filter:p,shouldFilter:v,loop:b,disablePointerSelection:h=!1,vimBindings:g=!0,...y}=t,w=tt(),C=tt(),$=tt(),D=T.useRef(null),E=_9();Rt(()=>{if(d!==void 0){let P=d.trim();n.current.value=P,x.emit()}},[d]),Rt(()=>{E(6,U)},[]);let x=T.useMemo(()=>({subscribe:P=>(l.current.add(P),()=>l.current.delete(P)),snapshot:()=>n.current,setState:(P,_,A)=>{var j,H,V;if(!Object.is(n.current[P],_)){if(n.current[P]=_,P==="search")R(),B(),E(1,S);else if(P==="value"&&(A||E(5,U),((j=a.current)==null?void 0:j.value)!==void 0)){let W=_??"";(V=(H=a.current).onValueChange)==null||V.call(H,W);return}x.emit()}},emit:()=>{l.current.forEach(P=>P())}}),[]),L=T.useMemo(()=>({value:(P,_,A)=>{var j;_!==((j=o.current.get(P))==null?void 0:j.value)&&(o.current.set(P,{value:_,keywords:A}),n.current.filtered.items.set(P,O(_,A)),E(2,()=>{B(),x.emit()}))},item:(P,_)=>(r.current.add(P),_&&(i.current.has(_)?i.current.get(_).add(P):i.current.set(_,new Set([P]))),E(3,()=>{R(),B(),n.current.value||S(),x.emit()}),()=>{o.current.delete(P),r.current.delete(P),n.current.filtered.items.delete(P);let A=k();E(4,()=>{R(),(A==null?void 0:A.getAttribute("id"))===P&&S(),x.emit()})}),group:P=>(i.current.has(P)||i.current.set(P,new Set),()=>{o.current.delete(P),i.current.delete(P)}),filter:()=>a.current.shouldFilter,label:s||t["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:w,inputId:$,labelId:C,listInnerRef:D}),[]);function O(P,_){var A,j;let H=(j=(A=a.current)==null?void 0:A.filter)!=null?j:m9;return P?H(P,n.current.search,_):0}function B(){if(!n.current.search||a.current.shouldFilter===!1)return;let P=n.current.filtered.items,_=[];n.current.filtered.groups.forEach(j=>{let H=i.current.get(j),V=0;H.forEach(W=>{let q=P.get(W);V=Math.max(q,V)}),_.push([j,V])});let A=D.current;Z().sort((j,H)=>{var V,W;let q=j.getAttribute("id"),Y=H.getAttribute("id");return((V=P.get(Y))!=null?V:0)-((W=P.get(q))!=null?W:0)}).forEach(j=>{let H=j.closest(vo);H?H.appendChild(j.parentElement===H?j:j.closest(`${vo} > *`)):A.appendChild(j.parentElement===A?j:j.closest(`${vo} > *`))}),_.sort((j,H)=>H[1]-j[1]).forEach(j=>{var H;let V=(H=D.current)==null?void 0:H.querySelector(`${Nn}[${wt}="${encodeURIComponent(j[0])}"]`);V==null||V.parentElement.appendChild(V)})}function S(){let P=Z().find(A=>A.getAttribute("aria-disabled")!=="true"),_=P==null?void 0:P.getAttribute(wt);x.setState("value",_||void 0)}function R(){var P,_,A,j;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let H=0;for(let V of r.current){let W=(_=(P=o.current.get(V))==null?void 0:P.value)!=null?_:"",q=(j=(A=o.current.get(V))==null?void 0:A.keywords)!=null?j:[],Y=O(W,q);n.current.filtered.items.set(V,Y),Y>0&&H++}for(let[V,W]of i.current)for(let q of W)if(n.current.filtered.items.get(q)>0){n.current.filtered.groups.add(V);break}n.current.filtered.count=H}function U(){var P,_,A;let j=k();j&&(((P=j.parentElement)==null?void 0:P.firstChild)===j&&((A=(_=j.closest(Nn))==null?void 0:_.querySelector(g9))==null||A.scrollIntoView({block:"nearest"})),j.scrollIntoView({block:"nearest"}))}function k(){var P;return(P=D.current)==null?void 0:P.querySelector(`${oa}[aria-selected="true"]`)}function Z(){var P;return Array.from(((P=D.current)==null?void 0:P.querySelectorAll(Ys))||[])}function I(P){let _=Z()[P];_&&x.setState("value",_.getAttribute(wt))}function M(P){var _;let A=k(),j=Z(),H=j.findIndex(W=>W===A),V=j[H+P];(_=a.current)!=null&&_.loop&&(V=H+P<0?j[j.length-1]:H+P===j.length?j[0]:j[H+P]),V&&x.setState("value",V.getAttribute(wt))}function z(P){let _=k(),A=_==null?void 0:_.closest(Nn),j;for(;A&&!j;)A=P>0?D9(A,Nn):P9(A,Nn),j=A==null?void 0:A.querySelector(Ys);j?x.setState("value",j.getAttribute(wt)):M(P)}let F=()=>I(Z().length-1),N=P=>{P.preventDefault(),P.metaKey?F():P.altKey?z(1):M(1)},K=P=>{P.preventDefault(),P.metaKey?I(0):P.altKey?z(-1):M(-1)};return T.createElement(Ce.div,{ref:e,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:P=>{var _;if((_=y.onKeyDown)==null||_.call(y,P),!P.defaultPrevented)switch(P.key){case"n":case"j":{g&&P.ctrlKey&&N(P);break}case"ArrowDown":{N(P);break}case"p":case"k":{g&&P.ctrlKey&&K(P);break}case"ArrowUp":{K(P);break}case"Home":{P.preventDefault(),I(0);break}case"End":{P.preventDefault(),F();break}case"Enter":if(!P.nativeEvent.isComposing&&P.keyCode!==229){P.preventDefault();let A=k();if(A){let j=new Event(il);A.dispatchEvent(j)}}}}},T.createElement("label",{"cmdk-label":"",htmlFor:L.inputId,id:L.labelId,style:I9},s),ki(t,P=>T.createElement(Fd.Provider,{value:x},T.createElement(Ad.Provider,{value:L},P))))}),b9=T.forwardRef((t,e)=>{var n,r;let i=tt(),o=T.useRef(null),l=T.useContext(Kd),a=ar(),s=Hd(t),u=(r=(n=s.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;Rt(()=>{if(!u)return a.item(i,l==null?void 0:l.id)},[u]);let d=Vd(i,o,[t.value,t.children,o],t.keywords),f=la(),p=Lt(E=>E.value&&E.value===d.current),v=Lt(E=>u||a.filter()===!1?!0:E.search?E.filtered.items.get(i)>0:!0);T.useEffect(()=>{let E=o.current;if(!(!E||t.disabled))return E.addEventListener(il,b),()=>E.removeEventListener(il,b)},[v,t.onSelect,t.disabled]);function b(){var E,x;h(),(x=(E=s.current).onSelect)==null||x.call(E,d.current)}function h(){f.setState("value",d.current,!0)}if(!v)return null;let{disabled:g,value:y,onSelect:w,forceMount:C,keywords:$,...D}=t;return T.createElement(Ce.div,{ref:tr([o,e]),...D,id:i,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!p,"data-disabled":!!g,"data-selected":!!p,onPointerMove:g||a.getDisablePointerSelection()?void 0:h,onClick:g?void 0:b},t.children)}),y9=T.forwardRef((t,e)=>{let{heading:n,children:r,forceMount:i,...o}=t,l=tt(),a=T.useRef(null),s=T.useRef(null),u=tt(),d=ar(),f=Lt(v=>i||d.filter()===!1?!0:v.search?v.filtered.groups.has(l):!0);Rt(()=>d.group(l),[]),Vd(l,a,[t.value,t.heading,s]);let p=T.useMemo(()=>({id:l,forceMount:i}),[i]);return T.createElement(Ce.div,{ref:tr([a,e]),...o,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&T.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),ki(t,v=>T.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},T.createElement(Kd.Provider,{value:p},v))))}),C9=T.forwardRef((t,e)=>{let{alwaysRender:n,...r}=t,i=T.useRef(null),o=Lt(l=>!l.search);return!n&&!o?null:T.createElement(Ce.div,{ref:tr([i,e]),...r,"cmdk-separator":"",role:"separator"})}),w9=T.forwardRef((t,e)=>{let{onValueChange:n,...r}=t,i=t.value!=null,o=la(),l=Lt(d=>d.search),a=Lt(d=>d.value),s=ar(),u=T.useMemo(()=>{var d;let f=(d=s.listInnerRef.current)==null?void 0:d.querySelector(`${oa}[${wt}="${encodeURIComponent(a)}"]`);return f==null?void 0:f.getAttribute("id")},[]);return T.useEffect(()=>{t.value!=null&&o.setState("search",t.value)},[t.value]),T.createElement(Ce.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":u,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)}})}),E9=T.forwardRef((t,e)=>{let{children:n,label:r="Suggestions",...i}=t,o=T.useRef(null),l=T.useRef(null),a=ar();return T.useEffect(()=>{if(l.current&&o.current){let s=l.current,u=o.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let p=s.offsetHeight;u.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return f.observe(s),()=>{cancelAnimationFrame(d),f.unobserve(s)}}},[]),T.createElement(Ce.div,{ref:tr([o,e]),...i,"cmdk-list":"",role:"listbox","aria-label":r,id:a.listId},ki(t,s=>T.createElement("div",{ref:tr([l,a.listInnerRef]),"cmdk-list-sizer":""},s)))}),S9=T.forwardRef((t,e)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:o,container:l,...a}=t;return T.createElement(f9,{open:n,onOpenChange:r},T.createElement(h9,{container:l},T.createElement(p9,{"cmdk-overlay":"",className:i}),T.createElement(v9,{"aria-label":t.label,"cmdk-dialog":"",className:o},T.createElement(jd,{ref:e,...a}))))}),x9=T.forwardRef((t,e)=>Lt(n=>n.filtered.count===0)?T.createElement(Ce.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),$9=T.forwardRef((t,e)=>{let{progress:n,children:r,label:i="Loading...",...o}=t;return T.createElement(Ce.div,{ref:e,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},ki(t,l=>T.createElement("div",{"aria-hidden":!0},l)))}),er=Object.assign(jd,{List:E9,Item:b9,Input:w9,Group:y9,Separator:C9,Dialog:S9,Empty:x9,Loading:$9});function D9(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}function P9(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}function Hd(t){let e=T.useRef(t);return Rt(()=>{e.current=t}),e}var Rt=typeof window>"u"?T.useEffect:T.useLayoutEffect;function an(t){let e=T.useRef();return e.current===void 0&&(e.current=t()),e}function tr(t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function Lt(t){let e=la(),n=()=>t(e.snapshot());return Nl.useSyncExternalStore(e.subscribe,n,n)}function Vd(t,e,n,r=[]){let i=T.useRef(),o=ar();return Rt(()=>{var l;let a=(()=>{var u;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(u=d.current.textContent)==null?void 0:u.trim():i.current}})(),s=r.map(u=>u.trim());o.value(t,a,s),(l=e.current)==null||l.setAttribute(wt,a),i.current=a}),i}var _9=()=>{let[t,e]=T.useState(),n=an(()=>new Map);return Rt(()=>{n.current.forEach(r=>r()),n.current=new Map},[t]),(r,i)=>{n.current.set(r,i),e({})}};function T9(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function ki({asChild:t,children:e},n){return t&&T.isValidElement(e)?T.cloneElement(T9(e),{ref:e.ref},n(e.props.children)):n(e)}var I9={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Bd=({withPadding:t=!0,direction:e,width:n="thin",size:r})=>m.jsx("div",{style:{"--size":r},className:ye("c__separator",`c__separator--${e}`,`c__separator--${n}`,{"with-padding":t})}),nr=t=>m.jsx(Bd,{direction:"horizontal",...t}),zd=({loading:t,inputValue:e,onFilter:n,placeholder:r,children:i,withSeparator:o=!0})=>{const{t:l}=X.useCunningham();return i?m.jsxs(m.Fragment,{children:[i,o&&m.jsx(nr,{})]}):m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"quick-search-input-container",children:[!t&&m.jsx("span",{className:"material-icons",children:"search"}),t&&m.jsx("div",{children:m.jsx(ni,{size:"md"})}),m.jsx(er.Input,{autoFocus:!0,"aria-label":l("Quick search input"),onClick:a=>{a.stopPropagation()},role:"combobox",value:e,placeholder:r,onValueChange:n})]}),o&&m.jsx(nr,{withPadding:!0})]})},O9=t=>{let e=!1;return c.Children.forEach(t,n=>{e=e||!!n}),e},Ud=({onFilter:t,inputContent:e,inputValue:n,loading:r,showInput:i=!0,label:o,placeholder:l,children:a})=>{const s=c.useRef(null);return m.jsx(m.Fragment,{children:m.jsx("div",{className:"quick-search-container",children:m.jsxs(er,{label:o,shouldFilter:!1,ref:s,children:[i&&m.jsx(zd,{loading:r,withSeparator:O9(a),inputValue:n,onFilter:t,placeholder:l,children:e}),m.jsx(er.List,{children:m.jsx("div",{children:a})})]})})})},Mr=({children:t,onSelect:e,id:n})=>m.jsx(er.Item,{value:n,onSelect:e,children:t}),Wd=({group:t,onSelect:e,renderElement:n})=>{var r,i;return!t.showWhenEmpty&&t.elements.length===0?null:m.jsx("div",{children:m.jsxs(er.Group,{heading:t.groupName,forceMount:!1,children:[(r=t.startActions)==null?void 0:r.map((o,l)=>m.jsx(Mr,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.elements.map((o,l)=>m.jsx(Mr,{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)=>m.jsx(Mr,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.emptyString&&t.elements.length===0&&m.jsx("span",{className:"quick-search-group__empty-string",children:t.emptyString})]},t.groupName)})},Ni=({alwaysShowRight:t=!1,left:e,right:n})=>{const{isDesktop:r}=bt();return m.jsxs("div",{className:"c__quick-search-item-template",children:[m.jsx("div",{className:"c__quick-search-item-template__left",children:e}),r&&n&&m.jsx("div",{className:ye("c__quick-search-item-template__right",{"always-show-right":t,"show-right-on-focus":!t}),children:n})]})},k9=t=>m.jsx(Bd,{direction:"vertical",...t}),N9=({tabs:t,defaultSelectedTab:e,fullWidth:n=!1})=>t.length===0?null:m.jsx("div",{className:ye("c__tabs",{"c__tabs__full-width":n}),children:m.jsxs(v4,{defaultSelectedKey:e,children:[m.jsx(m4,{"aria-label":"History of Ancient Rome",children:t.map(r=>m.jsxs(y4,{id:r.id,children:[r.icon&&m.jsx("span",{className:"material-icons",children:r.icon}),r.label]},r.id))}),t.map(r=>m.jsx(C4,{id:r.id,children:r.content},r.id))]})}),Zd=c.createContext(null);function ke(){const t=c.useContext(Zd);if(t===null)throw new Error("No Tree Api Provided");return t}const Gd=c.createContext(null);function M9(){const t=c.useContext(Gd);if(t===null)throw new Error("Provide a NodesContext");return t}const qd=c.createContext(null);function R9(){const t=c.useContext(qd);if(t===null)throw new Error("Provide a DnDContext");return t}const Yd=c.createContext(0);function Xd(){c.useContext(Yd)}function Rr(t,e,n){return Math.max(Math.min(t,n),e)}function Jd(t){return t&&t.isLeaf}function Qd(t){return t&&t.isInternal&&!t.isOpen}function ef(t){var e;return t&&t.isOpen&&!(!((e=t.children)===null||e===void 0)&&e.length)}const tf=(t,e)=>{let n=t;for(;n;){if(n.id===e.id)return!0;n=n.parent}return!1},nf=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 aa(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let n of t.children){const r=aa(n,e);if(r)return r}return null}function ii(t,e){if(e(t),t.children)for(let n of t.children)ii(n,e)}function rf(t){const e=lf(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 of(t){const e=lf(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=F9(e,r);break}n==null||n.focus()}function A9(t,e){return e+1<t.length?t[e+1]:t[0]}function F9(t,e){return e-1>=0?t[e-1]:t[t.length-1]}function lf(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 Hn(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function af(t){return t===null?null:Et(t)}function Et(t){return typeof t=="string"?t:t.id}function K9(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function sf(t,...e){if(t)return t(...e)}function uf(t){return new Promise((e,n)=>{let r=0;function i(){r+=1,r===100&&n(),t()?e():setTimeout(i,10)}i()})}function cf(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 df(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const j9=Object.freeze(Object.defineProperty({__proto__:null,access:Hn,bound:Rr,dfs:aa,focusNextElement:rf,focusPrevElement:of,getInsertIndex:cf,getInsertParentId:df,identify:Et,identifyNull:af,indexOf:nf,isClosed:Qd,isDescendant:tf,isItem:Jd,isOpenWithEmptyChildren:ef,mergeRefs:K9,noop:L9,safeRun:sf,waitFor:uf,walk:ii},Symbol.toStringTag,{value:"Module"})),H9={display:"flex",alignItems:"center",zIndex:1},V9={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},B9={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},z9=c.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 m.jsxs("div",{style:Object.assign(Object.assign({},H9),i),children:[m.jsx("div",{style:Object.assign({},B9)}),m.jsx("div",{style:Object.assign({},V9)})]})});function U9({node:t,attrs:e,innerRef:n,children:r}){return m.jsx("div",Object.assign({},e,{ref:n,onFocus:i=>i.stopPropagation(),onClick:t.handleClick,children:r}))}function W9(t){return m.jsxs("div",{ref:t.dragHandle,style:t.style,children:[m.jsx("span",{onClick:e=>{e.stopPropagation(),t.node.toggle()},children:t.node.isLeaf?"🌳":t.node.isOpen?"🗁":"🗀"})," ",t.node.isEditing?m.jsx(G9,Object.assign({},t)):m.jsx(Z9,Object.assign({},t))]})}function Z9(t){return m.jsx(m.Fragment,{children:m.jsx("span",{children:t.node.data.name})})}function G9({node:t}){const e=c.useRef();return c.useEffect(()=>{var n,r;(n=e.current)===null||n===void 0||n.focus(),(r=e.current)===null||r===void 0||r.select()},[]),m.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 go(t){return{type:"EDIT",id:t}}function q9(t={id:null},e){return e.type==="EDIT"?Object.assign(Object.assign({},t),{id:e.id}):t}function Jt(t){return{type:"FOCUS",id:t}}function Y9(){return{type:"TREE_BLUR"}}function X9(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 oi{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===rr}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 oi(Object.assign({},this))}edit(){return this.tree.edit(this)}}const rr="__REACT_ARBORIST_INTERNAL_ROOT__";function Xs(t){var e;function n(o,l,a){const s=t.accessId(o),u=new oi({tree:t,data:o,level:l,parent:a,id:s,children:null,isDraggable:t.isDraggable(o),rowIndex:null}),d=t.accessChildren(o);return d&&(u.children=d.map(f=>n(f,l+1,u))),u}const r=new oi({tree:t,id:rr,data:{id:rr},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 ol={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 Js(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 J9(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?Object.assign(Object.assign({},t),{filtered:Js(t.filtered,e)}):Object.assign(Object.assign({},t),{unfiltered:Js(t.unfiltered,e)}):t}const wn=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}}},Ke={clear:()=>({type:"SELECTION_CLEAR"}),only:t=>({type:"SELECTION_ONLY",id:Et(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(Et)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(Et)}),set:t=>Object.assign({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:Et(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:Et(t)})};function Q9(t=wn().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 En={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 eg(t=wn().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 wn().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},t),{parentId:e.parentId,index:e.index});default:return t}}const tg={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},ng=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e}px, ${n}px)`}},rg=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e+10}px, ${n+10}px)`}};function ff({offset:t,mouse:e,id:n,dragIds:r,isDragging:i}){return m.jsxs(ig,{isDragging:i,children:[m.jsx(og,{offset:t,children:m.jsx(ag,{id:n,dragIds:r})}),m.jsx(lg,{mouse:e,count:r.length})]})}const ig=c.memo(function(e){return e.isDragging?m.jsx("div",{style:tg,children:e.children}):null});function og(t){return m.jsx("div",{className:"row preview",style:ng(t.offset),children:t.children})}function lg(t){const{count:e,mouse:n}=t;return e>1?m.jsx("div",{className:"selected-count",style:rg(n),children:e}):null}const ag=c.memo(function(e){const n=ke(),r=n.get(e.id);return r?m.jsx(n.renderNode,{preview:!0,node:r,style:{paddingLeft:r.level*n.indent,opacity:.2,background:"transparent"},tree:n}):null});function ll(){return ll=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},ll.apply(null,arguments)}function Qs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function al(t,e){return al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},al(t,e)}function sg(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,al(t,e)}var eu=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function ug(t,e){return!!(t===e||eu(t)&&eu(e))}function cg(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!ug(t[n],e[n]))return!1;return!0}function mo(t,e){e===void 0&&(e=cg);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 dg=typeof performance=="object"&&typeof performance.now=="function",tu=dg?function(){return performance.now()}:function(){return Date.now()};function nu(t){cancelAnimationFrame(t.id)}function fg(t,e){var n=tu();function r(){tu()-n>=e?t.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var bo=-1;function ru(t){if(t===void 0&&(t=!1),bo===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),bo=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return bo}var Qt=null;function iu(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 hg=150,pg=function(e,n){return e},Lr=null,Ar=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(Lr=new WeakSet,Ar=new WeakSet);function vg(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,l=t.getStartIndexForOffset,a=t.getStopIndexForStartIndex,s=t.initInstanceProps,u=t.shouldResetStyleCacheOnItemSizeChange,d=t.validateProps;return e=function(f){sg(p,f);function p(b){var h;return h=f.call(this,b)||this,h._instanceProps=s(h.props,Qs(h)),h._outerRef=void 0,h._resetIsScrollingTimeoutId=null,h.state={instance:Qs(h),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof h.props.initialScrollOffset=="number"?h.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},h._callOnItemsRendered=void 0,h._callOnItemsRendered=mo(function(g,y,w,C){return h.props.onItemsRendered({overscanStartIndex:g,overscanStopIndex:y,visibleStartIndex:w,visibleStopIndex:C})}),h._callOnScroll=void 0,h._callOnScroll=mo(function(g,y,w){return h.props.onScroll({scrollDirection:g,scrollOffset:y,scrollUpdateWasRequested:w})}),h._getItemStyle=void 0,h._getItemStyle=function(g){var y=h.props,w=y.direction,C=y.itemSize,$=y.layout,D=h._getItemStyleCache(u&&C,u&&$,u&&w),E;if(D.hasOwnProperty(g))E=D[g];else{var x=n(h.props,g,h._instanceProps),L=i(h.props,g,h._instanceProps),O=w==="horizontal"||$==="horizontal",B=w==="rtl",S=O?x:0;D[g]=E={position:"absolute",left:B?void 0:S,right:B?S:void 0,top:O?0:x,height:O?"100%":L,width:O?L:"100%"}}return E},h._getItemStyleCache=void 0,h._getItemStyleCache=mo(function(g,y,w){return{}}),h._onScrollHorizontal=function(g){var y=g.currentTarget,w=y.clientWidth,C=y.scrollLeft,$=y.scrollWidth;h.setState(function(D){if(D.scrollOffset===C)return null;var E=h.props.direction,x=C;if(E==="rtl")switch(iu()){case"negative":x=-C;break;case"positive-descending":x=$-w-C;break}return x=Math.max(0,Math.min(x,$-w)),{isScrolling:!0,scrollDirection:D.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._onScrollVertical=function(g){var y=g.currentTarget,w=y.clientHeight,C=y.scrollHeight,$=y.scrollTop;h.setState(function(D){if(D.scrollOffset===$)return null;var E=Math.max(0,Math.min($,C-w));return{isScrolling:!0,scrollDirection:D.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._outerRefSetter=function(g){var y=h.props.outerRef;h._outerRef=g,typeof y=="function"?y(g):y!=null&&typeof y=="object"&&y.hasOwnProperty("current")&&(y.current=g)},h._resetIsScrollingDebounced=function(){h._resetIsScrollingTimeoutId!==null&&nu(h._resetIsScrollingTimeoutId),h._resetIsScrollingTimeoutId=fg(h._resetIsScrolling,hg)},h._resetIsScrolling=function(){h._resetIsScrollingTimeoutId=null,h.setState({isScrolling:!1},function(){h._getItemStyleCache(-1,null)})},h}p.getDerivedStateFromProps=function(h,g){return gg(h,g),d(h),null};var v=p.prototype;return v.scrollTo=function(h){h=Math.max(0,h),this.setState(function(g){return g.scrollOffset===h?null:{scrollDirection:g.scrollOffset<h?"forward":"backward",scrollOffset:h,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(h,g){g===void 0&&(g="auto");var y=this.props,w=y.itemCount,C=y.layout,$=this.state.scrollOffset;h=Math.max(0,Math.min(h,w-1));var D=0;if(this._outerRef){var E=this._outerRef;C==="vertical"?D=E.scrollWidth>E.clientWidth?ru():0:D=E.scrollHeight>E.clientHeight?ru():0}this.scrollTo(o(this.props,h,g,$,this._instanceProps,D))},v.componentDidMount=function(){var h=this.props,g=h.direction,y=h.initialScrollOffset,w=h.layout;if(typeof y=="number"&&this._outerRef!=null){var C=this._outerRef;g==="horizontal"||w==="horizontal"?C.scrollLeft=y:C.scrollTop=y}this._callPropsCallbacks()},v.componentDidUpdate=function(){var h=this.props,g=h.direction,y=h.layout,w=this.state,C=w.scrollOffset,$=w.scrollUpdateWasRequested;if($&&this._outerRef!=null){var D=this._outerRef;if(g==="horizontal"||y==="horizontal")if(g==="rtl")switch(iu()){case"negative":D.scrollLeft=-C;break;case"positive-ascending":D.scrollLeft=C;break;default:var E=D.clientWidth,x=D.scrollWidth;D.scrollLeft=x-E-C;break}else D.scrollLeft=C;else D.scrollTop=C}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&nu(this._resetIsScrollingTimeoutId)},v.render=function(){var h=this.props,g=h.children,y=h.className,w=h.direction,C=h.height,$=h.innerRef,D=h.innerElementType,E=h.innerTagName,x=h.itemCount,L=h.itemData,O=h.itemKey,B=O===void 0?pg:O,S=h.layout,R=h.outerElementType,U=h.outerTagName,k=h.style,Z=h.useIsScrolling,I=h.width,M=this.state.isScrolling,z=w==="horizontal"||S==="horizontal",F=z?this._onScrollHorizontal:this._onScrollVertical,N=this._getRangeToRender(),K=N[0],P=N[1],_=[];if(x>0)for(var A=K;A<=P;A++)_.push(c.createElement(g,{data:L,key:B(A,L),index:A,isScrolling:Z?M:void 0,style:this._getItemStyle(A)}));var j=r(this.props,this._instanceProps);return c.createElement(R||U||"div",{className:y,onScroll:F,ref:this._outerRefSetter,style:ll({position:"relative",height:C,width:I,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:w},k)},c.createElement(D||E||"div",{children:_,ref:$,style:{height:z?"100%":j,pointerEvents:M?"none":void 0,width:z?j:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var h=this.props.itemCount;if(h>0){var g=this._getRangeToRender(),y=g[0],w=g[1],C=g[2],$=g[3];this._callOnItemsRendered(y,w,C,$)}}if(typeof this.props.onScroll=="function"){var D=this.state,E=D.scrollDirection,x=D.scrollOffset,L=D.scrollUpdateWasRequested;this._callOnScroll(E,x,L)}},v._getRangeToRender=function(){var h=this.props,g=h.itemCount,y=h.overscanCount,w=this.state,C=w.isScrolling,$=w.scrollDirection,D=w.scrollOffset;if(g===0)return[0,0,0,0];var E=l(this.props,D,this._instanceProps),x=a(this.props,E,D,this._instanceProps),L=!C||$==="backward"?Math.max(1,y):1,O=!C||$==="forward"?Math.max(1,y):1;return[Math.max(0,E-L),Math.max(0,Math.min(g-1,x+O)),E,x]},p}(c.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var gg=function(e,n){var r=e.children,i=e.direction,o=e.height,l=e.layout,a=e.innerTagName,s=e.outerTagName,u=e.width,d=n.instance;if(process.env.NODE_ENV!=="production"){(a!=null||s!=null)&&Ar&&!Ar.has(d)&&(Ar.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":Lr&&!Lr.has(d)&&(Lr.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 u!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(u===null?"null":typeof u)+'" 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.'))}},mg=vg({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,u=e.itemCount,d=e.itemSize,f=e.layout,p=e.width,v=a==="horizontal"||f==="horizontal",b=v?p:s,h=Math.max(0,u*d-b),g=Math.min(h,n*d),y=Math.max(0,n*d-b+d+l);switch(r==="smart"&&(i>=y-b&&i<=g+b?r="auto":r="center"),r){case"start":return g;case"end":return y;case"center":{var w=Math.round(y+(g-y)/2);return w<Math.ceil(b/2)?0:w>h+Math.floor(b/2)?h:w}case"auto":default:return i>=y&&i<=g?i:i<y?y: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,u=e.width,d=i==="horizontal"||s==="horizontal",f=n*a,p=d?u:o,v=Math.ceil((p+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 bg(){var t,e;const n=ke(),i=R9().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 m.jsx(s,{top:l,left:a,indent:o})}var yg=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 Cg=c.forwardRef(function(e,n){const{children:r}=e,i=yg(e,["children"]),o=ke();return m.jsxs("div",Object.assign({ref:n},i,{onClick:l=>{l.currentTarget===l.target&&o.deselectAll()},children:[m.jsx(wg,{}),r]}))}),wg=()=>{const t=ke();return m.jsx("div",{style:{height:t.visibleNodes.length*t.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:m.jsx(bg,{})})};var Eg=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 Sg=c.forwardRef(function(e,n){var r,i,o,l,{style:a}=e,s=Eg(e,["style"]);const u=ke(),d=(i=(r=u.props.padding)!==null&&r!==void 0?r:u.props.paddingTop)!==null&&i!==void 0?i:0,f=(l=(o=u.props.padding)!==null&&o!==void 0?o:u.props.paddingBottom)!==null&&l!==void 0?l:0;return m.jsx("div",Object.assign({ref:n,style:Object.assign(Object.assign({},a),{height:`${parseFloat(a.height)+d+f}px`})},s))});var hf=c.createContext({dragDropManager:void 0}),Le;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Le||(Le={}));function J(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 sa="dnd-core/INIT_COORDS",Mi="dnd-core/BEGIN_DRAG",ua="dnd-core/PUBLISH_DRAG_SOURCE",Ri="dnd-core/HOVER",Li="dnd-core/DROP",Ai="dnd-core/END_DRAG";function ou(t,e){return{type:sa,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function Fr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fr=function(n){return typeof n}:Fr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fr(t)}function xg(t,e,n){return e.split(".").reduce(function(r,i){return r&&r[i]?r[i]:n||null},t)}function $g(t,e){return t.filter(function(n){return n!==e})}function pf(t){return Fr(t)==="object"}function Dg(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 Pg(t,e){return t.filter(function(n){return e.indexOf(n)>-1})}var _g={type:sa,payload:{clientOffset:null,sourceClientOffset:null}};function Tg(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(),u=t.getRegistry();t.dispatch(ou(l)),Ig(n,s,u);var d=Ng(n,s);if(d===null){t.dispatch(_g);return}var f=null;if(l){if(!a)throw new Error("getSourceClientOffset must be defined");Og(a),f=a(d)}t.dispatch(ou(l,f));var p=u.getSource(d),v=p.beginDrag(s,d);if(v!=null){kg(v),u.pinSource(d);var b=u.getSourceType(d);return{type:Mi,payload:{itemType:b,item:v,sourceId:d,clientOffset:l||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}}}function Ig(t,e,n){J(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){J(n.getSource(r),"Expected sourceIds to be registered.")})}function Og(t){J(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function kg(t){J(pf(t),"Item must be an object.")}function Ng(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 Mg(t){return function(){var n=t.getMonitor();if(n.isDragging())return{type:ua}}}function sl(t,e){return e===null?t===null:Array.isArray(t)?t.some(function(n){return n===e}):t===e}function Rg(t){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.clientOffset;Lg(n);var o=n.slice(0),l=t.getMonitor(),a=t.getRegistry();Ag(o,l,a);var s=l.getItemType();return Fg(o,a,s),Kg(o,l,a),{type:Ri,payload:{targetIds:o,clientOffset:i||null}}}}function Lg(t){J(Array.isArray(t),"Expected targetIds to be an array.")}function Ag(t,e,n){J(e.isDragging(),"Cannot call hover while not dragging."),J(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var i=t[r];J(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");var o=n.getTarget(i);J(o,"Expected targetIds to be registered.")}}function Fg(t,e,n){for(var r=t.length-1;r>=0;r--){var i=t[r],o=e.getTargetType(i);sl(o,n)||t.splice(r,1)}}function Kg(t,e,n){t.forEach(function(r){var i=n.getTarget(r);i.hover(e,r)})}function lu(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 au(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lu(Object(n),!0).forEach(function(r){jg(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function jg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hg(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getMonitor(),i=t.getRegistry();Vg(r);var o=Ug(r);o.forEach(function(l,a){var s=Bg(l,a,i,r),u={type:Li,payload:{dropResult:au(au({},n),s)}};t.dispatch(u)})}}function Vg(t){J(t.isDragging(),"Cannot call drop while not dragging."),J(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Bg(t,e,n,r){var i=n.getTarget(t),o=i?i.drop(r,t):void 0;return zg(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function zg(t){J(typeof t>"u"||pf(t),"Drop result must either be an object or undefined.")}function Ug(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function Wg(t){return function(){var n=t.getMonitor(),r=t.getRegistry();Zg(n);var i=n.getSourceId();if(i!=null){var o=r.getSource(i,!0);o.endDrag(n,i),r.unpinSource()}return{type:Ai}}}function Zg(t){J(t.isDragging(),"Cannot call endDrag while not dragging.")}function Gg(t){return{beginDrag:Tg(t),publishDragSource:Mg(t),hover:Rg(t),drop:Hg(t),endDrag:Wg(t)}}function qg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yg(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 Xg(t,e,n){return e&&Yg(t.prototype,e),t}function Mn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jg=function(){function t(e,n){var r=this;qg(this,t),Mn(this,"store",void 0),Mn(this,"monitor",void 0),Mn(this,"backend",void 0),Mn(this,"isSetUp",!1),Mn(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 Xg(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),u=0;u<a;u++)s[u]=arguments[u];var d=l.apply(n,s);typeof d<"u"&&r(d)}}var o=Gg(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 Ne(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 su=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),uu=function(){return Math.random().toString(36).substring(7).split("").join(".")},cu={INIT:"@@redux/INIT"+uu(),REPLACE:"@@redux/REPLACE"+uu()};function Qg(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 e7(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(r7(t))return"date";if(n7(t))return"error";var n=t7(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 t7(t){return typeof t.constructor=="function"?t.constructor.name:null}function n7(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function r7(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function en(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=e7(t)),e}function vf(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"?Ne(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"?Ne(1):"Expected the enhancer to be a function. Instead, received: '"+en(n)+"'");return n(vf)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Ne(2):"Expected the root reducer to be a function. Instead, received: '"+en(t)+"'");var i=t,o=e,l=[],a=l,s=!1;function u(){a===l&&(a=l.slice())}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?Ne(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(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?Ne(4):"Expected the listener to be a function. Instead, received: '"+en(h)+"'");if(s)throw new Error(process.env.NODE_ENV==="production"?Ne(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 u(),a.push(h),function(){if(g){if(s)throw new Error(process.env.NODE_ENV==="production"?Ne(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,u();var w=a.indexOf(h);a.splice(w,1),l=null}}}function p(h){if(!Qg(h))throw new Error(process.env.NODE_ENV==="production"?Ne(7):"Actions must be plain objects. Instead, the actual type was: '"+en(h)+"'. 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 h.type>"u")throw new Error(process.env.NODE_ENV==="production"?Ne(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"?Ne(9):"Reducers may not dispatch actions.");try{s=!0,o=i(o,h)}finally{s=!1}for(var g=l=a,y=0;y<g.length;y++){var w=g[y];w()}return h}function v(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?Ne(10):"Expected the nextReducer to be a function. Instead, received: '"+en(h));i=h,p({type:cu.REPLACE})}function b(){var h,g=f;return h={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(process.env.NODE_ENV==="production"?Ne(11):"Expected the observer to be an object. Instead, received: '"+en(w)+"'");function C(){w.next&&w.next(d())}C();var $=g(C);return{unsubscribe:$}}},h[su]=function(){return this},h}return p({type:cu.INIT}),r={dispatch:p,subscribe:f,getState:d,replaceReducer:v},r[su]=b,r}var i7=function(e,n){return e===n};function o7(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function l7(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:i7;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 du(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 fu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?du(Object(n),!0).forEach(function(r){a7(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):du(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function a7(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hu={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function s7(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hu,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case sa:case Mi:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Ri:return o7(t.clientOffset,n.clientOffset)?t:fu(fu({},t),{},{clientOffset:n.clientOffset});case Ai:case Li:return hu;default:return t}}var ca="dnd-core/ADD_SOURCE",da="dnd-core/ADD_TARGET",fa="dnd-core/REMOVE_SOURCE",Fi="dnd-core/REMOVE_TARGET";function u7(t){return{type:ca,payload:{sourceId:t}}}function c7(t){return{type:da,payload:{targetId:t}}}function d7(t){return{type:fa,payload:{sourceId:t}}}function f7(t){return{type:Fi,payload:{targetId:t}}}function pu(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 Me(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pu(Object(n),!0).forEach(function(r){h7(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function h7(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p7={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function v7(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p7,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case Mi:return Me(Me({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case ua:return Me(Me({},t),{},{isSourcePublic:!0});case Ri:return Me(Me({},t),{},{targetIds:n.targetIds});case Fi:return t.targetIds.indexOf(n.targetId)===-1?t:Me(Me({},t),{},{targetIds:$g(t.targetIds,n.targetId)});case Li:return Me(Me({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Ai:return Me(Me({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function g7(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case ca:case da:return t+1;case fa:case Fi:return t-1;default:return t}}var li=[],ha=[];li.__IS_NONE__=!0;ha.__IS_ALL__=!0;function m7(t,e){if(t===li)return!1;if(t===ha||typeof e>"u")return!0;var n=Pg(e,t);return n.length>0}function b7(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ri:break;case ca:case da:case Fi:case fa:return li;case Mi:case ua:case Ai:case Li:default:return ha}var e=t.payload,n=e.targetIds,r=n===void 0?[]:n,i=e.prevTargetIds,o=i===void 0?[]:i,l=Dg(r,o),a=l.length>0||!l7(r,o);if(!a)return li;var s=o[o.length-1],u=r[r.length-1];return s!==u&&(s&&l.push(s),u&&l.push(u)),l}function y7(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t+1}function vu(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 gu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vu(Object(n),!0).forEach(function(r){C7(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function C7(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w7(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:b7(t.dirtyHandlerIds,{type:e.type,payload:gu(gu({},e.payload),{},{prevTargetIds:xg(t,"dragOperation.targetIds",[])})}),dragOffset:s7(t.dragOffset,e),refCount:g7(t.refCount,e),dragOperation:v7(t.dragOperation,e),stateId:y7(t.stateId)}}function E7(t,e){return{x:t.x+e.x,y:t.y+e.y}}function gf(t,e){return{x:t.x-e.x,y:t.y-e.y}}function S7(t){var e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset;return!e||!n||!r?null:gf(E7(e,r),n)}function x7(t){var e=t.clientOffset,n=t.initialClientOffset;return!e||!n?null:gf(e,n)}function $7(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 P7(t,e,n){return e&&D7(t.prototype,e),t}function mu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _7=function(){function t(e,n){$7(this,t),mu(this,"store",void 0),mu(this,"registry",void 0),this.store=e,this.registry=n}return P7(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;J(typeof n=="function","listener must be a function."),J(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var l=this.store.getState().stateId,a=function(){var u=r.store.getState(),d=u.stateId;try{var f=d===l||d===l+1&&!m7(u.dirtyHandlerIds,o);f||n()}finally{l=d}};return this.store.subscribe(a)}},{key:"subscribeToOffsetChange",value:function(n){var r=this;J(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 J(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(J(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 sl(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(J(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&&!sl(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 S7(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return x7(this.store.getState().dragOffset)}}]),t}(),T7=0;function I7(){return T7++}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 O7(t){J(typeof t.canDrag=="function","Expected canDrag to be a function."),J(typeof t.beginDrag=="function","Expected beginDrag to be a function."),J(typeof t.endDrag=="function","Expected endDrag to be a function.")}function k7(t){J(typeof t.canDrop=="function","Expected canDrop to be a function."),J(typeof t.hover=="function","Expected hover to be a function."),J(typeof t.drop=="function","Expected beginDrag to be a function.")}function ul(t,e){if(e&&Array.isArray(t)){t.forEach(function(n){return ul(n,!1)});return}J(typeof t=="string"||Kr(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 bu=typeof global<"u"?global:self,mf=bu.MutationObserver||bu.WebKitMutationObserver;function bf(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function N7(t){let e=1;const n=new mf(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const M7=typeof mf=="function"?N7:bf;class R7{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=M7(this.flush),this.requestErrorThrow=bf(()=>{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 yf=new R7,F7=new A7(yf.registerPendingError);function K7(t){yf.enqueueTask(F7.create(t))}function j7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function H7(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 V7(t,e,n){return e&&H7(t.prototype,e),t}function tn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function B7(t,e){return Z7(t)||W7(t,e)||U7(t,e)||z7()}function z7(){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 t8(t,e){if(t){if(typeof t=="string")return Eu(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 Eu(t,e)}}function Eu(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 n8(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 r8(t){if(Array.isArray(t))return t}function i8(t,e){if(t==null)return{};var n=o8(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 o8(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 Su=0,jr=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),l8=c.memo(function(e){var n=e.children,r=i8(e,J7),i=a8(r),o=Q7(i,2),l=o[0],a=o[1];return c.useEffect(function(){if(a){var s=Cf();return++Su,function(){--Su===0&&(s[jr]=null)}}},[]),m.jsx(hf.Provider,Object.assign({value:l},{children:n}),void 0)});function a8(t){if("manager"in t){var e={dragDropManager:t.manager};return[e,!1]}var n=s8(t.backend,t.context,t.options,t.debugMode),r=!t.context;return[n,r]}function s8(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cf(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=e;return i[jr]||(i[jr]={dragDropManager:Y7(t,e,n,r)}),i[jr]}function Cf(){return typeof global<"u"?global:window}function u8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c8(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 d8(t,e,n){return e&&c8(t.prototype,e),t}function xu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yo=!1,Co=!1,f8=function(){function t(e){u8(this,t),xu(this,"internalMonitor",void 0),xu(this,"sourceId",null),this.internalMonitor=e.getMonitor()}return d8(t,[{key:"receiveHandlerId",value:function(n){this.sourceId=n}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){J(!yo,"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 yo=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{yo=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;J(!Co,"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 Co=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Co=!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 h8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p8(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 v8(t,e,n){return e&&p8(t.prototype,e),t}function $u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wo=!1,g8=function(){function t(e){h8(this,t),$u(this,"internalMonitor",void 0),$u(this,"targetId",null),this.internalMonitor=e.getMonitor()}return v8(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;J(!wo,"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 wo=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{wo=!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 m8(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 b8(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(!c.isValidElement(e)){var r=e;return t(r,n),r}var i=e;m8(i);var o=n?function(l){return t(l,n)}:t;return y8(i,o)}}function wf(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=b8(r);e[n]=function(){return i}}}),e}function Du(t,e){typeof t=="function"?t(e):t.current=e}function y8(t,e){var n=t.ref;return J(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?c.cloneElement(t,{ref:function(i){Du(n,i),Du(e,i)}}):c.cloneElement(t,{ref:e})}function Hr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hr=function(n){return typeof n}:Hr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hr(t)}function cl(t){return t!==null&&Hr(t)==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function dl(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 u=o[s];if(!a(u))return!1;var d=t[u],f=e[u];if(i=void 0,i===!1||i===void 0&&d!==f)return!1}return!0}function C8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w8(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 E8(t,e,n){return e&&w8(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 S8=function(){function t(e){var n=this;C8(this,t),we(this,"hooks",wf({dragSource:function(i,o){n.clearDragSource(),n.dragSourceOptions=o||null,cl(i)?n.dragSourceRef=i:n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,o){n.clearDragPreview(),n.dragPreviewOptions=o||null,cl(i)?n.dragPreviewRef=i:n.dragPreviewNode=i,n.reconnectDragPreview()}})),we(this,"handlerId",null),we(this,"dragSourceRef",null),we(this,"dragSourceNode",void 0),we(this,"dragSourceOptionsInternal",null),we(this,"dragSourceUnsubscribe",void 0),we(this,"dragPreviewRef",null),we(this,"dragPreviewNode",void 0),we(this,"dragPreviewOptionsInternal",null),we(this,"dragPreviewUnsubscribe",void 0),we(this,"lastConnectedHandlerId",null),we(this,"lastConnectedDragSource",null),we(this,"lastConnectedDragSourceOptions",null),we(this,"lastConnectedDragPreview",null),we(this,"lastConnectedDragPreviewOptions",null),we(this,"backend",void 0),this.backend=e}return E8(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!dl(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!dl(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 x8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $8(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 D8(t,e,n){return e&&$8(t.prototype,e),t}function Ze(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var P8=function(){function t(e){var n=this;x8(this,t),Ze(this,"hooks",wf({dropTarget:function(i,o){n.clearDropTarget(),n.dropTargetOptions=o,cl(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}})),Ze(this,"handlerId",null),Ze(this,"dropTargetRef",null),Ze(this,"dropTargetNode",void 0),Ze(this,"dropTargetOptionsInternal",null),Ze(this,"unsubscribeDropTarget",void 0),Ze(this,"lastConnectedHandlerId",null),Ze(this,"lastConnectedDropTarget",null),Ze(this,"lastConnectedDropTargetOptions",null),Ze(this,"backend",void 0),this.backend=e}return D8(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!dl(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 _8(t,e,n){var r=n.getRegistry(),i=r.addTarget(t,e);return[i,function(){return r.removeTarget(i)}]}function T8(t,e,n){var r=n.getRegistry(),i=r.addSource(t,e);return[i,function(){return r.removeSource(i)}]}var At=typeof window<"u"?c.useLayoutEffect:c.useEffect;function Vr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vr=function(n){return typeof n}:Vr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vr(t)}function I8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O8(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 k8(t,e,n){return e&&O8(t.prototype,e),t}function Eo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var N8=function(){function t(e,n,r){I8(this,t),Eo(this,"spec",void 0),Eo(this,"monitor",void 0),Eo(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}return k8(t,[{key:"beginDrag",value:function(){var n,r=this.spec,i=this.monitor,o=null;return Vr(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 M8(t,e,n){var r=c.useMemo(function(){return new N8(t,e,n)},[e,n]);return c.useEffect(function(){r.spec=t},[t]),r}function Bt(){var t=c.useContext(hf),e=t.dragDropManager;return J(e!=null,"Expected drag drop context"),e}function R8(t){return c.useMemo(function(){var e=t.type;return J(e!=null,"spec.type must be defined"),e},[t])}function L8(t,e){return j8(t)||K8(t,e)||F8(t,e)||A8()}function A8(){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"]}),Dr(nn,Of,{exposeProperties:{text:function(e,n){return xo(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),nn);function Z6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function G6(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 q6(t,e,n){return e&&G6(t.prototype,e),t}function Au(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Y6=function(){function t(e){Z6(this,t),Au(this,"item",void 0),Au(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return q6(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 X6(t,e){var n=new Y6(hl[t]);return n.loadDataTransfer(e),n}function $o(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(hl).filter(function(n){var r=hl[n].matchesTypes;return r.some(function(i){return e.indexOf(i)>-1})})[0]||null}function J6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Q6(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 em(t,e,n){return e&&Q6(t.prototype,e),t}function Do(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var tm=function(){function t(e,n){J6(this,t),Do(this,"ownerDocument",null),Do(this,"globalContext",void 0),Do(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}return em(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 Fu(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 Ku(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fu(Object(n),!0).forEach(function(r){ee(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function nm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rm(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 im(t,e,n){return e&&rm(t.prototype,e),t}function ee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var om=function(){function t(e,n,r){var i=this;nm(this,t),ee(this,"options",void 0),ee(this,"actions",void 0),ee(this,"monitor",void 0),ee(this,"registry",void 0),ee(this,"enterLeaveCounter",void 0),ee(this,"sourcePreviewNodes",new Map),ee(this,"sourcePreviewNodeOptions",new Map),ee(this,"sourceNodes",new Map),ee(this,"sourceNodeOptions",new Map),ee(this,"dragStartSourceIds",null),ee(this,"dropTargetIds",[]),ee(this,"dragEnterTargetIds",[]),ee(this,"currentNativeSource",null),ee(this,"currentNativeHandle",null),ee(this,"currentDragSourceNode",null),ee(this,"altKeyPressed",!1),ee(this,"mouseMoveTimeoutTimer",null),ee(this,"asyncEndDragFrameId",null),ee(this,"dragOverTargetIds",null),ee(this,"lastClientOffset",null),ee(this,"hoverRafId",null),ee(this,"getSourceClientOffset",function(o){var l=i.sourceNodes.get(o);return l&&_f(l)||null}),ee(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),ee(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),ee(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ee(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),ee(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var l=i.dragStartSourceIds;i.dragStartSourceIds=null;var a=$r(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(l||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:a});var s=o.dataTransfer,u=$o(s);if(i.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){var d=i.monitor.getSourceId(),f=i.sourceNodes.get(d),p=i.sourcePreviewNodes.get(d)||f;if(p){var v=i.getCurrentSourcePreviewNodeOptions(),b=v.anchorX,h=v.anchorY,g=v.offsetX,y=v.offsetY,w={anchorX:b,anchorY:h},C={offsetX:g,offsetY:y},$=W6(f,p,a,w,C);s.setDragImage(p,$.x,$.y)}}try{s==null||s.setData("application/json",{})}catch{}i.setCurrentDragSourceNode(o.target);var D=i.getCurrentSourcePreviewNodeOptions(),E=D.captureDraggingState;E?i.actions.publishDragSource():setTimeout(function(){return i.actions.publishDragSource()},0)}else if(u)i.beginDragNativeItem(u);else{if(s&&!s.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}}}),ee(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ee(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var l=i.enterLeaveCounter.enter(o.target);if(!(!l||i.monitor.isDragging())){var a=o.dataTransfer,s=$o(a);s&&i.beginDragNativeItem(s,a)}}),ee(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:$r(o)});var a=l.some(function(s){return i.monitor.canDropOnTarget(s)});a&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),ee(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),ee(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=$r(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"))}),ee(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var l=i.enterLeaveCounter.leave(o.target);l&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),ee(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 $o(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),ee(this,"handleTopDrop",function(o){var l=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(l,{clientOffset:$r(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),ee(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 tm(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new F6(this.isNodeInDocument)}return im(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(u){return o.handleDragStart(u,n)},a=function(u){return o.handleSelectStart(u)};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(u){return i.handleDragEnter(u,n)},l=function(u){return i.handleDragOver(u,n)},a=function(u){return i.handleDrop(u,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 Ku({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 Ku({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}},{key:"isDraggingNativeItem",value:function(){var n=this.monitor.getItemType();return Object.keys(Lu).some(function(r){return Lu[r]===n})}},{key:"beginDragNativeItem",value:function(n,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=X6(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}(),Pr;function lm(){return Pr||(Pr=new Image,Pr.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Pr}var am=function(e,n,r){return new om(e,n,r)};function sm(t){const e=ke(),n=e.selectedIds,[r,i,o]=d6(()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const l=e.isSelected(t.id)?Array.from(n):[t.id];return e.dispatch(En.dragStart(t.id,l)),{id:t.id,dragIds:l}},end:()=>{e.hideCursor(),e.dispatch(En.dragEnd())}}),[n,t]);return c.useEffect(()=>{o(lm())},[o]),i}function um(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,u=i>s&&i<o-s;return{x:r,inTopHalf:l,inBottomHalf:a,inMiddle:u,atTop:!u&&l,atBottom:!u&&a}}function cm(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 _r(t,e){return{parentId:t||null,index:e}}function rn(t,e){return{type:"line",index:t,level:e}}function dm(t){return{type:"highlight",id:t}}function Po(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=nf(r)+1;return{parentId:i,index:o}}function Nf(t){var e;const n=um(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,u]=cm(o,a,l,n);if(o&&o.isInternal&&n.inMiddle)return{drop:_r(o.id,null),cursor:dm(o.id)};if(!s)return{drop:_r((e=u==null?void 0:u.parent)===null||e===void 0?void 0:e.id,0),cursor:rn(0,0)};if(Jd(s)){const d=Rr(i,(u==null?void 0:u.level)||0,s.level);return{drop:Po(s,d),cursor:rn(s.rowIndex+1,d)}}if(Qd(s)){const d=Rr(i,(u==null?void 0:u.level)||0,s.level);return{drop:Po(s,d),cursor:rn(s.rowIndex+1,d)}}if(ef(s)){const d=Rr(i,0,s.level+1);return d>s.level?{drop:_r(s.id,0),cursor:rn(s.rowIndex+1,d)}:{drop:Po(s,d),cursor:rn(s.rowIndex+1,d)}}return{drop:_r(s==null?void 0:s.id,0),cursor:rn(s.rowIndex+1,s.level+1)}}function fm(t,e){const n=ke(),[r,i]=$f(()=>({accept:"NODE",canDrop:()=>n.canDrop(),hover:(o,l)=>{const a=l.getClientOffset();if(!t.current||!a)return;const{cursor:s,drop:u}=Nf({element:t.current,offset:a,indent:n.indent,node:e,prevNode:e.prev,nextNode:e.next});u&&n.dispatch(En.hovering(u.parentId,u.index)),l.canDrop()?s&&n.showCursor(s):n.hideCursor()},drop:(o,l)=>{if(!l.canDrop())return null;let{parentId:a,index:s,dragIds:u}=n.state.dnd;sf(n.props.onMove,{dragIds:u,parentId:a===rr?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 hm(t){const e=ke(),n=e.at(t);if(!n)throw new Error(`Could not find node for index: ${t}`);return c.useMemo(()=>{const r=n.clone();return e.visibleNodes[t]=r,r},[...Object.values(n.state),n])}const pm=c.memo(function({index:e,style:n}){Xd(),M9();const r=ke(),i=hm(e),o=c.useRef(null),l=sm(i),a=fm(o,i),s=c.useCallback(h=>{o.current=h,a(h)},[a]),u=r.indent*i.level,d=c.useMemo(()=>({paddingLeft:u}),[u]),f=c.useMemo(()=>{var h,g;return Object.assign(Object.assign({},n),{top:parseFloat(n.top)+((g=(h=r.props.padding)!==null&&h!==void 0?h:r.props.paddingTop)!==null&&g!==void 0?g:0)})},[n,r.props.padding,r.props.paddingTop]),p={role:"treeitem","aria-level":i.level+1,"aria-selected":i.isSelected,"aria-expanded":i.isOpen,style:f,tabIndex:-1,className:r.props.rowClassName};c.useEffect(()=>{var h;!i.isEditing&&i.isFocused&&((h=o.current)===null||h===void 0||h.focus({preventScroll:!0}))},[i.isEditing,i.isFocused,o.current]);const v=r.renderNode,b=r.renderRow;return m.jsx(b,{node:i,innerRef:s,attrs:p,children:m.jsx(v,{node:i,tree:r,style:d,dragHandle:l})})});let _o="",ju=null;function Mf(){Xd();const t=ke();return m.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(),rf(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),of(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(ju),_o+=e.key,ju=setTimeout(()=>{_o=""},600);const r=t.visibleNodes.find(i=>{const o=i.data.name;return typeof o=="string"?o.toLowerCase().startsWith(_o):!1});r&&t.focus(r.id)},children:m.jsx(mg,{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:Cg,innerElementType:Sg,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:pm})})}function Hu(t){return t.isFiltered?gm(t.root,t.isMatch.bind(t)):vm(t.root)}function vm(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(Rf),e}function gm(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(Rf),r}function Rf(t,e){t.rowIndex=e}const Vu=t=>t.reduce((e,n,r)=>(e[n.id]=r,e),{});var To=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{u(r.next(d))}catch(f){l(f)}}function s(d){try{u(r.throw(d))}catch(f){l(f)}}function u(d){d.done?o(d.value):i(d.value).then(a,s)}u((r=r.apply(t,e||[])).next())})};const{safeRun:be,identify:Je,identifyNull:je}=j9;class mn{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=Xs(this),this.visibleNodes=Hu(this),this.idToIndex=Vu(this.visibleNodes)}update(e){this.props=e,this.root=Xs(this),this.visibleNodes=Hu(this),this.idToIndex=Vu(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=Hn(e,r))!==null&&n!==void 0?n:null}accessId(e){const n=this.props.idAccessor||"id",r=Hn(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=af(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 To(this,arguments,void 0,function*(e={}){var n,r;const i=e.parentId===void 0?df(this):e.parentId,o=(n=e.index)!==null&&n!==void 0?n:cf(this),l=(r=e.type)!==null&&r!==void 0?r:"leaf",a=yield be(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 To(this,void 0,void 0,function*(){if(!e)return;const r=(Array.isArray(e)?e:[e]).map(Je),i=r.map(o=>this.get(o)).filter(o=>!!o);yield be(this.props.onDelete,{nodes:i,ids:r})})}edit(e){const n=Je(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(n),this.dispatch(go(n)),new Promise(r=>{mn.editPromise=r})}submit(e,n){return To(this,void 0,void 0,function*(){if(!e)return;const r=Je(e);yield be(this.props.onRename,{id:r,name:n,node:this.get(r)}),this.dispatch(go(null)),this.resolveEdit({cancelled:!1,value:n}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(go(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const n=this.get(je(e));n&&be(this.props.onActivate,n)}resolveEdit(e){const n=mn.editPromise;n&&n(e),mn.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(Jt(Je(e))),n.scroll!==!1&&this.scrollTo(e),this.focusedNode&&be(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=Je(e);r&&this.dispatch(Jt(i)),this.dispatch(Ke.only(i)),this.dispatch(Ke.anchor(i)),this.dispatch(Ke.mostRecent(i)),this.scrollTo(i,n.align),this.focusedNode&&r&&be(this.props.onFocus,this.focusedNode),be(this.props.onSelect,this.selectedNodes)}deselect(e){if(!e)return;const n=Je(e);this.dispatch(Ke.remove(n)),be(this.props.onSelect,this.selectedNodes)}selectMulti(e){const n=this.get(je(e));n&&(this.dispatch(Jt(n.id)),this.dispatch(Ke.add(n.id)),this.dispatch(Ke.anchor(n.id)),this.dispatch(Ke.mostRecent(n.id)),this.scrollTo(n),this.focusedNode&&be(this.props.onFocus,this.focusedNode),be(this.props.onSelect,this.selectedNodes))}selectContiguous(e){if(!e)return;const n=Je(e),{anchor:r,mostRecent:i}=this.state.nodes.selection;this.dispatch(Jt(n)),this.dispatch(Ke.remove(this.nodesBetween(r,i))),this.dispatch(Ke.add(this.nodesBetween(r,je(n)))),this.dispatch(Ke.mostRecent(n)),this.scrollTo(n),this.focusedNode&&be(this.props.onFocus,this.focusedNode),be(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),be(this.props.onSelect,this.selectedNodes)}selectAll(){var e;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(Jt((e=this.lastNode)===null||e===void 0?void 0:e.id)),this.focusedNode&&be(this.props.onFocus,this.focusedNode),be(this.props.onSelect,this.selectedNodes)}setSelection(e){var n;const r=new Set((n=e.ids)===null||n===void 0?void 0:n.map(Je)),i=je(e.anchor),o=je(e.mostRecent);this.dispatch(Ke.set({ids:r,anchor:i,mostRecent:o})),be(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&&tf(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(En.cursor({type:"none"}))}showCursor(e){this.dispatch(En.cursor(e))}open(e){const n=je(e);n&&(this.isOpen(n)||(this.dispatch(ol.open(n,this.isFiltered)),be(this.props.onToggle,n)))}close(e){const n=je(e);n&&this.isOpen(n)&&(this.dispatch(ol.close(n,this.isFiltered)),be(this.props.onToggle,n))}toggle(e){const n=je(e);if(n)return this.isOpen(n)?this.close(n):this.open(n)}openParents(e){const n=je(e);if(!n)return;const r=aa(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(){ii(this.root,e=>{e.isInternal&&e.open()})}closeAll(){ii(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,n="smart"){if(!e)return;const r=Je(e);return this.openParents(r),uf(()=>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===rr)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!Hn(e,n)}isDraggable(e){const n=this.props.disableDrag||(()=>!1);return!Hn(e,n)}isDragging(e){const n=je(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=je(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(Jt(e.id))}onBlur(){this.dispatch(Y9())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||Mf}get renderRow(){return this.props.renderRow||U9}get renderNode(){return this.props.children||W9}get renderDragPreview(){return this.props.renderDragPreview||ff}get renderCursor(){return this.props.renderCursor||z9}}function Ee(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 mm=typeof Symbol=="function"&&Symbol.observable||"@@observable",Bu=mm,Io=()=>Math.random().toString(36).substring(7).split("").join("."),bm={INIT:`@@redux/INIT${Io()}`,REPLACE:`@@redux/REPLACE${Io()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Io()}`},Tt=bm;function Lf(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 ym(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(Em(t))return"date";if(wm(t))return"error";const n=Cm(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 Cm(t){return typeof t.constructor=="function"?t.constructor.name:null}function wm(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Em(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function at(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=ym(t)),e}function Af(t,e,n){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Ee(2):`Expected the root reducer to be a function. Instead, received: '${at(t)}'`);if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Ee(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"?Ee(1):`Expected the enhancer to be a function. Instead, received: '${at(n)}'`);return n(Af)(t,e)}let r=t,i=e,o=new Map,l=o,a=0,s=!1;function u(){l===o&&(l=new Map,o.forEach((g,y)=>{l.set(y,g)}))}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?Ee(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"?Ee(4):`Expected the listener to be a function. Instead, received: '${at(g)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?Ee(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 y=!0;u();const w=a++;return l.set(w,g),function(){if(y){if(s)throw new Error(process.env.NODE_ENV==="production"?Ee(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.");y=!1,u(),l.delete(w),o=null}}}function p(g){if(!Lf(g))throw new Error(process.env.NODE_ENV==="production"?Ee(7):`Actions must be plain objects. Instead, the actual type was: '${at(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"?Ee(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"?Ee(17):`Action "type" property must be a string. Instead, the actual type was: '${at(g.type)}'. Value was: '${g.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?Ee(9):"Reducers may not dispatch actions.");try{s=!0,i=r(i,g)}finally{s=!1}return(o=l).forEach(w=>{w()}),g}function v(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?Ee(10):`Expected the nextReducer to be a function. Instead, received: '${at(g)}`);r=g,p({type:Tt.REPLACE})}function b(){const g=f;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(process.env.NODE_ENV==="production"?Ee(11):`Expected the observer to be an object. Instead, received: '${at(y)}'`);function w(){const $=y;$.next&&$.next(d())}return w(),{unsubscribe:g(w)}},[Bu](){return this}}}return p({type:Tt.INIT}),{dispatch:p,subscribe:f,getState:d,replaceReducer:v,[Bu]:b}}function zu(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function Sm(t,e,n,r){const i=Object.keys(e),o=n&&n.type===Tt.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(!Lf(t))return`The ${o} has unexpected type of "${at(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===Tt.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 xm(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:Tt.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?Ee(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:Tt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Ee(13):`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${Tt.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 Uu(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"&&zu(`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{xm(n)}catch(l){o=l}return function(a={},s){if(o)throw o;if(process.env.NODE_ENV!=="production"){const f=Sm(a,n,s,i);f&&zu(f)}let u=!1;const d={};for(let f=0;f<r.length;f++){const p=r[f],v=n[p],b=a[p],h=v(b,s);if(typeof h>"u"){const g=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?Ee(14):`When called with an action of type ${g?`"${String(g)}"`:"(unknown type)"}, the slice reducer for key "${p}" 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[p]=h,u=u||h!==b}return u=u||r.length!==Object.keys(a).length,u?d:a}}function $m(t=wn().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 Dm=Uu({nodes:Uu({focus:X9,edit:q9,open:J9,selection:Q9,drag:$m}),dnd:eg}),Pm=wn();function _m({treeProps:t,imperativeHandle:e,children:n}){const r=c.useRef(null),i=c.useRef(null),o=c.useRef(Af(Dm,wn(t))),l=Nl.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>Pm),a=c.useMemo(()=>new mn(o.current,t,r,i),[]),s=c.useRef(0);return c.useMemo(()=>{s.current+=1,a.update(t)},[...Object.values(t),l.nodes.open]),c.useImperativeHandle(e,()=>a),c.useEffect(()=>{a.props.selection?a.select(a.props.selection,{focus:!1}):a.deselectAll()},[a.props.selection]),c.useEffect(()=>{a.props.searchTerm||o.current.dispatch(ol.clear(!0))},[a.props.searchTerm]),m.jsx(Zd.Provider,{value:a,children:m.jsx(Yd.Provider,{value:s.current,children:m.jsx(Gd.Provider,{value:l.nodes,children:m.jsx(qd.Provider,{value:l.dnd,children:m.jsx(l8,Object.assign({backend:am,options:{rootElement:a.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:n}))})})})})}function Tm(){const t=ke(),[,e]=$f(()=>({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}=Nf({element:t.listEl.current,offset:i,indent:t.indent,node:null,prevNode:t.visibleNodes[t.visibleNodes.length-1],nextNode:null});l&&t.dispatch(En.hovering(l.parentId,l.index)),r.canDrop()?o&&t.showCursor(o):t.hideCursor()}}),[t]);e(t.listEl)}function Im(t){return Tm(),t.children}function Om(){const e=ke().props.renderContainer||Mf;return m.jsx(m.Fragment,{children:m.jsx(e,{})})}function km(){const t=ke(),{offset:e,mouse:n,item:r,isDragging:i}=k6(l=>({offset:l.getSourceClientOffset(),mouse:l.getClientOffset(),item:l.getItem(),isDragging:l.isDragging()})),o=t.props.renderDragPreview||ff;return m.jsx(o,{offset:e,mouse:n,id:(r==null?void 0:r.id)||null,dragIds:(r==null?void 0:r.dragIds)||[],isDragging:i})}class Nm{constructor(e){this.root=Mm(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 Mm(t){const e=new Ff({id:"ROOT"},null);return e.children=t.map(n=>pa(n,e)),e}function pa(t,e){const n=new Ff(t,e);return t.children&&(n.children=t.children.map(r=>pa(r,n))),n}class Ff{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=pa(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 Rm=0;function Lm(t){const[e,n]=c.useState(t),r=c.useMemo(()=>new Nm(e),[e]);return[e,{onMove:u=>{for(const d of u.dragIds)r.move({id:d,parentId:u.parentId,index:u.index});n(r.data)},onRename:({name:u,id:d})=>{r.update({id:d,changes:{name:u}}),n(r.data)},onCreate:({parentId:u,index:d,type:f})=>{const p={id:`simple-tree-id-${Rm++}`,name:""};return f==="internal"&&(p.children=[]),r.create({parentId:u,index:d,data:p}),n(r.data),p},onDelete:u=>{u.ids.forEach(d=>r.drop({id:d})),n(r.data)}}]}function Am(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]=Lm(t.initialData);return Object.assign(Object.assign(Object.assign({},t),n),{data:e})}else return t}function Fm(t,e){const n=Am(t);return m.jsxs(_m,{treeProps:n,imperativeHandle:e,children:[m.jsx(Im,{children:m.jsx(Om,{})}),m.jsx(km,{})]})}const Km=c.forwardRef(Fm),Kf=({top:t,left:e})=>m.jsx("div",{className:"c__tree-view__cursor",style:{top:t-2,left:e+10,width:`calc(100% - ${24+e}px)`}});function jm(t,e){var n=c.useRef(null),r=c.useRef(null);r.current=e;var i=c.useRef(null);c.useEffect(function(){o()});var o=c.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 c.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),c.useCallback(function(l){i.current=l,o()},[o])}function Wu(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 Hm(t){t===void 0&&(t={});var e=t.onResize,n=c.useRef(void 0);n.current=e;var r=t.round||Math.round,i=c.useRef(),o=c.useState({width:void 0,height:void 0}),l=o[0],a=o[1],s=c.useRef(!1);c.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var u=c.useRef({width:void 0,height:void 0}),d=jm(c.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(p){var v=p[0],b=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",h=Wu(v,b,"inlineSize"),g=Wu(v,b,"blockSize"),y=h?r(h):void 0,w=g?r(g):void 0;if(u.current.width!==y||u.current.height!==w){var C={width:y,height:w};u.current.width=y,u.current.height=w,n.current?n.current(C):s.current||a(C)}})}),i.current.instance.observe(f,{box:t.box}),function(){i.current&&i.current.instance.unobserve(f)}},[t.box,r]),t.ref);return c.useMemo(function(){return{ref:d,width:l.width,height:l.height}},[d,l.width,l.height])}var se=(t=>(t.NODE="node",t.SEPARATOR="separator",t.TITLE="title",t.SIMPLE_NODE="simpleNode",t.VIEW_MORE="viewMore",t))(se||{}),St=(t=>(t.FIRST_CHILD="first-child",t.LAST_CHILD="last-child",t.LEFT="left",t.RIGHT="right",t))(St||{});const ai=t=>t?t.nodeType===se.SEPARATOR:!1,si=t=>t?t.nodeType===se.TITLE:!1,jf=t=>t?t.nodeType===se.VIEW_MORE:!1,Vn=t=>!ai(t)&&!si(t)&&!jf(t),Hf=(t,e,n)=>{const{t:r}=X.useCunningham(),{remove:i,update:o,insert:l,insertBefore:a,insertAfter:s,append:u,prepend:d,getItem:f,move:p,items:v}=Fp({initialItems:JSON.parse(JSON.stringify(t)),getKey:K=>K.id,getChildren:K=>K.children||[]}),[b,h]=c.useState(),g=(K=[])=>{const P=v.map(A=>A.key);i(...P);const _=JSON.parse(JSON.stringify(K));_.length>0&&l(null,0,..._),h(void 0)},y=K=>{const P=f(K);P&&h(P.value)},w=(K,P,_)=>{var A,j,H,V;if(K){const W=f(K);if(W){const q=(j=W.children)==null?void 0:j[((A=W.children)==null?void 0:A.length)-1];let Y=_??((H=W.children)==null?void 0:H.length)??0;_===((V=W.children)==null?void 0:V.length)&&q&&q.value.nodeType===se.VIEW_MORE&&(Y=Y-1),l(K,Y,P)}}else l(null,_??v.length,P)},C=K=>{var P;return(P=f(K))==null?void 0:P.value},$=(K,P)=>{var W,q;const _=f(K);if(!_){console.error("No item found");return}let A=((W=_.children)==null?void 0:W.map(Y=>Y.value))??null;const j=P.childrenCount??_.value.childrenCount??0;if((A==null?void 0:A.length)===0&&j>0&&(A=null),P.children){const Y=[...A??[],...P.children],ae=new Map;for(const G of Y)ae.set(G.id,G);A=Array.from(ae.values())}A&&(A=A.sort((Y,ae)=>Y.nodeType===se.VIEW_MORE&&ae.nodeType!==se.VIEW_MORE?1:Y.nodeType!==se.VIEW_MORE&&ae.nodeType===se.VIEW_MORE?-1:0));const H=((q=P.pagination)==null?void 0:q.hasMore)??!1;A&&(A=A.filter(Y=>Y.nodeType!==se.VIEW_MORE)),H&&A&&A.push({id:`view-more-${K}`,nodeType:se.VIEW_MORE,label:r("components.treeView.viewMore")});const V={..._.value,...P,children:A,childrenCount:(A==null?void 0:A.length)??j};o(K,V)},D=K=>{i(K)},E=K=>{i(...K)},x=async K=>{if(!e){console.error("No refresh callback provided");return}try{const P=await e(K);$(K,P)}catch(P){console.error("error while refreshing node:",P)}},L=(K,P)=>{l(null,P??v.length,K)},O=(K,P)=>{l(null,P??v.length,...K)},B=(K,P)=>{const _=f(K);if(!_){console.error("No item found");return}const A={..._.value,children:P,childrenCount:P.length,hasLoadedChildren:P.length>0};o(K,A)},S=K=>{const P=[],_=f(K);if(!_)return[];P.push(_.value);const A=j=>{const H=R(j);if(!H)return;const V=f(H);V&&(P.push(V.value),A(H))};return A(K),P.reverse()},R=K=>{var P;return((P=f(K))==null?void 0:P.parentKey)??null},U=K=>{const P=R(K);if(!P)return null;const _=f(P);return _?_.value:null},k=(K,P)=>{a(K,P)},Z=(K,P)=>{s(K,P)},I=(K,P)=>{u(K,P)},M=(K,P)=>{d(K,P)},z=(K,P,_)=>{p(K,P,_)},F=K=>{z(K.sourceId,K.newParentId,K.index)},N=async K=>{var Y;if(!n)return console.error("No load paginated children callback provided"),[];const P=f(K);if(!P){console.error("No parent found");return}const A=(((Y=P==null?void 0:P.value.pagination)==null?void 0:Y.currentPage)??0)+1,j=await n(K,A);if(!j){console.error("No result found");return}const H=j.children,V=j.pagination,W=A,q=(V==null?void 0:V.hasMore)??!1;$(K,{children:H,hasLoadedChildren:!0,pagination:{currentPage:W,hasMore:q}})};return c.useEffect(()=>{const K=P=>{P.forEach(_=>{var A;if(_.children&&_.children.length>0){const j=_.value.hasLoadedChildren||((A=_.children)==null?void 0:A.length)>0||_.value.children&&_.value.children.length>0;_.value.children=_.children.map(V=>V.value);const H=j?_.children.length:_.value.childrenCount??0;_.value.childrenCount=H,j&&!_.value.hasLoadedChildren&&(_.value.hasLoadedChildren=!0),K(_.children)}else{const H=_.value.hasLoadedChildren||_.value.children&&_.value.children.length>0?0:_.value.childrenCount;_.value.children=[],_.value.childrenCount=H}})};K(v)},[v]),{nodes:v,addChild:w,updateNode:$,deleteNode:D,deleteNodes:E,addRootNode:L,addRootNodes:O,selectedNode:b,setSelectedNode:h,refreshNode:x,setChildren:B,insertBeforeNode:k,insertAfterNode:Z,handleMove:F,prependToNode:M,moveNode:z,appendToNode:I,move:p,resetTree:g,handleLoadChildren:N,selectNodeById:y,getParent:U,getNode:C,getParentId:R,getAncestors:S}},va=c.createContext(null),Vm=({children:t,onRefresh:e,initialNodeId:n,onLoadChildren:r,initialTreeData:i})=>{const o=c.useRef(null),[l,a]=c.useState(null),[s,u]=c.useState(n??null),d=Hf(i??[],e,r);return m.jsx(va.Provider,{value:{treeApiRef:o,treeData:d,root:l,initialTargetId:s,setInitialTargetId:u,setRoot:a},children:t})},ga=()=>{const t=c.useContext(va);if(!t)throw new Error("TreeContext not found");return t},Bm=({initialOpenState:t,dndRootElement:e,selectedNodeId:n,rootNodeId:r,renderNode:i,canDrop:o,canDrag:l,afterMove:a,beforeMove:s,rowProps:u})=>{const[d,f]=c.useState(400),{ref:p,width:v}=Hm(),b=ga(),h=(b==null?void 0:b.treeData.nodes)??[];c.useEffect(()=>{const C=document.querySelector(".c__tree-view"),$=C==null?void 0:C.firstElementChild;let D=null;return C&&$&&(D=new ResizeObserver(()=>{if($&&$ instanceof HTMLElement){const E=$.style.height;f(parseInt(E,10)+20)}}),D.observe($)),()=>D==null?void 0:D.disconnect()},[]);const g=C=>{var N,K,P,_;const $=JSON.parse(JSON.stringify(h)),D=C.dragNodes[0],E=C.parentId?((N=C.parentNode)==null?void 0:N.data.children)??[]:$,x=C.dragNodes[0].data.value.id,L=C.dragNodes[0].data,O=(K=C.parentNode)==null?void 0:K.data;if((O==null?void 0:O.value.nodeType)===se.TITLE||(O==null?void 0:O.value.nodeType)===se.SEPARATOR||(O==null?void 0:O.value.nodeType)===se.VIEW_MORE)return null;const B=L.parentKey??r,S=C.parentId??r;let R=C.index+0,U=null,k=S;const Z=((_=(P=D.parent)==null?void 0:P.children)==null?void 0:_.findIndex(A=>A.data.value.id===x))??0;if(B===S){if(Z===R)return null;R=R<Z?R:R-1}const I=C.index-1,M=E[I],z=C.index,F=E[z];return C.index===0?(k=C.parentId??r,U=St.FIRST_CHILD):!O&&C.index===1&&!Vn(M.value)?(k=r,R=1,U=St.FIRST_CHILD):C.index===E.length?(k=k??r,U=St.LAST_CHILD):M&&Vn(M.value)?(k=M.value.id,U=St.RIGHT):F&&Vn(F.value)&&(U=St.LEFT,k=F.value.id),U&&k?{targetModeId:k,mode:U,oldParentId:B,index:R,newParentId:C.parentId,sourceId:x}:null},y=C=>{const $=g(C);$&&(s?s($,()=>{b==null||b.treeData.handleMove($),a==null||a($)}):(b==null||b.treeData.handleMove($),a==null||a($)))},w=c.useCallback(C=>l?!l(C):!1,[l]);if(b)return m.jsx("div",{ref:p,style:{height:d},className:"c__tree-view--container",children:m.jsx(Km,{dndRootElement:e,data:h,ref:b.treeApiRef,openByDefault:!1,selectionFollowsFocus:!1,disableMultiSelection:!0,disableEdit:!0,className:"c__tree-view",idAccessor:"key",onMove:y,height:d,width:v,paddingTop:10,paddingBottom:10,rowHeight:34,disableDrag:w,disableDrop:({parentNode:C,dragNodes:$,index:D})=>{var B,S,R;if(o&&!o({parentNode:C,dragNodes:$,index:D}))return C.id!=="__REACT_ARBORIST_INTERNAL_ROOT__"&&(C.data.value.canDrop=!1),!0;const E=$[0];if(E&&E.isDragging&&E.willReceiveDrop||((B=C.data.value)==null?void 0:B.nodeType)===se.TITLE||((S=C.data.value)==null?void 0:S.nodeType)===se.SEPARATOR||((R=C.data.value)==null?void 0:R.nodeType)===se.VIEW_MORE)return!0;if(C.id==="__REACT_ARBORIST_INTERNAL_ROOT__"){const U=h[D-1],k=h[D],Z=h[D+1],I=ai(U==null?void 0:U.value),M=ai(k==null?void 0:k.value),z=si(U==null?void 0:U.value),F=si(k==null?void 0:k.value),N=Vn(Z==null?void 0:Z.value);return!!(D===0&&(M||F)||I&&F&&N||z&&M&&N)}const x=C==null?void 0:C.isOpen,L=(C==null?void 0:C.data.value.childrenCount)&&C.data.value.childrenCount>0||(C==null?void 0:C.data.children)&&C.data.children.length>0;if(!L)return C.data.value.canDrop=!0,!1;let O=C.data.value.childrenCount&&C.data.value.childrenCount>0&&(C==null?void 0:C.data.children)&&C.data.children.length>0;return O=O??!0,!x&&!O&&L?(C.data.value.canDrop=!0,!0):(C.data.value.canDrop=!0,!1)},initialOpenState:t,overscanCount:20,selection:n,renderCursor:Kf,renderRow:C=>m.jsx(zm,{...C,customRowProps:u}),rowClassName:"c__tree-view--row",children:i})})},zm=({children:t,customRowProps:e,...n})=>{const r=n.node.data.value.nodeType===se.TITLE,i=n.node.data.value.nodeType===se.SEPARATOR,o=n.node.data.value.nodeType===se.VIEW_MORE,{onKeyDown:l,onClick:a,...s}=e??{},{style:u}=n.attrs,d={...u},f=p=>{l==null||l(p);const v=p.target;if(v){const b=v.closest(".actions"),g=v.closest('button, a[href], input, textarea, select, [role="menuitem"], [role="button"]');if(b||g)return}if((p.key==="Enter"||p.key===" ")&&p.currentTarget.click(),p.key==="F2"){p.preventDefault();const b=p.currentTarget.querySelector("button");b&&b.focus()}};return r||i||o?c.createElement("div",{...n.attrs,key:n.node.id,style:d,ref:n.innerRef,onFocus:p=>p.stopPropagation(),onClick:p=>{a==null||a(p),n.node.handleClick(p)},onKeyDown:l,...s},t):c.createElement("div",{...n.attrs,style:d,key:n.node.id,ref:n.innerRef,onFocus:p=>p.stopPropagation(),onClick:p=>{a==null||a(p),p.preventDefault(),p.stopPropagation(),n.node.select()},onKeyDown:f,...s},m.jsx("div",{className:"c__tree-view--row-content",children:t}))},Um=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Vf=Um?c.useLayoutEffect:c.useEffect;function Bf(t){const e=c.useRef(t);return Vf(()=>{e.current=t}),c.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 Zu(t,e){e===void 0&&(e=[t]);const n=c.useRef(t);return Vf(()=>{n.current!==t&&(n.current=t)},e),n}function Wm(t){const e=Bf(t),n=c.useRef(null),r=c.useCallback(i=>{i!==n.current&&(e==null||e(i,n.current)),n.current=i},[]);return[n,r]}let Oo={};function Zm(t,e){return c.useMemo(()=>{const n=Oo[t]==null?0:Oo[t]+1;return Oo[t]=n,t+"-"+n},[t,e])}var Un;(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"})(Un||(Un={}));function Gu(){}const Gm=Object.freeze({x:0,y:0});var cn;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(cn||(cn={}));var qu;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(qu||(qu={}));var st;(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"})(st||(st={}));st.Space,st.Enter,st.Esc,st.Space,st.Enter,st.Tab;var Yu;(function(t){t[t.RightClick=2]="RightClick"})(Yu||(Yu={}));var Xu;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(Xu||(Xu={}));var Ju;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(Ju||(Ju={}));cn.Backward+"",cn.Forward+"",cn.Backward+"",cn.Forward+"";var pl;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(pl||(pl={}));var vl;(function(t){t.Optimized="optimized"})(vl||(vl={}));function qm(t){let{callback:e,disabled:n}=t;const r=Bf(e),i=c.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return c.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}pl.WhileDragging,vl.Optimized;const Ym={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Gu,draggableNodes:new Map,over:null,measureDroppableContainers:Gu},Xm=c.createContext(Ym);({...Gm});var Qu;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(Qu||(Qu={}));const Jm="Droppable",Qm={timeout:25};function eb(t){let{data:e,disabled:n=!1,id:r,resizeObserverConfig:i}=t;const o=Zm(Jm),{active:l,dispatch:a,over:s,measureDroppableContainers:u}=c.useContext(Xm),d=c.useRef({disabled:n}),f=c.useRef(!1),p=c.useRef(null),v=c.useRef(null),{disabled:b,updateMeasurementsFor:h,timeout:g}={...Qm,...i},y=Zu(h??r),w=c.useCallback(()=>{if(!f.current){f.current=!0;return}v.current!=null&&clearTimeout(v.current),v.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),v.current=null},g)},[g]),C=qm({callback:w,disabled:b||!l}),$=c.useCallback((L,O)=>{C&&(O&&(C.unobserve(O),f.current=!1),L&&C.observe(L))},[C]),[D,E]=Wm($),x=Zu(e);return c.useEffect(()=>{!C||!D.current||(C.disconnect(),f.current=!1,C.observe(D.current))},[D,C]),c.useEffect(()=>(a({type:Un.RegisterDroppable,element:{id:r,key:o,disabled:n,node:D,rect:p,data:x}}),()=>a({type:Un.UnregisterDroppable,key:o,id:r})),[r]),c.useEffect(()=>{n!==d.current.disabled&&(a({type:Un.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)},[r,o,n,a]),{active:l,rect:p,isOver:(s==null?void 0:s.id)===r,node:D,over:s,setNodeRef:E}}const tb=t=>{const{isOver:e,setNodeRef:n}=eb({id:t.id,data:t.data});return c.useEffect(()=>{var r;(r=t.onOver)==null||r.call(t,e,t.data)},[e,t.data,t.onOver]),m.jsx("div",{className:"c__dnd--droppable",ref:n,children:t.children})},nb=({children:t,itemProps:e,onClick:n,onKeyDown:r,node:i,dragHandle:o,style:l,forceLoading:a})=>{var x,L;const{t:s}=X.useCunningham(),u=ga(),d=c.useRef(null),[f,p]=c.useState(!1),[v,b]=c.useState(!1),[h,g]=c.useState(!1),y=a??f,w=i.willReceiveDrop||h,C=i.data.value.childrenCount!==void 0&&i.data.value.childrenCount>0||(((x=i.data.children)==null?void 0:x.length)??0)>0,$=((L=i.children)==null?void 0:L.length)??!1,D=i.isLeaf||!C,E=c.useCallback(O=>{O.stopPropagation(),i.data.value.nodeType===se.VIEW_MORE&&(b(!0),u==null||u.treeData.handleLoadChildren(i.data.parentKey).then(()=>b(!1)).catch(()=>b(!1)))},[i.data.value.nodeType,i.data.parentKey,u==null?void 0:u.treeData]);return c.useEffect(()=>{D||$||i.data.value.hasLoadedChildren||i.isOpen&&(p(!0),u==null||u.treeData.handleLoadChildren(i.data.value.id).then(()=>p(!1)))},[i.isOpen,D,$,i.data.value.hasLoadedChildren,i.data.value.id,u==null?void 0:u.treeData]),c.useEffect(()=>(w&&!i.isOpen&&!i.isDragging&&(d.current=setTimeout(()=>{i.open()},500)),()=>{d.current&&clearTimeout(d.current)}),[w,i.isOpen,i.isDragging,i]),i.data.value.nodeType===se.SEPARATOR?m.jsx("div",{className:"c__tree-view--node__separator"}):i.data.value.nodeType===se.TITLE?m.jsx("div",{className:"c__tree-view--node__title",children:i.data.value.headerTitle}):i.data.value.nodeType===se.VIEW_MORE?m.jsx("div",{className:"c__tree-view--row-content",children:m.jsx("div",{className:"c__tree-view--node",style:l,children:m.jsxs("div",{role:"button",className:"c__tree-view--node__view-more-button",style:{paddingLeft:0,marginLeft:20},onClick:E,children:[v?m.jsx("div",{className:"c__tree-view--node__loading",children:m.jsx(ni,{})}):m.jsx("span",{className:"material-icons c__tree-view--node__view-more-button__icon",children:"arrow_downward"}),m.jsxs("span",{className:"c__tree-view--node__view-more-text",children:[i.data.value.nodeType===se.VIEW_MORE,s("components.treeView.viewMore")]})]})})}):m.jsx(tb,{id:i.id,data:{data:i.data,nodeApi:i},onOver:g,children:m.jsxs("div",{onClick:O=>{if(!O.target.closest(".c__tree-view--node")){O.stopPropagation();return}n==null||n()},onKeyDown:O=>{r==null||r(O),O.target.closest(".c__tree-view--node")||O.stopPropagation()},ref:o,style:l,className:ye("c__tree-view--node",{...i.state,simpleNode:i.data.value.nodeType===se.SIMPLE_NODE,canDrop:i.data.value.canDrop??!0,externalDrop:h}),...e,children:[D&&m.jsx("div",{className:"c__tree-view--node__leaf"}),!D&&m.jsxs(m.Fragment,{children:[y&&m.jsx("div",{className:"c__tree-view--node__loading",children:m.jsx(ni,{})}),!y&&m.jsx("span",{onClick:O=>{O.stopPropagation(),i.toggle()},className:"c__tree-view--node__arrow material-icons",children:i.isOpen?"keyboard_arrow_down":"keyboard_arrow_right"})]}),t]})})},rb=({children:t,uppercased:e=!1,type:n="accent",className:r,...i})=>m.jsx("div",{className:ye(r,"c__badge",{"c__badge--uppercased":e,[`c__badge--${n}`]:n}),...i,children:t});function ib(t){c.useEffect(()=>{if(!t)return;let e=!1;const n=()=>Array.from(t.querySelectorAll("button")).filter(l=>!l.disabled&&l.getAttribute("aria-disabled")!=="true"),r=l=>{const a=l.key==="ArrowLeft"||l.key==="ArrowRight",s=l.key===" ";if(!(l.target instanceof HTMLElement))return;if(s){const h=l.target.closest("button");h instanceof HTMLButtonElement&&t.contains(h)&&h.click();return}if(!a)return;const d=l.target.closest("button");if(!(d instanceof HTMLButtonElement&&t.contains(d)))return;const p=n(),v=p.indexOf(d);if(v<0)return;l.preventDefault(),l.stopPropagation();const b=l.key==="ArrowRight"?(v+1)%p.length:(v-1+p.length)%p.length;p[b].focus(),e=!0},i=l=>{e&&((l.key===" "||l.key==="Enter")&&(l.preventDefault(),l.stopPropagation()),e=!1)},o={capture:!0};return t.addEventListener("keydown",r,o),t.addEventListener("keyup",i,o),()=>{t.removeEventListener("keydown",r,o),t.removeEventListener("keyup",i,o)}},[t])}const 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?m.jsx(kt,{isOpen:i,shouldCloseOnInteractOutside:s=>!s.closest(".c__access-role-dropdown"),onOpenChange:o,options:t,selectedValues:[r],onSelectValue:e,topMessage:l,children:m.jsxs("div",{role:"button",className:"c__access-role-dropdown",onClick:()=>{o==null||o(!i)},children:[m.jsx("span",{className:"c__access-role-dropdown__role-label",children:a==null?void 0:a.label}),m.jsx("span",{className:"material-icons c__access-role-dropdown__icon",children:i?"arrow_drop_up":"arrow_drop_down"})]})}):m.jsx("span",{className:"c__access-role-dropdown__role-label-can-not-update",children:a==null?void 0:a.label})},zf=({users:t,onRemoveUser:e,rightActions:n,onShare:r,shareButtonLabel:i,roles:o,selectedRole:l,onSelectRole:a})=>{const{t:s}=X.useCunningham(),[u,d]=c.useState(!1);return m.jsxs("div",{className:"c__add-share-user-list",children:[m.jsx("div",{className:"c__add-share-user-list__items",children:t.map(f=>m.jsx(Uf,{user:f,onRemoveUser:e},f.id))}),m.jsxs("div",{className:"c__add-share-user-list__right-actions",children:[n,m.jsx(Ki,{roles:o,selectedRole:l,onSelect:a,isOpen:u,onOpenChange:d}),m.jsx(X.Button,{onClick:r,children:i??s("components.share.shareButton")})]})]})},Uf=({user:t,onRemoveUser:e})=>m.jsxs("div",{className:"c__add-share-user-item",children:[m.jsx("span",{children:t.full_name||t.email}),m.jsx(X.Button,{variant:"tertiary",color:"neutral",size:"nano",onClick:()=>e==null?void 0:e(t),icon:m.jsx("span",{className:"material-icons",children:"close"})})]}),gl=["brand","gray","info","success","warning","error","red","orange","brown","yellow","green","purple","pink","blue"],Wf=t=>t.split(/[\s-_]+/).slice(0,2).map(e=>e[0]).join("").toUpperCase(),Zf=t=>{let e=0;for(let n=0;n<t.length;n++)e+=t.charCodeAt(n);return gl[e%gl.length]},ji=({fullName:t,size:e="medium",forceColor:n,backgroundColor:r})=>{const i=Wf(t),o=r||Zf(t);return m.jsx("div",{style:{backgroundColor:n||void 0},className:ye(`c__avatar ${e}`,{[o]:!n&&o}),children:m.jsx("div",{className:"c__avatar__initials",children:i})})},Hi=({fullName:t,email:e,showEmail:n=!0})=>{const r=t&&t!==""?t:e??"";return m.jsxs("div",{className:"c__user-row",children:[m.jsx(ji,{fullName:r,size:"small"}),m.jsxs("div",{className:"c__user-row__info",children:[m.jsx("span",{className:"c__user-row__name",children:t}),n&&e&&m.jsx("span",{className:ye("c__user-row__email",{"has-only-email":e&&(t===""||!t)}),children:e})]})]})},ml=({user:t})=>{const{t:e}=X.useCunningham();return m.jsx(Ni,{left:m.jsx(Hi,{fullName:t.full_name,email:t.email}),alwaysShowRight:!1,right:m.jsxs("div",{className:"c__search-user-item-right",children:[m.jsx("span",{children:e("components.share.item.add")}),m.jsx("span",{className:"material-icons",children:"add"})]})})},Gf=({accessData:t,roles:e,updateRole:n,deleteAccess:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=X.useCunningham(),a=mt(),s=mt(),u=c.useMemo(()=>{const f=[];return r&&f.push({label:l("components.share.access.delete"),icon:m.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 m.jsx("div",{className:"c__share-member-item",children:m.jsx(Ni,{left:m.jsx(Hi,{fullName:t.user.full_name,email:t.user.email,showEmail:!0}),alwaysShowRight:!0,right:m.jsxs("div",{className:"c__share-member-item__right",children:[m.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}),u.length>0&&i&&m.jsx(kt,{options:u,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:m.jsx(X.Button,{color:"neutral",variant:"tertiary",onClick:d,size:"small",icon:m.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},qf=({invitation:t,roles:e,updateRole:n,deleteInvitation:r,canUpdate:i=!0,showMoreActionsButton:o=!0,roleTopMessage:l})=>{const{t:a}=X.useCunningham(),s=mt(),u=mt(),d=[{label:a("components.share.access.delete"),callback:()=>r==null?void 0:r(t),isDisabled:!i,icon:m.jsx("span",{className:"material-icons",children:"back_hand"})}],f=()=>{const p=u.isOpen;u.setIsOpen(!p)};return m.jsx("div",{className:"c__share-member-item",children:m.jsx(Ni,{left:m.jsx(Hi,{fullName:"",email:t.email,showEmail:!0}),alwaysShowRight:!0,right:m.jsxs("div",{className:"c__share-member-item__right",children:[m.jsx(Ki,{roles:e,selectedRole:t.role,onSelect:p=>n==null?void 0:n(t,p),isOpen:s.isOpen,canUpdate:i,onOpenChange:s.setIsOpen,roleTopMessage:l}),o&&i&&m.jsx(kt,{options:d,isOpen:u.isOpen,onOpenChange:u.setIsOpen,children:m.jsx(X.Button,{color:"neutral",variant:"tertiary",onClick:f,size:"small",icon:m.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},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='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='%23304DDF'/%3e%3c/svg%3e",lb="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='%23304DDF'/%3e%3c/svg%3e",Yf=t=>{const{t:e}=X.useCunningham();return{t:n=>(t==null?void 0:t[n])??e(n)}},Tr=t=>{switch(t){case"public":return m.jsx("img",{src:ob,alt:""});case"restricted":return m.jsx("img",{src:lb,alt:""});default:return null}},ab=({linkReachChoices:t=[],canUpdate:e,linkReach:n="public",onUpdateLinkReach:r,showLinkRole:i=!1,linkRoleChoices:o=[],linkRole:l="reader",onUpdateLinkRole:a,customTranslations:s})=>{const u=mt(),d=mt(),[f,p]=c.useState([n]),v=f[0],[b,h]=c.useState([l]),g=b[0],{t:y}=Yf(s),w=c.useMemo(()=>t.map(O=>({icon:O.icon??Tr(O.value),value:O.value,label:y("components.share.linkSettings.reach.choices."+O.value+".title"),...O})),[t]),C=c.useMemo(()=>w.find(O=>O.value===v),[w,v]),$=c.useMemo(()=>o.map(O=>({value:O.value,label:y("components.share.linkSettings.role.choices."+O.value+".title"),...O})),[o]),D=c.useMemo(()=>$.find(O=>O.value===g),[$,g]),E=i&&o.length>0,x=()=>m.jsx("div",{className:"c__share-modal__link-settings__content__select",children:e?m.jsx(kt,{onSelectValue:O=>{p([O]),r==null||r(O)},options:w,isOpen:u.isOpen,onOpenChange:u.setIsOpen,selectedValues:f,children:m.jsxs(X.Button,{variant:"tertiary",icon:Tr(v),iconPosition:"left",onClick:()=>{e&&u.setIsOpen(!u.isOpen)},children:[C==null?void 0:C.label,m.jsx("span",{className:"material-icons",children:u.isOpen?"arrow_drop_up":"arrow_drop_down"})]})}):m.jsxs("span",{className:"c__share-modal__link-settings__content__select__value",children:[Tr(v),C==null?void 0:C.label]})}),L=()=>E?m.jsx("div",{className:"c__share-modal__link-settings__content__select-role",children:e?m.jsx(kt,{onSelectValue:O=>{h([O]),a==null||a(O)},options:$,isOpen:d.isOpen,onOpenChange:d.setIsOpen,selectedValues:b,children:m.jsx(X.Button,{variant:"tertiary",icon:m.jsx("span",{className:"material-icons",children:d.isOpen?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",onClick:()=>{e&&d.setIsOpen(!d.isOpen)},size:"small",children:D==null?void 0:D.label})}):m.jsxs("span",{className:"c__share-modal__link-settings__content__select-role__value",children:[Tr(g),D==null?void 0:D.label]})}):null;return m.jsxs("div",{className:"c__share-modal__link-settings",children:[m.jsx("span",{className:"c__share-modal__link-settings__title",children:y("components.share.linkSettings.title")}),m.jsxs("div",{className:"c__share-modal__link-settings__content",children:[x(),m.jsx("div",{className:"c__share-modal__link-settings__content__description desktop",children:y(`components.share.linkSettings.reach.choices.${v}.description`)}),L()]}),m.jsx("div",{className:"c__share-modal__link-settings__content__description mobile",children:y(`components.share.linkSettings.reach.choices.${v}.description`)})]})},sb=({searchUsersResult:t,children:e,outsideSearchContent:n,accesses:r=[],invitations:i=[],hasNextMembers:o=!1,canUpdate:l=!0,canView:a=!0,hasNextInvitations:s=!1,hideInvitations:u=!1,hideMembers:d=!1,cannotViewChildren:f,customTranslations:p,...v})=>{var A,j;if(!(u&&d)){if(!v.invitationRoles)throw new Error("invitationRoles is required");if(!v.onSearchUsers)throw new Error("onSearchUsers is required")}if(!u&&!v.onInviteUser)throw new Error("onInviteUser is required");if(l&&!a)throw new Error("canView cannot be false if canUpdate is true");const{t:b}=X.useCunningham(),{isMobile:h}=bt(),g=c.useRef(null),[y,w]=c.useState("400px"),C=c.useRef(null),[$,D]=c.useState(""),[E,x]=c.useState(""),[L,O]=c.useState([]),[B,S]=c.useState(((j=(A=v.invitationRoles)==null?void 0:A[0])==null?void 0:j.value)??""),R=h?"calc(100dvh - 32px)":"min(690px, calc(100dvh - 2em - 12px - 32px))",U=H=>{if(g.current&&clearTimeout(g.current),H===""){x(""),v.onSearchUsers("");return}g.current=setTimeout(()=>{v.onSearchUsers(H),x(H)},300)},k=H=>{D(H),U(H)},Z=E!==""||L.length>0,I=c.useCallback(H=>{O(V=>[...V,H]),D(""),x(""),v.onSearchUsers("")},[v]),M=H=>{O(V=>V.filter(W=>W.id!==H.id))},z=c.useMemo(()=>{const H=t==null?void 0:t.filter(G=>!L.includes(G));let V=b(E!==""?"components.share.user.no_result":"components.share.user.placeholder");const q=(G=>!!G.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,}))$/))(E??"")&&!(H!=null&&H.some(G=>G.email===E)),Y={id:E,full_name:"",email:E};return q&&(V=void 0),{groupName:b("components.share.search.group_name"),elements:H??[],showWhenEmpty:!0,emptyString:V,endActions:q?[{content:m.jsx(ml,{user:Y}),onSelect:()=>void I(Y)}]:void 0}},[t,E,b,L,I]),F=H=>{var ae;const W=(H==null?void 0:H.clientHeight)??0,q=((ae=C.current)==null?void 0:ae.clientHeight)??0,Y=`calc(${R} - ${W}px - ${q}px - 70px - 10px)`;w(Y)},N=!u&&!Z&&!v.loading&&i.length>0,K=!d&&!Z&&!v.loading&&r.length>0,_=a?u&&d?"empty":"search":"cannot_view";return m.jsx(X.Modal,{title:v.modalTitle??b("components.share.modalTitle"),isOpen:v.isOpen,onClose:v.onClose,closeOnClickOutside:!0,size:h?X.ModalSize.FULL:X.ModalSize.LARGE,children:m.jsxs("div",{className:"c__share-modal no-padding",children:[l&&L.length>0&&m.jsx("div",{className:"c__share-modal__selected-users",ref:C,children:m.jsx(zf,{users:L,onRemoveUser:M,roles:v.invitationRoles,selectedRole:B,onSelectRole:S,onShare:()=>{v.onInviteUser(L,B),O([])}})}),_==="cannot_view"&&m.jsxs("div",{className:"c__share-modal__cannot-view",style:{height:y},children:[m.jsx("div",{className:"c__share-modal__cannot-view__content",children:m.jsx("p",{children:v.cannotViewMessage??b("components.share.cannot_view.message")})}),f]}),_==="search"&&m.jsx(Ud,{onFilter:k,inputValue:$,showInput:l,loading:v.loading,placeholder:b("components.share.user.placeholder"),children:m.jsxs("div",{style:{height:y,overflowY:"auto"},children:[Z&&m.jsx("div",{className:"c__share-modal__search-users",children:m.jsx(Wd,{group:z,onSelect:H=>{I(H)},renderElement:H=>m.jsx(ml,{user:H})})}),!Z&&e,N&&m.jsxs("div",{className:"c__share-modal__invitations",children:[m.jsx("span",{className:"c__share-modal__invitations-title",children:b("components.share.invitations.title")}),i.map(H=>{var V;return m.jsx(qf,{invitation:H,roles:v.invitationRoles,updateRole:v.onUpdateInvitation,deleteInvitation:v.onDeleteInvitation,canUpdate:l,roleTopMessage:(V=v.invitationRoleTopMessage)==null?void 0:V.call(v,H)},H.id)}),m.jsx(ec,{show:s,onShowMore:v.onLoadNextInvitations})]}),K&&m.jsxs("div",{className:"c__share-modal__members",children:[m.jsx("span",{className:"c__share-modal__members-title",children:b(r.length>1?"components.share.members.title_plural":"components.share.members.title_singular",{count:r.length})}),r.map(H=>{var V,W;return m.jsx(Gf,{accessData:H,canUpdate:l,roleTopMessage:(V=v.accessRoleTopMessage)==null?void 0:V.call(v,H),roles:((W=v.getAccessRoles)==null?void 0:W.call(v,H))??v.invitationRoles,updateRole:v.onUpdateAccess,deleteAccess:v.onDeleteAccess},H.id)}),m.jsx(ec,{show:o,onShowMore:v.onLoadNextMembers})]})]})}),m.jsx("div",{ref:F,children:!Z&&m.jsxs("div",{className:"c__share-modal__footer",children:[v.linkSettings&&m.jsx(ab,{linkReachChoices:v.linkReachChoices,canUpdate:l,onUpdateLinkReach:v.onUpdateLinkReach,linkReach:v.linkReach,linkRoleChoices:v.linkRoleChoices,linkRole:v.linkRole,onUpdateLinkRole:v.onUpdateLinkRole,showLinkRole:v.showLinkRole,customTranslations:p}),n]})})]})})},ec=({show:t,onShowMore:e})=>{const{t:n}=X.useCunningham();return t?m.jsx("div",{className:"c__share-modal__show-more-button",children:m.jsx(X.Button,{variant:"tertiary",size:"small",icon:m.jsx("span",{className:"material-icons",children:"arrow_downward"}),onClick:e,children:n("components.share.members.load_more")})}):null},ub=({onCopyLink:t,onOk:e})=>{const{t:n}=X.useCunningham();return m.jsxs("div",{className:"c__share-modal__copy-link-footer",children:[m.jsx(X.Button,{variant:"secondary",icon:m.jsx("span",{className:"material-icons",children:"link"}),onClick:t,children:n("components.share.copyLink")}),m.jsx(X.Button,{variant:"primary",onClick:e,children:n("components.share.ok")})]})},Xf=({user:t,settingsItems:e,showSettings:n,actions:r,termOfServiceUrl:i})=>{const o=!!r||!!i,{t:l}=X.useCunningham();return t?m.jsx(m.Fragment,{children:m.jsxs("div",{className:"user-menu__content__body",children:[m.jsxs("div",{className:"user-menu__content__body__user-info",children:[m.jsx(ji,{fullName:t.full_name??t.email}),m.jsx("div",{className:"user-menu__content__identity__name",children:t.full_name?m.jsxs(m.Fragment,{children:[m.jsx("p",{className:"user-menu__content__identity__name",children:m.jsx("strong",{children:t.full_name})}),m.jsx("p",{className:"user-menu__content__identity__email",children:t.email})]}):m.jsx("p",{className:"user-menu__content__identity__email",children:m.jsx("strong",{children:t.email})})})]}),n&&m.jsxs(m.Fragment,{children:[m.jsx(nr,{withPadding:!1}),m.jsx("div",{className:"user-menu__content__body__settings",children:e.map(a=>m.jsx(Jf,{label:a.label,icon:a.icon,onClick:a.onClick},a.label))})]}),o&&m.jsxs(m.Fragment,{children:[m.jsx(nr,{withPadding:!1}),m.jsxs("div",{className:"user-menu__actions user-menu__actions--mobile",children:[r&&m.jsx("div",{className:"user-menu__actions__left",children:r}),i&&m.jsx("div",{className:"user-menu__actions__right",children:m.jsx(X.Button,{variant:"tertiary",target:"_blank",href:i,size:"small",color:"neutral",children:l("components.userMenu.term_of_service")})})]})]})]})}):null},cb=({...t})=>{const{t:e}=X.useCunningham(),n=e1();return m.jsxs(m.Fragment,{children:[m.jsx(Qf,{user:t.user,...n}),m.jsx(X.Modal,{isOpen:n.openState,onClose:()=>n.setOpenState(!1),"aria-label":e("components.userMenu.dialogTitle"),size:X.ModalSize.FULL,children:m.jsxs("div",{className:"user-menu__popover user-menu__popover--mobile",children:[m.jsx(X.Button,{variant:"tertiary",className:"user-menu__close-button",onClick:n.toggleUserMenu,"aria-label":e("components.userMenu.close"),color:"neutral",icon:m.jsx(qn,{name:"close"}),size:"small"}),m.jsx(Xf,{...t}),m.jsx("div",{className:"user-menu__footer--mobile",children:m.jsx(X.Button,{variant:"primary",onClick:n.toggleUserMenu,children:e("components.share.ok")})})]})})]})},db=({user:t,settingsItems:e,showSettings:n,actions:r,termOfServiceUrl:i})=>{const{t:o}=X.useCunningham(),l=e1();return m.jsxs(m.Fragment,{children:[m.jsx(Qf,{user:t,...l}),m.jsx(ql,{className:"c__dropdown-menu user-menu__popover",triggerRef:l.triggerRef,isOpen:l.openState,onOpenChange:l.setOpenState,children:m.jsx(d4,{"aria-label":o("components.userMenu.dialogTitle"),children:m.jsx(Xf,{user:t,settingsItems:e,showSettings:n,actions:r,termOfServiceUrl:i})})})]})},fb=({user:t,settingsCTA:e,logout:n,termOfServiceUrl:r,actions:i})=>{const{t:o}=X.useCunningham(),{isTablet:l}=bt(),a=c.useMemo(()=>{const u=[];return e&&u.push({label:o("components.userMenu.manage_account"),icon:"settings",onClick:typeof e=="function"?e:typeof e=="string"?()=>window.open(e,"_blank","noopener,noreferrer"):void 0}),n&&u.push({label:o("components.userMenu.logout"),icon:"logout",onClick:n}),u},[e,n,o]),s=a.length>0;return t?m.jsx(m.Fragment,{children:l?m.jsx(cb,{user:t,settingsItems:a,showSettings:s,actions:i,termOfServiceUrl:r}):m.jsx(db,{user:t,settingsItems:a,showSettings:s,actions:i,termOfServiceUrl:r})}):null},Jf=({label:t,icon:e,onClick:n})=>m.jsxs("div",{className:"user-menu__item",onClick:n,children:[m.jsx(qn,{name:e}),m.jsx("span",{className:"user-menu__item__label",children:t})]}),Qf=({user:t,triggerRef:e,id:n,openState:r,toggleUserMenu:i})=>{const{t:o}=X.useCunningham();return t?m.jsx(X.Button,{variant:"tertiary",size:"small",ref:e,id:n,onClick:i,"aria-label":o(r?"components.userMenu.close":"components.userMenu.open"),title:o(r?"components.userMenu.close":"components.userMenu.open"),children:m.jsx(ji,{fullName:t.full_name??t.email})}):null},e1=()=>{const t=c.useId(),[e,n]=c.useState(!1),r=()=>{n(!e)},i=c.useRef(null);return{id:t,openState:e,setOpenState:n,toggleUserMenu:r,triggerRef:i}};exports.AVATAR_COLORS=gl;exports.AccessRoleDropdown=Ki;exports.Badge=rb;exports.CunninghamProvider=d1;exports.CustomTabs=N9;exports.DropdownMenu=kt;exports.Filter=S4;exports.Footer=E4;exports.Header=A2;exports.Hero=$4;exports.HomeGutter=D4;exports.HorizontalSeparator=nr;exports.Icon=qn;exports.IconSize=xe;exports.IconType=zn;exports.InvitationUserSelectorItem=Uf;exports.InvitationUserSelectorList=zf;exports.LaGaufre=A4;exports.LaGaufreV2=N2;exports.Label=ad;exports.LanguagePicker=L2;exports.LeftPanel=F2;exports.MainLayout=Cv;exports.ProConnectButton=rc;exports.QuickSearch=Ud;exports.QuickSearchGroup=Wd;exports.QuickSearchInput=zd;exports.QuickSearchItem=Mr;exports.QuickSearchItemTemplate=Ni;exports.SearchUserItem=ml;exports.ShareInvitationItem=qf;exports.ShareMemberItem=Gf;exports.ShareModal=sb;exports.ShareModalCopyLinkFooter=ub;exports.Spinner=ni;exports.TreeApi=mn;exports.TreeContext=va;exports.TreeProvider=Vm;exports.TreeView=Bm;exports.TreeViewItem=nb;exports.TreeViewMoveModeEnum=St;exports.TreeViewNodeTypeEnum=se;exports.TreeViewSeparator=Kf;exports.UserAvatar=ji;exports.UserMenu=fb;exports.UserMenuItem=Jf;exports.UserRow=Hi;exports.VerticalSeparator=k9;exports.WithLabel=Ev;exports.containerSizeMap=R2;exports.cunninghamConfig=Jo;exports.getContainerSize=j4;exports.getIconSize=H4;exports.getUserColor=Zf;exports.getUserInitials=Wf;exports.headerHeight=wv;exports.iconSizeMap=M2;exports.isNode=Vn;exports.isSeparator=ai;exports.isTitle=si;exports.isViewMore=jf;exports.locales=nc;exports.useArrowRoving=ib;exports.useCustomTranslations=Yf;exports.useDropdownMenu=mt;exports.useResponsive=bt;exports.useTree=Hf;exports.useTreeContext=ga;
|
|
88
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return T.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},Bp="DialogDescriptionWarning",Rp=({contentRef:t,descriptionId:e})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r1(Bp).contentName}}.`;return T.useEffect(()=>{var o;const i=(o=t.current)==null?void 0:o.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(n))},[n,t,e]),null},Lp=Wd,Kp=qd,jp=Yd,Hp=Xd,Nr='[cmdk-group=""]',xo='[cmdk-group-items=""]',Vp='[cmdk-group-heading=""]',pa='[cmdk-item=""]',hs=`${pa}:not([aria-disabled="true"])`,hl="cmdk-item-select",Et="data-value",zp=(t,e,r)=>i9(t,e,r),n1=T.createContext(void 0),dn=()=>T.useContext(n1),i1=T.createContext(void 0),ga=()=>T.useContext(i1),o1=T.createContext(void 0),l1=T.forwardRef((t,e)=>{let r=lr(()=>{var $,A;return{search:"",value:(A=($=t.value)!=null?$:t.defaultValue)!=null?A:"",filtered:{count:0,items:new Map,groups:new Set}}}),n=lr(()=>new Set),i=lr(()=>new Map),o=lr(()=>new Map),l=lr(()=>new Set),a=a1(t),{label:s,children:c,value:d,onValueChange:f,filter:p,shouldFilter:g,loop:y,disablePointerSelection:h=!1,vimBindings:v=!0,...m}=t,C=tt(),E=tt(),F=tt(),D=T.useRef(null),x=tg();Mt(()=>{if(d!==void 0){let $=d.trim();r.current.value=$,S.emit()}},[d]),Mt(()=>{x(6,Z)},[]);let S=T.useMemo(()=>({subscribe:$=>(l.current.add($),()=>l.current.delete($)),snapshot:()=>r.current,setState:($,A,B)=>{var L,j,V;if(!Object.is(r.current[$],A)){if(r.current[$]=A,$==="search")M(),H(),x(1,w);else if($==="value"&&(B||x(5,Z),((L=a.current)==null?void 0:L.value)!==void 0)){let W=A??"";(V=(j=a.current).onValueChange)==null||V.call(j,W);return}S.emit()}},emit:()=>{l.current.forEach($=>$())}}),[]),O=T.useMemo(()=>({value:($,A,B)=>{var L;A!==((L=o.current.get($))==null?void 0:L.value)&&(o.current.set($,{value:A,keywords:B}),r.current.filtered.items.set($,K(A,B)),x(2,()=>{H(),S.emit()}))},item:($,A)=>(n.current.add($),A&&(i.current.has(A)?i.current.get(A).add($):i.current.set(A,new Set([$]))),x(3,()=>{M(),H(),r.current.value||w(),S.emit()}),()=>{o.current.delete($),n.current.delete($),r.current.filtered.items.delete($);let B=_();x(4,()=>{M(),(B==null?void 0:B.getAttribute("id"))===$&&w(),S.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:F,labelId:E,listInnerRef:D}),[]);function K($,A){var B,L;let j=(L=(B=a.current)==null?void 0:B.filter)!=null?L:zp;return $?j($,r.current.search,A):0}function H(){if(!r.current.search||a.current.shouldFilter===!1)return;let $=r.current.filtered.items,A=[];r.current.filtered.groups.forEach(L=>{let j=i.current.get(L),V=0;j.forEach(W=>{let q=$.get(W);V=Math.max(q,V)}),A.push([L,V])});let B=D.current;U().sort((L,j)=>{var V,W;let q=L.getAttribute("id"),Y=j.getAttribute("id");return((V=$.get(Y))!=null?V:0)-((W=$.get(q))!=null?W:0)}).forEach(L=>{let j=L.closest(xo);j?j.appendChild(L.parentElement===j?L:L.closest(`${xo} > *`)):B.appendChild(L.parentElement===B?L:L.closest(`${xo} > *`))}),A.sort((L,j)=>j[1]-L[1]).forEach(L=>{var j;let V=(j=D.current)==null?void 0:j.querySelector(`${Nr}[${Et}="${encodeURIComponent(L[0])}"]`);V==null||V.parentElement.appendChild(V)})}function w(){let $=U().find(B=>B.getAttribute("aria-disabled")!=="true"),A=$==null?void 0:$.getAttribute(Et);S.setState("value",A||void 0)}function M(){var $,A,B,L;if(!r.current.search||a.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let j=0;for(let V of n.current){let W=(A=($=o.current.get(V))==null?void 0:$.value)!=null?A:"",q=(L=(B=o.current.get(V))==null?void 0:B.keywords)!=null?L:[],Y=K(W,q);r.current.filtered.items.set(V,Y),Y>0&&j++}for(let[V,W]of i.current)for(let q of W)if(r.current.filtered.items.get(q)>0){r.current.filtered.groups.add(V);break}r.current.filtered.count=j}function Z(){var $,A,B;let L=_();L&&((($=L.parentElement)==null?void 0:$.firstChild)===L&&((B=(A=L.closest(Nr))==null?void 0:A.querySelector(Vp))==null||B.scrollIntoView({block:"nearest"})),L.scrollIntoView({block:"nearest"}))}function _(){var $;return($=D.current)==null?void 0:$.querySelector(`${pa}[aria-selected="true"]`)}function U(){var $;return Array.from((($=D.current)==null?void 0:$.querySelectorAll(hs))||[])}function P($){let A=U()[$];A&&S.setState("value",A.getAttribute(Et))}function k($){var A;let B=_(),L=U(),j=L.findIndex(W=>W===B),V=L[j+$];(A=a.current)!=null&&A.loop&&(V=j+$<0?L[L.length-1]:j+$===L.length?L[0]:L[j+$]),V&&S.setState("value",V.getAttribute(Et))}function z($){let A=_(),B=A==null?void 0:A.closest(Nr),L;for(;B&&!L;)B=$>0?Qp(B,Nr):eg(B,Nr),L=B==null?void 0:B.querySelector(hs);L?S.setState("value",L.getAttribute(Et)):k($)}let R=()=>P(U().length-1),I=$=>{$.preventDefault(),$.metaKey?R():$.altKey?z(1):k(1)},N=$=>{$.preventDefault(),$.metaKey?P(0):$.altKey?z(-1):k(-1)};return T.createElement(Ce.div,{ref:e,tabIndex:-1,...m,"cmdk-root":"",onKeyDown:$=>{var A;if((A=m.onKeyDown)==null||A.call(m,$),!$.defaultPrevented)switch($.key){case"n":case"j":{v&&$.ctrlKey&&I($);break}case"ArrowDown":{I($);break}case"p":case"k":{v&&$.ctrlKey&&N($);break}case"ArrowUp":{N($);break}case"Home":{$.preventDefault(),P(0);break}case"End":{$.preventDefault(),R();break}case"Enter":if(!$.nativeEvent.isComposing&&$.keyCode!==229){$.preventDefault();let B=_();if(B){let L=new Event(hl);B.dispatchEvent(L)}}}}},T.createElement("label",{"cmdk-label":"",htmlFor:O.inputId,id:O.labelId,style:ng},s),Ri(t,$=>T.createElement(i1.Provider,{value:S},T.createElement(n1.Provider,{value:O},$))))}),Up=T.forwardRef((t,e)=>{var r,n;let i=tt(),o=T.useRef(null),l=T.useContext(o1),a=dn(),s=a1(t),c=(n=(r=s.current)==null?void 0:r.forceMount)!=null?n:l==null?void 0:l.forceMount;Mt(()=>{if(!c)return a.item(i,l==null?void 0:l.id)},[c]);let d=s1(i,o,[t.value,t.children,o],t.keywords),f=ga(),p=Nt(x=>x.value&&x.value===d.current),g=Nt(x=>c||a.filter()===!1?!0:x.search?x.filtered.items.get(i)>0:!0);T.useEffect(()=>{let x=o.current;if(!(!x||t.disabled))return x.addEventListener(hl,y),()=>x.removeEventListener(hl,y)},[g,t.onSelect,t.disabled]);function y(){var x,S;h(),(S=(x=s.current).onSelect)==null||S.call(x,d.current)}function h(){f.setState("value",d.current,!0)}if(!g)return null;let{disabled:v,value:m,onSelect:C,forceMount:E,keywords:F,...D}=t;return T.createElement(Ce.div,{ref:on([o,e]),...D,id:i,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!p,"data-disabled":!!v,"data-selected":!!p,onPointerMove:v||a.getDisablePointerSelection()?void 0:h,onClick:v?void 0:y},t.children)}),Wp=T.forwardRef((t,e)=>{let{heading:r,children:n,forceMount:i,...o}=t,l=tt(),a=T.useRef(null),s=T.useRef(null),c=tt(),d=dn(),f=Nt(g=>i||d.filter()===!1?!0:g.search?g.filtered.groups.has(l):!0);Mt(()=>d.group(l),[]),s1(l,a,[t.value,t.heading,s]);let p=T.useMemo(()=>({id:l,forceMount:i}),[i]);return T.createElement(Ce.div,{ref:on([a,e]),...o,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},r&&T.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:c},r),Ri(t,g=>T.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?c:void 0},T.createElement(o1.Provider,{value:p},g))))}),Zp=T.forwardRef((t,e)=>{let{alwaysRender:r,...n}=t,i=T.useRef(null),o=Nt(l=>!l.search);return!r&&!o?null:T.createElement(Ce.div,{ref:on([i,e]),...n,"cmdk-separator":"",role:"separator"})}),Gp=T.forwardRef((t,e)=>{let{onValueChange:r,...n}=t,i=t.value!=null,o=ga(),l=Nt(d=>d.search),a=Nt(d=>d.value),s=dn(),c=T.useMemo(()=>{var d;let f=(d=s.listInnerRef.current)==null?void 0:d.querySelector(`${pa}[${Et}="${encodeURIComponent(a)}"]`);return f==null?void 0:f.getAttribute("id")},[]);return T.useEffect(()=>{t.value!=null&&o.setState("search",t.value)},[t.value]),T.createElement(Ce.input,{ref:e,...n,"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),r==null||r(d.target.value)}})}),qp=T.forwardRef((t,e)=>{let{children:r,label:n="Suggestions",...i}=t,o=T.useRef(null),l=T.useRef(null),a=dn();return T.useEffect(()=>{if(l.current&&o.current){let s=l.current,c=o.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let p=s.offsetHeight;c.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return f.observe(s),()=>{cancelAnimationFrame(d),f.unobserve(s)}}},[]),T.createElement(Ce.div,{ref:on([o,e]),...i,"cmdk-list":"",role:"listbox","aria-label":n,id:a.listId},Ri(t,s=>T.createElement("div",{ref:on([l,a.listInnerRef]),"cmdk-list-sizer":""},s)))}),Yp=T.forwardRef((t,e)=>{let{open:r,onOpenChange:n,overlayClassName:i,contentClassName:o,container:l,...a}=t;return T.createElement(Lp,{open:r,onOpenChange:n},T.createElement(Kp,{container:l},T.createElement(jp,{"cmdk-overlay":"",className:i}),T.createElement(Hp,{"aria-label":t.label,"cmdk-dialog":"",className:o},T.createElement(l1,{ref:e,...a}))))}),Xp=T.forwardRef((t,e)=>Nt(r=>r.filtered.count===0)?T.createElement(Ce.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),Jp=T.forwardRef((t,e)=>{let{progress:r,children:n,label:i="Loading...",...o}=t;return T.createElement(Ce.div,{ref:e,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},Ri(t,l=>T.createElement("div",{"aria-hidden":!0},l)))}),nn=Object.assign(l1,{List:qp,Item:Up,Input:Gp,Group:Wp,Separator:Zp,Dialog:Yp,Empty:Xp,Loading:Jp});function Qp(t,e){let r=t.nextElementSibling;for(;r;){if(r.matches(e))return r;r=r.nextElementSibling}}function eg(t,e){let r=t.previousElementSibling;for(;r;){if(r.matches(e))return r;r=r.previousElementSibling}}function a1(t){let e=T.useRef(t);return Mt(()=>{e.current=t}),e}var Mt=typeof window>"u"?T.useEffect:T.useLayoutEffect;function lr(t){let e=T.useRef();return e.current===void 0&&(e.current=t()),e}function on(t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}function Nt(t){let e=ga(),r=()=>t(e.snapshot());return Hl.useSyncExternalStore(e.subscribe,r,r)}function s1(t,e,r,n=[]){let i=T.useRef(),o=dn();return Mt(()=>{var l;let a=(()=>{var c;for(let d of r){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=n.map(c=>c.trim());o.value(t,a,s),(l=e.current)==null||l.setAttribute(Et,a),i.current=a}),i}var tg=()=>{let[t,e]=T.useState(),r=lr(()=>new Map);return Mt(()=>{r.current.forEach(n=>n()),r.current=new Map},[t]),(n,i)=>{r.current.set(n,i),e({})}};function rg(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function Ri({asChild:t,children:e},r){return t&&T.isValidElement(e)?T.cloneElement(rg(e),{ref:e.ref},r(e.props.children)):r(e)}var ng={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const c1=({withPadding:t=!0,direction:e,width:r="thin",size:n})=>b.jsx("div",{style:{"--size":n},className:ye("c__separator",`c__separator--${e}`,`c__separator--${r}`,{"with-padding":t})}),ln=t=>b.jsx(c1,{direction:"horizontal",...t}),u1=({loading:t,inputValue:e,onFilter:r,placeholder:n,children:i,withSeparator:o=!0})=>{const{t:l}=X.useCunningham();return i?b.jsxs(b.Fragment,{children:[i,o&&b.jsx(ln,{})]}):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(li,{size:"md"})}),b.jsx(nn.Input,{autoFocus:!0,"aria-label":l("Quick search input"),onClick:a=>{a.stopPropagation()},role:"combobox",value:e,placeholder:n,onValueChange:r})]}),o&&b.jsx(ln,{withPadding:!0})]})},ig=t=>{let e=!1;return u.Children.forEach(t,r=>{e=e||!!r}),e},d1=({onFilter:t,inputContent:e,inputValue:r,loading:n,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(nn,{label:o,shouldFilter:!1,ref:s,children:[i&&b.jsx(u1,{loading:n,withSeparator:ig(a),inputValue:r,onFilter:t,placeholder:l,children:e}),b.jsx(nn.List,{children:b.jsx("div",{children:a})})]})})})},Rn=({children:t,onSelect:e,id:r})=>b.jsx(nn.Item,{value:r,onSelect:e,children:t}),f1=({group:t,onSelect:e,renderElement:r})=>{var n,i;return!t.showWhenEmpty&&t.elements.length===0?null:b.jsx("div",{children:b.jsxs(nn.Group,{heading:t.groupName,forceMount:!1,children:[(n=t.startActions)==null?void 0:n.map((o,l)=>b.jsx(Rn,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.elements.map((o,l)=>b.jsx(Rn,{id:`${t.groupName}-element-${l}`,onSelect:()=>{e==null||e(o)},children:r==null?void 0:r(o)},`${t.groupName}-element-${l}`)),(i=t.endActions)==null?void 0:i.map((o,l)=>b.jsx(Rn,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.emptyString&&t.elements.length===0&&b.jsx("span",{className:"quick-search-group__empty-string",children:t.emptyString})]},t.groupName)})},Li=({alwaysShowRight:t=!1,left:e,right:r,testId:n})=>{const{isDesktop:i}=mt();return b.jsxs("div",{className:"c__quick-search-item-template","data-testid":n,children:[b.jsx("div",{className:"c__quick-search-item-template__left",children:e}),i&&r&&b.jsx("div",{className:ye("c__quick-search-item-template__right",{"always-show-right":t,"show-right-on-focus":!t}),children:r})]})},og=t=>b.jsx(c1,{direction:"vertical",...t}),lg=({tabs:t,defaultSelectedTab:e,fullWidth:r=!1})=>t.length===0?null:b.jsx("div",{className:ye("c__tabs",{"c__tabs__full-width":r}),children:b.jsxs(O7,{defaultSelectedKey:e,children:[b.jsx(N7,{"aria-label":"History of Ancient Rome",children:t.map(n=>b.jsxs(R7,{id:n.id,children:[n.icon&&b.jsx("span",{className:"material-icons",children:n.icon}),n.label]},n.id))}),t.map(n=>b.jsx(L7,{id:n.id,children:n.content},n.id))]})}),h1=u.createContext(null);function ke(){const t=u.useContext(h1);if(t===null)throw new Error("No Tree Api Provided");return t}const p1=u.createContext(null);function ag(){const t=u.useContext(p1);if(t===null)throw new Error("Provide a NodesContext");return t}const g1=u.createContext(null);function sg(){const t=u.useContext(g1);if(t===null)throw new Error("Provide a DnDContext");return t}const v1=u.createContext(0);function b1(){u.useContext(v1)}function Ln(t,e,r){return Math.max(Math.min(t,r),e)}function m1(t){return t&&t.isLeaf}function y1(t){return t&&t.isInternal&&!t.isOpen}function C1(t){var e;return t&&t.isOpen&&!(!((e=t.children)===null||e===void 0)&&e.length)}const E1=(t,e)=>{let r=t;for(;r;){if(r.id===e.id)return!0;r=r.parent}return!1},w1=t=>{if(!t.parent)throw Error("Node does not have a parent");return t.parent.children.findIndex(e=>e.id===t.id)};function cg(){}function va(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let r of t.children){const n=va(r,e);if(n)return n}return null}function si(t,e){if(e(t),t.children)for(let r of t.children)si(r,e)}function D1(t){const e=S1(t);let r;for(let n=0;n<e.length;++n)if(e[n]===t){r=ug(e,n);break}r==null||r.focus()}function x1(t){const e=S1(t);let r;for(let n=0;n<e.length;++n)if(e[n]===t){r=dg(e,n);break}r==null||r.focus()}function ug(t,e){return e+1<t.length?t[e+1]:t[0]}function dg(t,e){return e-1>=0?t[e-1]:t[t.length-1]}function S1(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 zr(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function F1(t){return t===null?null:wt(t)}function wt(t){return typeof t=="string"?t:t.id}function fg(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}function $1(t,...e){if(t)return t(...e)}function P1(t){return new Promise((e,r)=>{let n=0;function i(){n+=1,n===100&&r(),t()?e():setTimeout(i,10)}i()})}function A1(t){var e,r;const n=t.focusedNode;return n?n.isOpen?0:n.parent?n.childIndex+1:0:(r=(e=t.root.children)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0}function T1(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const hg=Object.freeze(Object.defineProperty({__proto__:null,access:zr,bound:Ln,dfs:va,focusNextElement:D1,focusPrevElement:x1,getInsertIndex:A1,getInsertParentId:T1,identify:wt,identifyNull:F1,indexOf:w1,isClosed:y1,isDescendant:E1,isItem:m1,isOpenWithEmptyChildren:C1,mergeRefs:fg,noop:cg,safeRun:$1,waitFor:P1,walk:si},Symbol.toStringTag,{value:"Module"})),pg={display:"flex",alignItems:"center",zIndex:1},gg={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},vg={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},bg=u.memo(function({top:e,left:r,indent:n}){const i={position:"absolute",pointerEvents:"none",top:e-2+"px",left:r+"px",right:n+"px"};return b.jsxs("div",{style:Object.assign(Object.assign({},pg),i),children:[b.jsx("div",{style:Object.assign({},vg)}),b.jsx("div",{style:Object.assign({},gg)})]})});function mg({node:t,attrs:e,innerRef:r,children:n}){return b.jsx("div",Object.assign({},e,{ref:r,onFocus:i=>i.stopPropagation(),onClick:t.handleClick,children:n}))}function yg(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(Eg,Object.assign({},t)):b.jsx(Cg,Object.assign({},t))]})}function Cg(t){return b.jsx(b.Fragment,{children:b.jsx("span",{children:t.node.data.name})})}function Eg({node:t}){const e=u.useRef();return u.useEffect(()=>{var r,n;(r=e.current)===null||r===void 0||r.focus(),(n=e.current)===null||n===void 0||n.select()},[]),b.jsx("input",{ref:e,defaultValue:t.data.name,onBlur:()=>t.reset(),onKeyDown:r=>{var n;r.key==="Escape"&&t.reset(),r.key==="Enter"&&t.submit(((n=e.current)===null||n===void 0?void 0:n.value)||"")}})}function So(t){return{type:"EDIT",id:t}}function wg(t={id:null},e){return e.type==="EDIT"?Object.assign(Object.assign({},t),{id:e.id}):t}function Jt(t){return{type:"FOCUS",id:t}}function Dg(){return{type:"TREE_BLUR"}}function xg(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 ci{constructor(e){this.handleClick=r=>{r.metaKey&&!this.tree.props.disableMultiSelection?this.isSelected?this.deselect():this.selectMulti():r.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===an}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,r;const n=this.childIndex;return(r=(e=this.parent)===null||e===void 0?void 0:e.children[n+1])!==null&&r!==void 0?r:null}isAncestorOf(e){if(!e)return!1;let r=e;for(;r;){if(r.id===this.id)return!0;r=r.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 ci(Object.assign({},this))}edit(){return this.tree.edit(this)}}const an="__REACT_ARBORIST_INTERNAL_ROOT__";function ps(t){var e;function r(o,l,a){const s=t.accessId(o),c=new ci({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=>r(f,l+1,c))),c}const n=new ci({tree:t,id:an,data:{id:an},level:-1,parent:null,children:null,isDraggable:!0,rowIndex:null}),i=(e=t.props.data)!==null&&e!==void 0?e:[];return n.children=i.map(o=>r(o,0,n)),n}const pl={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 gs(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 r=t[e.id];return Object.assign(Object.assign({},t),{[e.id]:!r})}else return e.type==="VISIBILITY_CLEAR"?{}:t}function Sg(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?Object.assign(Object.assign({},t),{filtered:gs(t.filtered,e)}):Object.assign(Object.assign({},t),{unfiltered:gs(t.unfiltered,e)}):t}const Er=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}}},Le={clear:()=>({type:"SELECTION_CLEAR"}),only:t=>({type:"SELECTION_ONLY",id:wt(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(wt)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(wt)}),set:t=>Object.assign({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:wt(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:wt(t)})};function Fg(t=Er().nodes.selection,e){const r=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(n=>r.add(n)),Object.assign(Object.assign({},t),{ids:new Set(r)}));case"SELECTION_REMOVE":return e.ids.length===0?t:(e.ids.forEach(n=>r.delete(n)),Object.assign(Object.assign({},t),{ids:new Set(r)}));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 wr={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 $g(t=Er().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 Er().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},t),{parentId:e.parentId,index:e.index});default:return t}}const Pg={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},Ag=t=>{if(!t)return{display:"none"};const{x:e,y:r}=t;return{transform:`translate(${e}px, ${r}px)`}},Tg=t=>{if(!t)return{display:"none"};const{x:e,y:r}=t;return{transform:`translate(${e+10}px, ${r+10}px)`}};function _1({offset:t,mouse:e,id:r,dragIds:n,isDragging:i}){return b.jsxs(_g,{isDragging:i,children:[b.jsx(kg,{offset:t,children:b.jsx(Og,{id:r,dragIds:n})}),b.jsx(Ig,{mouse:e,count:n.length})]})}const _g=u.memo(function(e){return e.isDragging?b.jsx("div",{style:Pg,children:e.children}):null});function kg(t){return b.jsx("div",{className:"row preview",style:Ag(t.offset),children:t.children})}function Ig(t){const{count:e,mouse:r}=t;return e>1?b.jsx("div",{className:"selected-count",style:Tg(r),children:e}):null}const Og=u.memo(function(e){const r=ke(),n=r.get(e.id);return n?b.jsx(r.renderNode,{preview:!0,node:n,style:{paddingLeft:n.level*r.indent,opacity:.2,background:"transparent"},tree:r}):null});function gl(){return gl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gl.apply(null,arguments)}function vs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vl(t,e){return vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},vl(t,e)}function Mg(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,vl(t,e)}var bs=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Ng(t,e){return!!(t===e||bs(t)&&bs(e))}function Bg(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(!Ng(t[r],e[r]))return!1;return!0}function Fo(t,e){e===void 0&&(e=Bg);var r,n=[],i,o=!1;function l(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&r===this&&e(a,n)||(i=t.apply(this,a),o=!0,r=this,n=a),i}return l}var Rg=typeof performance=="object"&&typeof performance.now=="function",ms=Rg?function(){return performance.now()}:function(){return Date.now()};function ys(t){cancelAnimationFrame(t.id)}function Lg(t,e){var r=ms();function n(){ms()-r>=e?t.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var $o=-1;function Cs(t){if(t===void 0&&(t=!1),$o===-1||t){var e=document.createElement("div"),r=e.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(e),$o=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return $o}var Qt=null;function Es(t){if(t===void 0&&(t=!1),Qt===null||t){var e=document.createElement("div"),r=e.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",e.appendChild(n),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 Kg=150,jg=function(e,r){return e},Kn=null,jn=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(Kn=new WeakSet,jn=new WeakSet);function Hg(t){var e,r=t.getItemOffset,n=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){Mg(p,f);function p(y){var h;return h=f.call(this,y)||this,h._instanceProps=s(h.props,vs(h)),h._outerRef=void 0,h._resetIsScrollingTimeoutId=null,h.state={instance:vs(h),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof h.props.initialScrollOffset=="number"?h.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},h._callOnItemsRendered=void 0,h._callOnItemsRendered=Fo(function(v,m,C,E){return h.props.onItemsRendered({overscanStartIndex:v,overscanStopIndex:m,visibleStartIndex:C,visibleStopIndex:E})}),h._callOnScroll=void 0,h._callOnScroll=Fo(function(v,m,C){return h.props.onScroll({scrollDirection:v,scrollOffset:m,scrollUpdateWasRequested:C})}),h._getItemStyle=void 0,h._getItemStyle=function(v){var m=h.props,C=m.direction,E=m.itemSize,F=m.layout,D=h._getItemStyleCache(c&&E,c&&F,c&&C),x;if(D.hasOwnProperty(v))x=D[v];else{var S=r(h.props,v,h._instanceProps),O=i(h.props,v,h._instanceProps),K=C==="horizontal"||F==="horizontal",H=C==="rtl",w=K?S:0;D[v]=x={position:"absolute",left:H?void 0:w,right:H?w:void 0,top:K?0:S,height:K?"100%":O,width:K?O:"100%"}}return x},h._getItemStyleCache=void 0,h._getItemStyleCache=Fo(function(v,m,C){return{}}),h._onScrollHorizontal=function(v){var m=v.currentTarget,C=m.clientWidth,E=m.scrollLeft,F=m.scrollWidth;h.setState(function(D){if(D.scrollOffset===E)return null;var x=h.props.direction,S=E;if(x==="rtl")switch(Es()){case"negative":S=-E;break;case"positive-descending":S=F-C-E;break}return S=Math.max(0,Math.min(S,F-C)),{isScrolling:!0,scrollDirection:D.scrollOffset<S?"forward":"backward",scrollOffset:S,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._onScrollVertical=function(v){var m=v.currentTarget,C=m.clientHeight,E=m.scrollHeight,F=m.scrollTop;h.setState(function(D){if(D.scrollOffset===F)return null;var x=Math.max(0,Math.min(F,E-C));return{isScrolling:!0,scrollDirection:D.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._outerRefSetter=function(v){var m=h.props.outerRef;h._outerRef=v,typeof m=="function"?m(v):m!=null&&typeof m=="object"&&m.hasOwnProperty("current")&&(m.current=v)},h._resetIsScrollingDebounced=function(){h._resetIsScrollingTimeoutId!==null&&ys(h._resetIsScrollingTimeoutId),h._resetIsScrollingTimeoutId=Lg(h._resetIsScrolling,Kg)},h._resetIsScrolling=function(){h._resetIsScrollingTimeoutId=null,h.setState({isScrolling:!1},function(){h._getItemStyleCache(-1,null)})},h}p.getDerivedStateFromProps=function(h,v){return Vg(h,v),d(h),null};var g=p.prototype;return g.scrollTo=function(h){h=Math.max(0,h),this.setState(function(v){return v.scrollOffset===h?null:{scrollDirection:v.scrollOffset<h?"forward":"backward",scrollOffset:h,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},g.scrollToItem=function(h,v){v===void 0&&(v="auto");var m=this.props,C=m.itemCount,E=m.layout,F=this.state.scrollOffset;h=Math.max(0,Math.min(h,C-1));var D=0;if(this._outerRef){var x=this._outerRef;E==="vertical"?D=x.scrollWidth>x.clientWidth?Cs():0:D=x.scrollHeight>x.clientHeight?Cs():0}this.scrollTo(o(this.props,h,v,F,this._instanceProps,D))},g.componentDidMount=function(){var h=this.props,v=h.direction,m=h.initialScrollOffset,C=h.layout;if(typeof m=="number"&&this._outerRef!=null){var E=this._outerRef;v==="horizontal"||C==="horizontal"?E.scrollLeft=m:E.scrollTop=m}this._callPropsCallbacks()},g.componentDidUpdate=function(){var h=this.props,v=h.direction,m=h.layout,C=this.state,E=C.scrollOffset,F=C.scrollUpdateWasRequested;if(F&&this._outerRef!=null){var D=this._outerRef;if(v==="horizontal"||m==="horizontal")if(v==="rtl")switch(Es()){case"negative":D.scrollLeft=-E;break;case"positive-ascending":D.scrollLeft=E;break;default:var x=D.clientWidth,S=D.scrollWidth;D.scrollLeft=S-x-E;break}else D.scrollLeft=E;else D.scrollTop=E}this._callPropsCallbacks()},g.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&ys(this._resetIsScrollingTimeoutId)},g.render=function(){var h=this.props,v=h.children,m=h.className,C=h.direction,E=h.height,F=h.innerRef,D=h.innerElementType,x=h.innerTagName,S=h.itemCount,O=h.itemData,K=h.itemKey,H=K===void 0?jg:K,w=h.layout,M=h.outerElementType,Z=h.outerTagName,_=h.style,U=h.useIsScrolling,P=h.width,k=this.state.isScrolling,z=C==="horizontal"||w==="horizontal",R=z?this._onScrollHorizontal:this._onScrollVertical,I=this._getRangeToRender(),N=I[0],$=I[1],A=[];if(S>0)for(var B=N;B<=$;B++)A.push(u.createElement(v,{data:O,key:H(B,O),index:B,isScrolling:U?k:void 0,style:this._getItemStyle(B)}));var L=n(this.props,this._instanceProps);return u.createElement(M||Z||"div",{className:m,onScroll:R,ref:this._outerRefSetter,style:gl({position:"relative",height:E,width:P,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},_)},u.createElement(D||x||"div",{children:A,ref:F,style:{height:z?"100%":L,pointerEvents:k?"none":void 0,width:z?L:"100%"}}))},g._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var h=this.props.itemCount;if(h>0){var v=this._getRangeToRender(),m=v[0],C=v[1],E=v[2],F=v[3];this._callOnItemsRendered(m,C,E,F)}}if(typeof this.props.onScroll=="function"){var D=this.state,x=D.scrollDirection,S=D.scrollOffset,O=D.scrollUpdateWasRequested;this._callOnScroll(x,S,O)}},g._getRangeToRender=function(){var h=this.props,v=h.itemCount,m=h.overscanCount,C=this.state,E=C.isScrolling,F=C.scrollDirection,D=C.scrollOffset;if(v===0)return[0,0,0,0];var x=l(this.props,D,this._instanceProps),S=a(this.props,x,D,this._instanceProps),O=!E||F==="backward"?Math.max(1,m):1,K=!E||F==="forward"?Math.max(1,m):1;return[Math.max(0,x-O),Math.max(0,Math.min(v-1,S+K)),x,S]},p}(u.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var Vg=function(e,r){var n=e.children,i=e.direction,o=e.height,l=e.layout,a=e.innerTagName,s=e.outerTagName,c=e.width,d=r.instance;if(process.env.NODE_ENV!=="production"){(a!=null||s!=null)&&jn&&!jn.has(d)&&(jn.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":Kn&&!Kn.has(d)&&(Kn.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(n==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(n===null?"null":typeof n)+'" 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.'))}},zg=Hg({getItemOffset:function(e,r){var n=e.itemSize;return r*n},getItemSize:function(e,r){var n=e.itemSize;return n},getEstimatedTotalSize:function(e){var r=e.itemCount,n=e.itemSize;return n*r},getOffsetForIndexAndAlignment:function(e,r,n,i,o,l){var a=e.direction,s=e.height,c=e.itemCount,d=e.itemSize,f=e.layout,p=e.width,g=a==="horizontal"||f==="horizontal",y=g?p:s,h=Math.max(0,c*d-y),v=Math.min(h,r*d),m=Math.max(0,r*d-y+d+l);switch(n==="smart"&&(i>=m-y&&i<=v+y?n="auto":n="center"),n){case"start":return v;case"end":return m;case"center":{var C=Math.round(m+(v-m)/2);return C<Math.ceil(y/2)?0:C>h+Math.floor(y/2)?h:C}case"auto":default:return i>=m&&i<=v?i:i<m?m:v}},getStartIndexForOffset:function(e,r){var n=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(r/i)))},getStopIndexForStartIndex:function(e,r,n){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=r*a,p=d?c:o,g=Math.ceil((p+n-f)/a);return Math.max(0,Math.min(l-1,r+g-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var r=e.itemSize;if(process.env.NODE_ENV!=="production"&&typeof r!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(r===null?"null":typeof r)+'" was specified.'))}});function Ug(){var t,e;const r=ke(),i=sg().cursor;if(!i||i.type!=="line")return null;const o=r.indent,l=r.rowHeight*i.index+((e=(t=r.props.padding)!==null&&t!==void 0?t:r.props.paddingTop)!==null&&e!==void 0?e:0),a=o*i.level,s=r.renderCursor;return b.jsx(s,{top:l,left:a,indent:o})}var Wg=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};const Zg=u.forwardRef(function(e,r){const{children:n}=e,i=Wg(e,["children"]),o=ke();return b.jsxs("div",Object.assign({ref:r},i,{onClick:l=>{l.currentTarget===l.target&&o.deselectAll()},children:[b.jsx(Gg,{}),n]}))}),Gg=()=>{const t=ke();return b.jsx("div",{style:{height:t.visibleNodes.length*t.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:b.jsx(Ug,{})})};var qg=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};const Yg=u.forwardRef(function(e,r){var n,i,o,l,{style:a}=e,s=qg(e,["style"]);const c=ke(),d=(i=(n=c.props.padding)!==null&&n!==void 0?n: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:r,style:Object.assign(Object.assign({},a),{height:`${parseFloat(a.height)+d+f}px`})},s))});var k1=u.createContext({dragDropManager:void 0}),Ne;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Ne||(Ne={}));function J(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[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 n[l++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var ba="dnd-core/INIT_COORDS",Ki="dnd-core/BEGIN_DRAG",ma="dnd-core/PUBLISH_DRAG_SOURCE",ji="dnd-core/HOVER",Hi="dnd-core/DROP",Vi="dnd-core/END_DRAG";function ws(t,e){return{type:ba,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function Hn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hn=function(r){return typeof r}:Hn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Hn(t)}function Xg(t,e,r){return e.split(".").reduce(function(n,i){return n&&n[i]?n[i]:r||null},t)}function Jg(t,e){return t.filter(function(r){return r!==e})}function I1(t){return Hn(t)==="object"}function Qg(t,e){var r=new Map,n=function(l){r.set(l,r.has(l)?r.get(l)+1:1)};t.forEach(n),e.forEach(n);var i=[];return r.forEach(function(o,l){o===1&&i.push(l)}),i}function e8(t,e){return t.filter(function(r){return e.indexOf(r)>-1})}var t8={type:ba,payload:{clientOffset:null,sourceClientOffset:null}};function r8(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},i=n.publishSource,o=i===void 0?!0:i,l=n.clientOffset,a=n.getSourceClientOffset,s=t.getMonitor(),c=t.getRegistry();t.dispatch(ws(l)),n8(r,s,c);var d=l8(r,s);if(d===null){t.dispatch(t8);return}var f=null;if(l){if(!a)throw new Error("getSourceClientOffset must be defined");i8(a),f=a(d)}t.dispatch(ws(l,f));var p=c.getSource(d),g=p.beginDrag(s,d);if(g!=null){o8(g),c.pinSource(d);var y=c.getSourceType(d);return{type:Ki,payload:{itemType:y,item:g,sourceId:d,clientOffset:l||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}}}function n8(t,e,r){J(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){J(r.getSource(n),"Expected sourceIds to be registered.")})}function i8(t){J(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function o8(t){J(I1(t),"Item must be an object.")}function l8(t,e){for(var r=null,n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function a8(t){return function(){var r=t.getMonitor();if(r.isDragging())return{type:ma}}}function bl(t,e){return e===null?t===null:Array.isArray(t)?t.some(function(r){return r===e}):t===e}function s8(t){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.clientOffset;c8(r);var o=r.slice(0),l=t.getMonitor(),a=t.getRegistry();u8(o,l,a);var s=l.getItemType();return d8(o,a,s),f8(o,l,a),{type:ji,payload:{targetIds:o,clientOffset:i||null}}}}function c8(t){J(Array.isArray(t),"Expected targetIds to be an array.")}function u8(t,e,r){J(e.isDragging(),"Cannot call hover while not dragging."),J(!e.didDrop(),"Cannot call hover after drop.");for(var n=0;n<t.length;n++){var i=t[n];J(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");var o=r.getTarget(i);J(o,"Expected targetIds to be registered.")}}function d8(t,e,r){for(var n=t.length-1;n>=0;n--){var i=t[n],o=e.getTargetType(i);bl(o,r)||t.splice(n,1)}}function f8(t,e,r){t.forEach(function(n){var i=r.getTarget(n);i.hover(e,n)})}function Ds(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function xs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ds(Object(r),!0).forEach(function(n){h8(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ds(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function h8(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p8(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.getMonitor(),i=t.getRegistry();g8(n);var o=m8(n);o.forEach(function(l,a){var s=v8(l,a,i,n),c={type:Hi,payload:{dropResult:xs(xs({},r),s)}};t.dispatch(c)})}}function g8(t){J(t.isDragging(),"Cannot call drop while not dragging."),J(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function v8(t,e,r,n){var i=r.getTarget(t),o=i?i.drop(n,t):void 0;return b8(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function b8(t){J(typeof t>"u"||I1(t),"Drop result must either be an object or undefined.")}function m8(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function y8(t){return function(){var r=t.getMonitor(),n=t.getRegistry();C8(r);var i=r.getSourceId();if(i!=null){var o=n.getSource(i,!0);o.endDrag(r,i),n.unpinSource()}return{type:Vi}}}function C8(t){J(t.isDragging(),"Cannot call endDrag while not dragging.")}function E8(t){return{beginDrag:r8(t),publishDragSource:a8(t),hover:s8(t),drop:p8(t),endDrag:y8(t)}}function w8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function D8(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function x8(t,e,r){return e&&D8(t.prototype,e),t}function Br(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var S8=function(){function t(e,r){var n=this;w8(this,t),Br(this,"store",void 0),Br(this,"monitor",void 0),Br(this,"backend",void 0),Br(this,"isSetUp",!1),Br(this,"handleRefCountChange",function(){var i=n.store.getState().refCount>0;n.backend&&(i&&!n.isSetUp?(n.backend.setup(),n.isSetUp=!0):!i&&n.isSetUp&&(n.backend.teardown(),n.isSetUp=!1))}),this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}return x8(t,[{key:"receiveBackend",value:function(r){this.backend=r}},{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 r=this,n=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(r,s);typeof d<"u"&&n(d)}}var o=E8(this);return Object.keys(o).reduce(function(l,a){var s=o[a];return l[a]=i(s),l},{})}},{key:"dispatch",value:function(r){this.store.dispatch(r)}}]),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 Ss=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Fs=function(){return Math.random().toString(36).substring(7).split("").join(".")},$s={INIT:"@@redux/INIT"+Fs(),REPLACE:"@@redux/REPLACE"+Fs()};function F8(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 $8(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(T8(t))return"date";if(A8(t))return"error";var r=P8(t);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function P8(t){return typeof t.constructor=="function"?t.constructor.name:null}function A8(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function T8(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function er(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=$8(t)),e}function O1(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="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 r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(1):"Expected the enhancer to be a function. Instead, received: '"+er(r)+"'");return r(O1)(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: '"+er(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(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(4):"Expected the listener to be a function. Instead, received: '"+er(h)+"'");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 v=!0;return c(),a.push(h),function(){if(v){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.");v=!1,c();var C=a.indexOf(h);a.splice(C,1),l=null}}}function p(h){if(!F8(h))throw new Error(process.env.NODE_ENV==="production"?Ie(7):"Actions must be plain objects. Instead, the actual type was: '"+er(h)+"'. 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 h.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,h)}finally{s=!1}for(var v=l=a,m=0;m<v.length;m++){var C=v[m];C()}return h}function g(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(10):"Expected the nextReducer to be a function. Instead, received: '"+er(h));i=h,p({type:$s.REPLACE})}function y(){var h,v=f;return h={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: '"+er(C)+"'");function E(){C.next&&C.next(d())}E();var F=v(E);return{unsubscribe:F}}},h[Ss]=function(){return this},h}return p({type:$s.INIT}),n={dispatch:p,subscribe:f,getState:d,replaceReducer:g},n[Ss]=y,n}var _8=function(e,r){return e===r};function k8(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function I8(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_8;if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function Ps(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function As(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ps(Object(r),!0).forEach(function(n){O8(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ps(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function O8(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ts={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function M8(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ts,e=arguments.length>1?arguments[1]:void 0,r=e.payload;switch(e.type){case ba:case Ki:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case ji:return k8(t.clientOffset,r.clientOffset)?t:As(As({},t),{},{clientOffset:r.clientOffset});case Vi:case Hi:return Ts;default:return t}}var ya="dnd-core/ADD_SOURCE",Ca="dnd-core/ADD_TARGET",Ea="dnd-core/REMOVE_SOURCE",zi="dnd-core/REMOVE_TARGET";function N8(t){return{type:ya,payload:{sourceId:t}}}function B8(t){return{type:Ca,payload:{targetId:t}}}function R8(t){return{type:Ea,payload:{sourceId:t}}}function L8(t){return{type:zi,payload:{targetId:t}}}function _s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Oe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?_s(Object(r),!0).forEach(function(n){K8(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_s(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function K8(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var j8={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function H8(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:j8,e=arguments.length>1?arguments[1]:void 0,r=e.payload;switch(e.type){case Ki:return Oe(Oe({},t),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case ma:return Oe(Oe({},t),{},{isSourcePublic:!0});case ji:return Oe(Oe({},t),{},{targetIds:r.targetIds});case zi:return t.targetIds.indexOf(r.targetId)===-1?t:Oe(Oe({},t),{},{targetIds:Jg(t.targetIds,r.targetId)});case Hi:return Oe(Oe({},t),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Vi:return Oe(Oe({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function V8(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case ya:case Ca:return t+1;case Ea:case zi:return t-1;default:return t}}var ui=[],wa=[];ui.__IS_NONE__=!0;wa.__IS_ALL__=!0;function z8(t,e){if(t===ui)return!1;if(t===wa||typeof e>"u")return!0;var r=e8(e,t);return r.length>0}function U8(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ji:break;case ya:case Ca:case zi:case Ea:return ui;case Ki:case ma:case Vi:case Hi:default:return wa}var e=t.payload,r=e.targetIds,n=r===void 0?[]:r,i=e.prevTargetIds,o=i===void 0?[]:i,l=Qg(n,o),a=l.length>0||!I8(n,o);if(!a)return ui;var s=o[o.length-1],c=n[n.length-1];return s!==c&&(s&&l.push(s),c&&l.push(c)),l}function W8(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t+1}function ks(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Is(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ks(Object(r),!0).forEach(function(n){Z8(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ks(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Z8(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function G8(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:U8(t.dirtyHandlerIds,{type:e.type,payload:Is(Is({},e.payload),{},{prevTargetIds:Xg(t,"dragOperation.targetIds",[])})}),dragOffset:M8(t.dragOffset,e),refCount:V8(t.refCount,e),dragOperation:H8(t.dragOperation,e),stateId:W8(t.stateId)}}function q8(t,e){return{x:t.x+e.x,y:t.y+e.y}}function M1(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Y8(t){var e=t.clientOffset,r=t.initialClientOffset,n=t.initialSourceClientOffset;return!e||!r||!n?null:M1(q8(e,n),r)}function X8(t){var e=t.clientOffset,r=t.initialClientOffset;return!e||!r?null:M1(e,r)}function J8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Q8(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ev(t,e,r){return e&&Q8(t.prototype,e),t}function Os(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var tv=function(){function t(e,r){J8(this,t),Os(this,"store",void 0),Os(this,"registry",void 0),this.store=e,this.registry=r}return ev(t,[{key:"subscribeToStateChange",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=i.handlerIds;J(typeof r=="function","listener must be a function."),J(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=n.store.getState(),d=c.stateId;try{var f=d===l||d===l+1&&!z8(c.dirtyHandlerIds,o);f||r()}finally{l=d}};return this.store.subscribe(a)}},{key:"subscribeToOffsetChange",value:function(r){var n=this;J(typeof r=="function","listener must be a function.");var i=this.store.getState().dragOffset,o=function(){var a=n.store.getState().dragOffset;a!==i&&(i=a,r())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r);return J(n,"Expected to find a valid source. sourceId=".concat(r)),this.isDragging()?!1:n.canDrag(this,r)}},{key:"canDropOnTarget",value:function(r){if(!r)return!1;var n=this.registry.getTarget(r);if(J(n,"Expected to find a valid target. targetId=".concat(r)),!this.isDragging()||this.didDrop())return!1;var i=this.registry.getTargetType(r),o=this.getItemType();return bl(i,o)&&n.canDrop(this,r)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r,!0);if(J(n,"Expected to find a valid source. sourceId=".concat(r)),!this.isDragging()||!this.isSourcePublic())return!1;var i=this.registry.getSourceType(r),o=this.getItemType();return i!==o?!1:n.isDragging(this,r)}},{key:"isOverTarget",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!r)return!1;var i=n.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(r),l=this.getItemType();if(l&&!bl(o,l))return!1;var a=this.getTargetIds();if(!a.length)return!1;var s=a.indexOf(r);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 Y8(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return X8(this.store.getState().dragOffset)}}]),t}(),rv=0;function nv(){return rv++}function Vn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vn=function(r){return typeof r}:Vn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Vn(t)}function iv(t){J(typeof t.canDrag=="function","Expected canDrag to be a function."),J(typeof t.beginDrag=="function","Expected beginDrag to be a function."),J(typeof t.endDrag=="function","Expected endDrag to be a function.")}function ov(t){J(typeof t.canDrop=="function","Expected canDrop to be a function."),J(typeof t.hover=="function","Expected hover to be a function."),J(typeof t.drop=="function","Expected beginDrag to be a function.")}function ml(t,e){if(e&&Array.isArray(t)){t.forEach(function(r){return ml(r,!1)});return}J(typeof t=="string"||Vn(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 Ms=typeof global<"u"?global:self,N1=Ms.MutationObserver||Ms.WebKitMutationObserver;function B1(t){return function(){const r=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(r),clearInterval(n),t()}}}function lv(t){let e=1;const r=new N1(t),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){e=-e,n.data=e}}const av=typeof N1=="function"?lv:B1;class sv{enqueueTask(e){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.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 r=this.index;if(this.index++,e[r].call(),this.index>this.capacity){for(let n=0,i=e.length-this.index;n<i;n++)e[n]=e[n+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=av(this.flush),this.requestErrorThrow=B1(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class cv{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,r){this.onError=e,this.release=r,this.task=null}}class uv{create(e){const r=this.freeTasks,n=r.length?r.pop():new cv(this.onError,i=>r[r.length]=i);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}const R1=new sv,dv=new uv(R1.registerPendingError);function fv(t){R1.enqueueTask(dv.create(t))}function hv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function gv(t,e,r){return e&&pv(t.prototype,e),t}function tr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vv(t,e){return Cv(t)||yv(t,e)||mv(t,e)||bv()}function bv(){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 mv(t,e){if(t){if(typeof t=="string")return Ns(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ns(t,e)}}function Ns(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function yv(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,l,a;try{for(r=r.call(t);!(i=(l=r.next()).done)&&(n.push(l.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw a}}return n}}function Cv(t){if(Array.isArray(t))return t}function Ev(t){var e=nv().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 Bs(t){switch(t[0]){case"S":return Ne.SOURCE;case"T":return Ne.TARGET;default:J(!1,"Cannot parse handler ID: ".concat(t))}}function Rs(t,e){var r=t.entries(),n=!1;do{var i=r.next(),o=i.done,l=vv(i.value,2),a=l[1];if(a===e)return!0;n=!!o}while(!n);return!1}var wv=function(){function t(e){hv(this,t),tr(this,"types",new Map),tr(this,"dragSources",new Map),tr(this,"dropTargets",new Map),tr(this,"pinnedSourceId",null),tr(this,"pinnedSource",null),tr(this,"store",void 0),this.store=e}return gv(t,[{key:"addSource",value:function(r,n){ml(r),iv(n);var i=this.addHandler(Ne.SOURCE,r,n);return this.store.dispatch(N8(i)),i}},{key:"addTarget",value:function(r,n){ml(r,!0),ov(n);var i=this.addHandler(Ne.TARGET,r,n);return this.store.dispatch(B8(i)),i}},{key:"containsHandler",value:function(r){return Rs(this.dragSources,r)||Rs(this.dropTargets,r)}},{key:"getSource",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;J(this.isSourceId(r),"Expected a valid source ID.");var i=n&&r===this.pinnedSourceId,o=i?this.pinnedSource:this.dragSources.get(r);return o}},{key:"getTarget",value:function(r){return J(this.isTargetId(r),"Expected a valid target ID."),this.dropTargets.get(r)}},{key:"getSourceType",value:function(r){return J(this.isSourceId(r),"Expected a valid source ID."),this.types.get(r)}},{key:"getTargetType",value:function(r){return J(this.isTargetId(r),"Expected a valid target ID."),this.types.get(r)}},{key:"isSourceId",value:function(r){var n=Bs(r);return n===Ne.SOURCE}},{key:"isTargetId",value:function(r){var n=Bs(r);return n===Ne.TARGET}},{key:"removeSource",value:function(r){var n=this;J(this.getSource(r),"Expected an existing source."),this.store.dispatch(R8(r)),fv(function(){n.dragSources.delete(r),n.types.delete(r)})}},{key:"removeTarget",value:function(r){J(this.getTarget(r),"Expected an existing target."),this.store.dispatch(L8(r)),this.dropTargets.delete(r),this.types.delete(r)}},{key:"pinSource",value:function(r){var n=this.getSource(r);J(n,"Expected an existing source."),this.pinnedSourceId=r,this.pinnedSource=n}},{key:"unpinSource",value:function(){J(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(r,n,i){var o=Ev(r);return this.types.set(o,n),r===Ne.SOURCE?this.dragSources.set(o,i):r===Ne.TARGET&&this.dropTargets.set(o,i),o}}]),t}();function Dv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=xv(n),o=new tv(i,new wv(i)),l=new S8(i,o),a=t(l,e,r);return l.receiveBackend(a),l}function xv(t){var e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return O1(G8,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var Sv=["children"];function Fv(t,e){return Tv(t)||Av(t,e)||Pv(t,e)||$v()}function $v(){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 Pv(t,e){if(t){if(typeof t=="string")return Ls(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ls(t,e)}}function Ls(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Av(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,l,a;try{for(r=r.call(t);!(i=(l=r.next()).done)&&(n.push(l.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw a}}return n}}function Tv(t){if(Array.isArray(t))return t}function _v(t,e){if(t==null)return{};var r=kv(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function kv(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var Ks=0,zn=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),Iv=u.memo(function(e){var r=e.children,n=_v(e,Sv),i=Ov(n),o=Fv(i,2),l=o[0],a=o[1];return u.useEffect(function(){if(a){var s=L1();return++Ks,function(){--Ks===0&&(s[zn]=null)}}},[]),b.jsx(k1.Provider,Object.assign({value:l},{children:r}),void 0)});function Ov(t){if("manager"in t){var e={dragDropManager:t.manager};return[e,!1]}var r=Mv(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[r,n]}function Mv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L1(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=e;return i[zn]||(i[zn]={dragDropManager:Dv(t,e,r,n)}),i[zn]}function L1(){return typeof global<"u"?global:window}function Nv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Rv(t,e,r){return e&&Bv(t.prototype,e),t}function js(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Po=!1,Ao=!1,Lv=function(){function t(e){Nv(this,t),js(this,"internalMonitor",void 0),js(this,"sourceId",null),this.internalMonitor=e.getMonitor()}return Rv(t,[{key:"receiveHandlerId",value:function(r){this.sourceId=r}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){J(!Po,"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 Po=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Po=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;J(!Ao,"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 Ao=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Ao=!1}}},{key:"subscribeToStateChange",value:function(r,n){return this.internalMonitor.subscribeToStateChange(r,n)}},{key:"isDraggingSource",value:function(r){return this.internalMonitor.isDraggingSource(r)}},{key:"isOverTarget",value:function(r,n){return this.internalMonitor.isOverTarget(r,n)}},{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(r){return this.internalMonitor.subscribeToOffsetChange(r)}},{key:"canDragSource",value:function(r){return this.internalMonitor.canDragSource(r)}},{key:"canDropOnTarget",value:function(r){return this.internalMonitor.canDropOnTarget(r)}},{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 Kv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Hv(t,e,r){return e&&jv(t.prototype,e),t}function Hs(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var To=!1,Vv=function(){function t(e){Kv(this,t),Hs(this,"internalMonitor",void 0),Hs(this,"targetId",null),this.internalMonitor=e.getMonitor()}return Hv(t,[{key:"receiveHandlerId",value:function(r){this.targetId=r}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(r,n){return this.internalMonitor.subscribeToStateChange(r,n)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;J(!To,"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 To=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{To=!1}}},{key:"isOver",value:function(r){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,r):!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 zv(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 Uv(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!u.isValidElement(e)){var n=e;return t(n,r),n}var i=e;zv(i);var o=r?function(l){return t(l,r)}:t;return Wv(i,o)}}function K1(t){var e={};return Object.keys(t).forEach(function(r){var n=t[r];if(r.endsWith("Ref"))e[r]=t[r];else{var i=Uv(n);e[r]=function(){return i}}}),e}function Vs(t,e){typeof t=="function"?t(e):t.current=e}function Wv(t,e){var r=t.ref;return J(typeof r!="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"),r?u.cloneElement(t,{ref:function(i){Vs(r,i),Vs(e,i)}}):u.cloneElement(t,{ref:e})}function Un(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Un=function(r){return typeof r}:Un=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Un(t)}function yl(t){return t!==null&&Un(t)==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Cl(t,e,r,n){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 Zv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function qv(t,e,r){return e&&Gv(t.prototype,e),t}function Ee(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Yv=function(){function t(e){var r=this;Zv(this,t),Ee(this,"hooks",K1({dragSource:function(i,o){r.clearDragSource(),r.dragSourceOptions=o||null,yl(i)?r.dragSourceRef=i:r.dragSourceNode=i,r.reconnectDragSource()},dragPreview:function(i,o){r.clearDragPreview(),r.dragPreviewOptions=o||null,yl(i)?r.dragPreviewRef=i:r.dragPreviewNode=i,r.reconnectDragPreview()}})),Ee(this,"handlerId",null),Ee(this,"dragSourceRef",null),Ee(this,"dragSourceNode",void 0),Ee(this,"dragSourceOptionsInternal",null),Ee(this,"dragSourceUnsubscribe",void 0),Ee(this,"dragPreviewRef",null),Ee(this,"dragPreviewNode",void 0),Ee(this,"dragPreviewOptionsInternal",null),Ee(this,"dragPreviewUnsubscribe",void 0),Ee(this,"lastConnectedHandlerId",null),Ee(this,"lastConnectedDragSource",null),Ee(this,"lastConnectedDragSourceOptions",null),Ee(this,"lastConnectedDragPreview",null),Ee(this,"lastConnectedDragPreviewOptions",null),Ee(this,"backend",void 0),this.backend=e}return qv(t,[{key:"receiveHandlerId",value:function(r){this.handlerId!==r&&(this.handlerId=r,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(r){this.dragSourceOptionsInternal=r}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(r){this.dragPreviewOptionsInternal=r}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var r=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(n&&this.disconnectDragSource(),!!this.handlerId){if(!r){this.lastConnectedDragSource=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=r,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,r,this.dragSourceOptions))}}},{key:"reconnectDragPreview",value:function(){var r=this.dragPreview,n=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,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!Cl(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!Cl(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 Xv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Qv(t,e,r){return e&&Jv(t.prototype,e),t}function Ze(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var e6=function(){function t(e){var r=this;Xv(this,t),Ze(this,"hooks",K1({dropTarget:function(i,o){r.clearDropTarget(),r.dropTargetOptions=o,yl(i)?r.dropTargetRef=i:r.dropTargetNode=i,r.reconnect()}})),Ze(this,"handlerId",null),Ze(this,"dropTargetRef",null),Ze(this,"dropTargetNode",void 0),Ze(this,"dropTargetOptionsInternal",null),Ze(this,"unsubscribeDropTarget",void 0),Ze(this,"lastConnectedHandlerId",null),Ze(this,"lastConnectedDropTarget",null),Ze(this,"lastConnectedDropTargetOptions",null),Ze(this,"backend",void 0),this.backend=e}return Qv(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var r=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();r&&this.disconnectDropTarget();var n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(r){r!==this.handlerId&&(this.handlerId=r,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(r){this.dropTargetOptionsInternal=r}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!Cl(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 t6(t,e,r){var n=r.getRegistry(),i=n.addTarget(t,e);return[i,function(){return n.removeTarget(i)}]}function r6(t,e,r){var n=r.getRegistry(),i=n.addSource(t,e);return[i,function(){return n.removeSource(i)}]}var Bt=typeof window<"u"?u.useLayoutEffect:u.useEffect;function Wn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wn=function(r){return typeof r}:Wn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wn(t)}function n6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i6(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o6(t,e,r){return e&&i6(t.prototype,e),t}function _o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l6=function(){function t(e,r,n){n6(this,t),_o(this,"spec",void 0),_o(this,"monitor",void 0),_o(this,"connector",void 0),this.spec=e,this.monitor=r,this.connector=n}return o6(t,[{key:"beginDrag",value:function(){var r,n=this.spec,i=this.monitor,o=null;return Wn(n.item)==="object"?o=n.item:typeof n.item=="function"?o=n.item(i):o={},(r=o)!==null&&r!==void 0?r:null}},{key:"canDrag",value:function(){var r=this.spec,n=this.monitor;return typeof r.canDrag=="boolean"?r.canDrag:typeof r.canDrag=="function"?r.canDrag(n):!0}},{key:"isDragging",value:function(r,n){var i=this.spec,o=this.monitor,l=i.isDragging;return l?l(o):n===r.getSourceId()}},{key:"endDrag",value:function(){var r=this.spec,n=this.monitor,i=this.connector,o=r.end;o&&o(n.getItem(),n),i.reconnect()}}]),t}();function a6(t,e,r){var n=u.useMemo(function(){return new l6(t,e,r)},[e,r]);return u.useEffect(function(){n.spec=t},[t]),n}function Vt(){var t=u.useContext(k1),e=t.dragDropManager;return J(e!=null,"Expected drag drop context"),e}function s6(t){return u.useMemo(function(){var e=t.type;return J(e!=null,"spec.type must be defined"),e},[t])}function c6(t,e){return h6(t)||f6(t,e)||d6(t,e)||u6()}function u6(){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 d6(t,e){if(t){if(typeof t=="string")return zs(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zs(t,e)}}function zs(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f6(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,l,a;try{for(r=r.call(t);!(i=(l=r.next()).done)&&(n.push(l.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw a}}return n}}function h6(t){if(Array.isArray(t))return t}function p6(t,e,r){var n=Vt(),i=a6(t,e,r),o=s6(t);Bt(function(){if(o!=null){var a=r6(o,i,n),s=c6(a,2),c=s[0],d=s[1];return e.receiveHandlerId(c),r.receiveHandlerId(c),d}},[n,e,r,i,o])}function g6(t){return y6(t)||m6(t)||b6(t)||v6()}function v6(){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 b6(t,e){if(t){if(typeof t=="string")return El(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return El(t,e)}}function m6(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function y6(t){if(Array.isArray(t))return El(t)}function El(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function j1(t,e){var r=g6(e||[]);return e==null&&typeof t!="function"&&r.push(t),u.useMemo(function(){return typeof t=="function"?t():t},r)}function C6(){var t=Vt();return u.useMemo(function(){return new Lv(t)},[t])}function E6(t,e){var r=Vt(),n=u.useMemo(function(){return new Yv(r.getBackend())},[r]);return Bt(function(){return n.dragSourceOptions=t||null,n.reconnect(),function(){return n.disconnectDragSource()}},[n,t]),Bt(function(){return n.dragPreviewOptions=e||null,n.reconnect(),function(){return n.disconnectDragPreview()}},[n,e]),n}var ko,Us;function w6(){return Us||(Us=1,ko=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var l=o[i];if(!t(e[l],r[l]))return!1}return!0}return e!==e&&r!==r}),ko}var D6=w6();const x6=wf(D6);function S6(t,e){return A6(t)||P6(t,e)||$6(t,e)||F6()}function F6(){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 $6(t,e){if(t){if(typeof t=="string")return Ws(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ws(t,e)}}function Ws(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function P6(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,l,a;try{for(r=r.call(t);!(i=(l=r.next()).done)&&(n.push(l.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw a}}return n}}function A6(t){if(Array.isArray(t))return t}function H1(t,e,r){var n=u.useState(function(){return e(t)}),i=S6(n,2),o=i[0],l=i[1],a=u.useCallback(function(){var s=e(t);x6(o,s)||(l(s),r&&r())},[o,t,r]);return Bt(a),[o,a]}function T6(t,e){return O6(t)||I6(t,e)||k6(t,e)||_6()}function _6(){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 k6(t,e){if(t){if(typeof t=="string")return Zs(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zs(t,e)}}function Zs(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function I6(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,l,a;try{for(r=r.call(t);!(i=(l=r.next()).done)&&(n.push(l.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw a}}return n}}function O6(t){if(Array.isArray(t))return t}function M6(t,e,r){var n=H1(t,e,r),i=T6(n,2),o=i[0],l=i[1];return Bt(function(){var s=t.getHandlerId();if(s!=null)return t.subscribeToStateChange(l,{handlerIds:[s]})},[t,l]),o}function V1(t,e,r){return M6(e,t||function(){return{}},function(){return r.reconnect()})}function N6(t){return u.useMemo(function(){return t.hooks.dragSource()},[t])}function B6(t){return u.useMemo(function(){return t.hooks.dragPreview()},[t])}function R6(t,e){var r=j1(t,e);J(!r.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 n=C6(),i=E6(r.options,r.previewOptions);return p6(r,n,i),[V1(r.collect,n,i),N6(i),B6(i)]}function L6(t){var e=t.accept;return u.useMemo(function(){return J(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]},[e])}function K6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function j6(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function H6(t,e,r){return e&&j6(t.prototype,e),t}function Gs(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var V6=function(){function t(e,r){K6(this,t),Gs(this,"spec",void 0),Gs(this,"monitor",void 0),this.spec=e,this.monitor=r}return H6(t,[{key:"canDrop",value:function(){var r=this.spec,n=this.monitor;return r.canDrop?r.canDrop(n.getItem(),n):!0}},{key:"hover",value:function(){var r=this.spec,n=this.monitor;r.hover&&r.hover(n.getItem(),n)}},{key:"drop",value:function(){var r=this.spec,n=this.monitor;if(r.drop)return r.drop(n.getItem(),n)}}]),t}();function z6(t,e){var r=u.useMemo(function(){return new V6(t,e)},[e]);return u.useEffect(function(){r.spec=t},[t]),r}function U6(t,e){return q6(t)||G6(t,e)||Z6(t,e)||W6()}function W6(){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 Z6(t,e){if(t){if(typeof t=="string")return qs(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qs(t,e)}}function qs(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function G6(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,l,a;try{for(r=r.call(t);!(i=(l=r.next()).done)&&(n.push(l.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw a}}return n}}function q6(t){if(Array.isArray(t))return t}function Y6(t,e,r){var n=Vt(),i=z6(t,e),o=L6(t);Bt(function(){var a=t6(o,i,n),s=U6(a,2),c=s[0],d=s[1];return e.receiveHandlerId(c),r.receiveHandlerId(c),d},[n,e,i,r,o.map(function(l){return l.toString()}).join("|")])}function X6(){var t=Vt();return u.useMemo(function(){return new Vv(t)},[t])}function J6(t){var e=Vt(),r=u.useMemo(function(){return new e6(e.getBackend())},[e]);return Bt(function(){return r.dropTargetOptions=t||null,r.reconnect(),function(){return r.disconnectDropTarget()}},[t]),r}function Q6(t){return u.useMemo(function(){return t.hooks.dropTarget()},[t])}function z1(t,e){var r=j1(t,e),n=X6(),i=J6(r.options);return Y6(r,n,i),[V1(r.collect,n,i),Q6(i)]}function eb(t,e){return ib(t)||nb(t,e)||rb(t,e)||tb()}function tb(){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 rb(t,e){if(t){if(typeof t=="string")return Ys(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ys(t,e)}}function Ys(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function nb(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,l,a;try{for(r=r.call(t);!(i=(l=r.next()).done)&&(n.push(l.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw a}}return n}}function ib(t){if(Array.isArray(t))return t}function ob(t){var e=Vt(),r=e.getMonitor(),n=H1(r,t),i=eb(n,2),o=i[0],l=i[1];return u.useEffect(function(){return r.subscribeToOffsetChange(l)}),u.useEffect(function(){return r.subscribeToStateChange(l)}),o}function U1(t){var e=null,r=function(){return e==null&&(e=t()),e};return r}function lb(t,e){return t.filter(function(r){return r!==e})}function ab(t,e){var r=new Set,n=function(l){return r.add(l)};t.forEach(n),e.forEach(n);var i=[];return r.forEach(function(o){return i.push(o)}),i}function sb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ub(t,e,r){return e&&cb(t.prototype,e),t}function Xs(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var db=function(){function t(e){sb(this,t),Xs(this,"entered",[]),Xs(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}return ub(t,[{key:"enter",value:function(r){var n=this,i=this.entered.length,o=function(a){return n.isNodeInDocument(a)&&(!a.contains||a.contains(r))};return this.entered=ab(this.entered.filter(o),[r]),i===0&&this.entered.length>0}},{key:"leave",value:function(r){var n=this.entered.length;return this.entered=lb(this.entered.filter(this.isNodeInDocument),r),n>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),t}(),fb=U1(function(){return/firefox/i.test(navigator.userAgent)}),W1=U1(function(){return!!window.safari});function hb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function gb(t,e,r){return e&&pb(t.prototype,e),t}function Rr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Js=function(){function t(e,r){hb(this,t),Rr(this,"xs",void 0),Rr(this,"ys",void 0),Rr(this,"c1s",void 0),Rr(this,"c2s",void 0),Rr(this,"c3s",void 0);for(var n=e.length,i=[],o=0;o<n;o++)i.push(o);i.sort(function(O,K){return e[O]<e[K]?-1:1});for(var l=[],a=[],s,c,d=0;d<n-1;d++)s=e[d+1]-e[d],c=r[d+1]-r[d],l.push(s),a.push(c/s);for(var f=[a[0]],p=0;p<l.length-1;p++){var g=a[p],y=a[p+1];if(g*y<=0)f.push(0);else{s=l[p];var h=l[p+1],v=s+h;f.push(3*v/((v+h)/g+(v+s)/y))}}f.push(a[a.length-1]);for(var m=[],C=[],E,F=0;F<f.length-1;F++){E=a[F];var D=f[F],x=1/l[F],S=D+f[F+1]-E-E;m.push((E-D-S)*x),C.push(S*x*x)}this.xs=e,this.ys=r,this.c1s=f,this.c2s=m,this.c3s=C}return gb(t,[{key:"interpolate",value:function(r){var n=this.xs,i=this.ys,o=this.c1s,l=this.c2s,a=this.c3s,s=n.length-1;if(r===n[s])return i[s];for(var c=0,d=a.length-1,f;c<=d;){f=Math.floor(.5*(c+d));var p=n[f];if(p<r)c=f+1;else if(p>r)d=f-1;else return i[f]}s=Math.max(0,d);var g=r-n[s],y=g*g;return i[s]+o[s]*g+l[s]*y+a[s]*g*y}}]),t}(),vb=1;function Z1(t){var e=t.nodeType===vb?t:t.parentElement;if(!e)return null;var r=e.getBoundingClientRect(),n=r.top,i=r.left;return{x:i,y:n}}function An(t){return{x:t.clientX,y:t.clientY}}function bb(t){var e;return t.nodeName==="IMG"&&(fb()||!((e=document.documentElement)!==null&&e!==void 0&&e.contains(t)))}function mb(t,e,r,n){var i=t?e.width:r,o=t?e.height:n;return W1()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function yb(t,e,r,n,i){var o=bb(e),l=o?t:e,a=Z1(l),s={x:r.x-a.x,y:r.y-a.y},c=t.offsetWidth,d=t.offsetHeight,f=n.anchorX,p=n.anchorY,g=mb(o,e,c,d),y=g.dragPreviewWidth,h=g.dragPreviewHeight,v=function(){var S=new Js([0,.5,1],[s.y,s.y/d*h,s.y+h-d]),O=S.interpolate(p);return W1()&&o&&(O+=(window.devicePixelRatio-1)*h),O},m=function(){var S=new Js([0,.5,1],[s.x,s.x/c*y,s.x+y-c]);return S.interpolate(f)},C=i.offsetX,E=i.offsetY,F=C===0||C,D=E===0||E;return{x:F?C:m(),y:D?E:v()}}var G1="__NATIVE_FILE__",q1="__NATIVE_URL__",Y1="__NATIVE_TEXT__",X1="__NATIVE_HTML__";const Qs=Object.freeze(Object.defineProperty({__proto__:null,FILE:G1,HTML:X1,TEXT:Y1,URL:q1},Symbol.toStringTag,{value:"Module"}));function Io(t,e,r){var n=e.reduce(function(i,o){return i||t.getData(o)},"");return n??r}var rr;function Tn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var wl=(rr={},Tn(rr,G1,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),Tn(rr,X1,{exposeProperties:{html:function(e,r){return Io(e,r,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),Tn(rr,q1,{exposeProperties:{urls:function(e,r){return Io(e,r,"").split(`
|
|
97
|
+
`)},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),Tn(rr,Y1,{exposeProperties:{text:function(e,r){return Io(e,r,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),rr);function Cb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Eb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function wb(t,e,r){return e&&Eb(t.prototype,e),t}function e2(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Db=function(){function t(e){Cb(this,t),e2(this,"item",void 0),e2(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return wb(t,[{key:"initializeExposedProperties",value:function(){var r=this;Object.keys(this.config.exposeProperties).forEach(function(n){Object.defineProperty(r.item,n,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(n,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(r){var n=this;if(r){var i={};Object.keys(this.config.exposeProperties).forEach(function(o){i[o]={value:n.config.exposeProperties[o](r,n.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(r,n){return n===r.getSourceId()}},{key:"endDrag",value:function(){}}]),t}();function xb(t,e){var r=new Db(wl[t]);return r.loadDataTransfer(e),r}function Oo(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(wl).filter(function(r){var n=wl[r].matchesTypes;return n.some(function(i){return e.indexOf(i)>-1})})[0]||null}function Sb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function $b(t,e,r){return e&&Fb(t.prototype,e),t}function Mo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Pb=function(){function t(e,r){Sb(this,t),Mo(this,"ownerDocument",null),Mo(this,"globalContext",void 0),Mo(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=r}return $b(t,[{key:"window",get:function(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}},{key:"document",get:function(){var r;return(r=this.globalContext)!==null&&r!==void 0&&r.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var r;return((r=this.optionsArgs)===null||r===void 0?void 0:r.rootElement)||this.window}}]),t}();function t2(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function r2(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?t2(Object(r),!0).forEach(function(n){ee(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):t2(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ab(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _b(t,e,r){return e&&Tb(t.prototype,e),t}function ee(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var kb=function(){function t(e,r,n){var i=this;Ab(this,t),ee(this,"options",void 0),ee(this,"actions",void 0),ee(this,"monitor",void 0),ee(this,"registry",void 0),ee(this,"enterLeaveCounter",void 0),ee(this,"sourcePreviewNodes",new Map),ee(this,"sourcePreviewNodeOptions",new Map),ee(this,"sourceNodes",new Map),ee(this,"sourceNodeOptions",new Map),ee(this,"dragStartSourceIds",null),ee(this,"dropTargetIds",[]),ee(this,"dragEnterTargetIds",[]),ee(this,"currentNativeSource",null),ee(this,"currentNativeHandle",null),ee(this,"currentDragSourceNode",null),ee(this,"altKeyPressed",!1),ee(this,"mouseMoveTimeoutTimer",null),ee(this,"asyncEndDragFrameId",null),ee(this,"dragOverTargetIds",null),ee(this,"lastClientOffset",null),ee(this,"hoverRafId",null),ee(this,"getSourceClientOffset",function(o){var l=i.sourceNodes.get(o);return l&&Z1(l)||null}),ee(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),ee(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),ee(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ee(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),ee(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var l=i.dragStartSourceIds;i.dragStartSourceIds=null;var a=An(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(l||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:a});var s=o.dataTransfer,c=Oo(s);if(i.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){var d=i.monitor.getSourceId(),f=i.sourceNodes.get(d),p=i.sourcePreviewNodes.get(d)||f;if(p){var g=i.getCurrentSourcePreviewNodeOptions(),y=g.anchorX,h=g.anchorY,v=g.offsetX,m=g.offsetY,C={anchorX:y,anchorY:h},E={offsetX:v,offsetY:m},F=yb(f,p,a,C,E);s.setDragImage(p,F.x,F.y)}}try{s==null||s.setData("application/json",{})}catch{}i.setCurrentDragSourceNode(o.target);var D=i.getCurrentSourcePreviewNodeOptions(),x=D.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()}}}),ee(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ee(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var l=i.enterLeaveCounter.enter(o.target);if(!(!l||i.monitor.isDragging())){var a=o.dataTransfer,s=Oo(a);s&&i.beginDragNativeItem(s,a)}}),ee(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:An(o)});var a=l.some(function(s){return i.monitor.canDropOnTarget(s)});a&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),ee(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),ee(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=An(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"))}),ee(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var l=i.enterLeaveCounter.leave(o.target);l&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),ee(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 Oo(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),ee(this,"handleTopDrop",function(o){var l=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(l,{clientOffset:An(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),ee(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 Pb(r,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new db(this.isNodeInDocument)}return _b(t,[{key:"profile",value:function(){var r,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((r=this.dragStartSourceIds)===null||r===void 0?void 0:r.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.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 r=this.rootElement;if(r!==void 0){if(r.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");r.__isReactDndBackendSetUp=!0,this.addEventListeners(r)}}},{key:"teardown",value:function(){var r=this.rootElement;if(r!==void 0&&(r.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}},{key:"connectDragPreview",value:function(r,n,i){var o=this;return this.sourcePreviewNodeOptions.set(r,i),this.sourcePreviewNodes.set(r,n),function(){o.sourcePreviewNodes.delete(r),o.sourcePreviewNodeOptions.delete(r)}}},{key:"connectDragSource",value:function(r,n,i){var o=this;this.sourceNodes.set(r,n),this.sourceNodeOptions.set(r,i);var l=function(c){return o.handleDragStart(c,r)},a=function(c){return o.handleSelectStart(c)};return n.setAttribute("draggable","true"),n.addEventListener("dragstart",l),n.addEventListener("selectstart",a),function(){o.sourceNodes.delete(r),o.sourceNodeOptions.delete(r),n.removeEventListener("dragstart",l),n.removeEventListener("selectstart",a),n.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(r,n){var i=this,o=function(c){return i.handleDragEnter(c,r)},l=function(c){return i.handleDragOver(c,r)},a=function(c){return i.handleDrop(c,r)};return n.addEventListener("dragenter",o),n.addEventListener("dragover",l),n.addEventListener("drop",a),function(){n.removeEventListener("dragenter",o),n.removeEventListener("dragover",l),n.removeEventListener("drop",a)}}},{key:"addEventListeners",value:function(r){r.addEventListener&&(r.addEventListener("dragstart",this.handleTopDragStart),r.addEventListener("dragstart",this.handleTopDragStartCapture,!0),r.addEventListener("dragend",this.handleTopDragEndCapture,!0),r.addEventListener("dragenter",this.handleTopDragEnter),r.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.addEventListener("dragover",this.handleTopDragOver),r.addEventListener("dragover",this.handleTopDragOverCapture,!0),r.addEventListener("drop",this.handleTopDrop),r.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(r){r.removeEventListener&&(r.removeEventListener("dragstart",this.handleTopDragStart),r.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),r.removeEventListener("dragend",this.handleTopDragEndCapture,!0),r.removeEventListener("dragenter",this.handleTopDragEnter),r.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.removeEventListener("dragover",this.handleTopDragOver),r.removeEventListener("dragover",this.handleTopDragOverCapture,!0),r.removeEventListener("drop",this.handleTopDrop),r.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var r=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(r);return r2({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var r=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(r);return r2({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}},{key:"isDraggingNativeItem",value:function(){var r=this.monitor.getItemType();return Object.keys(Qs).some(function(n){return Qs[n]===r})}},{key:"beginDragNativeItem",value:function(r,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=xb(r,n),this.currentNativeHandle=this.registry.addSource(r,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(r){var n=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=r;var i=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){var o;return(o=n.rootElement)===null||o===void 0?void 0:o.addEventListener("mousemove",n.endDragIfSourceWasRemovedFromDOM,!0)},i)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var r;(r=this.window)===null||r===void 0||r.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(r,n){r.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}},{key:"handleDragEnter",value:function(r,n){this.dragEnterTargetIds.unshift(n)}},{key:"handleDragOver",value:function(r,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}},{key:"handleDrop",value:function(r,n){this.dropTargetIds.unshift(n)}}]),t}(),_n;function Ib(){return _n||(_n=new Image,_n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),_n}var Ob=function(e,r,n){return new kb(e,r,n)};function Mb(t){const e=ke(),r=e.selectedIds,[n,i,o]=R6(()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const l=e.isSelected(t.id)?Array.from(r):[t.id];return e.dispatch(wr.dragStart(t.id,l)),{id:t.id,dragIds:l}},end:()=>{e.hideCursor(),e.dispatch(wr.dragEnd())}}),[r,t]);return u.useEffect(()=>{o(Ib())},[o]),i}function Nb(t,e){const r=t.getBoundingClientRect(),n=e.x-Math.round(r.x),i=e.y-Math.round(r.y),o=r.height,l=i<o/2,a=!l,s=o/4,c=i>s&&i<o-s;return{x:n,inTopHalf:l,inBottomHalf:a,inMiddle:c,atTop:!c&&l,atBottom:!c&&a}}function Bb(t,e,r,n){return t?t.isInternal?n.atTop?[e,t]:n.inMiddle?[t,t]:[t,r]:n.inTopHalf?[e,t]:[t,r]:[e,null]}function kn(t,e){return{parentId:t||null,index:e}}function nr(t,e){return{type:"line",index:t,level:e}}function Rb(t){return{type:"highlight",id:t}}function No(t,e){var r;let n=t;for(;n.parent&&n.level>e;)n=n.parent;const i=((r=n.parent)===null||r===void 0?void 0:r.id)||null,o=w1(n)+1;return{parentId:i,index:o}}function J1(t){var e;const r=Nb(t.element,t.offset),n=t.indent,i=Math.round(Math.max(0,r.x-n)/n),{node:o,nextNode:l,prevNode:a}=t,[s,c]=Bb(o,a,l,r);if(o&&o.isInternal&&r.inMiddle)return{drop:kn(o.id,null),cursor:Rb(o.id)};if(!s)return{drop:kn((e=c==null?void 0:c.parent)===null||e===void 0?void 0:e.id,0),cursor:nr(0,0)};if(m1(s)){const d=Ln(i,(c==null?void 0:c.level)||0,s.level);return{drop:No(s,d),cursor:nr(s.rowIndex+1,d)}}if(y1(s)){const d=Ln(i,(c==null?void 0:c.level)||0,s.level);return{drop:No(s,d),cursor:nr(s.rowIndex+1,d)}}if(C1(s)){const d=Ln(i,0,s.level+1);return d>s.level?{drop:kn(s.id,0),cursor:nr(s.rowIndex+1,d)}:{drop:No(s,d),cursor:nr(s.rowIndex+1,d)}}return{drop:kn(s==null?void 0:s.id,0),cursor:nr(s.rowIndex+1,s.level+1)}}function Lb(t,e){const r=ke(),[n,i]=z1(()=>({accept:"NODE",canDrop:()=>r.canDrop(),hover:(o,l)=>{const a=l.getClientOffset();if(!t.current||!a)return;const{cursor:s,drop:c}=J1({element:t.current,offset:a,indent:r.indent,node:e,prevNode:e.prev,nextNode:e.next});c&&r.dispatch(wr.hovering(c.parentId,c.index)),l.canDrop()?s&&r.showCursor(s):r.hideCursor()},drop:(o,l)=>{if(!l.canDrop())return null;let{parentId:a,index:s,dragIds:c}=r.state.dnd;$1(r.props.onMove,{dragIds:c,parentId:a===an?null:a,index:s===null?0:s,dragNodes:r.dragNodes,parentNode:r.get(a)}),r.open(a)}}),[e,t.current,r.props]);return i}function Kb(t){const e=ke(),r=e.at(t);if(!r)throw new Error(`Could not find node for index: ${t}`);return u.useMemo(()=>{const n=r.clone();return e.visibleNodes[t]=n,n},[...Object.values(r.state),r])}const jb=u.memo(function({index:e,style:r}){b1(),ag();const n=ke(),i=Kb(e),o=u.useRef(null),l=Mb(i),a=Lb(o,i),s=u.useCallback(h=>{o.current=h,a(h)},[a]),c=n.indent*i.level,d=u.useMemo(()=>({paddingLeft:c}),[c]),f=u.useMemo(()=>{var h,v;return Object.assign(Object.assign({},r),{top:parseFloat(r.top)+((v=(h=n.props.padding)!==null&&h!==void 0?h:n.props.paddingTop)!==null&&v!==void 0?v:0)})},[r,n.props.padding,n.props.paddingTop]),p={role:"treeitem","aria-level":i.level+1,"aria-selected":i.isSelected,"aria-expanded":i.isOpen,style:f,tabIndex:-1,className:n.props.rowClassName};u.useEffect(()=>{var h;!i.isEditing&&i.isFocused&&((h=o.current)===null||h===void 0||h.focus({preventScroll:!0}))},[i.isEditing,i.isFocused,o.current]);const g=n.renderNode,y=n.renderRow;return b.jsx(y,{node:i,innerRef:s,attrs:p,children:b.jsx(g,{node:i,tree:n,style:d,dragHandle:l})})});let Bo="",n2=null;function Q1(){b1();const t=ke();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 r;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(),D1(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),x1(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):!((r=i.parent)===null||r===void 0)&&r.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(n2),Bo+=e.key,n2=setTimeout(()=>{Bo=""},600);const n=t.visibleNodes.find(i=>{const o=i.data.name;return typeof o=="string"?o.toLowerCase().startsWith(Bo):!1});n&&t.focus(n.id)},children:b.jsx(zg,{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 r;return((r=t.visibleNodes[e])===null||r===void 0?void 0:r.id)||e},outerElementType:Zg,innerElementType:Yg,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:jb})})}function i2(t){return t.isFiltered?Vb(t.root,t.isMatch.bind(t)):Hb(t.root)}function Hb(t){const e=[];function r(n){var i;n.level>=0&&e.push(n),n.isOpen&&((i=n.children)===null||i===void 0||i.forEach(r))}return r(t),e.forEach(ef),e}function Vb(t,e){const r={},n=[];function i(l){if(!l.isRoot&&e(l)){r[l.id]=!0;let s=l.parent;for(;s;)r[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&&r[l.id]&&n.push(l),l.isOpen&&((a=l.children)===null||a===void 0||a.forEach(o))}return i(t),o(t),n.forEach(ef),n}function ef(t,e){t.rowIndex=e}const o2=t=>t.reduce((e,r,n)=>(e[r.id]=n,e),{});var Ro=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(l){l(o)})}return new(r||(r=Promise))(function(o,l){function a(d){try{c(n.next(d))}catch(f){l(f)}}function s(d){try{c(n.throw(d))}catch(f){l(f)}}function c(d){d.done?o(d.value):i(d.value).then(a,s)}c((n=n.apply(t,e||[])).next())})};const{safeRun:me,identify:Je,identifyNull:Ke}=hg;class vr{constructor(e,r,n,i){this.store=e,this.props=r,this.list=n,this.listEl=i,this.visibleStartIndex=0,this.visibleStopIndex=0,this.root=ps(this),this.visibleNodes=i2(this),this.idToIndex=o2(this.visibleNodes)}update(e){this.props=e,this.root=ps(this),this.visibleNodes=i2(this),this.idToIndex=o2(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 r=(e=this.props.searchMatch)!==null&&e!==void 0?e:(n,i)=>JSON.stringify(Object.values(n.data)).toLocaleLowerCase().includes(i.toLocaleLowerCase());return n=>r(n,this.searchTerm)}accessChildren(e){var r;const n=this.props.childrenAccessor||"children";return(r=zr(e,n))!==null&&r!==void 0?r:null}accessId(e){const r=this.props.idAccessor||"id",n=zr(e,r);if(!n)throw new Error("Data must contain an 'id' property or props.idAccessor must return a string");return n}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,r){var n;if(e===null||r===null)return[];const i=(n=this.indexOf(e))!==null&&n!==void 0?n:0,o=this.indexOf(r);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 r=F1(e);return r?this.idToIndex[r]:null}get editingId(){return this.state.nodes.edit.id}createInternal(){return this.create({type:"internal"})}createLeaf(){return this.create({type:"leaf"})}create(){return Ro(this,arguments,void 0,function*(e={}){var r,n;const i=e.parentId===void 0?T1(this):e.parentId,o=(r=e.index)!==null&&r!==void 0?r:A1(this),l=(n=e.type)!==null&&n!==void 0?n:"leaf",a=yield me(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 Ro(this,void 0,void 0,function*(){if(!e)return;const n=(Array.isArray(e)?e:[e]).map(Je),i=n.map(o=>this.get(o)).filter(o=>!!o);yield me(this.props.onDelete,{nodes:i,ids:n})})}edit(e){const r=Je(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(r),this.dispatch(So(r)),new Promise(n=>{vr.editPromise=n})}submit(e,r){return Ro(this,void 0,void 0,function*(){if(!e)return;const n=Je(e);yield me(this.props.onRename,{id:n,name:r,node:this.get(n)}),this.dispatch(So(null)),this.resolveEdit({cancelled:!1,value:r}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(So(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const r=this.get(Ke(e));r&&me(this.props.onActivate,r)}resolveEdit(e){const r=vr.editPromise;r&&r(e),vr.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let e=[];for(let r of Array.from(this.selectedIds)){const n=this.get(r);n&&e.push(n)}return e}focus(e,r={}){e&&(this.props.selectionFollowsFocus?this.select(e):(this.dispatch(Jt(Je(e))),r.scroll!==!1&&this.scrollTo(e),this.focusedNode&&me(this.props.onFocus,this.focusedNode)))}pageUp(){var e,r;const n=this.visibleStartIndex,o=this.visibleStopIndex-n;let l=(r=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&r!==void 0?r:0;l>n?l=n:l=Math.max(n-o,0),this.focus(this.at(l))}pageDown(){var e,r;const n=this.visibleStartIndex,i=this.visibleStopIndex,o=i-n;let l=(r=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&r!==void 0?r:0;l<i?l=i:l=Math.min(l+o,this.visibleNodes.length-1),this.focus(this.at(l))}select(e,r={}){if(!e)return;const n=r.focus!==!1,i=Je(e);n&&this.dispatch(Jt(i)),this.dispatch(Le.only(i)),this.dispatch(Le.anchor(i)),this.dispatch(Le.mostRecent(i)),this.scrollTo(i,r.align),this.focusedNode&&n&&me(this.props.onFocus,this.focusedNode),me(this.props.onSelect,this.selectedNodes)}deselect(e){if(!e)return;const r=Je(e);this.dispatch(Le.remove(r)),me(this.props.onSelect,this.selectedNodes)}selectMulti(e){const r=this.get(Ke(e));r&&(this.dispatch(Jt(r.id)),this.dispatch(Le.add(r.id)),this.dispatch(Le.anchor(r.id)),this.dispatch(Le.mostRecent(r.id)),this.scrollTo(r),this.focusedNode&&me(this.props.onFocus,this.focusedNode),me(this.props.onSelect,this.selectedNodes))}selectContiguous(e){if(!e)return;const r=Je(e),{anchor:n,mostRecent:i}=this.state.nodes.selection;this.dispatch(Jt(r)),this.dispatch(Le.remove(this.nodesBetween(n,i))),this.dispatch(Le.add(this.nodesBetween(n,Ke(r)))),this.dispatch(Le.mostRecent(r)),this.scrollTo(r),this.focusedNode&&me(this.props.onFocus,this.focusedNode),me(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),me(this.props.onSelect,this.selectedNodes)}selectAll(){var e;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(Jt((e=this.lastNode)===null||e===void 0?void 0:e.id)),this.focusedNode&&me(this.props.onFocus,this.focusedNode),me(this.props.onSelect,this.selectedNodes)}setSelection(e){var r;const n=new Set((r=e.ids)===null||r===void 0?void 0:r.map(Je)),i=Ke(e.anchor),o=Ke(e.mostRecent);this.dispatch(Le.set({ids:n,anchor:i,mostRecent:o})),me(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 r=(e=this.get(this.state.dnd.parentId))!==null&&e!==void 0?e:this.root,n=this.dragNodes,i=this.props.disableDrop;for(const o of n)if(!o||!r||o.isInternal&&E1(r,o))return!1;return typeof i=="function"?!i({parentNode:r,dragNodes:this.dragNodes,index:this.state.dnd.index||0}):typeof i=="string"?!r.data[i]:typeof i=="boolean"?!i:!0}hideCursor(){this.dispatch(wr.cursor({type:"none"}))}showCursor(e){this.dispatch(wr.cursor(e))}open(e){const r=Ke(e);r&&(this.isOpen(r)||(this.dispatch(pl.open(r,this.isFiltered)),me(this.props.onToggle,r)))}close(e){const r=Ke(e);r&&this.isOpen(r)&&(this.dispatch(pl.close(r,this.isFiltered)),me(this.props.onToggle,r))}toggle(e){const r=Ke(e);if(r)return this.isOpen(r)?this.close(r):this.open(r)}openParents(e){const r=Ke(e);if(!r)return;const n=va(this.root,r);let i=n==null?void 0:n.parent;for(;i;)this.open(i.id),i=i.parent}openSiblings(e){const r=e.parent;if(!r)this.toggle(e.id);else if(r.children){const n=e.isOpen;for(let i of r.children)i.isInternal&&(n?this.close(i.id):this.open(i.id));this.scrollTo(this.focusedNode)}}openAll(){si(this.root,e=>{e.isInternal&&e.open()})}closeAll(){si(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,r="smart"){if(!e)return;const n=Je(e);return this.openParents(n),P1(()=>n in this.idToIndex).then(()=>{var i;const o=this.idToIndex[n];o!==void 0&&((i=this.list.current)===null||i===void 0||i.scrollToItem(o,r))}).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 r,n,i;if(!e)return!1;if(e===an)return!0;const o=(r=this.props.openByDefault)!==null&&r!==void 0?r:!0;return this.isFiltered?(n=this.state.nodes.open.filtered[e])!==null&&n!==void 0?n:!0:(i=this.state.nodes.open.unfiltered[e])!==null&&i!==void 0?i:o}isEditable(e){const r=this.props.disableEdit||(()=>!1);return!zr(e,r)}isDraggable(e){const r=this.props.disableDrag||(()=>!1);return!zr(e,r)}isDragging(e){const r=Ke(e);return r?this.state.nodes.drag.id===r:!1}isFocused(e){return this.hasFocus&&this.state.nodes.focus.id===e}isMatch(e){return this.matchFn(e)}willReceiveDrop(e){const r=Ke(e);if(!r)return!1;const{destinationParentId:n,destinationIndex:i}=this.state.nodes.drag;return r===n&&i===null}onFocus(){const e=this.focusedNode||this.firstNode;e&&this.dispatch(Jt(e.id))}onBlur(){this.dispatch(Dg())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||Q1}get renderRow(){return this.props.renderRow||mg}get renderNode(){return this.props.children||yg}get renderDragPreview(){return this.props.renderDragPreview||_1}get renderCursor(){return this.props.renderCursor||bg}}function we(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 zb=typeof Symbol=="function"&&Symbol.observable||"@@observable",l2=zb,Lo=()=>Math.random().toString(36).substring(7).split("").join("."),Ub={INIT:`@@redux/INIT${Lo()}`,REPLACE:`@@redux/REPLACE${Lo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Lo()}`},At=Ub;function tf(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 Wb(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(qb(t))return"date";if(Gb(t))return"error";const r=Zb(t);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"")}function Zb(t){return typeof t.constructor=="function"?t.constructor.name:null}function Gb(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function qb(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function at(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=Wb(t)),e}function rf(t,e,r){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?we(2):`Expected the root reducer to be a function. Instead, received: '${at(t)}'`);if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?we(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 r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?we(1):`Expected the enhancer to be a function. Instead, received: '${at(r)}'`);return r(rf)(t,e)}let n=t,i=e,o=new Map,l=o,a=0,s=!1;function c(){l===o&&(l=new Map,o.forEach((v,m)=>{l.set(m,v)}))}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?we(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(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?we(4):`Expected the listener to be a function. Instead, received: '${at(v)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?we(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,v),function(){if(m){if(s)throw new Error(process.env.NODE_ENV==="production"?we(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 p(v){if(!tf(v))throw new Error(process.env.NODE_ENV==="production"?we(7):`Actions must be plain objects. Instead, the actual type was: '${at(v)}'. 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 v.type>"u")throw new Error(process.env.NODE_ENV==="production"?we(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof v.type!="string")throw new Error(process.env.NODE_ENV==="production"?we(17):`Action "type" property must be a string. Instead, the actual type was: '${at(v.type)}'. Value was: '${v.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?we(9):"Reducers may not dispatch actions.");try{s=!0,i=n(i,v)}finally{s=!1}return(o=l).forEach(C=>{C()}),v}function g(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?we(10):`Expected the nextReducer to be a function. Instead, received: '${at(v)}`);n=v,p({type:At.REPLACE})}function y(){const v=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(process.env.NODE_ENV==="production"?we(11):`Expected the observer to be an object. Instead, received: '${at(m)}'`);function C(){const F=m;F.next&&F.next(d())}return C(),{unsubscribe:v(C)}},[l2](){return this}}}return p({type:At.INIT}),{dispatch:p,subscribe:f,getState:d,replaceReducer:g,[l2]:y}}function a2(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function Yb(t,e,r,n){const i=Object.keys(e),o=r&&r.type===At.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(!tf(t))return`The ${o} has unexpected type of "${at(t)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const l=Object.keys(t).filter(a=>!e.hasOwnProperty(a)&&!n[a]);if(l.forEach(a=>{n[a]=!0}),!(r&&r.type===At.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 Xb(t){Object.keys(t).forEach(e=>{const r=t[e];if(typeof r(void 0,{type:At.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?we(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 r(void 0,{type:At.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?we(13):`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${At.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 s2(t){const e=Object.keys(t),r={};for(let l=0;l<e.length;l++){const a=e[l];process.env.NODE_ENV!=="production"&&typeof t[a]>"u"&&a2(`No reducer provided for key "${a}"`),typeof t[a]=="function"&&(r[a]=t[a])}const n=Object.keys(r);let i;process.env.NODE_ENV!=="production"&&(i={});let o;try{Xb(r)}catch(l){o=l}return function(a={},s){if(o)throw o;if(process.env.NODE_ENV!=="production"){const f=Yb(a,r,s,i);f&&a2(f)}let c=!1;const d={};for(let f=0;f<n.length;f++){const p=n[f],g=r[p],y=a[p],h=g(y,s);if(typeof h>"u"){const v=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?we(14):`When called with an action of type ${v?`"${String(v)}"`:"(unknown type)"}, the slice reducer for key "${p}" 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[p]=h,c=c||h!==y}return c=c||n.length!==Object.keys(a).length,c?d:a}}function Jb(t=Er().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 Qb=s2({nodes:s2({focus:xg,edit:wg,open:Sg,selection:Fg,drag:Jb}),dnd:$g}),em=Er();function tm({treeProps:t,imperativeHandle:e,children:r}){const n=u.useRef(null),i=u.useRef(null),o=u.useRef(rf(Qb,Er(t))),l=Hl.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>em),a=u.useMemo(()=>new vr(o.current,t,n,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(pl.clear(!0))},[a.props.searchTerm]),b.jsx(h1.Provider,{value:a,children:b.jsx(v1.Provider,{value:s.current,children:b.jsx(p1.Provider,{value:l.nodes,children:b.jsx(g1.Provider,{value:l.dnd,children:b.jsx(Iv,Object.assign({backend:Ob,options:{rootElement:a.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:r}))})})})})}function rm(){const t=ke(),[,e]=z1(()=>({accept:"NODE",canDrop:(r,n)=>n.isOver({shallow:!0})?t.canDrop():!1,hover:(r,n)=>{if(!n.isOver({shallow:!0}))return;const i=n.getClientOffset();if(!t.listEl.current||!i)return;const{cursor:o,drop:l}=J1({element:t.listEl.current,offset:i,indent:t.indent,node:null,prevNode:t.visibleNodes[t.visibleNodes.length-1],nextNode:null});l&&t.dispatch(wr.hovering(l.parentId,l.index)),n.canDrop()?o&&t.showCursor(o):t.hideCursor()}}),[t]);e(t.listEl)}function nm(t){return rm(),t.children}function im(){const e=ke().props.renderContainer||Q1;return b.jsx(b.Fragment,{children:b.jsx(e,{})})}function om(){const t=ke(),{offset:e,mouse:r,item:n,isDragging:i}=ob(l=>({offset:l.getSourceClientOffset(),mouse:l.getClientOffset(),item:l.getItem(),isDragging:l.isDragging()})),o=t.props.renderDragPreview||_1;return b.jsx(o,{offset:e,mouse:r,id:(n==null?void 0:n.id)||null,dragIds:(n==null?void 0:n.dragIds)||[],isDragging:i})}class lm{constructor(e){this.root=am(e)}get data(){var e,r;return(r=(e=this.root.children)===null||e===void 0?void 0:e.map(n=>n.data))!==null&&r!==void 0?r:[]}create(e){const r=e.parentId?this.find(e.parentId):this.root;if(!r)return null;r.addChild(e.data,e.index)}move(e){const r=this.find(e.id),n=e.parentId?this.find(e.parentId):this.root;!r||!n||(n.addChild(r.data,e.index),r.drop())}update(e){const r=this.find(e.id);r&&r.update(e.changes)}drop(e){const r=this.find(e.id);r&&r.drop()}find(e,r=this.root){if(!r)return null;if(r.id===e)return r;if(r.children){for(let n of r.children){const i=this.find(e,n);if(i)return i}return null}return null}}function am(t){const e=new nf({id:"ROOT"},null);return e.children=t.map(r=>Da(r,e)),e}function Da(t,e){const r=new nf(t,e);return t.children&&(r.children=t.children.map(n=>Da(n,r))),r}class nf{constructor(e,r){this.data=e,this.parent=r,this.id=e.id}hasParent(){return!!this.parent}get childIndex(){return this.hasParent()?this.parent.children.indexOf(this):-1}addChild(e,r){var n,i;const o=Da(e,this);this.children=(n=this.children)!==null&&n!==void 0?n:[],this.children.splice(r,0,o),this.data.children=(i=this.data.children)!==null&&i!==void 0?i:[],this.data.children.splice(r,0,e)}removeChild(e){var r,n;(r=this.children)===null||r===void 0||r.splice(e,1),(n=this.data.children)===null||n===void 0||n.splice(e,1)}update(e){if(this.hasParent()){const r=this.childIndex;this.parent.addChild(Object.assign(Object.assign({},this.data),e),r),this.drop()}}drop(){this.hasParent()&&this.parent.removeChild(this.childIndex)}}let sm=0;function cm(t){const[e,r]=u.useState(t),n=u.useMemo(()=>new lm(e),[e]);return[e,{onMove:c=>{for(const d of c.dragIds)n.move({id:d,parentId:c.parentId,index:c.index});r(n.data)},onRename:({name:c,id:d})=>{n.update({id:d,changes:{name:c}}),r(n.data)},onCreate:({parentId:c,index:d,type:f})=>{const p={id:`simple-tree-id-${sm++}`,name:""};return f==="internal"&&(p.children=[]),n.create({parentId:c,index:d,data:p}),r(n.data),p},onDelete:c=>{c.ids.forEach(d=>n.drop({id:d})),r(n.data)}}]}function um(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,r]=cm(t.initialData);return Object.assign(Object.assign(Object.assign({},t),r),{data:e})}else return t}function dm(t,e){const r=um(t);return b.jsxs(tm,{treeProps:r,imperativeHandle:e,children:[b.jsx(nm,{children:b.jsx(im,{})}),b.jsx(om,{})]})}const fm=u.forwardRef(dm),of=({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 hm(t,e){var r=u.useRef(null),n=u.useRef(null);n.current=e;var i=u.useRef(null);u.useEffect(function(){o()});var o=u.useCallback(function(){var l=i.current,a=n.current,s=l||(a?a instanceof Element?a:a.current:null);r.current&&r.current.element===s&&r.current.subscriber===t||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:t,cleanup:s?t(s):void 0})},[t]);return u.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),u.useCallback(function(l){i.current=l,o()},[o])}function c2(t,e,r){return t[e]?t[e][0]?t[e][0][r]:t[e][r]:e==="contentBoxSize"?t.contentRect[r==="inlineSize"?"width":"height"]:void 0}function pm(t){t===void 0&&(t={});var e=t.onResize,r=u.useRef(void 0);r.current=e;var n=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=hm(u.useCallback(function(f){return(!i.current||i.current.box!==t.box||i.current.round!==n)&&(i.current={box:t.box,round:n,instance:new ResizeObserver(function(p){var g=p[0],y=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",h=c2(g,y,"inlineSize"),v=c2(g,y,"blockSize"),m=h?n(h):void 0,C=v?n(v):void 0;if(c.current.width!==m||c.current.height!==C){var E={width:m,height:C};c.current.width=m,c.current.height=C,r.current?r.current(E):s.current||a(E)}})}),i.current.instance.observe(f,{box:t.box}),function(){i.current&&i.current.instance.unobserve(f)}},[t.box,n]),t.ref);return u.useMemo(function(){return{ref:d,width:l.width,height:l.height}},[d,l.width,l.height])}var se=(t=>(t.NODE="node",t.SEPARATOR="separator",t.TITLE="title",t.SIMPLE_NODE="simpleNode",t.VIEW_MORE="viewMore",t))(se||{}),Dt=(t=>(t.FIRST_CHILD="first-child",t.LAST_CHILD="last-child",t.LEFT="left",t.RIGHT="right",t))(Dt||{});const di=t=>t?t.nodeType===se.SEPARATOR:!1,fi=t=>t?t.nodeType===se.TITLE:!1,lf=t=>t?t.nodeType===se.VIEW_MORE:!1,Ur=t=>!di(t)&&!fi(t)&&!lf(t),af=(t,e,r)=>{const{t:n}=X.useCunningham(),{remove:i,update:o,insert:l,insertBefore:a,insertAfter:s,append:c,prepend:d,getItem:f,move:p,items:g}=n7({initialItems:JSON.parse(JSON.stringify(t)),getKey:N=>N.id,getChildren:N=>N.children||[]}),[y,h]=u.useState(),v=(N=[])=>{const $=g.map(B=>B.key);i(...$);const A=JSON.parse(JSON.stringify(N));A.length>0&&l(null,0,...A),h(void 0)},m=N=>{const $=f(N);$&&h($.value)},C=(N,$,A)=>{var B,L,j,V;if(N){const W=f(N);if(W){const q=(L=W.children)==null?void 0:L[((B=W.children)==null?void 0:B.length)-1];let Y=A??((j=W.children)==null?void 0:j.length)??0;A===((V=W.children)==null?void 0:V.length)&&q&&q.value.nodeType===se.VIEW_MORE&&(Y=Y-1),l(N,Y,$)}}else l(null,A??g.length,$)},E=N=>{var $;return($=f(N))==null?void 0:$.value},F=(N,$)=>{var W,q;const A=f(N);if(!A){console.error("No item found");return}let B=((W=A.children)==null?void 0:W.map(Y=>Y.value))??null;const L=$.childrenCount??A.value.childrenCount??0;if((B==null?void 0:B.length)===0&&L>0&&(B=null),$.children){const Y=[...B??[],...$.children],ae=new Map;for(const G of Y)ae.set(G.id,G);B=Array.from(ae.values())}B&&(B=B.sort((Y,ae)=>Y.nodeType===se.VIEW_MORE&&ae.nodeType!==se.VIEW_MORE?1:Y.nodeType!==se.VIEW_MORE&&ae.nodeType===se.VIEW_MORE?-1:0));const j=((q=$.pagination)==null?void 0:q.hasMore)??!1;B&&(B=B.filter(Y=>Y.nodeType!==se.VIEW_MORE)),j&&B&&B.push({id:`view-more-${N}`,nodeType:se.VIEW_MORE,label:n("components.treeView.viewMore")});const V={...A.value,...$,children:B,childrenCount:(B==null?void 0:B.length)??L};o(N,V)},D=N=>{i(N)},x=N=>{i(...N)},S=async N=>{if(!e){console.error("No refresh callback provided");return}try{const $=await e(N);F(N,$)}catch($){console.error("error while refreshing node:",$)}},O=(N,$)=>{l(null,$??g.length,N)},K=(N,$)=>{l(null,$??g.length,...N)},H=(N,$)=>{const A=f(N);if(!A){console.error("No item found");return}const B={...A.value,children:$,childrenCount:$.length,hasLoadedChildren:$.length>0};o(N,B)},w=N=>{const $=[],A=f(N);if(!A)return[];$.push(A.value);const B=L=>{const j=M(L);if(!j)return;const V=f(j);V&&($.push(V.value),B(j))};return B(N),$.reverse()},M=N=>{var $;return(($=f(N))==null?void 0:$.parentKey)??null},Z=N=>{const $=M(N);if(!$)return null;const A=f($);return A?A.value:null},_=(N,$)=>{a(N,$)},U=(N,$)=>{s(N,$)},P=(N,$)=>{c(N,$)},k=(N,$)=>{d(N,$)},z=(N,$,A)=>{p(N,$,A)},R=N=>{z(N.sourceId,N.newParentId,N.index)},I=async N=>{var Y;if(!r)return console.error("No load paginated children callback provided"),[];const $=f(N);if(!$){console.error("No parent found");return}const B=(((Y=$==null?void 0:$.value.pagination)==null?void 0:Y.currentPage)??0)+1,L=await r(N,B);if(!L){console.error("No result found");return}const j=L.children,V=L.pagination,W=B,q=(V==null?void 0:V.hasMore)??!1;F(N,{children:j,hasLoadedChildren:!0,pagination:{currentPage:W,hasMore:q}})};return u.useEffect(()=>{const N=$=>{$.forEach(A=>{var B;if(A.children&&A.children.length>0){const L=A.value.hasLoadedChildren||((B=A.children)==null?void 0:B.length)>0||A.value.children&&A.value.children.length>0;A.value.children=A.children.map(V=>V.value);const j=L?A.children.length:A.value.childrenCount??0;A.value.childrenCount=j,L&&!A.value.hasLoadedChildren&&(A.value.hasLoadedChildren=!0),N(A.children)}else{const j=A.value.hasLoadedChildren||A.value.children&&A.value.children.length>0?0:A.value.childrenCount;A.value.children=[],A.value.childrenCount=j}})};N(g)},[g]),{nodes:g,addChild:C,updateNode:F,deleteNode:D,deleteNodes:x,addRootNode:O,addRootNodes:K,selectedNode:y,setSelectedNode:h,refreshNode:S,setChildren:H,insertBeforeNode:_,insertAfterNode:U,handleMove:R,prependToNode:k,moveNode:z,appendToNode:P,move:p,resetTree:v,handleLoadChildren:I,selectNodeById:m,getParent:Z,getNode:E,getParentId:M,getAncestors:w}},xa=u.createContext(null),gm=({children:t,onRefresh:e,initialNodeId:r,onLoadChildren:n,initialTreeData:i})=>{const o=u.useRef(null),[l,a]=u.useState(null),[s,c]=u.useState(r??null),d=af(i??[],e,n);return b.jsx(xa.Provider,{value:{treeApiRef:o,treeData:d,root:l,initialTargetId:s,setInitialTargetId:c,setRoot:a},children:t})},Sa=()=>{const t=u.useContext(xa);if(!t)throw new Error("TreeContext not found");return t},vm=({initialOpenState:t,dndRootElement:e,selectedNodeId:r,rootNodeId:n,renderNode:i,canDrop:o,canDrag:l,afterMove:a,beforeMove:s,paddingTop:c=10,paddingBottom:d=10,rowProps:f})=>{const[p,g]=u.useState(400),{ref:y,width:h}=pm(),v=Sa(),m=(v==null?void 0:v.treeData.nodes)??[];u.useEffect(()=>{const D=document.querySelector(".c__tree-view"),x=D==null?void 0:D.firstElementChild;let S=null;return D&&x&&(S=new ResizeObserver(()=>{if(x&&x instanceof HTMLElement){const O=x.style.height;g(parseInt(O,10)+20)}}),S.observe(x)),()=>S==null?void 0:S.disconnect()},[]);const C=D=>{var $,A,B,L;const x=JSON.parse(JSON.stringify(m)),S=D.dragNodes[0],O=D.parentId?(($=D.parentNode)==null?void 0:$.data.children)??[]:x,K=D.dragNodes[0].data.value.id,H=D.dragNodes[0].data,w=(A=D.parentNode)==null?void 0:A.data;if((w==null?void 0:w.value.nodeType)===se.TITLE||(w==null?void 0:w.value.nodeType)===se.SEPARATOR||(w==null?void 0:w.value.nodeType)===se.VIEW_MORE)return null;const M=H.parentKey??n,Z=D.parentId??n;let _=D.index+0,U=null,P=Z;const k=((L=(B=S.parent)==null?void 0:B.children)==null?void 0:L.findIndex(j=>j.data.value.id===K))??0;if(M===Z){if(k===_)return null;_=_<k?_:_-1}const z=D.index-1,R=O[z],I=D.index,N=O[I];return D.index===0?(P=D.parentId??n,U=Dt.FIRST_CHILD):!w&&D.index===1&&!Ur(R.value)?(P=n,_=1,U=Dt.FIRST_CHILD):D.index===O.length?(P=P??n,U=Dt.LAST_CHILD):R&&Ur(R.value)?(P=R.value.id,U=Dt.RIGHT):N&&Ur(N.value)&&(U=Dt.LEFT,P=N.value.id),U&&P?{targetModeId:P,mode:U,oldParentId:M,index:_,newParentId:D.parentId,sourceId:K}:null},E=D=>{const x=C(D);x&&(s?s(x,()=>{v==null||v.treeData.handleMove(x),a==null||a(x)}):(v==null||v.treeData.handleMove(x),a==null||a(x)))},F=u.useCallback(D=>l?!l(D):!1,[l]);if(v)return b.jsx("div",{ref:y,style:{height:p},className:"c__tree-view--container",children:b.jsx(fm,{dndRootElement:e,data:m,ref:v.treeApiRef,openByDefault:!1,selectionFollowsFocus:!1,disableMultiSelection:!0,disableEdit:!0,className:"c__tree-view",idAccessor:"key",onMove:E,height:p,width:h,paddingTop:c,paddingBottom:d,rowHeight:34,disableDrag:F,disableDrop:({parentNode:D,dragNodes:x,index:S})=>{var M,Z,_;if(o&&!o({parentNode:D,dragNodes:x,index:S}))return D.id!=="__REACT_ARBORIST_INTERNAL_ROOT__"&&(D.data.value.canDrop=!1),!0;const O=x[0];if(O&&O.isDragging&&O.willReceiveDrop||((M=D.data.value)==null?void 0:M.nodeType)===se.TITLE||((Z=D.data.value)==null?void 0:Z.nodeType)===se.SEPARATOR||((_=D.data.value)==null?void 0:_.nodeType)===se.VIEW_MORE)return!0;if(D.id==="__REACT_ARBORIST_INTERNAL_ROOT__"){const U=m[S-1],P=m[S],k=m[S+1],z=di(U==null?void 0:U.value),R=di(P==null?void 0:P.value),I=fi(U==null?void 0:U.value),N=fi(P==null?void 0:P.value),$=Ur(k==null?void 0:k.value);return!!(S===0&&(R||N)||z&&N&&$||I&&R&&$)}const K=D==null?void 0:D.isOpen,H=(D==null?void 0:D.data.value.childrenCount)&&D.data.value.childrenCount>0||(D==null?void 0:D.data.children)&&D.data.children.length>0;if(!H)return D.data.value.canDrop=!0,!1;let w=D.data.value.childrenCount&&D.data.value.childrenCount>0&&(D==null?void 0:D.data.children)&&D.data.children.length>0;return w=w??!0,!K&&!w&&H?(D.data.value.canDrop=!0,!0):(D.data.value.canDrop=!0,!1)},initialOpenState:t,overscanCount:20,selection:r,renderCursor:of,renderRow:D=>b.jsx(bm,{...D,customRowProps:f}),rowClassName:"c__tree-view--row",children:i})})},bm=({children:t,customRowProps:e,...r})=>{const n=r.node.data.value.nodeType===se.TITLE,i=r.node.data.value.nodeType===se.SEPARATOR,o=r.node.data.value.nodeType===se.VIEW_MORE,{onKeyDown:l,onClick:a,...s}=e??{},{style:c}=r.attrs,d={...c},f=p=>{l==null||l(p);const g=p.target;if(g){const y=g.closest(".actions"),v=g.closest('button, a[href], input, textarea, select, [role="menuitem"], [role="button"]');if(y||v)return}if((p.key==="Enter"||p.key===" ")&&p.currentTarget.click(),p.key==="F2"){p.preventDefault();const y=p.currentTarget.querySelector("button");y&&y.focus()}};return n||i||o?u.createElement("div",{...r.attrs,key:r.node.id,style:d,ref:r.innerRef,onFocus:p=>p.stopPropagation(),onClick:p=>{a==null||a(p),r.node.handleClick(p)},onKeyDown:l,...s},t):u.createElement("div",{...r.attrs,style:d,key:r.node.id,ref:r.innerRef,onFocus:p=>p.stopPropagation(),onClick:p=>{a==null||a(p),p.preventDefault(),p.stopPropagation(),r.node.select()},onKeyDown:f,...s},b.jsx("div",{className:"c__tree-view--row-content",children:t}))},mm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",sf=mm?u.useLayoutEffect:u.useEffect;function cf(t){const e=u.useRef(t);return sf(()=>{e.current=t}),u.useCallback(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return e.current==null?void 0:e.current(...n)},[])}function u2(t,e){e===void 0&&(e=[t]);const r=u.useRef(t);return sf(()=>{r.current!==t&&(r.current=t)},e),r}function ym(t){const e=cf(t),r=u.useRef(null),n=u.useCallback(i=>{i!==r.current&&(e==null||e(i,r.current)),r.current=i},[]);return[r,n]}let Ko={};function Cm(t,e){return u.useMemo(()=>{const r=Ko[t]==null?0:Ko[t]+1;return Ko[t]=r,t+"-"+r},[t,e])}var Zr;(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"})(Zr||(Zr={}));function d2(){}const Em=Object.freeze({x:0,y:0});var cr;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(cr||(cr={}));var f2;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(f2||(f2={}));var st;(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"})(st||(st={}));st.Space,st.Enter,st.Esc,st.Space,st.Enter,st.Tab;var h2;(function(t){t[t.RightClick=2]="RightClick"})(h2||(h2={}));var p2;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(p2||(p2={}));var g2;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(g2||(g2={}));cr.Backward+"",cr.Forward+"",cr.Backward+"",cr.Forward+"";var Dl;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(Dl||(Dl={}));var xl;(function(t){t.Optimized="optimized"})(xl||(xl={}));function wm(t){let{callback:e,disabled:r}=t;const n=cf(e),i=u.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(n)},[r]);return u.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}Dl.WhileDragging,xl.Optimized;const Dm={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:d2,draggableNodes:new Map,over:null,measureDroppableContainers:d2},xm=u.createContext(Dm);({...Em});var v2;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(v2||(v2={}));const Sm="Droppable",Fm={timeout:25};function $m(t){let{data:e,disabled:r=!1,id:n,resizeObserverConfig:i}=t;const o=Cm(Sm),{active:l,dispatch:a,over:s,measureDroppableContainers:c}=u.useContext(xm),d=u.useRef({disabled:r}),f=u.useRef(!1),p=u.useRef(null),g=u.useRef(null),{disabled:y,updateMeasurementsFor:h,timeout:v}={...Fm,...i},m=u2(h??n),C=u.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{c(Array.isArray(m.current)?m.current:[m.current]),g.current=null},v)},[v]),E=wm({callback:C,disabled:y||!l}),F=u.useCallback((O,K)=>{E&&(K&&(E.unobserve(K),f.current=!1),O&&E.observe(O))},[E]),[D,x]=ym(F),S=u2(e);return u.useEffect(()=>{!E||!D.current||(E.disconnect(),f.current=!1,E.observe(D.current))},[D,E]),u.useEffect(()=>(a({type:Zr.RegisterDroppable,element:{id:n,key:o,disabled:r,node:D,rect:p,data:S}}),()=>a({type:Zr.UnregisterDroppable,key:o,id:n})),[n]),u.useEffect(()=>{r!==d.current.disabled&&(a({type:Zr.SetDroppableDisabled,id:n,key:o,disabled:r}),d.current.disabled=r)},[n,o,r,a]),{active:l,rect:p,isOver:(s==null?void 0:s.id)===n,node:D,over:s,setNodeRef:x}}const Pm=t=>{const{isOver:e,setNodeRef:r}=$m({id:t.id,data:t.data});return u.useEffect(()=>{var n;(n=t.onOver)==null||n.call(t,e,t.data)},[e,t.data,t.onOver]),b.jsx("div",{className:"c__dnd--droppable",ref:r,children:t.children})},Am=({children:t,itemProps:e,testId:r,onClick:n,onKeyDown:i,node:o,dragHandle:l,style:a,forceLoading:s})=>{var O,K;const{t:c}=X.useCunningham(),d=Sa(),f=u.useRef(null),[p,g]=u.useState(!1),[y,h]=u.useState(!1),[v,m]=u.useState(!1),C=s??p,E=o.willReceiveDrop||v,F=o.data.value.childrenCount!==void 0&&o.data.value.childrenCount>0||(((O=o.data.children)==null?void 0:O.length)??0)>0,D=((K=o.children)==null?void 0:K.length)??!1,x=o.isLeaf||!F,S=u.useCallback(H=>{H.stopPropagation(),o.data.value.nodeType===se.VIEW_MORE&&(h(!0),d==null||d.treeData.handleLoadChildren(o.data.parentKey).then(()=>h(!1)).catch(()=>h(!1)))},[o.data.value.nodeType,o.data.parentKey,d==null?void 0:d.treeData]);return u.useEffect(()=>{x||D||o.data.value.hasLoadedChildren||o.isOpen&&(g(!0),d==null||d.treeData.handleLoadChildren(o.data.value.id).then(()=>g(!1)))},[o.isOpen,x,D,o.data.value.hasLoadedChildren,o.data.value.id,d==null?void 0:d.treeData]),u.useEffect(()=>(E&&!o.isOpen&&!o.isDragging&&(f.current=setTimeout(()=>{o.open()},500)),()=>{f.current&&clearTimeout(f.current)}),[E,o.isOpen,o.isDragging,o]),o.data.value.nodeType===se.SEPARATOR?b.jsx("div",{className:"c__tree-view--node__separator","data-testid":r}):o.data.value.nodeType===se.TITLE?b.jsx("div",{className:"c__tree-view--node__title","data-testid":r,children:o.data.value.headerTitle}):o.data.value.nodeType===se.VIEW_MORE?b.jsx("div",{className:"c__tree-view--row-content","data-testid":r,children:b.jsx("div",{className:"c__tree-view--node",style:a,children:b.jsxs("div",{role:"button",className:"c__tree-view--node__view-more-button",style:{paddingLeft:0,marginLeft:20},onClick:S,children:[y?b.jsx("div",{className:"c__tree-view--node__loading",children:b.jsx(li,{})}):b.jsx("span",{className:"material-icons c__tree-view--node__view-more-button__icon",children:"arrow_downward"}),b.jsxs("span",{className:"c__tree-view--node__view-more-text",children:[o.data.value.nodeType===se.VIEW_MORE,c("components.treeView.viewMore")]})]})})}):b.jsx(Pm,{id:o.id,data:{data:o.data,nodeApi:o},onOver:m,children:b.jsxs("div",{onClick:H=>{if(!H.target.closest(".c__tree-view--node")){H.stopPropagation();return}n==null||n()},onKeyDown:H=>{i==null||i(H),H.target.closest(".c__tree-view--node")||H.stopPropagation()},ref:l,style:a,className:ye("c__tree-view--node",{...o.state,simpleNode:o.data.value.nodeType===se.SIMPLE_NODE,canDrop:o.data.value.canDrop??!0,externalDrop:v}),"data-testid":r,...e,children:[x&&b.jsx("div",{className:"c__tree-view--node__leaf"}),!x&&b.jsxs(b.Fragment,{children:[C&&b.jsx("div",{className:"c__tree-view--node__loading",children:b.jsx(li,{})}),!C&&b.jsx("span",{onClick:H=>{H.stopPropagation(),o.toggle()},className:"c__tree-view--node__arrow material-icons",children:o.isOpen?"keyboard_arrow_down":"keyboard_arrow_right"})]}),t]})})},Tm=({children:t,uppercased:e=!1,type:r="accent",className:n,...i})=>b.jsx("div",{className:ye(n,"c__badge",{"c__badge--uppercased":e,[`c__badge--${r}`]:r}),...i,children:t});function _m(t){u.useEffect(()=>{if(!t)return;let e=!1;const r=()=>Array.from(t.querySelectorAll("button")).filter(l=>!l.disabled&&l.getAttribute("aria-disabled")!=="true"),n=l=>{const a=l.key==="ArrowLeft"||l.key==="ArrowRight",s=l.key===" ";if(!(l.target instanceof HTMLElement))return;if(s){const h=l.target.closest("button");h instanceof HTMLButtonElement&&t.contains(h)&&h.click();return}if(!a)return;const d=l.target.closest("button");if(!(d instanceof HTMLButtonElement&&t.contains(d)))return;const p=r(),g=p.indexOf(d);if(g<0)return;l.preventDefault(),l.stopPropagation();const y=l.key==="ArrowRight"?(g+1)%p.length:(g-1+p.length)%p.length;p[y].focus(),e=!0},i=l=>{e&&((l.key===" "||l.key==="Enter")&&(l.preventDefault(),l.stopPropagation()),e=!1)},o={capture:!0};return t.addEventListener("keydown",n,o),t.addEventListener("keyup",i,o),()=>{t.removeEventListener("keydown",n,o),t.removeEventListener("keyup",i,o)}},[t])}const Ui=({roles:t,onSelect:e,canUpdate:r=!0,selectedRole:n,isOpen:i,onOpenChange:o,roleTopMessage:l})=>{const a=t.find(s=>s.value===n);return r?b.jsx(kt,{isOpen:i,shouldCloseOnInteractOutside:s=>!s.closest(".c__access-role-dropdown"),onOpenChange:o,options:t,selectedValues:[n],onSelectValue:e,topMessage:l,children:b.jsxs("div",{role:"button",className:"c__access-role-dropdown","data-testid":"access-role-dropdown-button",onClick:()=>{o==null||o(!i)},children:[b.jsx("span",{className:"c__access-role-dropdown__role-label",children:a==null?void 0:a.label}),b.jsx("span",{className:"material-icons c__access-role-dropdown__icon",children:i?"arrow_drop_up":"arrow_drop_down"})]})}):b.jsx("span",{className:"c__access-role-dropdown__role-label-can-not-update",children:a==null?void 0:a.label})},uf=({users:t,onRemoveUser:e,rightActions:r,onShare:n,shareButtonLabel:i,roles:o,selectedRole:l,onSelectRole:a})=>{const{t:s}=X.useCunningham(),[c,d]=u.useState(!1);return b.jsxs("div",{className:"c__add-share-user-list","data-testid":"selected-users-list",children:[b.jsx("div",{className:"c__add-share-user-list__items",children:t.map(f=>b.jsx(df,{user:f,onRemoveUser:e},f.id))}),b.jsxs("div",{className:"c__add-share-user-list__right-actions",children:[r,b.jsx(Ui,{roles:o,selectedRole:l,onSelect:a,isOpen:c,onOpenChange:d}),b.jsx(X.Button,{onClick:n,children:i??s("components.share.shareButton")})]})]})},df=({user:t,onRemoveUser:e})=>b.jsxs("div",{className:"c__add-share-user-item","data-testid":"selected-user-item",children:[b.jsx("span",{children:t.full_name||t.email}),b.jsx(X.Button,{variant:"tertiary",color:"neutral",size:"nano",onClick:()=>e==null?void 0:e(t),icon:b.jsx("span",{className:"material-icons",children:"close"})})]}),Sl=["gray","brand","red","orange","brown","green","blue-1","blue-2","pink","yellow","purple"],ff=t=>t.split(/[\s-_]+/).slice(0,2).map(e=>e[0]).join("").toUpperCase(),Fa=t=>{let e=0;for(let r=0;r<t.length;r++)e+=t.charCodeAt(r);return Sl[e%Sl.length]},Wi=({fullName:t,size:e="medium",forceColor:r,backgroundColor:n})=>{const i=ff(t),o=n||Fa(t);return b.jsx("div",{style:{backgroundColor:r||void 0},className:ye(`c__avatar ${e}`,{[o]:!r&&o}),children:b.jsx("div",{className:"c__avatar__initials",children:i})})},Zi=({fullName:t,email:e,showEmail:r=!0})=>{const n=t&&t!==""?t:e??"";return b.jsxs("div",{className:"c__user-row",children:[b.jsx(Wi,{fullName:n,size:"small"}),b.jsxs("div",{className:"c__user-row__info",children:[b.jsx("span",{className:"c__user-row__name",children:t}),r&&e&&b.jsx("span",{className:ye("c__user-row__email",{"has-only-email":e&&(t===""||!t)}),children:e})]})]})},Fl=({user:t})=>{const{t:e}=X.useCunningham();return b.jsx(Li,{testId:"search-user-item",left:b.jsx(Zi,{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"})]})})},hf=({accessData:t,accessRoleKey:e="role",roles:r,updateRole:n,deleteAccess:i,canUpdate:o=!0,roleTopMessage:l})=>{const{t:a}=X.useCunningham(),s=bt(),c=bt(),d=u.useMemo(()=>{const p=[];return i&&p.push({label:a("components.share.access.delete"),icon:b.jsx("span",{className:"material-icons",children:"back_hand"}),isDisabled:!o,callback:()=>i(t)}),p},[i,t,o,a]),f=()=>{const p=c.isOpen;c.setIsOpen(!p)};return b.jsx("div",{className:"c__share-member-item",children:b.jsx(Li,{testId:"share-member-item",left:b.jsx(Zi,{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(Ui,{roles:r,selectedRole:t[e],onSelect:p=>n==null?void 0:n(t,p),isOpen:s.isOpen,onOpenChange:s.setIsOpen,canUpdate:o,roleTopMessage:l}),d.length>0&&o&&b.jsx(kt,{options:d,isOpen:c.isOpen,onOpenChange:c.setIsOpen,children:b.jsx(X.Button,{color:"neutral",variant:"tertiary",onClick:f,"data-testid":"share-member-item-more-actions-button",size:"small",icon:b.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},pf=({invitation:t,roles:e,updateRole:r,deleteInvitation:n,canUpdate:i=!0,showMoreActionsButton:o=!0,roleTopMessage:l})=>{const{t:a}=X.useCunningham(),s=bt(),c=bt(),d=[{label:a("components.share.access.delete"),callback:()=>n==null?void 0:n(t),isDisabled:!i,icon:b.jsx("span",{className:"material-icons",children:"back_hand"})}],f=()=>{const p=c.isOpen;c.setIsOpen(!p)};return b.jsx("div",{className:"c__share-member-item",children:b.jsx(Li,{testId:"share-invitation-item",left:b.jsx(Zi,{fullName:"",email:t.email,showEmail:!0}),alwaysShowRight:!0,right:b.jsxs("div",{className:"c__share-member-item__right",children:[b.jsx(Ui,{roles:e,selectedRole:t.role,onSelect:p=>r==null?void 0:r(t,p),isOpen:s.isOpen,canUpdate:i,onOpenChange:s.setIsOpen,roleTopMessage:l}),o&&i&&b.jsx(kt,{options:d,isOpen:c.isOpen,onOpenChange:c.setIsOpen,children:b.jsx(X.Button,{color:"neutral",variant:"tertiary",onClick:f,size:"small",icon:b.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},km="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='%23222631'/%3e%3c/svg%3e",Im="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='%23222631'/%3e%3c/svg%3e",Om="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.6333%2022%209.34167%2021.7375%208.125%2021.2125C6.90833%2020.6875%205.84583%2019.9708%204.9375%2019.0625C4.02917%2018.1542%203.3125%2017.0917%202.7875%2015.875C2.2625%2014.6583%202%2013.3667%202%2012C2%2010.6167%202.2625%209.32083%202.7875%208.1125C3.3125%206.90417%204.02917%205.84583%204.9375%204.9375C5.84583%204.02917%206.90833%203.3125%208.125%202.7875C9.34167%202.2625%2010.6333%202%2012%202C12.5333%202%2013.0458%202.0375%2013.5375%202.1125C14.0292%202.1875%2014.5167%202.3%2015%202.45V5C15%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.45%2016%2016.8458%2016.1333%2017.1875%2016.4C17.5292%2016.6667%2017.7667%2017%2017.9%2017.4C18.55%2016.6667%2019.0625%2015.8458%2019.4375%2014.9375C19.8125%2014.0292%2020%2013.05%2020%2012C20%2011.8167%2019.9917%2011.65%2019.975%2011.5C19.9583%2011.35%2019.9333%2011.1833%2019.9%2011H21.95C21.9833%2011.1833%2022%2011.35%2022%2011.5V12C22%2013.3667%2021.7375%2014.6583%2021.2125%2015.875C20.6875%2017.0917%2019.9708%2018.1542%2019.0625%2019.0625C18.1542%2019.9708%2017.0958%2020.6875%2015.8875%2021.2125C14.6792%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.0667%204.67083%2015.8458%206.0125%2017.3375C7.35417%2018.8292%209.01667%2019.7%2011%2019.95ZM18%209C17.7167%209%2017.4792%208.90417%2017.2875%208.7125C17.0958%208.52083%2017%208.28333%2017%208V5C17%204.71667%2017.0958%204.47917%2017.2875%204.2875C17.4792%204.09583%2017.7167%204%2018%204V3C18%202.45%2018.1958%201.97917%2018.5875%201.5875C18.9792%201.19583%2019.45%201%2020%201C20.55%201%2021.0208%201.19583%2021.4125%201.5875C21.8042%201.97917%2022%202.45%2022%203V4C22.2833%204%2022.5208%204.09583%2022.7125%204.2875C22.9042%204.47917%2023%204.71667%2023%205V8C23%208.28333%2022.9042%208.52083%2022.7125%208.7125C22.5208%208.90417%2022.2833%209%2022%209H18ZM19%204H21V3C21%202.71667%2020.9042%202.47917%2020.7125%202.2875C20.5208%202.09583%2020.2833%202%2020%202C19.7167%202%2019.4792%202.09583%2019.2875%202.2875C19.0958%202.47917%2019%202.71667%2019%203V4Z'%20fill='%23222631'/%3e%3c/svg%3e",Mm="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='%233E5DE7'/%3e%3c/svg%3e",Nm="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='%23304DDF'/%3e%3c/svg%3e",Bm="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.6333%2022%209.34167%2021.7375%208.125%2021.2125C6.90833%2020.6875%205.84583%2019.9708%204.9375%2019.0625C4.02917%2018.1542%203.3125%2017.0917%202.7875%2015.875C2.2625%2014.6583%202%2013.3667%202%2012C2%2010.6167%202.2625%209.32083%202.7875%208.1125C3.3125%206.90417%204.02917%205.84583%204.9375%204.9375C5.84583%204.02917%206.90833%203.3125%208.125%202.7875C9.34167%202.2625%2010.6333%202%2012%202C12.5333%202%2013.0458%202.0375%2013.5375%202.1125C14.0292%202.1875%2014.5167%202.3%2015%202.45V5C15%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.45%2016%2016.8458%2016.1333%2017.1875%2016.4C17.5292%2016.6667%2017.7667%2017%2017.9%2017.4C18.55%2016.6667%2019.0625%2015.8458%2019.4375%2014.9375C19.8125%2014.0292%2020%2013.05%2020%2012C20%2011.8167%2019.9917%2011.65%2019.975%2011.5C19.9583%2011.35%2019.9333%2011.1833%2019.9%2011H21.95C21.9833%2011.1833%2022%2011.35%2022%2011.5V12C22%2013.3667%2021.7375%2014.6583%2021.2125%2015.875C20.6875%2017.0917%2019.9708%2018.1542%2019.0625%2019.0625C18.1542%2019.9708%2017.0958%2020.6875%2015.8875%2021.2125C14.6792%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.0667%204.67083%2015.8458%206.0125%2017.3375C7.35417%2018.8292%209.01667%2019.7%2011%2019.95ZM18%209C17.7167%209%2017.4792%208.90417%2017.2875%208.7125C17.0958%208.52083%2017%208.28333%2017%208V5C17%204.71667%2017.0958%204.47917%2017.2875%204.2875C17.4792%204.09583%2017.7167%204%2018%204V3C18%202.45%2018.1958%201.97917%2018.5875%201.5875C18.9792%201.19583%2019.45%201%2020%201C20.55%201%2021.0208%201.19583%2021.4125%201.5875C21.8042%201.97917%2022%202.45%2022%203V4C22.2833%204%2022.5208%204.09583%2022.7125%204.2875C22.9042%204.47917%2023%204.71667%2023%205V8C23%208.28333%2022.9042%208.52083%2022.7125%208.7125C22.5208%208.90417%2022.2833%209%2022%209H18ZM19%204H21V3C21%202.71667%2020.9042%202.47917%2020.7125%202.2875C20.5208%202.09583%2020.2833%202%2020%202C19.7167%202%2019.4792%202.09583%2019.2875%202.2875C19.0958%202.47917%2019%202.71667%2019%203V4Z'%20fill='%233E5DE7'/%3e%3c/svg%3e",gf=t=>{const{t:e}=X.useCunningham();return{t:r=>(t==null?void 0:t[r])??e(r)}},In=(t,e=!1)=>{switch(t){case"public":return b.jsx("img",{src:e?Mm:km,alt:""});case"restricted":return b.jsx("img",{src:e?Nm:Im,alt:""});case"authenticated":return b.jsx("img",{src:e?Bm:Om,alt:""});default:return null}},Rm=({linkReachChoices:t=[],canUpdate:e,linkReach:r="public",onUpdateLinkReach:n,showLinkRole:i=!1,linkRoleChoices:o=[],linkRole:l="reader",onUpdateLinkRole:a,customTranslations:s,topLinkReachMessage:c,topLinkRoleMessage:d})=>{const f=bt(),p=bt(),[g,y]=u.useState([r]),h=g[0],[v,m]=u.useState([l]),C=v[0],{t:E}=gf(s),F=u.useMemo(()=>t.map(w=>({icon:w.icon??In(w.value),value:w.value,label:E("components.share.linkSettings.reach.choices."+w.value+".title"),...w})),[t]),D=u.useMemo(()=>F.find(w=>w.value===h),[F,h]),x=u.useMemo(()=>o.map(w=>({value:w.value,label:E("components.share.linkSettings.role.choices."+w.value+".title"),...w})),[o]),S=u.useMemo(()=>x.find(w=>w.value===C),[x,C]),O=i&&o.length>0,K=()=>b.jsx("div",{className:"c__share-modal__link-settings__content__select",children:e?b.jsx(kt,{onSelectValue:w=>{y([w]),n==null||n(w)},options:F,isOpen:f.isOpen,topMessage:c,onOpenChange:f.setIsOpen,selectedValues:g,children:b.jsxs(X.Button,{variant:"tertiary",icon:In(h,!0),iconPosition:"left","data-testid":"share-link-reach-dropdown-button",onClick:()=>{e&&f.setIsOpen(!f.isOpen)},children:[D==null?void 0:D.label,b.jsx("span",{className:"material-icons",children:f.isOpen?"arrow_drop_up":"arrow_drop_down"})]})}):b.jsxs("span",{className:"c__share-modal__link-settings__content__select__value",children:[In(h),D==null?void 0:D.label]})}),H=()=>O?b.jsx("div",{className:"c__share-modal__link-settings__content__select-role",children:e?b.jsx(kt,{onSelectValue:w=>{m([w]),a==null||a(w)},options:x,isOpen:p.isOpen,onOpenChange:p.setIsOpen,selectedValues:v,topMessage:d,children:b.jsx(X.Button,{variant:"tertiary","data-testid":"share-link-role-dropdown-button",icon:b.jsx("span",{className:"material-icons",children:p.isOpen?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",onClick:()=>{e&&p.setIsOpen(!p.isOpen)},size:"small",children:S==null?void 0:S.label})}):b.jsxs("span",{className:"c__share-modal__link-settings__content__select-role__value",children:[In(C,!0),S==null?void 0:S.label]})}):null;return b.jsxs("div",{className:"c__share-modal__link-settings","data-testid":"share-link-settings",children:[b.jsx("span",{className:"c__share-modal__link-settings__title",children:E("components.share.linkSettings.title")}),b.jsxs("div",{className:"c__share-modal__link-settings__content",children:[K(),b.jsx("div",{className:"c__share-modal__link-settings__content__description desktop",children:E(`components.share.linkSettings.reach.choices.${h}.description`)}),H()]}),b.jsx("div",{className:"c__share-modal__link-settings__content__description mobile",children:E(`components.share.linkSettings.reach.choices.${h}.description`)})]})},Lm=({searchUsersResult:t,children:e,outsideSearchContent:r,accesses:n=[],invitations:i=[],hasNextMembers:o=!1,canUpdate:l=!0,canView:a=!0,hasNextInvitations:s=!1,hideInvitations:c=!1,hideMembers:d=!1,cannotViewChildren:f,customTranslations:p,...g})=>{var B,L;if(!(c&&d)){if(!g.invitationRoles)throw new Error("invitationRoles is required");if(!g.onSearchUsers)throw new Error("onSearchUsers is required")}if(!c&&!g.onInviteUser)throw new Error("onInviteUser is required");if(l&&!a)throw new Error("canView cannot be false if canUpdate is true");const{t:y}=X.useCunningham(),{isMobile:h}=mt(),v=u.useRef(null),[m,C]=u.useState("400px"),E=u.useRef(null),[F,D]=u.useState(""),[x,S]=u.useState(""),[O,K]=u.useState([]),[H,w]=u.useState(((L=(B=g.invitationRoles)==null?void 0:B[0])==null?void 0:L.value)??""),M=h?"calc(100dvh - 32px)":"min(690px, calc(100dvh - 2em - 12px - 32px))",Z=j=>{if(v.current&&clearTimeout(v.current),j===""){S(""),g.onSearchUsers("");return}v.current=setTimeout(()=>{g.onSearchUsers(j),S(j)},300)},_=j=>{D(j),Z(j)},U=x!==""||O.length>0,P=u.useCallback(j=>{K(V=>[...V,j]),D(""),S(""),g.onSearchUsers("")},[g]),k=j=>{K(V=>V.filter(W=>W.id!==j.id))},z=u.useMemo(()=>{const j=t==null?void 0:t.filter(G=>!O.includes(G));let V=y(x!==""?"components.share.user.no_result":"components.share.user.placeholder");const q=(G=>!!G.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,}))$/))(x??"")&&!(j!=null&&j.some(G=>G.email===x)),Y={id:x,full_name:"",email:x};return q&&(V=void 0),{groupName:y("components.share.search.group_name"),elements:j??[],showWhenEmpty:!0,emptyString:V,endActions:q?[{content:b.jsx(Fl,{user:Y}),onSelect:()=>void P(Y)}]:void 0}},[t,x,y,O,P]),R=j=>{var ae;const W=(j==null?void 0:j.clientHeight)??0,q=((ae=E.current)==null?void 0:ae.clientHeight)??0,Y=`calc(${M} - ${W}px - ${q}px - 70px - 10px)`;C(Y)},I=!c&&!U&&!g.loading&&i.length>0,N=!d&&!U&&!g.loading&&n.length>0,A=a?c&&d?"empty":"search":"cannot_view";return b.jsx(X.Modal,{title:g.modalTitle??y("components.share.modalTitle"),isOpen:g.isOpen,onClose:g.onClose,"aria-label":y("components.share.modalAriaLabel"),closeOnClickOutside:!0,size:h?X.ModalSize.FULL:X.ModalSize.LARGE,children:b.jsxs("div",{className:"c__share-modal no-padding",children:[l&&O.length>0&&b.jsx("div",{className:"c__share-modal__selected-users",ref:E,children:b.jsx(uf,{users:O,onRemoveUser:k,roles:g.invitationRoles,selectedRole:H,onSelectRole:w,onShare:()=>{g.onInviteUser(O,H),K([])}})}),A==="cannot_view"&&b.jsxs("div",{className:"c__share-modal__cannot-view",style:{height:m},children:[b.jsx("div",{className:"c__share-modal__cannot-view__content",children:b.jsx("p",{children:g.cannotViewMessage??y("components.share.cannot_view.message")})}),f]}),A==="search"&&b.jsx(d1,{onFilter:_,inputValue:F,showInput:l,loading:g.loading,placeholder:y("components.share.user.placeholder"),children:b.jsxs("div",{style:{height:m,overflowY:"auto"},children:[U&&b.jsx("div",{className:"c__share-modal__search-users","data-testid":"search-users-list",children:b.jsx(f1,{group:z,onSelect:j=>{P(j)},renderElement:j=>b.jsx(Fl,{user:j})})}),!U&&e,I&&b.jsxs("div",{className:"c__share-modal__invitations","data-testid":"invitations-list",children:[b.jsx("span",{className:"c__share-modal__invitations-title",children:y("components.share.invitations.title")}),i.map(j=>{var V;return b.jsx(pf,{invitation:j,roles:g.invitationRoles,updateRole:g.onUpdateInvitation,deleteInvitation:g.onDeleteInvitation,canUpdate:l,roleTopMessage:(V=g.invitationRoleTopMessage)==null?void 0:V.call(g,j)},j.id)}),b.jsx(b2,{show:s,onShowMore:g.onLoadNextInvitations})]}),N&&b.jsxs("div",{className:"c__share-modal__members","data-testid":"members-list",children:[b.jsx("span",{className:"c__share-modal__members-title",children:y(n.length>1?"components.share.members.title_plural":"components.share.members.title_singular",{count:n.length})}),n.map(j=>{var V,W;return b.jsx(hf,{accessData:j,accessRoleKey:g.accessRoleKey??"role",canUpdate:l,roleTopMessage:(V=g.accessRoleTopMessage)==null?void 0:V.call(g,j),roles:((W=g.getAccessRoles)==null?void 0:W.call(g,j))??g.invitationRoles,updateRole:g.onUpdateAccess,deleteAccess:g.onDeleteAccess},j.id)}),b.jsx(b2,{show:o,onShowMore:g.onLoadNextMembers})]})]})}),b.jsx("div",{ref:R,children:!U&&b.jsxs("div",{className:"c__share-modal__footer",children:[g.linkSettings&&b.jsx(Rm,{linkReachChoices:g.linkReachChoices,canUpdate:l,onUpdateLinkReach:g.onUpdateLinkReach,linkReach:g.linkReach,linkRoleChoices:g.linkRoleChoices,linkRole:g.linkRole,onUpdateLinkRole:g.onUpdateLinkRole,showLinkRole:g.showLinkRole,customTranslations:p,topLinkReachMessage:g.topLinkReachMessage,topLinkRoleMessage:g.topLinkRoleMessage}),r]})})]})})},b2=({show:t,onShowMore:e})=>{const{t:r}=X.useCunningham();return t?b.jsx("div",{className:"c__share-modal__show-more-button",children:b.jsx(X.Button,{variant:"tertiary",size:"small",icon:b.jsx("span",{className:"material-icons",children:"arrow_downward"}),onClick:e,children:r("components.share.members.load_more")})}):null},Km=({onCopyLink:t,onOk:e})=>{const{t:r}=X.useCunningham();return b.jsxs("div",{className:"c__share-modal__copy-link-footer",children:[b.jsx(X.Button,{variant:"secondary",icon:b.jsx("span",{className:"material-icons",children:"link"}),onClick:t,children:r("components.share.copyLink")}),b.jsx(X.Button,{variant:"primary",onClick:e,children:r("components.share.ok")})]})},vf=({user:t,settingsItems:e,showSettings:r,actions:n,termOfServiceUrl:i})=>{const o=!!n||!!i,{t:l}=X.useCunningham(),a=t?t.full_name??t.email:void 0,s=a?Fa(a):void 0;return t?b.jsx(b.Fragment,{children:b.jsxs("div",{className:"user-menu__content__body",children:[b.jsxs("div",{className:"user-menu__content__body__user-info",style:{"--gradient-color":`var(--c--contextuals--background--palette--${s}--primary)`},children:[b.jsx(Wi,{fullName:a}),b.jsx("div",{className:"user-menu__content__identity__name",children:t.full_name?b.jsxs(b.Fragment,{children:[b.jsx("p",{className:"user-menu__content__identity__name",children:b.jsx("strong",{children:t.full_name})}),b.jsx("p",{className:"user-menu__content__identity__email",children:t.email})]}):b.jsx("p",{className:"user-menu__content__identity__email",children:b.jsx("strong",{children:t.email})})})]}),r&&b.jsxs(b.Fragment,{children:[b.jsx(ln,{withPadding:!1}),b.jsx("div",{className:"user-menu__content__body__settings",children:e.map(c=>b.jsx(bf,{label:c.label,icon:c.icon,onClick:c.onClick},c.label))})]}),o&&b.jsxs(b.Fragment,{children:[b.jsx(ln,{withPadding:!1}),b.jsxs("div",{className:"user-menu__actions user-menu__actions--mobile",children:[n&&b.jsx("div",{className:"user-menu__actions__left",children:n}),i&&b.jsx("div",{className:"user-menu__actions__right",children:b.jsx(X.Button,{variant:"tertiary",target:"_blank",href:i,size:"small",color:"neutral",children:l("components.userMenu.term_of_service")})})]})]})]})}):null},jm=({...t})=>{const{t:e}=X.useCunningham(),r=yf();return b.jsxs(b.Fragment,{children:[b.jsx(mf,{user:t.user,...r}),b.jsx(X.Modal,{isOpen:r.openState,onClose:()=>r.setOpenState(!1),"aria-label":e("components.userMenu.dialogTitle"),size:X.ModalSize.FULL,children:b.jsxs("div",{className:"user-menu__popover user-menu__popover--mobile",children:[b.jsx(X.Button,{variant:"tertiary",className:"user-menu__close-button",onClick:r.toggleUserMenu,"aria-label":e("components.userMenu.close"),color:"neutral",icon:b.jsx(Jr,{name:"close"}),size:"small"}),b.jsx(vf,{...t}),b.jsx("div",{className:"user-menu__footer--mobile",children:b.jsx(X.Button,{variant:"primary",onClick:r.toggleUserMenu,children:e("components.share.ok")})})]})})]})},Hm=({user:t,settingsItems:e,showSettings:r,actions:n,termOfServiceUrl:i})=>{const{t:o}=X.useCunningham(),l=yf();return b.jsxs(b.Fragment,{children:[b.jsx(mf,{user:t,...l}),b.jsx(ia,{className:"c__dropdown-menu user-menu__popover",triggerRef:l.triggerRef,isOpen:l.openState,onOpenChange:l.setOpenState,children:b.jsx(T7,{"aria-label":o("components.userMenu.dialogTitle"),children:b.jsx(vf,{user:t,settingsItems:e,showSettings:r,actions:n,termOfServiceUrl:i})})})]})},Vm=({user:t,settingsCTA:e,logout:r,termOfServiceUrl:n,actions:i})=>{const{t:o}=X.useCunningham(),{isTablet:l}=mt(),a=u.useMemo(()=>{const c=[];return e&&c.push({label:o("components.userMenu.manage_account"),icon:"settings",onClick:typeof e=="function"?e:typeof e=="string"?()=>window.open(e,"_blank","noopener,noreferrer"):void 0}),r&&c.push({label:o("components.userMenu.logout"),icon:"logout",onClick:r}),c},[e,r,o]),s=a.length>0;return t?b.jsx(b.Fragment,{children:l?b.jsx(jm,{user:t,settingsItems:a,showSettings:s,actions:i,termOfServiceUrl:n}):b.jsx(Hm,{user:t,settingsItems:a,showSettings:s,actions:i,termOfServiceUrl:n})}):null},bf=({label:t,icon:e,onClick:r})=>b.jsxs("div",{className:"user-menu__item",onClick:r,children:[b.jsx(Jr,{name:e}),b.jsx("span",{className:"user-menu__item__label",children:t})]}),mf=({user:t,triggerRef:e,id:r,openState:n,toggleUserMenu:i})=>{const{t:o}=X.useCunningham();return t?b.jsx(X.Button,{variant:"tertiary",size:"small",ref:e,id:r,onClick:i,"aria-label":o(n?"components.userMenu.close":"components.userMenu.open"),title:o(n?"components.userMenu.close":"components.userMenu.open"),children:b.jsx(Wi,{fullName:t.full_name??t.email})}):null},yf=()=>{const t=u.useId(),[e,r]=u.useState(!1),n=()=>{r(!e)},i=u.useRef(null);return{id:t,openState:e,setOpenState:r,toggleUserMenu:n,triggerRef:i}},zm=(t,e={})=>Ai.getThemesFromGlobals(br(Xr,t),{...e,overrides:br(Ti,e.overrides??{})});exports.AVATAR_COLORS=Sl;exports.AccessRoleDropdown=Ui;exports.Badge=Tm;exports.CunninghamProvider=Tf;exports.CustomTabs=lg;exports.DropdownMenu=kt;exports.Filter=H7;exports.Footer=j7;exports.Header=nd;exports.Hero=z7;exports.HomeGutter=U7;exports.HorizontalSeparator=ln;exports.Icon=Jr;exports.IconSize=xe;exports.IconType=ni;exports.InvitationUserSelectorItem=df;exports.InvitationUserSelectorList=uf;exports.LaGaufre=rh;exports.LaGaufreV2=Qu;exports.Label=$d;exports.LanguagePicker=rd;exports.LeftPanel=id;exports.MainLayout=Zh;exports.ProConnectButton=C2;exports.QuickSearch=d1;exports.QuickSearchGroup=f1;exports.QuickSearchInput=u1;exports.QuickSearchItem=Rn;exports.QuickSearchItemTemplate=Li;exports.SearchUserItem=Fl;exports.ShareInvitationItem=pf;exports.ShareMemberItem=hf;exports.ShareModal=Lm;exports.ShareModalCopyLinkFooter=Km;exports.Spinner=li;exports.TreeApi=vr;exports.TreeContext=xa;exports.TreeProvider=gm;exports.TreeView=vm;exports.TreeViewItem=Am;exports.TreeViewMoveModeEnum=Dt;exports.TreeViewNodeTypeEnum=se;exports.TreeViewSeparator=of;exports.UserAvatar=Wi;exports.UserMenu=Vm;exports.UserMenuItem=bf;exports.UserRow=Zi;exports.VerticalSeparator=og;exports.WithLabel=qh;exports.anctGlobals=Ju;exports.containerSizeMap=td;exports.cunninghamConfig=al;exports.dsfrGlobals=Xu;exports.getContainerSize=hh;exports.getIconSize=ph;exports.getUIKitThemesFromGlobals=zm;exports.getUserColor=Fa;exports.getUserInitials=ff;exports.headerHeight=Gh;exports.iconSizeMap=ed;exports.isNode=Ur;exports.isSeparator=di;exports.isTitle=fi;exports.isViewMore=lf;exports.locales=y2;exports.useArrowRoving=_m;exports.useCustomTranslations=gf;exports.useDropdownMenu=bt;exports.useResponsive=mt;exports.useTree=af;exports.useTreeContext=Sa;exports.whiteLabelGlobals=Yu;
|
|
99
99
|
//# sourceMappingURL=index.cjs.map
|