@nebula.js/sn-tabbed-container 2.0.1 → 2.0.2

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.
@@ -1,17 +1,17 @@
1
1
  /*
2
- * @nebula.js/sn-tabbed-container v2.0.1
2
+ * @nebula.js/sn-tabbed-container v2.0.2
3
3
  * Copyright (c) 2025 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use strict";var t,r,n,o,i,a,l,s,c,d,u,p,h,f,m,b,g,v,y,x,E,S,C,w,R,k,A,_,I,T,L,O;return{setters:[function(e){t=e.useOptions,r=e.useEffect,n=e.useState,o=e.onTakeSnapshot,i=e.useKeyboard,a=e.useMemo,l=e.useElement,s=e.useApp,c=e.useStaleLayout,d=e.useEmbed,u=e.useModel,p=e.useTranslator,h=e.useEmitter,f=e.useInteractionState,m=e.useTheme,b=e.usePromise,g=e.onContextMenu,v=e.useImperativeHandle},function(e){y=e,x=e.forwardRef,E=e.useContext,S=e.default,C=e.isValidElement,w=e.cloneElement,R=e.Children,k=e.useState,A=e.useEffect,_=e.useRef,I=e.useMemo,T=e.useCallback},function(e){L=e.default,O=e}],execute:function(){e("default",(function(e){const t=new mp({translator:e.translator});return{qae:{properties:yb,data:vb},ext:um({env:e,propertyHandlerData:t}),component(){const r=qm(),o=p();a((()=>{!function(e){if(e&&e.get&&e.add){const t="LayoutContainer.EmptyList.AddContent";if(e.get(t)!==t)return;Object.keys(P).forEach((t=>{e.add(P[t])}))}}(o)}),[o]);const{dataHandler:i,model:l,accessibility:s,setAccessibility:c,interactions:d,element:u,modifiedLayout:h}=r,{renderHelper:f,sharedContainerUtilities:m,activeTabId:b}=gb({element:u,models:r,env:e});pm({containerId:(null==l?void 0:l.id)||"",element:u,sharedContainerUtilities:m,translator:o,dataHandler:i,propertyHandlerData:t,renderHelper:f});const[g,y]=n(!0);Rm({isContainerActive:g,activeTabId:b,renderHelper:f,modifiedLayout:h}),Cm({element:u,accessibility:s,setAccessibility:c,renderHelper:f,interactions:d,env:e,models:r});const{getViewState:x}=bm(f,Eb);v((()=>({getViewState:x,getChildrenObjects(){const e=f.getChildrenObjects();return xb(e)},updateActiveState(e){y(e)}})),[])}}}));var P={Container_Label_Visualizations:{id:"Container.Label.Visualizations",locale:{"de-DE":"Visualisierungen","en-US":"Visualizations","es-ES":"Visualizaciones","fr-FR":"Visualisations","it-IT":"Visualizzazioni","ja-JP":"ビジュアライゼーション","ko-KR":"시각화","nl-NL":"Visualisaties","pl-PL":"Wizualizacje","pt-BR":"Visualizações","ru-RU":"Визуализации","sv-SE":"Visualiseringar","tr-TR":"Görselleştirmeler","zh-CN":"可视化","zh-TW":"視覺化"}},LayoutContainer_EmptyList_AddContent:{id:"LayoutContainer.EmptyList.AddContent",locale:{"de-DE":"Inhalt hinzufügen","en-US":"Add content","es-ES":"Añadir contenido","fr-FR":"Ajouter un contenu","it-IT":"Aggiungi contenuto","ja-JP":"コンテンツを追加","ko-KR":"콘텐츠 추가","nl-NL":"Inhoud toevoegen","pl-PL":"Dodaj zawartość","pt-BR":"Adicionar conteúdo","ru-RU":"Добавить содержимое","sv-SE":"Lägg till innehåll","tr-TR":"İçerik ekle","zh-CN":"添加内容","zh-TW":"新增內容"}},LayoutContainer_EmptyList_EmptyHint:{id:"LayoutContainer.EmptyList.EmptyHint",locale:{"de-DE":"Leere Sammelbox","en-US":"Empty container","es-ES":"Contenedor vacío","fr-FR":"Conteneur vide","it-IT":"Contenitore vuoto","ja-JP":"コンテナが空です","ko-KR":"빈 컨테이너","nl-NL":"Lege container","pl-PL":"Pusty kontener","pt-BR":"Contêiner vazio","ru-RU":"Пустой контейнер","sv-SE":"Tom behållare","tr-TR":"Kapsayıcı boş","zh-CN":"空容器","zh-TW":"空的容器"}},LayoutContainer_Object_Charts:{id:"LayoutContainer.Object.Charts",locale:{"de-DE":"Diagramme","en-US":"Charts","es-ES":"Gráficos","fr-FR":"Graphiques","it-IT":"Grafici","ja-JP":"チャート","ko-KR":"차트","nl-NL":"Diagrammen","pl-PL":"Wykresy","pt-BR":"Gráficos","ru-RU":"Диаграммы","sv-SE":"Diagram","tr-TR":"Grafikler","zh-CN":"图表","zh-TW":"圖表"}},LayoutContainer_Object_CustomObjects:{id:"LayoutContainer.Object.CustomObjects",locale:{"de-DE":"Benutzerdefinierte Objekte","en-US":"Custom objects","es-ES":"Objetos personalizados","fr-FR":"Objets personnalisés","it-IT":"Oggetti personalizzati","ja-JP":"カスタム オブジェクト","ko-KR":"사용자 지정 개체","nl-NL":"Aangepaste objecten","pl-PL":"Obiekty niestandardowe","pt-BR":"Objetos personalizados","ru-RU":"Пользовательские объекты","sv-SE":"Anpassade objekt","tr-TR":"Özel nesneler","zh-CN":"自定义对象","zh-TW":"自訂物件"}},LayoutContainer_Object_Description:{id:"LayoutContainer.Object.Description",locale:{"de-DE":"Die Sammelbox besteht aus folgenden Objekten: {0}. Verwenden Sie zum Navigieren die Nach-links- und Nach-rechts-Pfeiltasten. Drücken Sie die Eingabetaste oder die Leertaste, um die Diagramme auszuwählen.","en-US":"Container consists of the following objects: {0}. Use left and right arrow keys to navigate through the inner charts. Press enter or space to select the charts.","es-ES":"El contenedor consta de los siguientes objetos: {0}. Utilice las teclas de flecha izquierda y derecha para navegar por los gráficos interiores. Pulse Intro o espacio para seleccionar los gráficos.","fr-FR":"Le conteneur comprend les objets suivants : {0}. Utilisez les touches de direction gauche et droite pour parcourir les graphiques internes. Appuyez sur la touche Entrée ou espace pour sélectionner les graphiques.","it-IT":"Il contenitore include i seguenti oggetti: {0}. Utilizzare i tasti freccia sinistro e destro per navigare tra i grafici interni. Per selezionare i grafici, premere Invio o Spazio.","ja-JP":"コンテナは以下のオブジェクトで構成されます: {0}。左右の矢印キーを使用して、内部のチャートをナビゲートします。Enter キーかスペース キーを押してチャートを選択します。","ko-KR":"컨테이너는 다음 개체로 구성됩니다. {0}. 왼쪽 및 오른쪽 화살표 키를 사용하여 내부 차트를 탐색하십시오. 차트를 선택하려면 Enter 키나 스페이스바를 누르십시오.","nl-NL":"Container bevat de volgende objecten: {0}. Navigeer met de pijl-links en pijl-rechts langs de binnenste diagrammen. Druk op Enter of de spatiebalk om de diagrammen te selecteren.","pl-PL":"Kontener zawiera następujące obiekty: {0}. Do nawigacji po wewnętrznych wykresach użyj lewego i prawego klawisza strzałki. Naciśnij klawisz Enter lub klawisz spacji, aby wybrać wykresy.","pt-BR":"O contêiner consiste nos seguintes objetos: {0}. Use as setas para a esquerda e para a direita para navegar pelos gráficos internos. Pressione Enter ou espaço para selecionar os gráficos.","ru-RU":"Контейнер состоит из следующих объектов: {0}. Для навигации по внутренним диаграммам используйте клавиши со стрелками влево и вправо. Нажмите клавишу Enter или пробел, чтобы выбрать диаграммы.","sv-SE":"Behållaren innehåller följande objekt: {0}. Använd vänster och höger piltangent för att navigera genom de inre diagrammen. Tryck på returtangenten eller mellanslag för att välja diagram.","tr-TR":"Kapsayıcı şu nesneleri içerir: {0}. İç grafikler arasında gezinmek için sağ ve sol ok tuşlarını kullanın. Grafik seçmek için enter veya boşluk tuşuna basın.","zh-CN":"容器由以下对象组成:{0}。使用左右箭头键浏览内部图表。按回车或空格键选择图表。","zh-TW":"容器由下列物件組成:{0}。使用向左和向右方向鍵瀏覽內部圖表。按下 Enter 或空間以選取圖表。"}},LayoutContainer_Object_MasterItems:{id:"LayoutContainer.Object.MasterItems",locale:{"de-DE":"Master-Elemente","en-US":"Master items","es-ES":"Elementos maestros","fr-FR":"Éléments principaux","it-IT":"Voci principali","ja-JP":"マスター アイテム","ko-KR":"마스터 항목","nl-NL":"Masteritems","pl-PL":"Elementy główne","pt-BR":"Itens mestre","ru-RU":"Основные элементы","sv-SE":"Originalobjekt","tr-TR":"Ana öğeler","zh-CN":"主条目","zh-TW":"主項目"}},LayoutContainer_Object_Untitled:{id:"LayoutContainer.Object.Untitled",locale:{"de-DE":"Unbenanntes Objekt","en-US":"Untitled object","es-ES":"Objeto sin título","fr-FR":"Objet sans titre","it-IT":"Oggetto senza nome","ja-JP":"無題のオブジェクト","ko-KR":"제목 없는 개체","nl-NL":"Object zonder titel","pl-PL":"Obiekt bez tytułu","pt-BR":"Objeto sem título","ru-RU":"Объект без названия","sv-SE":"Objekt utan namn","tr-TR":"Başlıksız nesne","zh-CN":"无标题对象","zh-TW":"無標題的物件"}},TabContainer_Navigation_Horizontal:{id:"TabContainer.Navigation.Horizontal",locale:{"de-DE":"Verwenden Sie die Nach-links- und Nach-rechts-Pfeiltasten, um durch die Registerkarten zu navigieren. Drücken Sie die Eingabetaste oder die Leertaste, um die Registerkarten auszuwählen.","en-US":"Use left and right arrow keys to navigate through the tabs. Press Enter or Space to select the tabs.","es-ES":"Utilice las teclas de flecha izquierda y derecha para navegar por las pestañas. Pulse Intro o Espacio para seleccionar las pestañas.","fr-FR":"Utilisez les touches des flèches gauche et droite pour naviguer à travers les onglets. Appuyez sur la touche Entrée ou Espace pour sélectionner les onglets.","it-IT":"Utilizzare i tasti freccia destra e sinistra per navigare tra le schede. Per selezionare le schede, premere Invio o Spazio.","ja-JP":"左右の矢印キーで、タブ間を移動できます。Enter キーかスペース キーを押せば、タブを選択できます。","ko-KR":"탭을 탐색하려면 왼쪽 및 오른쪽 화살표 키를 사용합니다. 탭을 선택하려면 Enter 키 또는 스페이스바를 누르십시오.","nl-NL":"Gebruik de pijl-links en pijl-rechts om te navigeren tussen de tabbladen. Druk op Enter of de spatiebalk om de tabbladen te selecteren.","pl-PL":"Do poruszania się po kartach użyj klawiszy strzałek w lewo i w prawo. Naciśnij klawisz Enter lub klawisz spacji, aby wybrać karty.","pt-BR":"Use as setas para a esquerda e para a direita para navegar pelas guias. Pressione Enter ou Espaço para selecionar as guias.","ru-RU":'Используйте стрелки влево и вправо для навигации по вкладкам. Нажмите Enter или "Пробел", чтобы выбрать вкладку.',"sv-SE":"Använd vänster och höger piltangent för att navigera mellan flikarna. Tryck på returtangenten eller mellanslag för att välja flikar.","tr-TR":"Sekmeler arasında gezinmek için sağ ve sol ok tuşlarını kullanın. Sekme seçmek için Enter veya Boşluk tuşuna basın.","zh-CN":"使用左右箭头键浏览选项卡。按 Enter 或空格键选择选项卡。","zh-TW":"使用向左和向右方向鍵瀏覽索引標籤。按下 Enter 或空格鍵以選取索引標籤。"}},TabContainer_Navigation_Vertical:{id:"TabContainer.Navigation.Vertical",locale:{"de-DE":"Verwenden Sie die Nach-unten- und Nach-oben-Pfeiltasten, um durch die Registerkarten zu navigieren. Drücken Sie die Eingabetaste oder die Leertaste, um die Registerkarten auszuwählen.","en-US":"Use up and down arrow keys to navigate through the tabs. Press Enter or Space to select the tabs.","es-ES":"Utilice las teclas de flecha arriba y abajo para navegar por las pestañas. Pulse Intro o Espacio para seleccionar las pestañas.","fr-FR":"Utilisez les touches des flèches haut et bas pour naviguer à travers les onglets. Appuyez sur la touche Entrée ou Espace pour sélectionner les onglets.","it-IT":"Per navigare tra le schede, usare i tasti freccia su e giù. Per selezionare le schede, premere Invio o Spazio.","ja-JP":"上下の矢印キーで、タブ間を移動できます。Enter キーかスペース キーを押せば、タブを選択できます。","ko-KR":"탭을 탐색하려면 위쪽 및 아래쪽 화살표 키를 사용합니다. 탭을 선택하려면 Enter 키 또는 스페이스바를 누르십시오.","nl-NL":"Gebruik de pijl-omhoog en pijl-omlaag om te navigeren tussen de tabbladen. Druk op Enter of de spatiebalk om de tabbladen te selecteren.","pl-PL":"Do poruszania się po kartach użyj klawiszy strzałek w górę i w dół. Naciśnij klawisz Enter lub klawisz spacji, aby wybrać karty.","pt-BR":"Use as setas para cima e para baixo para navegar pelas guias. Pressione Enter ou Espaço para selecionar as guias.","ru-RU":'Используйте стрелки вверх и вниз для навигации по вкладкам. Нажмите Enter или "Пробел", чтобы выбрать вкладку.',"sv-SE":"Använd piltangenterna upp och ner för att navigera genom flikarna. Tryck på returtangenten eller mellanslag för att välja flikar.","tr-TR":"Sekmeler arasında gezinmek için yukarı ve aşağı ok tuşlarını kullanın. Sekme seçmek için Enter veya Boşluk tuşuna basın.","zh-CN":"使用上下箭头键浏览选项卡。按 Enter 或空格键选择选项卡。","zh-TW":"使用向上和向下方向鍵以瀏覽索引標籤。按下 Enter 或空格鍵以選取索引標籤。"}},TabContainer_Object_Description:{id:"TabContainer.Object.Description",locale:{"de-DE":"Die Registerkarten-Sammelbox besteht aus folgenden Objekten: {0}.","en-US":"Tab container consists of the following objects: {0}.","es-ES":"El contenedor de pestañas contiene los siguientes objetos: {0}.","fr-FR":"Le conteneur d'onglets comprend les objets suivants : {0}.","it-IT":"Il contenitore a schede include i seguenti oggetti: {0}.","ja-JP":"タブ コンテナは以下のオブジェクトで構成されています: {0}。","ko-KR":"탭 컨테이너는 다음 개체로 구성됩니다. {0}.","nl-NL":"Tabbladcontainer bevat de volgende objecten: {0}.","pl-PL":"Kontener kart zawiera następujące obiekty: {0}.","pt-BR":"O contêiner de guias consiste nos seguintes objetos: {0}.","ru-RU":"Контейнер вкладок содержит следующие объекты: {0}.","sv-SE":"Flikbehållaren innehåller följande objekt: {0}.","tr-TR":"Sekme kapsayıcısı şu nesneleri içerir: {0}.","zh-CN":"选项卡容器由以下对象组成:{0}。","zh-TW":"索引標籤容器由下列物件組成:{0}。"}},TabContainer_Object_Untitled:{id:"TabContainer.Object.Untitled",locale:{"de-DE":"Unbenanntes Objekt","en-US":"Untitled object","es-ES":"Objeto sin título","fr-FR":"Objet sans titre","it-IT":"Oggetto senza nome","ja-JP":"無題のオブジェクト","ko-KR":"제목 없는 개체","nl-NL":"Object zonder titel","pl-PL":"Obiekt bez tytułu","pt-BR":"Objeto sem título","ru-RU":"Объект без названия","sv-SE":"Objekt utan namn","tr-TR":"Başlıksız nesne","zh-CN":"无标题对象","zh-TW":"無標題的物件"}}};function M(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var N=Object.freeze({__proto__:null,default:j}),$="$$material";function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},z.apply(null,arguments)}function B(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var D=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0!==e.speedy&&e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1],r=64===e.charCodeAt(0)&&105===e.charCodeAt(1);if(r&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!r,this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(t){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),F="-ms-",G="-moz-",H="-webkit-",W="comm",Y="rule",U="decl",V="@keyframes",q=Math.abs,K=String.fromCharCode,X=Object.assign;function Z(e){return e.trim()}function J(e,t,r){return e.replace(t,r)}function Q(e,t){return e.indexOf(t)}function ee(e,t){return 0|e.charCodeAt(t)}function te(e,t,r){return e.slice(t,r)}function re(e){return e.length}function ne(e){return e.length}function oe(e,t){return t.push(e),e}var ie=1,ae=1,le=0,se=0,ce=0,de="";function ue(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ie,column:ae,length:a,return:""}}function pe(e,t){return X(ue("",null,null,"",null,null,0),e,{length:-e.length},t)}function he(){return ce=se>0?ee(de,--se):0,ae--,10===ce&&(ae=1,ie--),ce}function fe(){return ce=se<le?ee(de,se++):0,ae++,10===ce&&(ae=1,ie++),ce}function me(){return ee(de,se)}function be(){return se}function ge(e,t){return te(de,e,t)}function ve(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ye(e){return ie=ae=1,le=re(de=e),se=0,[]}function xe(e){return de="",e}function Ee(e){return Z(ge(se-1,we(91===e?e+2:40===e?e+1:e)))}function Se(e){for(;(ce=me())&&ce<33;)fe();return ve(e)>2||ve(ce)>3?"":" "}function Ce(e,t){for(;--t&&fe()&&!(ce<48||ce>102||ce>57&&ce<65||ce>70&&ce<97););return ge(e,be()+(t<6&&32==me()&&32==fe()))}function we(e){for(;fe();)switch(ce){case e:return se;case 34:case 39:34!==e&&39!==e&&we(ce);break;case 40:41===e&&we(e);break;case 92:fe()}return se}function Re(e,t){for(;fe()&&e+ce!==57&&(e+ce!==84||47!==me()););return"/*"+ge(t,se-1)+"*"+K(47===e?e:fe())}function ke(e){for(;!ve(me());)fe();return ge(e,se)}function Ae(e){return xe(_e("",null,null,null,[""],e=ye(e),0,[0],e))}function _e(e,t,r,n,o,i,a,l,s){for(var c=0,d=0,u=a,p=0,h=0,f=0,m=1,b=1,g=1,v=0,y="",x=o,E=i,S=n,C=y;b;)switch(f=v,v=fe()){case 40:if(108!=f&&58==ee(C,u-1)){-1!=Q(C+=J(Ee(v),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:C+=Ee(v);break;case 9:case 10:case 13:case 32:C+=Se(f);break;case 92:C+=Ce(be()-1,7);continue;case 47:switch(me()){case 42:case 47:oe(Te(Re(fe(),be()),t,r),s);break;default:C+="/"}break;case 123*m:l[c++]=re(C)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+d:-1==g&&(C=J(C,/\f/g,"")),h>0&&re(C)-u&&oe(h>32?Le(C+";",n,r,u-1):Le(J(C," ","")+";",n,r,u-2),s);break;case 59:C+=";";default:if(oe(S=Ie(C,t,r,c,d,o,l,y,x=[],E=[],u),i),123===v)if(0===d)_e(C,t,S,S,x,i,u,l,E);else switch(99===p&&110===ee(C,3)?100:p){case 100:case 108:case 109:case 115:_e(e,S,S,n&&oe(Ie(e,S,S,0,0,o,l,y,o,x=[],u),E),o,E,u,l,n?x:E);break;default:_e(C,S,S,S,[""],E,0,l,E)}}c=d=h=0,m=g=1,y=C="",u=a;break;case 58:u=1+re(C),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==he())continue;switch(C+=K(v),v*m){case 38:g=d>0?1:(C+="\f",-1);break;case 44:l[c++]=(re(C)-1)*g,g=1;break;case 64:45===me()&&(C+=Ee(fe())),p=me(),d=u=re(y=C+=ke(be())),v++;break;case 45:45===f&&2==re(C)&&(m=0)}}return i}function Ie(e,t,r,n,o,i,a,l,s,c,d){for(var u=o-1,p=0===o?i:[""],h=ne(p),f=0,m=0,b=0;f<n;++f)for(var g=0,v=te(e,u+1,u=q(m=a[f])),y=e;g<h;++g)(y=Z(m>0?p[g]+" "+v:J(v,/&\f/g,p[g])))&&(s[b++]=y);return ue(e,t,r,0===o?Y:l,s,c,d)}function Te(e,t,r){return ue(e,t,r,W,K(ce),te(e,2,-2),0)}function Le(e,t,r,n){return ue(e,t,r,U,te(e,0,n),te(e,n+1,-1),n)}function Oe(e,t){for(var r="",n=ne(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Pe(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case U:return e.return=e.return||e.value;case W:return"";case V:return e.return=e.value+"{"+Oe(e.children,n)+"}";case Y:e.value=e.props.join(",")}return re(r=Oe(e.children,n))?e.return=e.value+"{"+r+"}":""}function Me(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var je=function(e,t,r){for(var n=0,o=0;n=o,o=me(),38===n&&12===o&&(t[r]=1),!ve(o);)fe();return ge(e,se)},Ne=function(e,t){return xe(function(e,t){var r=-1,n=44;do{switch(ve(n)){case 0:38===n&&12===me()&&(t[r]=1),e[r]+=je(se-1,t,r);break;case 2:e[r]+=Ee(n);break;case 4:if(44===n){e[++r]=58===me()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=K(n)}}while(n=fe());return e}(ye(e),t))},$e=new WeakMap,ze=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||$e.get(r))&&!n){$e.set(e,!0);for(var o=[],i=Ne(t,o),a=r.props,l=0,s=0;l<i.length;l++)for(var c=0;c<a.length;c++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[c]):a[c]+" "+i[l]}}},Be=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},De=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},Fe=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Ge=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},He=function(e,t,r){Fe(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Ge(e)):function(e,t){for(var r=e-1;r>=0;r--)if(!Fe(t[r]))return!0;return!1}(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Ge(e)))};function We(e,t){switch(function(e,t){return 45^ee(e,0)?(((t<<2^ee(e,0))<<2^ee(e,1))<<2^ee(e,2))<<2^ee(e,3):0}(e,t)){case 5103:return H+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+G+e+F+e+e;case 6828:case 4268:return H+e+F+e+e;case 6165:return H+e+F+"flex-"+e+e;case 5187:return H+e+J(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+F+"flex-$1$2")+e;case 5443:return H+e+F+"flex-item-"+J(e,/flex-|-self/,"")+e;case 4675:return H+e+F+"flex-line-pack"+J(e,/align-content|flex-|-self/,"")+e;case 5548:return H+e+F+J(e,"shrink","negative")+e;case 5292:return H+e+F+J(e,"basis","preferred-size")+e;case 6060:return H+"box-"+J(e,"-grow","")+H+e+F+J(e,"grow","positive")+e;case 4554:return H+J(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return J(J(J(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return J(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return J(J(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+F+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4095:case 3583:case 4068:case 2532:return J(e,/(.+)-inline(.+)/,H+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(re(e)-1-t>6)switch(ee(e,t+1)){case 109:if(45!==ee(e,t+4))break;case 102:return J(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+G+(108==ee(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Q(e,"stretch")?We(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ee(e,t+1))break;case 6444:switch(ee(e,re(e)-3-(~Q(e,"!important")&&10))){case 107:return J(e,":",":"+H)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(45===ee(e,14)?"inline-":"")+"box$3$1"+H+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(ee(e,t+11)){case 114:return H+e+F+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+F+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+F+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return H+e+F+e+e}return e}var Ye,Ue=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case U:e.return=We(e.value,e.length);break;case V:return Oe([pe(e,{value:J(e.value,"@","@"+H)})],n);case Y:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Oe([pe(e,{props:[J(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Oe([pe(e,{props:[J(t,/:(plac\w+)/,":"+H+"input-$1")]}),pe(e,{props:[J(t,/:(plac\w+)/,":-moz-$1")]}),pe(e,{props:[J(t,/:(plac\w+)/,F+"input-$1")]})],n)}return""}))}}],Ve=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;Ye=function(e){var t=e.match(Ve);if(t)return t[t.length-1]};var qe=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n=e.stylisPlugins||Ue;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,a={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)a[t[r]]=!0;l.push(e)}));var s=[ze,Be];s.push(function(e){return function(t,r,n){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent?t.parent.children:n,a=i.length-1;a>=0;a--){var l=i[a];if(l.line<t.line)break;if(l.column<t.column){if(De(l))return;break}}o.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return p.compat}}),He);var c,d=[Pe,function(e){e.root||(e.return?c.insert(e.return):e.value&&e.type!==W&&c.insert(e.value+"{}"))}],u=function(e){var t=ne(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(s.concat(n,d));i=function(e,t,r,n){if(c=r,Ye){var o=Ye(t.styles);o&&(c={insert:function(e){r.insert(e+o)}})}!function(e){Oe(Ae(e),u)}(e?e+"{"+t.styles+"}":t.styles),n&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new D({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return p.sheet.hydrate(l),p};function Ke(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Xe={exports:{}},Ze={},Je="function"==typeof Symbol&&Symbol.for,Qe=Je?Symbol.for("react.element"):60103,et=Je?Symbol.for("react.portal"):60106,tt=Je?Symbol.for("react.fragment"):60107,rt=Je?Symbol.for("react.strict_mode"):60108,nt=Je?Symbol.for("react.profiler"):60114,ot=Je?Symbol.for("react.provider"):60109,it=Je?Symbol.for("react.context"):60110,at=Je?Symbol.for("react.async_mode"):60111,lt=Je?Symbol.for("react.concurrent_mode"):60111,st=Je?Symbol.for("react.forward_ref"):60112,ct=Je?Symbol.for("react.suspense"):60113,dt=Je?Symbol.for("react.suspense_list"):60120,ut=Je?Symbol.for("react.memo"):60115,pt=Je?Symbol.for("react.lazy"):60116,ht=Je?Symbol.for("react.block"):60121,ft=Je?Symbol.for("react.fundamental"):60117,mt=Je?Symbol.for("react.responder"):60118,bt=Je?Symbol.for("react.scope"):60119;function gt(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Qe:switch(e=e.type){case at:case lt:case tt:case nt:case rt:case ct:return e;default:switch(e=e&&e.$$typeof){case it:case st:case pt:case ut:case ot:return e;default:return t}}case et:return t}}}function vt(e){return gt(e)===lt}Ze.AsyncMode=at,Ze.ConcurrentMode=lt,Ze.ContextConsumer=it,Ze.ContextProvider=ot,Ze.Element=Qe,Ze.ForwardRef=st,Ze.Fragment=tt,Ze.Lazy=pt,Ze.Memo=ut,Ze.Portal=et,Ze.Profiler=nt,Ze.StrictMode=rt,Ze.Suspense=ct,Ze.isAsyncMode=function(e){return vt(e)||gt(e)===at},Ze.isConcurrentMode=vt,Ze.isContextConsumer=function(e){return gt(e)===it},Ze.isContextProvider=function(e){return gt(e)===ot},Ze.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Qe},Ze.isForwardRef=function(e){return gt(e)===st},Ze.isFragment=function(e){return gt(e)===tt},Ze.isLazy=function(e){return gt(e)===pt},Ze.isMemo=function(e){return gt(e)===ut},Ze.isPortal=function(e){return gt(e)===et},Ze.isProfiler=function(e){return gt(e)===nt},Ze.isStrictMode=function(e){return gt(e)===rt},Ze.isSuspense=function(e){return gt(e)===ct},Ze.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===tt||e===lt||e===nt||e===rt||e===ct||e===dt||"object"==typeof e&&null!==e&&(e.$$typeof===pt||e.$$typeof===ut||e.$$typeof===ot||e.$$typeof===it||e.$$typeof===st||e.$$typeof===ft||e.$$typeof===mt||e.$$typeof===bt||e.$$typeof===ht)},Ze.typeOf=gt,Xe.exports=Ze;var yt=Xe.exports,xt={};xt[yt.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},xt[yt.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Et(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")})),n}var St=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Ct=function(e,t,r){St(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var wt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Rt="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",kt="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",At=/[A-Z]|^ms/g,_t=/_EMO_([^_]+?)_([^]*?)_EMO_/g,It=function(e){return 45===e.charCodeAt(1)},Tt=function(e){return null!=e&&"boolean"!=typeof e},Lt=Me((function(e){return It(e)?e:e.replace(At,"-$&").toLowerCase()})),Ot=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(_t,(function(e,t,r){return Ft={name:t,styles:r,next:Ft},t}))}return 1===wt[e]||It(e)||"number"!=typeof t||0===t?t:t+"px"},Pt=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Mt=["normal","none","initial","inherit","unset"],jt=Ot,Nt=/^-ms-/,$t=/-(.)/g,zt={};Ot=function(e,t){if("content"===e&&("string"!=typeof t||-1===Mt.indexOf(t)&&!Pt.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=jt(e,t);return""===r||It(e)||-1===e.indexOf("-")||void 0!==zt[e]||(zt[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Nt,"ms-").replace($t,(function(e,t){return t.toUpperCase()}))+"?")),r};var Bt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Dt(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles){if("NO_COMPONENT_SELECTOR"===String(n))throw new Error(Bt);return n}switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return Ft={name:o.name,styles:o.styles,next:Ft},o.name;var i=r;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Ft={name:a.name,styles:a.styles,next:Ft},a=a.next;return i.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Dt(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a){var l=a;null!=t&&void 0!==t[l]?n+=i+"{"+t[l]+"}":Tt(l)&&(n+=Lt(i)+":"+Ot(i,l)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(Bt);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Dt(e,t,a);switch(i){case"animation":case"animationName":n+=Lt(i)+":"+s+";";break;default:"undefined"===i&&console.error(kt),n+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)Tt(a[c])&&(n+=Lt(i)+":"+Ot(i,a[c])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var l=Ft,s=r(e);return Ft=l,Dt(e,t,s)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var c=[],d=r.replace(_t,(function(e,t,r){var n="animation"+c.length;return c.push("const "+n+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+n+"}"}));c.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(c,["`"+d+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+d+"`")}var u=r;if(null==t)return u;var p=t[u];return void 0!==p?p:u}var Ft,Gt=/label:\s*([^\s;{]+)\s*(;|$)/g;function Ht(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";Ft=void 0;var i=e[0];if(null==i||void 0===i.raw)n=!1,o+=Dt(r,t,i);else{var a=i;void 0===a[0]&&console.error(Rt),o+=a[0]}for(var l=1;l<e.length;l++)if(o+=Dt(r,t,e[l]),n){var s=i;void 0===s[l]&&console.error(Rt),o+=s[l]}Gt.lastIndex=0;for(var c,d="";null!==(c=Gt.exec(o));)d+="-"+c[1];var u=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+d;return{name:u,styles:o,next:Ft,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}}var Wt=!!y.useInsertionEffect&&y.useInsertionEffect,Yt=Wt||function(e){return e()},Ut=Wt||y.useLayoutEffect,Vt=y.createContext("undefined"!=typeof HTMLElement?qe({key:"css"}):null);Vt.displayName="EmotionCacheContext";var qt=Vt.Provider,Kt=function(e){return x((function(t,r){var n=E(Vt);return e(t,n,r)}))},Xt=y.createContext({});Xt.displayName="EmotionThemeContext";var Zt={}.hasOwnProperty,Jt=function(e){var t=e.split(".");return t[t.length-1]},Qt=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?Jt(t[1]):void 0},er=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),tr=function(e){return e.replace(/\$/g,"-")},rr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",nr="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",or=function(e,t){if("string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var r={};for(var n in t)Zt.call(t,n)&&(r[n]=t[n]);if(r[rr]=e,"undefined"!=typeof globalThis&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&t.css&&("object"!=typeof t.css||!("name"in t.css)||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var o=function(e){if(e)for(var t=e.split("\n"),r=0;r<t.length;r++){var n=Qt(t[r]);if(n){if(er.has(n))break;if(/^[A-Z]/.test(n))return tr(n)}}}((new Error).stack);o&&(r[nr]=o)}return r},ir=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return St(t,r,n),Yt((function(){return Ct(t,r,n)})),null},ar=Kt((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var o=e[rr],i=[n],a="";"string"==typeof e.className?a=Et(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var l=Ht(i,void 0,y.useContext(Xt));if(-1===l.name.indexOf("-")){var s=e[nr];s&&(l=Ht([l,"label:"+s+";"]))}a+=t.key+"-"+l.name;var c={};for(var d in e)Zt.call(e,d)&&"css"!==d&&d!==rr&&d!==nr&&(c[d]=e[d]);return c.className=a,r&&(c.ref=r),y.createElement(y.Fragment,null,y.createElement(ir,{cache:t,serialized:l,isStringTag:"string"==typeof o}),y.createElement(o,c))}));ar.displayName="EmotionCssPropInternal";var lr,sr,cr=ar,dr=function(e,t){var r=arguments;if(null==t||!Zt.call(t,"css"))return y.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=cr,o[1]=or(e,t);for(var i=2;i<n;i++)o[i]=r[i];return y.createElement.apply(null,o)};lr=dr||(dr={}),sr||(sr=lr.JSX||(lr.JSX={}));var ur=!1,pr=Kt((function(e,t){!ur&&("className"in e&&e.className||"css"in e&&e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),ur=!0);var r=Ht([e.styles],void 0,y.useContext(Xt)),n=y.useRef();return Ut((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),n.current=[o,i],function(){o.flush()}}),[t]),Ut((function(){var e=n.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Ct(t,r.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",r,o,!1)}}),[t,r.name]),null}));function hr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ht(t)}function fr(){var e=hr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}pr.displayName="EmotionGlobal";var mr=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var i=t[n];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var l in void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",i)i[l]&&l&&(a&&(a+=" "),a+=l);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};var br=function(e){var t=e.cache,r=e.serializedArr;return Yt((function(){for(var e=0;e<r.length;e++)Ct(t,r[e],!1)})),null},gr=Kt((function(e,t){var r=!1,n=[],o=function(){if(r)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var a=Ht(o,t.registered);return n.push(a),St(t,a,!1),t.key+"-"+a.name},i={css:o,cx:function(){if(r)throw new Error("cx can only be used during render");for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return function(e,t,r){var n=[],o=Et(e,n,r);return n.length<2?r:o+t(n)}(t.registered,o,mr(n))},theme:y.useContext(Xt)},a=e.children(i);return r=!0,y.createElement(y.Fragment,null,y.createElement(br,{cache:t,serializedArr:n}),a)}));gr.displayName="EmotionClassNames";var vr="undefined"!=typeof document,yr="undefined"!=typeof jest||"undefined"!=typeof vi;if(vr&&!yr){var xr="undefined"!=typeof globalThis?globalThis:vr?window:global,Er="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";xr[Er]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),xr[Er]=!0}var Sr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Cr=Me((function(e){return Sr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),wr=function(e){return"theme"!==e},Rr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Cr:wr},kr=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},Ar="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",_r=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return St(t,r,n),Yt((function(){return Ct(t,r,n)})),null},Ir=function e(t,r){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var n,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var l=kr(t,r,i),s=l||Rr(a),c=!s("as");return function(){var d=arguments,u=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&u.push("label:"+n+";"),null==d[0]||void 0===d[0].raw)u.push.apply(u,d);else{var p=d[0];void 0===p[0]&&console.error(Ar),u.push(p[0]);for(var h=d.length,f=1;f<h;f++)void 0===p[f]&&console.error(Ar),u.push(d[f],p[f])}var m=Kt((function(e,t,r){var n=c&&e.as||a,i="",d=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=y.useContext(Xt)}"string"==typeof e.className?i=Et(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var f=Ht(u.concat(d),t.registered,p);i+=t.key+"-"+f.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===l?Rr(n):s,b={};for(var g in e)c&&"as"===g||m(g)&&(b[g]=e[g]);return b.className=i,r&&(b.ref=r),y.createElement(y.Fragment,null,y.createElement(_r,{cache:t,serialized:f,isStringTag:"string"==typeof n}),y.createElement(n,b))}));return m.displayName=void 0!==n?n:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=u,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return void 0===o?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,n){return e(t,z({},r,n,{shouldForwardProp:kr(m,n,!0)})).apply(void 0,u)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Ir[e]=Ir(e)}));var Tr={exports:{}},Lr={},Or=S,Pr=Symbol.for("react.element"),Mr=Symbol.for("react.fragment"),jr=Object.prototype.hasOwnProperty,Nr=Or.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$r={key:!0,ref:!0,__self:!0,__source:!0};function zr(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)jr.call(t,n)&&!$r.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Pr,type:e,key:i,ref:a,props:o,_owner:Nr.current}}Lr.Fragment=Mr,Lr.jsx=zr,Lr.jsxs=zr,Tr.exports=Lr;var Br=Tr.exports;const Dr=new Map;function Fr(e){const{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>{return t(null==(n=e)||0===Object.keys(n).length?r:e);var n}:t;return Br.jsx(pr,{styles:n})}
7
+ System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use strict";var t,r,n,o,i,a,s,l,c,d,u,p,h,f,m,b,g,v,y,x,E,S,C,w,R,k,A,_,I,T,L,O;return{setters:[function(e){t=e.useOptions,r=e.useEffect,n=e.onTakeSnapshot,o=e.useKeyboard,i=e.useMemo,a=e.useState,s=e.useElement,l=e.useApp,c=e.useStaleLayout,d=e.useEmbed,u=e.useModel,p=e.useTranslator,h=e.useEmitter,f=e.useInteractionState,m=e.useTheme,b=e.usePromise,g=e.onContextMenu,v=e.useImperativeHandle},function(e){y=e,x=e.forwardRef,E=e.useContext,S=e.default,C=e.isValidElement,w=e.cloneElement,R=e.Children,k=e.useState,A=e.useEffect,_=e.useRef,I=e.useMemo,T=e.useCallback},function(e){L=e.default,O=e}],execute:function(){e("default",(function(e){const t=new ou({translator:e.translator});return{qae:{properties:gm,data:bm},ext:nf({env:e,propertyHandlerData:t}),component(){const r=Uf(),n=p();i((()=>{!function(e){if(e&&e.get&&e.add){const t="LayoutContainer.EmptyList.AddContent";if(e.get(t)!==t)return;Object.keys(P).forEach((t=>{e.add(P[t])}))}}(n)}),[n]);const{dataHandler:o,model:s,accessibility:l,setAccessibility:c,interactions:d,element:u,modifiedLayout:h}=r,{renderHelper:f,sharedContainerUtilities:m,activeTabId:b}=mm({element:u,models:r,env:e});of({containerId:s?.id||"",element:u,sharedContainerUtilities:m,translator:n,dataHandler:o,propertyHandlerData:t,renderHelper:f});const[g,y]=a(!0);Cf({isContainerActive:g,activeTabId:b,renderHelper:f,modifiedLayout:h}),Ef({element:u,accessibility:l,setAccessibility:c,renderHelper:f,interactions:d,env:e,models:r});const{getViewState:x}=cf(f,ym);v((()=>({getViewState:x,getChildrenObjects(){const e=f.getChildrenObjects();return vm(e)},updateActiveState(e){y(e)}})),[])}}}));var P={Container_Label_Visualizations:{id:"Container.Label.Visualizations",locale:{"de-DE":"Visualisierungen","en-US":"Visualizations","es-ES":"Visualizaciones","fr-FR":"Visualisations","it-IT":"Visualizzazioni","ja-JP":"ビジュアライゼーション","ko-KR":"시각화","nl-NL":"Visualisaties","pl-PL":"Wizualizacje","pt-BR":"Visualizações","ru-RU":"Визуализации","sv-SE":"Visualiseringar","tr-TR":"Görselleştirmeler","zh-CN":"可视化","zh-TW":"視覺化"}},LayoutContainer_EmptyList_AddContent:{id:"LayoutContainer.EmptyList.AddContent",locale:{"de-DE":"Inhalt hinzufügen","en-US":"Add content","es-ES":"Añadir contenido","fr-FR":"Ajouter un contenu","it-IT":"Aggiungi contenuto","ja-JP":"コンテンツを追加","ko-KR":"콘텐츠 추가","nl-NL":"Inhoud toevoegen","pl-PL":"Dodaj zawartość","pt-BR":"Adicionar conteúdo","ru-RU":"Добавить содержимое","sv-SE":"Lägg till innehåll","tr-TR":"İçerik ekle","zh-CN":"添加内容","zh-TW":"新增內容"}},LayoutContainer_EmptyList_EmptyHint:{id:"LayoutContainer.EmptyList.EmptyHint",locale:{"de-DE":"Leere Sammelbox","en-US":"Empty container","es-ES":"Contenedor vacío","fr-FR":"Conteneur vide","it-IT":"Contenitore vuoto","ja-JP":"コンテナが空です","ko-KR":"빈 컨테이너","nl-NL":"Lege container","pl-PL":"Pusty kontener","pt-BR":"Contêiner vazio","ru-RU":"Пустой контейнер","sv-SE":"Tom behållare","tr-TR":"Kapsayıcı boş","zh-CN":"空容器","zh-TW":"空的容器"}},LayoutContainer_Object_Charts:{id:"LayoutContainer.Object.Charts",locale:{"de-DE":"Diagramme","en-US":"Charts","es-ES":"Gráficos","fr-FR":"Graphiques","it-IT":"Grafici","ja-JP":"チャート","ko-KR":"차트","nl-NL":"Diagrammen","pl-PL":"Wykresy","pt-BR":"Gráficos","ru-RU":"Диаграммы","sv-SE":"Diagram","tr-TR":"Grafikler","zh-CN":"图表","zh-TW":"圖表"}},LayoutContainer_Object_CustomObjects:{id:"LayoutContainer.Object.CustomObjects",locale:{"de-DE":"Benutzerdefinierte Objekte","en-US":"Custom objects","es-ES":"Objetos personalizados","fr-FR":"Objets personnalisés","it-IT":"Oggetti personalizzati","ja-JP":"カスタム オブジェクト","ko-KR":"사용자 지정 개체","nl-NL":"Aangepaste objecten","pl-PL":"Obiekty niestandardowe","pt-BR":"Objetos personalizados","ru-RU":"Пользовательские объекты","sv-SE":"Anpassade objekt","tr-TR":"Özel nesneler","zh-CN":"自定义对象","zh-TW":"自訂物件"}},LayoutContainer_Object_Description:{id:"LayoutContainer.Object.Description",locale:{"de-DE":"Die Sammelbox besteht aus folgenden Objekten: {0}. Verwenden Sie zum Navigieren die Nach-links- und Nach-rechts-Pfeiltasten. Drücken Sie die Eingabetaste oder die Leertaste, um die Diagramme auszuwählen.","en-US":"Container consists of the following objects: {0}. Use left and right arrow keys to navigate through the inner charts. Press enter or space to select the charts.","es-ES":"El contenedor consta de los siguientes objetos: {0}. Utilice las teclas de flecha izquierda y derecha para navegar por los gráficos interiores. Pulse Intro o espacio para seleccionar los gráficos.","fr-FR":"Le conteneur comprend les objets suivants : {0}. Utilisez les touches de direction gauche et droite pour parcourir les graphiques internes. Appuyez sur la touche Entrée ou espace pour sélectionner les graphiques.","it-IT":"Il contenitore include i seguenti oggetti: {0}. Utilizzare i tasti freccia sinistro e destro per navigare tra i grafici interni. Per selezionare i grafici, premere Invio o Spazio.","ja-JP":"コンテナは以下のオブジェクトで構成されます: {0}。左右の矢印キーを使用して、内部のチャートをナビゲートします。Enter キーかスペース キーを押してチャートを選択します。","ko-KR":"컨테이너는 다음 개체로 구성됩니다. {0}. 왼쪽 및 오른쪽 화살표 키를 사용하여 내부 차트를 탐색하십시오. 차트를 선택하려면 Enter 키나 스페이스바를 누르십시오.","nl-NL":"Container bevat de volgende objecten: {0}. Navigeer met de pijl-links en pijl-rechts langs de binnenste diagrammen. Druk op Enter of de spatiebalk om de diagrammen te selecteren.","pl-PL":"Kontener zawiera następujące obiekty: {0}. Do nawigacji po wewnętrznych wykresach użyj lewego i prawego klawisza strzałki. Naciśnij klawisz Enter lub klawisz spacji, aby wybrać wykresy.","pt-BR":"O contêiner consiste nos seguintes objetos: {0}. Use as setas para a esquerda e para a direita para navegar pelos gráficos internos. Pressione Enter ou espaço para selecionar os gráficos.","ru-RU":"Контейнер состоит из следующих объектов: {0}. Для навигации по внутренним диаграммам используйте клавиши со стрелками влево и вправо. Нажмите клавишу Enter или пробел, чтобы выбрать диаграммы.","sv-SE":"Behållaren innehåller följande objekt: {0}. Använd vänster och höger piltangent för att navigera genom de inre diagrammen. Tryck på returtangenten eller mellanslag för att välja diagram.","tr-TR":"Kapsayıcı şu nesneleri içerir: {0}. İç grafikler arasında gezinmek için sağ ve sol ok tuşlarını kullanın. Grafik seçmek için enter veya boşluk tuşuna basın.","zh-CN":"容器由以下对象组成:{0}。使用左右箭头键浏览内部图表。按回车或空格键选择图表。","zh-TW":"容器由下列物件組成:{0}。使用向左和向右方向鍵瀏覽內部圖表。按下 Enter 或空間以選取圖表。"}},LayoutContainer_Object_MasterItems:{id:"LayoutContainer.Object.MasterItems",locale:{"de-DE":"Master-Elemente","en-US":"Master items","es-ES":"Elementos maestros","fr-FR":"Éléments principaux","it-IT":"Voci principali","ja-JP":"マスター アイテム","ko-KR":"마스터 항목","nl-NL":"Masteritems","pl-PL":"Elementy główne","pt-BR":"Itens mestre","ru-RU":"Основные элементы","sv-SE":"Originalobjekt","tr-TR":"Ana öğeler","zh-CN":"主条目","zh-TW":"主項目"}},LayoutContainer_Object_Untitled:{id:"LayoutContainer.Object.Untitled",locale:{"de-DE":"Unbenanntes Objekt","en-US":"Untitled object","es-ES":"Objeto sin título","fr-FR":"Objet sans titre","it-IT":"Oggetto senza nome","ja-JP":"無題のオブジェクト","ko-KR":"제목 없는 개체","nl-NL":"Object zonder titel","pl-PL":"Obiekt bez tytułu","pt-BR":"Objeto sem título","ru-RU":"Объект без названия","sv-SE":"Objekt utan namn","tr-TR":"Başlıksız nesne","zh-CN":"无标题对象","zh-TW":"無標題的物件"}},TabContainer_Navigation_Horizontal:{id:"TabContainer.Navigation.Horizontal",locale:{"de-DE":"Verwenden Sie die Nach-links- und Nach-rechts-Pfeiltasten, um durch die Registerkarten zu navigieren. Drücken Sie die Eingabetaste oder die Leertaste, um die Registerkarten auszuwählen.","en-US":"Use left and right arrow keys to navigate through the tabs. Press Enter or Space to select the tabs.","es-ES":"Utilice las teclas de flecha izquierda y derecha para navegar por las pestañas. Pulse Intro o Espacio para seleccionar las pestañas.","fr-FR":"Utilisez les touches des flèches gauche et droite pour naviguer à travers les onglets. Appuyez sur la touche Entrée ou Espace pour sélectionner les onglets.","it-IT":"Utilizzare i tasti freccia destra e sinistra per navigare tra le schede. Per selezionare le schede, premere Invio o Spazio.","ja-JP":"左右の矢印キーで、タブ間を移動できます。Enter キーかスペース キーを押せば、タブを選択できます。","ko-KR":"탭을 탐색하려면 왼쪽 및 오른쪽 화살표 키를 사용합니다. 탭을 선택하려면 Enter 키 또는 스페이스바를 누르십시오.","nl-NL":"Gebruik de pijl-links en pijl-rechts om te navigeren tussen de tabbladen. Druk op Enter of de spatiebalk om de tabbladen te selecteren.","pl-PL":"Do poruszania się po kartach użyj klawiszy strzałek w lewo i w prawo. Naciśnij klawisz Enter lub klawisz spacji, aby wybrać karty.","pt-BR":"Use as setas para a esquerda e para a direita para navegar pelas guias. Pressione Enter ou Espaço para selecionar as guias.","ru-RU":'Используйте стрелки влево и вправо для навигации по вкладкам. Нажмите Enter или "Пробел", чтобы выбрать вкладку.',"sv-SE":"Använd vänster och höger piltangent för att navigera mellan flikarna. Tryck på returtangenten eller mellanslag för att välja flikar.","tr-TR":"Sekmeler arasında gezinmek için sağ ve sol ok tuşlarını kullanın. Sekme seçmek için Enter veya Boşluk tuşuna basın.","zh-CN":"使用左右箭头键浏览选项卡。按 Enter 或空格键选择选项卡。","zh-TW":"使用向左和向右方向鍵瀏覽索引標籤。按下 Enter 或空格鍵以選取索引標籤。"}},TabContainer_Navigation_Vertical:{id:"TabContainer.Navigation.Vertical",locale:{"de-DE":"Verwenden Sie die Nach-unten- und Nach-oben-Pfeiltasten, um durch die Registerkarten zu navigieren. Drücken Sie die Eingabetaste oder die Leertaste, um die Registerkarten auszuwählen.","en-US":"Use up and down arrow keys to navigate through the tabs. Press Enter or Space to select the tabs.","es-ES":"Utilice las teclas de flecha arriba y abajo para navegar por las pestañas. Pulse Intro o Espacio para seleccionar las pestañas.","fr-FR":"Utilisez les touches des flèches haut et bas pour naviguer à travers les onglets. Appuyez sur la touche Entrée ou Espace pour sélectionner les onglets.","it-IT":"Per navigare tra le schede, usare i tasti freccia su e giù. Per selezionare le schede, premere Invio o Spazio.","ja-JP":"上下の矢印キーで、タブ間を移動できます。Enter キーかスペース キーを押せば、タブを選択できます。","ko-KR":"탭을 탐색하려면 위쪽 및 아래쪽 화살표 키를 사용합니다. 탭을 선택하려면 Enter 키 또는 스페이스바를 누르십시오.","nl-NL":"Gebruik de pijl-omhoog en pijl-omlaag om te navigeren tussen de tabbladen. Druk op Enter of de spatiebalk om de tabbladen te selecteren.","pl-PL":"Do poruszania się po kartach użyj klawiszy strzałek w górę i w dół. Naciśnij klawisz Enter lub klawisz spacji, aby wybrać karty.","pt-BR":"Use as setas para cima e para baixo para navegar pelas guias. Pressione Enter ou Espaço para selecionar as guias.","ru-RU":'Используйте стрелки вверх и вниз для навигации по вкладкам. Нажмите Enter или "Пробел", чтобы выбрать вкладку.',"sv-SE":"Använd piltangenterna upp och ner för att navigera genom flikarna. Tryck på returtangenten eller mellanslag för att välja flikar.","tr-TR":"Sekmeler arasında gezinmek için yukarı ve aşağı ok tuşlarını kullanın. Sekme seçmek için Enter veya Boşluk tuşuna basın.","zh-CN":"使用上下箭头键浏览选项卡。按 Enter 或空格键选择选项卡。","zh-TW":"使用向上和向下方向鍵以瀏覽索引標籤。按下 Enter 或空格鍵以選取索引標籤。"}},TabContainer_Object_Description:{id:"TabContainer.Object.Description",locale:{"de-DE":"Die Registerkarten-Sammelbox besteht aus folgenden Objekten: {0}.","en-US":"Tab container consists of the following objects: {0}.","es-ES":"El contenedor de pestañas contiene los siguientes objetos: {0}.","fr-FR":"Le conteneur d'onglets comprend les objets suivants : {0}.","it-IT":"Il contenitore a schede include i seguenti oggetti: {0}.","ja-JP":"タブ コンテナは以下のオブジェクトで構成されています: {0}。","ko-KR":"탭 컨테이너는 다음 개체로 구성됩니다. {0}.","nl-NL":"Tabbladcontainer bevat de volgende objecten: {0}.","pl-PL":"Kontener kart zawiera następujące obiekty: {0}.","pt-BR":"O contêiner de guias consiste nos seguintes objetos: {0}.","ru-RU":"Контейнер вкладок содержит следующие объекты: {0}.","sv-SE":"Flikbehållaren innehåller följande objekt: {0}.","tr-TR":"Sekme kapsayıcısı şu nesneleri içerir: {0}.","zh-CN":"选项卡容器由以下对象组成:{0}。","zh-TW":"索引標籤容器由下列物件組成:{0}。"}},TabContainer_Object_Untitled:{id:"TabContainer.Object.Untitled",locale:{"de-DE":"Unbenanntes Objekt","en-US":"Untitled object","es-ES":"Objeto sin título","fr-FR":"Objet sans titre","it-IT":"Oggetto senza nome","ja-JP":"無題のオブジェクト","ko-KR":"제목 없는 개체","nl-NL":"Object zonder titel","pl-PL":"Obiekt bez tytułu","pt-BR":"Objeto sem título","ru-RU":"Объект без названия","sv-SE":"Objekt utan namn","tr-TR":"Başlıksız nesne","zh-CN":"无标题对象","zh-TW":"無標題的物件"}}};function M(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var j=Object.freeze({__proto__:null,default:M}),N="$$material";function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$.apply(null,arguments)}function z(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var B=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0!==e.speedy&&e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1],r=64===e.charCodeAt(0)&&105===e.charCodeAt(1);if(r&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!r,this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(t){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),D="-ms-",F="-moz-",G="-webkit-",H="comm",W="rule",Y="decl",U="@keyframes",V=Math.abs,q=String.fromCharCode,K=Object.assign;function X(e){return e.trim()}function Z(e,t,r){return e.replace(t,r)}function J(e,t){return e.indexOf(t)}function Q(e,t){return 0|e.charCodeAt(t)}function ee(e,t,r){return e.slice(t,r)}function te(e){return e.length}function re(e){return e.length}function ne(e,t){return t.push(e),e}var oe=1,ie=1,ae=0,se=0,le=0,ce="";function de(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:oe,column:ie,length:a,return:""}}function ue(e,t){return K(de("",null,null,"",null,null,0),e,{length:-e.length},t)}function pe(){return le=se>0?Q(ce,--se):0,ie--,10===le&&(ie=1,oe--),le}function he(){return le=se<ae?Q(ce,se++):0,ie++,10===le&&(ie=1,oe++),le}function fe(){return Q(ce,se)}function me(){return se}function be(e,t){return ee(ce,e,t)}function ge(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ve(e){return oe=ie=1,ae=te(ce=e),se=0,[]}function ye(e){return ce="",e}function xe(e){return X(be(se-1,Ce(91===e?e+2:40===e?e+1:e)))}function Ee(e){for(;(le=fe())&&le<33;)he();return ge(e)>2||ge(le)>3?"":" "}function Se(e,t){for(;--t&&he()&&!(le<48||le>102||le>57&&le<65||le>70&&le<97););return be(e,me()+(t<6&&32==fe()&&32==he()))}function Ce(e){for(;he();)switch(le){case e:return se;case 34:case 39:34!==e&&39!==e&&Ce(le);break;case 40:41===e&&Ce(e);break;case 92:he()}return se}function we(e,t){for(;he()&&e+le!==57&&(e+le!==84||47!==fe()););return"/*"+be(t,se-1)+"*"+q(47===e?e:he())}function Re(e){for(;!ge(fe());)he();return be(e,se)}function ke(e){return ye(Ae("",null,null,null,[""],e=ve(e),0,[0],e))}function Ae(e,t,r,n,o,i,a,s,l){for(var c=0,d=0,u=a,p=0,h=0,f=0,m=1,b=1,g=1,v=0,y="",x=o,E=i,S=n,C=y;b;)switch(f=v,v=he()){case 40:if(108!=f&&58==Q(C,u-1)){-1!=J(C+=Z(xe(v),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:C+=xe(v);break;case 9:case 10:case 13:case 32:C+=Ee(f);break;case 92:C+=Se(me()-1,7);continue;case 47:switch(fe()){case 42:case 47:ne(Ie(we(he(),me()),t,r),l);break;default:C+="/"}break;case 123*m:s[c++]=te(C)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+d:-1==g&&(C=Z(C,/\f/g,"")),h>0&&te(C)-u&&ne(h>32?Te(C+";",n,r,u-1):Te(Z(C," ","")+";",n,r,u-2),l);break;case 59:C+=";";default:if(ne(S=_e(C,t,r,c,d,o,s,y,x=[],E=[],u),i),123===v)if(0===d)Ae(C,t,S,S,x,i,u,s,E);else switch(99===p&&110===Q(C,3)?100:p){case 100:case 108:case 109:case 115:Ae(e,S,S,n&&ne(_e(e,S,S,0,0,o,s,y,o,x=[],u),E),o,E,u,s,n?x:E);break;default:Ae(C,S,S,S,[""],E,0,s,E)}}c=d=h=0,m=g=1,y=C="",u=a;break;case 58:u=1+te(C),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==pe())continue;switch(C+=q(v),v*m){case 38:g=d>0?1:(C+="\f",-1);break;case 44:s[c++]=(te(C)-1)*g,g=1;break;case 64:45===fe()&&(C+=xe(he())),p=fe(),d=u=te(y=C+=Re(me())),v++;break;case 45:45===f&&2==te(C)&&(m=0)}}return i}function _e(e,t,r,n,o,i,a,s,l,c,d){for(var u=o-1,p=0===o?i:[""],h=re(p),f=0,m=0,b=0;f<n;++f)for(var g=0,v=ee(e,u+1,u=V(m=a[f])),y=e;g<h;++g)(y=X(m>0?p[g]+" "+v:Z(v,/&\f/g,p[g])))&&(l[b++]=y);return de(e,t,r,0===o?W:s,l,c,d)}function Ie(e,t,r){return de(e,t,r,H,q(le),ee(e,2,-2),0)}function Te(e,t,r,n){return de(e,t,r,Y,ee(e,0,n),ee(e,n+1,-1),n)}function Le(e,t){for(var r="",n=re(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Oe(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Y:return e.return=e.return||e.value;case H:return"";case U:return e.return=e.value+"{"+Le(e.children,n)+"}";case W:e.value=e.props.join(",")}return te(r=Le(e.children,n))?e.return=e.value+"{"+r+"}":""}function Pe(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Me=function(e,t,r){for(var n=0,o=0;n=o,o=fe(),38===n&&12===o&&(t[r]=1),!ge(o);)he();return be(e,se)},je=function(e,t){return ye(function(e,t){var r=-1,n=44;do{switch(ge(n)){case 0:38===n&&12===fe()&&(t[r]=1),e[r]+=Me(se-1,t,r);break;case 2:e[r]+=xe(n);break;case 4:if(44===n){e[++r]=58===fe()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=q(n)}}while(n=he());return e}(ve(e),t))},Ne=new WeakMap,$e=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Ne.get(r))&&!n){Ne.set(e,!0);for(var o=[],i=je(t,o),a=r.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},ze=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Be=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},De=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Fe=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Ge=function(e,t,r){De(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Fe(e)):function(e,t){for(var r=e-1;r>=0;r--)if(!De(t[r]))return!0;return!1}(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Fe(e)))};function He(e,t){switch(function(e,t){return 45^Q(e,0)?(((t<<2^Q(e,0))<<2^Q(e,1))<<2^Q(e,2))<<2^Q(e,3):0}(e,t)){case 5103:return G+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return G+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return G+e+F+e+D+e+e;case 6828:case 4268:return G+e+D+e+e;case 6165:return G+e+D+"flex-"+e+e;case 5187:return G+e+Z(e,/(\w+).+(:[^]+)/,G+"box-$1$2"+D+"flex-$1$2")+e;case 5443:return G+e+D+"flex-item-"+Z(e,/flex-|-self/,"")+e;case 4675:return G+e+D+"flex-line-pack"+Z(e,/align-content|flex-|-self/,"")+e;case 5548:return G+e+D+Z(e,"shrink","negative")+e;case 5292:return G+e+D+Z(e,"basis","preferred-size")+e;case 6060:return G+"box-"+Z(e,"-grow","")+G+e+D+Z(e,"grow","positive")+e;case 4554:return G+Z(e,/([^-])(transform)/g,"$1"+G+"$2")+e;case 6187:return Z(Z(Z(e,/(zoom-|grab)/,G+"$1"),/(image-set)/,G+"$1"),e,"")+e;case 5495:case 3959:return Z(e,/(image-set\([^]*)/,G+"$1$`$1");case 4968:return Z(Z(e,/(.+:)(flex-)?(.*)/,G+"box-pack:$3"+D+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+G+e+e;case 4095:case 3583:case 4068:case 2532:return Z(e,/(.+)-inline(.+)/,G+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(te(e)-1-t>6)switch(Q(e,t+1)){case 109:if(45!==Q(e,t+4))break;case 102:return Z(e,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+F+(108==Q(e,t+3)?"$3":"$2-$3"))+e;case 115:return~J(e,"stretch")?He(Z(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Q(e,t+1))break;case 6444:switch(Q(e,te(e)-3-(~J(e,"!important")&&10))){case 107:return Z(e,":",":"+G)+e;case 101:return Z(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+G+(45===Q(e,14)?"inline-":"")+"box$3$1"+G+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(Q(e,t+11)){case 114:return G+e+D+Z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return G+e+D+Z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return G+e+D+Z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return G+e+D+e+e}return e}var We,Ye=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Y:e.return=He(e.value,e.length);break;case U:return Le([ue(e,{value:Z(e.value,"@","@"+G)})],n);case W:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Le([ue(e,{props:[Z(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Le([ue(e,{props:[Z(t,/:(plac\w+)/,":"+G+"input-$1")]}),ue(e,{props:[Z(t,/:(plac\w+)/,":-moz-$1")]}),ue(e,{props:[Z(t,/:(plac\w+)/,D+"input-$1")]})],n)}return""}))}}],Ue=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;We=function(e){var t=e.match(Ue);if(t)return t[t.length-1]};var Ve=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n=e.stylisPlugins||Ye;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)a[t[r]]=!0;s.push(e)}));var l=[$e,ze];l.push(function(e){return function(t,r,n){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent?t.parent.children:n,a=i.length-1;a>=0;a--){var s=i[a];if(s.line<t.line)break;if(s.column<t.column){if(Be(s))return;break}}o.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return p.compat}}),Ge);var c,d=[Oe,function(e){e.root||(e.return?c.insert(e.return):e.value&&e.type!==H&&c.insert(e.value+"{}"))}],u=function(e){var t=re(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(l.concat(n,d));i=function(e,t,r,n){if(c=r,We){var o=We(t.styles);o&&(c={insert:function(e){r.insert(e+o)}})}!function(e){Le(ke(e),u)}(e?e+"{"+t.styles+"}":t.styles),n&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new B({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return p.sheet.hydrate(s),p};function qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ke(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Xe,Ze,Je,Qe,et={exports:{}},tt={};function rt(){return Ze||(Ze=1,et.exports=function(){if(Xe)return tt;Xe=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case n:case i:case o:case u:return e;default:switch(e=e&&e.$$typeof){case s:case d:case f:case h:case a:return e;default:return p}}case r:return p}}}function x(e){return y(e)===c}return tt.AsyncMode=l,tt.ConcurrentMode=c,tt.ContextConsumer=s,tt.ContextProvider=a,tt.Element=t,tt.ForwardRef=d,tt.Fragment=n,tt.Lazy=f,tt.Memo=h,tt.Portal=r,tt.Profiler=i,tt.StrictMode=o,tt.Suspense=u,tt.isAsyncMode=function(e){return x(e)||y(e)===l},tt.isConcurrentMode=x,tt.isContextConsumer=function(e){return y(e)===s},tt.isContextProvider=function(e){return y(e)===a},tt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},tt.isForwardRef=function(e){return y(e)===d},tt.isFragment=function(e){return y(e)===n},tt.isLazy=function(e){return y(e)===f},tt.isMemo=function(e){return y(e)===h},tt.isPortal=function(e){return y(e)===r},tt.isProfiler=function(e){return y(e)===i},tt.isStrictMode=function(e){return y(e)===o},tt.isSuspense=function(e){return y(e)===u},tt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===i||e===o||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===d||e.$$typeof===b||e.$$typeof===g||e.$$typeof===v||e.$$typeof===m)},tt.typeOf=y,tt}()),et.exports}!function(){if(Qe)return Je;Qe=1;var e=rt(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(r){return e.isMemo(r)?n:o[r.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=n;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,u=Object.prototype;Je=function e(t,n,o){if("string"!=typeof n){if(u){var p=d(n);p&&p!==u&&e(t,p,o)}var h=s(n);l&&(h=h.concat(l(n)));for(var f=i(t),m=i(n),b=0;b<h.length;++b){var g=h[b];if(!(r[g]||o&&o[g]||m&&m[g]||f&&f[g])){var v=c(n,g);try{a(t,g,v)}catch(e){}}}}return t}}();function nt(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")})),n}var ot=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},it=function(e,t,r){ot(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var at={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},st="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",lt="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",ct=/[A-Z]|^ms/g,dt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ut=function(e){return 45===e.charCodeAt(1)},pt=function(e){return null!=e&&"boolean"!=typeof e},ht=Pe((function(e){return ut(e)?e:e.replace(ct,"-$&").toLowerCase()})),ft=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(dt,(function(e,t,r){return Ct={name:t,styles:r,next:Ct},t}))}return 1===at[e]||ut(e)||"number"!=typeof t||0===t?t:t+"px"},mt=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,bt=["normal","none","initial","inherit","unset"],gt=ft,vt=/^-ms-/,yt=/-(.)/g,xt={};ft=function(e,t){if("content"===e&&("string"!=typeof t||-1===bt.indexOf(t)&&!mt.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=gt(e,t);return""===r||ut(e)||-1===e.indexOf("-")||void 0!==xt[e]||(xt[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(vt,"ms-").replace(yt,(function(e,t){return t.toUpperCase()}))+"?")),r};var Et="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function St(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles){if("NO_COMPONENT_SELECTOR"===String(n))throw new Error(Et);return n}switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return Ct={name:o.name,styles:o.styles,next:Ct},o.name;var i=r;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Ct={name:a.name,styles:a.styles,next:Ct},a=a.next;return i.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=St(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?n+=i+"{"+t[s]+"}":pt(s)&&(n+=ht(i)+":"+ft(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(Et);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=St(e,t,a);switch(i){case"animation":case"animationName":n+=ht(i)+":"+l+";";break;default:"undefined"===i&&console.error(lt),n+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)pt(a[c])&&(n+=ht(i)+":"+ft(i,a[c])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var s=Ct,l=r(e);return Ct=s,St(e,t,l)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var c=[],d=r.replace(dt,(function(e,t,r){var n="animation"+c.length;return c.push("const "+n+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+n+"}"}));c.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(c,["`"+d+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+d+"`")}var u=r;if(null==t)return u;var p=t[u];return void 0!==p?p:u}var Ct,wt=/label:\s*([^\s;{]+)\s*(;|$)/g;function Rt(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";Ct=void 0;var i=e[0];if(null==i||void 0===i.raw)n=!1,o+=St(r,t,i);else{var a=i;void 0===a[0]&&console.error(st),o+=a[0]}for(var s=1;s<e.length;s++)if(o+=St(r,t,e[s]),n){var l=i;void 0===l[s]&&console.error(st),o+=l[s]}wt.lastIndex=0;for(var c,d="";null!==(c=wt.exec(o));)d+="-"+c[1];var u=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+d;return{name:u,styles:o,next:Ct,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}}var kt=!!y.useInsertionEffect&&y.useInsertionEffect,At=kt||function(e){return e()},_t=kt||y.useLayoutEffect,It=y.createContext("undefined"!=typeof HTMLElement?Ve({key:"css"}):null);It.displayName="EmotionCacheContext";var Tt=It.Provider,Lt=function(e){return x((function(t,r){var n=E(It);return e(t,n,r)}))},Ot=y.createContext({});Ot.displayName="EmotionThemeContext";var Pt={}.hasOwnProperty,Mt=function(e){var t=e.split(".");return t[t.length-1]},jt=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?Mt(t[1]):void 0},Nt=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),$t=function(e){return e.replace(/\$/g,"-")},zt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Bt="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Dt=function(e,t){if("string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var r={};for(var n in t)Pt.call(t,n)&&(r[n]=t[n]);if(r[zt]=e,"undefined"!=typeof globalThis&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&t.css&&("object"!=typeof t.css||!("name"in t.css)||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var o=function(e){if(e)for(var t=e.split("\n"),r=0;r<t.length;r++){var n=jt(t[r]);if(n){if(Nt.has(n))break;if(/^[A-Z]/.test(n))return $t(n)}}}((new Error).stack);o&&(r[Bt]=o)}return r},Ft=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return ot(t,r,n),At((function(){return it(t,r,n)})),null},Gt=Lt((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var o=e[zt],i=[n],a="";"string"==typeof e.className?a=nt(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=Rt(i,void 0,y.useContext(Ot));if(-1===s.name.indexOf("-")){var l=e[Bt];l&&(s=Rt([s,"label:"+l+";"]))}a+=t.key+"-"+s.name;var c={};for(var d in e)Pt.call(e,d)&&"css"!==d&&d!==zt&&d!==Bt&&(c[d]=e[d]);return c.className=a,r&&(c.ref=r),y.createElement(y.Fragment,null,y.createElement(Ft,{cache:t,serialized:s,isStringTag:"string"==typeof o}),y.createElement(o,c))}));Gt.displayName="EmotionCssPropInternal";var Ht,Wt,Yt=Gt,Ut=function(e,t){var r=arguments;if(null==t||!Pt.call(t,"css"))return y.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=Yt,o[1]=Dt(e,t);for(var i=2;i<n;i++)o[i]=r[i];return y.createElement.apply(null,o)};Ht=Ut||(Ut={}),Wt||(Wt=Ht.JSX||(Ht.JSX={}));var Vt=!1,qt=Lt((function(e,t){!Vt&&("className"in e&&e.className||"css"in e&&e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Vt=!0);var r=Rt([e.styles],void 0,y.useContext(Ot)),n=y.useRef();return _t((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),n.current=[o,i],function(){o.flush()}}),[t]),_t((function(){var e=n.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&it(t,r.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",r,o,!1)}}),[t,r.name]),null}));function Kt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Rt(t)}function Xt(){var e=Kt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}qt.displayName="EmotionGlobal";var Zt=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var i=t[n];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};var Jt=function(e){var t=e.cache,r=e.serializedArr;return At((function(){for(var e=0;e<r.length;e++)it(t,r[e],!1)})),null},Qt=Lt((function(e,t){var r=!1,n=[],o=function(){if(r)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var a=Rt(o,t.registered);return n.push(a),ot(t,a,!1),t.key+"-"+a.name},i={css:o,cx:function(){if(r)throw new Error("cx can only be used during render");for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return function(e,t,r){var n=[],o=nt(e,n,r);return n.length<2?r:o+t(n)}(t.registered,o,Zt(n))},theme:y.useContext(Ot)},a=e.children(i);return r=!0,y.createElement(y.Fragment,null,y.createElement(Jt,{cache:t,serializedArr:n}),a)}));Qt.displayName="EmotionClassNames";var er="undefined"!=typeof document,tr="undefined"!=typeof jest||"undefined"!=typeof vi;if(er&&!tr){var rr="undefined"!=typeof globalThis?globalThis:er?window:global,nr="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";rr[nr]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),rr[nr]=!0}var or=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ir=Pe((function(e){return or.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),ar=function(e){return"theme"!==e},sr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ir:ar},lr=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},cr="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",dr=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return ot(t,r,n),At((function(){return it(t,r,n)})),null},ur=function e(t,r){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var n,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var s=lr(t,r,i),l=s||sr(a),c=!l("as");return function(){var d=arguments,u=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&u.push("label:"+n+";"),null==d[0]||void 0===d[0].raw)u.push.apply(u,d);else{var p=d[0];void 0===p[0]&&console.error(cr),u.push(p[0]);for(var h=d.length,f=1;f<h;f++)void 0===p[f]&&console.error(cr),u.push(d[f],p[f])}var m=Lt((function(e,t,r){var n=c&&e.as||a,i="",d=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=y.useContext(Ot)}"string"==typeof e.className?i=nt(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var f=Rt(u.concat(d),t.registered,p);i+=t.key+"-"+f.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===s?sr(n):l,b={};for(var g in e)c&&"as"===g||m(g)&&(b[g]=e[g]);return b.className=i,r&&(b.ref=r),y.createElement(y.Fragment,null,y.createElement(dr,{cache:t,serialized:f,isStringTag:"string"==typeof n}),y.createElement(n,b))}));return m.displayName=void 0!==n?n:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=u,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===o?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,n){return e(t,$({},r,n,{shouldForwardProp:lr(m,n,!0)})).apply(void 0,u)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){ur[e]=ur(e)}));var pr,hr,fr={exports:{}},mr={};var br=(hr||(hr=1,fr.exports=function(){if(pr)return mr;pr=1;var e=S,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,r,a){var s,l={},c=null,d=null;for(s in void 0!==a&&(c=""+a),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(d=r.ref),r)n.call(r,s)&&!i.hasOwnProperty(s)&&(l[s]=r[s]);if(e&&e.defaultProps)for(s in r=e.defaultProps)void 0===l[s]&&(l[s]=r[s]);return{$$typeof:t,type:e,key:c,ref:d,props:l,_owner:o.current}}return mr.Fragment=r,mr.jsx=a,mr.jsxs=a,mr}()),fr.exports);const gr=new Map;function vr(e){const{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>{return t(null==(n=e)||0===Object.keys(n).length?r:e);var n}:t;return br.jsx(qt,{styles:n})}
8
8
  /**
9
9
  * @mui/styled-engine v5.18.0
10
10
  *
11
11
  * @license MIT
12
12
  * This source code is licensed under the MIT license found in the
13
13
  * LICENSE file in the root directory of this source tree.
14
- */function Gr(e,t){return Ir(e,t)}const Hr=[];function Wr(e){return Hr[0]=e,Ht(Hr)}var Yr=Object.freeze({__proto__:null,GlobalStyles:Fr,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,o=y.useMemo((()=>{const e=`${t}-${r}`;if("object"==typeof document&&Dr.has(e))return Dr.get(e);const n=function(e,t){const r=qe({key:"css",prepend:e});if(t){const e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}(t,r);return Dr.set(e,n),n}),[t,r]);return t||r?Br.jsx(qt,{value:o,children:n}):n},ThemeContext:Xt,css:hr,default:Gr,internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:Wr,keyframes:fr});function Ur(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Vr(e){if(y.isValidElement(e)||!Ur(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Vr(e[r])})),t}function qr(e,t,r={clone:!0}){const n=r.clone?z({},e):e;return Ur(e)&&Ur(t)&&Object.keys(t).forEach((o=>{y.isValidElement(t[o])?n[o]=t[o]:Ur(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ur(e[o])?n[o]=qr(e[o],t[o],r):r.clone?n[o]=Ur(t[o])?Vr(t[o]):t[o]:n[o]=t[o]})),n}var Kr=Object.freeze({__proto__:null,default:qr,isPlainObject:Ur});const Xr=["values","unit","step"];function Zr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=B(e,Xr),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>z({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return z({keys:a,values:i,up:l,down:s,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const Jr={borderRadius:4};function Qr(e,t){return t?qr(e,t,{clone:!1}):e}const en={xs:0,sm:600,md:900,lg:1200,xl:1536},tn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${en[e]}px)`};function rn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||tn;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||tn;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||en).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function nn(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function on(e){if("string"!=typeof e)throw new Error(j(7));return e.charAt(0).toUpperCase()+e.slice(1)}var an=Object.freeze({__proto__:null,default:on});function ln(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function sn(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:ln(e,r)||n,t&&(o=t(o,n,e)),o}function cn(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=ln(e.theme,n)||{};return rn(e,i,(e=>{let n=sn(a,o,e);return e===n&&"string"==typeof e&&(n=sn(a,o,`${t}${"default"===e?"":on(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const dn={m:"margin",p:"padding"},un={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hn=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!pn[e])return[e];e=pn[e]}const[t,r]=e.split(""),n=dn[t],o=un[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),fn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],mn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function bn(e,t,r,n){var o;const i=null!=(o=ln(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function gn(e){return bn(e,"spacing",8)}function vn(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function yn(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=vn(t,r),e)),{})}(hn(r),n);return rn(e,e[r],o)}function xn(e,t){const r=gn(e.theme);return Object.keys(e).map((n=>yn(e,t,n,r))).reduce(Qr,{})}function En(e){return xn(e,fn)}function Sn(e){return xn(e,mn)}function Cn(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?Qr(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function wn(e){return"number"!=typeof e?e:`${e}px solid`}function Rn(e,t){return cn({prop:e,themeKey:"borders",transform:t})}En.propTypes={},En.filterProps=fn,Sn.propTypes={},Sn.filterProps=mn;const kn=Rn("border",wn),An=Rn("borderTop",wn),_n=Rn("borderRight",wn),In=Rn("borderBottom",wn),Tn=Rn("borderLeft",wn),Ln=Rn("borderColor"),On=Rn("borderTopColor"),Pn=Rn("borderRightColor"),Mn=Rn("borderBottomColor"),jn=Rn("borderLeftColor"),Nn=Rn("outline",wn),$n=Rn("outlineColor"),zn=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=bn(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:vn(t,e)});return rn(e,e.borderRadius,r)}return null};zn.propTypes={},zn.filterProps=["borderRadius"],Cn(kn,An,_n,In,Tn,Ln,On,Pn,Mn,jn,zn,Nn,$n);const Bn=e=>{if(void 0!==e.gap&&null!==e.gap){const t=bn(e.theme,"spacing",8),r=e=>({gap:vn(t,e)});return rn(e,e.gap,r)}return null};Bn.propTypes={},Bn.filterProps=["gap"];const Dn=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=bn(e.theme,"spacing",8),r=e=>({columnGap:vn(t,e)});return rn(e,e.columnGap,r)}return null};Dn.propTypes={},Dn.filterProps=["columnGap"];const Fn=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=bn(e.theme,"spacing",8),r=e=>({rowGap:vn(t,e)});return rn(e,e.rowGap,r)}return null};Fn.propTypes={},Fn.filterProps=["rowGap"];function Gn(e,t){return"grey"===t?t:e}Cn(Bn,Dn,Fn,cn({prop:"gridColumn"}),cn({prop:"gridRow"}),cn({prop:"gridAutoFlow"}),cn({prop:"gridAutoColumns"}),cn({prop:"gridAutoRows"}),cn({prop:"gridTemplateColumns"}),cn({prop:"gridTemplateRows"}),cn({prop:"gridTemplateAreas"}),cn({prop:"gridArea"}));function Hn(e){return e<=1&&0!==e?100*e+"%":e}Cn(cn({prop:"color",themeKey:"palette",transform:Gn}),cn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gn}),cn({prop:"backgroundColor",themeKey:"palette",transform:Gn}));const Wn=cn({prop:"width",transform:Hn}),Yn=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||en[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Hn(t)}};return rn(e,e.maxWidth,t)}return null};Yn.filterProps=["maxWidth"];const Un=cn({prop:"minWidth",transform:Hn}),Vn=cn({prop:"height",transform:Hn}),qn=cn({prop:"maxHeight",transform:Hn}),Kn=cn({prop:"minHeight",transform:Hn});cn({prop:"size",cssProperty:"width",transform:Hn}),cn({prop:"size",cssProperty:"height",transform:Hn});Cn(Wn,Yn,Un,Vn,qn,Kn,cn({prop:"boxSizing"}));const Xn={border:{themeKey:"borders",transform:wn},borderTop:{themeKey:"borders",transform:wn},borderRight:{themeKey:"borders",transform:wn},borderBottom:{themeKey:"borders",transform:wn},borderLeft:{themeKey:"borders",transform:wn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:zn},color:{themeKey:"palette",transform:Gn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gn},backgroundColor:{themeKey:"palette",transform:Gn},p:{style:Sn},pt:{style:Sn},pr:{style:Sn},pb:{style:Sn},pl:{style:Sn},px:{style:Sn},py:{style:Sn},padding:{style:Sn},paddingTop:{style:Sn},paddingRight:{style:Sn},paddingBottom:{style:Sn},paddingLeft:{style:Sn},paddingX:{style:Sn},paddingY:{style:Sn},paddingInline:{style:Sn},paddingInlineStart:{style:Sn},paddingInlineEnd:{style:Sn},paddingBlock:{style:Sn},paddingBlockStart:{style:Sn},paddingBlockEnd:{style:Sn},m:{style:En},mt:{style:En},mr:{style:En},mb:{style:En},ml:{style:En},mx:{style:En},my:{style:En},margin:{style:En},marginTop:{style:En},marginRight:{style:En},marginBottom:{style:En},marginLeft:{style:En},marginX:{style:En},marginY:{style:En},marginInline:{style:En},marginInlineStart:{style:En},marginInlineEnd:{style:En},marginBlock:{style:En},marginBlockStart:{style:En},marginBlockEnd:{style:En},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Bn},rowGap:{style:Fn},columnGap:{style:Dn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Hn},maxWidth:{style:Yn},minWidth:{transform:Hn},height:{transform:Hn},maxHeight:{transform:Hn},minHeight:{transform:Hn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Zn(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:c}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const d=ln(r,l)||{};if(c)return c(o);return rn(o,t,(t=>{let r=sn(d,s,t);return t===r&&"string"==typeof t&&(r=sn(d,s,`${e}${"default"===t?"":on(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const l=null!=(n=i.unstable_sxConfig)?n:Xn;function s(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(o);let c=o;return Object.keys(n).forEach((r=>{const o=(a=n[r],s=i,"function"==typeof a?a(s):a);var a,s;if(null!=o)if("object"==typeof o)if(l[r])c=Qr(c,e(r,o,i,l));else{const e=rn({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?c=Qr(c,e):c[r]=t({sx:o,theme:i,nested:!0})}else c=Qr(c,e(r,o,i,l))})),!a&&i.modularCssLayers?{"@layer sx":nn(s,c)}:nn(s,c)}return Array.isArray(o)?o.map(s):s(o)}}const Jn=Zn();function Qn(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}Jn.filterProps=["sx"];const eo=["breakpoints","palette","spacing","shape"];function to(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=B(e,eo),l=Zr(r),s=function(e=8){if(e.mui)return e;const t=gn({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let c=qr({breakpoints:l,direction:"ltr",components:{},palette:z({mode:"light"},n),spacing:s,shape:z({},Jr,i)},a);return c.applyStyles=Qn,c=t.reduce(((e,t)=>qr(e,t)),c),c.unstable_sxConfig=z({},Xn,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Jn({sx:e,theme:this})},c}var ro=Object.freeze({__proto__:null,default:to,private_createBreakpoints:Zr,unstable_applyStyles:Qn});function no(e=null){const t=y.useContext(Xt);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const oo=to();function io(e=oo){return no(e)}function ao(e){const t=Wr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function lo({styles:e,themeId:t,defaultTheme:r={}}){const n=io(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>ao("function"==typeof e?e(o):e))):ao(i)),Br.jsx(Fr,{styles:i})}const so=["sx"];function co(e){const{sx:t}=e,r=B(e,so),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Xn;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Ur(r)?z({},n,r):n}:z({},n,t),z({},o,{sx:i})}var uo=Object.freeze({__proto__:null,default:Jn,extendSxProp:co,unstable_createStyleFunctionSx:Zn,unstable_defaultSxConfig:Xn});const po=e=>e,ho=(()=>{let e=po;return{configure(t){e=t},generate:t=>e(t),reset(){e=po}}})();function fo(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=fo(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function mo(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=fo(e))&&(n&&(n+=" "),n+=t);return n}const bo=["className","component"];const go={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function vo(e,t,r="Mui"){const n=go[t];return n?`${r}-${n}`:`${ho.generate(e)}-${t}`}function yo(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=vo(e,t,r)})),n}var xo={exports:{}},Eo={},So=Symbol.for("react.transitional.element"),Co=Symbol.for("react.portal"),wo=Symbol.for("react.fragment"),Ro=Symbol.for("react.strict_mode"),ko=Symbol.for("react.profiler"),Ao=Symbol.for("react.consumer"),_o=Symbol.for("react.context"),Io=Symbol.for("react.forward_ref"),To=Symbol.for("react.suspense"),Lo=Symbol.for("react.suspense_list"),Oo=Symbol.for("react.memo"),Po=Symbol.for("react.lazy"),Mo=Symbol.for("react.offscreen"),jo=Symbol.for("react.client.reference");function No(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case So:switch(e=e.type){case wo:case ko:case Ro:case To:case Lo:return e;default:switch(e=e&&e.$$typeof){case _o:case Io:case Po:case Oo:case Ao:return e;default:return t}}case Co:return t}}}Eo.ContextConsumer=Ao,Eo.ContextProvider=_o,Eo.Element=So,Eo.ForwardRef=Io,Eo.Fragment=wo,Eo.Lazy=Po,Eo.Memo=Oo,Eo.Portal=Co,Eo.Profiler=ko,Eo.StrictMode=Ro,Eo.Suspense=To,Eo.SuspenseList=Lo,Eo.isContextConsumer=function(e){return No(e)===Ao},Eo.isContextProvider=function(e){return No(e)===_o},Eo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===So},Eo.isForwardRef=function(e){return No(e)===Io},Eo.isFragment=function(e){return No(e)===wo},Eo.isLazy=function(e){return No(e)===Po},Eo.isMemo=function(e){return No(e)===Oo},Eo.isPortal=function(e){return No(e)===Co},Eo.isProfiler=function(e){return No(e)===ko},Eo.isStrictMode=function(e){return No(e)===Ro},Eo.isSuspense=function(e){return No(e)===To},Eo.isSuspenseList=function(e){return No(e)===Lo},Eo.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===wo||e===ko||e===Ro||e===To||e===Lo||e===Mo||"object"==typeof e&&null!==e&&(e.$$typeof===Po||e.$$typeof===Oo||e.$$typeof===_o||e.$$typeof===Ao||e.$$typeof===Io||e.$$typeof===jo||void 0!==e.getModuleId)},Eo.typeOf=No,xo.exports=Eo;var $o=xo.exports;const zo=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Bo(e){const t=`${e}`.match(zo);return t&&t[1]||""}function Do(e,t=""){return e.displayName||e.name||Bo(e)||t}function Fo(e,t,r){const n=Do(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Go=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Do(e,"Component");if("object"==typeof e)switch(e.$$typeof){case $o.ForwardRef:return Fo(e,e.render,"ForwardRef");case $o.Memo:return Fo(e,e.type,"memo");default:return}}},getFunctionName:Bo});function Ho(e,t){const r=z({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=z({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=z({},i),Object.keys(o).forEach((e=>{r[n][e]=Ho(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Wo="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Yo(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Uo=Object.freeze({__proto__:null,default:Yo});function Vo(e){if(e.type)return e;if("#"===e.charAt(0))return Vo(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(j(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(j(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function qo(e,t){return e=Vo(e),t=function(e,t=0,r=1){return Yo(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function Ko(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Xo(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Zo(e){return e&&e.ownerDocument||document}function Jo(e){return Zo(e).defaultView||window}function Qo(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let ei=0;const ti=y["useId".toString()];function ri(e){if(void 0!==ti){return ti()}return function(e){const[t,r]=y.useState(e),n=e||t;return y.useEffect((()=>{null==t&&(ei+=1,r(`mui-${ei}`))}),[t]),n}(e)}function ni(e){const t=y.useRef(e);return Wo((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function oi(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Qo(e,t)}))}),e)}const ii={};const ai=[];class li{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new li}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function si(){const e=function(e,t){const r=y.useRef(ii);return r.current===ii&&(r.current=e(t)),r}(li.create).current;return function(e){y.useEffect(e,ai)}(e.disposeEffect),e}let ci=!0,di=!1;const ui=new li,pi={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function hi(e){e.metaKey||e.altKey||e.ctrlKey||(ci=!0)}function fi(){ci=!1}function mi(){"hidden"===this.visibilityState&&di&&(ci=!0)}function bi(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ci||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!pi[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function gi(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",hi,!0),t.addEventListener("mousedown",fi,!0),t.addEventListener("pointerdown",fi,!0),t.addEventListener("touchstart",fi,!0),t.addEventListener("visibilitychange",mi,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!bi(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(di=!0,ui.start(100,(()=>{di=!1})),t.current=!1,!0)},ref:e}}function yi(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let xi;function Ei(){if(xi)return xi;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),xi="reverse",e.scrollLeft>0?xi="default":(e.scrollLeft=1,0===e.scrollLeft&&(xi="negative")),document.body.removeChild(e),xi}function Si(e,t){const r=e.scrollLeft;if("rtl"!==t)return r;switch(Ei()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function Ci(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function wi(e){return"string"==typeof e}function Ri(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function ki(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const Ai=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function _i(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=B(e,Ai),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=mo(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=z({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=z({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Ri(z({},o,n)),l=ki(n),s=ki(o),c=t(a),d=mo(null==c?void 0:c.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),u=z({},null==c?void 0:c.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=z({},c,r,s,l);return d.length>0&&(p.className=d),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:c.ref}}(z({},a,{externalSlotProps:l})),d=function(e,t,r){return void 0===e||wi(e)?t:z({},t,{ownerState:z({},t.ownerState,r)})}(r,z({},s,{ref:oi(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return d}function Ii(e){var t;return parseInt(y.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Ti=y.createContext(null);function Li(){return y.useContext(Ti)}var Oi="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Pi(e){const{children:t,theme:r}=e,n=Li(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return z({},e,t)}(n,r);return null!=e&&(e[Oi]=null!==n),e}),[r,n]);return Br.jsx(Ti.Provider,{value:o,children:t})}const Mi=["value"],ji=y.createContext();function Ni(e){let{value:t}=e,r=B(e,Mi);return Br.jsx(ji.Provider,z({value:null==t||t},r))}const $i=()=>{const e=y.useContext(ji);return null!=e&&e},zi=y.createContext(void 0);function Bi({value:e,children:t}){return Br.jsx(zi.Provider,{value:e,children:t})}function Di({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Ho(o.defaultProps,n):o.styleOverrides||o.variants?n:Ho(o,n)}({props:e,name:t,theme:{components:y.useContext(zi)}})}const Fi={};function Gi(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?z({},t,{[e]:i}):i;return n?()=>a:a}return z({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Hi(e){const{children:t,theme:r,themeId:n}=e,o=no(Fi),i=Li()||Fi,a=Gi(n,o,r),l=Gi(n,i,r,!0),s="rtl"===a.direction,c=function(e){const t=no(),r=ri()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Wo((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}}),[o,r]),o?Br.jsx(lo,{styles:o}):null}(a);return Br.jsx(Pi,{theme:l,children:Br.jsx(Xt.Provider,{value:a,children:Br.jsx(Ni,{value:s,children:Br.jsxs(Bi,{value:null==a?void 0:a.components,children:[c,t]})})})})}var Wi,Yi={},Ui={exports:{}};(Wi=Ui).exports=function(e){return e&&e.__esModule?e:{default:e}},Wi.exports.__esModule=!0,Wi.exports.default=Wi.exports;var Vi=Ui.exports,qi=Ke(N),Ki=Ke(Uo),Xi=Vi;Object.defineProperty(Yi,"__esModule",{value:!0});var Zi=Yi.alpha=da;Yi.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=ia(e),a=ia(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return la({type:"rgb",values:l})},Yi.colorChannel=void 0;var Ji=Yi.darken=ua;Yi.decomposeColor=ia,Yi.emphasize=ha;var Qi=Yi.getContrastRatio=function(e,t){const r=ca(e),n=ca(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Yi.getLuminance=ca,Yi.hexToRgb=oa,Yi.hslToRgb=sa;var ea=Yi.lighten=pa;Yi.private_safeAlpha=function(e,t,r){try{return da(e,t)}catch(t){return e}},Yi.private_safeColorChannel=void 0,Yi.private_safeDarken=function(e,t,r){try{return ua(e,t)}catch(t){return e}},Yi.private_safeEmphasize=function(e,t,r){try{return ha(e,t)}catch(t){return e}},Yi.private_safeLighten=function(e,t,r){try{return pa(e,t)}catch(t){return e}},Yi.recomposeColor=la,Yi.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=ia(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var ta=Xi(qi),ra=Xi(Ki);function na(e,t=0,r=1){return(0,ra.default)(e,t,r)}function oa(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function ia(e){if(e.type)return e;if("#"===e.charAt(0))return ia(oa(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,ta.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,ta.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const aa=e=>{const t=ia(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Yi.colorChannel=aa;function la(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function sa(e){e=ia(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),la({type:l,values:s})}function ca(e){let t="hsl"===(e=ia(e)).type||"hsla"===e.type?ia(sa(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function da(e,t){return e=ia(e),t=na(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,la(e)}function ua(e,t){if(e=ia(e),t=na(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return la(e)}function pa(e,t){if(e=ia(e),t=na(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return la(e)}function ha(e,t=.15){return ca(e)>.5?ua(e,t):pa(e,t)}Yi.private_safeColorChannel=(e,t)=>{try{return aa(e)}catch(t){return e}};const fa={black:"#000",white:"#fff"},ma={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ba="#f3e5f5",ga="#ce93d8",va="#ba68c8",ya="#ab47bc",xa="#9c27b0",Ea="#7b1fa2",Sa="#e57373",Ca="#ef5350",wa="#f44336",Ra="#d32f2f",ka="#c62828",Aa="#ffb74d",_a="#ffa726",Ia="#ff9800",Ta="#f57c00",La="#e65100",Oa="#e3f2fd",Pa="#90caf9",Ma="#42a5f5",ja="#1976d2",Na="#1565c0",$a="#4fc3f7",za="#29b6f6",Ba="#03a9f4",Da="#0288d1",Fa="#01579b",Ga="#81c784",Ha="#66bb6a",Wa="#4caf50",Ya="#388e3c",Ua="#2e7d32",Va="#1b5e20",qa=["mode","contrastThreshold","tonalOffset"],Ka={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:fa.white,default:fa.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Xa={text:{primary:fa.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:fa.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Za(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=ea(e.main,o):"dark"===t&&(e.dark=Ji(e.main,i)))}function Ja(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=B(e,qa),i=e.primary||function(e="light"){return"dark"===e?{main:Pa,light:Oa,dark:Ma}:{main:ja,light:Ma,dark:Na}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ga,light:ba,dark:ya}:{main:xa,light:va,dark:Ea}}(t),l=e.error||function(e="light"){return"dark"===e?{main:wa,light:Sa,dark:Ra}:{main:Ra,light:Ca,dark:ka}}(t),s=e.info||function(e="light"){return"dark"===e?{main:za,light:$a,dark:Da}:{main:Da,light:Ba,dark:Fa}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Ha,light:Ga,dark:Ya}:{main:Ua,light:Wa,dark:Va}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:_a,light:Aa,dark:Ta}:{main:"#ed6c02",light:Ia,dark:La}}(t);function u(e){return Qi(e,Xa.text.primary)>=r?Xa.text.primary:Ka.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=z({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(j(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(j(12,t?` (${t})`:"",JSON.stringify(e.main)));return Za(e,"light",o,n),Za(e,"dark",i,n),e.contrastText||(e.contrastText=u(e.main)),e},h={dark:Xa,light:Ka};return qr(z({common:z({},fa),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:c,name:"success"}),grey:ma,contrastThreshold:r,getContrastText:u,augmentColor:p,tonalOffset:n},h[t]),o)}const Qa=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const el={textTransform:"uppercase"},tl='"Roboto", "Helvetica", "Arial", sans-serif';function rl(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=tl,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=r,p=B(r,Qa),h=o/14,f=u||(e=>e/c*h+"rem"),m=(e,t,r,o,i)=>{return z({fontFamily:n,fontWeight:e,fontSize:f(t),lineHeight:r},n===tl?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,d);var a},b={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,el),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,el),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qr(z({htmlFontSize:c,pxToRem:f,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},b),p,{clone:!1})}function nl(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ol=["none",nl(0,2,1,-1,0,1,1,0,0,1,3,0),nl(0,3,1,-2,0,2,2,0,0,1,5,0),nl(0,3,3,-2,0,3,4,0,0,1,8,0),nl(0,2,4,-1,0,4,5,0,0,1,10,0),nl(0,3,5,-1,0,5,8,0,0,1,14,0),nl(0,3,5,-1,0,6,10,0,0,1,18,0),nl(0,4,5,-2,0,7,10,1,0,2,16,1),nl(0,5,5,-3,0,8,10,1,0,3,14,2),nl(0,5,6,-3,0,9,12,1,0,3,16,2),nl(0,6,6,-3,0,10,14,1,0,4,18,3),nl(0,6,7,-4,0,11,15,1,0,4,20,3),nl(0,7,8,-4,0,12,17,2,0,5,22,4),nl(0,7,8,-4,0,13,19,2,0,5,24,4),nl(0,7,9,-4,0,14,21,2,0,5,26,4),nl(0,8,9,-5,0,15,22,2,0,6,28,5),nl(0,8,10,-5,0,16,24,2,0,6,30,5),nl(0,8,11,-5,0,17,26,2,0,6,32,5),nl(0,9,11,-5,0,18,28,2,0,7,34,6),nl(0,9,12,-6,0,19,29,2,0,7,36,6),nl(0,10,13,-6,0,20,31,3,0,8,38,7),nl(0,10,13,-6,0,21,33,3,0,8,40,7),nl(0,10,14,-6,0,22,35,3,0,8,42,7),nl(0,11,14,-7,0,23,36,3,0,9,44,8),nl(0,11,15,-7,0,24,38,3,0,9,46,8)],il=["duration","easing","delay"],al={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ll={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function sl(e){return`${Math.round(e)}ms`}function cl(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function dl(e){const t=z({},al,e.easing),r=z({},ll,e.duration);return z({getAutoHeightDuration:cl,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return B(n,il),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:sl(o)} ${i} ${"string"==typeof a?a:sl(a)}`)).join(",")}},e,{easing:t,duration:r})}const ul={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},pl=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function hl(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=B(e,pl);if(e.vars&&void 0===e.generateCssVars)throw new Error(j(18));const l=Ja(n),s=to(e);let c=qr(s,{mixins:(d=s.breakpoints,u=r,z({toolbar:{minHeight:56,[d.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[d.up("sm")]:{minHeight:64}}},u)),palette:l,shadows:ol.slice(),typography:rl(l,i),transitions:dl(o),zIndex:z({},ul)});var d,u;return c=qr(c,a),c=t.reduce(((e,t)=>qr(e,t)),c),c.unstable_sxConfig=z({},Xn,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Jn({sx:e,theme:this})},c}const fl=hl();function ml(){const e=io(fl);return e[$]||e}var bl,gl={},vl={exports:{}};var yl,xl={exports:{}};var El=Ke(Yr),Sl=Ke(Kr),Cl=Ke(an),wl=Ke(Go),Rl=Ke(ro),kl=Ke(uo),Al=Vi;Object.defineProperty(gl,"__esModule",{value:!0});var _l=gl.default=function(e={}){const{themeId:t,defaultTheme:r=Fl,rootShouldForwardProp:n=Bl,slotShouldForwardProp:o=Bl}=e,i=e=>(0,Ml.default)((0,Il.default)({},e,{theme:Hl((0,Il.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Ll.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:d,overridesResolver:u=Wl(Gl(s))}=a,p=(0,Tl.default)(a,$l),h=l&&l.startsWith("Mui")||s?"components":"custom",f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,m=d||!1;let b=Bl;"Root"===s||"root"===s?b=n:s?b=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(b=void 0);const g=(0,Ll.default)(e,(0,Il.default)({shouldForwardProp:b,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Ol.isPlainObject)(e)?n=>{const o=Hl({theme:n.theme,defaultTheme:r,themeId:t});return Yl(e,(0,Il.default)({},n,{theme:o}),o.modularCssLayers?h:void 0)}:e,y=(n,...o)=>{let a=v(n);const s=o?o.map(v):[];l&&u&&s.push((e=>{const n=Hl((0,Il.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Yl(r,(0,Il.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),u(e,i)})),l&&!f&&s.push((e=>{var n;const o=Hl((0,Il.default)({},e,{defaultTheme:r,themeId:t}));return Yl({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,Il.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),m||s.push(i);const c=s.length-o.length;if(Array.isArray(n)&&c>0){const e=new Array(c).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const d=g(a,...s);return e.muiName&&(d.muiName=e.muiName),d};return g.withConfig&&(y.withConfig=g.withConfig),y}};gl.shouldForwardProp=Bl,gl.systemDefaultTheme=void 0;var Il=Al((bl||(bl=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(vl)),vl.exports)),Tl=Al((yl||(yl=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(xl)),xl.exports)),Ll=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=zl(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(El),Ol=Sl;Al(Cl),Al(wl);var Pl=Al(Rl),Ml=Al(kl);const jl=["ownerState"],Nl=["variants"],$l=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function zl(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(zl=function(e){return e?r:t})(e)}function Bl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Dl(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Fl=gl.systemDefaultTheme=(0,Pl.default)(),Gl=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Hl({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Wl(e){return e?(t,r)=>r[e]:null}function Yl(e,t,r){let{ownerState:n}=t,o=(0,Tl.default)(t,jl);const i="function"==typeof e?e((0,Il.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>Yl(e,(0,Il.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,Tl.default)(i,Nl);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Il.default)({ownerState:n},o,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,Il.default)({ownerState:n},o,n)):e.style;t.push(r?Dl((0,Ll.internal_serializeStyles)(i),r):i)}})),t}return r?Dl((0,Ll.internal_serializeStyles)(i),r):i}const Ul=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,Vl=_l({themeId:$,defaultTheme:fl,rootShouldForwardProp:Ul}),ql=["theme"];function Kl(e){let{theme:t}=e,r=B(e,ql);const n=t[$];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=z({},n,{vars:null}):t&&!t.vars&&(o=z({},t,{vars:null}))),Br.jsx(Hi,z({},r,{themeId:n?$:void 0,theme:o}))}const Xl=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Zl={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Jl=12,Ql=14,es=16,ts=24,rs=3,ns=300,os=400,is=600,as=700,ls={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function ss(e){return Di(e)}function cs(e){return vo("MuiSvgIcon",e)}yo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ds=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],us=Vl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${on(r.color)}`],t[`fontSize${on(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,c,d,u,p,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(u=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?u:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),ps=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:d,viewBox:u="0 0 24 24"}=r,p=B(r,ds),h=y.isValidElement(n)&&"svg"===n.type,f=z({},r,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:u,hasSvgAsChild:h}),m={};c||(m.viewBox=u);const b=(e=>{const{color:t,fontSize:r,classes:n}=e;return Ci({root:["root","inherit"!==t&&`color${on(t)}`,`fontSize${on(r)}`]},cs,n)})(f);return Br.jsxs(us,z({as:a,className:mo(b.root,o),focusable:"false",color:s,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},m,p,h&&n.props,{ownerState:f,children:[h?n.props.children:n,d?Br.jsx("title",{children:d}):null]}))}));function hs(e,t){function r(r,n){return Br.jsx(ps,z({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=ps.muiName,y.memo(y.forwardRef(r))}function fs(e,t){return fs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fs(e,t)}function ms(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fs(e,t)}ps.muiName="SvgIcon";var bs=!1,gs=S.createContext(null),vs="unmounted",ys="exited",xs="entering",Es="entered",Ss="exiting",Cs=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=ys,n.appearStatus=xs):o=Es:o=t.unmountOnExit||t.mountOnEnter?vs:ys,n.state={status:o},n.nextCallback=null,n}ms(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===vs?{status:ys}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==xs&&r!==Es&&(t=xs):r!==xs&&r!==Es||(t=Ss)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===xs){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:L.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ys&&this.setState({status:vs})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[L.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||bs?this.safeSetState({status:Es},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:xs},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Es},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:L.findDOMNode(this);t&&!bs?(this.props.onExit(n),this.safeSetState({status:Ss},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:ys},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:ys},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:L.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===vs)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=B(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(gs.Provider,{value:null},"function"==typeof r?r(e,n):S.cloneElement(S.Children.only(r),n))},t}(S.Component);function ws(){}function Rs(e,t){var r=Object.create(null);return e&&R.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&C(e)?t(e):e}(e)})),r}function ks(e,t,r){return null!=r[t]?r[t]:e.props[t]}function As(e,t,r){var n=Rs(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var c=o[s][n];l[o[s][n]]=r(c)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(C(a)){var l=i in t,s=i in n,c=t[i],d=C(c)&&!c.props.in;!s||l&&!d?s||!l||d?s&&l&&C(c)&&(o[i]=w(a,{onExited:r.bind(null,a),in:c.props.in,exit:ks(a,"exit",e),enter:ks(a,"enter",e)})):o[i]=w(a,{in:!1}):o[i]=w(a,{onExited:r.bind(null,a),in:!0,exit:ks(a,"exit",e),enter:ks(a,"enter",e)})}})),o}Cs.contextType=gs,Cs.propTypes={},Cs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ws,onEntering:ws,onEntered:ws,onExit:ws,onExiting:ws,onExited:ws},Cs.UNMOUNTED=vs,Cs.EXITED=ys,Cs.ENTERING=xs,Cs.ENTERED=Es,Cs.EXITING=Ss;var _s=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Is=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}ms(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,Rs(r.children,(function(e){return w(e,{onExited:n.bind(null,e),in:!0,appear:ks(e,"appear",r),enter:ks(e,"enter",r),exit:ks(e,"exit",r)})}))):As(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Rs(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=z({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=B(e,["component","childFactory"]),o=this.state.contextValue,i=_s(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?S.createElement(gs.Provider,{value:o},i):S.createElement(gs.Provider,{value:o},S.createElement(t,n,i))},t}(S.Component);Is.propTypes={},Is.defaultProps={component:"div",childFactory:function(e){return e}};const Ts=e=>e.scrollTop;function Ls(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Os(e){return vo("MuiPaper",e)}yo("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Ps=["className","component","elevation","square","variant"],Ms=Vl("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return z({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&z({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Zi("#fff",Xl(t.elevation))}, ${Zi("#fff",Xl(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),js=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=B(r,Ps),c=z({},r,{component:o,elevation:i,square:a,variant:l}),d=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Ci({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Os,o)})(c);return Br.jsx(Ms,z({as:o,ownerState:c,className:mo(d.root,n),ref:t},s))}));const Ns=yo("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),$s=["center","classes","className"];let zs,Bs,Ds,Fs,Gs=e=>e;const Hs=fr(zs||(zs=Gs`
14
+ */function yr(e,t){return ur(e,t)}const xr=[];function Er(e){return xr[0]=e,Rt(xr)}var Sr=Object.freeze({__proto__:null,GlobalStyles:vr,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,o=y.useMemo((()=>{const e=`${t}-${r}`;if("object"==typeof document&&gr.has(e))return gr.get(e);const n=function(e,t){const r=Ve({key:"css",prepend:e});if(t){const e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}(t,r);return gr.set(e,n),n}),[t,r]);return t||r?br.jsx(Tt,{value:o,children:n}):n},ThemeContext:Ot,css:Kt,default:yr,internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:Er,keyframes:Xt});function Cr(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function wr(e){if(y.isValidElement(e)||!Cr(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=wr(e[r])})),t}function Rr(e,t,r={clone:!0}){const n=r.clone?$({},e):e;return Cr(e)&&Cr(t)&&Object.keys(t).forEach((o=>{y.isValidElement(t[o])?n[o]=t[o]:Cr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Cr(e[o])?n[o]=Rr(e[o],t[o],r):r.clone?n[o]=Cr(t[o])?wr(t[o]):t[o]:n[o]=t[o]})),n}var kr=Object.freeze({__proto__:null,default:Rr,isPlainObject:Cr});const Ar=["values","unit","step"];function _r(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=z(e,Ar),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>$({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return $({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const Ir={borderRadius:4};function Tr(e,t){return t?Rr(e,t,{clone:!1}):e}const Lr={xs:0,sm:600,md:900,lg:1200,xl:1536},Or={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Lr[e]}px)`};function Pr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Or;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Or;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Lr).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Mr(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function jr(e){if("string"!=typeof e)throw new Error(M(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Nr=Object.freeze({__proto__:null,default:jr});function $r(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function zr(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:$r(e,r)||n,t&&(o=t(o,n,e)),o}function Br(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=$r(e.theme,n)||{};return Pr(e,i,(e=>{let n=zr(a,o,e);return e===n&&"string"==typeof e&&(n=zr(a,o,`${t}${"default"===e?"":jr(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Dr={m:"margin",p:"padding"},Fr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Gr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Hr=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Gr[e])return[e];e=Gr[e]}const[t,r]=e.split(""),n=Dr[t],o=Fr[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Wr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Yr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Ur(e,t,r,n){var o;const i=null!=(o=$r(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Vr(e){return Ur(e,"spacing",8)}function qr(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Kr(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=qr(t,r),e)),{})}(Hr(r),n);return Pr(e,e[r],o)}function Xr(e,t){const r=Vr(e.theme);return Object.keys(e).map((n=>Kr(e,t,n,r))).reduce(Tr,{})}function Zr(e){return Xr(e,Wr)}function Jr(e){return Xr(e,Yr)}function Qr(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?Tr(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function en(e){return"number"!=typeof e?e:`${e}px solid`}function tn(e,t){return Br({prop:e,themeKey:"borders",transform:t})}Zr.propTypes={},Zr.filterProps=Wr,Jr.propTypes={},Jr.filterProps=Yr;const rn=tn("border",en),nn=tn("borderTop",en),on=tn("borderRight",en),an=tn("borderBottom",en),sn=tn("borderLeft",en),ln=tn("borderColor"),cn=tn("borderTopColor"),dn=tn("borderRightColor"),un=tn("borderBottomColor"),pn=tn("borderLeftColor"),hn=tn("outline",en),fn=tn("outlineColor"),mn=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Ur(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:qr(t,e)});return Pr(e,e.borderRadius,r)}return null};mn.propTypes={},mn.filterProps=["borderRadius"],Qr(rn,nn,on,an,sn,ln,cn,dn,un,pn,mn,hn,fn);const bn=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Ur(e.theme,"spacing",8),r=e=>({gap:qr(t,e)});return Pr(e,e.gap,r)}return null};bn.propTypes={},bn.filterProps=["gap"];const gn=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Ur(e.theme,"spacing",8),r=e=>({columnGap:qr(t,e)});return Pr(e,e.columnGap,r)}return null};gn.propTypes={},gn.filterProps=["columnGap"];const vn=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Ur(e.theme,"spacing",8),r=e=>({rowGap:qr(t,e)});return Pr(e,e.rowGap,r)}return null};vn.propTypes={},vn.filterProps=["rowGap"];function yn(e,t){return"grey"===t?t:e}Qr(bn,gn,vn,Br({prop:"gridColumn"}),Br({prop:"gridRow"}),Br({prop:"gridAutoFlow"}),Br({prop:"gridAutoColumns"}),Br({prop:"gridAutoRows"}),Br({prop:"gridTemplateColumns"}),Br({prop:"gridTemplateRows"}),Br({prop:"gridTemplateAreas"}),Br({prop:"gridArea"}));function xn(e){return e<=1&&0!==e?100*e+"%":e}Qr(Br({prop:"color",themeKey:"palette",transform:yn}),Br({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:yn}),Br({prop:"backgroundColor",themeKey:"palette",transform:yn}));const En=Br({prop:"width",transform:xn}),Sn=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||Lr[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:xn(t)}};return Pr(e,e.maxWidth,t)}return null};Sn.filterProps=["maxWidth"];const Cn=Br({prop:"minWidth",transform:xn}),wn=Br({prop:"height",transform:xn}),Rn=Br({prop:"maxHeight",transform:xn}),kn=Br({prop:"minHeight",transform:xn});Br({prop:"size",cssProperty:"width",transform:xn}),Br({prop:"size",cssProperty:"height",transform:xn});Qr(En,Sn,Cn,wn,Rn,kn,Br({prop:"boxSizing"}));const An={border:{themeKey:"borders",transform:en},borderTop:{themeKey:"borders",transform:en},borderRight:{themeKey:"borders",transform:en},borderBottom:{themeKey:"borders",transform:en},borderLeft:{themeKey:"borders",transform:en},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:en},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:mn},color:{themeKey:"palette",transform:yn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:yn},backgroundColor:{themeKey:"palette",transform:yn},p:{style:Jr},pt:{style:Jr},pr:{style:Jr},pb:{style:Jr},pl:{style:Jr},px:{style:Jr},py:{style:Jr},padding:{style:Jr},paddingTop:{style:Jr},paddingRight:{style:Jr},paddingBottom:{style:Jr},paddingLeft:{style:Jr},paddingX:{style:Jr},paddingY:{style:Jr},paddingInline:{style:Jr},paddingInlineStart:{style:Jr},paddingInlineEnd:{style:Jr},paddingBlock:{style:Jr},paddingBlockStart:{style:Jr},paddingBlockEnd:{style:Jr},m:{style:Zr},mt:{style:Zr},mr:{style:Zr},mb:{style:Zr},ml:{style:Zr},mx:{style:Zr},my:{style:Zr},margin:{style:Zr},marginTop:{style:Zr},marginRight:{style:Zr},marginBottom:{style:Zr},marginLeft:{style:Zr},marginX:{style:Zr},marginY:{style:Zr},marginInline:{style:Zr},marginInlineStart:{style:Zr},marginInlineEnd:{style:Zr},marginBlock:{style:Zr},marginBlockStart:{style:Zr},marginBlockEnd:{style:Zr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:bn},rowGap:{style:vn},columnGap:{style:gn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:xn},maxWidth:{style:Sn},minWidth:{transform:xn},height:{transform:xn},maxHeight:{transform:xn},minHeight:{transform:xn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function _n(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const d=$r(r,s)||{};if(c)return c(o);return Pr(o,t,(t=>{let r=zr(d,l,t);return t===r&&"string"==typeof t&&(r=zr(d,l,`${e}${"default"===t?"":jr(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:An;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(n).forEach((r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])c=Tr(c,e(r,o,i,s));else{const e=Pr({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?c=Tr(c,e):c[r]=t({sx:o,theme:i,nested:!0})}else c=Tr(c,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":Mr(l,c)}:Mr(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const In=_n();function Tn(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}In.filterProps=["sx"];const Ln=["breakpoints","palette","spacing","shape"];function On(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=z(e,Ln),s=_r(r),l=function(e=8){if(e.mui)return e;const t=Vr({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let c=Rr({breakpoints:s,direction:"ltr",components:{},palette:$({mode:"light"},n),spacing:l,shape:$({},Ir,i)},a);return c.applyStyles=Tn,c=t.reduce(((e,t)=>Rr(e,t)),c),c.unstable_sxConfig=$({},An,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return In({sx:e,theme:this})},c}var Pn=Object.freeze({__proto__:null,default:On,private_createBreakpoints:_r,unstable_applyStyles:Tn});function Mn(e=null){const t=y.useContext(Ot);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const jn=On();function Nn(e=jn){return Mn(e)}function $n(e){const t=Er(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function zn({styles:e,themeId:t,defaultTheme:r={}}){const n=Nn(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>$n("function"==typeof e?e(o):e))):$n(i)),br.jsx(vr,{styles:i})}const Bn=["sx"];function Dn(e){const{sx:t}=e,r=z(e,Bn),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:An;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Cr(r)?$({},n,r):n}:$({},n,t),$({},o,{sx:i})}var Fn=Object.freeze({__proto__:null,default:In,extendSxProp:Dn,unstable_createStyleFunctionSx:_n,unstable_defaultSxConfig:An});const Gn=e=>e,Hn=(()=>{let e=Gn;return{configure(t){e=t},generate:t=>e(t),reset(){e=Gn}}})();function Wn(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Wn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Yn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Wn(e))&&(n&&(n+=" "),n+=t);return n}const Un=["className","component"];const Vn={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function qn(e,t,r="Mui"){const n=Vn[t];return n?`${r}-${n}`:`${Hn.generate(e)}-${t}`}function Kn(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=qn(e,t,r)})),n}var Xn,Zn,Jn={exports:{}},Qn={};function eo(){if(Xn)return Qn;Xn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),h=Symbol.for("react.client.reference");function f(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case r:case o:case n:case l:case c:return p;default:switch(p=p&&p.$$typeof){case a:case s:case u:case d:case i:return p;default:return h}}case t:return h}}}return Qn.ContextConsumer=i,Qn.ContextProvider=a,Qn.Element=e,Qn.ForwardRef=s,Qn.Fragment=r,Qn.Lazy=u,Qn.Memo=d,Qn.Portal=t,Qn.Profiler=o,Qn.StrictMode=n,Qn.Suspense=l,Qn.SuspenseList=c,Qn.isContextConsumer=function(e){return f(e)===i},Qn.isContextProvider=function(e){return f(e)===a},Qn.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Qn.isForwardRef=function(e){return f(e)===s},Qn.isFragment=function(e){return f(e)===r},Qn.isLazy=function(e){return f(e)===u},Qn.isMemo=function(e){return f(e)===d},Qn.isPortal=function(e){return f(e)===t},Qn.isProfiler=function(e){return f(e)===o},Qn.isStrictMode=function(e){return f(e)===n},Qn.isSuspense=function(e){return f(e)===l},Qn.isSuspenseList=function(e){return f(e)===c},Qn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===n||e===l||e===c||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===d||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===h||void 0!==e.getModuleId)},Qn.typeOf=f,Qn}function to(){return Zn||(Zn=1,Jn.exports=eo()),Jn.exports}var ro=to();const no=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function oo(e){const t=`${e}`.match(no);return t&&t[1]||""}function io(e,t=""){return e.displayName||e.name||oo(e)||t}function ao(e,t,r){const n=io(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var so=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return io(e,"Component");if("object"==typeof e)switch(e.$$typeof){case ro.ForwardRef:return ao(e,e.render,"ForwardRef");case ro.Memo:return ao(e,e.type,"memo");default:return}}},getFunctionName:oo});function lo(e,t){const r=$({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=$({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=$({},i),Object.keys(o).forEach((e=>{r[n][e]=lo(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const co="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function uo(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var po=Object.freeze({__proto__:null,default:uo});function ho(e){if(e.type)return e;if("#"===e.charAt(0))return ho(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(M(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(M(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function fo(e,t){return e=ho(e),t=function(e,t=0,r=1){return uo(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function mo(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function bo(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function go(e){return e&&e.ownerDocument||document}function vo(e){return go(e).defaultView||window}function yo(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let xo=0;const Eo=y["useId".toString()];function So(e){if(void 0!==Eo){return Eo()}return function(e){const[t,r]=y.useState(e),n=e||t;return y.useEffect((()=>{null==t&&(xo+=1,r(`mui-${xo}`))}),[t]),n}(e)}function Co(e){const t=y.useRef(e);return co((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function wo(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{yo(e,t)}))}),e)}const Ro={};const ko=[];class Ao{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ao}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function _o(){const e=function(e,t){const r=y.useRef(Ro);return r.current===Ro&&(r.current=e(t)),r}(Ao.create).current;return function(e){y.useEffect(e,ko)}(e.disposeEffect),e}let Io=!0,To=!1;const Lo=new Ao,Oo={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Po(e){e.metaKey||e.altKey||e.ctrlKey||(Io=!0)}function Mo(){Io=!1}function jo(){"hidden"===this.visibilityState&&To&&(Io=!0)}function No(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Io||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Oo[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function $o(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Po,!0),t.addEventListener("mousedown",Mo,!0),t.addEventListener("pointerdown",Mo,!0),t.addEventListener("touchstart",Mo,!0),t.addEventListener("visibilitychange",jo,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!No(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(To=!0,Lo.start(100,(()=>{To=!1})),t.current=!1,!0)},ref:e}}function zo(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Bo;function Do(){if(Bo)return Bo;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Bo="reverse",e.scrollLeft>0?Bo="default":(e.scrollLeft=1,0===e.scrollLeft&&(Bo="negative")),document.body.removeChild(e),Bo}function Fo(e,t){const r=e.scrollLeft;if("rtl"!==t)return r;switch(Do()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function Go(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function Ho(e){return"string"==typeof e}function Wo(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function Yo(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const Uo=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Vo(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=z(e,Uo),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=Yn(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=$({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=$({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Wo($({},o,n)),s=Yo(n),l=Yo(o),c=t(a),d=Yn(null==c?void 0:c.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),u=$({},null==c?void 0:c.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=$({},c,r,l,s);return d.length>0&&(p.className=d),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:c.ref}}($({},a,{externalSlotProps:s})),d=function(e,t,r){return void 0===e||Ho(e)?t:$({},t,{ownerState:$({},t.ownerState,r)})}(r,$({},l,{ref:wo(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return d}function qo(e){var t;return parseInt(y.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Ko=y.createContext(null);function Xo(){return y.useContext(Ko)}var Zo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Jo(e){const{children:t,theme:r}=e,n=Xo(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return $({},e,t)}(n,r);return null!=e&&(e[Zo]=null!==n),e}),[r,n]);return br.jsx(Ko.Provider,{value:o,children:t})}const Qo=["value"],ei=y.createContext();function ti(e){let{value:t}=e,r=z(e,Qo);return br.jsx(ei.Provider,$({value:null==t||t},r))}const ri=()=>{const e=y.useContext(ei);return null!=e&&e},ni=y.createContext(void 0);function oi({value:e,children:t}){return br.jsx(ni.Provider,{value:e,children:t})}function ii({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?lo(o.defaultProps,n):o.styleOverrides||o.variants?n:lo(o,n)}({props:e,name:t,theme:{components:y.useContext(ni)}})}const ai={};function si(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?$({},t,{[e]:i}):i;return n?()=>a:a}return $({},t,e?{[e]:r}:r)}),[e,t,r,n])}function li(e){const{children:t,theme:r,themeId:n}=e,o=Mn(ai),i=Xo()||ai,a=si(n,o,r),s=si(n,i,r,!0),l="rtl"===a.direction,c=function(e){const t=Mn(),r=So()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",co((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}}),[o,r]),o?br.jsx(zn,{styles:o}):null}(a);return br.jsx(Jo,{theme:s,children:br.jsx(Ot.Provider,{value:a,children:br.jsx(ti,{value:l,children:br.jsxs(oi,{value:null==a?void 0:a.components,children:[c,t]})})})})}var ci,di={},ui={exports:{}};function pi(){return ci||(ci=1,(e=ui).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),ui.exports;var e}var hi,fi=Ke(j),mi=Ke(po);function bi(){if(hi)return di;hi=1;var e=pi();Object.defineProperty(di,"__esModule",{value:!0}),di.alpha=d,di.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),a=i(e),l=i(t),c=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:c})},di.colorChannel=void 0,di.darken=u,di.decomposeColor=i,di.emphasize=h,di.getContrastRatio=function(e,t){const r=c(e),n=c(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},di.getLuminance=c,di.hexToRgb=o,di.hslToRgb=l,di.lighten=p,di.private_safeAlpha=function(e,t,r){try{return d(e,t)}catch(t){return e}},di.private_safeColorChannel=void 0,di.private_safeDarken=function(e,t,r){try{return u(e,t)}catch(t){return e}},di.private_safeEmphasize=function(e,t,r){try{return h(e,t)}catch(t){return e}},di.private_safeLighten=function(e,t,r){try{return p(e,t)}catch(t){return e}},di.recomposeColor=s,di.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var t=e(fi),r=e(mi);function n(e,t=0,n=1){return(0,r.default)(e,t,n)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const r=e.indexOf("("),n=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,t.default)(9,e));let a,s=e.substring(r+1,e.length-1);if("color"===n){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map((e=>parseFloat(e))),{type:n,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};di.colorChannel=a;function s(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function l(e){e=i(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),l=(e,t=(e+r/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const d=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",d.push(t[3])),s({type:c,values:d})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function d(e,t){return e=i(e),t=n(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function u(e,t){if(e=i(e),t=n(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=n(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return s(e)}function h(e,t=.15){return c(e)>.5?u(e,t):p(e,t)}return di.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},di}var gi=bi();const yi={black:"#000",white:"#fff"},xi={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ei="#f3e5f5",Si="#ce93d8",Ci="#ba68c8",wi="#ab47bc",Ri="#9c27b0",ki="#7b1fa2",Ai="#e57373",_i="#ef5350",Ii="#f44336",Ti="#d32f2f",Li="#c62828",Oi="#ffb74d",Pi="#ffa726",Mi="#ff9800",ji="#f57c00",Ni="#e65100",$i="#e3f2fd",zi="#90caf9",Bi="#42a5f5",Di="#1976d2",Fi="#1565c0",Gi="#4fc3f7",Hi="#29b6f6",Wi="#03a9f4",Yi="#0288d1",Ui="#01579b",Vi="#81c784",qi="#66bb6a",Ki="#4caf50",Xi="#388e3c",Zi="#2e7d32",Ji="#1b5e20",Qi=["mode","contrastThreshold","tonalOffset"],ea={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:yi.white,default:yi.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},ta={text:{primary:yi.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:yi.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function ra(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=gi.lighten(e.main,o):"dark"===t&&(e.dark=gi.darken(e.main,i)))}function na(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=z(e,Qi),i=e.primary||function(e="light"){return"dark"===e?{main:zi,light:$i,dark:Bi}:{main:Di,light:Bi,dark:Fi}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Si,light:Ei,dark:wi}:{main:Ri,light:Ci,dark:ki}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Ii,light:Ai,dark:Ti}:{main:Ti,light:_i,dark:Li}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Hi,light:Gi,dark:Yi}:{main:Yi,light:Wi,dark:Ui}}(t),c=e.success||function(e="light"){return"dark"===e?{main:qi,light:Vi,dark:Xi}:{main:Zi,light:Ki,dark:Ji}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:Pi,light:Oi,dark:ji}:{main:"#ed6c02",light:Mi,dark:Ni}}(t);function u(e){return gi.getContrastRatio(e,ta.text.primary)>=r?ta.text.primary:ea.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=$({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(M(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(M(12,t?` (${t})`:"",JSON.stringify(e.main)));return ra(e,"light",o,n),ra(e,"dark",i,n),e.contrastText||(e.contrastText=u(e.main)),e},h={dark:ta,light:ea};return Rr($({common:$({},yi),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:xi,contrastThreshold:r,getContrastText:u,augmentColor:p,tonalOffset:n},h[t]),o)}const oa=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const ia={textTransform:"uppercase"},aa='"Roboto", "Helvetica", "Arial", sans-serif';function sa(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=aa,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=r,p=z(r,oa),h=o/14,f=u||(e=>e/c*h+"rem"),m=(e,t,r,o,i)=>{return $({fontFamily:n,fontWeight:e,fontSize:f(t),lineHeight:r},n===aa?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,d);var a},b={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,ia),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,ia),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Rr($({htmlFontSize:c,pxToRem:f,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},b),p,{clone:!1})}function la(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ca=["none",la(0,2,1,-1,0,1,1,0,0,1,3,0),la(0,3,1,-2,0,2,2,0,0,1,5,0),la(0,3,3,-2,0,3,4,0,0,1,8,0),la(0,2,4,-1,0,4,5,0,0,1,10,0),la(0,3,5,-1,0,5,8,0,0,1,14,0),la(0,3,5,-1,0,6,10,0,0,1,18,0),la(0,4,5,-2,0,7,10,1,0,2,16,1),la(0,5,5,-3,0,8,10,1,0,3,14,2),la(0,5,6,-3,0,9,12,1,0,3,16,2),la(0,6,6,-3,0,10,14,1,0,4,18,3),la(0,6,7,-4,0,11,15,1,0,4,20,3),la(0,7,8,-4,0,12,17,2,0,5,22,4),la(0,7,8,-4,0,13,19,2,0,5,24,4),la(0,7,9,-4,0,14,21,2,0,5,26,4),la(0,8,9,-5,0,15,22,2,0,6,28,5),la(0,8,10,-5,0,16,24,2,0,6,30,5),la(0,8,11,-5,0,17,26,2,0,6,32,5),la(0,9,11,-5,0,18,28,2,0,7,34,6),la(0,9,12,-6,0,19,29,2,0,7,36,6),la(0,10,13,-6,0,20,31,3,0,8,38,7),la(0,10,13,-6,0,21,33,3,0,8,40,7),la(0,10,14,-6,0,22,35,3,0,8,42,7),la(0,11,14,-7,0,23,36,3,0,9,44,8),la(0,11,15,-7,0,24,38,3,0,9,46,8)],da=["duration","easing","delay"],ua={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},pa={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ha(e){return`${Math.round(e)}ms`}function fa(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ma(e){const t=$({},ua,e.easing),r=$({},pa,e.duration);return $({getAutoHeightDuration:fa,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return z(n,da),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ha(o)} ${i} ${"string"==typeof a?a:ha(a)}`)).join(",")}},e,{easing:t,duration:r})}const ba={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ga=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function va(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=z(e,ga);if(e.vars&&void 0===e.generateCssVars)throw new Error(M(18));const s=na(n),l=On(e);let c=Rr(l,{mixins:(d=l.breakpoints,u=r,$({toolbar:{minHeight:56,[d.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[d.up("sm")]:{minHeight:64}}},u)),palette:s,shadows:ca.slice(),typography:sa(s,i),transitions:ma(o),zIndex:$({},ba)});var d,u;return c=Rr(c,a),c=t.reduce(((e,t)=>Rr(e,t)),c),c.unstable_sxConfig=$({},An,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return In({sx:e,theme:this})},c}const ya=va();function xa(){const e=Nn(ya);return e[N]||e}var Ea,Sa={},Ca={exports:{}};var wa,Ra={exports:{}};var ka,Aa=Ke(Sr),_a=Ke(kr),Ia=Ke(Nr),Ta=Ke(so),La=Ke(Pn),Oa=Ke(Fn);function Pa(){if(ka)return Sa;ka=1;var e=pi();Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.default=function(e={}){const{themeId:t,defaultTheme:a=f,rootShouldForwardProp:l=p,slotShouldForwardProp:c=p}=e,u=e=>(0,s.default)((0,r.default)({},e,{theme:b((0,r.default)({},e,{defaultTheme:a,themeId:t}))}));return u.__mui_systemSx=!0,(e,s={})=>{(0,o.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:h,slot:f,skipVariantsResolver:y,skipSx:x,overridesResolver:E=g(m(f))}=s,S=(0,n.default)(s,d),C=h&&h.startsWith("Mui")||f?"components":"custom",w=void 0!==y?y:f&&"Root"!==f&&"root"!==f||!1,R=x||!1;let k=p;"Root"===f||"root"===f?k=l:f?k=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const A=(0,o.default)(e,(0,r.default)({shouldForwardProp:k,label:undefined},S)),_=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?n=>{const o=b({theme:n.theme,defaultTheme:a,themeId:t});return v(e,(0,r.default)({},n,{theme:o}),o.modularCssLayers?C:void 0)}:e,I=(n,...o)=>{let i=_(n);const s=o?o.map(_):[];h&&E&&s.push((e=>{const n=b((0,r.default)({},e,{defaultTheme:a,themeId:t}));if(!n.components||!n.components[h]||!n.components[h].styleOverrides)return null;const o=n.components[h].styleOverrides,i={};return Object.entries(o).forEach((([t,o])=>{i[t]=v(o,(0,r.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),E(e,i)})),h&&!w&&s.push((e=>{var n;const o=b((0,r.default)({},e,{defaultTheme:a,themeId:t}));return v({variants:null==o||null==(n=o.components)||null==(n=n[h])?void 0:n.variants},(0,r.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),R||s.push(u);const l=s.length-o.length;if(Array.isArray(n)&&l>0){const e=new Array(l).fill("");i=[...n,...e],i.raw=[...n.raw,...e]}const c=A(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return A.withConfig&&(I.withConfig=A.withConfig),I}},Sa.shouldForwardProp=p,Sa.systemDefaultTheme=void 0;var t,r=e((Ea||(Ea=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ca)),Ca.exports)),n=e((wa||(wa=1,(t=Ra).exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},t.exports.__esModule=!0,t.exports.default=t.exports),Ra.exports)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(Aa),i=_a;e(Ia),e(Ta);var a=e(La),s=e(Oa);const l=["ownerState"],c=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function h(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=Sa.systemDefaultTheme=(0,a.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function g(e){return e?(t,r)=>r[e]:null}function v(e,t,i){let{ownerState:a}=t,s=(0,n.default)(t,l);const d="function"==typeof e?e((0,r.default)({ownerState:a},s)):e;if(Array.isArray(d))return d.flatMap((e=>v(e,(0,r.default)({ownerState:a},s),i)));if(d&&"object"==typeof d&&Array.isArray(d.variants)){const{variants:e=[]}=d;let t=(0,n.default)(d,c);return e.forEach((e=>{let n=!0;if("function"==typeof e.props?n=e.props((0,r.default)({ownerState:a},s,a)):Object.keys(e.props).forEach((t=>{(null==a?void 0:a[t])!==e.props[t]&&s[t]!==e.props[t]&&(n=!1)})),n){Array.isArray(t)||(t=[t]);const n="function"==typeof e.style?e.style((0,r.default)({ownerState:a},s,a)):e.style;t.push(i?h((0,o.internal_serializeStyles)(n),i):n)}})),t}return i?h((0,o.internal_serializeStyles)(d),i):d}return Sa}const Ma=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,ja=qe(Pa())({themeId:N,defaultTheme:ya,rootShouldForwardProp:Ma}),Na=["theme"];function $a(e){let{theme:t}=e,r=z(e,Na);const n=t[N];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=$({},n,{vars:null}):t&&!t.vars&&(o=$({},t,{vars:null}))),br.jsx(li,$({},r,{themeId:n?N:void 0,theme:o}))}const za=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Ba={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Da=12,Fa=14,Ga=16,Ha=24,Wa=3,Ya=300,Ua=400,Va=600,qa=700,Ka={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Xa(e){return ii(e)}function Za(e){return qn("MuiSvgIcon",e)}Kn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ja=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Qa=ja("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${jr(r.color)}`],t[`fontSize${jr(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,c,d,u,p,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(u=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?u:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),es=y.forwardRef((function(e,t){const r=Xa({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:u="0 0 24 24"}=r,p=z(r,Ja),h=y.isValidElement(n)&&"svg"===n.type,f=$({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:u,hasSvgAsChild:h}),m={};c||(m.viewBox=u);const b=(e=>{const{color:t,fontSize:r,classes:n}=e;return Go({root:["root","inherit"!==t&&`color${jr(t)}`,`fontSize${jr(r)}`]},Za,n)})(f);return br.jsxs(Qa,$({as:a,className:Yn(b.root,o),focusable:"false",color:l,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},m,p,h&&n.props,{ownerState:f,children:[h?n.props.children:n,d?br.jsx("title",{children:d}):null]}))}));function ts(e,t){function r(r,n){return br.jsx(es,$({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=es.muiName,y.memo(y.forwardRef(r))}function rs(e,t){return rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rs(e,t)}function ns(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rs(e,t)}es.muiName="SvgIcon";var os=!1,is=S.createContext(null),as="unmounted",ss="exited",ls="entering",cs="entered",ds="exiting",us=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=ss,n.appearStatus=ls):o=cs:o=t.unmountOnExit||t.mountOnEnter?as:ss,n.state={status:o},n.nextCallback=null,n}ns(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===as?{status:ss}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==ls&&r!==cs&&(t=ls):r!==ls&&r!==cs||(t=ds)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ls){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:L.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ss&&this.setState({status:as})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[L.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||os?this.safeSetState({status:cs},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:ls},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:cs},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:L.findDOMNode(this);t&&!os?(this.props.onExit(n),this.safeSetState({status:ds},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:ss},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:ss},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:L.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===as)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=z(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(is.Provider,{value:null},"function"==typeof r?r(e,n):S.cloneElement(S.Children.only(r),n))},t}(S.Component);function ps(){}function hs(e,t){var r=Object.create(null);return e&&R.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&C(e)?t(e):e}(e)})),r}function fs(e,t,r){return null!=r[t]?r[t]:e.props[t]}function ms(e,t,r){var n=hs(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var c=o[l][n];s[o[l][n]]=r(c)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(C(a)){var s=i in t,l=i in n,c=t[i],d=C(c)&&!c.props.in;!l||s&&!d?l||!s||d?l&&s&&C(c)&&(o[i]=w(a,{onExited:r.bind(null,a),in:c.props.in,exit:fs(a,"exit",e),enter:fs(a,"enter",e)})):o[i]=w(a,{in:!1}):o[i]=w(a,{onExited:r.bind(null,a),in:!0,exit:fs(a,"exit",e),enter:fs(a,"enter",e)})}})),o}us.contextType=is,us.propTypes={},us.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ps,onEntering:ps,onEntered:ps,onExit:ps,onExiting:ps,onExited:ps},us.UNMOUNTED=as,us.EXITED=ss,us.ENTERING=ls,us.ENTERED=cs,us.EXITING=ds;var bs=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},gs=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}ns(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,hs(r.children,(function(e){return w(e,{onExited:n.bind(null,e),in:!0,appear:fs(e,"appear",r),enter:fs(e,"enter",r),exit:fs(e,"exit",r)})}))):ms(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=hs(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=$({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=z(e,["component","childFactory"]),o=this.state.contextValue,i=bs(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?S.createElement(is.Provider,{value:o},i):S.createElement(is.Provider,{value:o},S.createElement(t,n,i))},t}(S.Component);gs.propTypes={},gs.defaultProps={component:"div",childFactory:function(e){return e}};const vs=e=>e.scrollTop;function ys(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function xs(e){return qn("MuiPaper",e)}Kn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Es=["className","component","elevation","square","variant"],Ss=ja("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return $({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&$({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${gi.alpha("#fff",za(t.elevation))}, ${gi.alpha("#fff",za(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Cs=y.forwardRef((function(e,t){const r=Xa({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=z(r,Es),c=$({},r,{component:o,elevation:i,square:a,variant:s}),d=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Go({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},xs,o)})(c);return br.jsx(Ss,$({as:o,ownerState:c,className:Yn(d.root,n),ref:t},l))}));const ws=Kn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Rs=["center","classes","className"];let ks,As,_s,Is,Ts=e=>e;const Ls=Xt(ks||(ks=Ts`
15
15
  0% {
16
16
  transform: scale(0);
17
17
  opacity: 0.1;
@@ -21,7 +21,7 @@ System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use st
21
21
  transform: scale(1);
22
22
  opacity: 0.3;
23
23
  }
24
- `)),Ws=fr(Bs||(Bs=Gs`
24
+ `)),Os=Xt(As||(As=Ts`
25
25
  0% {
26
26
  opacity: 1;
27
27
  }
@@ -29,7 +29,7 @@ System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use st
29
29
  100% {
30
30
  opacity: 0;
31
31
  }
32
- `)),Ys=fr(Ds||(Ds=Gs`
32
+ `)),Ps=Xt(_s||(_s=Ts`
33
33
  0% {
34
34
  transform: scale(1);
35
35
  }
@@ -41,7 +41,7 @@ System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use st
41
41
  100% {
42
42
  transform: scale(1);
43
43
  }
44
- `)),Us=Vl("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Vs=Vl((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:c}=e,[d,u]=y.useState(!1),p=mo(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},f=mo(r.child,d&&r.childLeaving,n&&r.childPulsate);return l||d||u(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,c);return()=>{clearTimeout(e)}}}),[s,l,c]),Br.jsx("span",{className:p,style:h,children:Br.jsx("span",{className:f})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Fs||(Fs=Gs`
44
+ `)),Ms=ja("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),js=ja((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[d,u]=y.useState(!1),p=Yn(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},f=Yn(r.child,d&&r.childLeaving,n&&r.childPulsate);return s||d||u(!0),y.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),br.jsx("span",{className:p,style:h,children:br.jsx("span",{className:f})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Is||(Is=Ts`
45
45
  opacity: 0;
46
46
  position: absolute;
47
47
 
@@ -84,6 +84,6 @@ System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use st
84
84
  animation-iteration-count: infinite;
85
85
  animation-delay: 200ms;
86
86
  }
87
- `),Ns.rippleVisible,Hs,550,(({theme:e})=>e.transitions.easing.easeInOut),Ns.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Ns.child,Ns.childLeaving,Ws,550,(({theme:e})=>e.transitions.easing.easeInOut),Ns.childPulsate,Ys,(({theme:e})=>e.transitions.easing.easeInOut)),qs=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=B(r,$s),[l,s]=y.useState([]),c=y.useRef(0),d=y.useRef(null);y.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const u=y.useRef(!1),p=si(),h=y.useRef(null),f=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,Br.jsx(Vs,{classes:{ripple:mo(o.ripple,Ns.ripple),rippleVisible:mo(o.rippleVisible,Ns.rippleVisible),ripplePulsate:mo(o.ripplePulsate,Ns.ripplePulsate),child:mo(o.child,Ns.child),childLeaving:mo(o.childLeaving,Ns.childLeaving),childPulsate:mo(o.childPulsate,Ns.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},c.current)])),c.current+=1,d.current=a}),[o]),b=y.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&u.current)return void(u.current=!1);"touchstart"===(null==e?void 0:e.type)&&(u.current=!0);const l=a?null:f.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,d,b;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),d=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),d=Math.round(r-s.top)}if(i)b=Math.sqrt((2*s.width**2+s.height**2)/3),b%2==0&&(b+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-d),d)+2;b=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:o,rippleX:c,rippleY:d,rippleSize:b,cb:r})},p.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:o,rippleX:c,rippleY:d,rippleSize:b,cb:r})}),[n,m,p]),g=y.useCallback((()=>{b({},{pulsate:!0})}),[b]),v=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void p.start(0,(()=>{v(e,t)}));h.current=null,s((e=>e.length>0?e.slice(1):e)),d.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:g,start:b,stop:v})),[g,b,v]),Br.jsx(Us,z({className:mo(Ns.root,o.root,i),ref:f},a,{children:Br.jsx(Is,{component:null,exit:!0,children:l})}))}));function Ks(e){return vo("MuiButtonBase",e)}const Xs=yo("MuiButtonBase",["root","disabled","focusVisible"]),Zs=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Js=Vl("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Xs.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Qs=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:u=!1,LinkComponent:p="a",onBlur:h,onClick:f,onContextMenu:m,onDragLeave:b,onFocus:g,onFocusVisible:v,onKeyDown:x,onKeyUp:E,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:k,onTouchStart:A,tabIndex:_=0,TouchRippleProps:I,touchRippleRef:T,type:L}=r,O=B(r,Zs),P=y.useRef(null),M=y.useRef(null),j=oi(M,T),{isFocusVisibleRef:N,onFocus:$,onBlur:D,ref:F}=gi(),[G,H]=y.useState(!1);s&&G&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),P.current.focus()}})),[]);const[W,Y]=y.useState(!1);y.useEffect((()=>{Y(!0)}),[]);const U=W&&!c&&!s;function V(e,t,r=d){return ni((n=>{t&&t(n);return!r&&M.current&&M.current[e](n),!0}))}y.useEffect((()=>{G&&u&&!c&&W&&M.current.pulsate()}),[c,u,G,W]);const q=V("start",S),K=V("stop",m),X=V("stop",b),Z=V("stop",w),J=V("stop",(e=>{G&&e.preventDefault(),C&&C(e)})),Q=V("start",A),ee=V("stop",R),te=V("stop",k),re=V("stop",(e=>{D(e),!1===N.current&&H(!1),h&&h(e)}),!1),ne=ni((e=>{P.current||(P.current=e.currentTarget),$(e),!0===N.current&&(H(!0),v&&v(e)),g&&g(e)})),oe=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ie=y.useRef(!1),ae=ni((e=>{u&&!ie.current&&G&&M.current&&" "===e.key&&(ie.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!s&&(e.preventDefault(),f&&f(e))})),le=ni((e=>{u&&" "===e.key&&M.current&&G&&!e.defaultPrevented&&(ie.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),E&&E(e),f&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&f(e)}));let se=l;"button"===se&&(O.href||O.to)&&(se=p);const ce={};"button"===se?(ce.type=void 0===L?"button":L,ce.disabled=s):(O.href||O.to||(ce.role="button"),s&&(ce["aria-disabled"]=s));const de=oi(t,F,P),ue=z({},r,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:d,focusRipple:u,tabIndex:_,focusVisible:G}),pe=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Ci({root:["root",t&&"disabled",r&&"focusVisible"]},Ks,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Br.jsxs(Js,z({as:se,className:mo(pe.root,a),ownerState:ue,onBlur:re,onClick:f,onContextMenu:K,onFocus:ne,onKeyDown:ae,onKeyUp:le,onMouseDown:q,onMouseLeave:J,onMouseUp:Z,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:de,tabIndex:s?-1:_,type:L},ce,O,{children:[i,U?Br.jsx(qs,z({ref:j,center:o},I)):null]}))}));function ec(e){return vo("MuiTypography",e)}yo("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const tc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],rc=Vl("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${on(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>z({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),nc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},oc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ic=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiTypography"}),n=(e=>oc[e]||e)(r.color),o=co(z({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:d=!1,variant:u="body1",variantMapping:p=nc}=o,h=B(o,tc),f=z({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:c,paragraph:d,variant:u,variantMapping:p}),m=l||(d?"p":p[u]||nc[u])||"span",b=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Ci({root:["root",i,"inherit"!==e.align&&`align${on(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},ec,a)})(f);return Br.jsx(rc,z({as:m,ref:t,ownerState:f,className:mo(b.root,a)},h))}));const ac=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=oi(y.isValidElement(r)?Ii(r):null,t);if(Wo((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Wo((()=>{if(i&&!o)return Qo(t,i),()=>{Qo(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:l};return y.cloneElement(r,e)}return Br.jsx(y.Fragment,{children:r})}return Br.jsx(y.Fragment,{children:i?O.createPortal(r,i):i})})),lc=["onChange","maxRows","minRows","style","value"];function sc(e){return parseInt(e,10)||0}const cc={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function dc(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const uc=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=B(e,lc),{current:s}=y.useRef(null!=a),c=y.useRef(null),d=oi(t,c),u=y.useRef(null),p=y.useRef(null),h=y.useCallback((()=>{const t=c.current,r=p.current;if(!t||!r)return;const i=Jo(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,l=sc(i.paddingBottom)+sc(i.paddingTop),s=sc(i.borderBottomWidth)+sc(i.borderTopWidth),d=r.scrollHeight;r.value="x";const u=r.scrollHeight;let h=d;o&&(h=Math.max(Number(o)*u,h)),n&&(h=Math.min(Number(n)*u,h)),h=Math.max(h,u);return{outerHeightStyle:h+("border-box"===a?l+s:0),overflowing:Math.abs(h-d)<=1}}),[n,o,e.placeholder]),f=ni((()=>{const e=c.current,t=h();if(!e||!t||dc(t))return!1;const r=t.outerHeightStyle;return null!=u.current&&u.current!==r})),m=y.useCallback((()=>{const e=c.current,t=h();if(!e||!t||dc(t))return;const r=t.outerHeightStyle;u.current!==r&&(u.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""}),[h]),b=y.useRef(-1);Wo((()=>{const e=Xo(m),t=null==c?void 0:c.current;if(!t)return;const r=Jo(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{f()&&(n.unobserve(t),cancelAnimationFrame(b.current),m(),b.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(b.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[h,m,f]),Wo((()=>{m()}));return Br.jsxs(y.Fragment,{children:[Br.jsx("textarea",z({value:a,onChange:e=>{s||m(),r&&r(e)},ref:d,rows:o,style:i},l)),Br.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:z({},cc,i,{paddingTop:0,paddingBottom:0})})]})}));const pc=y.createContext(void 0);function hc(){return y.useContext(pc)}function fc(e){return Br.jsx(lo,z({},e,{defaultTheme:fl,themeId:$}))}function mc(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function bc(e){return vo("MuiInputBase",e)}const gc=yo("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),vc=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],yc=Vl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${on(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]}})((({theme:e,ownerState:t})=>z({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${gc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&z({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),xc=Vl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]}})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=z({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return z({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${gc.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${gc.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Ec=Br.jsx(fc,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Sc=y.forwardRef((function(e,t){var r;const n=ss({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:c={},defaultValue:d,disabled:u,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:f=!1,id:m,inputComponent:b="input",inputProps:g={},inputRef:v,maxRows:x,minRows:E,multiline:S=!1,name:C,onBlur:w,onChange:R,onClick:k,onFocus:A,onKeyDown:_,onKeyUp:I,placeholder:T,readOnly:L,renderSuffix:O,rows:P,slotProps:M={},slots:N={},startAdornment:$,type:D="text",value:F}=n,G=B(n,vc),H=null!=g.value?g.value:F,{current:W}=y.useRef(null!=H),Y=y.useRef(),U=y.useCallback((e=>{}),[]),V=oi(Y,v,g.ref,U),[q,K]=y.useState(!1),X=hc(),Z=function({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}({props:n,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Z.focused=X?X.focused:q,y.useEffect((()=>{!X&&u&&q&&(K(!1),w&&w())}),[X,u,q,w]);const J=X&&X.onFilled,Q=X&&X.onEmpty,ee=y.useCallback((e=>{!function(e,t=!1){return e&&(mc(e.value)&&""!==e.value||t&&mc(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():J&&J()}),[J,Q]);Wo((()=>{W&&ee({value:H})}),[H,ee,W]);y.useEffect((()=>{ee(Y.current)}),[]);let te=b,re=g;S&&"input"===te&&(re=z(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:x,minRows:E},re),te=uc);y.useEffect((()=>{X&&X.setAdornedStart(Boolean($))}),[X,$]);const ne=z({},n,{color:Z.color||"primary",disabled:Z.disabled,endAdornment:h,error:Z.error,focused:Z.focused,formControl:X,fullWidth:f,hiddenLabel:Z.hiddenLabel,multiline:S,size:Z.size,startAdornment:$,type:D}),oe=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:c,multiline:d,readOnly:u,size:p,startAdornment:h,type:f}=e;return Ci({root:["root",`color${on(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${on(p)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",n&&"disabled","search"===f&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",u&&"readOnly"]},bc,t)})(ne),ie=N.root||s.Root||yc,ae=M.root||c.root||{},le=N.input||s.Input||xc;return re=z({},re,null!=(r=M.input)?r:c.input),Br.jsxs(y.Fragment,{children:[!p&&Ec,Br.jsxs(ie,z({},ae,!wi(ie)&&{ownerState:z({},ne,ae.ownerState)},{ref:t,onClick:e=>{Y.current&&e.currentTarget===e.target&&Y.current.focus(),k&&k(e)}},G,{className:mo(oe.root,ae.className,l,L&&"MuiInputBase-readOnly"),children:[$,Br.jsx(pc.Provider,{value:null,children:Br.jsx(le,z({ownerState:ne,"aria-invalid":Z.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:Z.disabled,id:m,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?Y.current:{value:"x"})},name:C,placeholder:T,readOnly:L,required:Z.required,rows:P,value:H,onKeyDown:_,onKeyUp:I,type:D},re,!wi(le)&&{as:te,ownerState:z({},ne,re.ownerState)},{ref:V,className:mo(oe.input,re.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),g.onBlur&&g.onBlur(e),X&&X.onBlur?X.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!W){const t=e.target||Y.current;if(null==t)throw new Error(j(1));ee({value:t.value})}g.onChange&&g.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Z.disabled?e.stopPropagation():(A&&A(e),g.onFocus&&g.onFocus(e),X&&X.onFocus?X.onFocus(e):K(!0))}}))}),h,O?O(z({},Z,{startAdornment:$})):null]}))]})})),Cc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],wc={entering:{opacity:1},entered:{opacity:1}},Rc=y.forwardRef((function(e,t){const r=ml(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:d,onEntering:u,onExit:p,onExited:h,onExiting:f,style:m,timeout:b=n,TransitionComponent:g=Cs}=e,v=B(e,Cc),x=y.useRef(null),E=oi(x,Ii(a),t),S=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=S(u),w=S(((e,t)=>{Ts(e);const n=Ls({style:m,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),R=S(d),k=S(f),A=S((e=>{const t=Ls({style:m,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),_=S(h);return Br.jsx(g,z({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:_,onExiting:k,addEndListener:e=>{o&&o(x.current,e)},timeout:b},v,{children:(e,t)=>y.cloneElement(a,z({style:z({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},wc[e],m,a.props.style),ref:E},t))}))}));function kc(e){return vo("MuiBackdrop",e)}yo("MuiBackdrop",["root","invisible"]);const Ac=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],_c=Vl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>z({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),Ic=y.forwardRef((function(e,t){var r,n,o;const i=ss({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:c={},componentsProps:d={},invisible:u=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=Rc,transitionDuration:b}=i,g=B(i,Ac),v=z({},i,{component:s,invisible:u}),y=(e=>{const{classes:t,invisible:r}=e;return Ci({root:["root",r&&"invisible"]},kc,t)})(v),x=null!=(r=h.root)?r:d.root;return Br.jsx(m,z({in:p,timeout:b},g,{children:Br.jsx(_c,z({"aria-hidden":!0},x,{as:null!=(n=null!=(o=f.root)?o:c.Root)?n:s,className:mo(y.root,l,null==x?void 0:x.className),ownerState:z({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),Tc=yo("MuiBox",["root"]),Lc=hl(),Oc=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Gr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Jn);return y.forwardRef((function(e,a){const l=io(r),s=co(e),{className:c,component:d="div"}=s,u=B(s,bo);return Br.jsx(i,z({as:d,ref:a,className:mo(c,o?o(n):n),theme:t&&l[t]||l},u))}))}({themeId:$,defaultTheme:Lc,defaultClassName:Tc.root,generateClassName:ho.generate});function Pc(e){return vo("MuiButton",e)}const Mc=yo("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),jc=y.createContext({}),Nc=y.createContext(void 0),$c=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],zc=e=>z({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Bc=Vl(Qs,{shouldForwardProp:e=>Ul(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${on(r.color)}`],t[`size${on(r.size)}`],t[`${r.variant}Size${on(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return z({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":z({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Zi(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Zi(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Zi(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":z({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Mc.focusVisible}`]:z({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Mc.disabled}`]:z({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Zi(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Mc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Mc.disabled}`]:{boxShadow:"none"}})),Dc=Vl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${on(r.size)}`]]}})((({ownerState:e})=>z({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},zc(e)))),Fc=Vl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${on(r.size)}`]]}})((({ownerState:e})=>z({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},zc(e)))),Gc=y.forwardRef((function(e,t){const r=y.useContext(jc),n=y.useContext(Nc),o=ss({props:Ho(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:u=!1,endIcon:p,focusVisibleClassName:h,fullWidth:f=!1,size:m="medium",startIcon:b,type:g,variant:v="text"}=o,x=B(o,$c),E=z({},o,{color:a,component:l,disabled:c,disableElevation:d,disableFocusRipple:u,fullWidth:f,size:m,type:g,variant:v}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return z({},a,Ci({root:["root",i,`${i}${on(t)}`,`size${on(o)}`,`${i}Size${on(o)}`,`color${on(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${on(o)}`],endIcon:["icon","endIcon",`iconSize${on(o)}`]},Pc,a))})(E),C=b&&Br.jsx(Dc,{className:S.startIcon,ownerState:E,children:b}),w=p&&Br.jsx(Fc,{className:S.endIcon,ownerState:E,children:p}),R=n||"";return Br.jsxs(Bc,z({ownerState:E,className:mo(r.className,S.root,s,R),component:l,disabled:c,focusRipple:!u,focusVisibleClassName:mo(S.focusVisible,h),ref:t,type:g},x,{classes:S,children:[C,i,w]}))}));function Hc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Wc(e){return parseInt(Jo(e).getComputedStyle(e).paddingRight,10)||0}function Yc(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&Hc(e,o)}))}function Uc(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Vc(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Zo(e);return t.body===e?Jo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=yi(Zo(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Wc(n)+e}px`;const t=Zo(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Wc(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Zo(n).body;else{const t=n.parentElement,r=Jo(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const qc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Kc(e){const t=[],r=[];return Array.from(e.querySelectorAll(qc)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Xc(){return!0}function Zc(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Kc,isEnabled:a=Xc,open:l}=e,s=y.useRef(!1),c=y.useRef(null),d=y.useRef(null),u=y.useRef(null),p=y.useRef(null),h=y.useRef(!1),f=y.useRef(null),m=oi(Ii(t),f),b=y.useRef(null);y.useEffect((()=>{l&&f.current&&(h.current=!r)}),[r,l]),y.useEffect((()=>{if(!l||!f.current)return;const e=Zo(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),h.current&&f.current.focus()),()=>{o||(u.current&&u.current.focus&&(s.current=!0,u.current.focus()),u.current=null)}}),[l]),y.useEffect((()=>{if(!l||!f.current)return;const e=Zo(f.current),t=t=>{b.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(s.current=!0,d.current&&d.current.focus())},r=()=>{const t=f.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=i(f.current)),r.length>0){var o,l;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=b.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,i]);const g=e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0};return Br.jsxs(y.Fragment,{children:[Br.jsx("div",{tabIndex:l?0:-1,onFocus:g,ref:c,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Br.jsx("div",{tabIndex:l?0:-1,onFocus:g,ref:d,"data-testid":"sentinelEnd"})]})}const Jc=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Hc(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Yc(t,e.mount,e.modalRef,n,!0);const o=Uc(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Uc(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Vc(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Uc(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Hc(e.modalRef,t),Yc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Hc(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Qc(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Jc,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:c,open:d,rootRef:u}=e,p=y.useRef({}),h=y.useRef(null),f=y.useRef(null),m=oi(f,u),[b,g]=y.useState(!d),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const E=()=>(p.current.modalRef=f.current,p.current.mount=h.current,p.current),S=()=>{o.mount(E(),{disableScrollLock:n}),f.current&&(f.current.scrollTop=0)},C=ni((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Zo(h.current).body;o.add(E(),e),f.current&&S()})),w=y.useCallback((()=>o.isTopModal(E())),[o]),R=ni((e=>{h.current=e,e&&(d&&w()?S():f.current&&Hc(f.current,x))})),k=y.useCallback((()=>{o.remove(E(),x)}),[x,o]);y.useEffect((()=>()=>{k()}),[k]),y.useEffect((()=>{d?C():v&&i||k()}),[d,k,v,i,C]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},_=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Ri(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=z({},r,t);return z({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>z({"aria-hidden":!0},e,{onClick:_(e),open:d}),getTransitionProps:()=>({onEnter:Ko((()=>{g(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ko((()=>{g(!0),l&&l(),i&&k()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:b,hasTransition:v}}function ed(e){return vo("MuiModal",e)}yo("MuiModal",["root","hidden","backdrop"]);const td=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],rd=Vl("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>z({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),nd=Vl(Ic,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),od=y.forwardRef((function(e,t){var r,n,o,i,a,l;const s=ss({name:"MuiModal",props:e}),{BackdropComponent:c=nd,BackdropProps:d,className:u,closeAfterTransition:p=!1,children:h,container:f,component:m,components:b={},componentsProps:g={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:E=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:k=!1,onBackdropClick:A,open:_,slotProps:I,slots:T}=s,L=B(s,td),O=z({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:E,disablePortal:S,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:k}),{getRootProps:P,getBackdropProps:M,getTransitionProps:j,portalRef:N,isTopModal:$,exited:D,hasTransition:F}=Qc(z({},O,{rootRef:t})),G=z({},O,{exited:D}),H=(e=>{const{open:t,exited:r,classes:n}=e;return Ci({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},ed,n)})(G),W={};if(void 0===h.props.tabIndex&&(W.tabIndex="-1"),F){const{onEnter:e,onExited:t}=j();W.onEnter=e,W.onExited=t}const Y=null!=(r=null!=(n=null==T?void 0:T.root)?n:b.Root)?r:rd,U=null!=(o=null!=(i=null==T?void 0:T.backdrop)?i:b.Backdrop)?o:c,V=null!=(a=null==I?void 0:I.root)?a:g.root,q=null!=(l=null==I?void 0:I.backdrop)?l:g.backdrop,K=_i({elementType:Y,externalSlotProps:V,externalForwardedProps:L,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:G,className:mo(u,null==V?void 0:V.className,null==H?void 0:H.root,!G.open&&G.exited&&(null==H?void 0:H.hidden))}),X=_i({elementType:U,externalSlotProps:q,additionalProps:d,getSlotProps:e=>M(z({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:mo(null==q?void 0:q.className,null==d?void 0:d.className,null==H?void 0:H.backdrop),ownerState:G});return k||_||F&&!D?Br.jsx(ac,{ref:N,container:f,disablePortal:S,children:Br.jsxs(Y,z({},K,{children:[!R&&c?Br.jsx(U,z({},X)):null,Br.jsx(Zc,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:$,open:_,children:y.cloneElement(h,W)})]}))}):null}));function id(e){return vo("MuiDivider",e)}const ad=yo("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),ld=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],sd=Vl("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>z({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Zi(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>z({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>z({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>z({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>z({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),cd=Vl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>z({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),dd=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:d=("hr"!==a?"separator":void 0),textAlign:u="center",variant:p="fullWidth"}=r,h=B(r,ld),f=z({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:c,role:d,textAlign:u,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Ci({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},id,n)})(f);return Br.jsx(sd,z({as:a,className:mo(m.root,i),role:d,ref:t,ownerState:f},h,{children:o?Br.jsx(cd,{className:m.wrapper,ownerState:f,children:o}):null}))}));dd.muiSkipListHighlight=!0;const ud=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function pd(e){return`scale(${e}, ${e**2})`}const hd={entering:{opacity:1,transform:pd(1)},entered:{opacity:1,transform:"none"}},fd="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),md=y.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:c,onExit:d,onExited:u,onExiting:p,style:h,timeout:f="auto",TransitionComponent:m=Cs}=e,b=B(e,ud),g=si(),v=y.useRef(),x=ml(),E=y.useRef(null),S=oi(E,Ii(o),t),C=e=>t=>{if(e){const r=E.current;void 0===t?e(r):e(r,t)}},w=C(c),R=C(((e,t)=>{Ts(e);const{duration:r,delay:n,easing:o}=Ls({style:h,timeout:f,easing:i},{mode:"enter"});let a;"auto"===f?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:fd?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),k=C(s),A=C(p),_=C((e=>{const{duration:t,delay:r,easing:n}=Ls({style:h,timeout:f,easing:i},{mode:"exit"});let o;"auto"===f?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:fd?o:.666*o,delay:fd?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=pd(.75),d&&d(e)})),I=C(u);return Br.jsx(m,z({appear:n,in:a,nodeRef:E,onEnter:R,onEntered:k,onEntering:w,onExit:_,onExited:I,onExiting:A,addEndListener:e=>{"auto"===f&&g.start(v.current||0,e),r&&r(E.current,e)},timeout:"auto"===f?null:f},b,{children:(e,t)=>y.cloneElement(o,z({style:z({opacity:0,transform:pd(.75),visibility:"exited"!==e||a?void 0:"hidden"},hd[e],h,o.props.style),ref:S},t))}))}));function bd(e){return vo("MuiInputAdornment",e)}md.muiSupportAuto=!0;const gd=yo("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var vd;const yd=["children","className","component","disablePointerEvents","disableTypography","position","variant"],xd=Vl("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${on(r.position)}`],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((({theme:e,ownerState:t})=>z({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${gd.positionStart}&:not(.${gd.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),Ed=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiInputAdornment"}),{children:n,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:s,variant:c}=r,d=B(r,yd),u=hc()||{};let p=c;c&&u.variant,u&&!p&&(p=u.variant);const h=z({},r,{hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:s,variant:p}),f=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:i,variant:a}=e;return Ci({root:["root",r&&"disablePointerEvents",o&&`position${on(o)}`,a,n&&"hiddenLabel",i&&`size${on(i)}`]},bd,t)})(h);return Br.jsx(pc.Provider,{value:null,children:Br.jsx(xd,z({as:i,ownerState:h,className:mo(f.root,o),ref:t},d,{children:"string"!=typeof n||l?Br.jsxs(y.Fragment,{children:["start"===s?vd||(vd=Br.jsx("span",{className:"notranslate",children:"​"})):null,n]}):Br.jsx(ic,{color:"text.secondary",children:n})}))})})),Sd=y.createContext({});function Cd(e){return vo("MuiList",e)}yo("MuiList",["root","padding","dense","subheader"]);const wd=["children","className","component","dense","disablePadding","subheader"],Rd=Vl("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>z({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),kd=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,c=B(r,wd),d=y.useMemo((()=>({dense:a})),[a]),u=z({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Ci({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Cd,t)})(u);return Br.jsx(Sd.Provider,{value:d,children:Br.jsxs(Rd,z({as:i,className:mo(p.root,o),ref:t,ownerState:u},c,{children:[s,n]}))})}));function Ad(e){return vo("MuiListItem",e)}const _d=yo("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function Id(e){return vo("MuiListItemButton",e)}const Td=yo("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Ld=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Od=Vl(Qs,{shouldForwardProp:e=>Ul(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>z({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Td.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Td.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Td.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Td.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Td.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),Pd=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiListItemButton"}),{alignItems:n="center",autoFocus:o=!1,component:i="div",children:a,dense:l=!1,disableGutters:s=!1,divider:c=!1,focusVisibleClassName:d,selected:u=!1,className:p}=r,h=B(r,Ld),f=y.useContext(Sd),m=y.useMemo((()=>({dense:l||f.dense||!1,alignItems:n,disableGutters:s})),[n,f.dense,l,s]),b=y.useRef(null);Wo((()=>{o&&b.current&&b.current.focus()}),[o]);const g=z({},r,{alignItems:n,dense:m.dense,disableGutters:s,divider:c,selected:u}),v=(e=>{const{alignItems:t,classes:r,dense:n,disabled:o,disableGutters:i,divider:a,selected:l}=e;return z({},r,Ci({root:["root",n&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",l&&"selected"]},Id,r))})(g),x=oi(b,t);return Br.jsx(Sd.Provider,{value:m,children:Br.jsx(Od,z({ref:x,href:h.href||h.to,component:(h.href||h.to)&&"div"===i?"button":i,focusVisibleClassName:mo(v.focusVisible,d),ownerState:g,className:mo(v.root,p)},h,{classes:v,children:a}))})}));function Md(e){return vo("MuiListItemSecondaryAction",e)}yo("MuiListItemSecondaryAction",["root","disableGutters"]);const jd=["className"],Nd=Vl("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((({ownerState:e})=>z({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),$d=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=B(r,jd),i=z({},r,{disableGutters:y.useContext(Sd).disableGutters}),a=(e=>{const{disableGutters:t,classes:r}=e;return Ci({root:["root",t&&"disableGutters"]},Md,r)})(i);return Br.jsx(Nd,z({className:mo(a.root,n),ownerState:i,ref:t},o))}));$d.muiName="ListItemSecondaryAction";const zd=["className"],Bd=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Dd=Vl("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>z({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&z({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Td.root}`]:{paddingRight:48}},{[`&.${_d.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_d.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_d.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${_d.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_d.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Fd=Vl("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Gd=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:i=!1,children:a,className:l,component:s,components:c={},componentsProps:d={},ContainerComponent:u="li",ContainerProps:{className:p}={},dense:h=!1,disabled:f=!1,disableGutters:m=!1,disablePadding:b=!1,divider:g=!1,focusVisibleClassName:v,secondaryAction:x,selected:E=!1,slotProps:S={},slots:C={}}=r,w=B(r.ContainerProps,zd),R=B(r,Bd),k=y.useContext(Sd),A=y.useMemo((()=>({dense:h||k.dense||!1,alignItems:n,disableGutters:m})),[n,k.dense,h,m]),_=y.useRef(null);Wo((()=>{o&&_.current&&_.current.focus()}),[o]);const I=y.Children.toArray(a),T=I.length&&(L=I[I.length-1],O=["ListItemSecondaryAction"],y.isValidElement(L)&&-1!==O.indexOf(null!=(P=L.type.muiName)?P:null==(M=L.type)||null==(M=M._payload)||null==(M=M.value)?void 0:M.muiName));var L,O,P,M;const j=z({},r,{alignItems:n,autoFocus:o,button:i,dense:A.dense,disabled:f,disableGutters:m,disablePadding:b,divider:g,hasSecondaryAction:T,selected:E}),N=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:i,disableGutters:a,disablePadding:l,divider:s,hasSecondaryAction:c,selected:d}=e;return Ci({root:["root",o&&"dense",!a&&"gutters",!l&&"padding",s&&"divider",i&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},Ad,n)})(j),$=oi(_,t),D=C.root||c.Root||Dd,F=S.root||d.root||{},G=z({className:mo(N.root,F.className,l),disabled:f},R);let H=s||"li";return i&&(G.component=s||"div",G.focusVisibleClassName=mo(_d.focusVisible,v),H=Qs),T?(H=G.component||s?H:"div","li"===u&&("li"===H?H="div":"li"===G.component&&(G.component="div")),Br.jsx(Sd.Provider,{value:A,children:Br.jsxs(Fd,z({as:u,className:mo(N.container,p),ref:$,ownerState:j},w,{children:[Br.jsx(D,z({},F,!wi(D)&&{as:H,ownerState:z({},j,F.ownerState)},G,{children:I})),I.pop()]}))})):Br.jsx(Sd.Provider,{value:A,children:Br.jsxs(D,z({},F,{as:H,ref:$},!wi(D)&&{ownerState:z({},j,F.ownerState)},G,{children:[I,x&&Br.jsx($d,{children:x})]}))})}));function Hd(e){return vo("MuiListItemIcon",e)}const Wd=yo("MuiListItemIcon",["root","alignItemsFlexStart"]),Yd=["className"],Ud=Vl("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>z({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Vd=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=B(r,Yd),i=z({},r,{alignItems:y.useContext(Sd).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Ci({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Hd,r)})(i);return Br.jsx(Ud,z({className:mo(a.root,n),ownerState:i,ref:t},o))})),qd=yo("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Kd=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Xd(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Zd(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Jd(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Qd(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Jd(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}const eu=y.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:d="selectedMenu"}=e,u=B(e,Kd),p=y.useRef(null),h=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Wo((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${yi(Zo(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const f=oi(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const b=y.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return Br.jsx(kd,z({role:"menu",ref:f,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Zo(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Qd(t,n,s,l,Xd);else if("ArrowUp"===r)e.preventDefault(),Qd(t,n,s,l,Zd);else if("Home"===r)e.preventDefault(),Qd(t,null,s,l,Xd);else if("End"===r)e.preventDefault(),Qd(t,null,s,l,Zd);else if(1===r.length){const o=h.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&Jd(n,o);o.previousKeyMatched&&(s||Qd(t,n,!1,l,Xd,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},u,{children:b}))}));function tu(e){return vo("MuiPopover",e)}yo("MuiPopover",["root","paper"]);const ru=["onEntering"],nu=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ou=["slotProps"];function iu(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function au(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function lu(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function su(e){return"function"==typeof e?e():e}const cu=Vl(od,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),du=Vl(js,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),uu=y.forwardRef((function(e,t){var r,n,o;const i=ss({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:u,className:p,container:h,elevation:f=8,marginThreshold:m=16,open:b,PaperProps:g={},slots:v,slotProps:x,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:S=md,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,k=B(i.TransitionProps,ru),A=B(i,nu),_=null!=(r=null==x?void 0:x.paper)?r:g,I=y.useRef(),T=oi(I,_.ref),L=z({},i,{anchorOrigin:s,anchorReference:d,elevation:f,marginThreshold:m,externalPaperSlotProps:_,transformOrigin:E,TransitionComponent:S,transitionDuration:C,TransitionProps:k}),O=(e=>{const{classes:t}=e;return Ci({root:["root"],paper:["paper"]},tu,t)})(L),P=y.useCallback((()=>{if("anchorPosition"===d)return c;const e=su(l),t=(e&&1===e.nodeType?e:Zo(I.current).body).getBoundingClientRect();return{top:t.top+iu(t,s.vertical),left:t.left+au(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,d]),M=y.useCallback((e=>({vertical:iu(e,E.vertical),horizontal:au(e,E.horizontal)})),[E.horizontal,E.vertical]),j=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=M(t);if("none"===d)return{top:null,left:null,transformOrigin:lu(r)};const n=P();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,c=Jo(su(l)),u=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>u){const e=a-u;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:lu(r)}}),[l,d,P,M,m]),[N,$]=y.useState(b),D=y.useCallback((()=>{const e=I.current;if(!e)return;const t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,$(!0)}),[j]);y.useEffect((()=>(R&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D))),[l,R,D]);y.useEffect((()=>{b&&D()})),y.useImperativeHandle(a,(()=>b?{updatePosition:()=>{D()}}:null),[b,D]),y.useEffect((()=>{if(!b)return;const e=Xo((()=>{D()})),t=Jo(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,b,D]);let F=C;"auto"!==C||S.muiSupportAuto||(F=void 0);const G=h||(l?Zo(su(l)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:cu,W=null!=(o=null==v?void 0:v.paper)?o:du,Y=_i({elementType:W,externalSlotProps:z({},_,{style:N?_.style:z({},_.style,{opacity:0})}),additionalProps:{elevation:f,ref:T},ownerState:L,className:mo(O.paper,null==_?void 0:_.className)}),U=_i({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:G,open:b},ownerState:L,className:mo(O.root,p)}),{slotProps:V}=U,q=B(U,ou);return Br.jsx(H,z({},q,!wi(H)&&{slotProps:V,disableScrollLock:R},{children:Br.jsx(S,z({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),D()},onExited:()=>{$(!1)},timeout:F},k,{children:Br.jsx(W,z({},Y,{children:u}))}))}))}));function pu(e){return vo("MuiMenu",e)}yo("MuiMenu",["root","paper","list"]);const hu=["onEntering"],fu=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],mu={vertical:"top",horizontal:"right"},bu={vertical:"top",horizontal:"left"},gu=Vl(uu,{shouldForwardProp:e=>Ul(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vu=Vl(du,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),yu=Vl(eu,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),xu=y.forwardRef((function(e,t){var r,n;const o=ss({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:c={},onClose:d,open:u,PaperProps:p={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:m}={},variant:b="selectedMenu",slots:g={},slotProps:v={}}=o,x=B(o.TransitionProps,hu),E=B(o,fu),S=$i(),C=z({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:f,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return Ci({root:["root"],paper:["paper"],list:["list"]},pu,t)})(C),R=i&&!s&&u,k=y.useRef(null);let A=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===A)&&(A=t))}));const _=null!=(r=g.paper)?r:vu,I=null!=(n=v.paper)?n:p,T=_i({elementType:g.root,externalSlotProps:v.root,ownerState:C,className:[w.root,l]}),L=_i({elementType:_,externalSlotProps:I,ownerState:C,className:w.paper});return Br.jsx(gu,z({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?mu:bu,slots:{paper:_,root:g.root},slotProps:{root:T,paper:L},open:u,ref:t,transitionDuration:f,TransitionProps:z({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:C},E,{classes:h,children:Br.jsx(yu,z({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===A||s),autoFocusItem:R,variant:b},c,{className:mo(w.list,c.className),children:a}))}))}));function Eu(e){return vo("MuiMenuItem",e)}const Su=yo("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Cu=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],wu=Vl(Qs,{shouldForwardProp:e=>Ul(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>z({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Su.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Su.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Su.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Su.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Su.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ad.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ad.inset}`]:{marginLeft:52},[`& .${qd.root}`]:{marginTop:0,marginBottom:0},[`& .${qd.inset}`]:{paddingLeft:36},[`& .${Wd.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&z({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Wd.root} svg`]:{fontSize:"1.25rem"}})))),Ru=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:d,className:u}=r,p=B(r,Cu),h=y.useContext(Sd),f=y.useMemo((()=>({dense:i||h.dense||!1,disableGutters:l})),[h.dense,i,l]),m=y.useRef(null);Wo((()=>{n&&m.current&&m.current.focus()}),[n]);const b=z({},r,{dense:f.dense,divider:a,disableGutters:l}),g=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return z({},a,Ci({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Eu,a))})(r),v=oi(m,t);let x;return r.disabled||(x=void 0!==d?d:-1),Br.jsx(Sd.Provider,{value:f,children:Br.jsx(wu,z({ref:v,role:c,tabIndex:x,component:o,focusVisibleClassName:mo(g.focusVisible,s),className:mo(g.root,u)},p,{ownerState:b,classes:g}))})}));function ku(e){return vo("MuiTab",e)}const Au=yo("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),_u=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Iu=Vl(Qs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${on(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Au.iconWrapper}`]:t.iconWrapper}]}})((({theme:e,ownerState:t})=>z({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Au.iconWrapper}`]:z({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${Au.selected}`]:{opacity:1},[`&.${Au.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Au.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Au.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Au.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Au.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)}))),Tu=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiTab"}),{className:n,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:a,icon:l,iconPosition:s="top",indicator:c,label:d,onChange:u,onClick:p,onFocus:h,selected:f,selectionFollowsFocus:m,textColor:b="inherit",value:g,wrapped:v=!1}=r,x=B(r,_u),E=z({},r,{disabled:o,disableFocusRipple:i,selected:f,icon:!!l,iconPosition:s,label:!!d,fullWidth:a,textColor:b,wrapped:v}),S=(e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:i,label:a,selected:l,disabled:s}=e;return Ci({root:["root",i&&a&&"labelIcon",`textColor${on(r)}`,n&&"fullWidth",o&&"wrapped",l&&"selected",s&&"disabled"],iconWrapper:["iconWrapper"]},ku,t)})(E),C=l&&d&&y.isValidElement(l)?y.cloneElement(l,{className:mo(S.iconWrapper,l.props.className)}):l;return Br.jsxs(Iu,z({focusRipple:!i,className:mo(S.root,n),ref:t,role:"tab","aria-selected":f,disabled:o,onClick:e=>{!f&&u&&u(e,g),p&&p(e)},onFocus:e=>{m&&!f&&u&&u(e,g),h&&h(e)},ownerState:E,tabIndex:f?0:-1},x,{children:["top"===s||"start"===s?Br.jsxs(y.Fragment,{children:[C,d]}):Br.jsxs(y.Fragment,{children:[d,C]}),c]}))}));var Lu=hs(Br.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Ou=hs(Br.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Pu(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Mu=["onChange"],ju={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Nu(e){return vo("MuiTabScrollButton",e)}const $u=yo("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),zu=["className","slots","slotProps","direction","orientation","disabled"],Bu=Vl(Qs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})((({ownerState:e})=>z({width:40,flexShrink:0,opacity:.8,[`&.${$u.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}))),Du=y.forwardRef((function(e,t){var r,n;const o=ss({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:l={},direction:s}=o,c=B(o,zu),d=z({isRtl:$i()},o),u=(e=>{const{classes:t,orientation:r,disabled:n}=e;return Ci({root:["root",r,n&&"disabled"]},Nu,t)})(d),p=null!=(r=a.StartScrollButtonIcon)?r:Lu,h=null!=(n=a.EndScrollButtonIcon)?n:Ou,f=_i({elementType:p,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),m=_i({elementType:h,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return Br.jsx(Bu,z({component:"div",className:mo(u.root,i),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===s?Br.jsx(p,z({},f)):Br.jsx(h,z({},m))}))}));function Fu(e){return vo("MuiTabs",e)}const Gu=yo("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Hu=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Wu=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Yu=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Uu=(e,t,r)=>{let n=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(n)return;n=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=r(e,o)}},Vu=Vl("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Gu.scrollButtons}`]:t.scrollButtons},{[`& .${Gu.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>z({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Gu.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),qu=Vl("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})((({ownerState:e})=>z({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),Ku=Vl("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})((({ownerState:e})=>z({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),Xu=Vl("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>z({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),Zu=Vl((function(e){const{onChange:t}=e,r=B(e,Mu),n=y.useRef(),o=y.useRef(null),i=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return Wo((()=>{const e=Xo((()=>{const e=n.current;i(),e!==n.current&&t(n.current)})),r=Jo(o.current);return r.addEventListener("resize",e),()=>{e.clear(),r.removeEventListener("resize",e)}}),[t]),y.useEffect((()=>{i(),t(n.current)}),[t]),Br.jsx("div",z({style:ju},r,{ref:o}))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Ju={},Qu=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiTabs"}),n=ml(),o=$i(),{"aria-label":i,"aria-labelledby":a,action:l,centered:s=!1,children:c,className:d,component:u="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:f,orientation:m="horizontal",ScrollButtonComponent:b=Du,scrollButtons:g="auto",selectionFollowsFocus:v,slots:x={},slotProps:E={},TabIndicatorProps:S={},TabScrollButtonProps:C={},textColor:w="primary",value:R,variant:k="standard",visibleScrollbar:A=!1}=r,_=B(r,Hu),I="scrollable"===k,T="vertical"===m,L=T?"scrollTop":"scrollLeft",O=T?"top":"left",P=T?"bottom":"right",M=T?"clientHeight":"clientWidth",j=T?"height":"width",N=z({},r,{component:u,allowScrollButtonsMobile:p,indicatorColor:h,orientation:m,vertical:T,scrollButtons:g,textColor:w,variant:k,visibleScrollbar:A,fixed:!I,hideScrollbar:I&&!A,scrollableX:I&&!T,scrollableY:I&&T,centered:s&&!I,scrollButtonsHideMobile:!p}),$=(e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:l,classes:s}=e;return Ci({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Fu,s)})(N),D=_i({elementType:x.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:N}),F=_i({elementType:x.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:N}),[G,H]=y.useState(!1),[W,Y]=y.useState(Ju),[U,V]=y.useState(!1),[q,K]=y.useState(!1),[X,Z]=y.useState(!1),[J,Q]=y.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,te=y.useRef(null),re=y.useRef(null),ne=()=>{const e=te.current;let t,r;if(e){const r=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:Si(e,o?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(e&&!1!==R){const e=re.current.children;if(e.length>0){const t=e[ee.get(R)];r=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:r}},oe=ni((()=>{const{tabsMeta:e,tabMeta:t}=ne();let r,n=0;if(T)r="top",t&&e&&(n=t.top-e.top+e.scrollTop);else if(r=o?"right":"left",t&&e){const i=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;n=(o?-1:1)*(t[r]-e[r]+i)}const i={[r]:n,[j]:t?t[j]:0};if(isNaN(W[r])||isNaN(W[j]))Y(i);else{const e=Math.abs(W[r]-i[r]),t=Math.abs(W[j]-i[j]);(e>=1||t>=1)&&Y(i)}})),ie=(e,{animation:t=!0}={})=>{t?function(e,t,r,n={},o=()=>{}){const{ease:i=Pu,duration:a=300}=n;let l=null;const s=t[e];let c=!1;const d=()=>{c=!0},u=n=>{if(c)return void o(new Error("Animation cancelled"));null===l&&(l=n);const d=Math.min(1,(n-l)/a);t[e]=i(d)*(r-s)+s,d>=1?requestAnimationFrame((()=>{o(null)})):requestAnimationFrame(u)};s===r?o(new Error("Element already at target position")):requestAnimationFrame(u)}(L,te.current,e,{duration:n.transitions.duration.standard}):te.current[L]=e},ae=e=>{let t=te.current[L];T?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===Ei()?-1:1),ie(t)},le=()=>{const e=te.current[M];let t=0;const r=Array.from(re.current.children);for(let n=0;n<r.length;n+=1){const o=r[n];if(t+o[M]>e){0===n&&(t=e);break}t+=o[M]}return t},se=()=>{ae(-1*le())},ce=()=>{ae(le())},de=y.useCallback((e=>{Q({overflow:null,scrollbarWidth:e})}),[]),ue=ni((e=>{const{tabsMeta:t,tabMeta:r}=ne();if(r&&t)if(r[O]<t[O]){const n=t[L]+(r[O]-t[O]);ie(n,{animation:e})}else if(r[P]>t[P]){const n=t[L]+(r[P]-t[P]);ie(n,{animation:e})}})),pe=ni((()=>{I&&!1!==g&&Z(!X)}));y.useEffect((()=>{const e=Xo((()=>{te.current&&oe()}));let t;const r=r=>{r.forEach((e=>{e.removedNodes.forEach((e=>{var r;null==(r=t)||r.unobserve(e)})),e.addedNodes.forEach((e=>{var r;null==(r=t)||r.observe(e)}))})),e(),pe()},n=Jo(te.current);let o;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(re.current.children).forEach((e=>{t.observe(e)}))),"undefined"!=typeof MutationObserver&&(o=new MutationObserver(r),o.observe(re.current,{childList:!0})),()=>{var r,i;e.clear(),n.removeEventListener("resize",e),null==(r=o)||r.disconnect(),null==(i=t)||i.disconnect()}}),[oe,pe]),y.useEffect((()=>{const e=Array.from(re.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&I&&!1!==g){const r=e[0],n=e[t-1],o={root:te.current,threshold:.99},i=new IntersectionObserver((e=>{V(!e[0].isIntersecting)}),o);i.observe(r);const a=new IntersectionObserver((e=>{K(!e[0].isIntersecting)}),o);return a.observe(n),()=>{i.disconnect(),a.disconnect()}}}),[I,g,X,null==c?void 0:c.length]),y.useEffect((()=>{H(!0)}),[]),y.useEffect((()=>{oe()})),y.useEffect((()=>{ue(Ju!==W)}),[ue,W]),y.useImperativeHandle(l,(()=>({updateIndicator:oe,updateScrollButtons:pe})),[oe,pe]);const he=Br.jsx(Xu,z({},S,{className:mo($.indicator,S.className),ownerState:N,style:z({},W,S.style)}));let fe=0;const me=y.Children.map(c,(e=>{if(!y.isValidElement(e))return null;const t=void 0===e.props.value?fe:e.props.value;ee.set(t,fe);const r=t===R;return fe+=1,y.cloneElement(e,z({fullWidth:"fullWidth"===k,indicator:r&&!G&&he,selected:r,selectionFollowsFocus:v,onChange:f,textColor:w,value:t},1!==fe||!1!==R||e.props.tabIndex?{}:{tabIndex:0}))})),be=(()=>{const e={};e.scrollbarSizeListener=I?Br.jsx(Zu,{onChange:de,className:mo($.scrollableX,$.hideScrollbar)}):null;const t=I&&("auto"===g&&(U||q)||!0===g);return e.scrollButtonStart=t?Br.jsx(b,z({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:D},orientation:m,direction:o?"right":"left",onClick:se,disabled:!U},C,{className:mo($.scrollButtons,C.className)})):null,e.scrollButtonEnd=t?Br.jsx(b,z({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:F},orientation:m,direction:o?"left":"right",onClick:ce,disabled:!q},C,{className:mo($.scrollButtons,C.className)})):null,e})();return Br.jsxs(Vu,z({className:mo($.root,d),ownerState:N,ref:t,as:u},_,{children:[be.scrollButtonStart,be.scrollbarSizeListener,Br.jsxs(qu,{className:$.scroller,ownerState:N,style:{overflow:J.overflow,[T?"margin"+(o?"Left":"Right"):"marginBottom"]:A?void 0:-J.scrollbarWidth},ref:te,children:[Br.jsx(Ku,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===m?"vertical":null,className:$.flexContainer,ownerState:N,onKeyDown:e=>{const t=re.current,r=Zo(t).activeElement;if("tab"!==r.getAttribute("role"))return;let n="horizontal"===m?"ArrowLeft":"ArrowUp",i="horizontal"===m?"ArrowRight":"ArrowDown";switch("horizontal"===m&&o&&(n="ArrowRight",i="ArrowLeft"),e.key){case n:e.preventDefault(),Uu(t,r,Yu);break;case i:e.preventDefault(),Uu(t,r,Wu);break;case"Home":e.preventDefault(),Uu(t,null,Wu);break;case"End":e.preventDefault(),Uu(t,null,Yu)}},ref:re,role:"tablist",children:me}),G&&he]}),be.scrollButtonEnd]}))}));function ep(e){return Br.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Br.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var tp=function({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Br.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})};function rp(e={}){return Br.jsx(tp,{...e,children:Br.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Br.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Br.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function np(e={}){return Br.jsx(tp,{fontSize:"medium",...e,children:Br.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Br.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Br.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function op(e){return Br.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Br.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function ip(e={}){return Br.jsx(tp,{...e,children:Br.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Br.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Br.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Br.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function ap(e={}){return Br.jsx(tp,{fontSize:"medium",...e,children:Br.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Br.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Br.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function lp({className:e}){return Br.jsx(tp,{fontSize:"small",className:e,children:Br.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Br.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Br.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Br.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Br.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Br.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function sp(e={}){return Br.jsx(tp,{...e,children:Br.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Br.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Br.jsx("rect",{stroke:Zl.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const cp={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:rs,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var dp=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Zl.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Zl.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Br.jsx(ep,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${Zl.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Zl.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Zl.MISC_FOCUS_BORDER}`,borderRadius:rs,backgroundColor:Zl.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${Zl.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Zl.WHITE,color:Zl.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:rs},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Zl.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Zl.GREYSCALE_0_15,backgroundColor:Zl.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Zl.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Zl.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Zl.GREEN_PALE},"&:active":{backgroundColor:Zl.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Zl.GREEN_PALE,boxShadow:`0 0 0 3px ${qo(Zl.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Zl.BLUE_PALE},"&:active":{backgroundColor:Zl.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Zl.BLUE_PALE,boxShadow:`0 0 0 3px ${qo(Zl.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:rs,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Zl.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Zl.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Zl.GREYSCALE_0_15,backgroundColor:Zl.GREYSCALE_100_60,"&:active":{backgroundColor:Zl.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Zl.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Zl.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Zl.PURPLE,"&.Mui-focusVisible":{borderColor:Zl.PURPLE,boxShadow:`0 0 0 3px ${qo(Zl.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Zl.GREEN,"&.Mui-focusVisible":{borderColor:Zl.GREEN,boxShadow:`0 0 0 3px ${qo(Zl.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Zl.BLUE,"&.Mui-focusVisible":{borderColor:Zl.BLUE,boxShadow:`0 0 0 3px ${qo(Zl.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Zl.ORANGE,"&.Mui-focusVisible":{borderColor:Zl.ORANGE,boxShadow:`0 0 0 3px ${qo(Zl.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Zl.RED,"&.Mui-focusVisible":{borderColor:Zl.RED,boxShadow:`0 0 0 3px ${qo(Zl.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Zl.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Zl.PURPLE_PALE},"&:active":{backgroundColor:Zl.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Zl.PURPLE_PALE,boxShadow:`0 0 0 3px ${qo(Zl.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Zl.GREEN_PALE},"&:active":{backgroundColor:Zl.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Zl.GREEN_PALE,boxShadow:`0 0 0 3px ${qo(Zl.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Zl.BLUE_PALE},"&:active":{backgroundColor:Zl.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Zl.BLUE_PALE,boxShadow:`0 0 0 3px ${qo(Zl.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Zl.ORANGE_PALE},"&:active":{backgroundColor:Zl.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Zl.ORANGE_PALE,boxShadow:`0 0 0 3px ${qo(Zl.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Zl.RED_PALE},"&:active":{backgroundColor:Zl.RED_DARK},"&.Mui-focusVisible":{borderColor:Zl.RED_PALE,boxShadow:`0 0 0 3px ${qo(Zl.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:Zl.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Zl.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:rs,boxShadow:`inset 0 0 0 2px ${Zl.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Br.jsx(op,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Jl,borderRadius:rs,color:Zl.TEXT_PRIMARY,backgroundColor:Zl.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Zl.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Zl.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Zl.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Zl.GREYSCALE_0_05,color:Zl.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Zl.GREEN,borderColor:Zl.GREEN},"&.MuiChip-outlinedInfo":{color:Zl.BLUE,borderColor:Zl.BLUE},"&.MuiChip-outlinedWarning":{color:Zl.ORANGE,borderColor:Zl.ORANGE},"&.MuiChip-outlinedError":{color:Zl.RED,borderColor:Zl.RED}},outlined:{border:`solid 1px ${Zl.GREYSCALE_0_15}`,backgroundColor:Zl.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:rs,boxShadow:"none",backgroundColor:Zl.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Zl.GREEN,borderColor:Zl.GREEN},outlinedSecondary:{color:Zl.BLUE,borderColor:Zl.BLUE},label:{fontFamily:ls.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Br.jsx(op,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Br.jsx(ep,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:rs},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:rs,fontSize:Ql,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Zl.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Zl.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Zl.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Zl.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Zl.GREYSCALE_0_05}}},popupIndicator:{borderRadius:rs,border:`solid 1px ${Zl.GREYSCALE_0_15}`,color:Zl.GREYSCALE_0_60,marginRight:0,width:ts,height:ts},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Zl.GREYSCALE_0_15}`},clearIndicator:{borderRadius:rs,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Zl.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Ql}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Jl,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Zl.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Zl.GREYSCALE_25,fontSize:Jl,fontFamily:ls.FONT_FAMILY,fontWeight:is,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Zl.TEXT_PRIMARY},"&.Mui-error":{color:Zl.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Zl.TEXT_SECONDARY,content:"'(optional)'",fontWeight:os,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Zl.TEXT_SECONDARY,content:"'(required)'",fontWeight:os,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Ql,lineHeight:"16px",backgroundColor:Zl.WHITE,borderRadius:rs,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Zl.GREYSCALE_0_05}`,borderColor:Zl.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Zl.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Zl.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Zl.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Zl.RED}`,boxShadow:`0px 0px 0px 1px ${Zl.RED}, inset 0 2px 0 0 ${Zl.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Zl.GREYSCALE_0_10}`,borderColor:Zl.GREYSCALE_0_10,backgroundColor:Zl.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Zl.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Zl.GREYSCALE_0_15,borderRadius:rs,boxShadow:`inset 0 2px 0 0 ${Zl.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Br.jsx(ep,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:Zl.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Zl.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Zl.GREYSCALE_0_03},"&:active":{backgroundColor:Zl.GREYSCALE_0_10},"&:focus":{backgroundColor:Zl.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Zl.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Zl.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Zl.GREYSCALE_0_30,"&:hover":{backgroundColor:Zl.GREYSCALE_0_0,borderColor:Zl.GREYSCALE_0_15},"& ~svg":{color:Zl.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Zl.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:rs}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Zl.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Zl.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Zl.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Ql,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Jl,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Jl,fontWeight:is,color:Zl.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:is}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Zl.GREYSCALE_0_15}, 0px 0px 0px 1px ${Zl.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Br.jsx(ap,{}),checkedIcon:Br.jsx(np,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Zl.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Zl.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Zl.GREEN_PALE,boxShadow:`0 0 0 3px ${qo(Zl.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Zl.BLUE_PALE,boxShadow:`0 0 0 3px ${qo(Zl.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Zl.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Zl.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Br.jsx(sp,{}),checkedIcon:Br.jsx(rp,{}),indeterminateIcon:Br.jsx(ip,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:rs,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Zl.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Zl.GREYSCALE_0_55,color:Zl.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:Zl.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Zl.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Zl.GREYSCALE_0_55,"&:hover":{color:Zl.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:Zl.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Zl.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Ql,color:Zl.TEXT_PRIMARY,lineHeight:"16px",fontWeight:is},secondary:{fontSize:Jl,color:Zl.GREYSCALE_45,fontWeight:os,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Ql,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Ql,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Zl.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Jl,borderBottom:`solid 1px ${Zl.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Ql,color:Zl.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Zl.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Zl.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Zl.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Zl.RED}}},"&.Mui-focusVisible":{backgroundColor:Zl.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:Zl.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:Zl.GREEN,height:"24px","&.Mui-disabled":{color:Zl.GREYSCALE_0_15}},rail:{backgroundColor:Zl.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Zl.GREYSCALE_0_05}`,borderRadius:rs,boxShadow:`inset 0px 0px 0px 1px ${Zl.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Zl.GREYSCALE_0_05}`,borderRadius:rs},thumb:{height:"16px",width:"16px",borderRadius:rs,backgroundColor:Zl.WHITE,boxShadow:`0px 1px 2px 0px ${Zl.GREYSCALE_0_15}, 0px 0px 0px 1px ${Zl.GREYSCALE_0_05}`,"&:hover":{borderRadius:rs,boxShadow:`0 2px 4px 0 ${Zl.GREYSCALE_0_30}, 0 0 0 1px ${Zl.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Zl.GREYSCALE_0_15}, 0 0 0 1px ${Zl.GREYSCALE_0_06}, 0 0 0 2px ${Zl.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Zl.GREYSCALE_0_15}, 0 0 0 1px ${Zl.GREYSCALE_0_06}, 0 0 0 2px ${Zl.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Zl.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Zl.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Zl.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Zl.GREYSCALE_0_15},markLabel:{color:Zl.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Zl.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Zl.WHITE,color:Zl.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:Zl.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Zl.GREEN_PALE,boxShadow:`0 0 0 3px ${qo(Zl.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Zl.BLUE_PALE,boxShadow:`0 0 0 3px ${qo(Zl.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Zl.GREYSCALE_0_15,borderRadius:rs},thumb:{height:"16px",width:"16px",borderRadius:rs,backgroundColor:Zl.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Ql,fontWeight:is,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Zl.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Zl.MISC_FOCUS_BORDER}`,backgroundColor:Zl.GREYSCALE_0_03,borderRadius:rs},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Zl.GREYSCALE_25,"&.Mui-selected":{color:Zl.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Ql,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:rs,"&:hover":{backgroundColor:Zl.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Zl.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Zl.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:rs,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Zl.GREYSCALE_0_05},"&:hover":{backgroundColor:Zl.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Zl.GREYSCALE_85}`,borderRight:`1px solid ${Zl.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:is,backgroundColor:Zl.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:Zl.GREYSCALE_98,borderBottom:`1px solid ${Zl.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Zl.GREYSCALE_85}`,borderTop:`1px solid ${Zl.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Zl.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Zl.GREYSCALE_0_05,"&:hover":{backgroundColor:Zl.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Zl.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Br.jsx(lp,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${Zl.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Ql,borderRadius:rs,padding:"7px 16px",border:`1px solid ${Zl.GREYSCALE_0_15}`,backgroundColor:Zl.GREYSCALE_100_60,color:Zl.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Zl.GREYSCALE_0_10,border:`1px solid ${Zl.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Zl.GREYSCALE_0_03,border:`1px solid ${Zl.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Zl.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Zl.MISC_FOCUS_BORDER}`,border:`1px solid ${Zl.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Zl.GREYSCALE_25,backgroundColor:Zl.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Zl.GREYSCALE_0_10,border:`1px solid ${Zl.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Jl,height:24,width:24,padding:7},sizeLarge:{fontSize:es,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Ql,borderRadius:rs}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:Zl.GREYSCALE_20},tooltip:{backgroundColor:Zl.GREYSCALE_20,fontSize:Jl,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...cp}:{}});var up=()=>({mode:"light",primary:{ultraLight:Zl.GREEN_ULTRA_LIGHT,light:Zl.GREEN_PALE,main:Zl.GREEN,dark:Zl.GREEN_DARK,extraDark:Zl.GREEN_EXTRA_DARK,contrastText:Zl.WHITE},secondary:{ultraLight:Zl.BLUE_ULTRA_LIGHT,light:Zl.BLUE_PALE,main:Zl.BLUE,dark:Zl.BLUE_DARK,extraDark:Zl.BLUE_EXTRA_DARK,contrastText:Zl.WHITE},error:{ultraLight:Zl.RED_ULTRA_LIGHT,light:Zl.RED_PALE,main:Zl.RED,dark:Zl.RED_DARK,extraDark:Zl.RED_EXTRA_DARK,contrastText:Zl.WHITE},warning:{ultraLight:Zl.ORANGE_ULTRA_LIGHT,light:Zl.ORANGE_PALE,main:Zl.ORANGE,dark:Zl.ORANGE_DARK,extraDark:Zl.ORANGE_EXTRA_DARK,contrastText:Zl.WHITE},success:{ultraLight:Zl.GREEN_ULTRA_LIGHT,light:Zl.GREEN_PALE,main:Zl.GREEN,dark:Zl.GREEN_DARK,extraDark:Zl.GREEN_EXTRA_DARK,contrastText:Zl.WHITE},info:{ultraLight:Zl.BLUE_ULTRA_LIGHT,light:Zl.BLUE_PALE,main:Zl.BLUE,dark:Zl.BLUE_DARK,extraDark:Zl.BLUE_EXTRA_DARK,contrastText:Zl.WHITE},text:{primary:Zl.TEXT_PRIMARY,secondary:Zl.TEXT_SECONDARY,disabled:Zl.GREYSCALE_0_30},action:{hover:Zl.GREYSCALE_0_03,hoverOpacity:.03,selected:Zl.GREYSCALE_0_05,selectedOpacity:.05,focus:Zl.MISC_FOCUS_BORDER},amethyst:{ultraLight:Zl.WHITE,main:Zl.PURPLE,light:Zl.PURPLE_PALE,dark:Zl.PURPLE_DARK,extraDark:Zl.GREYSCALE_0_0,contrastText:Zl.WHITE},background:{paper:Zl.WHITE,default:Zl.GREYSCALE_95},divider:Zl.GREYSCALE_0_15});var pp=e=>up();var hp=(e,t=!1)=>{const r=((e,t)=>dp(t))(0,t);return{components:r,palette:pp(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Ql,fontWeightLight:ns,fontWeightRegular:os,fontWeightMedium:is,fontWeightBold:as,htmlFontSize:Ql,fontFamily:ls.FONT_FAMILY,button:{fontWeight:is,fontSize:Ql,textTransform:"none"},body1:{fontSize:es,lineHeight:"24px"},body2:{fontSize:Ql,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ts,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:es,fontWeight:is,lineHeight:"16px"},h6:{fontSize:Ql,fontWeight:is,lineHeight:"16px"},caption:{color:Zl.TEXT_SECONDARY},subtitle1:{fontSize:Ql,color:Zl.TEXT_SECONDARY},subtitle2:{fontSize:Jl,color:Zl.TEXT_SECONDARY}},shape:{borderRadius:rs}}};function fp(e){return hl({...hp("light"),direction:e})}class mp{constructor({translator:e}){M(this,"translator",void 0),M(this,"muiTheme",void 0),M(this,"containers",{}),M(this,"sync",(({element:e,sharedContainerUtilities:t,translator:r,containerId:n,dataHandler:o,renderHelper:i})=>{this.translator=r,this.containers[n]={element:e,sharedContainerUtilities:t,dataHandler:o,renderHelper:i}})),M(this,"setMuiTheme",(e=>{this.muiTheme=fp(e)})),M(this,"destroy",(e=>{delete this.containers[e]})),this.translator=e}}const bp=["container","sn-layout-container","sn-tabbed-container","listbox","qlik-tabbed-container","qlik-show-hide-container","qlik-trellis-container","qlik-on-demand-reporting","sn-analysis-autochart"];class gp{constructor(e,t){M(this,"embed",void 0),M(this,"translator",void 0),M(this,"charts",{}),M(this,"getCharts",(()=>{var e;return this.charts=(null===(e=this.embed)||void 0===e?void 0:e.getRegisteredTypes()).reduce(((e,t)=>{var r,n;if(!(bp.includes(t.id)||!1===(null===(r=t.libraryInfo)||void 0===r?void 0:r.isLibraryItem)||null!==(n=t.libraryInfo)&&void 0!==n&&n.deprecated)){var o;const r=t;null!==(o=r.libraryInfo)&&void 0!==o&&o.translationKey&&(r.libraryInfo.translation=this.translator.get(r.libraryInfo.translationKey)),e[t.id||t.type]=r}return e}),{}),this.charts})),M(this,"getChart",(e=>(this.charts[e]||this.getCharts(),this.charts[e]))),this.embed=e,this.translator=t}}var vp,yp=L;vp=yp.createRoot,yp.hydrateRoot;const xp=x(((e,t)=>Br.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Br.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})}))),Ep="rgb(89, 89, 89)",Sp=Ir(Oc)({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),Cp=Ir(Oc)({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),wp=Ir(kd,{shouldForwardProp:e=>"width"!==e})((({width:e})=>({"&.MuiList-root":{paddingTop:0,paddingBottom:0,width:e||250,maxHeight:250,overflow:"auto"}}))),Rp=Ir(ic)({color:Ep,fontSize:"12px",fontFamily:"inherit",lineHeight:"24px",margin:"0px"}),kp=Ir(Vd)({"&.MuiListItemIcon-root":{minWidth:32,color:Ep,marginRight:"0px"}}),Ap=Ir(dd)({"&.MuiDivider-root":{borderBottom:"3px solid #595959"}}),_p=Ir(Gc)({"&.MuiButton-contained":{backgroundColor:Ep,color:"rgb(255, 255, 255)"},"&.MuiButton-outlined":{backgroundColor:"rgb(255, 255, 255)",borderColor:Ep,color:Ep,border:"1px solid rgb(179, 179, 179)","&:hover":{backgroundColor:"rgb(255, 255, 255)",border:`1px solid ${Ep}`}}}),Ip=Ir(ps)({width:"1em",height:"1em",paddingBottom:"8px"}),Tp=Ir(ps)({width:"16px",height:"16px"}),Lp=({name:e,items:t,onSelect:r})=>S.createElement(S.Fragment,null,S.createElement(Gd,{key:e,dense:!0},S.createElement(Rp,{noWrap:!0,fontWeight:"bold"},e)),S.createElement(Ap,null),t.map((e=>{var t;return S.createElement(Gd,{key:null!==(t=e.qExtendsId)&&void 0!==t?t:e.name,divider:!0,disablePadding:!0,disableGutters:!0},S.createElement(Pd,{sx:{minHeight:"32px",height:"auto"},onClick:()=>{r(e)},disableRipple:!0,dense:!0},e.iconPath&&S.createElement(kp,null,e.IconDefinition?S.createElement(e.IconDefinition,null):S.createElement(Tp,{viewBox:"0 0 16 16"},S.createElement("path",{d:e.iconPath}))),S.createElement(Rp,{noWrap:!0,title:e.translation||e.name},e.translation||e.name)))}))),Op=({categories:e,anchorEl:t,onClose:r,onSelect:n,width:o})=>{const[i,a]=k(""),l=!!t;return A((()=>{l&&a("")}),[l]),S.createElement(uu,{open:l,anchorEl:t,onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{marginTop:"5px"}},S.createElement(Sc,{fullWidth:!0,onChange:e=>{a(e.target.value)},startAdornment:S.createElement(Ed,{position:"start"},S.createElement(xp,null))}),S.createElement(Ap,null),S.createElement(wp,{width:o},e.map((e=>{const t=e.items.filter((e=>{const t=e.translation||e.name;return(null==t?void 0:t.toLocaleLowerCase().indexOf(i.toLocaleLowerCase()))>-1}));return t.length>0&&S.createElement(Lp,{key:e.name,name:e.name,items:t,onSelect:n})}))))},Pp=({anchorEl:e,onClose:t,dataHandler:r,translator:n,sharedContainerUtilities:o,width:i})=>{const[a,l]=k([]),[s,c]=k({});A((()=>{if(e&&r){(async()=>{const e=await r.getMasterVizList();l(e),c(r.getCharts())})().catch((()=>{}))}}),[e,r]);const d=[],u=[],p=new Map,h=Object.values(s);if(0===h.length&&0===a.length)return null;h.forEach((e=>{var t;if(!e.libraryInfo||!e.libraryInfo.isThirdParty&&e.libraryInfo.visible)d.push(e);else if(e.libraryInfo.visible)if(null!==(t=e.libraryInfo.bundle)&&void 0!==t&&t.name){const t=e.libraryInfo.bundle.name,r=p.get(t);r?r.push(e):p.set(t,[e])}else u.push(e)}));const f=e=>e.map((e=>{var t,r,n,o;return{iconPath:null===(t=e.libraryInfo)||void 0===t?void 0:t.iconPath,IconDefinition:null===(r=e.libraryInfo)||void 0===r?void 0:r.IconDefinition,name:e.id,translation:(null===(n=e.libraryInfo)||void 0===n?void 0:n.translation)||(null===(o=e.libraryInfo)||void 0===o?void 0:o.name)||e.id||"",type:e.id}})).sort(((e,t)=>(e.translation||e.name).localeCompare(t.translation||t.name))),m=[{name:n.get("LayoutContainer.Object.MasterItems"),items:a.map((e=>{var t,r;return{qExtendsId:e.qExtendsId,iconPath:null===(t=s[e.visualization])||void 0===t||null===(t=t.libraryInfo)||void 0===t?void 0:t.iconPath,IconDefinition:null===(r=s[e.visualization])||void 0===r||null===(r=r.libraryInfo)||void 0===r?void 0:r.IconDefinition,name:e.name,type:e.visualization}})).sort(((e,t)=>e.name.localeCompare(t.name)))},{name:n.get("LayoutContainer.Object.Charts"),items:d.map((e=>{var t,r,n,o,i;return{iconPath:(null===(t=e.libraryInfo)||void 0===t?void 0:t.iconPath)||"",IconDefinition:null===(r=e.libraryInfo)||void 0===r?void 0:r.IconDefinition,name:(null===(n=e.libraryInfo)||void 0===n?void 0:n.name)||e.id,type:(null===(o=e.libraryInfo)||void 0===o?void 0:o.template)||e.id,translation:(null===(i=e.libraryInfo)||void 0===i?void 0:i.translation)||e.id||""}})).sort(((e,t)=>e.translation.localeCompare(t.translation)))},{name:n.get("LayoutContainer.Object.CustomObjects"),items:f(u)}];for(const[e,t]of p)m.push({name:e,items:f(t)});return S.createElement(Op,{categories:m,anchorEl:e,onSelect:e=>{if(!r)return;const{qExtendsId:n}=e;(n?r.addMasterObjectAsChild({initProps:{qExtendsId:n,qInfo:{qType:"undefined"}}}):r.addVizAsChild({type:e.type,objectInitProps:{label:e.translation}})).then((e=>{null!=e&&e.id&&(null==o||o.setSelected([e.id]))})).catch((e=>{console.warn(e)})).finally((()=>{t()}))},onClose:t,width:i})},Mp=e=>{var t,r;const n=Np(e);return null!==(t=null===(r=e.objects)||void 0===r?void 0:r.map((e=>{const{childRefId:t}=e;if(!t)return e;const r=n[t];return r?{...e,id:r}:e})))&&void 0!==t?t:[]},jp=(e,t)=>{var r;return null==e||null===(r=e.qChildList)||void 0===r||null===(r=r.qItems)||void 0===r?void 0:r.find((e=>{var r;return(null==e||null===(r=e.qData)||void 0===r?void 0:r.childRefId)===t}))},Np=e=>{var t;return null==e||null===(t=e.qChildList)||void 0===t||null===(t=t.qItems)||void 0===t?void 0:t.reduce(((e,t)=>{var r,n;return e[null==t||null===(r=t.qData)||void 0===r?void 0:r.childRefId]=null==t||null===(n=t.qInfo)||void 0===n?void 0:n.qId,e}),{})};var $p=jp,zp=e=>{const t={...e};return t.objects=Mp(t),t},Bp=e=>{var t;return null==e||null===(t=e.qChildList)||void 0===t||null===(t=t.qItems)||void 0===t?void 0:t.reduce(((e,t)=>{var r,n;return e[null==t||null===(r=t.qInfo)||void 0===r?void 0:r.qId]=null===(n=t.qData)||void 0===n?void 0:n.childRefId,e}),{})},Dp=e=>e.objects.reduce(((e,t)=>(e[t.childRefId]=t,e)),{}),Fp=(e,t)=>{var r;if(!e)return t;const n=jp(e,t);return null==n||null===(r=n.qInfo)||void 0===r?void 0:r.qId};class Gp{constructor({app:e,data:t}){M(this,"layout",void 0),M(this,"app",void 0),M(this,"activeId",""),M(this,"data",void 0),M(this,"properties",void 0),M(this,"setSelectedChild",(e=>{var t;null===(t=this.activeContainer)||void 0===t||null===(t=t.sharedContainerUtilities)||void 0===t||t.setSelected(e)})),M(this,"addChild",(({initProps:e,objectInitProps:t,children:r})=>{if(!this.activeContainer)return;const{dataHandler:n}=this.activeContainer;if(null!=e&&e.qExtendsId){const{qExtendsId:o,qInfo:i}=e;return null==n?void 0:n.addMasterObjectAsChild({initProps:{qExtendsId:o,qInfo:i},objectInitProps:t,children:r})}return null==n?void 0:n.addVizAsChild({type:null==e?void 0:e.visualization,initProps:e,objectInitProps:t,children:r})})),M(this,"deleteChild",(async e=>{if(!this.activeContainer)return;const{dataHandler:t}=this.activeContainer;await(null==t?void 0:t.deleteChildren([e]))})),M(this,"duplicateChild",(async e=>{var t;const{childRefId:r,...n}=e,o=this.getEngineId(r);if(!o)return;const i=await(null===(t=this.app)||void 0===t?void 0:t.getObject(o));if(i&&this.activeContainer){const{sharedContainerUtilities:e}=this.activeContainer,t=await i.getFullPropertyTree(),r=t.qProperty,o=t.qChildren,a=await this.addChild({initProps:r,children:o,objectInitProps:n});a&&(null==e||e.setSelected([a.id]))}})),M(this,"openAddChildPopover",(e=>{if(this.activeContainer&&this.activeContainer.dataHandler&&this.data.muiTheme){const t=((e,t)=>{const r=e.getElementsByClassName(t);let n;return 0===r.length?(n=document.createElement("div"),n.className=t,e.appendChild(n)):n=r[0],vp(n)})(this.activeContainer.element,"add-child-popover"),r=()=>{t.unmount()};null==t||t.render(S.createElement(Kl,{theme:this.data.muiTheme},S.createElement(Pp,{translator:this.data.translator,anchorEl:e,dataHandler:this.activeContainer.dataHandler,onClose:r,width:220,sharedContainerUtilities:this.activeContainer.sharedContainerUtilities})))}})),M(this,"setModel",(e=>{this.activeId=e.id})),M(this,"setLayout",(e=>{this.layout=e})),M(this,"getLayout",(()=>this.layout)),M(this,"getEngineId",(e=>Fp(this.layout,e))),M(this,"setProperties",(e=>{this.properties=e})),M(this,"canAddDimension",(()=>!1)),M(this,"canAddMeasure",(()=>!1)),M(this,"canColorBy",(()=>!1)),M(this,"getDimensions",(()=>[])),M(this,"getMeasures",(()=>[])),M(this,"minDimensions",(()=>0)),M(this,"minMeasures",(()=>0)),M(this,"maxDimensions",(()=>0)),M(this,"maxMeasures",(()=>0)),this.app=e,this.data=t}get activeContainer(){return this.data.containers[this.activeId]}getObject(e){const t=this.getEngineId(e);var r;if(t)return null===(r=this.activeContainer)||void 0===r?void 0:r.renderHelper.objectMap.get(t)}}function Hp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Wp(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||Vp(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Up(e){return function(e){if(Array.isArray(e))return Hp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Vp(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vp(e,t){if(e){if("string"==typeof e)return Hp(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Hp(e,t):void 0}}var qp,Kp="top",Xp="top-right",Zp="right",Jp="bottom-right",Qp="bottom",eh="bottom-left",th="left",rh="top-left";Wp(Wp(Wp(Wp(Wp(Wp(Wp(Wp(Wp(Wp(qp={},"equal-equal",[Kp,Qp]),"equal-higher",[Qp,Jp]),"equal-lower",[Kp,Xp]),"equal-void",[Kp,Qp]),"higher-equal",[th,eh,Kp,Xp]),"higher-higher-acute",[Qp,eh,th,Xp]),"higher-higher-obtuse",[Qp,Kp]),"higher-lower-negative",[Kp,Xp,Zp]),"higher-lower-positive",[Qp,eh,th]),"higher-void",[Kp]),Wp(Wp(Wp(Wp(Wp(Wp(Wp(Wp(Wp(Wp(qp,"lower-equal",[Kp]),"lower-higher-negative",[Kp,rh]),"lower-higher-positive",[Jp]),"lower-lower-acute",[Kp,rh,th,Xp,Zp]),"lower-lower-obtuse",[Kp,Qp]),"lower-void",[Kp]),"void-equal",[Kp]),"void-higher",[Kp,Qp]),"void-lower",[Kp,Qp,th]),"void-void",[Kp]),Wp(qp,"unclassified",[Kp,Qp,Zp,th,Xp,Jp,eh,rh]);var nh=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],oh=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var ih=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function ah(e){var t=e.theme,r=e.translator,n=e.defaultValue,o=e.flags,i=[],a=t.getStyle("","","fontFamilies");return Array.isArray(a)&&a.length?i.push.apply(i,Up(new Set([n].concat(Up(a.map((function(e){return e.split(",").map((function(e){return e.trim()})).map((function(e){return e.replace(/\s+/g," ").trim()})).filter(Boolean).join(", ")}))))))):i.push(n),[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0}].concat(Up(i.map((function(e){return ih(e)}))),[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0}],Up(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?oh:nh}(o).map((function(e){return ih(e)}))))}function lh(e){var t=e.theme,r=e.translator,n=e.id,o=e.path,i=e.flags,a=function(){return t.getStyle(n,o,"fontFamily")};return{getDefaultValue:function(){return a()},getOptions:function(){return ah({theme:t,translator:r,defaultValue:a(),flags:i})}}}var sh,ch,dh=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],uh=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function ph(e){var t=e.theme,r=e.translator,n=e.id,o=e.path,i=function(){return t.getStyle(n,o,"fontSize")};return{getDefaultValue:function(){return i()},getOptions:function(){return function(e){var t=e.translator,r=e.defaultValue,n=[],o=e.theme.getStyle("","","fontSizes");return Array.isArray(o)&&o.length?n.push.apply(n,Up(new Set([r].concat(Up(o))))):n.push(r),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(Up(n.map((function(e){return uh(e)}))),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],Up(dh.map((function(e){return uh(e)}))))}({theme:t,translator:r,defaultValue:i()})}}}function hh(e){var t=e.theme,r=e.translator,n=e.id,o=e.path;return{fontFamily:lh({theme:t,translator:r,id:n,path:o,flags:e.flags}),fontSize:ph({theme:t,translator:r,id:n,path:o})}}var fh=function(){if(ch)return sh;ch=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return sh=function e(){var t,r,n,s,c,d,u=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},p=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});p<h;++p)if(null!=(t=arguments[p]))for(r in t)n=l(u,r),u!==(s=l(t,r))&&(f&&s&&(i(s)||(c=o(s)))?(c?(c=!1,d=n&&o(n)?n:[]):d=n&&i(n)?n:{},a(u,{name:r,newValue:e(f,d,s)})):void 0!==s&&a(u,{name:r,newValue:s}));return u},sh}();function mh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function bh(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function gh(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(fh);var vh=1/.7,yh="\\s*([+-]?\\d+)\\s*",xh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Eh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Sh=/^#([0-9a-f]{3,8})$/,Ch=new RegExp(`^rgb\\(${yh},${yh},${yh}\\)$`),wh=new RegExp(`^rgb\\(${Eh},${Eh},${Eh}\\)$`),Rh=new RegExp(`^rgba\\(${yh},${yh},${yh},${xh}\\)$`),kh=new RegExp(`^rgba\\(${Eh},${Eh},${Eh},${xh}\\)$`),Ah=new RegExp(`^hsl\\(${xh},${Eh},${Eh}\\)$`),_h=new RegExp(`^hsla\\(${xh},${Eh},${Eh},${xh}\\)$`),Ih={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Th(){return this.rgb().formatHex()}function Lh(){return this.rgb().formatRgb()}function Oh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Sh.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Ph(t):3===r?new $h(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Mh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Mh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Ch.exec(e))?new $h(t[1],t[2],t[3],1):(t=wh.exec(e))?new $h(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Rh.exec(e))?Mh(t[1],t[2],t[3],t[4]):(t=kh.exec(e))?Mh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ah.exec(e))?Hh(t[1],t[2]/100,t[3]/100,1):(t=_h.exec(e))?Hh(t[1],t[2]/100,t[3]/100,t[4]):Ih.hasOwnProperty(e)?Ph(Ih[e]):"transparent"===e?new $h(NaN,NaN,NaN,0):null}function Ph(e){return new $h(e>>16&255,e>>8&255,255&e,1)}function Mh(e,t,r,n){return n<=0&&(e=t=r=NaN),new $h(e,t,r,n)}function jh(e){return e instanceof gh||(e=Oh(e)),e?new $h((e=e.rgb()).r,e.g,e.b,e.opacity):new $h}function Nh(e,t,r,n){return 1===arguments.length?jh(e):new $h(e,t,r,null==n?1:n)}function $h(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function zh(){return`#${Gh(this.r)}${Gh(this.g)}${Gh(this.b)}`}function Bh(){const e=Dh(this.opacity);return`${1===e?"rgb(":"rgba("}${Fh(this.r)}, ${Fh(this.g)}, ${Fh(this.b)}${1===e?")":`, ${e})`}`}function Dh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Gh(e){return((e=Fh(e))<16?"0":"")+e.toString(16)}function Hh(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Yh(e,t,r,n)}function Wh(e){if(e instanceof Yh)return new Yh(e.h,e.s,e.l,e.opacity);if(e instanceof gh||(e=Oh(e)),!e)return new Yh;if(e instanceof Yh)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Yh(a,l,s,e.opacity)}function Yh(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Uh(e){return(e=(e||0)%360)<0?e+360:e}function Vh(e){return Math.max(0,Math.min(1,e||0))}function qh(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}mh(gh,Oh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Th,formatHex:Th,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Wh(this).formatHsl()},formatRgb:Lh,toString:Lh}),mh($h,Nh,bh(gh,{brighter(e){return e=null==e?vh:Math.pow(vh,e),new $h(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new $h(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $h(Fh(this.r),Fh(this.g),Fh(this.b),Dh(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:zh,formatHex:zh,formatHex8:function(){return`#${Gh(this.r)}${Gh(this.g)}${Gh(this.b)}${Gh(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Bh,toString:Bh})),mh(Yh,(function(e,t,r,n){return 1===arguments.length?Wh(e):new Yh(e,t,r,null==n?1:n)}),bh(gh,{brighter(e){return e=null==e?vh:Math.pow(vh,e),new Yh(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Yh(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new $h(qh(e>=240?e-240:e+120,o,n),qh(e,o,n),qh(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Yh(Uh(this.h),Vh(this.s),Vh(this.l),Dh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Dh(this.opacity);return`${1===e?"hsl(":"hsla("}${Uh(this.h)}, ${100*Vh(this.s)}%, ${100*Vh(this.l)}%${1===e?")":`, ${e})`}`}}));const Kh=Math.PI/180,Xh=180/Math.PI,Zh=4/29,Jh=6/29,Qh=3*Jh*Jh;function ef(e){if(e instanceof tf)return new tf(e.l,e.a,e.b,e.opacity);if(e instanceof lf)return sf(e);e instanceof $h||(e=jh(e));var t,r,n=af(e.r),o=af(e.g),i=af(e.b),a=rf((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=rf((.4360747*n+.3850649*o+.1430804*i)/.96422),r=rf((.0139322*n+.0971045*o+.7141733*i)/.82521)),new tf(116*a-16,500*(t-a),200*(a-r),e.opacity)}function tf(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function rf(e){return e>.008856451679035631?Math.pow(e,1/3):e/Qh+Zh}function nf(e){return e>Jh?e*e*e:Qh*(e-Zh)}function of(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function af(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function lf(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function sf(e){if(isNaN(e.h))return new tf(e.l,0,0,e.opacity);var t=e.h*Kh;return new tf(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}mh(tf,(function(e,t,r,n){return 1===arguments.length?ef(e):new tf(e,t,r,null==n?1:n)}),bh(gh,{brighter(e){return new tf(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new tf(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new $h(of(3.1338561*(t=.96422*nf(t))-1.6168667*(e=1*nf(e))-.4906146*(r=.82521*nf(r))),of(-.9787684*t+1.9161415*e+.033454*r),of(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),mh(lf,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof lf)return new lf(e.h,e.c,e.l,e.opacity);if(e instanceof tf||(e=ef(e)),0===e.a&&0===e.b)return new lf(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Xh;return new lf(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new lf(e,t,r,null==n?1:n)}),bh(gh,{brighter(e){return new lf(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new lf(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return sf(this).rgb()}}));var cf=e=>()=>e;function df(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):cf(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?df:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):cf(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Nh(e)).r,(t=Nh(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=df(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var uf="center",pf="bottom";function hf(e,t,r){if(void 0===e||void 0===t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(void 0===o[a])return r;o=o[a]}return o}[{key:"NoDataExist",alignment:uf,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:uf,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:uf,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:uf},{key:"DataRangeIncludingZero",alignment:pf},{key:"LimitedData",alignment:pf},{key:"NegativeOrZeroValues",alignment:pf}].reduce((function(e,t){return e[t.key]=t,e}),{});var ff,mf=["__proto__","constructor"];function bf(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!mf.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function gf(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function vf(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=xf)):void 0===t&&(t=yf);for(var r,n,o,i,a,l=new Cf(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Cf(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Sf)}function yf(e){return e.children}function xf(e){return Array.isArray(e)?e[1]:null}function Ef(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Sf(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Cf(e){this.data=e,this.depth=this.height=0,this.parent=null}Cf.prototype=vf.prototype={constructor:Cf,count:function(){return this.eachAfter(gf)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return vf(this).eachBefore(Ef)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},ff=function(e){
87
+ `),ws.rippleVisible,Ls,550,(({theme:e})=>e.transitions.easing.easeInOut),ws.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ws.child,ws.childLeaving,Os,550,(({theme:e})=>e.transitions.easing.easeInOut),ws.childPulsate,Ps,(({theme:e})=>e.transitions.easing.easeInOut)),Ns=y.forwardRef((function(e,t){const r=Xa({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=z(r,Rs),[s,l]=y.useState([]),c=y.useRef(0),d=y.useRef(null);y.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const u=y.useRef(!1),p=_o(),h=y.useRef(null),f=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,br.jsx(js,{classes:{ripple:Yn(o.ripple,ws.ripple),rippleVisible:Yn(o.rippleVisible,ws.rippleVisible),ripplePulsate:Yn(o.ripplePulsate,ws.ripplePulsate),child:Yn(o.child,ws.child),childLeaving:Yn(o.childLeaving,ws.childLeaving),childPulsate:Yn(o.childPulsate,ws.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},c.current)])),c.current+=1,d.current=a}),[o]),b=y.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&u.current)return void(u.current=!1);"touchstart"===(null==e?void 0:e.type)&&(u.current=!0);const s=a?null:f.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,d,b;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),d=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),d=Math.round(r-l.top)}if(i)b=Math.sqrt((2*l.width**2+l.height**2)/3),b%2==0&&(b+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-d),d)+2;b=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:o,rippleX:c,rippleY:d,rippleSize:b,cb:r})},p.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:o,rippleX:c,rippleY:d,rippleSize:b,cb:r})}),[n,m,p]),g=y.useCallback((()=>{b({},{pulsate:!0})}),[b]),v=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void p.start(0,(()=>{v(e,t)}));h.current=null,l((e=>e.length>0?e.slice(1):e)),d.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:g,start:b,stop:v})),[g,b,v]),br.jsx(Ms,$({className:Yn(ws.root,o.root,i),ref:f},a,{children:br.jsx(gs,{component:null,exit:!0,children:s})}))}));function $s(e){return qn("MuiButtonBase",e)}const zs=Kn("MuiButtonBase",["root","disabled","focusVisible"]),Bs=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Ds=ja("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${zs.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Fs=y.forwardRef((function(e,t){const r=Xa({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:u=!1,LinkComponent:p="a",onBlur:h,onClick:f,onContextMenu:m,onDragLeave:b,onFocus:g,onFocusVisible:v,onKeyDown:x,onKeyUp:E,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:k,onTouchStart:A,tabIndex:_=0,TouchRippleProps:I,touchRippleRef:T,type:L}=r,O=z(r,Bs),P=y.useRef(null),M=y.useRef(null),j=wo(M,T),{isFocusVisibleRef:N,onFocus:B,onBlur:D,ref:F}=$o(),[G,H]=y.useState(!1);l&&G&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),P.current.focus()}})),[]);const[W,Y]=y.useState(!1);y.useEffect((()=>{Y(!0)}),[]);const U=W&&!c&&!l;function V(e,t,r=d){return Co((n=>{t&&t(n);return!r&&M.current&&M.current[e](n),!0}))}y.useEffect((()=>{G&&u&&!c&&W&&M.current.pulsate()}),[c,u,G,W]);const q=V("start",S),K=V("stop",m),X=V("stop",b),Z=V("stop",w),J=V("stop",(e=>{G&&e.preventDefault(),C&&C(e)})),Q=V("start",A),ee=V("stop",R),te=V("stop",k),re=V("stop",(e=>{D(e),!1===N.current&&H(!1),h&&h(e)}),!1),ne=Co((e=>{P.current||(P.current=e.currentTarget),B(e),!0===N.current&&(H(!0),v&&v(e)),g&&g(e)})),oe=()=>{const e=P.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ie=y.useRef(!1),ae=Co((e=>{u&&!ie.current&&G&&M.current&&" "===e.key&&(ie.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!l&&(e.preventDefault(),f&&f(e))})),se=Co((e=>{u&&" "===e.key&&M.current&&G&&!e.defaultPrevented&&(ie.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),E&&E(e),f&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&f(e)}));let le=s;"button"===le&&(O.href||O.to)&&(le=p);const ce={};"button"===le?(ce.type=void 0===L?"button":L,ce.disabled=l):(O.href||O.to||(ce.role="button"),l&&(ce["aria-disabled"]=l));const de=wo(t,F,P),ue=$({},r,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:d,focusRipple:u,tabIndex:_,focusVisible:G}),pe=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Go({root:["root",t&&"disabled",r&&"focusVisible"]},$s,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return br.jsxs(Ds,$({as:le,className:Yn(pe.root,a),ownerState:ue,onBlur:re,onClick:f,onContextMenu:K,onFocus:ne,onKeyDown:ae,onKeyUp:se,onMouseDown:q,onMouseLeave:J,onMouseUp:Z,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:de,tabIndex:l?-1:_,type:L},ce,O,{children:[i,U?br.jsx(Ns,$({ref:j,center:o},I)):null]}))}));function Gs(e){return qn("MuiTypography",e)}Kn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Hs=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ws=ja("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${jr(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>$({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Ys={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Us={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Vs=y.forwardRef((function(e,t){const r=Xa({props:e,name:"MuiTypography"}),n=(e=>Us[e]||e)(r.color),o=Dn($({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:u="body1",variantMapping:p=Ys}=o,h=z(o,Hs),f=$({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:d,variant:u,variantMapping:p}),m=s||(d?"p":p[u]||Ys[u])||"span",b=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Go({root:["root",i,"inherit"!==e.align&&`align${jr(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Gs,a)})(f);return br.jsx(Ws,$({as:m,ref:t,ownerState:f,className:Yn(b.root,a)},h))}));const qs=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=wo(y.isValidElement(r)?qo(r):null,t);if(co((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),co((()=>{if(i&&!o)return yo(t,i),()=>{yo(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:s};return y.cloneElement(r,e)}return br.jsx(y.Fragment,{children:r})}return br.jsx(y.Fragment,{children:i?O.createPortal(r,i):i})})),Ks=["onChange","maxRows","minRows","style","value"];function Xs(e){return parseInt(e,10)||0}const Zs={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Js(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Qs=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=z(e,Ks),{current:l}=y.useRef(null!=a),c=y.useRef(null),d=wo(t,c),u=y.useRef(null),p=y.useRef(null),h=y.useCallback((()=>{const t=c.current,r=p.current;if(!t||!r)return;const i=vo(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=Xs(i.paddingBottom)+Xs(i.paddingTop),l=Xs(i.borderBottomWidth)+Xs(i.borderTopWidth),d=r.scrollHeight;r.value="x";const u=r.scrollHeight;let h=d;o&&(h=Math.max(Number(o)*u,h)),n&&(h=Math.min(Number(n)*u,h)),h=Math.max(h,u);return{outerHeightStyle:h+("border-box"===a?s+l:0),overflowing:Math.abs(h-d)<=1}}),[n,o,e.placeholder]),f=Co((()=>{const e=c.current,t=h();if(!e||!t||Js(t))return!1;const r=t.outerHeightStyle;return null!=u.current&&u.current!==r})),m=y.useCallback((()=>{const e=c.current,t=h();if(!e||!t||Js(t))return;const r=t.outerHeightStyle;u.current!==r&&(u.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""}),[h]),b=y.useRef(-1);co((()=>{const e=bo(m),t=null==c?void 0:c.current;if(!t)return;const r=vo(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{f()&&(n.unobserve(t),cancelAnimationFrame(b.current),m(),b.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(b.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[h,m,f]),co((()=>{m()}));return br.jsxs(y.Fragment,{children:[br.jsx("textarea",$({value:a,onChange:e=>{l||m(),r&&r(e)},ref:d,rows:o,style:i},s)),br.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:$({},Zs,i,{paddingTop:0,paddingBottom:0})})]})}));const el=y.createContext(void 0);function tl(){return y.useContext(el)}function rl(e){return br.jsx(zn,$({},e,{defaultTheme:ya,themeId:N}))}function nl(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function ol(e){return qn("MuiInputBase",e)}const il=Kn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),al=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],sl=ja("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${jr(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]}})((({theme:e,ownerState:t})=>$({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${il.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),ll=ja("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]}})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=$({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return $({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${il.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${il.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),cl=br.jsx(rl,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),dl=y.forwardRef((function(e,t){var r;const n=Xa({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:c={},defaultValue:d,disabled:u,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:f=!1,id:m,inputComponent:b="input",inputProps:g={},inputRef:v,maxRows:x,minRows:E,multiline:S=!1,name:C,onBlur:w,onChange:R,onClick:k,onFocus:A,onKeyDown:_,onKeyUp:I,placeholder:T,readOnly:L,renderSuffix:O,rows:P,slotProps:j={},slots:N={},startAdornment:B,type:D="text",value:F}=n,G=z(n,al),H=null!=g.value?g.value:F,{current:W}=y.useRef(null!=H),Y=y.useRef(),U=y.useCallback((e=>{}),[]),V=wo(Y,v,g.ref,U),[q,K]=y.useState(!1),X=tl(),Z=function({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}({props:n,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Z.focused=X?X.focused:q,y.useEffect((()=>{!X&&u&&q&&(K(!1),w&&w())}),[X,u,q,w]);const J=X&&X.onFilled,Q=X&&X.onEmpty,ee=y.useCallback((e=>{!function(e,t=!1){return e&&(nl(e.value)&&""!==e.value||t&&nl(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():J&&J()}),[J,Q]);co((()=>{W&&ee({value:H})}),[H,ee,W]);y.useEffect((()=>{ee(Y.current)}),[]);let te=b,re=g;S&&"input"===te&&(re=$(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:x,minRows:E},re),te=Qs);y.useEffect((()=>{X&&X.setAdornedStart(Boolean(B))}),[X,B]);const ne=$({},n,{color:Z.color||"primary",disabled:Z.disabled,endAdornment:h,error:Z.error,focused:Z.focused,formControl:X,fullWidth:f,hiddenLabel:Z.hiddenLabel,multiline:S,size:Z.size,startAdornment:B,type:D}),oe=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:u,size:p,startAdornment:h,type:f}=e;return Go({root:["root",`color${jr(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${jr(p)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",n&&"disabled","search"===f&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",u&&"readOnly"]},ol,t)})(ne),ie=N.root||l.Root||sl,ae=j.root||c.root||{},se=N.input||l.Input||ll;return re=$({},re,null!=(r=j.input)?r:c.input),br.jsxs(y.Fragment,{children:[!p&&cl,br.jsxs(ie,$({},ae,!Ho(ie)&&{ownerState:$({},ne,ae.ownerState)},{ref:t,onClick:e=>{Y.current&&e.currentTarget===e.target&&Y.current.focus(),k&&k(e)}},G,{className:Yn(oe.root,ae.className,s,L&&"MuiInputBase-readOnly"),children:[B,br.jsx(el.Provider,{value:null,children:br.jsx(se,$({ownerState:ne,"aria-invalid":Z.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:Z.disabled,id:m,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?Y.current:{value:"x"})},name:C,placeholder:T,readOnly:L,required:Z.required,rows:P,value:H,onKeyDown:_,onKeyUp:I,type:D},re,!Ho(se)&&{as:te,ownerState:$({},ne,re.ownerState)},{ref:V,className:Yn(oe.input,re.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),g.onBlur&&g.onBlur(e),X&&X.onBlur?X.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!W){const t=e.target||Y.current;if(null==t)throw new Error(M(1));ee({value:t.value})}g.onChange&&g.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Z.disabled?e.stopPropagation():(A&&A(e),g.onFocus&&g.onFocus(e),X&&X.onFocus?X.onFocus(e):K(!0))}}))}),h,O?O($({},Z,{startAdornment:B})):null]}))]})})),ul=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pl={entering:{opacity:1},entered:{opacity:1}},hl=y.forwardRef((function(e,t){const r=xa(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:d,onEntering:u,onExit:p,onExited:h,onExiting:f,style:m,timeout:b=n,TransitionComponent:g=us}=e,v=z(e,ul),x=y.useRef(null),E=wo(x,qo(a),t),S=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=S(u),w=S(((e,t)=>{vs(e);const n=ys({style:m,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),R=S(d),k=S(f),A=S((e=>{const t=ys({style:m,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),_=S(h);return br.jsx(g,$({appear:i,in:l,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:_,onExiting:k,addEndListener:e=>{o&&o(x.current,e)},timeout:b},v,{children:(e,t)=>y.cloneElement(a,$({style:$({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},pl[e],m,a.props.style),ref:E},t))}))}));function fl(e){return qn("MuiBackdrop",e)}Kn("MuiBackdrop",["root","invisible"]);const ml=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],bl=ja("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>$({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),gl=y.forwardRef((function(e,t){var r,n,o;const i=Xa({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:d={},invisible:u=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=hl,transitionDuration:b}=i,g=z(i,ml),v=$({},i,{component:l,invisible:u}),y=(e=>{const{classes:t,invisible:r}=e;return Go({root:["root",r&&"invisible"]},fl,t)})(v),x=null!=(r=h.root)?r:d.root;return br.jsx(m,$({in:p,timeout:b},g,{children:br.jsx(bl,$({"aria-hidden":!0},x,{as:null!=(n=null!=(o=f.root)?o:c.Root)?n:l,className:Yn(y.root,s,null==x?void 0:x.className),ownerState:$({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),vl=Kn("MuiBox",["root"]),yl=va(),xl=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=yr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(In);return y.forwardRef((function(e,a){const s=Nn(r),l=Dn(e),{className:c,component:d="div"}=l,u=z(l,Un);return br.jsx(i,$({as:d,ref:a,className:Yn(c,o?o(n):n),theme:t&&s[t]||s},u))}))}({themeId:N,defaultTheme:yl,defaultClassName:vl.root,generateClassName:Hn.generate});function El(e){return qn("MuiButton",e)}const Sl=Kn("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Cl=y.createContext({}),wl=y.createContext(void 0),Rl=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],kl=e=>$({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Al=ja(Fs,{shouldForwardProp:e=>Ma(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${jr(r.color)}`],t[`size${jr(r.size)}`],t[`${r.variant}Size${jr(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return $({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":$({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:gi.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gi.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gi.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":$({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Sl.focusVisible}`]:$({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Sl.disabled}`]:$({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${gi.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Sl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Sl.disabled}`]:{boxShadow:"none"}})),_l=ja("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${jr(r.size)}`]]}})((({ownerState:e})=>$({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},kl(e)))),Il=ja("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${jr(r.size)}`]]}})((({ownerState:e})=>$({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},kl(e)))),Tl=y.forwardRef((function(e,t){const r=y.useContext(Cl),n=y.useContext(wl),o=Xa({props:lo(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:u=!1,endIcon:p,focusVisibleClassName:h,fullWidth:f=!1,size:m="medium",startIcon:b,type:g,variant:v="text"}=o,x=z(o,Rl),E=$({},o,{color:a,component:s,disabled:c,disableElevation:d,disableFocusRipple:u,fullWidth:f,size:m,type:g,variant:v}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return $({},a,Go({root:["root",i,`${i}${jr(t)}`,`size${jr(o)}`,`${i}Size${jr(o)}`,`color${jr(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${jr(o)}`],endIcon:["icon","endIcon",`iconSize${jr(o)}`]},El,a))})(E),C=b&&br.jsx(_l,{className:S.startIcon,ownerState:E,children:b}),w=p&&br.jsx(Il,{className:S.endIcon,ownerState:E,children:p}),R=n||"";return br.jsxs(Al,$({ownerState:E,className:Yn(r.className,S.root,l,R),component:s,disabled:c,focusRipple:!u,focusVisibleClassName:Yn(S.focusVisible,h),ref:t,type:g},x,{classes:S,children:[C,i,w]}))}));function Ll(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ol(e){return parseInt(vo(e).getComputedStyle(e).paddingRight,10)||0}function Pl(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&Ll(e,o)}))}function Ml(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function jl(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=go(e);return t.body===e?vo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=zo(go(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Ol(n)+e}px`;const t=go(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Ol(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=go(n).body;else{const t=n.parentElement,r=vo(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const Nl=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $l(e){const t=[],r=[];return Array.from(e.querySelectorAll(Nl)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function zl(){return!0}function Bl(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=$l,isEnabled:a=zl,open:s}=e,l=y.useRef(!1),c=y.useRef(null),d=y.useRef(null),u=y.useRef(null),p=y.useRef(null),h=y.useRef(!1),f=y.useRef(null),m=wo(qo(t),f),b=y.useRef(null);y.useEffect((()=>{s&&f.current&&(h.current=!r)}),[r,s]),y.useEffect((()=>{if(!s||!f.current)return;const e=go(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),h.current&&f.current.focus()),()=>{o||(u.current&&u.current.focus&&(l.current=!0,u.current.focus()),u.current=null)}}),[s]),y.useEffect((()=>{if(!s||!f.current)return;const e=go(f.current),t=t=>{b.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(l.current=!0,d.current&&d.current.focus())},r=()=>{const t=f.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=i(f.current)),r.length>0){var o,s;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=b.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,s,i]);const g=e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0};return br.jsxs(y.Fragment,{children:[br.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:c,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),br.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:d,"data-testid":"sentinelEnd"})]})}const Dl=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Ll(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Pl(t,e.mount,e.modalRef,n,!0);const o=Ml(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Ml(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=jl(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Ml(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Ll(e.modalRef,t),Pl(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Ll(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Fl(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Dl,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:d,rootRef:u}=e,p=y.useRef({}),h=y.useRef(null),f=y.useRef(null),m=wo(f,u),[b,g]=y.useState(!d),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const E=()=>(p.current.modalRef=f.current,p.current.mount=h.current,p.current),S=()=>{o.mount(E(),{disableScrollLock:n}),f.current&&(f.current.scrollTop=0)},C=Co((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||go(h.current).body;o.add(E(),e),f.current&&S()})),w=y.useCallback((()=>o.isTopModal(E())),[o]),R=Co((e=>{h.current=e,e&&(d&&w()?S():f.current&&Ll(f.current,x))})),k=y.useCallback((()=>{o.remove(E(),x)}),[x,o]);y.useEffect((()=>()=>{k()}),[k]),y.useEffect((()=>{d?C():v&&i||k()}),[d,k,v,i,C]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},_=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Wo(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=$({},r,t);return $({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>$({"aria-hidden":!0},e,{onClick:_(e),open:d}),getTransitionProps:()=>({onEnter:mo((()=>{g(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:mo((()=>{g(!0),s&&s(),i&&k()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:b,hasTransition:v}}function Gl(e){return qn("MuiModal",e)}Kn("MuiModal",["root","hidden","backdrop"]);const Hl=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Wl=ja("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>$({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Yl=ja(gl,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ul=y.forwardRef((function(e,t){var r,n,o,i,a,s;const l=Xa({name:"MuiModal",props:e}),{BackdropComponent:c=Yl,BackdropProps:d,className:u,closeAfterTransition:p=!1,children:h,container:f,component:m,components:b={},componentsProps:g={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:E=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:k=!1,onBackdropClick:A,open:_,slotProps:I,slots:T}=l,L=z(l,Hl),O=$({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:E,disablePortal:S,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:k}),{getRootProps:P,getBackdropProps:M,getTransitionProps:j,portalRef:N,isTopModal:B,exited:D,hasTransition:F}=Fl($({},O,{rootRef:t})),G=$({},O,{exited:D}),H=(e=>{const{open:t,exited:r,classes:n}=e;return Go({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Gl,n)})(G),W={};if(void 0===h.props.tabIndex&&(W.tabIndex="-1"),F){const{onEnter:e,onExited:t}=j();W.onEnter=e,W.onExited=t}const Y=null!=(r=null!=(n=null==T?void 0:T.root)?n:b.Root)?r:Wl,U=null!=(o=null!=(i=null==T?void 0:T.backdrop)?i:b.Backdrop)?o:c,V=null!=(a=null==I?void 0:I.root)?a:g.root,q=null!=(s=null==I?void 0:I.backdrop)?s:g.backdrop,K=Vo({elementType:Y,externalSlotProps:V,externalForwardedProps:L,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:G,className:Yn(u,null==V?void 0:V.className,null==H?void 0:H.root,!G.open&&G.exited&&(null==H?void 0:H.hidden))}),X=Vo({elementType:U,externalSlotProps:q,additionalProps:d,getSlotProps:e=>M($({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Yn(null==q?void 0:q.className,null==d?void 0:d.className,null==H?void 0:H.backdrop),ownerState:G});return k||_||F&&!D?br.jsx(qs,{ref:N,container:f,disablePortal:S,children:br.jsxs(Y,$({},K,{children:[!R&&c?br.jsx(U,$({},X)):null,br.jsx(Bl,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:B,open:_,children:y.cloneElement(h,W)})]}))}):null}));function Vl(e){return qn("MuiDivider",e)}const ql=Kn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Kl=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Xl=ja("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>$({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:gi.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>$({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>$({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>$({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>$({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Zl=ja("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>$({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Jl=y.forwardRef((function(e,t){const r=Xa({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:d=("hr"!==a?"separator":void 0),textAlign:u="center",variant:p="fullWidth"}=r,h=z(r,Kl),f=$({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:c,role:d,textAlign:u,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Go({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Vl,n)})(f);return br.jsx(Xl,$({as:a,className:Yn(m.root,i),role:d,ref:t,ownerState:f},h,{children:o?br.jsx(Zl,{className:m.wrapper,ownerState:f,children:o}):null}))}));Jl.muiSkipListHighlight=!0;const Ql=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ec(e){return`scale(${e}, ${e**2})`}const tc={entering:{opacity:1,transform:ec(1)},entered:{opacity:1,transform:"none"}},rc="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),nc=y.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:d,onExited:u,onExiting:p,style:h,timeout:f="auto",TransitionComponent:m=us}=e,b=z(e,Ql),g=_o(),v=y.useRef(),x=xa(),E=y.useRef(null),S=wo(E,qo(o),t),C=e=>t=>{if(e){const r=E.current;void 0===t?e(r):e(r,t)}},w=C(c),R=C(((e,t)=>{vs(e);const{duration:r,delay:n,easing:o}=ys({style:h,timeout:f,easing:i},{mode:"enter"});let a;"auto"===f?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:rc?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),k=C(l),A=C(p),_=C((e=>{const{duration:t,delay:r,easing:n}=ys({style:h,timeout:f,easing:i},{mode:"exit"});let o;"auto"===f?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:rc?o:.666*o,delay:rc?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=ec(.75),d&&d(e)})),I=C(u);return br.jsx(m,$({appear:n,in:a,nodeRef:E,onEnter:R,onEntered:k,onEntering:w,onExit:_,onExited:I,onExiting:A,addEndListener:e=>{"auto"===f&&g.start(v.current||0,e),r&&r(E.current,e)},timeout:"auto"===f?null:f},b,{children:(e,t)=>y.cloneElement(o,$({style:$({opacity:0,transform:ec(.75),visibility:"exited"!==e||a?void 0:"hidden"},tc[e],h,o.props.style),ref:S},t))}))}));function oc(e){return qn("MuiInputAdornment",e)}nc.muiSupportAuto=!0;const ic=Kn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ac;const sc=["children","className","component","disablePointerEvents","disableTypography","position","variant"],lc=ja("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${jr(r.position)}`],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((({theme:e,ownerState:t})=>$({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${ic.positionStart}&:not(.${ic.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),cc=y.forwardRef((function(e,t){const r=Xa({props:e,name:"MuiInputAdornment"}),{children:n,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c}=r,d=z(r,sc),u=tl()||{};let p=c;c&&u.variant,u&&!p&&(p=u.variant);const h=$({},r,{hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:l,variant:p}),f=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:i,variant:a}=e;return Go({root:["root",r&&"disablePointerEvents",o&&`position${jr(o)}`,a,n&&"hiddenLabel",i&&`size${jr(i)}`]},oc,t)})(h);return br.jsx(el.Provider,{value:null,children:br.jsx(lc,$({as:i,ownerState:h,className:Yn(f.root,o),ref:t},d,{children:"string"!=typeof n||s?br.jsxs(y.Fragment,{children:["start"===l?ac||(ac=br.jsx("span",{className:"notranslate",children:"​"})):null,n]}):br.jsx(Vs,{color:"text.secondary",children:n})}))})})),dc=y.createContext({});function uc(e){return qn("MuiList",e)}Kn("MuiList",["root","padding","dense","subheader"]);const pc=["children","className","component","dense","disablePadding","subheader"],hc=ja("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>$({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),fc=y.forwardRef((function(e,t){const r=Xa({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,c=z(r,pc),d=y.useMemo((()=>({dense:a})),[a]),u=$({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Go({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},uc,t)})(u);return br.jsx(dc.Provider,{value:d,children:br.jsxs(hc,$({as:i,className:Yn(p.root,o),ref:t,ownerState:u},c,{children:[l,n]}))})}));function mc(e){return qn("MuiListItem",e)}const bc=Kn("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function gc(e){return qn("MuiListItemButton",e)}const vc=Kn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),yc=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],xc=ja(Fs,{shouldForwardProp:e=>Ma(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>$({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${vc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${vc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${vc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${vc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),Ec=y.forwardRef((function(e,t){const r=Xa({props:e,name:"MuiListItemButton"}),{alignItems:n="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:d,selected:u=!1,className:p}=r,h=z(r,yc),f=y.useContext(dc),m=y.useMemo((()=>({dense:s||f.dense||!1,alignItems:n,disableGutters:l})),[n,f.dense,s,l]),b=y.useRef(null);co((()=>{o&&b.current&&b.current.focus()}),[o]);const g=$({},r,{alignItems:n,dense:m.dense,disableGutters:l,divider:c,selected:u}),v=(e=>{const{alignItems:t,classes:r,dense:n,disabled:o,disableGutters:i,divider:a,selected:s}=e;return $({},r,Go({root:["root",n&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},gc,r))})(g),x=wo(b,t);return br.jsx(dc.Provider,{value:m,children:br.jsx(xc,$({ref:x,href:h.href||h.to,component:(h.href||h.to)&&"div"===i?"button":i,focusVisibleClassName:Yn(v.focusVisible,d),ownerState:g,className:Yn(v.root,p)},h,{classes:v,children:a}))})}));function Sc(e){return qn("MuiListItemSecondaryAction",e)}Kn("MuiListItemSecondaryAction",["root","disableGutters"]);const Cc=["className"],wc=ja("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((({ownerState:e})=>$({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),Rc=y.forwardRef((function(e,t){const r=Xa({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=z(r,Cc),i=$({},r,{disableGutters:y.useContext(dc).disableGutters}),a=(e=>{const{disableGutters:t,classes:r}=e;return Go({root:["root",t&&"disableGutters"]},Sc,r)})(i);return br.jsx(wc,$({className:Yn(a.root,n),ownerState:i,ref:t},o))}));Rc.muiName="ListItemSecondaryAction";const kc=["className"],Ac=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],_c=ja("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>$({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&$({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${vc.root}`]:{paddingRight:48}},{[`&.${bc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${bc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${bc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${bc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${bc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Ic=ja("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Tc=y.forwardRef((function(e,t){const r=Xa({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:c={},componentsProps:d={},ContainerComponent:u="li",ContainerProps:{className:p}={},dense:h=!1,disabled:f=!1,disableGutters:m=!1,disablePadding:b=!1,divider:g=!1,focusVisibleClassName:v,secondaryAction:x,selected:E=!1,slotProps:S={},slots:C={}}=r,w=z(r.ContainerProps,kc),R=z(r,Ac),k=y.useContext(dc),A=y.useMemo((()=>({dense:h||k.dense||!1,alignItems:n,disableGutters:m})),[n,k.dense,h,m]),_=y.useRef(null);co((()=>{o&&_.current&&_.current.focus()}),[o]);const I=y.Children.toArray(a),T=I.length&&(L=I[I.length-1],O=["ListItemSecondaryAction"],y.isValidElement(L)&&-1!==O.indexOf(null!=(P=L.type.muiName)?P:null==(M=L.type)||null==(M=M._payload)||null==(M=M.value)?void 0:M.muiName));var L,O,P,M;const j=$({},r,{alignItems:n,autoFocus:o,button:i,dense:A.dense,disabled:f,disableGutters:m,disablePadding:b,divider:g,hasSecondaryAction:T,selected:E}),N=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:d}=e;return Go({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},mc,n)})(j),B=wo(_,t),D=C.root||c.Root||_c,F=S.root||d.root||{},G=$({className:Yn(N.root,F.className,s),disabled:f},R);let H=l||"li";return i&&(G.component=l||"div",G.focusVisibleClassName=Yn(bc.focusVisible,v),H=Fs),T?(H=G.component||l?H:"div","li"===u&&("li"===H?H="div":"li"===G.component&&(G.component="div")),br.jsx(dc.Provider,{value:A,children:br.jsxs(Ic,$({as:u,className:Yn(N.container,p),ref:B,ownerState:j},w,{children:[br.jsx(D,$({},F,!Ho(D)&&{as:H,ownerState:$({},j,F.ownerState)},G,{children:I})),I.pop()]}))})):br.jsx(dc.Provider,{value:A,children:br.jsxs(D,$({},F,{as:H,ref:B},!Ho(D)&&{ownerState:$({},j,F.ownerState)},G,{children:[I,x&&br.jsx(Rc,{children:x})]}))})}));function Lc(e){return qn("MuiListItemIcon",e)}const Oc=Kn("MuiListItemIcon",["root","alignItemsFlexStart"]),Pc=["className"],Mc=ja("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>$({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),jc=y.forwardRef((function(e,t){const r=Xa({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=z(r,Pc),i=$({},r,{alignItems:y.useContext(dc).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Go({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Lc,r)})(i);return br.jsx(Mc,$({className:Yn(a.root,n),ownerState:i,ref:t},o))})),Nc=Kn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),$c=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function zc(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Bc(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Dc(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Fc(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Dc(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Gc=y.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu"}=e,u=z(e,$c),p=y.useRef(null),h=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});co((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${zo(go(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const f=wo(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const b=y.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return br.jsx(fc,$({role:"menu",ref:f,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=go(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Fc(t,n,l,s,zc);else if("ArrowUp"===r)e.preventDefault(),Fc(t,n,l,s,Bc);else if("Home"===r)e.preventDefault(),Fc(t,null,l,s,zc);else if("End"===r)e.preventDefault(),Fc(t,null,l,s,Bc);else if(1===r.length){const o=h.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&Dc(n,o);o.previousKeyMatched&&(l||Fc(t,n,!1,s,zc,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},u,{children:b}))}));function Hc(e){return qn("MuiPopover",e)}Kn("MuiPopover",["root","paper"]);const Wc=["onEntering"],Yc=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Uc=["slotProps"];function Vc(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function qc(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Kc(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Xc(e){return"function"==typeof e?e():e}const Zc=ja(Ul,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jc=ja(Cs,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Qc=y.forwardRef((function(e,t){var r,n,o;const i=Xa({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:u,className:p,container:h,elevation:f=8,marginThreshold:m=16,open:b,PaperProps:g={},slots:v,slotProps:x,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:S=nc,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,k=z(i.TransitionProps,Wc),A=z(i,Yc),_=null!=(r=null==x?void 0:x.paper)?r:g,I=y.useRef(),T=wo(I,_.ref),L=$({},i,{anchorOrigin:l,anchorReference:d,elevation:f,marginThreshold:m,externalPaperSlotProps:_,transformOrigin:E,TransitionComponent:S,transitionDuration:C,TransitionProps:k}),O=(e=>{const{classes:t}=e;return Go({root:["root"],paper:["paper"]},Hc,t)})(L),P=y.useCallback((()=>{if("anchorPosition"===d)return c;const e=Xc(s),t=(e&&1===e.nodeType?e:go(I.current).body).getBoundingClientRect();return{top:t.top+Vc(t,l.vertical),left:t.left+qc(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,d]),M=y.useCallback((e=>({vertical:Vc(e,E.vertical),horizontal:qc(e,E.horizontal)})),[E.horizontal,E.vertical]),j=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=M(t);if("none"===d)return{top:null,left:null,transformOrigin:Kc(r)};const n=P();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,c=vo(Xc(s)),u=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>u){const e=a-u;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Kc(r)}}),[s,d,P,M,m]),[N,B]=y.useState(b),D=y.useCallback((()=>{const e=I.current;if(!e)return;const t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,B(!0)}),[j]);y.useEffect((()=>(R&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D))),[s,R,D]);y.useEffect((()=>{b&&D()})),y.useImperativeHandle(a,(()=>b?{updatePosition:()=>{D()}}:null),[b,D]),y.useEffect((()=>{if(!b)return;const e=bo((()=>{D()})),t=vo(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,b,D]);let F=C;"auto"!==C||S.muiSupportAuto||(F=void 0);const G=h||(s?go(Xc(s)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:Zc,W=null!=(o=null==v?void 0:v.paper)?o:Jc,Y=Vo({elementType:W,externalSlotProps:$({},_,{style:N?_.style:$({},_.style,{opacity:0})}),additionalProps:{elevation:f,ref:T},ownerState:L,className:Yn(O.paper,null==_?void 0:_.className)}),U=Vo({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:G,open:b},ownerState:L,className:Yn(O.root,p)}),{slotProps:V}=U,q=z(U,Uc);return br.jsx(H,$({},q,!Ho(H)&&{slotProps:V,disableScrollLock:R},{children:br.jsx(S,$({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),D()},onExited:()=>{B(!1)},timeout:F},k,{children:br.jsx(W,$({},Y,{children:u}))}))}))}));function ed(e){return qn("MuiMenu",e)}Kn("MuiMenu",["root","paper","list"]);const td=["onEntering"],rd=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],nd={vertical:"top",horizontal:"right"},od={vertical:"top",horizontal:"left"},id=ja(Qc,{shouldForwardProp:e=>Ma(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ad=ja(Jc,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sd=ja(Gc,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ld=y.forwardRef((function(e,t){var r,n;const o=Xa({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:d,open:u,PaperProps:p={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:m}={},variant:b="selectedMenu",slots:g={},slotProps:v={}}=o,x=z(o.TransitionProps,td),E=z(o,rd),S=ri(),C=$({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:f,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return Go({root:["root"],paper:["paper"],list:["list"]},ed,t)})(C),R=i&&!l&&u,k=y.useRef(null);let A=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===A)&&(A=t))}));const _=null!=(r=g.paper)?r:ad,I=null!=(n=v.paper)?n:p,T=Vo({elementType:g.root,externalSlotProps:v.root,ownerState:C,className:[w.root,s]}),L=Vo({elementType:_,externalSlotProps:I,ownerState:C,className:w.paper});return br.jsx(id,$({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?nd:od,slots:{paper:_,root:g.root},slotProps:{root:T,paper:L},open:u,ref:t,transitionDuration:f,TransitionProps:$({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:C},E,{classes:h,children:br.jsx(sd,$({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===A||l),autoFocusItem:R,variant:b},c,{className:Yn(w.list,c.className),children:a}))}))}));function cd(e){return qn("MuiMenuItem",e)}const dd=Kn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ud=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],pd=ja(Fs,{shouldForwardProp:e=>Ma(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>$({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${dd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${dd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${dd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${dd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${dd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ql.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ql.inset}`]:{marginLeft:52},[`& .${Nc.root}`]:{marginTop:0,marginBottom:0},[`& .${Nc.inset}`]:{paddingLeft:36},[`& .${Oc.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Oc.root} svg`]:{fontSize:"1.25rem"}})))),hd=y.forwardRef((function(e,t){const r=Xa({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:u}=r,p=z(r,ud),h=y.useContext(dc),f=y.useMemo((()=>({dense:i||h.dense||!1,disableGutters:s})),[h.dense,i,s]),m=y.useRef(null);co((()=>{n&&m.current&&m.current.focus()}),[n]);const b=$({},r,{dense:f.dense,divider:a,disableGutters:s}),g=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return $({},a,Go({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},cd,a))})(r),v=wo(m,t);let x;return r.disabled||(x=void 0!==d?d:-1),br.jsx(dc.Provider,{value:f,children:br.jsx(pd,$({ref:v,role:c,tabIndex:x,component:o,focusVisibleClassName:Yn(g.focusVisible,l),className:Yn(g.root,u)},p,{ownerState:b,classes:g}))})}));function fd(e){return qn("MuiTab",e)}const md=Kn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),bd=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],gd=ja(Fs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${jr(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${md.iconWrapper}`]:t.iconWrapper}]}})((({theme:e,ownerState:t})=>$({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${md.iconWrapper}`]:$({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${md.selected}`]:{opacity:1},[`&.${md.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${md.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${md.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${md.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${md.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)}))),vd=y.forwardRef((function(e,t){const r=Xa({props:e,name:"MuiTab"}),{className:n,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:a,icon:s,iconPosition:l="top",indicator:c,label:d,onChange:u,onClick:p,onFocus:h,selected:f,selectionFollowsFocus:m,textColor:b="inherit",value:g,wrapped:v=!1}=r,x=z(r,bd),E=$({},r,{disabled:o,disableFocusRipple:i,selected:f,icon:!!s,iconPosition:l,label:!!d,fullWidth:a,textColor:b,wrapped:v}),S=(e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e;return Go({root:["root",i&&a&&"labelIcon",`textColor${jr(r)}`,n&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]},fd,t)})(E),C=s&&d&&y.isValidElement(s)?y.cloneElement(s,{className:Yn(S.iconWrapper,s.props.className)}):s;return br.jsxs(gd,$({focusRipple:!i,className:Yn(S.root,n),ref:t,role:"tab","aria-selected":f,disabled:o,onClick:e=>{!f&&u&&u(e,g),p&&p(e)},onFocus:e=>{m&&!f&&u&&u(e,g),h&&h(e)},ownerState:E,tabIndex:f?0:-1},x,{children:["top"===l||"start"===l?br.jsxs(y.Fragment,{children:[C,d]}):br.jsxs(y.Fragment,{children:[d,C]}),c]}))}));var yd=ts(br.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),xd=ts(br.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Ed(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Sd=["onChange"],Cd={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function wd(e){return qn("MuiTabScrollButton",e)}const Rd=Kn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),kd=["className","slots","slotProps","direction","orientation","disabled"],Ad=ja(Fs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})((({ownerState:e})=>$({width:40,flexShrink:0,opacity:.8,[`&.${Rd.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}))),_d=y.forwardRef((function(e,t){var r,n;const o=Xa({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:s={},direction:l}=o,c=z(o,kd),d=$({isRtl:ri()},o),u=(e=>{const{classes:t,orientation:r,disabled:n}=e;return Go({root:["root",r,n&&"disabled"]},wd,t)})(d),p=null!=(r=a.StartScrollButtonIcon)?r:yd,h=null!=(n=a.EndScrollButtonIcon)?n:xd,f=Vo({elementType:p,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),m=Vo({elementType:h,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return br.jsx(Ad,$({component:"div",className:Yn(u.root,i),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===l?br.jsx(p,$({},f)):br.jsx(h,$({},m))}))}));function Id(e){return qn("MuiTabs",e)}const Td=Kn("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ld=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Od=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Pd=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Md=(e,t,r)=>{let n=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(n)return;n=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=r(e,o)}},jd=ja("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Td.scrollButtons}`]:t.scrollButtons},{[`& .${Td.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>$({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Td.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),Nd=ja("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})((({ownerState:e})=>$({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),$d=ja("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})((({ownerState:e})=>$({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),zd=ja("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>$({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),Bd=ja((function(e){const{onChange:t}=e,r=z(e,Sd),n=y.useRef(),o=y.useRef(null),i=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return co((()=>{const e=bo((()=>{const e=n.current;i(),e!==n.current&&t(n.current)})),r=vo(o.current);return r.addEventListener("resize",e),()=>{e.clear(),r.removeEventListener("resize",e)}}),[t]),y.useEffect((()=>{i(),t(n.current)}),[t]),br.jsx("div",$({style:Cd},r,{ref:o}))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Dd={},Fd=y.forwardRef((function(e,t){const r=Xa({props:e,name:"MuiTabs"}),n=xa(),o=ri(),{"aria-label":i,"aria-labelledby":a,action:s,centered:l=!1,children:c,className:d,component:u="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:f,orientation:m="horizontal",ScrollButtonComponent:b=_d,scrollButtons:g="auto",selectionFollowsFocus:v,slots:x={},slotProps:E={},TabIndicatorProps:S={},TabScrollButtonProps:C={},textColor:w="primary",value:R,variant:k="standard",visibleScrollbar:A=!1}=r,_=z(r,Ld),I="scrollable"===k,T="vertical"===m,L=T?"scrollTop":"scrollLeft",O=T?"top":"left",P=T?"bottom":"right",M=T?"clientHeight":"clientWidth",j=T?"height":"width",N=$({},r,{component:u,allowScrollButtonsMobile:p,indicatorColor:h,orientation:m,vertical:T,scrollButtons:g,textColor:w,variant:k,visibleScrollbar:A,fixed:!I,hideScrollbar:I&&!A,scrollableX:I&&!T,scrollableY:I&&T,centered:l&&!I,scrollButtonsHideMobile:!p}),B=(e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Go({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Id,l)})(N),D=Vo({elementType:x.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:N}),F=Vo({elementType:x.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:N}),[G,H]=y.useState(!1),[W,Y]=y.useState(Dd),[U,V]=y.useState(!1),[q,K]=y.useState(!1),[X,Z]=y.useState(!1),[J,Q]=y.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,te=y.useRef(null),re=y.useRef(null),ne=()=>{const e=te.current;let t,r;if(e){const r=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:Fo(e,o?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(e&&!1!==R){const e=re.current.children;if(e.length>0){const t=e[ee.get(R)];r=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:r}},oe=Co((()=>{const{tabsMeta:e,tabMeta:t}=ne();let r,n=0;if(T)r="top",t&&e&&(n=t.top-e.top+e.scrollTop);else if(r=o?"right":"left",t&&e){const i=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;n=(o?-1:1)*(t[r]-e[r]+i)}const i={[r]:n,[j]:t?t[j]:0};if(isNaN(W[r])||isNaN(W[j]))Y(i);else{const e=Math.abs(W[r]-i[r]),t=Math.abs(W[j]-i[j]);(e>=1||t>=1)&&Y(i)}})),ie=(e,{animation:t=!0}={})=>{t?function(e,t,r,n={},o=()=>{}){const{ease:i=Ed,duration:a=300}=n;let s=null;const l=t[e];let c=!1;const d=()=>{c=!0},u=n=>{if(c)return void o(new Error("Animation cancelled"));null===s&&(s=n);const d=Math.min(1,(n-s)/a);t[e]=i(d)*(r-l)+l,d>=1?requestAnimationFrame((()=>{o(null)})):requestAnimationFrame(u)};l===r?o(new Error("Element already at target position")):requestAnimationFrame(u)}(L,te.current,e,{duration:n.transitions.duration.standard}):te.current[L]=e},ae=e=>{let t=te.current[L];T?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===Do()?-1:1),ie(t)},se=()=>{const e=te.current[M];let t=0;const r=Array.from(re.current.children);for(let n=0;n<r.length;n+=1){const o=r[n];if(t+o[M]>e){0===n&&(t=e);break}t+=o[M]}return t},le=()=>{ae(-1*se())},ce=()=>{ae(se())},de=y.useCallback((e=>{Q({overflow:null,scrollbarWidth:e})}),[]),ue=Co((e=>{const{tabsMeta:t,tabMeta:r}=ne();if(r&&t)if(r[O]<t[O]){const n=t[L]+(r[O]-t[O]);ie(n,{animation:e})}else if(r[P]>t[P]){const n=t[L]+(r[P]-t[P]);ie(n,{animation:e})}})),pe=Co((()=>{I&&!1!==g&&Z(!X)}));y.useEffect((()=>{const e=bo((()=>{te.current&&oe()}));let t;const r=r=>{r.forEach((e=>{e.removedNodes.forEach((e=>{var r;null==(r=t)||r.unobserve(e)})),e.addedNodes.forEach((e=>{var r;null==(r=t)||r.observe(e)}))})),e(),pe()},n=vo(te.current);let o;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(re.current.children).forEach((e=>{t.observe(e)}))),"undefined"!=typeof MutationObserver&&(o=new MutationObserver(r),o.observe(re.current,{childList:!0})),()=>{var r,i;e.clear(),n.removeEventListener("resize",e),null==(r=o)||r.disconnect(),null==(i=t)||i.disconnect()}}),[oe,pe]),y.useEffect((()=>{const e=Array.from(re.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&I&&!1!==g){const r=e[0],n=e[t-1],o={root:te.current,threshold:.99},i=new IntersectionObserver((e=>{V(!e[0].isIntersecting)}),o);i.observe(r);const a=new IntersectionObserver((e=>{K(!e[0].isIntersecting)}),o);return a.observe(n),()=>{i.disconnect(),a.disconnect()}}}),[I,g,X,null==c?void 0:c.length]),y.useEffect((()=>{H(!0)}),[]),y.useEffect((()=>{oe()})),y.useEffect((()=>{ue(Dd!==W)}),[ue,W]),y.useImperativeHandle(s,(()=>({updateIndicator:oe,updateScrollButtons:pe})),[oe,pe]);const he=br.jsx(zd,$({},S,{className:Yn(B.indicator,S.className),ownerState:N,style:$({},W,S.style)}));let fe=0;const me=y.Children.map(c,(e=>{if(!y.isValidElement(e))return null;const t=void 0===e.props.value?fe:e.props.value;ee.set(t,fe);const r=t===R;return fe+=1,y.cloneElement(e,$({fullWidth:"fullWidth"===k,indicator:r&&!G&&he,selected:r,selectionFollowsFocus:v,onChange:f,textColor:w,value:t},1!==fe||!1!==R||e.props.tabIndex?{}:{tabIndex:0}))})),be=(()=>{const e={};e.scrollbarSizeListener=I?br.jsx(Bd,{onChange:de,className:Yn(B.scrollableX,B.hideScrollbar)}):null;const t=I&&("auto"===g&&(U||q)||!0===g);return e.scrollButtonStart=t?br.jsx(b,$({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:D},orientation:m,direction:o?"right":"left",onClick:le,disabled:!U},C,{className:Yn(B.scrollButtons,C.className)})):null,e.scrollButtonEnd=t?br.jsx(b,$({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:F},orientation:m,direction:o?"left":"right",onClick:ce,disabled:!q},C,{className:Yn(B.scrollButtons,C.className)})):null,e})();return br.jsxs(jd,$({className:Yn(B.root,d),ownerState:N,ref:t,as:u},_,{children:[be.scrollButtonStart,be.scrollbarSizeListener,br.jsxs(Nd,{className:B.scroller,ownerState:N,style:{overflow:J.overflow,[T?"margin"+(o?"Left":"Right"):"marginBottom"]:A?void 0:-J.scrollbarWidth},ref:te,children:[br.jsx($d,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===m?"vertical":null,className:B.flexContainer,ownerState:N,onKeyDown:e=>{const t=re.current,r=go(t).activeElement;if("tab"!==r.getAttribute("role"))return;let n="horizontal"===m?"ArrowLeft":"ArrowUp",i="horizontal"===m?"ArrowRight":"ArrowDown";switch("horizontal"===m&&o&&(n="ArrowRight",i="ArrowLeft"),e.key){case n:e.preventDefault(),Md(t,r,Pd);break;case i:e.preventDefault(),Md(t,r,Od);break;case"Home":e.preventDefault(),Md(t,null,Od);break;case"End":e.preventDefault(),Md(t,null,Pd)}},ref:re,role:"tablist",children:me}),G&&he]}),be.scrollButtonEnd]}))}));function Gd(e){return br.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:br.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var Hd=function({fontSize:e="medium",children:t=null,className:r=""}={}){return br.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})};function Wd(e={}){return br.jsx(Hd,{...e,children:br.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[br.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),br.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function Yd(e={}){return br.jsx(Hd,{fontSize:"medium",...e,children:br.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[br.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),br.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function Ud(e){return br.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:br.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function Vd(e={}){return br.jsx(Hd,{...e,children:br.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:br.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[br.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),br.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function qd(e={}){return br.jsx(Hd,{fontSize:"medium",...e,children:br.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:br.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:br.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Kd({className:e}){return br.jsx(Hd,{fontSize:"small",className:e,children:br.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:br.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:br.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:br.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[br.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),br.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function Xd(e={}){return br.jsx(Hd,{...e,children:br.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:br.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:br.jsx("rect",{stroke:Ba.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const Zd={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Wa,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var Jd=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Ba.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Ba.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:br.jsx(Gd,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${Ba.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Ba.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Ba.MISC_FOCUS_BORDER}`,borderRadius:Wa,backgroundColor:Ba.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${Ba.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Ba.WHITE,color:Ba.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Wa},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ba.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Ba.GREYSCALE_0_15,backgroundColor:Ba.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Ba.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ba.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Ba.GREEN_PALE},"&:active":{backgroundColor:Ba.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ba.GREEN_PALE,boxShadow:`0 0 0 3px ${fo(Ba.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Ba.BLUE_PALE},"&:active":{backgroundColor:Ba.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ba.BLUE_PALE,boxShadow:`0 0 0 3px ${fo(Ba.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Wa,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Ba.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ba.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Ba.GREYSCALE_0_15,backgroundColor:Ba.GREYSCALE_100_60,"&:active":{backgroundColor:Ba.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Ba.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ba.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Ba.PURPLE,"&.Mui-focusVisible":{borderColor:Ba.PURPLE,boxShadow:`0 0 0 3px ${fo(Ba.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Ba.GREEN,"&.Mui-focusVisible":{borderColor:Ba.GREEN,boxShadow:`0 0 0 3px ${fo(Ba.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Ba.BLUE,"&.Mui-focusVisible":{borderColor:Ba.BLUE,boxShadow:`0 0 0 3px ${fo(Ba.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Ba.ORANGE,"&.Mui-focusVisible":{borderColor:Ba.ORANGE,boxShadow:`0 0 0 3px ${fo(Ba.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Ba.RED,"&.Mui-focusVisible":{borderColor:Ba.RED,boxShadow:`0 0 0 3px ${fo(Ba.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Ba.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Ba.PURPLE_PALE},"&:active":{backgroundColor:Ba.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Ba.PURPLE_PALE,boxShadow:`0 0 0 3px ${fo(Ba.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Ba.GREEN_PALE},"&:active":{backgroundColor:Ba.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ba.GREEN_PALE,boxShadow:`0 0 0 3px ${fo(Ba.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Ba.BLUE_PALE},"&:active":{backgroundColor:Ba.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ba.BLUE_PALE,boxShadow:`0 0 0 3px ${fo(Ba.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Ba.ORANGE_PALE},"&:active":{backgroundColor:Ba.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Ba.ORANGE_PALE,boxShadow:`0 0 0 3px ${fo(Ba.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Ba.RED_PALE},"&:active":{backgroundColor:Ba.RED_DARK},"&.Mui-focusVisible":{borderColor:Ba.RED_PALE,boxShadow:`0 0 0 3px ${fo(Ba.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:Ba.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Ba.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Wa,boxShadow:`inset 0 0 0 2px ${Ba.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:br.jsx(Ud,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Da,borderRadius:Wa,color:Ba.TEXT_PRIMARY,backgroundColor:Ba.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Ba.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Ba.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Ba.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Ba.GREYSCALE_0_05,color:Ba.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Ba.GREEN,borderColor:Ba.GREEN},"&.MuiChip-outlinedInfo":{color:Ba.BLUE,borderColor:Ba.BLUE},"&.MuiChip-outlinedWarning":{color:Ba.ORANGE,borderColor:Ba.ORANGE},"&.MuiChip-outlinedError":{color:Ba.RED,borderColor:Ba.RED}},outlined:{border:`solid 1px ${Ba.GREYSCALE_0_15}`,backgroundColor:Ba.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Wa,boxShadow:"none",backgroundColor:Ba.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Ba.GREEN,borderColor:Ba.GREEN},outlinedSecondary:{color:Ba.BLUE,borderColor:Ba.BLUE},label:{fontFamily:Ka.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:br.jsx(Ud,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:br.jsx(Gd,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:Wa},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Wa,fontSize:Fa,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Ba.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Ba.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Ba.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Ba.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Ba.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Wa,border:`solid 1px ${Ba.GREYSCALE_0_15}`,color:Ba.GREYSCALE_0_60,marginRight:0,width:Ha,height:Ha},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Ba.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Wa,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Ba.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Fa}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Da,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Ba.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Ba.GREYSCALE_25,fontSize:Da,fontFamily:Ka.FONT_FAMILY,fontWeight:Va,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Ba.TEXT_PRIMARY},"&.Mui-error":{color:Ba.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Ba.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Ua,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Ba.TEXT_SECONDARY,content:"'(required)'",fontWeight:Ua,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Fa,lineHeight:"16px",backgroundColor:Ba.WHITE,borderRadius:Wa,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ba.GREYSCALE_0_05}`,borderColor:Ba.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ba.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Ba.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Ba.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ba.RED}`,boxShadow:`0px 0px 0px 1px ${Ba.RED}, inset 0 2px 0 0 ${Ba.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ba.GREYSCALE_0_10}`,borderColor:Ba.GREYSCALE_0_10,backgroundColor:Ba.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Ba.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Ba.GREYSCALE_0_15,borderRadius:Wa,boxShadow:`inset 0 2px 0 0 ${Ba.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>br.jsx(Gd,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:Ba.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Ba.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Ba.GREYSCALE_0_03},"&:active":{backgroundColor:Ba.GREYSCALE_0_10},"&:focus":{backgroundColor:Ba.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Ba.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Ba.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Ba.GREYSCALE_0_30,"&:hover":{backgroundColor:Ba.GREYSCALE_0_0,borderColor:Ba.GREYSCALE_0_15},"& ~svg":{color:Ba.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Ba.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Wa}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Ba.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Ba.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Ba.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Fa,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Da,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Da,fontWeight:Va,color:Ba.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Va}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Ba.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ba.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:br.jsx(qd,{}),checkedIcon:br.jsx(Yd,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Ba.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Ba.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Ba.GREEN_PALE,boxShadow:`0 0 0 3px ${fo(Ba.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Ba.BLUE_PALE,boxShadow:`0 0 0 3px ${fo(Ba.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Ba.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Ba.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:br.jsx(Xd,{}),checkedIcon:br.jsx(Wd,{}),indeterminateIcon:br.jsx(Vd,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Wa,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Ba.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Ba.GREYSCALE_0_55,color:Ba.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:Ba.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Ba.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Ba.GREYSCALE_0_55,"&:hover":{color:Ba.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:Ba.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Ba.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Fa,color:Ba.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Va},secondary:{fontSize:Da,color:Ba.GREYSCALE_45,fontWeight:Ua,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Fa,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Fa,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Ba.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Da,borderBottom:`solid 1px ${Ba.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Fa,color:Ba.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Ba.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Ba.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Ba.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Ba.RED}}},"&.Mui-focusVisible":{backgroundColor:Ba.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:Ba.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:Ba.GREEN,height:"24px","&.Mui-disabled":{color:Ba.GREYSCALE_0_15}},rail:{backgroundColor:Ba.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Ba.GREYSCALE_0_05}`,borderRadius:Wa,boxShadow:`inset 0px 0px 0px 1px ${Ba.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Ba.GREYSCALE_0_05}`,borderRadius:Wa},thumb:{height:"16px",width:"16px",borderRadius:Wa,backgroundColor:Ba.WHITE,boxShadow:`0px 1px 2px 0px ${Ba.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ba.GREYSCALE_0_05}`,"&:hover":{borderRadius:Wa,boxShadow:`0 2px 4px 0 ${Ba.GREYSCALE_0_30}, 0 0 0 1px ${Ba.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Ba.GREYSCALE_0_15}, 0 0 0 1px ${Ba.GREYSCALE_0_06}, 0 0 0 2px ${Ba.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Ba.GREYSCALE_0_15}, 0 0 0 1px ${Ba.GREYSCALE_0_06}, 0 0 0 2px ${Ba.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Ba.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Ba.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Ba.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Ba.GREYSCALE_0_15},markLabel:{color:Ba.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Ba.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Ba.WHITE,color:Ba.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:Ba.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Ba.GREEN_PALE,boxShadow:`0 0 0 3px ${fo(Ba.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Ba.BLUE_PALE,boxShadow:`0 0 0 3px ${fo(Ba.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Ba.GREYSCALE_0_15,borderRadius:Wa},thumb:{height:"16px",width:"16px",borderRadius:Wa,backgroundColor:Ba.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Fa,fontWeight:Va,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Ba.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Ba.MISC_FOCUS_BORDER}`,backgroundColor:Ba.GREYSCALE_0_03,borderRadius:Wa},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Ba.GREYSCALE_25,"&.Mui-selected":{color:Ba.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Fa,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Wa,"&:hover":{backgroundColor:Ba.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Ba.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Ba.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Wa,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Ba.GREYSCALE_0_05},"&:hover":{backgroundColor:Ba.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Ba.GREYSCALE_85}`,borderRight:`1px solid ${Ba.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Va,backgroundColor:Ba.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:Ba.GREYSCALE_98,borderBottom:`1px solid ${Ba.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Ba.GREYSCALE_85}`,borderTop:`1px solid ${Ba.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Ba.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Ba.GREYSCALE_0_05,"&:hover":{backgroundColor:Ba.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Ba.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>br.jsx(Kd,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${Ba.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Fa,borderRadius:Wa,padding:"7px 16px",border:`1px solid ${Ba.GREYSCALE_0_15}`,backgroundColor:Ba.GREYSCALE_100_60,color:Ba.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Ba.GREYSCALE_0_10,border:`1px solid ${Ba.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Ba.GREYSCALE_0_03,border:`1px solid ${Ba.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Ba.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Ba.MISC_FOCUS_BORDER}`,border:`1px solid ${Ba.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Ba.GREYSCALE_25,backgroundColor:Ba.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Ba.GREYSCALE_0_10,border:`1px solid ${Ba.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Da,height:24,width:24,padding:7},sizeLarge:{fontSize:Ga,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Fa,borderRadius:Wa}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:Ba.GREYSCALE_20},tooltip:{backgroundColor:Ba.GREYSCALE_20,fontSize:Da,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...Zd}:{}}),Qd=(e,t)=>Jd(t);var eu=()=>({mode:"light",primary:{ultraLight:Ba.GREEN_ULTRA_LIGHT,light:Ba.GREEN_PALE,main:Ba.GREEN,dark:Ba.GREEN_DARK,extraDark:Ba.GREEN_EXTRA_DARK,contrastText:Ba.WHITE},secondary:{ultraLight:Ba.BLUE_ULTRA_LIGHT,light:Ba.BLUE_PALE,main:Ba.BLUE,dark:Ba.BLUE_DARK,extraDark:Ba.BLUE_EXTRA_DARK,contrastText:Ba.WHITE},error:{ultraLight:Ba.RED_ULTRA_LIGHT,light:Ba.RED_PALE,main:Ba.RED,dark:Ba.RED_DARK,extraDark:Ba.RED_EXTRA_DARK,contrastText:Ba.WHITE},warning:{ultraLight:Ba.ORANGE_ULTRA_LIGHT,light:Ba.ORANGE_PALE,main:Ba.ORANGE,dark:Ba.ORANGE_DARK,extraDark:Ba.ORANGE_EXTRA_DARK,contrastText:Ba.WHITE},success:{ultraLight:Ba.GREEN_ULTRA_LIGHT,light:Ba.GREEN_PALE,main:Ba.GREEN,dark:Ba.GREEN_DARK,extraDark:Ba.GREEN_EXTRA_DARK,contrastText:Ba.WHITE},info:{ultraLight:Ba.BLUE_ULTRA_LIGHT,light:Ba.BLUE_PALE,main:Ba.BLUE,dark:Ba.BLUE_DARK,extraDark:Ba.BLUE_EXTRA_DARK,contrastText:Ba.WHITE},text:{primary:Ba.TEXT_PRIMARY,secondary:Ba.TEXT_SECONDARY,disabled:Ba.GREYSCALE_0_30},action:{hover:Ba.GREYSCALE_0_03,hoverOpacity:.03,selected:Ba.GREYSCALE_0_05,selectedOpacity:.05,focus:Ba.MISC_FOCUS_BORDER},amethyst:{ultraLight:Ba.WHITE,main:Ba.PURPLE,light:Ba.PURPLE_PALE,dark:Ba.PURPLE_DARK,extraDark:Ba.GREYSCALE_0_0,contrastText:Ba.WHITE},background:{paper:Ba.WHITE,default:Ba.GREYSCALE_95},divider:Ba.GREYSCALE_0_15});var tu=e=>eu();var ru=(e,t=!1)=>({components:Qd(0,t),palette:tu(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Fa,fontWeightLight:Ya,fontWeightRegular:Ua,fontWeightMedium:Va,fontWeightBold:qa,htmlFontSize:Fa,fontFamily:Ka.FONT_FAMILY,button:{fontWeight:Va,fontSize:Fa,textTransform:"none"},body1:{fontSize:Ga,lineHeight:"24px"},body2:{fontSize:Fa,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Ha,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ga,fontWeight:Va,lineHeight:"16px"},h6:{fontSize:Fa,fontWeight:Va,lineHeight:"16px"},caption:{color:Ba.TEXT_SECONDARY},subtitle1:{fontSize:Fa,color:Ba.TEXT_SECONDARY},subtitle2:{fontSize:Da,color:Ba.TEXT_SECONDARY}},shape:{borderRadius:Wa}});function nu(e){return va({...ru("light"),direction:e})}class ou{translator;muiTheme;containers={};constructor({translator:e}){this.translator=e}sync=({element:e,sharedContainerUtilities:t,translator:r,containerId:n,dataHandler:o,renderHelper:i})=>{this.translator=r,this.containers[n]={element:e,sharedContainerUtilities:t,dataHandler:o,renderHelper:i}};setMuiTheme=e=>{this.muiTheme=nu(e)};destroy=e=>{delete this.containers[e]}}const iu=["container","sn-layout-container","sn-tabbed-container","listbox","qlik-tabbed-container","qlik-show-hide-container","qlik-trellis-container","qlik-on-demand-reporting","sn-analysis-autochart"];class au{embed;translator;charts={};constructor(e,t){this.embed=e,this.translator=t}getCharts=()=>(this.charts=(this.embed?.getRegisteredTypes()).reduce(((e,t)=>{if(!iu.includes(t.id)&&!1!==t.libraryInfo?.isLibraryItem&&!t.libraryInfo?.deprecated){const r=t;r.libraryInfo?.translationKey&&(r.libraryInfo.translation=this.translator.get(r.libraryInfo.translationKey)),e[t.id||t.type]=r}return e}),{}),this.charts);getChart=e=>(this.charts[e]||this.getCharts(),this.charts[e])}var su,lu={};var cu=function(){if(su)return lu;su=1;var e=L;return lu.createRoot=e.createRoot,lu.hydrateRoot=e.hydrateRoot,lu}();const du=x(((e,t)=>br.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:br.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})}))),uu="rgb(89, 89, 89)",pu=ur(xl)({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),hu=ur(xl)({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),fu=ur(fc,{shouldForwardProp:e=>"width"!==e})((({width:e})=>({"&.MuiList-root":{paddingTop:0,paddingBottom:0,width:e||250,maxHeight:250,overflow:"auto"}}))),mu=ur(Vs)({color:uu,fontSize:"12px",fontFamily:"inherit",lineHeight:"24px",margin:"0px"}),bu=ur(jc)({"&.MuiListItemIcon-root":{minWidth:32,color:uu,marginRight:"0px"}}),gu=ur(Jl)({"&.MuiDivider-root":{borderBottom:"3px solid #595959"}}),vu=ur(Tl)({"&.MuiButton-contained":{backgroundColor:uu,color:"rgb(255, 255, 255)"},"&.MuiButton-outlined":{backgroundColor:"rgb(255, 255, 255)",borderColor:uu,color:uu,border:"1px solid rgb(179, 179, 179)","&:hover":{backgroundColor:"rgb(255, 255, 255)",border:`1px solid ${uu}`}}}),yu=ur(es)({width:"1em",height:"1em",paddingBottom:"8px"}),xu=ur(es)({width:"16px",height:"16px"}),Eu=({name:e,items:t,onSelect:r})=>br.jsxs(br.Fragment,{children:[br.jsx(Tc,{dense:!0,children:br.jsx(mu,{noWrap:!0,fontWeight:"bold",children:e})},e),br.jsx(gu,{}),t.map((e=>br.jsx(Tc,{divider:!0,disablePadding:!0,disableGutters:!0,children:br.jsxs(Ec,{sx:{minHeight:"32px",height:"auto"},onClick:()=>{r(e)},disableRipple:!0,dense:!0,children:[e.iconPath&&br.jsx(bu,{children:e.IconDefinition?br.jsx(e.IconDefinition,{}):br.jsx(xu,{viewBox:"0 0 16 16",children:br.jsx("path",{d:e.iconPath})})}),br.jsx(mu,{noWrap:!0,title:e.translation||e.name,children:e.translation||e.name})]})},e.qExtendsId??e.name)))]}),Su=({categories:e,anchorEl:t,onClose:r,onSelect:n,width:o})=>{const[i,a]=k(""),s=!!t;return br.jsxs(Qc,{open:s,anchorEl:t,onClose:()=>{a(""),r()},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{marginTop:"5px"},children:[br.jsx(dl,{fullWidth:!0,onChange:e=>{a(e.target.value)},startAdornment:br.jsx(cc,{position:"start",children:br.jsx(du,{})})}),br.jsx(gu,{}),br.jsx(fu,{width:o,children:e.map((e=>{const t=e.items.filter((e=>{const t=e.translation||e.name;return t?.toLocaleLowerCase().indexOf(i.toLocaleLowerCase())>-1}));return t.length>0&&br.jsx(Eu,{name:e.name,items:t,onSelect:n},e.name)}))})]})},Cu=({anchorEl:e,onClose:t,dataHandler:r,translator:n,sharedContainerUtilities:o,width:i})=>{const[a,s]=k([]),[l,c]=k({});A((()=>{if(e&&r){(async()=>{const e=await r.getMasterVizList();s(e),c(r.getCharts())})().catch((()=>{}))}}),[e,r]);const d=[],u=[],p=new Map,h=Object.values(l);if(0===h.length&&0===a.length)return null;h.forEach((e=>{if(!e.libraryInfo||!e.libraryInfo.isThirdParty&&e.libraryInfo.visible)d.push(e);else if(e.libraryInfo.visible)if(e.libraryInfo.bundle?.name){const t=e.libraryInfo.bundle.name,r=p.get(t);r?r.push(e):p.set(t,[e])}else u.push(e)}));const f=e=>e.map((e=>({iconPath:e.libraryInfo?.iconPath,IconDefinition:e.libraryInfo?.IconDefinition,name:e.id,translation:e.libraryInfo?.translation||e.libraryInfo?.name||e.id||"",type:e.id}))).sort(((e,t)=>(e.translation||e.name).localeCompare(t.translation||t.name))),m=[{name:n.get("LayoutContainer.Object.MasterItems"),items:a.map((e=>({qExtendsId:e.qExtendsId,iconPath:l[e.visualization]?.libraryInfo?.iconPath,IconDefinition:l[e.visualization]?.libraryInfo?.IconDefinition,name:e.name,type:e.visualization}))).sort(((e,t)=>e.name.localeCompare(t.name)))},{name:n.get("LayoutContainer.Object.Charts"),items:d.map((e=>({iconPath:e.libraryInfo?.iconPath||"",IconDefinition:e.libraryInfo?.IconDefinition,name:e.libraryInfo?.name||e.id,type:e.libraryInfo?.template||e.id,translation:e.libraryInfo?.translation||e.id||""}))).sort(((e,t)=>e.translation.localeCompare(t.translation)))},{name:n.get("LayoutContainer.Object.CustomObjects"),items:f(u)}];for(const[e,t]of p)m.push({name:e,items:f(t)});return br.jsx(Su,{categories:m,anchorEl:e,onSelect:e=>{if(!r)return;const{qExtendsId:n}=e;(n?r.addMasterObjectAsChild({initProps:{qExtendsId:n,qInfo:{qType:"undefined"}}}):r.addVizAsChild({type:e.type,objectInitProps:{label:e.translation}})).then((e=>{e?.id&&o?.setSelected([e.id])})).catch((e=>{console.warn(e)})).finally((()=>{t()}))},onClose:t,width:i})},wu=e=>{const t=ku(e);return e.objects?.map((e=>{const{childRefId:r}=e;if(!r)return e;const n=t[r];return n?{...e,id:n}:e}))??[]},Ru=(e,t)=>e?.qChildList?.qItems?.find((e=>e?.qData?.childRefId===t)),ku=e=>e?.qChildList?.qItems?.reduce(((e,t)=>{const r=t?.qData?.childRefId;return e[r]=t?.qInfo?.qId,e}),{});var Au=Ru,_u=e=>{const t={...e};return t.objects=wu(t),t},Iu=e=>e?.qChildList?.qItems?.reduce(((e,t)=>{const r=t?.qInfo?.qId;return e[r]=t.qData?.childRefId,e}),{}),Tu=e=>e.objects.reduce(((e,t)=>(e[t.childRefId]=t,e)),{}),Lu=(e,t)=>{if(!e)return t;const r=Ru(e,t);return r?.qInfo?.qId};class Ou{layout;app;activeId="";data;properties=void 0;constructor({app:e,data:t}){this.app=e,this.data=t}get activeContainer(){return this.data.containers[this.activeId]}setSelectedChild=e=>{this.activeContainer?.sharedContainerUtilities?.setSelected(e)};addChild=({initProps:e,objectInitProps:t,children:r})=>{if(!this.activeContainer)return;const{dataHandler:n}=this.activeContainer;if(e?.qExtendsId){const{qExtendsId:o,qInfo:i}=e;return n?.addMasterObjectAsChild({initProps:{qExtendsId:o,qInfo:i},objectInitProps:t,children:r})}return n?.addVizAsChild({type:e?.visualization,initProps:e,objectInitProps:t,children:r})};deleteChild=async e=>{if(!this.activeContainer)return;const{dataHandler:t}=this.activeContainer;await(t?.deleteChildren([e]))};duplicateChild=async e=>{const{childRefId:t,...r}=e,n=this.getEngineId(t);if(!n)return;const o=await(this.app?.getObject(n));if(o&&this.activeContainer){const{sharedContainerUtilities:e}=this.activeContainer,t=await o.getFullPropertyTree(),n=t.qProperty,i=t.qChildren,a=await this.addChild({initProps:n,children:i,objectInitProps:r});a&&e?.setSelected([a.id])}};openAddChildPopover=e=>{if(this.activeContainer&&this.activeContainer.dataHandler&&this.data.muiTheme){const t=((e,t)=>{const r=e.getElementsByClassName(t);let n;return 0===r.length?(n=document.createElement("div"),n.className=t,e.appendChild(n)):n=r[0],cu.createRoot(n)})(this.activeContainer.element,"add-child-popover"),r=()=>{t.unmount()};t?.render(br.jsx($a,{theme:this.data.muiTheme,children:br.jsx(Cu,{translator:this.data.translator,anchorEl:e,dataHandler:this.activeContainer.dataHandler,onClose:r,width:220,sharedContainerUtilities:this.activeContainer.sharedContainerUtilities})}))}};getObject(e){const t=this.getEngineId(e);if(t)return this.activeContainer?.renderHelper.objectMap.get(t)}setModel=e=>{this.activeId=e.id};setLayout=e=>{this.layout=e};getLayout=()=>this.layout;getEngineId=e=>Lu(this.layout,e);setProperties=e=>{this.properties=e};canAddDimension=()=>!1;canAddMeasure=()=>!1;canColorBy=()=>!1;getDimensions=()=>[];getMeasures=()=>[];minDimensions=()=>0;minMeasures=()=>0;maxDimensions=()=>0;maxMeasures=()=>0}function Pu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Mu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ju(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||$u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nu(e){return function(e){if(Array.isArray(e))return Pu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $u(e,t){if(e){if("string"==typeof e)return Pu(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pu(e,t):void 0}}var zu,Bu="top",Du="top-right",Fu="right",Gu="bottom-right",Hu="bottom",Wu="bottom-left",Yu="left",Uu="top-left";Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu(zu={},"equal-equal",[Bu,Hu]),"equal-higher",[Hu,Gu]),"equal-lower",[Bu,Du]),"equal-void",[Bu,Hu]),"higher-equal",[Yu,Wu,Bu,Du]),"higher-higher-acute",[Hu,Wu,Yu,Du]),"higher-higher-obtuse",[Hu,Bu]),"higher-lower-negative",[Bu,Du,Fu]),"higher-lower-positive",[Hu,Wu,Yu]),"higher-void",[Bu]),Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu(zu,"lower-equal",[Bu]),"lower-higher-negative",[Bu,Uu]),"lower-higher-positive",[Gu]),"lower-lower-acute",[Bu,Uu,Yu,Du,Fu]),"lower-lower-obtuse",[Bu,Hu]),"lower-void",[Bu]),"void-equal",[Bu]),"void-higher",[Bu,Hu]),"void-lower",[Bu,Hu,Yu]),"void-void",[Bu]),Mu(zu,"unclassified",[Bu,Hu,Fu,Yu,Du,Gu,Wu,Uu]);var Vu=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],qu=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var Ku=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function Xu(e){var t=e.theme,r=e.translator,n=e.defaultValue,o=e.flags,i=[],a=t.getStyle("","","fontFamilies");return Array.isArray(a)&&a.length?i.push.apply(i,Nu(new Set([n].concat(Nu(a.map((function(e){return e.split(",").map((function(e){return e.trim()})).map((function(e){return e.replace(/\s+/g," ").trim()})).filter(Boolean).join(", ")}))))))):i.push(n),[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0}].concat(Nu(i.map((function(e){return Ku(e)}))),[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0}],Nu(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?qu:Vu}(o).map((function(e){return Ku(e)}))))}function Zu(e){var t=e.theme,r=e.translator,n=e.id,o=e.path,i=e.flags,a=function(){return t.getStyle(n,o,"fontFamily")};return{getDefaultValue:function(){return a()},getOptions:function(){return Xu({theme:t,translator:r,defaultValue:a(),flags:i})}}}var Ju=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Qu=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function ep(e){var t=e.theme,r=e.translator,n=e.id,o=e.path,i=function(){return t.getStyle(n,o,"fontSize")};return{getDefaultValue:function(){return i()},getOptions:function(){return function(e){var t=e.translator,r=e.defaultValue,n=[],o=e.theme.getStyle("","","fontSizes");return Array.isArray(o)&&o.length?n.push.apply(n,Nu(new Set([r].concat(Nu(o))))):n.push(r),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(Nu(n.map((function(e){return Qu(e)}))),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],Nu(Ju.map((function(e){return Qu(e)}))))}({theme:t,translator:r,defaultValue:i()})}}}function tp(e){var t=e.theme,r=e.translator,n=e.id,o=e.path;return{fontFamily:Zu({theme:t,translator:r,id:n,path:o,flags:e.flags}),fontSize:ep({theme:t,translator:r,id:n,path:o})}}var rp,np,op=["__proto__","constructor"],ip=function(e){if(op.some((function(t){return e.includes(t)})))throw new Error("font-resolver: Forbidden property.")};var ap,sp=function(){if(np)return rp;np=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return rp=function e(){var t,r,n,l,c,d,u=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},p=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});p<h;++p)if(null!=(t=arguments[p]))for(r in t)n=s(u,r),u!==(l=s(t,r))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,d=n&&o(n)?n:[]):d=n&&i(n)?n:{},a(u,{name:r,newValue:e(f,d,l)})):void 0!==l&&a(u,{name:r,newValue:l}));return u},rp}();function lp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function cp(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function dp(){}(ap=sp)&&ap.__esModule&&Object.prototype.hasOwnProperty.call(ap,"default")&&ap.default;var up=1/.7,pp="\\s*([+-]?\\d+)\\s*",hp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mp=/^#([0-9a-f]{3,8})$/,bp=new RegExp(`^rgb\\(${pp},${pp},${pp}\\)$`),gp=new RegExp(`^rgb\\(${fp},${fp},${fp}\\)$`),vp=new RegExp(`^rgba\\(${pp},${pp},${pp},${hp}\\)$`),yp=new RegExp(`^rgba\\(${fp},${fp},${fp},${hp}\\)$`),xp=new RegExp(`^hsl\\(${hp},${fp},${fp}\\)$`),Ep=new RegExp(`^hsla\\(${hp},${fp},${fp},${hp}\\)$`),Sp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Cp(){return this.rgb().formatHex()}function wp(){return this.rgb().formatRgb()}function Rp(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=mp.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?kp(t):3===r?new Tp(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Ap(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Ap(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=bp.exec(e))?new Tp(t[1],t[2],t[3],1):(t=gp.exec(e))?new Tp(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=vp.exec(e))?Ap(t[1],t[2],t[3],t[4]):(t=yp.exec(e))?Ap(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=xp.exec(e))?Np(t[1],t[2]/100,t[3]/100,1):(t=Ep.exec(e))?Np(t[1],t[2]/100,t[3]/100,t[4]):Sp.hasOwnProperty(e)?kp(Sp[e]):"transparent"===e?new Tp(NaN,NaN,NaN,0):null}function kp(e){return new Tp(e>>16&255,e>>8&255,255&e,1)}function Ap(e,t,r,n){return n<=0&&(e=t=r=NaN),new Tp(e,t,r,n)}function _p(e){return e instanceof dp||(e=Rp(e)),e?new Tp((e=e.rgb()).r,e.g,e.b,e.opacity):new Tp}function Ip(e,t,r,n){return 1===arguments.length?_p(e):new Tp(e,t,r,null==n?1:n)}function Tp(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Lp(){return`#${jp(this.r)}${jp(this.g)}${jp(this.b)}`}function Op(){const e=Pp(this.opacity);return`${1===e?"rgb(":"rgba("}${Mp(this.r)}, ${Mp(this.g)}, ${Mp(this.b)}${1===e?")":`, ${e})`}`}function Pp(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Mp(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function jp(e){return((e=Mp(e))<16?"0":"")+e.toString(16)}function Np(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new zp(e,t,r,n)}function $p(e){if(e instanceof zp)return new zp(e.h,e.s,e.l,e.opacity);if(e instanceof dp||(e=Rp(e)),!e)return new zp;if(e instanceof zp)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new zp(a,s,l,e.opacity)}function zp(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Bp(e){return(e=(e||0)%360)<0?e+360:e}function Dp(e){return Math.max(0,Math.min(1,e||0))}function Fp(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}lp(dp,Rp,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Cp,formatHex:Cp,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return $p(this).formatHsl()},formatRgb:wp,toString:wp}),lp(Tp,Ip,cp(dp,{brighter(e){return e=null==e?up:Math.pow(up,e),new Tp(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Tp(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Tp(Mp(this.r),Mp(this.g),Mp(this.b),Pp(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Lp,formatHex:Lp,formatHex8:function(){return`#${jp(this.r)}${jp(this.g)}${jp(this.b)}${jp(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Op,toString:Op})),lp(zp,(function(e,t,r,n){return 1===arguments.length?$p(e):new zp(e,t,r,null==n?1:n)}),cp(dp,{brighter(e){return e=null==e?up:Math.pow(up,e),new zp(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new zp(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Tp(Fp(e>=240?e-240:e+120,o,n),Fp(e,o,n),Fp(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new zp(Bp(this.h),Dp(this.s),Dp(this.l),Pp(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Pp(this.opacity);return`${1===e?"hsl(":"hsla("}${Bp(this.h)}, ${100*Dp(this.s)}%, ${100*Dp(this.l)}%${1===e?")":`, ${e})`}`}}));const Gp=Math.PI/180,Hp=180/Math.PI,Wp=4/29,Yp=6/29,Up=3*Yp*Yp;function Vp(e){if(e instanceof qp)return new qp(e.l,e.a,e.b,e.opacity);if(e instanceof Qp)return eh(e);e instanceof Tp||(e=_p(e));var t,r,n=Jp(e.r),o=Jp(e.g),i=Jp(e.b),a=Kp((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Kp((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Kp((.0139322*n+.0971045*o+.7141733*i)/.82521)),new qp(116*a-16,500*(t-a),200*(a-r),e.opacity)}function qp(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Kp(e){return e>.008856451679035631?Math.pow(e,1/3):e/Up+Wp}function Xp(e){return e>Yp?e*e*e:Up*(e-Wp)}function Zp(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Jp(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Qp(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function eh(e){if(isNaN(e.h))return new qp(e.l,0,0,e.opacity);var t=e.h*Gp;return new qp(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}lp(qp,(function(e,t,r,n){return 1===arguments.length?Vp(e):new qp(e,t,r,null==n?1:n)}),cp(dp,{brighter(e){return new qp(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new qp(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new Tp(Zp(3.1338561*(t=.96422*Xp(t))-1.6168667*(e=1*Xp(e))-.4906146*(r=.82521*Xp(r))),Zp(-.9787684*t+1.9161415*e+.033454*r),Zp(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),lp(Qp,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Qp)return new Qp(e.h,e.c,e.l,e.opacity);if(e instanceof qp||(e=Vp(e)),0===e.a&&0===e.b)return new Qp(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Hp;return new Qp(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Qp(e,t,r,null==n?1:n)}),cp(dp,{brighter(e){return new Qp(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Qp(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return eh(this).rgb()}}));var th=e=>()=>e;function rh(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):th(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?rh:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):th(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Ip(e)).r,(t=Ip(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=rh(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var nh="center",oh="bottom";function ih(e,t,r){if(void 0===e||void 0===t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(void 0===o[a])return r;o=o[a]}return o}[{key:"NoDataExist",alignment:nh,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:nh,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:nh,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:nh},{key:"DataRangeIncludingZero",alignment:oh},{key:"LimitedData",alignment:oh},{key:"NegativeOrZeroValues",alignment:oh}].reduce((function(e,t){return e[t.key]=t,e}),{});var ah,sh=["__proto__","constructor"];function lh(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!sh.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function ch(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function dh(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ph)):void 0===t&&(t=uh);for(var r,n,o,i,a,s=new mh(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new mh(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(fh)}function uh(e){return e.children}function ph(e){return Array.isArray(e)?e[1]:null}function hh(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function fh(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function mh(e){this.data=e,this.depth=this.height=0,this.parent=null}mh.prototype=dh.prototype={constructor:mh,count:function(){return this.eachAfter(ch)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return dh(this).eachBefore(hh)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},ah=function(e){
88
88
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
89
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,c,d,u,p=e.length,h=e.search(/[0-9\-\+#]/),f=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),b=m.search(/[0-9\-\+#]/),g=p-b,v=e.substring(g,g+1),y=g+("."===v||","===v?1:0),x=b>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(h,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=l)&&(t=(+t).toFixed(l+1)),d=e[0].split(i),e[0]=d.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],s=d[1]&&d[d.length-1].length){for(m="",g=(u=t[0]).length%s,p=u.length,y=0;y<p;y++)m+=u.charAt(y),!((y-g+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),f+(r?"-":"")+n+x}},ff({exports:{}});var wf="'Source Sans Pro', 'Arial', 'sans-serif'",Rf="#333333",kf="#595959",Af="#737373",_f="#cccccc",If="#e6e6e6";function Tf(e){var t={};return[].concat(Up(e),Up([["","","color"],["object","","fontFamily"],["object","axis.label.name","color",kf],["object","axis.label.name","fontFamily",wf],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",_f],["object","axis.line.minor","color",If],["object","axis.title","color"],["object","axis.title","fontFamily",wf],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",If],["object","grid.line.major","color",_f],["object","grid.line.minor","color",If],["object","label.value","color",kf],["object","label.value","fontFamily",wf],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",kf],[!1,"label.value","lightColor",If],["object","outOfRange","color","#999"],["object","legend.title","color",Rf],["object","legend.title","fontFamily",wf],["object","legend.title","fontSize","15px"],["object","legend.label","color",kf],["object","legend.label","fontFamily",wf],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",Rf],["object","referenceLine.label.name","fontFamily",wf],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",If],["object","referenceLine.outOfBounds","fontFamily",wf],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",Af,function(e){return"transparent"===e?Af:e}]])).reduce((function(e,r){var n="".concat(r[0],"-").concat(r[1],"-").concat(r[2],"}");return t[n]||(t[n]=!0,e.push(r)),e}),[]).sort((function(e,t){return(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0)}))}var Lf=function(e){return e};function Of(e){var t=e.theme,r=e.id,n=e.transform,o=e.extend,i=e.matrix,a={},l=n.reduce((function(e,t){var r=Yp(t,2),n=r[0],o=r[1];return e[n]=o,e}),{});return i.forEach((function(e){var n=Yp(e,5),o=n[0],i=n[1],s=n[2],c=n[3],d=n[4],u=void 0===d?function(e){return e}:d,p=function(e){var t=e.theme,r=e.base,n=e.path,o=e.attribute,i=e.defaultValue,a=void 0===i?void 0:i;if(!t||!1===r)return a;var l=t.getStyle(r,n,o);return void 0===l?a:l}({theme:t,base:"object"===o&&r?"".concat("object",".").concat(r):o,path:i,attribute:s,defaultValue:c}),h=(l["".concat(i,".").concat(s)]||Lf)(u(p));bf(a,[i,s].filter(Boolean).join("."),h)})),o.forEach((function(e){var t=Yp(e,2),r=t[0],n=t[1];bf(a,r,n)})),a}const Pf={qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",containerChildId:"/containerChildId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition"}};function Mf(e){if(!e.objects)return{};const t=Dp(e);return{container_id:e.qInfo.qId,objects:e.qChildList.qItems.map((r=>{var n;return{chart_type:r.qData.visualization,chart_id:r.qInfo.qId,chart_isMaster:!!r.qData.qExtendsId,tab_isVisible:0!==(null===(n=t[r.qData.childRefId])||void 0===n?void 0:n.condition),tab_isActive:r.qData.childRefId===e.cachedTabId}}))}}const jf=({ref:e,theme:t,change:r})=>({component:"inline-wrapper",items:{bgColorDropdown:{ref:`${e}.useColorExpression`,width:9,component:"dropdown",change(t){(hf(t,`${e}.color`)||hf(t,`${e}.colorExpression`))&&(bf(t,`${e}.color`,void 0),bf(t,`${e}.colorExpression`,void 0)),null==r||r(t)},options:[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],defaultValue:!1,placeholder:"properties.colorMode.primary"},bgColorPicker:{component:"color-picker",ref:`${e}.color`,width:3,show:t=>!hf(t,`${e}.useColorExpression`),disableNone:!1,defaultValue:()=>{var r;return{color:null!==(r=null==t?void 0:t.getStyle("object.tabbedContainer",e,"color"))&&void 0!==r?r:"none"}},showAlpha:!0,change:e=>{null==r||r(e)}},bgColorExpression:{component:"input-field-expression",ref:`${e}.colorExpression`,show:t=>hf(t,`${e}.useColorExpression`)}}}),Nf=({theme:e})=>({bgColorAllWrapper:jf({ref:"background.unselected"}),selectedTab:{translation:"properties.chartType.selected",component:"text"},bgColorSelectedWrapper:jf({ref:"background.selected"}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:jf({ref:"background.hover",theme:e,change:e=>{bf(e,"indicator.hover.color",hf(e,"background.hover.color")),bf(e,"indicator.hover.useColorExpression",hf(e,"background.hover.useColorExpression"))}})},show:(e,t)=>"left"===t.layout.orientation}}),$f=({paths:e,fontResolver:t,theme:r})=>{const n=`${e.theme}.fontSize`;return{fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.size`,options:()=>t.getOptions(n),defaultValue:()=>t.getDefaultValue(n),show:e=>{var t;return!1!==(null===(t=e.icon)||void 0===t?void 0:t.show)}},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:r.getStyle("object.tabbedContainer",e.theme,"color")}),show:e=>{var t;return!1!==(null===(t=e.icon)||void 0===t?void 0:t.show)}}}},position:{type:"string",ref:"icon.position",component:"dropdown",options:[{value:"start",translation:"properties.dock.start"},{value:"top",translation:"properties.dock.top"},{value:"end",translation:"properties.dock.end"},{value:"bottom",translation:"properties.dock.bottom"}],defaultValue:(e,{layout:t})=>"left"===t.orientation?"top":"start",show:e=>"tabs"===e.key},hide:{type:"boolean",translation:"properties.show",ref:"icon.show",component:"switch",defaultValue:!0,show:e=>"tab"===e.key}}},zf=({theme:e})=>({colorWrapper:jf({ref:"indicator.selected",theme:e}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:jf({ref:"indicator.hover",theme:e,change:e=>{bf(e,"background.hover.color",hf(e,"indicator.hover.color")),bf(e,"background.hover.useColorExpression",hf(e,"indicator.hover.useColorExpression"))}})},show:(e,t)=>"left"!==t.layout.orientation}}),Bf=({paths:e,fontResolver:t,theme:r})=>{const n=`${e.theme}.fontFamily`,o=`${e.theme}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e.ref}.fontFamily`,options:()=>t.getOptions(n),defaultValue:()=>t.getDefaultValue(n),change:(e,t,r)=>{var n;const o=null===(n=e.label)||void 0===n?void 0:n.fontFamily,i=(e=>{const t=[];return e.objects.forEach((e=>{var r,n;const o=null===(r=e.components)||void 0===r?void 0:r.find((e=>"tab"===e.key)),i=null==o||null===(n=o.label)||void 0===n?void 0:n.fontFamily;i&&-1===t.indexOf(i)&&t.push(i)})),t})(r);o&&-1===i.indexOf(o)&&i.push(o),r.fontsUsed=i}},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.fontSize`,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:r.getStyle("object.tabbedContainer",e.theme,"color")})}}},alignment:{component:"text-align-buttons",ref:"label.alignment",show:e=>"tabs"===e.key},hide:{type:"boolean",translation:"properties.show",ref:"label.show",component:"switch",defaultValue:!0}}},Df=({ref:e,key:t,fontResolver:r,theme:n})=>({translation:"Object.Container.Props.Label",component:"panel-section",items:{label:{component:"items",ref:e,key:t,items:Bf({paths:{ref:"label",theme:"label.value"},fontResolver:r,theme:n})}}}),Ff=({ref:e,key:t})=>({translation:"Visualizations.Descriptions.Width",component:"panel-section",items:{width:{component:"items",ref:e,key:t,items:{unit:{type:"string",ref:"width.unit",component:"dropdown",options:[{value:"%",translation:"Object.Table.Column.Percentage"},{value:"px",translation:"Object.Table.Column.Pixels"}],defaultValue:"%",change:e=>{var t,r;if(void 0!==(null===(t=e.width)||void 0===t?void 0:t.value)&&"%"===(null===(r=e.width)||void 0===r?void 0:r.unit))for(let t=0;t<e.width.value.length;t++)e.width.value[t]>100?e.width.value[t]=100:e.width.value[t]<5&&(e.width.value[t]=5)}},valuePixel:{translation:"properties.axis.minMax",component:"slider",ref:"width.value",range:!0,step:1,min:0,max:800,show:e=>{var t;return"px"===(null===(t=e.width)||void 0===t?void 0:t.unit)},defaultValue:[0,360]},valuePercentage:{translation:"properties.axis.minMax",component:"slider",type:"array",ref:"width.value",range:!0,step:1,min:5,max:100,show:e=>{var t,r;return!(null!==(t=e.width)&&void 0!==t&&t.unit)||"px"!==(null===(r=e.width)||void 0===r?void 0:r.unit)},defaultValue:[5,20]}}}}}),Gf=({theme:e,ref:t,key:r})=>({translation:"Object.TabbedContainer.Indicator",component:"panel-section",items:{indicator:{component:"items",ref:t,key:r,items:zf({theme:e})}}}),Hf=({ref:e,key:t,fontResolver:r,theme:n})=>({translation:"properties.icon",component:"panel-section",items:{icon:{component:"items",ref:e,key:t,items:$f({paths:{ref:"icon",theme:"icon.value"},fontResolver:r,theme:n})}},show:(e,{layout:t})=>!0===t.showIcons}),Wf=({theme:e,ref:t,key:r})=>({translation:"Object.OrgChart.BackgroundColor",component:"panel-section",items:{background:{component:"items",ref:t,key:r,items:"tab"===r?{bgColorWrapper:jf({ref:"background"})}:Nf({theme:e})}}}),Yf=({fontResolver:e,theme:t})=>{const r="components",n="tab";return{component:"styling-panel",chartTitle:"Object.Container",tabTitle:"scripteditor.dataconnectors.delimiter.tab",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:r,items:{label:Df({ref:r,key:n,fontResolver:e,theme:t}),width:{...Ff({ref:r,key:n}),show:(e,{layout:t})=>"left"!==t.orientation},icon:Hf({ref:r,key:n,fontResolver:e,theme:t}),background:Wf({ref:r,key:n,theme:t})}}},Uf={ref:"label",type:"string",translation:"Object.Container.Props.Label",defaultValue:"",expression:"optional"},Vf={ref:"condition",translation:"Object.Container.Props.ShowCondition",component:"expression",defaultValue:{qValueExpression:{qExpr:""}},expressionType:"ValueExpression",expression:"always"},qf=e=>({component:"button",translation:"Object.Container.Props.EditProperties",disabled:(e,t)=>{var r,n,o;const i=t.getLayout(),a=null===(r=$p(i,e.childRefId))||void 0===r?void 0:r.qMeta;return!(null!=a&&null!==(n=a.privileges)&&void 0!==n&&n.includes("update")&&null!==(o=i.permissions)&&void 0!==o&&o.update)},action(t,r,{app:n}){const{sense:o}=e.env.anything,i=r.getEngineId(t.childRefId);i&&(o.propertyPanel.show({id:i,app:n,parent:"current",headerLabel:t.label}),r.setSelectedChild([i]))}}),Kf=e=>{const{sense:t}=e.env.anything;return{label:Uf,condition:Vf,styling:Yf({fontResolver:e.fontResolver,theme:null==t?void 0:t.theme}),editProperties:qf(e)}},Xf={translation:"Object.Container.Props.Chart",component:"text",show:e=>e.objects?e.objects.length<=1:e.children.length<=1},Zf={translation:"Common.Charts",component:"text",show:e=>e.objects?e.objects.length>1:e.children.length>1},Jf=e=>({type:"array",ref:"objects",itemTitleRef:e=>e.label,allowAdd:!0,customAdd:!0,allowMove:!0,allowRemove:!0,customRemove:!0,addTranslation:"Object.Container.Props.Add",cId:"childRefId",grouped:!0,add(e,t,r){const n=document.querySelector(".pp-toplist-add-button");null!==n&&r.openAddChildPopover(n)},remove(e,t,r){r.deleteChild(e.childRefId).catch((()=>{}))},items:Kf(e)}),Qf=e=>({type:"items",translation:"Object.Container.Props.Content",items:{chartLabel:Xf,chartsLabel:Zf,chartList:Jf(e)}}),em={type:"boolean",translation:"Object.Container.Props.ShowTabs",ref:"showTabs",defaultValue:!0,component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},tm={type:"boolean",translation:"Object.Container.Props.UseDropdown",label:"Menu",ref:"useDropdown",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},rm={type:"boolean",translation:"Object.Container.Props.UseScrollButtons",ref:"useScrollButton",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],defaultValue:!0,show:e=>e.showTabs},nm={type:"boolean",translation:"Object.Container.Props.ShowIcons",ref:"showIcons",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},om={type:"string",translation:"Object.Container.Props.DefaultTab",ref:"defaultTabId",component:"dropdown",defaultValue:void 0,options(e,t){const r=t.getLayout();return r?r.objects.map((e=>({translation:e.label,value:e.childRefId}))):[]},change(e,t){const r=Fp(t.getLayout(),e.defaultTabId);r&&t.setSelectedChild([r])},show:e=>e.objects.length>0},im={type:"string",translation:"properties.orientation",ref:"orientation",component:"dropdown",options:[{value:"top",translation:"properties.orientation.horizontal"},{value:"left",translation:"properties.orientation.vertical"}],defaultValue:"top",show:e=>e.showTabs},am=({fontResolver:e,theme:t})=>{const r="components",n="tabs";return{component:"styling-panel",chartTitle:"Object.TabContainer",tabTitle:"Object.Container.Props.ShowTabs",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{label:Df({ref:r,key:n,fontResolver:e,theme:t}),width:Ff({ref:r,key:n}),indicator:Gf({ref:r,key:n,theme:t}),icon:Hf({ref:r,key:n,fontResolver:e,theme:t}),background:Wf({ref:r,key:n,theme:t})}}},lm={items:{details:{show:e=>!0===e.showDetails}}},sm=e=>{const{sense:t}=e.env.anything;return{type:"items",translation:"properties.presentation",grouped:!0,items:{stylingPanel:am({fontResolver:e.fontResolver,theme:null==t?void 0:t.theme}),container:{type:"items",items:{showTabs:em,useDropdown:tm,useScrollButton:rm,showIcons:nm,orientation:im,defaultTabId:om}}}}},cm=e=>({uses:"settings",items:{general:lm,presentation:sm(e)}}),dm=e=>({type:"items",component:"accordion",items:{content:Qf(e),settings:cm(e)}}),um=e=>{const{sense:t}=e.env.anything,r=function(e){var t=e.theme,r=e.translator,n=e.config,o=void 0===n?{}:n,i=e.flags,a=function(e){var t=e.config,r=void 0===t?{}:t,n=r.id,o=r.paths;return{id:void 0===n?"object":"".concat("object",".").concat(n),paths:Array.isArray(o)?o:[]}}({config:o}),l=a.id,s=a.paths,c={};s.forEach((function(e){for(var n=e.split("."),o=c,a=0;a<n.length;a++){var s=n[a];a===n.length-1?o[s]=hh({theme:t,translator:r,id:l,path:e,flags:i}):void 0===o[s]&&(o[s]={}),o=o[s]}}));var d=function(e){for(var t=e.split("."),r=c,n=0;n<t.length;n++){var o=t[n];if(void 0===r[o])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));r=r[o]}return r};return c.getDefaultValue=function(e){return d(e).getDefaultValue()},c.getOptions=function(e){return d(e).getOptions()},c}({theme:null==t?void 0:t.theme,translator:e.env.translator,flags:e.env.flags,config:{id:"tabbedContainer",paths:["label.value","icon.value"]}}),n=function(e){return{async getDropOptions(e,t,r){const{item:n}=t,o=e.getCreatePropertyHandler();if(o.setModel(e.model),"state"===t.item.type){var i;const n=await e.model.getProperties();return o.setProperties(n),o.setLayout(null===(i=e.model)||void 0===i?void 0:i.layout),this.getDropStateOptions(t,o,e.model,r)}if("visualization"===n.type)return t.menu.addItem({translation:["Object.Container.DropItem",n.name],tid:"addvisualization",select(){var e;null===(e=o.addChild({initProps:{qExtendsId:n.id,qInfo:{qType:"undefined"}}}))||void 0===e||e.then((e=>{e&&o.setSelectedChild([e.id])}))}}),void r();const a=await t.item.getDropOption(t.item);"newObject"===(null==a?void 0:a.id)&&t.menu.addItem({translation:["Object.Container.DropItem",n.name],tid:"createvisualization",select(){var e,t;null===(e=o.addChild({initProps:{...a.args.init,visualization:a.args.template},children:null===(t=a.args.children)||void 0===t?void 0:t.map((e=>({qProperty:e})))}))||void 0===e||e.then((e=>{e&&o.setSelectedChild([e.id])}))}}),r()},async addChild(t,r){const{model:n}=this,o=new Gp({app:n.app,data:e.propertyHandlerData});return o.setModel(n),{childModel:await o.addChild({initProps:t,children:r}),handler:o}},canReceive(e){if(this.model.layout.qExtendsId)return!1;if("libraryitem"===e.type){const{item:t}=e;if("template"===t.type&&bp.includes(t.template))return!1;if("visualization"===t.type&&bp.includes(t.visualization))return!1}return"gridcell"!==e.type||!bp.includes(e.cell.model.layout.visualization)}}}(e);return{definition:dm({...e,fontResolver:r}),support:{snapshot:!1,export:!0,sharing:!1,exportData:!1,viewData:!1},hidePatchPanel:()=>!0,getCreatePropertyHandler:t=>new Gp({app:t,data:e.propertyHandlerData}),...n,addChild:async function(e,t){const{childModel:r,handler:o}=await n.addChild.apply(this,[e,t]);r&&o.setSelectedChild([r.id])},migrate:{properties:(e,t)=>((async(e,t)=>{if(!e.objects){const{objects:r,defaultTabId:n,components:o,orientation:i,showDetails:a}=await t.getEffectiveProperties(),l=await t.getFullPropertyTree();if(!l.qProperty.objects&&r){const s=[];l.qChildren.forEach((e=>{const r=e.qProperty;if(r.qInfo.qId){const n=async n=>{const o=await t.getChild(n),i=await o.getEffectiveProperties();return{...e,qProperty:{...r,childRefId:i.childRefId}}};s.push(n(r.qInfo.qId))}}));const c=await Promise.all(s),d={...e,objects:r,defaultTabId:null!=n?n:"",components:o,qChildListDef:Pf,orientation:i,showDetails:a};t.clearSoftPatches(),await t.setFullPropertyTree({...l,qProperty:d,qChildren:c})}}})(e,t),e)},exportProperties:null,importProperties:(e,t)=>{const r={...e.properties};return"masterobject"!==e.properties.qInfo.qType&&(r.qInfo.qType=t.qInfo.qType),r.visualization=t.visualization,{qProperty:r,qChildren:e.qChildren}},extendMetrics:Mf}},pm=({propertyHandlerData:e,element:n,sharedContainerUtilities:o,translator:i,containerId:a,dataHandler:l,renderHelper:s})=>{const c=t();a&&e.sync({containerId:a,element:n,sharedContainerUtilities:o,translator:i,dataHandler:l,renderHelper:s}),r((()=>{e.setMuiTheme(c.direction)}),[c.direction,e]),r((()=>()=>{a&&e.destroy(a)}),[a,e,c.direction])},hm=e=>e.reduce(((e,{id:t,data:r})=>(r&&(e[t]=r),e)),{}),fm=async e=>{const t=[];for(const[r,n]of e){const e={id:r,data:void 0},o=n;t.push(o.getViewState().then((e=>({id:r,data:e}))).catch((()=>e)))}const r=await Promise.all(t);return{viewStates:hm(r)}},mm=async e=>{const t=[];for(const[r,n]of e){const e={id:r,data:void 0},o=n;t.push(o.getSnapshotLayout().then((e=>({id:r,data:e}))).catch((()=>e)))}const r=await Promise.all(t);return hm(r)},bm=(e,t)=>(o((async r=>{const n=r,{snapshotData:o}=n;if(o){const r=zp(n),i=t(e.objectMap,r),[a,l]=await Promise.all([mm(i.objectMap),fm(i.objectMap)]);o.objectsData={layouts:a},n.objects=i.objects,o.viewState=l}return r})),{getViewState:()=>fm(e.objectMap)});let gm=function(e){return e.COPY="ctrl+c",e.CUT="ctrl+x",e.PASTE="ctrl+v",e.OPEN_CONTEXT_MENU="shift+F10",e.ESCAPE="Escape",e.SPACE=" ",e.ENTER="Enter",e.BACKSPACE="Backspace",e.DELETE="Delete",e.SHIFT="Shift",e}({}),vm=function(e){return e.KEY_DOWN="keydown",e.KEY_UP="keyup",e.FOCUS_OUT="focusout",e}({});var ym,xm;!function(e){e.TAB_MENU="tab-menu",e.TAB_MENU_ITEM="tab-menu-item",e.ACTIVE_TAB="active-tab-button",e.TAB_WRAPPER="tab-wrapper",e.TAB="tab-button",e.TAB_EXTRA_PRIO="MuiTab-root",e.TAB_LABEL="tab-label",e.TABS_ICON="tab-icon",e.ACTIVE_TAB_PANEL="active-tab-panel",e.TAB_INDICATOR="MuiTabs-indicator"}(ym||(ym={})),function(e){e.TABS="& .tab-button.MuiTab-root, .tab-button.active-tab-button",e.TABS_HOVER="& .tab-button.MuiTab-root:hover",e.TABS_LABEL="& .tab-label",e.TABS_ICON="& .tab-icon svg",e.TABS_WRAPPER="& .tab-wrapper",e.TAB_INDICATOR="& .MuiTabs-indicator"}(xm||(xm={}));const Em=e=>{var t;return null===(t=e.getElementsByClassName(ym.ACTIVE_TAB))||void 0===t?void 0:t[0]},Sm=e=>{var t;return null===(t=e.getElementsByClassName(ym.ACTIVE_TAB_PANEL))||void 0===t?void 0:t[0]},Cm=({element:e,setAccessibility:t,accessibility:o,renderHelper:l,interactions:s,env:c,models:d})=>{const{modifiedLayout:{showTabs:u,objects:p,orientation:h},translator:f}=d;r((()=>{(()=>{const t="top"===h?f.get("TabContainer.Navigation.Horizontal"):f.get("TabContainer.Navigation.Vertical"),r=((e,t)=>e.map((e=>e.label||t.get("TabContainer.Object.Untitled"))).join(", "))(p,f);e.setAttribute("aria-label",f.get("TabContainer.Object.Description",[r,u?t:""]))})()}),[e,u,p,f,h]);const m=c.flags.isEnabled("VIZ-7_NEW_SHEET"),b=i(),g=a((()=>()=>{var e;(t(!1),b.enabled)&&(null===(e=b.blur)||void 0===e||e.call(b,!0))}),[b,t]),v=a((()=>t=>{switch(t.shiftKey?`shift+${t.key}`:t.key){case gm.ESCAPE:var r;t.stopPropagation(),null===(r=b.blur)||void 0===r||r.call(b,!0);break;case gm.ENTER:case gm.SPACE:{t.stopPropagation();const r=t.target;var n;if(null!=r&&r.classList.contains(ym.ACTIVE_TAB))null===(n=Sm(e))||void 0===n||n.focus();break}}}),[e,b]),y=a((()=>t=>{const r=t.shiftKey?`shift+${t.key}`:t.key,n=l.objectMap.values().next().value,o=l.objectApis.values().next().value;switch(r){case gm.ESCAPE:{const r=Em(e);m?(({event:e,objectApi:t,activeTab:r})=>{var n;e.stopPropagation(),(null==t?void 0:t.viewDataToggled)&&(null===(n=t.support)||void 0===n?void 0:n.call(t,"viewData"))?t.toggleDataView():null==r||r.focus()})({event:t,objectApi:o,activeTab:r}):(({event:e,objectApi:t,activeTab:r})=>{var n,o;e.stopPropagation(),(null==t?void 0:t.viewDataToggled)&&(null===(n=t.supportViewData)||void 0===n?void 0:n.call(t))?null===(o=t.toggleDataView)||void 0===o||o.call(t):null==r||r.focus()})({event:t,objectApi:n,activeTab:r});break}case gm.ENTER:case gm.SPACE:{const r=Sm(e);m?(({event:e,objectApi:t,activeTab:r})=>{var n,o,i;if(!t)return;e.stopPropagation(),null===(n=t.setOnBlurHandler)||void 0===n||n.call(t,(()=>{var e;null==r||r.focus(),null===(e=t.setOnBlurHandler)||void 0===e||e.call(t,void 0)})),!t.viewDataToggled&&(null===(o=t.support)||void 0===o?void 0:o.call(t,"viewData"))?t.toggleDataView():null===(i=t.toggleFocus)||void 0===i||i.call(t,!0)})({event:t,objectApi:o,activeTab:r}):(({event:e,objectApi:t,activeTab:r})=>{var n,o,i,a;if(!t)return;e.stopPropagation(),null===(n=t.setOnBlurHandler)||void 0===n||n.call(t,(()=>{var e;null==r||r.focus(),null===(e=t.setOnBlurHandler)||void 0===e||e.call(t,void 0)})),!t.viewDataToggled&&(null===(o=t.supportViewData)||void 0===o?void 0:o.call(t))?null===(a=t.toggleDataView)||void 0===a||a.call(t):t.viewDataToggled&&"function"==typeof(null===(i=t.dataViewObject)||void 0===i?void 0:i.focus)?t.dataViewObject.focus():"function"==typeof t.focus&&t.focus()})({event:t,objectApi:n,activeTab:r});break}case gm.OPEN_CONTEXT_MENU:t.stopPropagation(),null!=n&&n.viewDataToggled||e!==document.activeElement&&(g(),e.focus())}}),[e,g,m,l]),x=a((()=>e=>{const t=e.target;null!=t&&t.classList.contains(ym.ACTIVE_TAB_PANEL)?y(e):v(e)}),[v,y]);r((()=>(o&&e.addEventListener(vm.KEY_DOWN,x),()=>{e.removeEventListener(vm.KEY_DOWN,x)})),[e,o,x]);const[E,S]=n(!1);r((()=>{E&&(S(!1),window.setTimeout((()=>{var t,r;return null===(t=null!==(r=(e=>{var t;return null===(t=e.getElementsByClassName(ym.TAB_MENU))||void 0===t?void 0:t[0]})(e))&&void 0!==r?r:Em(e))||void 0===t?void 0:t.focus()}),0))}),[e,E]),r((()=>{t(!1)}),[s.edit,t]),r((()=>{const r=t=>{const r=t.relatedTarget;null!=e&&e.contains(r)||null!=r&&r.classList.contains(ym.TAB_MENU_ITEM)||null==g||g()};return b.enabled&&b.active&&!s.edit&&(t(!0),S(!0),e.addEventListener(vm.FOCUS_OUT,r)),()=>{e.removeEventListener(vm.FOCUS_OUT,r)}}),[b])},wm=e=>{const[t]=n(e);return[t,function(e){Object.assign(t,e)}]},Rm=({isContainerActive:e,activeTabId:t,modifiedLayout:n,renderHelper:o})=>{const i={modifiedLayout:n,activeTabId:t,renderHelper:o,isContainerActive:e},[l,s]=wm(i);s(i);const c=a((()=>()=>{const e=Bp(l.modifiedLayout);for(const[t,r]of l.renderHelper.objectMap.entries()){const n=l.isContainerActive&&l.activeTabId===e[t];"setIsActive"in r&&r.setIsActive(n)}}),[l]);r((()=>{l.isContainerActive&&c()}),[o.objectMap,c,l]),r((()=>{c()}),[e,c])},km={getChar(e){let t,r=e;return r>9?(t=65+r-10,t>90&&(t+=6)):r=`${r}`.charCodeAt(0),!t||[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(r+1):String.fromCharCode(t)},base62(e){const t=this.getChar(e%62),r=Math.floor(e/62);return r>0?this.base62(r)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};const Am={qInfo:{qId:"MasterObjectList",qType:"MasterObjectList"},qAppObjectListDef:{qType:"masterobject",qData:{name:"/qMetaDef/title",labelExpression:"/labelExpression",visualization:"/visualization",tags:"/qMetaDef/tags"}}};class _m{constructor(e){M(this,"sessionObject",void 0),M(this,"getOrCreateSessionObject",(async e=>{const t=Am.qInfo.qId;this.sessionObject=await e.getObject(t).catch((()=>e.createSessionObject(Am)))})),M(this,"getMasterVisualizations",(async()=>{try{if(!this.sessionObject)return[];const e=await this.sessionObject.getLayout();return("qAppObjectList"in e?e.qAppObjectList.qItems:e).map((e=>({...e.qData,qExtendsId:e.qInfo.qId}))).filter((e=>!bp.includes(e.visualization)))}catch(e){return[]}})),this.getOrCreateSessionObject(e).catch((()=>{}))}}let Im=function(e){return e[e.TOP=0]="TOP",e[e.BOTTOM=1]="BOTTOM",e[e.UP=2]="UP",e[e.DOWN=3]="DOWN",e}({});class Tm{constructor({embed:e,model:t,app:r,translator:n,mutex:o}){M(this,"model",void 0),M(this,"embed",void 0),M(this,"app",void 0),M(this,"undoRedoModel",void 0),M(this,"chartList",void 0),M(this,"masterVizList",void 0),M(this,"mutex",void 0),M(this,"rememberAsGroup",(async e=>{let t;this.undoRedoModel&&(t=await this.undoRedoModel.startGroup());const r=await e();return t&&this.undoRedoModel&&await this.undoRedoModel.endGroup(t),r})),M(this,"generateProperties",(async(e,t)=>await this.embed.generateProperties({type:e,properties:t}))),M(this,"addVizAsChild",(async({type:e,initProps:t,objectInitProps:r,children:n})=>{try{const o=await this.generateProperties(e,t);let i=(null==r?void 0:r.label)||(null==t?void 0:t.title);if(!i){const r=this.getChart(null==t?void 0:t.visualization),n=null==r?void 0:r.libraryInfo;i=(null==n?void 0:n.translation)||(null==n?void 0:n.name)||e}const a={...r,label:i};return await this.addChild(o,n,a)}catch(e){return}})),M(this,"addMasterObjectAsChild",(async({initProps:e,objectInitProps:t,children:r})=>{try{if(!e||!e.qExtendsId||!this.app)return;const n=await this.app.getObject(e.qExtendsId),o=await n.getProperties(),i=(null==t?void 0:t.label)||o.title||o.qMetaDef.title,a={...e,qInfo:{qType:"childObject"}},l={...t,label:i};return await this.addChild(a,r,l)}catch(e){return}})),M(this,"deleteChildren",(async e=>{const{model:t}=this;if(0===e.length||!t)return!1;try{await this.mutex.lock();const r=await t.getFullPropertyTree(),{qChildren:n,qProperty:o}=r,i=new Set(e);return r.qChildren=n.filter((({qProperty:e})=>{const t=e.childRefId;return!t||!i.has(t)})),r.qProperty.objects=o.objects.filter((e=>!i.has(e.childRefId))),await t.setFullPropertyTree(r),!0}catch(e){return!1}finally{this.mutex.unlock()}})),M(this,"moveChild",(async(e,t)=>{if(this.model)try{await this.mutex.lock();const r=await this.model.getProperties(),{objects:n}=r,o=n.findIndex((e=>e.childRefId===t));let i=!1;switch(e){case Im.TOP:{if(0===o)break;const e=n.splice(o,1)[0];n.unshift(e),i=!0;break}case Im.BOTTOM:{if(o===n.length-1)break;const e=n.splice(o,1)[0];n.push(e),i=!0;break}case Im.UP:{if(0===o)break;const e=n.splice(o,1)[0];n.splice(o-1,0,e),i=!0;break}case Im.DOWN:{if(o===n.length-1)break;const e=n.splice(o,1)[0];n.splice(o+1,0,e),i=!0;break}}i&&await this.model.setProperties(r)}finally{this.mutex.unlock()}})),M(this,"getCharts",(()=>{var e;return(null===(e=this.chartList)||void 0===e?void 0:e.getCharts())||{}})),M(this,"getMasterVizList",(()=>{var e;return(null===(e=this.masterVizList)||void 0===e?void 0:e.getMasterVisualizations())||Promise.resolve([])})),M(this,"getChart",(e=>{var t;return null===(t=this.chartList)||void 0===t?void 0:t.getChart(e)})),M(this,"getChartLabelById",((e,t)=>{var r,n;const o=null==e||null===(r=e.qChildList)||void 0===r?void 0:r.qItems.find((e=>e.qInfo.qId===t));if(!o)return"";const{visualization:i,title:a}=o.qData;if(a)return a;const l=this.getChart(i);return(null==l||null===(n=l.libraryInfo)||void 0===n?void 0:n.translation)||i})),this.model=t,this.embed=e,this.app=r;const i=r;i&&i.getUndoInfoObject&&i.getUndoInfoObject().then((e=>{this.undoRedoModel=e})).catch((()=>{})),r&&(this.masterVizList=new _m(r)),e&&n&&(this.chartList=new gp(e,n)),this.mutex=o}async addChild(e,t,r){if(this.model&&!bp.includes(e.visualization))try{await this.mutex.lock();const{model:n}=this,o=async()=>{e.childRefId=km.id();const o=await n.createChild(e);if(o){const t=await n.getProperties();t.objects.unshift({childRefId:e.childRefId,...r,condition:{qValueExpression:{qExpr:""}}}),await n.setProperties(t)}return t&&o&&await Promise.all(t.map((({qProperty:e})=>o.createChild(e)))),o};return await this.rememberAsGroup(o)}catch(e){return}finally{this.mutex.unlock()}}}class Lm{constructor(e){M(this,"locked",!1),M(this,"tasks",[]),M(this,"id",void 0),M(this,"lock",(async()=>this.locked?new Promise((e=>{this.tasks.push(e)})):(this.locked=!0,!0))),M(this,"unlock",(()=>{if(this.tasks.length>0){const e=this.tasks.shift();null==e||e(!0)}else this.locked=!1})),this.id=e}}const Om={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Pm={index:-1,color:"none",alpha:1},Mm=e=>{let t=parseFloat(e[1]),r=parseFloat(e[3]),n=parseFloat(e[5]);return t%=360,r/=100,n/=100,t=Math.max(0,Math.min(t,360)),r=Math.max(0,Math.min(r,1)),n=Math.max(0,Math.min(n,1)),{h:t,s:r,l:n,v:n}},jm=(e,t,r,n,o=1)=>{let i,a,l,s=[];switch(r=Math.floor(r)){case 0:s=[e,t,0];break;case 1:s=[t,e,0];break;case 2:s=[0,e,t];break;case 3:s=[0,t,e];break;case 4:s=[t,0,e];break;case 5:s=[e,0,t];break;default:s=[0,0,0]}return i=s[0]+n,a=s[1]+n,l=s[2]+n,i=Math.round(255*i),a=Math.round(255*a),l=Math.round(255*l),`rgba(${i},${a},${l},${o})`},Nm=e=>{const{h:t,s:r,l:n}=Mm(e),o=e.length>7?parseFloat(e[7]):1,i=n<=.5?2*n*r:(2-2*n)*r,a=t/60,l=i*(1-Math.abs(a%2-1));return jm(i,l,a,n-.5*i,o)},$m={resolveExpression:({colorExpression:e=""})=>{let t=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e);if(t)return`rgb(${t[1]},${t[2]},${t[3]})`;if(t=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return`rgba(${t[1]},${t[2]},${t[3]},${t[4]})`;if(t=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e),t){const e=Math.round(Number(t[1])/255*100)/100;return`rgba(${t[2]},${t[3]},${t[4]},${e})`}if(t=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(e),t)return Nm(t);if(t=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return Nm(t);if(t=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(e),t)return(e=>{const{h:t,s:r,v:n}=Mm(e),o=n*r,i=t/60,a=o*(1-Math.abs(i%2-1));return jm(o,a,i,n-o)})(t);if(t=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e),t)return e;if(t=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e),t)return e;const r=e&&Om[e.toLowerCase()];if(r){const e=void 0!==r.a?r.a:1;return`rgba(${r.r},${r.g},${r.b},${e})`}return"none"},getColor({style:e,defaultColor:t,theme:r}){const n=(null==e?void 0:e.color)||Pm;let o;return o=null!=e&&e.useColorExpression?$m.resolveExpression(e):"string"==typeof n?n:(null==r?void 0:r.getColorPickerColor(n))||"",o&&"none"!==o?o:t}},zm=()=>S.createElement(Ip,{viewBox:"0 0 16 16"},S.createElement("path",{d:"M15 6V5H5V2H1.5a.5.5 0 0 0-.5.5V6H0V2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v4h-1Zm-5-4H6v2h4V2Zm4.5 0H11v2h4V2.5a.5.5 0 0 0-.5-.5Zm1.5 9h-1V8h1v3Zm0 3a1 1 0 0 1-1 1h-1v-1h.6a.4.4 0 0 0 .4-.4V13h1v1Zm-7 1v-1h3v1H9Zm-5 0v-1h3v1H4Zm-3 0a1 1 0 0 1-1-1v-1h1v.6c0 .22.18.4.4.4H2v1H1ZM0 8h1v3H0V8Zm4-.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4ZM5 11h6V8H5v3Z"})),Bm=({libraryInfo:e,style:t,id:r})=>S.createElement("div",{style:t,"data-testid":"tab-chart-icon",id:r,className:ym.TABS_ICON},S.createElement(e.IconDefinition,null)),Dm=({style:e,id:t})=>S.createElement("div",{style:e,"data-testid":"tab-hidden-icon",id:t},S.createElement(Tp,{viewBox:"0 0 16 16"},S.createElement("path",{d:"m13.441.795.764.646-1.839 2.174c.568.434 1.076.914 1.522 1.385a13.79 13.79 0 0 1 2.109 3 13.798 13.798 0 0 1-2.108 3c-1.382 1.457-3.345 3-5.89 3-1.34 0-2.52-.428-3.536-1.045l-1.904 2.25-.764-.646L13.441.795ZM11.72 4.379l-1.427 1.686a3 3 0 0 1-3.82 4.516l-1.354 1.6c.86.497 1.819.819 2.88.819 2.121 0 3.834-1.287 5.161-2.685A12.666 12.666 0 0 0 14.857 8a12.691 12.691 0 0 0-1.697-2.315c-.35-.37-.727-.73-1.132-1.063l-.308-.243ZM8 2a6.428 6.428 0 0 1 2.242.412l.305.123-.681.805A5.359 5.359 0 0 0 8 3C5.877 3 4.164 4.287 2.837 5.685A12.664 12.664 0 0 0 1.14 8a12.66 12.66 0 0 0 1.697 2.315l.301.308.311.299-.646.765A14.567 14.567 0 0 1 2.109 11 13.791 13.791 0 0 1 0 8a13.801 13.801 0 0 1 2.109-3C3.49 3.543 5.454 2 8 2Zm1.633 4.845-2.5 2.956a1.999 1.999 0 0 0 2.5-2.956Zm-3.917-.793a3 3 0 0 1 2.692-1.025l.202.035-.809.948A2 2 0 0 0 6 7.967l.003.152-.808.947a3 3 0 0 1 .521-3.014Z"}))),Fm=()=>S.createElement(Tp,{viewBox:"0 0 16 16"},S.createElement("path",{d:"M12 4H6V3h6v1ZM6 8.5h4v-1H6v1Zm9 4.5H6v-1h9v1ZM3 11a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h1Zm0 1H2v1h1v-1Zm0-5.5a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h1Zm0 1H2v1h1v-1ZM3 2a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h1Zm0 1H2v1h1V3Z"})),Gm=Vl(Du)({width:28,overflow:"hidden"}),Hm=Vl(Du)({height:28,width:"100%",overflow:"hidden",alignItems:"center","&::before":{visibility:"hidden"}}),Wm=(e,t)=>e.find((e=>e.childRefId===t)),Ym=(e,t)=>!t.edit&&0===e.condition,Um=e=>{var t;const{objects:r,defaultTabId:n,cachedTabId:o}=e;return o||(n&&r.some((e=>e.childRefId===n))?n:(null===(t=r[0])||void 0===t?void 0:t.childRefId)||"")};class Vm{constructor({modifiedLayout:e,themeService:t}){M(this,"modifiedLayout",void 0),M(this,"themeStyle",void 0),M(this,"style",void 0),M(this,"objectMap",void 0),M(this,"activeTabId",void 0),M(this,"theme",void 0),M(this,"getTabsWidth",(e=>{const t=this.resolveComponentStyle({compPath:"width.value",themePath:"tabWidth.value"});if(void 0===t||2!==t.length||e!==this.modifiedLayout.orientation)return{};const r=this.resolveComponentStyle({compPath:"width.unit",themePath:"tabWidth.unit",defaultValue:"%"});return{minWidth:`${t[0]}${r}`,maxWidth:`${t[1]}${r}`}})),M(this,"getTabWidth",(e=>{var t;const r=null==e?void 0:e.value,n=null!==(t=null==e?void 0:e.unit)&&void 0!==t?t:"%";if(void 0===r||2!==r.length||"left"===this.modifiedLayout.orientation)return{};return{minWidth:`${r[0]}${n}`,maxWidth:`${r[1]}${n}`}})),M(this,"getColorStyle",((e,t=e)=>{const r=this.resolveComponentStyle({compPath:e,themePath:t}),n=$m.getColor({style:r,theme:this.theme});return null!=n?n:r})),M(this,"getTabBackgroundStyle",((e,t)=>{let r;if(this.activeTabId===e){const e=this.resolveComponentStyle({compPath:"background.selected",themePath:""});r=$m.getColor({style:e,theme:this.theme})}return null!=r?r:$m.getColor({style:t,theme:this.theme})})),M(this,"createTabClasses",(()=>{var e;return null===(e=this.modifiedLayout.objects)||void 0===e?void 0:e.reduce(((e,t)=>{var r;const n=null==t?void 0:t.childRefId,o=null==t||null===(r=t.components)||void 0===r?void 0:r.find((e=>"tab"===e.key));return e[`#tab-${this.modifiedLayout.qInfo.qId}-${n}`]={textAlign:hf(o,"label.alignment"),backgroundColor:this.getTabBackgroundStyle(n,null==o?void 0:o.background),...this.getTabWidth(null==o?void 0:o.width)},e[`#tab-${this.modifiedLayout.qInfo.qId}-${n}:hover`]={..."left"===this.modifiedLayout.orientation&&{backgroundColor:this.getColorStyle("background.hover","background.hover.color")}},e[`#tab-label-${this.modifiedLayout.qInfo.qId}-${n}`]={fontSize:hf(o,"label.fontSize"),fontFamily:hf(o,"label.fontFamily"),color:$m.getColor({style:hf(o,"label.color"),theme:this.theme})},e[`#tab-icon-${this.modifiedLayout.qInfo.qId}-${n} svg`]={height:hf(o,"icon.size"),color:$m.getColor({style:hf(o,"icon.color"),theme:this.theme})},e}),{})})),M(this,"createTabsClasses",(()=>({[xm.TABS_LABEL]:{fontSize:this.resolveComponentStyle({compPath:"label.fontSize",themePath:"label.value.fontSize"}),fontFamily:this.resolveComponentStyle({compPath:"label.fontFamily",themePath:"label.value.fontFamily"}),color:this.resolveComponentStyle({compPath:"label.color.color",themePath:"label.value.color"})},[xm.TABS_ICON]:{height:this.resolveComponentStyle({compPath:"icon.size",themePath:"icon.value.fontSize"}),color:this.getColorStyle("icon.color","icon.value.color")},[xm.TABS]:{textAlign:this.resolveComponentStyle({compPath:"label.alignment",themePath:"label.textAlignment"}),...this.getTabsWidth("top")},[xm.TABS_HOVER]:{..."top"===this.modifiedLayout.orientation&&{borderBottomColor:this.getColorStyle("indicator.hover","indicator.hover.color")}},[xm.TABS_WRAPPER]:{...this.getTabsWidth("left"),backgroundColor:this.getColorStyle("background.unselected","")},[xm.TAB_INDICATOR]:{backgroundColor:this.getColorStyle("indicator.selected","indicator.selected.color")}}))),M(this,"createStyleClasses",(()=>({...this.createTabsClasses(),...this.createTabClasses()}))),M(this,"resolveComponentStyle",(({key:e="tabs",compPath:t,themePath:r=t,defaultValue:n})=>{var o,i,a;const l=null===(o=this.modifiedLayout.components)||void 0===o?void 0:o.find((t=>t.key===e));return null!==(i=null!==(a=hf(l,t))&&void 0!==a?a:hf(this.themeStyle,r))&&void 0!==i?i:n})),this.modifiedLayout=e,this.activeTabId=Um(this.modifiedLayout),this.themeStyle=t.getStyles(),this.theme=t.getTheme(),this.objectMap=Dp(this.modifiedLayout),this.style=this.createStyleClasses()}getStyleClasses(){return this.style}getTabStyle(e){var t;return null===(t=this.objectMap[e].components)||void 0===t?void 0:t.find((e=>"tab"===e.key))}}const qm=()=>{const e=l(),r=s(),o=c(),i=d(),b=u(),g=p(),v=t(),y=h(),x=f(),E=function(e){var t=e.theme,r=e.config,n=void 0===r?{}:r,o=n.id,i=n.resolve,a=void 0===i?[]:i,l=n.transform,s=void 0===l?[]:l,c=n.extend,d=void 0===c?[]:c,u={theme:t,matrix:Tf(a),styles:void 0};return u.styles=Of({theme:t,id:o,transform:s,extend:d,matrix:u.matrix}),{getStyles:function(){return u.styles},getTheme:function(){return u.theme},setTheme:function(e){u.theme=e,u.styles=Of({theme:e,id:o,transform:s,extend:d,matrix:u.matrix})}}}({theme:m(),config:{id:"tabbedContainer",resolve:[["object.tabbedContainer","indicator.selected","color"],["object.tabbedContainer","indicator.hover","color"],["object.tabbedContainer","background.hover","color"],["object.tabbedContainer","icon.value","color"],["object.tabbedContainer","icon.value","fontSize"]]}}),S=a((()=>new gp(i,g)),[i,g]),[C]=n((()=>new Lm(b.id))),[w,R]=n(!1),k=a((()=>i&&b&&r?new Tm({embed:i,model:b,app:r,translator:g,mutex:C}):void 0),[i,b,r,g,C]),A=a((()=>zp(o)),[o]),_=a((()=>new Vm({modifiedLayout:A,themeService:E})),[A,E]);return a((()=>({app:r,modifiedLayout:A,embed:i,model:b,emitter:y,interactions:x,dataHandler:k,chartList:S,styleModel:_,mutex:C,options:v,accessibility:w,setAccessibility:R,translator:g,element:e})),[A,i,b,r,y,x,k,S,_,C,v,w,g,e])},Km=({dataHandler:e,modifiedLayout:t,translator:r,sharedContainerUtilities:n,Icon:o})=>{const[i,a]=k(void 0);if(!e||!t)return null;const l=!t.qExtendsId;return S.createElement(Cp,null,S.createElement(Sp,null,S.createElement(o,null),l?S.createElement(S.Fragment,null,S.createElement(_p,{sx:{width:250,height:32,fontFamily:"inherit"},className:"init-button",variant:i?"contained":"outlined",onClick:e=>{a(e.currentTarget)},"aria-label":r.get("LayoutContainer.EmptyList.AddContent"),disableRipple:!0},r.get("LayoutContainer.EmptyList.AddContent")),S.createElement(Pp,{translator:r,anchorEl:i,dataHandler:e,onClose:()=>{a(void 0)},sharedContainerUtilities:n})):S.createElement(ic,{variant:"inherit"},r.get("LayoutContainer.EmptyList.EmptyHint"))))};class Xm{constructor(e){M(this,"_rendered",new Set),M(this,"_objectMap",new Map),M(this,"_objectApis",new Map),M(this,"_resolver",void 0),M(this,"_dependencyData",void 0),M(this,"_recreateMap",new Map),M(this,"createTimerForRendering",(()=>{if(!this.resolver){let e;const t=setTimeout((()=>{this.doResolve()}),9e4),r=new Promise((t=>{e=t}));this._resolver={promise:r,resolve:e,timer:t}}return this._resolver})),M(this,"doResolve",(()=>{var e,t,r;this.resolver&&(clearTimeout(null===(e=this.resolver)||void 0===e?void 0:e.timer),null===(t=(r=this.resolver).resolve)||void 0===t||t.call(r,!0),this._resolver=void 0)})),M(this,"tryToResolve",(()=>{const{visibleLayoutObjects:e}=this._dependencyData;if(this.resolver){(0===e.length||e.every((e=>this.rendered.has(e.id))))&&this.doResolve()}})),this._dependencyData=e}set dependencyData(e){this._dependencyData=e}get rendered(){return this._rendered}get objectMap(){return this._objectMap}get objectApis(){return this._objectApis}get resolver(){return this._resolver}get recreateMap(){return this._recreateMap}syncObjects(e){const t=new Set,r=new Set([...Array.from(this.objectMap.keys()),...Array.from(this.objectApis.keys()),...this.rendered]),n=new Set(r);let o=!1;return e.forEach((e=>{r.has(e.id)?(this.rendered.has(e.id)&&t.add(e.id),n.delete(e.id)):o=!0})),n.forEach((e=>{var t;const r=this.objectMap.get(e);var n;r&&(this.confirmPotentialSelections(r),null===(n=r.destroy)||void 0===n||n.call(r),this.objectMap.delete(e));null===(t=this.objectApis.get(e))||void 0===t||t.destroy(),this.objectApis.delete(e)})),this._rendered=t,this.tryToResolve(),o}destroy(){for(const e of this.objectApis.values())e.destroy();this._objectMap=new Map,this._objectApis=new Map}saveObject(e,t){this.objectMap.set(e,t)}saveObjectApi(e,t){this._objectApis.set(e,t)}onRendered(e){this.rendered.add(e),this.tryToResolve()}getChildrenObjects(){const{visibleLayoutObjects:e}=this._dependencyData,t=[];return e.forEach((e=>{const r=this.objectMap.get(e.id);r&&t.push(r)})),t}getChildLayout(e){const{modifiedLayout:t}=this._dependencyData;return t.qChildList.qItems.find((t=>t.qInfo.qId===e))}getObjectOptions(e){var t,r;const{viewState:n,modifiedLayout:o,options:i}=this._dependencyData,{chartAnimations:a,direction:l,progressiveRendering:s,freeResize:c,navigation:d}=i;return{isReadonly:!1,setController:t=>{this.saveObject(e,t)},onRendered:()=>{this.onRendered(e)},onInitialRender:()=>{this.onRendered(e)},isParentMaster:!(null==o||!o.qExtendsId),isSnapshot:!!o.snapshotData,...!(null==n||null===(t=n.viewStates)||void 0===t||!t[e])&&{viewState:null==n?void 0:n.viewStates[e]},...!(null==n||null===(r=n.layouts)||void 0===r||!r[e])&&{layout:n.layouts[e]},direction:l,chartAnimations:a,progressiveRendering:s,freeResize:c,navigation:d,disableThemeBorder:!1,fallbackToClient:i.fallbackToClient}}confirmPotentialSelections(e){e&&"selectionsApi"in e&&e.selectionsApi.active&&e.selectionsApi.confirm()}}const Zm=({chartObject:e,embed:t,renderHelper:r,direction:n,interactions:o,env:i})=>{const a=_(null),{id:l}=e;A((()=>{if(l&&a.current){const e=r.getObjectOptions(l)||{};e.disableThemeBorder=!0,t.render({id:l,element:a.current,options:e}).then((e=>{r.saveObjectApi(l,e)})).catch((e=>{var t;const n=null===(t=r.getChildLayout(l))||void 0===t||null===(t=t.qInfo)||void 0===t?void 0:t.qType;console.error("Could not render chart with id",l,n,e)}))}}),[l,t,r,n]);const s=I((()=>()=>{if(null!=e&&e.id&&i.anything){const t=null==e?void 0:e.label,{sense:n}=i.anything,o="current",a=r.objectMap.get(e.id);a&&n.propertyPanel.show({model:a.model,parent:o,headerLabel:t,keepCurrentActiveCell:!0})}}),[i,e,r]);return A((()=>{const e=null==a?void 0:a.current;return e&&null!=o&&o.edit&&e.addEventListener("dblclick",s),()=>{null==e||e.removeEventListener("dblclick",s)}}),[a,s,o]),S.createElement("div",{ref:a,style:{position:"relative",height:"100%",width:"100%"},"data-testid":`tab-panel-${e.childRefId}`})};var Jm;!function(e){e.TABS_HEIGHT="36px"}(Jm||(Jm={}));const Qm=({charts:e,handleChangeTab:t,activeTabId:r,element:n,translator:o,accessibility:i,disabled:a})=>{const[l,s]=S.useState(null),c=Boolean(l),d=()=>{s(null)},u=T((e=>{null==e||e.focus()}),[]);return S.createElement(S.Fragment,null,S.createElement(Gc,{onClick:e=>{s(e.currentTarget)},disabled:a,"aria-haspopup":"menu","data-testid":"chartTabMenuDropdownButton",tabIndex:i?0:-1,"aria-label":o.get("Container.Label.Visualizations"),className:ym.TAB_MENU,sx:{m:"2px"}},S.createElement(Fm,null)),S.createElement(xu,{anchorEl:l,open:c,onClose:d,elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{py:0}},slotProps:{paper:{sx:{maxHeight:"500px",maxWidth:"500px"}}}},e.map((e=>S.createElement(Ru,{className:ym.TAB_MENU_ITEM,ref:r===e.childRefId&&c?u:null,key:`chartTabMenu-${e.childRefId}`,onClick:()=>{(e=>{t(e.childRefId),d(),window.setTimeout((()=>{var e;null===(e=n.getElementsByClassName(ym.ACTIVE_TAB_PANEL))||void 0===e||null===(e=e[0])||void 0===e||e.focus()}),0)})(e)},sx:{...r===e.childRefId?{backgroundColor:"rgba(0, 0, 0, 0.1)"}:{}},"aria-label":e.label,title:e.label},S.createElement(ic,{variant:"inherit",noWrap:!0},e.label))))))},eb=({label:e,id:t})=>S.createElement(Oc,{className:ym.TAB_LABEL,id:`tab-label-${t}`,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",overflow:"hidden",flexWrap:"wrap"}},S.createElement("span",{style:{width:"100%",overflowWrap:"break-word",hyphens:"auto",fontWeight:"bold",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",lineHeight:"normal",overflow:"hidden"}},e)),tb=({libraryInfo:e,chart:t,iconPosition:r,id:n})=>{let o;switch(r){case"bottom":o={marginTop:"6px"};break;case"top":o={marginBottom:"6px"};break;case"end":o={marginInlineStart:"8px"};break;default:o={marginInlineEnd:"8px"}}o.display="flex",o.alignItems="center",o.height="100%",o.flex="1 0 0";return 0===t.condition?S.createElement(Dm,{id:`${ym.TABS_ICON}-${n}`,style:o}):e?S.createElement(Bm,{id:`${ym.TABS_ICON}-${n}`,libraryInfo:e,style:o}):null},rb=({models:e,activeTabId:t,handleChangeTab:r})=>{const{modifiedLayout:n,chartList:o,interactions:i,accessibility:a}=e,l=null==o?void 0:o.getCharts(),s=n.objects.filter((e=>!Ym(e,i))),{orientation:c,tabContainerStyle:d,ScrollButtonComponent:u}=(({orientation:e})=>"left"===e?{orientation:"vertical",tabContainerStyle:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"25%",flexShrink:0},ScrollButtonComponent:Hm}:{orientation:"horizontal",tabContainerStyle:{display:"flex",flexDirection:"row",alignItems:"center"},ScrollButtonComponent:Gm})(n),p=!1===i.active&&!i.edit,[h,f]=k(!1),m=T((e=>{if(e){const t=e.getElementsByClassName("MuiTabs-flexContainer")[0];if(t)return void f("vertical"===c?t.scrollHeight>t.offsetHeight:t.scrollWidth>t.offsetWidth)}f(!1)}),[c]);return S.createElement(Oc,{className:ym.TAB_WRAPPER,sx:d,ref:e=>{m(e)}},n.useDropdown&&h&&S.createElement(Qm,{charts:s,handleChangeTab:r,activeTabId:t,accessibility:a,translator:e.translator,element:e.element,disabled:p}),S.createElement(Qu,{value:t,onChange:(e,t)=>{r(t)},ScrollButtonComponent:u,variant:"scrollable",orientation:c,scrollButtons:!!n.useScrollButton&&"auto",TabScrollButtonProps:{...p&&{disabled:!0}},sx:{height:"100%",width:"100%",minHeight:Jm.TABS_HEIGHT}},s.map((r=>{var o,i,s,d,u;const h=null===(o=$p(n,r.childRefId))||void 0===o||null===(o=o.qData)||void 0===o?void 0:o.visualization,f=h&&(null==l||null===(i=l[h])||void 0===i?void 0:i.libraryInfo),m=e.styleModel.getTabStyle(r.childRefId),b=0===r.condition||n.showIcons&&f&&!1!==(null==m||null===(s=m.icon)||void 0===s?void 0:s.show),g="vertical"===c?"top":"start",v=e.styleModel.resolveComponentStyle({compPath:"icon.position",defaultValue:g}),y=e.styleModel.resolveComponentStyle({compPath:"label.show"}),x=r.label&&(null!==(d=null==m||null===(u=m.label)||void 0===u?void 0:u.show)&&void 0!==d?d:!1!==y),E=`${n.qInfo.qId}-${r.childRefId}`;return S.createElement(Tu,{className:`${ym.TAB} ${t===r.childRefId?ym.ACTIVE_TAB:""}`,disabled:p,id:`tab-${E}`,value:r.childRefId,title:r.label,label:x?S.createElement(eb,{label:r.label,id:E}):void 0,icon:b?S.createElement(tb,{libraryInfo:f,chart:r,iconPosition:v,id:E}):"",iconPosition:v,key:r.childRefId,"data-testid":`container-tab-${r.childRefId}`,sx:{textAlign:"vertical"!==c||n.showIcons?"center":"start",minWidth:"vertical"===c?"100%":void 0,minHeight:Jm.TABS_HEIGHT,padding:"6px 16px","&:hover":{paddingBottom:"4px"},"&.Mui-disabled":{opacity:"inherit"}},"aria-label":r.label,"aria-controls":`tab-panel-${E}`,tabIndex:a&&t===r.childRefId?0:-1})}))))},nb=({models:e,renderHelper:t,activeTabId:r,handleChangeTab:n,env:o})=>{const{modifiedLayout:i,embed:a,interactions:l,options:s,styleModel:c,accessibility:d}=e,u=i.objects,p=l.edit||!!u.find((e=>0!==e.condition)),h=i.showTabs&&p,f="left"===i.orientation?"row":"column",m=c.getStyleClasses();return S.createElement(Oc,{sx:{display:"flex",flexDirection:f,height:"100%",width:"100%",direction:s.direction,...m}},h&&S.createElement(rb,{models:e,activeTabId:r,handleChangeTab:n}),u.map((e=>{const n=`tab-panel-${i.qInfo.qId}-${e.childRefId}`,c=r===e.childRefId&&!Ym(e,l);return S.createElement(Oc,{role:"tabpanel",id:n,key:n,"aria-label":e.label,sx:{height:"100%",width:"100%",padding:"2px",boxSizing:"border-box",direction:"ltr",flex:"1 0 0","&:focus-visible":{boxShadow:"inset 0 0 0 2px #0275D9",borderRadius:"3px",zIndex:1200}},...c?{className:ym.ACTIVE_TAB_PANEL,tabIndex:d?0:-1}:{hidden:!0}},c&&S.createElement(Zm,{chartObject:e,renderHelper:t,direction:s.direction,embed:a,interactions:l,env:o}))})))};let ob=function(e){return e.COPY="copy",e.PASTE="paste",e.RESET_COPY_BUFFER="resetCopyBuffer",e}({}),ib=function(e){return e.COPY="copy",e.PASTE="paste-and-replace",e.DUPLICATE="duplicate",e.DELETE="delete",e.CUT="cut",e.EDIT_PROPERTIES="edit",e.ZOOM_IN="zoom-in",e.VISUAL_EXPLORATION="visual-exploration",e.MONITOR_IN_HUB="addto",e.TAKE_SNAP_SHOT="take-snapshot",e.SNAP_SHOT_GROUP="snapshotGroup",e.REORDER_LAYERS_GROUP="reorder-layers-group",e.BRING_TO_FRONT="bring-to-front",e.BRING_FORWARD="bring-forward",e.SEND_TO_BACK="send-to-back",e.SEND_BACKWARDS="send-backwards",e.CONTAINER_HEADER="container-header",e.CHART_HEADER="chart-header",e.ALERT_GROUP="alertGroup",e.ADD_TO_MASTER_ITEMS="add-to-master-items",e.UNLINK_VISUALIZATION="unlink",e.DEVELOPER="object-developer",e.SHOW_DETAILS="object-info",e.EXPLAIN_KEY_DRIVERS_OLD_ID="explainKeyDrivers",e.EXPLAIN_KEY_DRIVERS="key-driver",e.SUBSCRIBE="subscribe",e.NOTES_GROUP="notesGroup",e.DOWNLOAD="download",e.SHARE_IMAGE="share",e}({});const ab=[ib.PASTE,ib.ZOOM_IN,ib.VISUAL_EXPLORATION],lb=[ib.VISUAL_EXPLORATION,ib.ALERT_GROUP,ib.SHOW_DETAILS,ib.EXPLAIN_KEY_DRIVERS,ib.EXPLAIN_KEY_DRIVERS_OLD_ID],sb=[ib.DELETE,ib.CUT,ib.ADD_TO_MASTER_ITEMS,ib.UNLINK_VISUALIZATION],cb=[ib.PASTE],db=(e,t)=>{const{childRefId:r}=e.model.layout,n=t.objects.find((e=>e.childRefId===r));return{...e,additionalData:{label:null==n?void 0:n.label}}},ub=(e,t,r,n,o)=>{const i=t.getSupportFunction(ib.COPY);if(!i)return void e.deleteItem(ib.COPY);const a=()=>{i(db(r,n)).catch((()=>{}))},l=e.items.find((e=>e.id===ib.COPY));if(l)l.updateItem({select:a});else if(o){const t=e.items.findIndex((e=>e.id===ib.CUT)),r=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.copy",tid:ib.COPY,id:ib.COPY,icon:"copy",select:a,items:[]},r)}},pb=e=>e.interactions.edit&&!e.modifiedLayout.qExtendsId,hb=async(e,t,r,n)=>{const o=t.getBuilder("default");if(!o)return;const i=await o();i.addItem({translation:"contextMenu.containerOptionsHeader",tid:ib.CONTAINER_HEADER,id:ib.CONTAINER_HEADER,bold:!0,items:[]},0);const a=pb(r);i.items.forEach((e=>{(lb.includes(e.id)||!a&&cb.includes(e.id))&&i.deleteItem(e.id)})),a&&await(async(e,t,r)=>{var n;const o=t.getSupportFunction(ob.PASTE),i=await(null==o||null===(n=o())||void 0===n?void 0:n.catch((()=>{})));if(!i||bp.includes(i.template))return void e.deleteItem(ib.PASTE);const a=()=>{r()},l=e.items.find((e=>e.id===ib.PASTE));if(l)l.updateItem({translation:"contextMenu.paste",select:a});else{const t=e.items.findLastIndex((e=>e.id===ib.COPY||e.id===ib.DEVELOPER||e.id===ib.CONTAINER_HEADER)),r=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.paste",tid:ib.PASTE,id:ib.PASTE,icon:"paste",select:a,items:[]},r)}})(i,t,n),e.updateItem({items:i.items}),1===e.items.length&&e.deleteItem(ib.CONTAINER_HEADER)},fb=e=>{const t={[ib.MONITOR_IN_HUB]:!0,[ib.SUBSCRIBE]:!0,[ib.NOTES_GROUP]:!0,[ib.DOWNLOAD]:!0,[ib.SHARE_IMAGE]:!0};e.items.forEach((r=>{t[r.id]?e.deleteItem(r.id):r.items&&fb(r)}))},mb=(e,t,r,n,o,i)=>a=>{const{dataHandler:l,modifiedLayout:s}=n;if(pb(n)){r.isInvalid||(((e,t,r,n)=>{const{model:o,modifiedLayout:i}=r,a=e.items.findLastIndex((e=>e.id===ib.CHART_HEADER||e.id===ib.REORDER_LAYERS_GROUP)),l=a>=0?1+a:void 0;e.addItem({translation:"Object.Container.Props.EditProperties",tid:ib.EDIT_PROPERTIES,id:ib.EDIT_PROPERTIES,icon:ib.EDIT_PROPERTIES,items:[],select:()=>{const{childRefId:e}=t.model.layout,r=i.objects.find((t=>t.childRefId===e)),a=null==r?void 0:r.label,{sense:l}=n.anything,s=o;l.propertyPanel.show({model:t.model,parent:s,headerLabel:a})}},l)})(a,r,n,o),((e,t,r,n,o,i)=>{const a=n.getSupportFunction(ib.COPY);if(!a)return void e.deleteItem(ib.CUT);const l=()=>{o&&a(db(r,i)).then((async()=>{await(null==o?void 0:o.deleteChildren([t]))})).catch((()=>{}))},s=e.items.find((e=>e.id===ib.CUT));if(s)s.updateItem({select:l});else{const t=e.items.findLastIndex((e=>e.id===ib.ADD_TO_MASTER_ITEMS||e.id===ib.UNLINK_VISUALIZATION||e.id===ib.EDIT_PROPERTIES||e.id===ib.REORDER_LAYERS_GROUP||e.id===ib.DEVELOPER)),r=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.cut",tid:ib.CUT,id:ib.CUT,icon:"cut",select:l,items:[]},r)}})(a,t,r,e,l,s),ub(a,e,r,s,!0),((e,t,r,n,o)=>{const i=t.getSupportFunction(ob.COPY),a=t.getSupportFunction(ob.PASTE);if(!i||!a)return void e.deleteItem(ib.DUPLICATE);const l=()=>{i(db(r,n)).then((()=>{o()})).catch((()=>{}))},s=e.items.find((e=>e.id===ib.DUPLICATE));if(s)s.updateItem({select:l});else{const t=e.items.findIndex((e=>e.id===ib.COPY)),r=t>=0?1+t:void 0;e.addItem({translation:"Common.Duplicate",tid:ib.DUPLICATE,id:ib.DUPLICATE,icon:ib.DUPLICATE,items:[],select:l},r)}})(a,e,r,s,i)),((e,t,r)=>{const n=()=>{r&&r.deleteChildren([t]).catch((()=>{}))},o=e.items.find((e=>e.id===ib.DELETE));if(o)o.updateItem({select:n});else{const t=e.items.findLastIndex((e=>e.id===ib.DUPLICATE||e.id===ib.ADD_TO_MASTER_ITEMS||e.id===ib.UNLINK_VISUALIZATION||e.id===ib.REORDER_LAYERS_GROUP||e.id===ib.DEVELOPER)),r=t>=0?1+t:void 0;e.addItem({translation:"Common.Delete",tid:ib.DELETE,id:ib.DELETE,icon:"bin",items:[],select:n},r)}})(a,t,l)}else ub(a,e,r,s,!1)},bb=(e,t,r,n)=>{g((async(o,i,a)=>{var l;if(!a)return!1;const s=((e,t)=>()=>{if(!e)return;const r=t.getSupportFunction(ob.PASTE);r&&r().then((async({template:t,init:r,children:n,additionalData:o})=>{const{label:i}=o,a={label:i};r.qExtendsId?await e.addMasterObjectAsChild({initProps:r,children:n,objectInitProps:a}):await e.addVizAsChild({type:t,initProps:r,children:n,objectInitProps:a})})).catch((e=>{e&&t.getSupportFunction(ob.RESET_COPY_BUFFER)}))})(r.dataHandler,a);if(await hb(o,a,r,s),fb(o),!(e=>{var t;let r;r="qv-radial-contextmenu"===e.type?null===(t=e.touches[0])||void 0===t?void 0:t.target:e.target;return r&&((e,t)=>{let r=e;for(;r;){var n;if(null!==(n=r.classList)&&void 0!==n&&n.contains(t))return r;r=r.parentNode}return null})(r,ym.ACTIVE_TAB_PANEL)})(i))return!0;const c=null===(l=r.modifiedLayout.objects.find((t=>t.childRefId===e)))||void 0===l?void 0:l.id;if(!c)return!0;const d=t.objectMap.get(c);if(!d)return!0;const u=mb(a,e,d,r,n,s),p=await(async(e,t,r,n)=>{const o=pb(r),i=e.getBuilder("object");if(!i)return;const a=await i(t);return a.addItem({translation:"contextMenu.chartOptionsHeader",tid:ib.CHART_HEADER,id:ib.CHART_HEADER,bold:!0,items:[]},0),n(a),a.items.forEach((e=>{(ab.includes(e.id)||!o&&sb.includes(e.id))&&a.deleteItem(e.id)})),1===a.items.length&&a.deleteItem(ib.CHART_HEADER),a})(a,d,r,u);return!p||(o.items.length>0&&p.addItem({translation:"contextMenu.subMenuContainerOptions",tid:"tabbed-container-menu",id:"tabbed-container-menu",icon:"tabbed-container",items:[...o.items]},p.items.length),o.updateItem({items:p.items}),!0)}))},gb=({element:e,models:o,env:i})=>{const l=((e,t)=>{const[o,i]=n(void 0);return r((()=>{if(0===e.getElementsByClassName(t).length){const r=document.createElement("div");r.className=t,e.appendChild(r);const n=vp(r);i(n)}return()=>{null==o||o.unmount()}}),[e,t,o]),o})(e,"init-component"),{options:s,modifiedLayout:c,interactions:d,model:u}=o,{qChildList:p}=c,h=fp(s.direction),f=(e=>{const{viewState:r}=t(),{snapshotData:n}=e;if(n){var o;const{layouts:e}=n.objectsData;return{layouts:e,viewStates:null===(o=n.viewState)||void 0===o?void 0:o.viewStates}}if(r){const{viewStates:e}=r;return{viewStates:e}}})(c),m=a((()=>Um(c)),[c]),g={modifiedLayout:c,activeTabId:m,env:i},[v,y]=wm(g);y(g);const x=a((()=>c.objects.filter((e=>m===e.childRefId))),[m,c.objects]),{renderHelper:E}=(e=>{const{visibleLayoutObjects:t,options:o}=e,[i]=n((()=>new Xm(e))),[,a]=n(o);return i.dependencyData=e,b((async()=>{var e,r;return a((e=>(e!==o&&t.forEach((e=>i.recreateMap.set(e.id,!0))),o))),i.syncObjects(t)?null===(r=i.createTimerForRendering())||void 0===r?void 0:r.promise:null===(e=i.resolver)||void 0===e?void 0:e.promise}),[t,o]),r((()=>()=>{i.destroy()}),[i]),{renderHelper:i}})({modifiedLayout:c,visibleLayoutObjects:x,viewState:f,options:s});bb(m,E,o,i);const[C]=n({current:void 0}),w=a((()=>e=>{(async({model:e,patchList:t})=>{if(null!=e&&e.applyPatches){const r=await e.getEffectiveProperties(),n=[];t.forEach((e=>{const{newValue:t,propertyName:o}=e,i=void 0!==r[o]?"Replace":"Add";t?n.push({qPath:`/${o}`,qOp:i,qValue:t&&JSON.stringify(t)}):"Replace"===i&&n.push({qPath:`/${o}`,qOp:"Remove"})})),n.length>0&&await e.applyPatches(n,!0)}})({model:u,patchList:[{newValue:e,propertyName:"cachedTabId"}]})}),[u]),R=a((()=>({setSelected:e=>{var t;const r=null===(t=v.modifiedLayout.objects.find((t=>t.id===e[0])))||void 0===t?void 0:t.childRefId;r?w(r):C.current=e[0]}})),[w,v,C]);r((()=>{const e=(({chartObjects:e,activeTabId:t})=>{var r;return!Wm(e,t)&&e.length>0?null===(r=e[0])||void 0===r?void 0:r.childRefId:t})({chartObjects:v.modifiedLayout.objects,activeTabId:v.activeTabId});if(e!==v.activeTabId)w(e);else if(C.current){var t;const e=null===(t=v.modifiedLayout.objects.find((e=>e.id===C.current)))||void 0===t?void 0:t.childRefId;e&&w(e)}C.current=void 0}),[null==c?void 0:c.objects.length,v,C,w]),r((()=>{const e=(({chartObjects:e,activeTabId:t,interactions:r})=>{const n=Wm(e,t);if(!n||Ym(n,r)){const r=e.find((e=>0!==e.condition));return(null==r?void 0:r.childRefId)||t}return t})({chartObjects:v.modifiedLayout.objects,activeTabId:v.activeTabId,interactions:d});e!==v.activeTabId&&w(e)}),[d,null==c?void 0:c.objects,v,w]);const k=0===p.qItems.length&&d.edit;return r((()=>{null==l||l.render(S.createElement(Kl,{theme:h},k?S.createElement(Km,{Icon:zm,dataHandler:o.dataHandler,modifiedLayout:o.modifiedLayout,translator:o.translator,sharedContainerUtilities:R}):null,!k&&S.createElement(nb,{models:o,renderHelper:E,activeTabId:m,handleChangeTab:w,env:i})))}),[l,o,h,k,E,m,R,w,i]),{renderHelper:E,sharedContainerUtilities:R,activeTabId:m}};var vb={targets:[]};const yb={showTitles:!0,title:"",subtitle:"",footnote:"",disableNavMenu:!0,showDetails:!1,objects:[],qChildListDef:{qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition"}},showTabs:!0,useScrollButton:!0,useDropdown:!1,showIcons:!1,components:[],defaultTabId:"",orientation:"top",fontsUsed:[]};!function(e,t){void 0===t&&(t={});var r=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".init-component {\n height: 100%;\n overflow: hidden;\n}\n");const xb=e=>e.map((e=>{if(e.canReceive){const t=e=>"libraryitem"===e.type&&("field"===e.item.type||"measure"===e.item.type||"dimension"===e.item.type);return{...e,canReceive:r=>t(r)&&e.canReceive(r)}}return e})),Eb=(e,t)=>{let r=!0;const n=t.objects.reduce(((t,n)=>{const o=n.id;if(0!==n.condition){const i=e.get(o);return i&&(e=>e.supportExport())(i)&&(r=!1,t.objectMap.set(o,i)),t.objects.push(n),t}return t}),{objects:[],objectMap:new Map});return r?{objects:[],objectMap:new Map}:n}}}}));
89
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,c,d,u,p=e.length,h=e.search(/[0-9\-\+#]/),f=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),b=m.search(/[0-9\-\+#]/),g=p-b,v=e.substring(g,g+1),y=g+("."===v||","===v?1:0),x=b>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(h,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),d=e[0].split(i),e[0]=d.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=d[1]&&d[d.length-1].length){for(m="",g=(u=t[0]).length%l,p=u.length,y=0;y<p;y++)m+=u.charAt(y),!((y-g+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),f+(r?"-":"")+n+x}},ah({exports:{}});var bh="'Source Sans Pro', 'Arial', 'sans-serif'",gh="#333333",vh="#595959",yh="#737373",xh="#cccccc",Eh="#e6e6e6";function Sh(e){var t={};return[].concat(Nu(e),Nu([["","","color"],["object","","fontFamily"],["object","axis.label.name","color",vh],["object","axis.label.name","fontFamily",bh],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",xh],["object","axis.line.minor","color",Eh],["object","axis.title","color"],["object","axis.title","fontFamily",bh],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",Eh],["object","grid.line.major","color",xh],["object","grid.line.minor","color",Eh],["object","label.value","color",vh],["object","label.value","fontFamily",bh],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",vh],[!1,"label.value","lightColor",Eh],["object","outOfRange","color","#999"],["object","legend.title","color",gh],["object","legend.title","fontFamily",bh],["object","legend.title","fontSize","15px"],["object","legend.label","color",vh],["object","legend.label","fontFamily",bh],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",gh],["object","referenceLine.label.name","fontFamily",bh],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",Eh],["object","referenceLine.outOfBounds","fontFamily",bh],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",yh,function(e){return"transparent"===e?yh:e}]])).reduce((function(e,r){var n="".concat(r[0],"-").concat(r[1],"-").concat(r[2],"}");return t[n]||(t[n]=!0,e.push(r)),e}),[]).sort((function(e,t){return(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0)}))}var Ch=function(e){return e};function wh(e){var t=e.theme,r=e.id,n=e.transform,o=e.extend,i=e.matrix,a={},s=n.reduce((function(e,t){var r=ju(t,2),n=r[0],o=r[1];return e[n]=o,e}),{});return i.forEach((function(e){var n=ju(e,5),o=n[0],i=n[1],l=n[2],c=n[3],d=n[4],u=void 0===d?function(e){return e}:d,p=function(e){var t=e.theme,r=e.base,n=e.path,o=e.attribute,i=e.defaultValue,a=void 0===i?void 0:i;if(!t||!1===r)return a;var s=t.getStyle(r,n,o);return void 0===s?a:s}({theme:t,base:"object"===o&&r?"".concat("object",".").concat(r):o,path:i,attribute:l,defaultValue:c}),h=(s["".concat(i,".").concat(l)]||Ch)(u(p));lh(a,[i,l].filter(Boolean).join("."),h)})),o.forEach((function(e){var t=ju(e,2),r=t[0],n=t[1];lh(a,r,n)})),a}const Rh={qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",containerChildId:"/containerChildId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition"}};function kh(e){if(!e.objects)return{};const t=Tu(e);return{container_id:e.qInfo.qId,objects:e.qChildList.qItems.map((r=>({chart_type:r.qData.visualization,chart_id:r.qInfo.qId,chart_isMaster:!!r.qData.qExtendsId,tab_isVisible:0!==t[r.qData.childRefId]?.condition,tab_isActive:r.qData.childRefId===e.cachedTabId})))}}const Ah=({ref:e,theme:t,change:r})=>({component:"inline-wrapper",items:{bgColorDropdown:{ref:`${e}.useColorExpression`,width:9,component:"dropdown",change(t){(ih(t,`${e}.color`)||ih(t,`${e}.colorExpression`))&&(lh(t,`${e}.color`,void 0),lh(t,`${e}.colorExpression`,void 0)),r?.(t)},options:[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],defaultValue:!1,placeholder:"properties.colorMode.primary"},bgColorPicker:{component:"color-picker",ref:`${e}.color`,width:3,show:t=>!ih(t,`${e}.useColorExpression`),disableNone:!1,defaultValue:()=>({color:t?.getStyle("object.tabbedContainer",e,"color")??"none"}),showAlpha:!0,change:e=>{r?.(e)}},bgColorExpression:{component:"input-field-expression",ref:`${e}.colorExpression`,show:t=>ih(t,`${e}.useColorExpression`)}}}),_h=({theme:e})=>({bgColorAllWrapper:Ah({ref:"background.unselected"}),selectedTab:{translation:"properties.chartType.selected",component:"text"},bgColorSelectedWrapper:Ah({ref:"background.selected"}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:Ah({ref:"background.hover",theme:e,change:e=>{lh(e,"indicator.hover.color",ih(e,"background.hover.color")),lh(e,"indicator.hover.useColorExpression",ih(e,"background.hover.useColorExpression"))}})},show:(e,t)=>"left"===t.layout.orientation}}),Ih=({paths:e,fontResolver:t,theme:r})=>{const n=`${e.theme}.fontSize`;return{fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.size`,options:()=>t.getOptions(n),defaultValue:()=>t.getDefaultValue(n),show:e=>!1!==e.icon?.show},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:r.getStyle("object.tabbedContainer",e.theme,"color")}),show:e=>!1!==e.icon?.show}}},position:{type:"string",ref:"icon.position",component:"dropdown",options:[{value:"start",translation:"properties.dock.start"},{value:"top",translation:"properties.dock.top"},{value:"end",translation:"properties.dock.end"},{value:"bottom",translation:"properties.dock.bottom"}],defaultValue:(e,{layout:t})=>"left"===t.orientation?"top":"start",show:e=>"tabs"===e.key},hide:{type:"boolean",translation:"properties.show",ref:"icon.show",component:"switch",defaultValue:!0,show:e=>"tab"===e.key}}},Th=({theme:e})=>({colorWrapper:Ah({ref:"indicator.selected",theme:e}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:Ah({ref:"indicator.hover",theme:e,change:e=>{lh(e,"background.hover.color",ih(e,"indicator.hover.color")),lh(e,"background.hover.useColorExpression",ih(e,"indicator.hover.useColorExpression"))}})},show:(e,t)=>"left"!==t.layout.orientation}}),Lh=({paths:e,fontResolver:t,theme:r})=>{const n=`${e.theme}.fontFamily`,o=`${e.theme}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e.ref}.fontFamily`,options:()=>t.getOptions(n),defaultValue:()=>t.getDefaultValue(n),change:(e,t,r)=>{const n=e.label?.fontFamily,o=(e=>{const t=[];return e.objects.forEach((e=>{const r=e.components?.find((e=>"tab"===e.key)),n=r?.label?.fontFamily;n&&-1===t.indexOf(n)&&t.push(n)})),t})(r);n&&-1===o.indexOf(n)&&o.push(n),r.fontsUsed=o}},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.fontSize`,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:r.getStyle("object.tabbedContainer",e.theme,"color")})}}},alignment:{component:"text-align-buttons",ref:"label.alignment",show:e=>"tabs"===e.key},hide:{type:"boolean",translation:"properties.show",ref:"label.show",component:"switch",defaultValue:!0}}},Oh=({ref:e,key:t,fontResolver:r,theme:n})=>({translation:"Object.Container.Props.Label",component:"panel-section",items:{label:{component:"items",ref:e,key:t,items:Lh({paths:{ref:"label",theme:"label.value"},fontResolver:r,theme:n})}}}),Ph=({ref:e,key:t})=>({translation:"Visualizations.Descriptions.Width",component:"panel-section",items:{width:{component:"items",ref:e,key:t,items:{unit:{type:"string",ref:"width.unit",component:"dropdown",options:[{value:"%",translation:"Object.Table.Column.Percentage"},{value:"px",translation:"Object.Table.Column.Pixels"}],defaultValue:"%",change:e=>{if(void 0!==e.width?.value&&"%"===e.width?.unit)for(let t=0;t<e.width.value.length;t++)e.width.value[t]>100?e.width.value[t]=100:e.width.value[t]<5&&(e.width.value[t]=5)}},valuePixel:{translation:"properties.axis.minMax",component:"slider",ref:"width.value",range:!0,step:1,min:0,max:800,show:e=>"px"===e.width?.unit,defaultValue:[0,360]},valuePercentage:{translation:"properties.axis.minMax",component:"slider",type:"array",ref:"width.value",range:!0,step:1,min:5,max:100,show:e=>!e.width?.unit||"px"!==e.width?.unit,defaultValue:[5,20]}}}}}),Mh=({theme:e,ref:t,key:r})=>({translation:"Object.TabbedContainer.Indicator",component:"panel-section",items:{indicator:{component:"items",ref:t,key:r,items:Th({theme:e})}}}),jh=({ref:e,key:t,fontResolver:r,theme:n})=>({translation:"properties.icon",component:"panel-section",items:{icon:{component:"items",ref:e,key:t,items:Ih({paths:{ref:"icon",theme:"icon.value"},fontResolver:r,theme:n})}},show:(e,{layout:t})=>!!t.showIcons}),Nh=({theme:e,ref:t,key:r})=>({translation:"Object.OrgChart.BackgroundColor",component:"panel-section",items:{background:{component:"items",ref:t,key:r,items:"tab"===r?{bgColorWrapper:Ah({ref:"background"})}:_h({theme:e})}}}),$h=({fontResolver:e,theme:t})=>{const r="components",n="tab";return{component:"styling-panel",chartTitle:"Object.Container",tabTitle:"scripteditor.dataconnectors.delimiter.tab",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:r,items:{label:Oh({ref:r,key:n,fontResolver:e,theme:t}),width:{...Ph({ref:r,key:n}),show:(e,{layout:t})=>"left"!==t.orientation},icon:jh({ref:r,key:n,fontResolver:e,theme:t}),background:Nh({ref:r,key:n,theme:t})}}},zh={ref:"label",type:"string",translation:"Object.Container.Props.Label",defaultValue:"",expression:"optional"},Bh={ref:"condition",translation:"Object.Container.Props.ShowCondition",component:"expression",defaultValue:{qValueExpression:{qExpr:""}},expressionType:"ValueExpression",expression:"always"},Dh=e=>({component:"button",translation:"Object.Container.Props.EditProperties",disabled:(e,t)=>{const r=t.getLayout(),n=Au(r,e.childRefId)?.qMeta;return!n?.privileges?.includes("update")||!r.permissions?.update},action(t,r,{app:n}){const{sense:o}=e.env.anything,i=r.getEngineId(t.childRefId);i&&(o.propertyPanel.show({id:i,app:n,parent:"current",headerLabel:t.label}),r.setSelectedChild([i]))}}),Fh=e=>{const{sense:t}=e.env.anything;return{label:zh,condition:Bh,styling:$h({fontResolver:e.fontResolver,theme:t?.theme}),editProperties:Dh(e)}},Gh={translation:"Object.Container.Props.Chart",component:"text",show:e=>e.objects?e.objects.length<=1:e.children.length<=1},Hh={translation:"Common.Charts",component:"text",show:e=>e.objects?e.objects.length>1:e.children.length>1},Wh=e=>({type:"array",ref:"objects",itemTitleRef:e=>e.label,allowAdd:!0,customAdd:!0,allowMove:!0,allowRemove:!0,customRemove:!0,addTranslation:"Object.Container.Props.Add",cId:"childRefId",grouped:!0,add(e,t,r){const n=document.querySelector(".pp-toplist-add-button");null!==n&&r.openAddChildPopover(n)},remove(e,t,r){r.deleteChild(e.childRefId).catch((()=>{}))},items:Fh(e)}),Yh=e=>({type:"items",translation:"Object.Container.Props.Content",items:{chartLabel:Gh,chartsLabel:Hh,chartList:Wh(e)}}),Uh={type:"boolean",translation:"Object.Container.Props.ShowTabs",ref:"showTabs",defaultValue:!0,component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},Vh={type:"boolean",translation:"Object.Container.Props.UseDropdown",label:"Menu",ref:"useDropdown",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},qh={type:"boolean",translation:"Object.Container.Props.UseScrollButtons",ref:"useScrollButton",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],defaultValue:!0,show:e=>e.showTabs},Kh={type:"boolean",translation:"Object.Container.Props.ShowIcons",ref:"showIcons",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},Xh={type:"string",translation:"Object.Container.Props.DefaultTab",ref:"defaultTabId",component:"dropdown",defaultValue:void 0,options(e,t){const r=t.getLayout();return r?r.objects.map((e=>({translation:e.label,value:e.childRefId}))):[]},change(e,t){const r=Lu(t.getLayout(),e.defaultTabId);r&&t.setSelectedChild([r])},show:e=>e.objects.length>0},Zh={type:"string",translation:"properties.orientation",ref:"orientation",component:"dropdown",options:[{value:"top",translation:"properties.orientation.horizontal"},{value:"left",translation:"properties.orientation.vertical"}],defaultValue:"top",show:e=>e.showTabs},Jh=({fontResolver:e,theme:t})=>{const r="components",n="tabs";return{component:"styling-panel",chartTitle:"Object.TabContainer",tabTitle:"Object.Container.Props.ShowTabs",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{label:Oh({ref:r,key:n,fontResolver:e,theme:t}),width:Ph({ref:r,key:n}),indicator:Mh({ref:r,key:n,theme:t}),icon:jh({ref:r,key:n,fontResolver:e,theme:t}),background:Nh({ref:r,key:n,theme:t})}}},Qh={items:{details:{show:e=>!0===e.showDetails}}},ef=e=>{const{sense:t}=e.env.anything;return{type:"items",translation:"properties.presentation",grouped:!0,items:{stylingPanel:Jh({fontResolver:e.fontResolver,theme:t?.theme}),container:{type:"items",items:{showTabs:Uh,useDropdown:Vh,useScrollButton:qh,showIcons:Kh,orientation:Zh,defaultTabId:Xh}}}}},tf=e=>({uses:"settings",items:{general:Qh,presentation:ef(e)}}),rf=e=>({type:"items",component:"accordion",items:{content:Yh(e),settings:tf(e)}}),nf=e=>{const{sense:t}=e.env.anything,r=function(e){var t=e.theme,r=e.translator,n=e.config,o=void 0===n?{}:n,i=e.flags,a=function(e){var t=e.config,r=void 0===t?{}:t,n=r.id,o=r.paths;return{id:void 0===n?"object":"".concat("object",".").concat(n),paths:Array.isArray(o)?o:[]}}({config:o}),s=a.id,l=a.paths,c={};l.forEach((function(e){var n=e.split(".");ip(n);for(var o=c,a=0;a<n.length;a++){var l=n[a];a===n.length-1?o[l]=tp({theme:t,translator:r,id:s,path:e,flags:i}):void 0===o[l]&&(o[l]={}),o=o[l]}}));var d=function(e){var t=e.split(".");ip(t);for(var r=c,n=0;n<t.length;n++){var o=t[n];if(void 0===r[o])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));r=r[o]}return r};return c.getDefaultValue=function(e){return d(e).getDefaultValue()},c.getOptions=function(e){return d(e).getOptions()},c}({theme:t?.theme,translator:e.env.translator,flags:e.env.flags,config:{id:"tabbedContainer",paths:["label.value","icon.value"]}}),n=function(e){return{async getDropOptions(e,t,r){const{item:n}=t,o=e.getCreatePropertyHandler();if(o.setModel(e.model),"state"===t.item.type){const n=await e.model.getProperties();return o.setProperties(n),o.setLayout(e.model?.layout),this.getDropStateOptions(t,o,e.model,r)}if("visualization"===n.type)return t.menu.addItem({translation:["Object.Container.DropItem",n.name],tid:"addvisualization",select(){o.addChild({initProps:{qExtendsId:n.id,qInfo:{qType:"undefined"}}})?.then((e=>{e&&o.setSelectedChild([e.id])}))}}),void r();const i=await t.item.getDropOption(t.item);"newObject"===i?.id&&t.menu.addItem({translation:["Object.Container.DropItem",n.name],tid:"createvisualization",select(){o.addChild({initProps:{...i.args.init,visualization:i.args.template},children:i.args.children?.map((e=>({qProperty:e})))})?.then((e=>{e&&o.setSelectedChild([e.id])}))}}),r()},async addChild(t,r){const{model:n}=this,o=new Ou({app:n.app,data:e.propertyHandlerData});return o.setModel(n),{childModel:await o.addChild({initProps:t,children:r}),handler:o}},canReceive(e){if(this.model.layout.qExtendsId)return!1;if("libraryitem"===e.type){const{item:t}=e;if("template"===t.type&&iu.includes(t.template))return!1;if("visualization"===t.type&&iu.includes(t.visualization))return!1}return"gridcell"!==e.type||!iu.includes(e.cell.model.layout.visualization)}}}(e);return{definition:rf({...e,fontResolver:r}),support:{snapshot:!1,export:!0,sharing:!1,exportData:!1,viewData:!1},hidePatchPanel:()=>!0,getCreatePropertyHandler:t=>new Ou({app:t,data:e.propertyHandlerData}),...n,addChild:async function(e,t){const{childModel:r,handler:o}=await n.addChild.apply(this,[e,t]);r&&o.setSelectedChild([r.id])},migrate:{properties:(e,t)=>((async(e,t)=>{if(!e.objects){const{objects:r,defaultTabId:n,components:o,orientation:i,showDetails:a}=await t.getEffectiveProperties(),s=await t.getFullPropertyTree();if(!s.qProperty.objects&&r){const l=[];s.qChildren.forEach((e=>{const r=e.qProperty;if(r.qInfo.qId){const n=async n=>{const o=await t.getChild(n),i=await o.getEffectiveProperties();return{...e,qProperty:{...r,childRefId:i.childRefId}}};l.push(n(r.qInfo.qId))}}));const c=await Promise.all(l),d={...e,objects:r,defaultTabId:n??"",components:o,qChildListDef:Rh,orientation:i,showDetails:a};t.clearSoftPatches(),await t.setFullPropertyTree({...s,qProperty:d,qChildren:c})}}})(e,t),e)},exportProperties:null,importProperties:(e,t)=>{const r={...e.properties};return"masterobject"!==e.properties.qInfo.qType&&(r.qInfo.qType=t.qInfo.qType),r.visualization=t.visualization,{qProperty:r,qChildren:e.qChildren}},extendMetrics:kh}},of=({propertyHandlerData:e,element:n,sharedContainerUtilities:o,translator:i,containerId:a,dataHandler:s,renderHelper:l})=>{const c=t();a&&e.sync({containerId:a,element:n,sharedContainerUtilities:o,translator:i,dataHandler:s,renderHelper:l}),r((()=>{e.setMuiTheme(c.direction)}),[c.direction,e]),r((()=>()=>{a&&e.destroy(a)}),[a,e,c.direction])},af=e=>e.reduce(((e,{id:t,data:r})=>(r&&(e[t]=r),e)),{}),sf=async e=>{const t=[];for(const[r,n]of e){const e={id:r,data:void 0},o=n;t.push(o.getViewState().then((e=>({id:r,data:e}))).catch((()=>e)))}const r=await Promise.all(t);return{viewStates:af(r)}},lf=async e=>{const t=[];for(const[r,n]of e){const e={id:r,data:void 0},o=n;t.push(o.getSnapshotLayout().then((e=>({id:r,data:e}))).catch((()=>e)))}const r=await Promise.all(t);return af(r)},cf=(e,t)=>(n((async r=>{const n=r,{snapshotData:o}=n;if(o){const r=_u(n),i=t(e.objectMap,r),[a,s]=await Promise.all([lf(i.objectMap),sf(i.objectMap)]);o.objectsData={layouts:a},n.objects=i.objects,o.viewState=s}return r})),{getViewState:()=>sf(e.objectMap)});let df=function(e){return e.COPY="ctrl+c",e.CUT="ctrl+x",e.OPEN_CONTEXT_MENU="shift+F10",e.ESCAPE="Escape",e.SPACE=" ",e.ENTER="Enter",e.BACKSPACE="Backspace",e.DELETE="Delete",e}({}),uf=function(e){return e.KEY_DOWN="keydown",e.FOCUS_OUT="focusout",e}({}),pf=function(e){return e.TAB_MENU="tab-menu",e.TAB_MENU_ITEM="tab-menu-item",e.ACTIVE_TAB="active-tab-button",e.TAB_WRAPPER="tab-wrapper",e.TAB="tab-button",e.TAB_EXTRA_PRIO="MuiTab-root",e.TAB_LABEL="tab-label",e.TABS_ICON="tab-icon",e.ACTIVE_TAB_PANEL="active-tab-panel",e.TAB_INDICATOR="MuiTabs-indicator",e}({});const hf=`& .${pf.TAB}.${pf.TAB_EXTRA_PRIO}, .${pf.TAB}.${pf.ACTIVE_TAB}`,ff=`& .${pf.TAB}.${pf.TAB_EXTRA_PRIO}:hover`,mf=`& .${pf.TAB_LABEL}`,bf=`& .${pf.TABS_ICON} svg`,gf=`& .${pf.TAB_WRAPPER}`,vf=`& .${pf.TAB_INDICATOR}`,yf=e=>e.getElementsByClassName(pf.ACTIVE_TAB)?.[0],xf=e=>e.getElementsByClassName(pf.ACTIVE_TAB_PANEL)?.[0],Ef=({element:e,setAccessibility:t,accessibility:n,renderHelper:s,interactions:l,env:c,models:d})=>{const{modifiedLayout:{showTabs:u,objects:p,orientation:h},translator:f}=d;r((()=>{(()=>{const t="top"===h?f.get("TabContainer.Navigation.Horizontal"):f.get("TabContainer.Navigation.Vertical"),r=((e,t)=>e.map((e=>e.label||t.get("TabContainer.Object.Untitled"))).join(", "))(p,f);e.setAttribute("aria-label",f.get("TabContainer.Object.Description",[r,u?t:""]))})()}),[e,u,p,f,h]);const m=c.flags.isEnabled("VIZ-7_NEW_SHEET"),b=o(),g=i((()=>()=>{t(!1),b.enabled&&b.blur?.(!0)}),[b,t]),v=i((()=>t=>{switch(t.shiftKey?`shift+${t.key}`:t.key){case df.ESCAPE:t.stopPropagation(),b.blur?.(!0);break;case df.ENTER:case df.SPACE:{t.stopPropagation();const r=t.target;r?.classList.contains(pf.ACTIVE_TAB)&&xf(e)?.focus();break}}}),[e,b]),y=i((()=>t=>{const r=t.shiftKey?`shift+${t.key}`:t.key,n=s.objectMap.values().next().value,o=s.objectApis.values().next().value;switch(r){case df.ESCAPE:{const r=yf(e);m?(({event:e,objectApi:t,activeTab:r})=>{e.stopPropagation(),t?.viewDataToggled&&t.support?.("viewData")?t.toggleDataView():r?.focus()})({event:t,objectApi:o,activeTab:r}):(({event:e,objectApi:t,activeTab:r})=>{e.stopPropagation(),t?.viewDataToggled&&t.supportViewData?.()?t.toggleDataView?.():r?.focus()})({event:t,objectApi:n,activeTab:r});break}case df.ENTER:case df.SPACE:{const r=xf(e);m?(({event:e,objectApi:t,activeTab:r})=>{if(!t)return;e.stopPropagation(),t.setOnBlurHandler?.((()=>{r?.focus(),t.setOnBlurHandler?.(void 0)})),!t.viewDataToggled&&t.support?.("viewData")?t.toggleDataView():t.toggleFocus?.(!0)})({event:t,objectApi:o,activeTab:r}):(({event:e,objectApi:t,activeTab:r})=>{if(!t)return;e.stopPropagation(),t.setOnBlurHandler?.((()=>{r?.focus(),t.setOnBlurHandler?.(void 0)})),!t.viewDataToggled&&t.supportViewData?.()?t.toggleDataView?.():t.viewDataToggled&&"function"==typeof t.dataViewObject?.focus?t.dataViewObject.focus():"function"==typeof t.focus&&t.focus()})({event:t,objectApi:n,activeTab:r});break}case df.OPEN_CONTEXT_MENU:t.stopPropagation(),n?.viewDataToggled||e!==document.activeElement&&(g(),e.focus())}}),[e,g,m,s]),x=i((()=>e=>{const t=e.target;t?.classList.contains(pf.ACTIVE_TAB_PANEL)?y(e):v(e)}),[v,y]);r((()=>(n&&e.addEventListener(uf.KEY_DOWN,x),()=>{e.removeEventListener(uf.KEY_DOWN,x)})),[e,n,x]);const[E,S]=a(!1);r((()=>{E&&(S(!1),window.setTimeout((()=>((e=>e.getElementsByClassName(pf.TAB_MENU)?.[0])(e)??yf(e))?.focus()),0))}),[e,E]),r((()=>{t(!1)}),[l.edit,t]),r((()=>{const r=t=>{const r=t.relatedTarget;e?.contains(r)||r?.classList.contains(pf.TAB_MENU_ITEM)||g?.()};return b.enabled&&b.active&&!l.edit&&(t(!0),S(!0),e.addEventListener(uf.FOCUS_OUT,r)),()=>{e.removeEventListener(uf.FOCUS_OUT,r)}}),[b])},Sf=e=>{const[t]=a(e);return[t,function(e){Object.assign(t,e)}]},Cf=({isContainerActive:e,activeTabId:t,modifiedLayout:n,renderHelper:o})=>{const a={modifiedLayout:n,activeTabId:t,renderHelper:o,isContainerActive:e},[s,l]=Sf(a);l(a);const c=i((()=>()=>{const e=Iu(s.modifiedLayout);for(const[t,r]of s.renderHelper.objectMap.entries()){const n=s.isContainerActive&&s.activeTabId===e[t];"setIsActive"in r&&r.setIsActive(n)}}),[s]);r((()=>{s.isContainerActive&&c()}),[o.objectMap,c,s]),r((()=>{c()}),[e,c])},wf={getChar(e){let t,r=e;return r>9?(t=65+r-10,t>90&&(t+=6)):r=`${r}`.charCodeAt(0),!t||[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(r+1):String.fromCharCode(t)},base62(e){const t=this.getChar(e%62),r=Math.floor(e/62);return r>0?this.base62(r)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};const Rf={qInfo:{qId:"MasterObjectList",qType:"MasterObjectList"},qAppObjectListDef:{qType:"masterobject",qData:{name:"/qMetaDef/title",labelExpression:"/labelExpression",visualization:"/visualization",tags:"/qMetaDef/tags"}}};class kf{sessionObject;constructor(e){this.getOrCreateSessionObject(e).catch((()=>{}))}getOrCreateSessionObject=async e=>{const t=Rf.qInfo.qId;this.sessionObject=await e.getObject(t).catch((()=>e.createSessionObject(Rf)))};getMasterVisualizations=async()=>{try{if(!this.sessionObject)return[];const e=await this.sessionObject.getLayout();return("qAppObjectList"in e?e.qAppObjectList.qItems:e).map((e=>({...e.qData,qExtendsId:e.qInfo.qId}))).filter((e=>!iu.includes(e.visualization)))}catch{return[]}}}let Af=function(e){return e[e.TOP=0]="TOP",e[e.BOTTOM=1]="BOTTOM",e[e.UP=2]="UP",e[e.DOWN=3]="DOWN",e}({});class _f{model;embed;app;undoRedoModel;chartList;masterVizList;mutex;constructor({embed:e,model:t,app:r,translator:n,mutex:o}){this.model=t,this.embed=e,this.app=r;const i=r;i&&i.getUndoInfoObject&&i.getUndoInfoObject().then((e=>{this.undoRedoModel=e})).catch((()=>{})),r&&(this.masterVizList=new kf(r)),e&&n&&(this.chartList=new au(e,n)),this.mutex=o}rememberAsGroup=async e=>{let t;this.undoRedoModel&&(t=await this.undoRedoModel.startGroup());const r=await e();return t&&this.undoRedoModel&&await this.undoRedoModel.endGroup(t),r};generateProperties=async(e,t)=>await this.embed.generateProperties({type:e,properties:t});async addChild(e,t,r){if(this.model&&!iu.includes(e.visualization))try{await this.mutex.lock();const{model:n}=this,o=async()=>{e.childRefId=wf.id();const o=await n.createChild(e);if(o){const t=await n.getProperties();t.objects.unshift({childRefId:e.childRefId,...r,condition:{qValueExpression:{qExpr:""}}}),await n.setProperties(t)}return t&&o&&await Promise.all(t.map((({qProperty:e})=>o.createChild(e)))),o};return await this.rememberAsGroup(o)}catch{return}finally{this.mutex.unlock()}}addVizAsChild=async({type:e,initProps:t,objectInitProps:r,children:n})=>{try{const o=await this.generateProperties(e,t);let i=r?.label||t?.title;if(!i){const r=this.getChart(t?.visualization),n=r?.libraryInfo;i=n?.translation||n?.name||e}const a={...r,label:i};return await this.addChild(o,n,a)}catch{return}};addMasterObjectAsChild=async({initProps:e,objectInitProps:t,children:r})=>{try{if(!e||!e.qExtendsId||!this.app)return;const n=await this.app.getObject(e.qExtendsId),o=await n.getProperties(),i=t?.label||o.title||o.qMetaDef.title,a={...e,qInfo:{qType:"childObject"}},s={...t,label:i};return await this.addChild(a,r,s)}catch{return}};deleteChildren=async e=>{const{model:t}=this;if(0===e.length||!t)return!1;try{await this.mutex.lock();const r=await t.getFullPropertyTree(),{qChildren:n,qProperty:o}=r,i=new Set(e);return r.qChildren=n.filter((({qProperty:e})=>{const t=e.childRefId;return!t||!i.has(t)})),r.qProperty.objects=o.objects.filter((e=>!i.has(e.childRefId))),await t.setFullPropertyTree(r),!0}catch{return!1}finally{this.mutex.unlock()}};moveChild=async(e,t)=>{if(this.model)try{await this.mutex.lock();const r=await this.model.getProperties(),{objects:n}=r,o=n.findIndex((e=>e.childRefId===t));let i=!1;switch(e){case Af.TOP:{if(0===o)break;const e=n.splice(o,1)[0];n.unshift(e),i=!0;break}case Af.BOTTOM:{if(o===n.length-1)break;const e=n.splice(o,1)[0];n.push(e),i=!0;break}case Af.UP:{if(0===o)break;const e=n.splice(o,1)[0];n.splice(o-1,0,e),i=!0;break}case Af.DOWN:{if(o===n.length-1)break;const e=n.splice(o,1)[0];n.splice(o+1,0,e),i=!0;break}}i&&await this.model.setProperties(r)}finally{this.mutex.unlock()}};getCharts=()=>this.chartList?.getCharts()||{};getMasterVizList=()=>this.masterVizList?.getMasterVisualizations()||Promise.resolve([]);getChart=e=>this.chartList?.getChart(e);getChartLabelById=(e,t)=>{const r=e?.qChildList?.qItems.find((e=>e.qInfo.qId===t));if(!r)return"";const{visualization:n,title:o}=r.qData;if(o)return o;const i=this.getChart(n);return i?.libraryInfo?.translation||n}}class If{locked=!1;tasks=[];id;constructor(e){this.id=e}lock=async()=>this.locked?new Promise((e=>{this.tasks.push(e)})):(this.locked=!0,!0);unlock=()=>{if(this.tasks.length>0){const e=this.tasks.shift();e?.(!0)}else this.locked=!1}}const Tf={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Lf={index:-1,color:"none",alpha:1},Of=e=>{let t=parseFloat(e[1]),r=parseFloat(e[3]),n=parseFloat(e[5]);return t%=360,r/=100,n/=100,t=Math.max(0,Math.min(t,360)),r=Math.max(0,Math.min(r,1)),n=Math.max(0,Math.min(n,1)),{h:t,s:r,l:n,v:n}},Pf=(e,t,r,n,o=1)=>{let i,a,s,l=[];switch(r=Math.floor(r)){case 0:l=[e,t,0];break;case 1:l=[t,e,0];break;case 2:l=[0,e,t];break;case 3:l=[0,t,e];break;case 4:l=[t,0,e];break;case 5:l=[e,0,t];break;default:l=[0,0,0]}return i=l[0]+n,a=l[1]+n,s=l[2]+n,i=Math.round(255*i),a=Math.round(255*a),s=Math.round(255*s),`rgba(${i},${a},${s},${o})`},Mf=e=>{const{h:t,s:r,l:n}=Of(e),o=e.length>7?parseFloat(e[7]):1,i=n<=.5?2*n*r:(2-2*n)*r,a=t/60,s=i*(1-Math.abs(a%2-1));return Pf(i,s,a,n-.5*i,o)},jf={resolveExpression:({colorExpression:e=""})=>{let t=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e);if(t)return`rgb(${t[1]},${t[2]},${t[3]})`;if(t=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return`rgba(${t[1]},${t[2]},${t[3]},${t[4]})`;if(t=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e),t){const e=Math.round(Number(t[1])/255*100)/100;return`rgba(${t[2]},${t[3]},${t[4]},${e})`}if(t=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(e),t)return Mf(t);if(t=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return Mf(t);if(t=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(e),t)return(e=>{const{h:t,s:r,v:n}=Of(e),o=n*r,i=t/60,a=o*(1-Math.abs(i%2-1));return Pf(o,a,i,n-o)})(t);if(t=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e),t)return e;if(t=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e),t)return e;const r=e&&Tf[e.toLowerCase()];if(r){const e=void 0!==r.a?r.a:1;return`rgba(${r.r},${r.g},${r.b},${e})`}return"none"},getColor({style:e,defaultColor:t,theme:r}){const n=e?.color||Lf;let o;return o=e?.useColorExpression?jf.resolveExpression(e):"string"==typeof n?n:r?.getColorPickerColor(n)||"",o&&"none"!==o?o:t}},Nf=()=>br.jsx(yu,{viewBox:"0 0 16 16",children:br.jsx("path",{d:"M15 6V5H5V2H1.5a.5.5 0 0 0-.5.5V6H0V2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v4h-1Zm-5-4H6v2h4V2Zm4.5 0H11v2h4V2.5a.5.5 0 0 0-.5-.5Zm1.5 9h-1V8h1v3Zm0 3a1 1 0 0 1-1 1h-1v-1h.6a.4.4 0 0 0 .4-.4V13h1v1Zm-7 1v-1h3v1H9Zm-5 0v-1h3v1H4Zm-3 0a1 1 0 0 1-1-1v-1h1v.6c0 .22.18.4.4.4H2v1H1ZM0 8h1v3H0V8Zm4-.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4ZM5 11h6V8H5v3Z"})}),$f=({libraryInfo:e,style:t,id:r})=>br.jsx("div",{style:t,"data-testid":"tab-chart-icon",id:r,className:pf.TABS_ICON,children:br.jsx(e.IconDefinition,{})}),zf=({style:e,id:t})=>br.jsx("div",{style:e,"data-testid":"tab-hidden-icon",id:t,children:br.jsx(xu,{viewBox:"0 0 16 16",children:br.jsx("path",{d:"m13.441.795.764.646-1.839 2.174c.568.434 1.076.914 1.522 1.385a13.79 13.79 0 0 1 2.109 3 13.798 13.798 0 0 1-2.108 3c-1.382 1.457-3.345 3-5.89 3-1.34 0-2.52-.428-3.536-1.045l-1.904 2.25-.764-.646L13.441.795ZM11.72 4.379l-1.427 1.686a3 3 0 0 1-3.82 4.516l-1.354 1.6c.86.497 1.819.819 2.88.819 2.121 0 3.834-1.287 5.161-2.685A12.666 12.666 0 0 0 14.857 8a12.691 12.691 0 0 0-1.697-2.315c-.35-.37-.727-.73-1.132-1.063l-.308-.243ZM8 2a6.428 6.428 0 0 1 2.242.412l.305.123-.681.805A5.359 5.359 0 0 0 8 3C5.877 3 4.164 4.287 2.837 5.685A12.664 12.664 0 0 0 1.14 8a12.66 12.66 0 0 0 1.697 2.315l.301.308.311.299-.646.765A14.567 14.567 0 0 1 2.109 11 13.791 13.791 0 0 1 0 8a13.801 13.801 0 0 1 2.109-3C3.49 3.543 5.454 2 8 2Zm1.633 4.845-2.5 2.956a1.999 1.999 0 0 0 2.5-2.956Zm-3.917-.793a3 3 0 0 1 2.692-1.025l.202.035-.809.948A2 2 0 0 0 6 7.967l.003.152-.808.947a3 3 0 0 1 .521-3.014Z"})})}),Bf=()=>br.jsx(xu,{viewBox:"0 0 16 16",children:br.jsx("path",{d:"M12 4H6V3h6v1ZM6 8.5h4v-1H6v1Zm9 4.5H6v-1h9v1ZM3 11a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h1Zm0 1H2v1h1v-1Zm0-5.5a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h1Zm0 1H2v1h1v-1ZM3 2a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h1Zm0 1H2v1h1V3Z"})}),Df=ja(_d)({width:28,overflow:"hidden"}),Ff=ja(_d)({height:28,width:"100%",overflow:"hidden",alignItems:"center","&::before":{visibility:"hidden"}}),Gf=(e,t)=>e.find((e=>e.childRefId===t)),Hf=(e,t)=>!t.edit&&0===e.condition,Wf=e=>{const{objects:t,defaultTabId:r,cachedTabId:n}=e;return n||(r&&t.some((e=>e.childRefId===r))?r:t[0]?.childRefId||"")};class Yf{modifiedLayout;themeStyle;style;objectMap;activeTabId;theme;constructor({modifiedLayout:e,themeService:t}){this.modifiedLayout=e,this.activeTabId=Wf(this.modifiedLayout),this.themeStyle=t.getStyles(),this.theme=t.getTheme(),this.objectMap=Tu(this.modifiedLayout),this.style=this.createStyleClasses()}getTabsWidth=e=>{const t=this.resolveComponentStyle({compPath:"width.value",themePath:"tabWidth.value"});if(void 0===t||2!==t.length||e!==this.modifiedLayout.orientation)return{};const r=this.resolveComponentStyle({compPath:"width.unit",themePath:"tabWidth.unit",defaultValue:"%"});return{minWidth:`${t[0]}${r}`,maxWidth:`${t[1]}${r}`}};getTabWidth=e=>{const t=e?.value,r=e?.unit??"%";if(void 0===t||2!==t.length||"left"===this.modifiedLayout.orientation)return{};return{minWidth:`${t[0]}${r}`,maxWidth:`${t[1]}${r}`}};getColorStyle=(e,t=e)=>{const r=this.resolveComponentStyle({compPath:e,themePath:t});return jf.getColor({style:r,theme:this.theme})??r};getTabBackgroundStyle=(e,t)=>{let r;if(this.activeTabId===e){const e=this.resolveComponentStyle({compPath:"background.selected",themePath:""});r=jf.getColor({style:e,theme:this.theme})}return r??jf.getColor({style:t,theme:this.theme})};createTabClasses=()=>this.modifiedLayout.objects?.reduce(((e,t)=>{const r=t?.childRefId,n=t?.components?.find((e=>"tab"===e.key));return e[`#tab-${this.modifiedLayout.qInfo.qId}-${r}`]={textAlign:ih(n,"label.alignment"),backgroundColor:this.getTabBackgroundStyle(r,n?.background),...this.getTabWidth(n?.width)},e[`#tab-${this.modifiedLayout.qInfo.qId}-${r}:hover`]={..."left"===this.modifiedLayout.orientation&&{backgroundColor:this.getColorStyle("background.hover","background.hover.color")}},e[`#tab-label-${this.modifiedLayout.qInfo.qId}-${r}`]={fontSize:ih(n,"label.fontSize"),fontFamily:ih(n,"label.fontFamily"),color:jf.getColor({style:ih(n,"label.color"),theme:this.theme})},e[`#tab-icon-${this.modifiedLayout.qInfo.qId}-${r} svg`]={height:ih(n,"icon.size"),color:jf.getColor({style:ih(n,"icon.color"),theme:this.theme})},e}),{});createTabsClasses=()=>({[mf]:{fontSize:this.resolveComponentStyle({compPath:"label.fontSize",themePath:"label.value.fontSize"}),fontFamily:this.resolveComponentStyle({compPath:"label.fontFamily",themePath:"label.value.fontFamily"}),color:this.resolveComponentStyle({compPath:"label.color.color",themePath:"label.value.color"})},[bf]:{height:this.resolveComponentStyle({compPath:"icon.size",themePath:"icon.value.fontSize"}),color:this.getColorStyle("icon.color","icon.value.color")},[hf]:{textAlign:this.resolveComponentStyle({compPath:"label.alignment",themePath:"label.textAlignment"}),...this.getTabsWidth("top")},[ff]:{..."top"===this.modifiedLayout.orientation&&{borderBottomColor:this.getColorStyle("indicator.hover","indicator.hover.color")}},[gf]:{...this.getTabsWidth("left"),backgroundColor:this.getColorStyle("background.unselected","")},[vf]:{backgroundColor:this.getColorStyle("indicator.selected","indicator.selected.color")}});createStyleClasses=()=>({...this.createTabsClasses(),...this.createTabClasses()});getStyleClasses(){return this.style}resolveComponentStyle=({key:e="tabs",compPath:t,themePath:r=t,defaultValue:n})=>{const o=this.modifiedLayout.components?.find((t=>t.key===e));return ih(o,t)??ih(this.themeStyle,r)??n};getTabStyle(e){return this.objectMap[e].components?.find((e=>"tab"===e.key))}}const Uf=()=>{const e=s(),r=l(),n=c(),o=d(),b=u(),g=p(),v=t(),y=h(),x=f(),E=function(e){var t=e.theme,r=e.config,n=void 0===r?{}:r,o=n.id,i=n.resolve,a=void 0===i?[]:i,s=n.transform,l=void 0===s?[]:s,c=n.extend,d=void 0===c?[]:c,u={theme:t,matrix:Sh(a),styles:void 0};return u.styles=wh({theme:t,id:o,transform:l,extend:d,matrix:u.matrix}),{getStyles:function(){return u.styles},getTheme:function(){return u.theme},setTheme:function(e){u.theme=e,u.styles=wh({theme:e,id:o,transform:l,extend:d,matrix:u.matrix})}}}({theme:m(),config:{id:"tabbedContainer",resolve:[["object.tabbedContainer","indicator.selected","color"],["object.tabbedContainer","indicator.hover","color"],["object.tabbedContainer","background.hover","color"],["object.tabbedContainer","icon.value","color"],["object.tabbedContainer","icon.value","fontSize"]]}}),S=i((()=>new au(o,g)),[o,g]),[C]=a((()=>new If(b.id))),[w,R]=a(!1),k=i((()=>o&&b&&r?new _f({embed:o,model:b,app:r,translator:g,mutex:C}):void 0),[o,b,r,g,C]),A=i((()=>_u(n)),[n]),_=i((()=>new Yf({modifiedLayout:A,themeService:E})),[A,E]);return i((()=>({app:r,modifiedLayout:A,embed:o,model:b,emitter:y,interactions:x,dataHandler:k,chartList:S,styleModel:_,mutex:C,options:v,accessibility:w,setAccessibility:R,translator:g,element:e})),[A,o,b,r,y,x,k,S,_,C,v,w,g,e])},Vf=({dataHandler:e,modifiedLayout:t,translator:r,sharedContainerUtilities:n,Icon:o})=>{const[i,a]=k(void 0);if(!e||!t)return null;const s=!t.qExtendsId;return br.jsx(hu,{children:br.jsxs(pu,{children:[br.jsx(o,{}),s?br.jsxs(br.Fragment,{children:[br.jsx(vu,{sx:{width:250,height:32,fontFamily:"inherit"},className:"init-button",variant:i?"contained":"outlined",onClick:e=>{a(e.currentTarget)},"aria-label":r.get("LayoutContainer.EmptyList.AddContent"),disableRipple:!0,children:r.get("LayoutContainer.EmptyList.AddContent")}),br.jsx(Cu,{translator:r,anchorEl:i,dataHandler:e,onClose:()=>{a(void 0)},sharedContainerUtilities:n})]}):br.jsx(Vs,{variant:"inherit",children:r.get("LayoutContainer.EmptyList.EmptyHint")})]})})};class qf{_rendered=new Set;_objectMap=new Map;_objectApis=new Map;_resolver;_dependencyData;_recreateMap=new Map;constructor(e){this._dependencyData=e}set dependencyData(e){this._dependencyData=e}get rendered(){return this._rendered}get objectMap(){return this._objectMap}get objectApis(){return this._objectApis}get resolver(){return this._resolver}get recreateMap(){return this._recreateMap}createTimerForRendering=()=>{if(!this.resolver){let e;const t=setTimeout((()=>{this.doResolve()}),9e4),r=new Promise((t=>{e=t}));this._resolver={promise:r,resolve:e,timer:t}}return this._resolver};doResolve=()=>{this.resolver&&(clearTimeout(this.resolver?.timer),this.resolver.resolve?.(!0),this._resolver=void 0)};tryToResolve=()=>{const{visibleLayoutObjects:e}=this._dependencyData;if(this.resolver){(0===e.length||e.every((e=>this.rendered.has(e.id))))&&this.doResolve()}};syncObjects(e){const t=new Set,r=new Set([...Array.from(this.objectMap.keys()),...Array.from(this.objectApis.keys()),...this.rendered]),n=new Set(r);let o=!1;return e.forEach((e=>{r.has(e.id)?(this.rendered.has(e.id)&&t.add(e.id),n.delete(e.id)):o=!0})),n.forEach((e=>{const t=this.objectMap.get(e);t&&(this.confirmPotentialSelections(t),t.destroy?.(),this.objectMap.delete(e)),this.objectApis.get(e)?.destroy(),this.objectApis.delete(e)})),this._rendered=t,this.tryToResolve(),o}destroy(){for(const e of this.objectApis.values())e.destroy();this._objectMap=new Map,this._objectApis=new Map}saveObject(e,t){this.objectMap.set(e,t)}saveObjectApi(e,t){this._objectApis.set(e,t)}onRendered(e){this.rendered.add(e),this.tryToResolve()}getChildrenObjects(){const{visibleLayoutObjects:e}=this._dependencyData,t=[];return e.forEach((e=>{const r=this.objectMap.get(e.id);r&&t.push(r)})),t}getChildLayout(e){const{modifiedLayout:t}=this._dependencyData;return t.qChildList.qItems.find((t=>t.qInfo.qId===e))}getObjectOptions(e){const{viewState:t,modifiedLayout:r,options:n}=this._dependencyData,{chartAnimations:o,direction:i,progressiveRendering:a,freeResize:s,navigation:l}=n;return{isReadonly:!1,setController:t=>{this.saveObject(e,t)},onRendered:()=>{this.onRendered(e)},onInitialRender:()=>{this.onRendered(e)},isParentMaster:!!r?.qExtendsId,isSnapshot:!!r.snapshotData,...!!t?.viewStates?.[e]&&{viewState:t?.viewStates[e]},...!!t?.layouts?.[e]&&{layout:t.layouts[e]},direction:i,chartAnimations:o,progressiveRendering:a,freeResize:s,navigation:l,disableThemeBorder:!1,fallbackToClient:n.fallbackToClient}}confirmPotentialSelections(e){e&&"selectionsApi"in e&&e.selectionsApi.active&&e.selectionsApi.confirm()}}const Kf=({chartObject:e,embed:t,renderHelper:r,direction:n,interactions:o,env:i})=>{const a=_(null),{id:s}=e;A((()=>{if(s&&a.current){const e=r.getObjectOptions(s)||{};e.disableThemeBorder=!0,t.render({id:s,element:a.current,options:e}).then((e=>{r.saveObjectApi(s,e)})).catch((e=>{const t=r.getChildLayout(s)?.qInfo?.qType;console.error("Could not render chart with id",s,t,e)}))}}),[s,t,r,n]);const l=I((()=>()=>{if(e?.id&&i.anything){const t=e?.label,{sense:n}=i.anything,o="current",a=r.objectMap.get(e.id);a&&n.propertyPanel.show({model:a.model,parent:o,headerLabel:t,keepCurrentActiveCell:!0})}}),[i,e,r]);return A((()=>{const e=a?.current;return e&&o?.edit&&e.addEventListener("dblclick",l),()=>{e?.removeEventListener("dblclick",l)}}),[a,l,o]),br.jsx("div",{ref:a,style:{position:"relative",height:"100%",width:"100%"},"data-testid":`tab-panel-${e.childRefId}`})};let Xf=function(e){return e.TABS_HEIGHT="36px",e}({});const Zf=({charts:e,handleChangeTab:t,activeTabId:r,element:n,translator:o,accessibility:i,disabled:a})=>{const[s,l]=S.useState(null),c=Boolean(s),d=()=>{l(null)},u=T((e=>{e?.focus()}),[]);return br.jsxs(br.Fragment,{children:[br.jsx(Tl,{onClick:e=>{l(e.currentTarget)},disabled:a,"aria-haspopup":"menu","data-testid":"chartTabMenuDropdownButton",tabIndex:i?0:-1,"aria-label":o.get("Container.Label.Visualizations"),className:pf.TAB_MENU,sx:{m:"2px"},children:br.jsx(Bf,{})}),br.jsx(ld,{anchorEl:s,open:c,onClose:d,elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{py:0}},slotProps:{paper:{sx:{maxHeight:"500px",maxWidth:"500px"}}},children:e.map((e=>br.jsx(hd,{className:pf.TAB_MENU_ITEM,ref:r===e.childRefId&&c?u:null,onClick:()=>{(e=>{t(e.childRefId),d(),window.setTimeout((()=>{n.getElementsByClassName(pf.ACTIVE_TAB_PANEL)?.[0]?.focus()}),0)})(e)},sx:{...r===e.childRefId?{backgroundColor:"rgba(0, 0, 0, 0.1)"}:{}},"aria-label":e.label,title:e.label,children:br.jsx(Vs,{variant:"inherit",noWrap:!0,children:e.label})},`chartTabMenu-${e.childRefId}`)))})]})},Jf=({label:e,id:t})=>br.jsx(xl,{className:pf.TAB_LABEL,id:`tab-label-${t}`,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",overflow:"hidden",flexWrap:"wrap"},children:br.jsx("span",{style:{width:"100%",overflowWrap:"break-word",hyphens:"auto",fontWeight:"bold",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",lineHeight:"normal",overflow:"hidden"},children:e})}),Qf=({libraryInfo:e,chart:t,iconPosition:r,id:n})=>{let o;switch(r){case"bottom":o={marginTop:"6px"};break;case"top":o={marginBottom:"6px"};break;case"end":o={marginInlineStart:"8px"};break;default:o={marginInlineEnd:"8px"}}o.display="flex",o.alignItems="center",o.height="100%",o.flex="1 0 0";return 0===t.condition?br.jsx(zf,{id:`${pf.TABS_ICON}-${n}`,style:o}):e?br.jsx($f,{id:`${pf.TABS_ICON}-${n}`,libraryInfo:e,style:o}):null},em=({models:e,activeTabId:t,handleChangeTab:r})=>{const{modifiedLayout:n,chartList:o,interactions:i,accessibility:a}=e,s=o?.getCharts(),l=n.objects.filter((e=>!Hf(e,i))),{orientation:c,tabContainerStyle:d,ScrollButtonComponent:u}=(({orientation:e})=>"left"===e?{orientation:"vertical",tabContainerStyle:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"25%",flexShrink:0},ScrollButtonComponent:Ff}:{orientation:"horizontal",tabContainerStyle:{display:"flex",flexDirection:"row",alignItems:"center"},ScrollButtonComponent:Df})(n),p=!1===i.active&&!i.edit,[h,f]=k(!1),m=T((e=>{if(e){const t=e.getElementsByClassName("MuiTabs-flexContainer")[0];if(t)return void f("vertical"===c?t.scrollHeight>t.offsetHeight:t.scrollWidth>t.offsetWidth)}f(!1)}),[c]);return br.jsxs(xl,{className:pf.TAB_WRAPPER,sx:d,ref:e=>{m(e)},children:[n.useDropdown&&h&&br.jsx(Zf,{charts:l,handleChangeTab:r,activeTabId:t,accessibility:a,translator:e.translator,element:e.element,disabled:p}),br.jsx(Fd,{value:t,onChange:(e,t)=>{r(t)},ScrollButtonComponent:u,variant:"scrollable",orientation:c,scrollButtons:!!n.useScrollButton&&"auto",TabScrollButtonProps:{...p&&{disabled:!0}},sx:{height:"100%",width:"100%",minHeight:Xf.TABS_HEIGHT},children:l.map((r=>{const o=Au(n,r.childRefId)?.qData?.visualization,i=o&&s?.[o]?.libraryInfo,l=e.styleModel.getTabStyle(r.childRefId),d=0===r.condition||n.showIcons&&i&&!1!==l?.icon?.show,u="vertical"===c?"top":"start",h=e.styleModel.resolveComponentStyle({compPath:"icon.position",defaultValue:u}),f=e.styleModel.resolveComponentStyle({compPath:"label.show"}),m=r.label&&(l?.label?.show??!1!==f),b=`${n.qInfo.qId}-${r.childRefId}`;return br.jsx(vd,{className:`${pf.TAB} ${t===r.childRefId?pf.ACTIVE_TAB:""}`,disabled:p,id:`tab-${b}`,value:r.childRefId,title:r.label,label:m?br.jsx(Jf,{label:r.label,id:b}):void 0,icon:d?br.jsx(Qf,{libraryInfo:i,chart:r,iconPosition:h,id:b}):"",iconPosition:h,"data-testid":`container-tab-${r.childRefId}`,sx:{textAlign:"vertical"!==c||n.showIcons?"center":"start",minWidth:"vertical"===c?"100%":void 0,minHeight:Xf.TABS_HEIGHT,padding:"6px 16px","&:hover":{paddingBottom:"4px"},"&.Mui-disabled":{opacity:"inherit"}},"aria-label":r.label,"aria-controls":`tab-panel-${b}`,tabIndex:a&&t===r.childRefId?0:-1},r.childRefId)}))})]})},tm=({models:e,renderHelper:t,activeTabId:r,handleChangeTab:n,env:o})=>{const{modifiedLayout:i,embed:a,interactions:s,options:l,styleModel:c,accessibility:d}=e,u=i.objects,p=s.edit||!!u.find((e=>0!==e.condition)),h=i.showTabs&&p,f="left"===i.orientation?"row":"column",m=c.getStyleClasses();return br.jsxs(xl,{sx:{display:"flex",flexDirection:f,height:"100%",width:"100%",direction:l.direction,...m},children:[h?br.jsx(em,{models:e,activeTabId:r,handleChangeTab:n}):null,u.map((e=>{const n=`tab-panel-${i.qInfo.qId}-${e.childRefId}`,c=r===e.childRefId&&!Hf(e,s);return br.jsx(xl,{role:"tabpanel",id:n,"aria-label":e.label,sx:{flex:"1 1 auto",minHeight:0,width:"100%",padding:"2px",boxSizing:"border-box",direction:"ltr","&:focus-visible":{boxShadow:"inset 0 0 0 2px #0275D9",borderRadius:"3px",zIndex:1200}},...c?{className:pf.ACTIVE_TAB_PANEL,tabIndex:d?0:-1}:{hidden:!0},children:c?br.jsx(Kf,{chartObject:e,renderHelper:t,direction:l.direction,embed:a,interactions:s,env:o}):null},n)}))]})};let rm=function(e){return e.COPY="copy",e.PASTE="paste",e.RESET_COPY_BUFFER="resetCopyBuffer",e}({}),nm=function(e){return e.COPY="copy",e.PASTE="paste-and-replace",e.DUPLICATE="duplicate",e.DELETE="delete",e.CUT="cut",e.EDIT_PROPERTIES="edit",e.ZOOM_IN="zoom-in",e.VISUAL_EXPLORATION="visual-exploration",e.MONITOR_IN_HUB="addto",e.REORDER_LAYERS_GROUP="reorder-layers-group",e.BRING_TO_FRONT="bring-to-front",e.BRING_FORWARD="bring-forward",e.SEND_TO_BACK="send-to-back",e.SEND_BACKWARDS="send-backwards",e.CONTAINER_HEADER="container-header",e.CHART_HEADER="chart-header",e.ALERT_GROUP="alertGroup",e.ADD_TO_MASTER_ITEMS="add-to-master-items",e.UNLINK_VISUALIZATION="unlink",e.DEVELOPER="object-developer",e.SHOW_DETAILS="object-info",e.EXPLAIN_KEY_DRIVERS_OLD_ID="explainKeyDrivers",e.EXPLAIN_KEY_DRIVERS="key-driver",e.SUBSCRIBE="subscribe",e.NOTES_GROUP="notesGroup",e.DOWNLOAD="download",e.SHARE_IMAGE="share",e}({});const om=[nm.PASTE,nm.ZOOM_IN,nm.VISUAL_EXPLORATION],im=[nm.VISUAL_EXPLORATION,nm.ALERT_GROUP,nm.SHOW_DETAILS,nm.EXPLAIN_KEY_DRIVERS,nm.EXPLAIN_KEY_DRIVERS_OLD_ID],am=[nm.DELETE,nm.CUT,nm.ADD_TO_MASTER_ITEMS,nm.UNLINK_VISUALIZATION],sm=[nm.PASTE],lm=(e,t)=>{const{childRefId:r}=e.model.layout,n=t.objects.find((e=>e.childRefId===r));return{...e,additionalData:{label:n?.label}}},cm=(e,t,r,n,o)=>{const i=t.getSupportFunction(nm.COPY);if(!i)return void e.deleteItem(nm.COPY);const a=()=>{i(lm(r,n)).catch((()=>{}))},s=e.items.find((e=>e.id===nm.COPY));if(s)s.updateItem({select:a});else if(o){const t=e.items.findIndex((e=>e.id===nm.CUT)),r=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.copy",tid:nm.COPY,id:nm.COPY,icon:"copy",select:a,items:[]},r)}},dm=e=>e.interactions.edit&&!e.modifiedLayout.qExtendsId,um=async(e,t,r,n)=>{const o=t.getBuilder("default");if(!o)return;const i=await o();i.addItem({translation:"contextMenu.containerOptionsHeader",tid:nm.CONTAINER_HEADER,id:nm.CONTAINER_HEADER,bold:!0,items:[]},0);const a=dm(r);i.items.forEach((e=>{(im.includes(e.id)||!a&&sm.includes(e.id))&&i.deleteItem(e.id)})),a&&await(async(e,t,r)=>{const n=t.getSupportFunction(rm.PASTE),o=await(n?.()?.catch((()=>{})));if(!o||iu.includes(o.template))return void e.deleteItem(nm.PASTE);const i=()=>{r()},a=e.items.find((e=>e.id===nm.PASTE));if(a)a.updateItem({translation:"contextMenu.paste",select:i});else{const t=e.items.findLastIndex((e=>e.id===nm.COPY||e.id===nm.DEVELOPER||e.id===nm.CONTAINER_HEADER)),r=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.paste",tid:nm.PASTE,id:nm.PASTE,icon:"paste",select:i,items:[]},r)}})(i,t,n),e.updateItem({items:i.items}),1===e.items.length&&e.deleteItem(nm.CONTAINER_HEADER)},pm=e=>{const t={[nm.MONITOR_IN_HUB]:!0,[nm.SUBSCRIBE]:!0,[nm.NOTES_GROUP]:!0,[nm.DOWNLOAD]:!0,[nm.SHARE_IMAGE]:!0};e.items.forEach((r=>{t[r.id]?e.deleteItem(r.id):r.items&&pm(r)}))},hm=(e,t,r,n,o,i)=>a=>{const{dataHandler:s,modifiedLayout:l}=n;if(dm(n)){r.isInvalid||(((e,t,r,n)=>{const{model:o,modifiedLayout:i}=r,a=e.items.findLastIndex((e=>e.id===nm.CHART_HEADER||e.id===nm.REORDER_LAYERS_GROUP)),s=a>=0?1+a:void 0;e.addItem({translation:"Object.Container.Props.EditProperties",tid:nm.EDIT_PROPERTIES,id:nm.EDIT_PROPERTIES,icon:nm.EDIT_PROPERTIES,items:[],select:()=>{const{childRefId:e}=t.model.layout,r=i.objects.find((t=>t.childRefId===e)),a=r?.label,{sense:s}=n.anything,l=o;s.propertyPanel.show({model:t.model,parent:l,headerLabel:a})}},s)})(a,r,n,o),((e,t,r,n,o,i)=>{const a=n.getSupportFunction(nm.COPY);if(!a)return void e.deleteItem(nm.CUT);const s=()=>{o&&a(lm(r,i)).then((async()=>{await(o?.deleteChildren([t]))})).catch((()=>{}))},l=e.items.find((e=>e.id===nm.CUT));if(l)l.updateItem({select:s});else{const t=e.items.findLastIndex((e=>e.id===nm.ADD_TO_MASTER_ITEMS||e.id===nm.UNLINK_VISUALIZATION||e.id===nm.EDIT_PROPERTIES||e.id===nm.REORDER_LAYERS_GROUP||e.id===nm.DEVELOPER)),r=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.cut",tid:nm.CUT,id:nm.CUT,icon:"cut",select:s,items:[]},r)}})(a,t,r,e,s,l),cm(a,e,r,l,!0),((e,t,r,n,o)=>{const i=t.getSupportFunction(rm.COPY),a=t.getSupportFunction(rm.PASTE);if(!i||!a)return void e.deleteItem(nm.DUPLICATE);const s=()=>{i(lm(r,n)).then((()=>{o()})).catch((()=>{}))},l=e.items.find((e=>e.id===nm.DUPLICATE));if(l)l.updateItem({select:s});else{const t=e.items.findIndex((e=>e.id===nm.COPY)),r=t>=0?1+t:void 0;e.addItem({translation:"Common.Duplicate",tid:nm.DUPLICATE,id:nm.DUPLICATE,icon:nm.DUPLICATE,items:[],select:s},r)}})(a,e,r,l,i)),((e,t,r)=>{const n=()=>{r&&r.deleteChildren([t]).catch((()=>{}))},o=e.items.find((e=>e.id===nm.DELETE));if(o)o.updateItem({select:n});else{const t=e.items.findLastIndex((e=>e.id===nm.DUPLICATE||e.id===nm.ADD_TO_MASTER_ITEMS||e.id===nm.UNLINK_VISUALIZATION||e.id===nm.REORDER_LAYERS_GROUP||e.id===nm.DEVELOPER)),r=t>=0?1+t:void 0;e.addItem({translation:"Common.Delete",tid:nm.DELETE,id:nm.DELETE,icon:"bin",items:[],select:n},r)}})(a,t,s)}else cm(a,e,r,l,!1)},fm=(e,t,r,n)=>{g((async(o,i,a)=>{if(!a)return!1;const s=((e,t)=>()=>{if(!e)return;const r=t.getSupportFunction(rm.PASTE);r&&r().then((async({template:t,init:r,children:n,additionalData:o})=>{const{label:i}=o,a={label:i};r.qExtendsId?await e.addMasterObjectAsChild({initProps:r,children:n,objectInitProps:a}):await e.addVizAsChild({type:t,initProps:r,children:n,objectInitProps:a})})).catch((e=>{e&&t.getSupportFunction(rm.RESET_COPY_BUFFER)}))})(r.dataHandler,a);if(await um(o,a,r,s),pm(o),!(e=>{let t;t="qv-radial-contextmenu"===e.type?e.touches[0]?.target:e.target;return t&&((e,t)=>{let r=e;for(;r;){if(r.classList?.contains(t))return r;r=r.parentNode}return null})(t,pf.ACTIVE_TAB_PANEL)})(i))return!0;const l=r.modifiedLayout.objects.find((t=>t.childRefId===e))?.id;if(!l)return!0;const c=t.objectMap.get(l);if(!c)return!0;const d=hm(a,e,c,r,n,s),u=await(async(e,t,r,n)=>{const o=dm(r),i=e.getBuilder("object");if(!i)return;const a=await i(t);return a.addItem({translation:"contextMenu.chartOptionsHeader",tid:nm.CHART_HEADER,id:nm.CHART_HEADER,bold:!0,items:[]},0),n(a),a.items.forEach((e=>{(om.includes(e.id)||!o&&am.includes(e.id))&&a.deleteItem(e.id)})),1===a.items.length&&a.deleteItem(nm.CHART_HEADER),a})(a,c,r,d);return!u||(o.items.length>0&&u.addItem({translation:"contextMenu.subMenuContainerOptions",tid:"tabbed-container-menu",id:"tabbed-container-menu",icon:"tabbed-container",items:[...o.items]},u.items.length),o.updateItem({items:u.items}),!0)}))},mm=({element:e,models:n,env:o})=>{const s=((e,t)=>{const[n,o]=a(void 0);return r((()=>{if(0===e.getElementsByClassName(t).length){const r=document.createElement("div");r.className=t,e.appendChild(r);const n=cu.createRoot(r);o(n)}return()=>{n?.unmount()}}),[e,t,n]),n})(e,"init-component"),{options:l,modifiedLayout:c,interactions:d,model:u}=n,{qChildList:p}=c,h=nu(l.direction),f=(e=>{const{viewState:r}=t(),{snapshotData:n}=e;if(n){const{layouts:e}=n.objectsData,t=n.viewState?.viewStates;return{layouts:e,viewStates:t}}if(r){const{viewStates:e}=r;return{viewStates:e}}})(c),m=i((()=>Wf(c)),[c]),g={modifiedLayout:c,activeTabId:m,env:o},[v,y]=Sf(g);y(g);const x=i((()=>c.objects.filter((e=>m===e.childRefId))),[m,c.objects]),{renderHelper:E}=(e=>{const{visibleLayoutObjects:t,options:n}=e,[o]=a((()=>new qf(e))),[,i]=a(n);return o.dependencyData=e,b((async()=>(i((e=>(e!==n&&t.forEach((e=>o.recreateMap.set(e.id,!0))),n))),o.syncObjects(t)?o.createTimerForRendering()?.promise:o.resolver?.promise)),[t,n]),r((()=>()=>{o.destroy()}),[o]),{renderHelper:o}})({modifiedLayout:c,visibleLayoutObjects:x,viewState:f,options:l});fm(m,E,n,o);const[S]=a({current:void 0}),C=i((()=>e=>{(async({model:e,patchList:t})=>{if(e?.applyPatches){const r=await e.getEffectiveProperties(),n=[];t.forEach((e=>{const{newValue:t,propertyName:o}=e,i=void 0!==r[o]?"Replace":"Add";t?n.push({qPath:`/${o}`,qOp:i,qValue:JSON.stringify(t)}):"Replace"===i&&n.push({qPath:`/${o}`,qOp:"Remove"})})),n.length>0&&await e.applyPatches(n,!0)}})({model:u,patchList:[{newValue:e,propertyName:"cachedTabId"}]})}),[u]),w=i((()=>({setSelected:e=>{const t=v.modifiedLayout.objects.find((t=>t.id===e[0]))?.childRefId;t?C(t):S.current=e[0]}})),[C,v,S]);r((()=>{const e=(({chartObjects:e,activeTabId:t})=>!Gf(e,t)&&e.length>0?e[0]?.childRefId:t)({chartObjects:v.modifiedLayout.objects,activeTabId:v.activeTabId});if(e!==v.activeTabId)C(e);else if(S.current){const e=v.modifiedLayout.objects.find((e=>e.id===S.current))?.childRefId;e&&C(e)}S.current=void 0}),[c?.objects.length,v,S,C]),r((()=>{const e=(({chartObjects:e,activeTabId:t,interactions:r})=>{const n=Gf(e,t);if(!n||Hf(n,r)){const r=e.find((e=>0!==e.condition));return r?.childRefId||t}return t})({chartObjects:v.modifiedLayout.objects,activeTabId:v.activeTabId,interactions:d});e!==v.activeTabId&&C(e)}),[d,c?.objects,v,C]);const R=0===p.qItems.length&&d.edit;return r((()=>{s?.render(br.jsxs($a,{theme:h,children:[R?br.jsx(Vf,{Icon:Nf,dataHandler:n.dataHandler,modifiedLayout:n.modifiedLayout,translator:n.translator,sharedContainerUtilities:w}):null,!R&&br.jsx(tm,{models:n,renderHelper:E,activeTabId:m,handleChangeTab:C,env:o})]}))}),[s,n,h,R,E,m,w,C,o]),{renderHelper:E,sharedContainerUtilities:w,activeTabId:m}};var bm={targets:[]};const gm={showTitles:!0,title:"",subtitle:"",footnote:"",disableNavMenu:!0,showDetails:!1,objects:[],qChildListDef:{qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition"}},showTabs:!0,useScrollButton:!0,useDropdown:!1,showIcons:!1,components:[],defaultTabId:"",orientation:"top",fontsUsed:[]};!function(e,t){void 0===t&&(t={});var r=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".init-component {\n height: 100%;\n overflow: hidden;\n}\n");const vm=e=>e.map((e=>{if("canReceive"in e){const t=e=>"libraryitem"===e.type&&("field"===e.item.type||"measure"===e.item.type||"dimension"===e.item.type);return{...e,canReceive:r=>t(r)&&e.canReceive(r)}}return e})),ym=(e,t)=>{let r=!0;const n=t.objects.reduce(((t,n)=>{const o=n.id;if(0!==n.condition){const i=e.get(o);return i&&(e=>e.supportExport())(i)&&(r=!1,t.objectMap.set(o,i)),t.objects.push(n),t}return t}),{objects:[],objectMap:new Map});return r?{objects:[],objectMap:new Map}:n}}}}));