@nebula.js/sn-tabbed-container 2.12.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specification/spec.json +1 -1
- package/core/esm/index.js +5 -5
- package/dist/sn-tabbed-container.js +3 -3
- package/dist/sn-tabbed-container.systemjs.js +5 -5
- package/package.json +8 -8
- package/sn-tabbed-container-ext/dist/sn-tabbed-container.js +3 -3
- package/sn-tabbed-container-ext/sn-tabbed-container.qext +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-tabbed-container v2.
|
|
2
|
+
* @nebula.js/sn-tabbed-container v2.13.0
|
|
3
3
|
* Copyright (c) 2026 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,n,r,o,i,a,s,l,c,d,u,p,h,f,m,b,g,v,y,x,E,C,S,w,R,k,_,A,L,I,T,P,M,O;return{setters:[function(e){t=e.useOptions,n=e.useEffect,r=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,C=e.default,S=e.isValidElement,w=e.cloneElement,R=e.Children,k=e.useState,_=e.useEffect,A=e.createContext,L=e.useImperativeHandle,I=e.useRef,T=e.useCallback,P=e.useMemo},function(e){M=e.default,O=e}],execute:function(){e("default",function(e){const t=new _d({translator:e.translator});return{qae:{properties:Df,data:zf},ext:gh({env:e,propertyHandlerData:t}),component(){const n=af(),r=p();i(()=>{!function(e){if(e&&e.get&&e.add){const t="LayoutContainer.EmptyList.AddContent";if(e.get(t)!==t)return;Object.keys(N).forEach(t=>{e.add(N[t])})}}(r)},[r]);const{dataHandler:o,model:s,accessibility:l,setAccessibility:c,interactions:d,element:u,modifiedLayout:h}=n,f=i(()=>function(){const e=new B.EventEmitter;let t=[];return e.updateActiveCharts=n=>{t=n.slice(),e.emit("activeChartsChange",t.slice())},e.setActiveCharts=n=>{t=n.slice(),e.emit("setActiveCharts",t.slice())},e.getActiveCharts=()=>[...t],e}(),[]),{renderHelper:m,sharedContainerUtilities:b,activeTabId:g}=Nf({element:u,models:n,env:e,activeCharts:f});vh({containerId:s?.id||"",element:u,sharedContainerUtilities:b,translator:r,dataHandler:o,propertyHandlerData:t,renderHelper:m});const[y,x]=a(!0);$h({isContainerActive:y,activeTabId:g,renderHelper:m,modifiedLayout:h,activeCharts:f,sharedContainerUtilities:b}),Oh({element:u,accessibility:l,setAccessibility:c,renderHelper:m,interactions:d,env:e,models:n});const{getViewState:E}=Ch(m,Ff);v(()=>({getViewState:E,getChildrenObjects(){const e=m.getChildrenObjects();return Bf(e)},updateActiveState(e){x(e)},activeCharts:f}),[])}}});var j,$,N={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":"無標題的物件"}},contextMenu_subMenuContainerOptions:{id:"contextMenu.subMenuContainerOptions",locale:{"de-DE":"Siehe Containeroptionen","en-US":"See container options","es-ES":"Ver opciones de contenedor","fr-FR":"Voir les options de conteneur","it-IT":"Vedi opzioni contenitore","ja-JP":"コンテナ オプションを表示","ko-KR":"컨테이너 옵션 보기","nl-NL":"Containeropties bekijken","pl-PL":"Zobacz opcje kontenera","pt-BR":"Ver opções do contêiner","ru-RU":"См. параметры контейнера","sv-SE":"Visa alternativ för behållare","tr-TR":"Kapsayıcı seçeneklerini görün","zh-CN":"请参阅容器选项","zh-TW":"查看容器選項"}}};function z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function D(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch(e){}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var B=function(){if($)return j;$=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},j=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,s;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(s=r.slice()).length,a=0;a<o;a++)s[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},j}();function F(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 G=Object.freeze({__proto__:null,default:F}),H="$$material";function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U.apply(null,arguments)}function W(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var V=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=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,n),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];if(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(e){}}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},e}(),q="-ms-",Y="-moz-",K="-webkit-",X="comm",Z="rule",J="decl",Q="@keyframes",ee=Math.abs,te=String.fromCharCode,ne=Object.assign;function re(e){return e.trim()}function oe(e,t,n){return e.replace(t,n)}function ie(e,t){return e.indexOf(t)}function ae(e,t){return 0|e.charCodeAt(t)}function se(e,t,n){return e.slice(t,n)}function le(e){return e.length}function ce(e){return e.length}function de(e,t){return t.push(e),e}var ue=1,pe=1,he=0,fe=0,me=0,be="";function ge(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ue,column:pe,length:a,return:""}}function ve(e,t){return ne(ge("",null,null,"",null,null,0),e,{length:-e.length},t)}function ye(){return me=fe>0?ae(be,--fe):0,pe--,10===me&&(pe=1,ue--),me}function xe(){return me=fe<he?ae(be,fe++):0,pe++,10===me&&(pe=1,ue++),me}function Ee(){return ae(be,fe)}function Ce(){return fe}function Se(e,t){return se(be,e,t)}function we(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 Re(e){return ue=pe=1,he=le(be=e),fe=0,[]}function ke(e){return be="",e}function _e(e){return re(Se(fe-1,Ie(91===e?e+2:40===e?e+1:e)))}function Ae(e){for(;(me=Ee())&&me<33;)xe();return we(e)>2||we(me)>3?"":" "}function Le(e,t){for(;--t&&xe()&&!(me<48||me>102||me>57&&me<65||me>70&&me<97););return Se(e,Ce()+(t<6&&32==Ee()&&32==xe()))}function Ie(e){for(;xe();)switch(me){case e:return fe;case 34:case 39:34!==e&&39!==e&&Ie(me);break;case 40:41===e&&Ie(e);break;case 92:xe()}return fe}function Te(e,t){for(;xe()&&e+me!==57&&(e+me!==84||47!==Ee()););return"/*"+Se(t,fe-1)+"*"+te(47===e?e:xe())}function Pe(e){for(;!we(Ee());)xe();return Se(e,fe)}function Me(e){return ke(Oe("",null,null,null,[""],e=Re(e),0,[0],e))}function Oe(e,t,n,r,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,C=r,S=y;b;)switch(f=v,v=xe()){case 40:if(108!=f&&58==ae(S,u-1)){-1!=ie(S+=oe(_e(v),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=_e(v);break;case 9:case 10:case 13:case 32:S+=Ae(f);break;case 92:S+=Le(Ce()-1,7);continue;case 47:switch(Ee()){case 42:case 47:de($e(Te(xe(),Ce()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=le(S)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+d:-1==g&&(S=oe(S,/\f/g,"")),h>0&&le(S)-u&&de(h>32?Ne(S+";",r,n,u-1):Ne(oe(S," ","")+";",r,n,u-2),l);break;case 59:S+=";";default:if(de(C=je(S,t,n,c,d,o,s,y,x=[],E=[],u),i),123===v)if(0===d)Oe(S,t,C,C,x,i,u,s,E);else switch(99===p&&110===ae(S,3)?100:p){case 100:case 108:case 109:case 115:Oe(e,C,C,r&&de(je(e,C,C,0,0,o,s,y,o,x=[],u),E),o,E,u,s,r?x:E);break;default:Oe(S,C,C,C,[""],E,0,s,E)}}c=d=h=0,m=g=1,y=S="",u=a;break;case 58:u=1+le(S),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==ye())continue;switch(S+=te(v),v*m){case 38:g=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(le(S)-1)*g,g=1;break;case 64:45===Ee()&&(S+=_e(xe())),p=Ee(),d=u=le(y=S+=Pe(Ce())),v++;break;case 45:45===f&&2==le(S)&&(m=0)}}return i}function je(e,t,n,r,o,i,a,s,l,c,d){for(var u=o-1,p=0===o?i:[""],h=ce(p),f=0,m=0,b=0;f<r;++f)for(var g=0,v=se(e,u+1,u=ee(m=a[f])),y=e;g<h;++g)(y=re(m>0?p[g]+" "+v:oe(v,/&\f/g,p[g])))&&(l[b++]=y);return ge(e,t,n,0===o?Z:s,l,c,d)}function $e(e,t,n){return ge(e,t,n,X,te(me),se(e,2,-2),0)}function Ne(e,t,n,r){return ge(e,t,n,J,se(e,0,r),se(e,r+1,-1),r)}function ze(e,t){for(var n="",r=ce(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function De(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case J:return e.return=e.return||e.value;case X:return"";case Q:return e.return=e.value+"{"+ze(e.children,r)+"}";case Z:e.value=e.props.join(",")}return le(n=ze(e.children,r))?e.return=e.value+"{"+n+"}":""}function Be(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Fe=function(e,t,n){for(var r=0,o=0;r=o,o=Ee(),38===r&&12===o&&(t[n]=1),!we(o);)xe();return Se(e,fe)},Ge=function(e,t){return ke(function(e,t){var n=-1,r=44;do{switch(we(r)){case 0:38===r&&12===Ee()&&(t[n]=1),e[n]+=Fe(fe-1,t,n);break;case 2:e[n]+=_e(r);break;case 4:if(44===r){e[++n]=58===Ee()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=te(r)}}while(r=xe());return e}(Re(e),t))},He=new WeakMap,Ue=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||He.get(n))&&!r){He.set(e,!0);for(var o=[],i=Ge(t,o),a=n.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]}}},We=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ve(e,t){switch(function(e,t){return 45^ae(e,0)?(((t<<2^ae(e,0))<<2^ae(e,1))<<2^ae(e,2))<<2^ae(e,3):0}(e,t)){case 5103:return K+"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 K+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return K+e+Y+e+q+e+e;case 6828:case 4268:return K+e+q+e+e;case 6165:return K+e+q+"flex-"+e+e;case 5187:return K+e+oe(e,/(\w+).+(:[^]+)/,K+"box-$1$2"+q+"flex-$1$2")+e;case 5443:return K+e+q+"flex-item-"+oe(e,/flex-|-self/,"")+e;case 4675:return K+e+q+"flex-line-pack"+oe(e,/align-content|flex-|-self/,"")+e;case 5548:return K+e+q+oe(e,"shrink","negative")+e;case 5292:return K+e+q+oe(e,"basis","preferred-size")+e;case 6060:return K+"box-"+oe(e,"-grow","")+K+e+q+oe(e,"grow","positive")+e;case 4554:return K+oe(e,/([^-])(transform)/g,"$1"+K+"$2")+e;case 6187:return oe(oe(oe(e,/(zoom-|grab)/,K+"$1"),/(image-set)/,K+"$1"),e,"")+e;case 5495:case 3959:return oe(e,/(image-set\([^]*)/,K+"$1$`$1");case 4968:return oe(oe(e,/(.+:)(flex-)?(.*)/,K+"box-pack:$3"+q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+K+e+e;case 4095:case 3583:case 4068:case 2532:return oe(e,/(.+)-inline(.+)/,K+"$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(le(e)-1-t>6)switch(ae(e,t+1)){case 109:if(45!==ae(e,t+4))break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+K+"$2-$3$1"+Y+(108==ae(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ie(e,"stretch")?Ve(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ae(e,t+1))break;case 6444:switch(ae(e,le(e)-3-(~ie(e,"!important")&&10))){case 107:return oe(e,":",":"+K)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+K+(45===ae(e,14)?"inline-":"")+"box$3$1"+K+"$2$3$1"+q+"$2box$3")+e}break;case 5936:switch(ae(e,t+11)){case 114:return K+e+q+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return K+e+q+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return K+e+q+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return K+e+q+e+e}return e}var qe,Ye,Ke,Xe,Ze=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case J:e.return=Ve(e.value,e.length);break;case Q:return ze([ve(e,{value:oe(e.value,"@","@"+K)})],r);case Z: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 ze([ve(e,{props:[oe(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ze([ve(e,{props:[oe(t,/:(plac\w+)/,":"+K+"input-$1")]}),ve(e,{props:[oe(t,/:(plac\w+)/,":-moz-$1")]}),ve(e,{props:[oe(t,/:(plac\w+)/,q+"input-$1")]})],r)}return""})}}],Je=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||Ze,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,c,d=[De,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],u=function(e){var t=ce(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([Ue,We].concat(i,d));o=function(e,t,n,r){l=n,function(e){ze(Me(e),u)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new V({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p},Qe={exports:{}},et={};function tt(){return Ye||(Ye=1,Qe.exports=function(){if(qe)return et;qe=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=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 r: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 n:return p}}}function x(e){return y(e)===c}return et.AsyncMode=l,et.ConcurrentMode=c,et.ContextConsumer=s,et.ContextProvider=a,et.Element=t,et.ForwardRef=d,et.Fragment=r,et.Lazy=f,et.Memo=h,et.Portal=n,et.Profiler=i,et.StrictMode=o,et.Suspense=u,et.isAsyncMode=function(e){return x(e)||y(e)===l},et.isConcurrentMode=x,et.isContextConsumer=function(e){return y(e)===s},et.isContextProvider=function(e){return y(e)===a},et.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},et.isForwardRef=function(e){return y(e)===d},et.isFragment=function(e){return y(e)===r},et.isLazy=function(e){return y(e)===f},et.isMemo=function(e){return y(e)===h},et.isPortal=function(e){return y(e)===n},et.isProfiler=function(e){return y(e)===i},et.isStrictMode=function(e){return y(e)===o},et.isSuspense=function(e){return y(e)===u},et.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||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)},et.typeOf=y,et}()),Qe.exports}!function(){if(Xe)return Ke;Xe=1;var e=tt(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,u=Object.prototype;Ke=function e(t,r,o){if("string"!=typeof r){if(u){var p=d(r);p&&p!==u&&e(t,p,o)}var h=s(r);l&&(h=h.concat(l(r)));for(var f=i(t),m=i(r),b=0;b<h.length;++b){var g=h[b];if(!(n[g]||o&&o[g]||m&&m[g]||f&&f[g])){var v=c(r,g);try{a(t,g,v)}catch(e){}}}}return t}}();function nt(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var rt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ot=function(e,t,n){rt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var it={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},at=/[A-Z]|^ms/g,st=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lt=function(e){return 45===e.charCodeAt(1)},ct=function(e){return null!=e&&"boolean"!=typeof e},dt=Be(function(e){return lt(e)?e:e.replace(at,"-$&").toLowerCase()}),ut=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(st,function(e,t,n){return ht={name:t,styles:n,next:ht},t})}return 1===it[e]||lt(e)||"number"!=typeof t||0===t?t:t+"px"};function pt(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return ht={name:o.name,styles:o.styles,next:ht},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)ht={name:a.name,styles:a.styles,next:ht},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=pt(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":ct(s)&&(r+=dt(i)+":"+ut(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=pt(e,t,a);switch(i){case"animation":case"animationName":r+=dt(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)ct(a[c])&&(r+=dt(i)+":"+ut(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=ht,l=n(e);return ht=s,pt(e,t,l)}}var c=n;if(null==t)return c;var d=t[c];return void 0!==d?d:c}var ht,ft=/label:\s*([^\s;{]+)\s*(;|$)/g;function mt(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ht=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=pt(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=pt(n,t,e[a]),r)o+=i[a]}ft.lastIndex=0;for(var s,l="";null!==(s=ft.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:ht}}var bt,gt,vt=!!y.useInsertionEffect&&y.useInsertionEffect,yt=vt||function(e){return e()},xt=vt||y.useLayoutEffect,Et=y.createContext("undefined"!=typeof HTMLElement?Je({key:"css"}):null),Ct=Et.Provider,St=function(e){return x(function(t,n){var r=E(Et);return e(t,r,n)})},wt=y.createContext({}),Rt={}.hasOwnProperty,kt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_t=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return rt(t,n,r),yt(function(){return ot(t,n,r)}),null},At=St(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[kt],i=[r],a="";"string"==typeof e.className?a=nt(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=mt(i,void 0,y.useContext(wt));a+=t.key+"-"+s.name;var l={};for(var c in e)Rt.call(e,c)&&"css"!==c&&c!==kt&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),y.createElement(y.Fragment,null,y.createElement(_t,{cache:t,serialized:s,isStringTag:"string"==typeof o}),y.createElement(o,l))}),Lt=function(e,t){var n=arguments;if(null==t||!Rt.call(t,"css"))return y.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=At,o[1]=function(e,t){var n={};for(var r in t)Rt.call(t,r)&&(n[r]=t[r]);return n[kt]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return y.createElement.apply(null,o)};bt=Lt||(Lt={}),gt||(gt=bt.JSX||(bt.JSX={}));var It=St(function(e,t){var n=mt([e.styles],void 0,y.useContext(wt)),r=y.useRef();return xt(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+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),xt(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&ot(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function Tt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mt(t)}function Pt(){var e=Tt.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_"}}}var Mt=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,Ot=Be(function(e){return Mt.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),jt=function(e){return"theme"!==e},$t=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ot:jt},Nt=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},zt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return rt(t,n,r),yt(function(){return ot(t,n,r)}),null},Dt=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Nt(t,n,i),l=s||$t(a),c=!l("as");return function(){var d=arguments,u=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&u.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)u.push.apply(u,d);else{var p=d[0];u.push(p[0]);for(var h=d.length,f=1;f<h;f++)u.push(d[f],p[f])}var m=St(function(e,t,n){var r=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(wt)}"string"==typeof e.className?i=nt(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var f=mt(u.concat(d),t.registered,p);i+=t.key+"-"+f.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===s?$t(r):l,b={};for(var g in e)c&&"as"===g||m(g)&&(b[g]=e[g]);return b.className=i,n&&(b.ref=n),y.createElement(y.Fragment,null,y.createElement(zt,{cache:t,serialized:f,isStringTag:"string"==typeof r}),y.createElement(r,b))});return m.displayName=void 0!==r?r:"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"."+o}}),m.withComponent=function(t,r){return e(t,U({},n,r,{shouldForwardProp:Nt(m,r,!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){Dt[e]=Dt(e)});var Bt,Ft,Gt={exports:{}},Ht={};var Ut=(Ft||(Ft=1,Gt.exports=function(){if(Bt)return Ht;Bt=1;var e=C,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=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,n,a){var s,l={},c=null,d=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(d=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:d,props:l,_owner:o.current}}return Ht.Fragment=n,Ht.jsx=a,Ht.jsxs=a,Ht}()),Gt.exports);const Wt=new Map;function Vt(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return Ut.jsx(It,{styles:r})}
|
|
7
|
+
System.register(["@nebula.js/stardust","react","react-dom"],function(e){"use strict";var t,n,r,o,i,a,s,l,c,d,u,p,h,f,m,b,g,v,y,x,E,C,S,w,R,_,k,A,L,I,T,P,M,O;return{setters:[function(e){t=e.useOptions,n=e.useEffect,r=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,C=e.default,S=e.isValidElement,w=e.cloneElement,R=e.Children,_=e.useState,k=e.useEffect,A=e.createContext,L=e.useImperativeHandle,I=e.useRef,T=e.useCallback,P=e.useMemo},function(e){M=e.default,O=e}],execute:function(){e("default",function(e){return{qae:{properties:Df,data:Nf},ext:bh({env:e,propertyHandlerData:Ff}),component(){const t=of(),n=p();i(()=>{!function(e){if(e&&e.get&&e.add){const t="LayoutContainer.EmptyList.AddContent";if(e.get(t)!==t)return;Object.keys(N).forEach(t=>{e.add(N[t])})}}(n)},[n]);const{dataHandler:r,model:o,accessibility:s,setAccessibility:l,interactions:c,element:d,modifiedLayout:u}=t,h=i(()=>function(){const e=new B.EventEmitter;let t=[];return e.updateActiveCharts=n=>{t=n.slice(),e.emit("activeChartsChange",t.slice())},e.setActiveCharts=n=>{t=n.slice(),e.emit("setActiveCharts",t.slice())},e.getActiveCharts=()=>[...t],e}(),[]),{renderHelper:f,sharedContainerUtilities:m,activeTabId:b}=$f({element:d,models:t,env:e,activeCharts:h});gh({containerId:o?.id||"",element:d,sharedContainerUtilities:m,translator:n,dataHandler:r,propertyHandlerData:Ff,renderHelper:f});const[g,y]=a(!0);jh({isContainerActive:g,activeTabId:b,renderHelper:f,modifiedLayout:u,activeCharts:h,sharedContainerUtilities:m}),Mh({element:d,accessibility:s,setAccessibility:l,renderHelper:f,interactions:c,env:e,models:t});const{getViewState:x}=Eh(f,Bf);v(()=>({getViewState:x,getChildrenObjects(){const e=f.getChildrenObjects();return zf(e)},updateActiveState(e){y(e)},activeCharts:h}),[])}}});var j,$,N={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":"無標題的物件"}},contextMenu_subMenuContainerOptions:{id:"contextMenu.subMenuContainerOptions",locale:{"de-DE":"Siehe Containeroptionen","en-US":"See container options","es-ES":"Ver opciones de contenedor","fr-FR":"Voir les options de conteneur","it-IT":"Vedi opzioni contenitore","ja-JP":"コンテナ オプションを表示","ko-KR":"컨테이너 옵션 보기","nl-NL":"Containeropties bekijken","pl-PL":"Zobacz opcje kontenera","pt-BR":"Ver opções do contêiner","ru-RU":"См. параметры контейнера","sv-SE":"Visa alternativ för behållare","tr-TR":"Kapsayıcı seçeneklerini görün","zh-CN":"请参阅容器选项","zh-TW":"查看容器選項"}}};function D(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function z(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch(e){}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var B=function(){if($)return j;$=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},j=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,s;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(s=r.slice()).length,a=0;a<o;a++)s[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},j}();function F(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 G=Object.freeze({__proto__:null,default:F}),H="$$material";function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U.apply(null,arguments)}function W(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var V=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=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,n),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];if(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(e){}}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},e}(),q="-ms-",Y="-moz-",K="-webkit-",X="comm",Z="rule",J="decl",Q="@keyframes",ee=Math.abs,te=String.fromCharCode,ne=Object.assign;function re(e){return e.trim()}function oe(e,t,n){return e.replace(t,n)}function ie(e,t){return e.indexOf(t)}function ae(e,t){return 0|e.charCodeAt(t)}function se(e,t,n){return e.slice(t,n)}function le(e){return e.length}function ce(e){return e.length}function de(e,t){return t.push(e),e}var ue=1,pe=1,he=0,fe=0,me=0,be="";function ge(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ue,column:pe,length:a,return:""}}function ve(e,t){return ne(ge("",null,null,"",null,null,0),e,{length:-e.length},t)}function ye(){return me=fe>0?ae(be,--fe):0,pe--,10===me&&(pe=1,ue--),me}function xe(){return me=fe<he?ae(be,fe++):0,pe++,10===me&&(pe=1,ue++),me}function Ee(){return ae(be,fe)}function Ce(){return fe}function Se(e,t){return se(be,e,t)}function we(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 Re(e){return ue=pe=1,he=le(be=e),fe=0,[]}function _e(e){return be="",e}function ke(e){return re(Se(fe-1,Ie(91===e?e+2:40===e?e+1:e)))}function Ae(e){for(;(me=Ee())&&me<33;)xe();return we(e)>2||we(me)>3?"":" "}function Le(e,t){for(;--t&&xe()&&!(me<48||me>102||me>57&&me<65||me>70&&me<97););return Se(e,Ce()+(t<6&&32==Ee()&&32==xe()))}function Ie(e){for(;xe();)switch(me){case e:return fe;case 34:case 39:34!==e&&39!==e&&Ie(me);break;case 40:41===e&&Ie(e);break;case 92:xe()}return fe}function Te(e,t){for(;xe()&&e+me!==57&&(e+me!==84||47!==Ee()););return"/*"+Se(t,fe-1)+"*"+te(47===e?e:xe())}function Pe(e){for(;!we(Ee());)xe();return Se(e,fe)}function Me(e){return _e(Oe("",null,null,null,[""],e=Re(e),0,[0],e))}function Oe(e,t,n,r,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,C=r,S=y;b;)switch(f=v,v=xe()){case 40:if(108!=f&&58==ae(S,u-1)){-1!=ie(S+=oe(ke(v),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=ke(v);break;case 9:case 10:case 13:case 32:S+=Ae(f);break;case 92:S+=Le(Ce()-1,7);continue;case 47:switch(Ee()){case 42:case 47:de($e(Te(xe(),Ce()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=le(S)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+d:-1==g&&(S=oe(S,/\f/g,"")),h>0&&le(S)-u&&de(h>32?Ne(S+";",r,n,u-1):Ne(oe(S," ","")+";",r,n,u-2),l);break;case 59:S+=";";default:if(de(C=je(S,t,n,c,d,o,s,y,x=[],E=[],u),i),123===v)if(0===d)Oe(S,t,C,C,x,i,u,s,E);else switch(99===p&&110===ae(S,3)?100:p){case 100:case 108:case 109:case 115:Oe(e,C,C,r&&de(je(e,C,C,0,0,o,s,y,o,x=[],u),E),o,E,u,s,r?x:E);break;default:Oe(S,C,C,C,[""],E,0,s,E)}}c=d=h=0,m=g=1,y=S="",u=a;break;case 58:u=1+le(S),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==ye())continue;switch(S+=te(v),v*m){case 38:g=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(le(S)-1)*g,g=1;break;case 64:45===Ee()&&(S+=ke(xe())),p=Ee(),d=u=le(y=S+=Pe(Ce())),v++;break;case 45:45===f&&2==le(S)&&(m=0)}}return i}function je(e,t,n,r,o,i,a,s,l,c,d){for(var u=o-1,p=0===o?i:[""],h=ce(p),f=0,m=0,b=0;f<r;++f)for(var g=0,v=se(e,u+1,u=ee(m=a[f])),y=e;g<h;++g)(y=re(m>0?p[g]+" "+v:oe(v,/&\f/g,p[g])))&&(l[b++]=y);return ge(e,t,n,0===o?Z:s,l,c,d)}function $e(e,t,n){return ge(e,t,n,X,te(me),se(e,2,-2),0)}function Ne(e,t,n,r){return ge(e,t,n,J,se(e,0,r),se(e,r+1,-1),r)}function De(e,t){for(var n="",r=ce(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function ze(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case J:return e.return=e.return||e.value;case X:return"";case Q:return e.return=e.value+"{"+De(e.children,r)+"}";case Z:e.value=e.props.join(",")}return le(n=De(e.children,r))?e.return=e.value+"{"+n+"}":""}function Be(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Fe=function(e,t,n){for(var r=0,o=0;r=o,o=Ee(),38===r&&12===o&&(t[n]=1),!we(o);)xe();return Se(e,fe)},Ge=function(e,t){return _e(function(e,t){var n=-1,r=44;do{switch(we(r)){case 0:38===r&&12===Ee()&&(t[n]=1),e[n]+=Fe(fe-1,t,n);break;case 2:e[n]+=ke(r);break;case 4:if(44===r){e[++n]=58===Ee()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=te(r)}}while(r=xe());return e}(Re(e),t))},He=new WeakMap,Ue=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||He.get(n))&&!r){He.set(e,!0);for(var o=[],i=Ge(t,o),a=n.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]}}},We=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ve(e,t){switch(function(e,t){return 45^ae(e,0)?(((t<<2^ae(e,0))<<2^ae(e,1))<<2^ae(e,2))<<2^ae(e,3):0}(e,t)){case 5103:return K+"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 K+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return K+e+Y+e+q+e+e;case 6828:case 4268:return K+e+q+e+e;case 6165:return K+e+q+"flex-"+e+e;case 5187:return K+e+oe(e,/(\w+).+(:[^]+)/,K+"box-$1$2"+q+"flex-$1$2")+e;case 5443:return K+e+q+"flex-item-"+oe(e,/flex-|-self/,"")+e;case 4675:return K+e+q+"flex-line-pack"+oe(e,/align-content|flex-|-self/,"")+e;case 5548:return K+e+q+oe(e,"shrink","negative")+e;case 5292:return K+e+q+oe(e,"basis","preferred-size")+e;case 6060:return K+"box-"+oe(e,"-grow","")+K+e+q+oe(e,"grow","positive")+e;case 4554:return K+oe(e,/([^-])(transform)/g,"$1"+K+"$2")+e;case 6187:return oe(oe(oe(e,/(zoom-|grab)/,K+"$1"),/(image-set)/,K+"$1"),e,"")+e;case 5495:case 3959:return oe(e,/(image-set\([^]*)/,K+"$1$`$1");case 4968:return oe(oe(e,/(.+:)(flex-)?(.*)/,K+"box-pack:$3"+q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+K+e+e;case 4095:case 3583:case 4068:case 2532:return oe(e,/(.+)-inline(.+)/,K+"$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(le(e)-1-t>6)switch(ae(e,t+1)){case 109:if(45!==ae(e,t+4))break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+K+"$2-$3$1"+Y+(108==ae(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ie(e,"stretch")?Ve(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ae(e,t+1))break;case 6444:switch(ae(e,le(e)-3-(~ie(e,"!important")&&10))){case 107:return oe(e,":",":"+K)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+K+(45===ae(e,14)?"inline-":"")+"box$3$1"+K+"$2$3$1"+q+"$2box$3")+e}break;case 5936:switch(ae(e,t+11)){case 114:return K+e+q+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return K+e+q+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return K+e+q+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return K+e+q+e+e}return e}var qe,Ye,Ke,Xe,Ze=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case J:e.return=Ve(e.value,e.length);break;case Q:return De([ve(e,{value:oe(e.value,"@","@"+K)})],r);case Z: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 De([ve(e,{props:[oe(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return De([ve(e,{props:[oe(t,/:(plac\w+)/,":"+K+"input-$1")]}),ve(e,{props:[oe(t,/:(plac\w+)/,":-moz-$1")]}),ve(e,{props:[oe(t,/:(plac\w+)/,q+"input-$1")]})],r)}return""})}}],Je=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||Ze,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,c,d=[ze,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],u=function(e){var t=ce(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([Ue,We].concat(i,d));o=function(e,t,n,r){l=n,function(e){De(Me(e),u)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new V({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p},Qe={exports:{}},et={};function tt(){return Ye||(Ye=1,Qe.exports=function(){if(qe)return et;qe=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=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 r: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 n:return p}}}function x(e){return y(e)===c}return et.AsyncMode=l,et.ConcurrentMode=c,et.ContextConsumer=s,et.ContextProvider=a,et.Element=t,et.ForwardRef=d,et.Fragment=r,et.Lazy=f,et.Memo=h,et.Portal=n,et.Profiler=i,et.StrictMode=o,et.Suspense=u,et.isAsyncMode=function(e){return x(e)||y(e)===l},et.isConcurrentMode=x,et.isContextConsumer=function(e){return y(e)===s},et.isContextProvider=function(e){return y(e)===a},et.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},et.isForwardRef=function(e){return y(e)===d},et.isFragment=function(e){return y(e)===r},et.isLazy=function(e){return y(e)===f},et.isMemo=function(e){return y(e)===h},et.isPortal=function(e){return y(e)===n},et.isProfiler=function(e){return y(e)===i},et.isStrictMode=function(e){return y(e)===o},et.isSuspense=function(e){return y(e)===u},et.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||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)},et.typeOf=y,et}()),Qe.exports}!function(){if(Xe)return Ke;Xe=1;var e=tt(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,u=Object.prototype;Ke=function e(t,r,o){if("string"!=typeof r){if(u){var p=d(r);p&&p!==u&&e(t,p,o)}var h=s(r);l&&(h=h.concat(l(r)));for(var f=i(t),m=i(r),b=0;b<h.length;++b){var g=h[b];if(!(n[g]||o&&o[g]||m&&m[g]||f&&f[g])){var v=c(r,g);try{a(t,g,v)}catch(e){}}}}return t}}();function nt(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var rt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ot=function(e,t,n){rt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var it={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},at=/[A-Z]|^ms/g,st=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lt=function(e){return 45===e.charCodeAt(1)},ct=function(e){return null!=e&&"boolean"!=typeof e},dt=Be(function(e){return lt(e)?e:e.replace(at,"-$&").toLowerCase()}),ut=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(st,function(e,t,n){return ht={name:t,styles:n,next:ht},t})}return 1===it[e]||lt(e)||"number"!=typeof t||0===t?t:t+"px"};function pt(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return ht={name:o.name,styles:o.styles,next:ht},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)ht={name:a.name,styles:a.styles,next:ht},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=pt(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":ct(s)&&(r+=dt(i)+":"+ut(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=pt(e,t,a);switch(i){case"animation":case"animationName":r+=dt(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)ct(a[c])&&(r+=dt(i)+":"+ut(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=ht,l=n(e);return ht=s,pt(e,t,l)}}var c=n;if(null==t)return c;var d=t[c];return void 0!==d?d:c}var ht,ft=/label:\s*([^\s;{]+)\s*(;|$)/g;function mt(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ht=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=pt(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=pt(n,t,e[a]),r)o+=i[a]}ft.lastIndex=0;for(var s,l="";null!==(s=ft.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:ht}}var bt,gt,vt=!!y.useInsertionEffect&&y.useInsertionEffect,yt=vt||function(e){return e()},xt=vt||y.useLayoutEffect,Et=y.createContext("undefined"!=typeof HTMLElement?Je({key:"css"}):null),Ct=Et.Provider,St=function(e){return x(function(t,n){var r=E(Et);return e(t,r,n)})},wt=y.createContext({}),Rt={}.hasOwnProperty,_t="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",kt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return rt(t,n,r),yt(function(){return ot(t,n,r)}),null},At=St(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[_t],i=[r],a="";"string"==typeof e.className?a=nt(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=mt(i,void 0,y.useContext(wt));a+=t.key+"-"+s.name;var l={};for(var c in e)Rt.call(e,c)&&"css"!==c&&c!==_t&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),y.createElement(y.Fragment,null,y.createElement(kt,{cache:t,serialized:s,isStringTag:"string"==typeof o}),y.createElement(o,l))}),Lt=function(e,t){var n=arguments;if(null==t||!Rt.call(t,"css"))return y.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=At,o[1]=function(e,t){var n={};for(var r in t)Rt.call(t,r)&&(n[r]=t[r]);return n[_t]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return y.createElement.apply(null,o)};bt=Lt||(Lt={}),gt||(gt=bt.JSX||(bt.JSX={}));var It=St(function(e,t){var n=mt([e.styles],void 0,y.useContext(wt)),r=y.useRef();return xt(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+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),xt(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&ot(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function Tt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mt(t)}function Pt(){var e=Tt.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_"}}}var Mt=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,Ot=Be(function(e){return Mt.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),jt=function(e){return"theme"!==e},$t=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ot:jt},Nt=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Dt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return rt(t,n,r),yt(function(){return ot(t,n,r)}),null},zt=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Nt(t,n,i),l=s||$t(a),c=!l("as");return function(){var d=arguments,u=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&u.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)u.push.apply(u,d);else{var p=d[0];u.push(p[0]);for(var h=d.length,f=1;f<h;f++)u.push(d[f],p[f])}var m=St(function(e,t,n){var r=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(wt)}"string"==typeof e.className?i=nt(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var f=mt(u.concat(d),t.registered,p);i+=t.key+"-"+f.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===s?$t(r):l,b={};for(var g in e)c&&"as"===g||m(g)&&(b[g]=e[g]);return b.className=i,n&&(b.ref=n),y.createElement(y.Fragment,null,y.createElement(Dt,{cache:t,serialized:f,isStringTag:"string"==typeof r}),y.createElement(r,b))});return m.displayName=void 0!==r?r:"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"."+o}}),m.withComponent=function(t,r){return e(t,U({},n,r,{shouldForwardProp:Nt(m,r,!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){zt[e]=zt(e)});var Bt,Ft,Gt={exports:{}},Ht={};var Ut=(Ft||(Ft=1,Gt.exports=function(){if(Bt)return Ht;Bt=1;var e=C,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=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,n,a){var s,l={},c=null,d=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(d=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:d,props:l,_owner:o.current}}return Ht.Fragment=n,Ht.jsx=a,Ht.jsxs=a,Ht}()),Gt.exports);const Wt=new Map;function Vt(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return Ut.jsx(It,{styles:r})}
|
|
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 qt(e,t){return Dt(e,t)}const Yt=[];function Kt(e){return Yt[0]=e,mt(Yt)}var Xt=Object.freeze({__proto__:null,GlobalStyles:Vt,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=y.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&Wt.has(e))return Wt.get(e);const r=function(e,t){const n=Je({key:"css",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(t,n);return Wt.set(e,r),r},[t,n]);return t||n?Ut.jsx(Ct,{value:o,children:r}):r},ThemeContext:wt,css:Tt,default:qt,internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:Kt,keyframes:Pt});function Zt(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 Jt(e){if(y.isValidElement(e)||!Zt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Jt(e[n])}),t}function Qt(e,t,n={clone:!0}){const r=n.clone?U({},e):e;return Zt(e)&&Zt(t)&&Object.keys(t).forEach(o=>{y.isValidElement(t[o])?r[o]=t[o]:Zt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Zt(e[o])?r[o]=Qt(e[o],t[o],n):n.clone?r[o]=Zt(t[o])?Jt(t[o]):t[o]:r[o]=t[o]}),r}var en=Object.freeze({__proto__:null,default:Qt,isPlainObject:Zt});const tn=["values","unit","step"];function nn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=W(e,tn),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)=>U({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return U({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:n},o)}const rn={borderRadius:4};function on(e,t){return t?Qt(e,t,{clone:!1}):e}const an={xs:0,sm:600,md:900,lg:1200,xl:1536},sn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${an[e]}px)`};function ln(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||sn;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||sn;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||an).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function cn(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function dn(e){if("string"!=typeof e)throw new Error(F(7));return e.charAt(0).toUpperCase()+e.slice(1)}var un=Object.freeze({__proto__:null,default:dn});function pn(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function hn(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:pn(e,n)||r,t&&(o=t(o,r,e)),o}function fn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=pn(e.theme,r)||{};return ln(e,i,e=>{let r=hn(a,o,e);return e===r&&"string"==typeof e&&(r=hn(a,o,`${t}${"default"===e?"":dn(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const mn={m:"margin",p:"padding"},bn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vn=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!gn[e])return[e];e=gn[e]}const[t,n]=e.split(""),r=mn[t],o=bn[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),yn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],xn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function En(e,t,n,r){var o;const i=null!=(o=pn(e,t,!1))?o:n;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 Cn(e){return En(e,"spacing",8)}function Sn(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function wn(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Sn(t,n),e),{})}(vn(n),r);return ln(e,e[n],o)}function Rn(e,t){const n=Cn(e.theme);return Object.keys(e).map(r=>wn(e,t,r,n)).reduce(on,{})}function kn(e){return Rn(e,yn)}function _n(e){return Rn(e,xn)}function An(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?on(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Ln(e){return"number"!=typeof e?e:`${e}px solid`}function In(e,t){return fn({prop:e,themeKey:"borders",transform:t})}kn.propTypes={},kn.filterProps=yn,_n.propTypes={},_n.filterProps=xn;const Tn=In("border",Ln),Pn=In("borderTop",Ln),Mn=In("borderRight",Ln),On=In("borderBottom",Ln),jn=In("borderLeft",Ln),$n=In("borderColor"),Nn=In("borderTopColor"),zn=In("borderRightColor"),Dn=In("borderBottomColor"),Bn=In("borderLeftColor"),Fn=In("outline",Ln),Gn=In("outlineColor"),Hn=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=En(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Sn(t,e)});return ln(e,e.borderRadius,n)}return null};Hn.propTypes={},Hn.filterProps=["borderRadius"],An(Tn,Pn,Mn,On,jn,$n,Nn,zn,Dn,Bn,Hn,Fn,Gn);const Un=e=>{if(void 0!==e.gap&&null!==e.gap){const t=En(e.theme,"spacing",8),n=e=>({gap:Sn(t,e)});return ln(e,e.gap,n)}return null};Un.propTypes={},Un.filterProps=["gap"];const Wn=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=En(e.theme,"spacing",8),n=e=>({columnGap:Sn(t,e)});return ln(e,e.columnGap,n)}return null};Wn.propTypes={},Wn.filterProps=["columnGap"];const Vn=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=En(e.theme,"spacing",8),n=e=>({rowGap:Sn(t,e)});return ln(e,e.rowGap,n)}return null};Vn.propTypes={},Vn.filterProps=["rowGap"];function qn(e,t){return"grey"===t?t:e}An(Un,Wn,Vn,fn({prop:"gridColumn"}),fn({prop:"gridRow"}),fn({prop:"gridAutoFlow"}),fn({prop:"gridAutoColumns"}),fn({prop:"gridAutoRows"}),fn({prop:"gridTemplateColumns"}),fn({prop:"gridTemplateRows"}),fn({prop:"gridTemplateAreas"}),fn({prop:"gridArea"}));function Yn(e){return e<=1&&0!==e?100*e+"%":e}An(fn({prop:"color",themeKey:"palette",transform:qn}),fn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qn}),fn({prop:"backgroundColor",themeKey:"palette",transform:qn}));const Kn=fn({prop:"width",transform:Yn}),Xn=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||an[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Yn(t)}};return ln(e,e.maxWidth,t)}return null};Xn.filterProps=["maxWidth"];const Zn=fn({prop:"minWidth",transform:Yn}),Jn=fn({prop:"height",transform:Yn}),Qn=fn({prop:"maxHeight",transform:Yn}),er=fn({prop:"minHeight",transform:Yn});fn({prop:"size",cssProperty:"width",transform:Yn}),fn({prop:"size",cssProperty:"height",transform:Yn});An(Kn,Xn,Zn,Jn,Qn,er,fn({prop:"boxSizing"}));const tr={border:{themeKey:"borders",transform:Ln},borderTop:{themeKey:"borders",transform:Ln},borderRight:{themeKey:"borders",transform:Ln},borderBottom:{themeKey:"borders",transform:Ln},borderLeft:{themeKey:"borders",transform:Ln},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ln},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Hn},color:{themeKey:"palette",transform:qn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qn},backgroundColor:{themeKey:"palette",transform:qn},p:{style:_n},pt:{style:_n},pr:{style:_n},pb:{style:_n},pl:{style:_n},px:{style:_n},py:{style:_n},padding:{style:_n},paddingTop:{style:_n},paddingRight:{style:_n},paddingBottom:{style:_n},paddingLeft:{style:_n},paddingX:{style:_n},paddingY:{style:_n},paddingInline:{style:_n},paddingInlineStart:{style:_n},paddingInlineEnd:{style:_n},paddingBlock:{style:_n},paddingBlockStart:{style:_n},paddingBlockEnd:{style:_n},m:{style:kn},mt:{style:kn},mr:{style:kn},mb:{style:kn},ml:{style:kn},mx:{style:kn},my:{style:kn},margin:{style:kn},marginTop:{style:kn},marginRight:{style:kn},marginBottom:{style:kn},marginLeft:{style:kn},marginX:{style:kn},marginY:{style:kn},marginInline:{style:kn},marginInlineStart:{style:kn},marginInlineEnd:{style:kn},marginBlock:{style:kn},marginBlockStart:{style:kn},marginBlockEnd:{style:kn},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:Un},rowGap:{style:Vn},columnGap:{style:Wn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yn},maxWidth:{style:Xn},minWidth:{transform:Yn},height:{transform:Yn},maxHeight:{transform:Yn},minHeight:{transform:Yn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function nr(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[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=pn(n,s)||{};if(c)return c(o);return ln(o,t,t=>{let n=hn(d,l,t);return t===n&&"string"==typeof t&&(n=hn(d,l,`${e}${"default"===t?"":dn(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:tr;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(r).forEach(n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])c=on(c,e(n,o,i,s));else{const e=ln({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?c=on(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=on(c,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":cn(l,c)}:cn(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const rr=nr();function or(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}rr.filterProps=["sx"];const ir=["breakpoints","palette","spacing","shape"];function ar(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=W(e,ir),s=nn(n),l=function(e=8){if(e.mui)return e;const t=Cn({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(o);let c=Qt({breakpoints:s,direction:"ltr",components:{},palette:U({mode:"light"},r),spacing:l,shape:U({},rn,i)},a);return c.applyStyles=or,c=t.reduce((e,t)=>Qt(e,t),c),c.unstable_sxConfig=U({},tr,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return rr({sx:e,theme:this})},c}var sr=Object.freeze({__proto__:null,default:ar,private_createBreakpoints:nn,unstable_applyStyles:or});function lr(e=null){const t=y.useContext(wt);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const cr=ar();function dr(e=cr){return lr(e)}function ur(e){const t=Kt(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function pr({styles:e,themeId:t,defaultTheme:n={}}){const r=dr(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>ur("function"==typeof e?e(o):e)):ur(i)),Ut.jsx(Vt,{styles:i})}const hr=["sx"];function fr(e){const{sx:t}=e,n=W(e,hr),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:tr;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Zt(n)?U({},r,n):r}:U({},r,t),U({},o,{sx:i})}var mr=Object.freeze({__proto__:null,default:rr,extendSxProp:fr,unstable_createStyleFunctionSx:nr,unstable_defaultSxConfig:tr});const br=e=>e,gr=(()=>{let e=br;return{configure(t){e=t},generate:t=>e(t),reset(){e=br}}})();function vr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=vr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function yr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=vr(e))&&(r&&(r+=" "),r+=t);return r}const xr=["className","component"];const Er={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 Cr(e,t,n="Mui"){const r=Er[t];return r?`${n}-${r}`:`${gr.generate(e)}-${t}`}function Sr(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Cr(e,t,n)}),r}var wr,Rr,kr={exports:{}},_r={};function Ar(){if(wr)return _r;wr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=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.view_transition"),h=Symbol.for("react.client.reference");function f(h){if("object"==typeof h&&null!==h){var f=h.$$typeof;switch(f){case e:switch(h=h.type){case n:case o:case r:case l:case c:case p:return h;default:switch(h=h&&h.$$typeof){case a:case s:case u:case d:case i:return h;default:return f}}case t:return f}}}return _r.ContextConsumer=i,_r.ContextProvider=a,_r.Element=e,_r.ForwardRef=s,_r.Fragment=n,_r.Lazy=u,_r.Memo=d,_r.Portal=t,_r.Profiler=o,_r.StrictMode=r,_r.Suspense=l,_r.SuspenseList=c,_r.isContextConsumer=function(e){return f(e)===i},_r.isContextProvider=function(e){return f(e)===a},_r.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},_r.isForwardRef=function(e){return f(e)===s},_r.isFragment=function(e){return f(e)===n},_r.isLazy=function(e){return f(e)===u},_r.isMemo=function(e){return f(e)===d},_r.isPortal=function(e){return f(e)===t},_r.isProfiler=function(e){return f(e)===o},_r.isStrictMode=function(e){return f(e)===r},_r.isSuspense=function(e){return f(e)===l},_r.isSuspenseList=function(e){return f(e)===c},_r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||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)},_r.typeOf=f,_r}function Lr(){return Rr||(Rr=1,kr.exports=Ar()),kr.exports}var Ir=Lr();const Tr=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Pr(e){const t=`${e}`.match(Tr);return t&&t[1]||""}function Mr(e,t=""){return e.displayName||e.name||Pr(e)||t}function Or(e,t,n){const r=Mr(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var jr=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Mr(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ir.ForwardRef:return Or(e,e.render,"ForwardRef");case Ir.Memo:return Or(e,e.type,"memo");default:return}}},getFunctionName:Pr});function $r(e,t){const n=U({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=U({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=U({},i),Object.keys(o).forEach(e=>{n[r][e]=$r(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}const Nr="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function zr(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Dr=Object.freeze({__proto__:null,default:zr});function Br(e){if(e.type)return e;if("#"===e.charAt(0))return Br(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(F(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(F(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function Fr(e,t){return e=Br(e),t=function(e,t=0,n=1){return zr(e,t,n)}(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:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function Gr(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Hr(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function Ur(e){return e&&e.ownerDocument||document}function Wr(e){return Ur(e).defaultView||window}function Vr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let qr=0;const Yr=y["useId".toString()];function Kr(e){if(void 0!==Yr){return Yr()}return function(e){const[t,n]=y.useState(e),r=e||t;return y.useEffect(()=>{null==t&&(qr+=1,n(`mui-${qr}`))},[t]),r}(e)}function Xr(e){const t=y.useRef(e);return Nr(()=>{t.current=e}),y.useRef((...e)=>(0,t.current)(...e)).current}function Zr(...e){return y.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{Vr(e,t)})},e)}const Jr={};const Qr=[];class eo{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new eo}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function to(){const e=function(e,t){const n=y.useRef(Jr);return n.current===Jr&&(n.current=e(t)),n}(eo.create).current;return function(e){y.useEffect(e,Qr)}(e.disposeEffect),e}let no=!0,ro=!1;const oo=new eo,io={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 ao(e){e.metaKey||e.altKey||e.ctrlKey||(no=!0)}function so(){no=!1}function lo(){"hidden"===this.visibilityState&&ro&&(no=!0)}function co(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return no||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!io[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function uo(){const e=y.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ao,!0),t.addEventListener("mousedown",so,!0),t.addEventListener("pointerdown",so,!0),t.addEventListener("touchstart",so,!0),t.addEventListener("visibilitychange",lo,!0))},[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!co(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ro=!0,oo.start(100,()=>{ro=!1}),t.current=!1,!0)},ref:e}}function po(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let ho;function fo(){if(ho)return ho;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),ho="reverse",e.scrollLeft>0?ho="default":(e.scrollLeft=1,0===e.scrollLeft&&(ho="negative")),document.body.removeChild(e),ho}function mo(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(fo()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function bo(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function go(e){return"string"==typeof e}function vo(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}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(n=>{t[n]=e[n]}),t}const xo=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Eo(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=W(e,xo),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=yr(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=U({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=U({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=vo(U({},o,r)),s=yo(r),l=yo(o),c=t(a),d=yr(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),u=U({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=U({},c,n,l,s);return d.length>0&&(p.className=d),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:c.ref}}(U({},a,{externalSlotProps:s})),d=function(e,t,n){return void 0===e||go(e)?t:U({},t,{ownerState:U({},t.ownerState,n)})}(n,U({},l,{ref:Zr(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return d}function Co(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 So=y.createContext(null);function wo(){return y.useContext(So)}var Ro="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ko(e){const{children:t,theme:n}=e,r=wo(),o=y.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return U({},e,t)}(r,n);return null!=e&&(e[Ro]=null!==r),e},[n,r]);return Ut.jsx(So.Provider,{value:o,children:t})}const _o=["value"],Ao=y.createContext();function Lo(e){let{value:t}=e,n=W(e,_o);return Ut.jsx(Ao.Provider,U({value:null==t||t},n))}const Io=()=>{const e=y.useContext(Ao);return null!=e&&e},To=y.createContext(void 0);function Po({value:e,children:t}){return Ut.jsx(To.Provider,{value:e,children:t})}function Mo({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?$r(o.defaultProps,r):o.styleOverrides||o.variants?r:$r(o,r)}({props:e,name:t,theme:{components:y.useContext(To)}})}const Oo={};function jo(e,t,n,r=!1){return y.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?U({},t,{[e]:i}):i;return r?()=>a:a}return U({},t,e?{[e]:n}:n)},[e,t,n,r])}function $o(e){const{children:t,theme:n,themeId:r}=e,o=lr(Oo),i=wo()||Oo,a=jo(r,o,n),s=jo(r,i,n,!0),l="rtl"===a.direction,c=function(e){const t=lr(),n=Kr()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Nr(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}},[o,n]),o?Ut.jsx(pr,{styles:o}):null}(a);return Ut.jsx(ko,{theme:s,children:Ut.jsx(wt.Provider,{value:a,children:Ut.jsx(Lo,{value:l,children:Ut.jsxs(Po,{value:null==a?void 0:a.components,children:[c,t]})})})})}var No,zo={},Do={exports:{}};function Bo(){return No||(No=1,(e=Do).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),Do.exports;var e}var Fo,Go=D(G),Ho=D(Dr);function Uo(){if(Fo)return zo;Fo=1;var e=Bo();Object.defineProperty(zo,"__esModule",{value:!0}),zo.alpha=d,zo.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),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})},zo.colorChannel=void 0,zo.darken=u,zo.decomposeColor=i,zo.emphasize=h,zo.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},zo.getLuminance=c,zo.hexToRgb=o,zo.hslToRgb=l,zo.lighten=p,zo.private_safeAlpha=function(e,t,n){try{return d(e,t)}catch(t){return e}},zo.private_safeColorChannel=void 0,zo.private_safeDarken=function(e,t,n){try{return u(e,t)}catch(t){return e}},zo.private_safeEmphasize=function(e,t,n){try{return h(e,t)}catch(t){return e}},zo.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},zo.recomposeColor=s,zo.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(Go),n=e(Ho);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.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 n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){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:r,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};zo.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/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=r(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=r(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 n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function h(e,t=.15){return c(e)>.5?u(e,t):p(e,t)}return zo.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},zo}var Wo=Uo();const Vo={black:"#000",white:"#fff"},qo={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"},Yo="#f3e5f5",Ko="#ce93d8",Xo="#ba68c8",Zo="#ab47bc",Jo="#9c27b0",Qo="#7b1fa2",ei="#e57373",ti="#ef5350",ni="#f44336",ri="#d32f2f",oi="#c62828",ii="#ffb74d",ai="#ffa726",si="#ff9800",li="#f57c00",ci="#e65100",di="#e3f2fd",ui="#90caf9",pi="#42a5f5",hi="#1976d2",fi="#1565c0",mi="#4fc3f7",bi="#29b6f6",gi="#03a9f4",vi="#0288d1",yi="#01579b",xi="#81c784",Ei="#66bb6a",Ci="#4caf50",Si="#388e3c",wi="#2e7d32",Ri="#1b5e20",ki=["mode","contrastThreshold","tonalOffset"],_i={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:Vo.white,default:Vo.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}},Ai={text:{primary:Vo.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:Vo.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 Li(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Wo.lighten(e.main,o):"dark"===t&&(e.dark=Wo.darken(e.main,i)))}function Ii(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=W(e,ki),i=e.primary||function(e="light"){return"dark"===e?{main:ui,light:di,dark:pi}:{main:hi,light:pi,dark:fi}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ko,light:Yo,dark:Zo}:{main:Jo,light:Xo,dark:Qo}}(t),s=e.error||function(e="light"){return"dark"===e?{main:ni,light:ei,dark:ri}:{main:ri,light:ti,dark:oi}}(t),l=e.info||function(e="light"){return"dark"===e?{main:bi,light:mi,dark:vi}:{main:vi,light:gi,dark:yi}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Ei,light:xi,dark:Si}:{main:wi,light:Ci,dark:Ri}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:ai,light:ii,dark:li}:{main:"#ed6c02",light:si,dark:ci}}(t);function u(e){return Wo.getContrastRatio(e,Ai.text.primary)>=n?Ai.text.primary:_i.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=U({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(F(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(F(12,t?` (${t})`:"",JSON.stringify(e.main)));return Li(e,"light",o,r),Li(e,"dark",i,r),e.contrastText||(e.contrastText=u(e.main)),e},h={dark:Ai,light:_i};return Qt(U({common:U({},Vo),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:qo,contrastThreshold:n,getContrastText:u,augmentColor:p,tonalOffset:r},h[t]),o)}const Ti=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Pi={textTransform:"uppercase"},Mi='"Roboto", "Helvetica", "Arial", sans-serif';function Oi(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Mi,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=n,p=W(n,Ti),h=o/14,f=u||(e=>e/c*h+"rem"),m=(e,t,n,o,i)=>{return U({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===Mi?{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,Pi),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Pi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qt(U({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},b),p,{clone:!1})}function ji(...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 $i=["none",ji(0,2,1,-1,0,1,1,0,0,1,3,0),ji(0,3,1,-2,0,2,2,0,0,1,5,0),ji(0,3,3,-2,0,3,4,0,0,1,8,0),ji(0,2,4,-1,0,4,5,0,0,1,10,0),ji(0,3,5,-1,0,5,8,0,0,1,14,0),ji(0,3,5,-1,0,6,10,0,0,1,18,0),ji(0,4,5,-2,0,7,10,1,0,2,16,1),ji(0,5,5,-3,0,8,10,1,0,3,14,2),ji(0,5,6,-3,0,9,12,1,0,3,16,2),ji(0,6,6,-3,0,10,14,1,0,4,18,3),ji(0,6,7,-4,0,11,15,1,0,4,20,3),ji(0,7,8,-4,0,12,17,2,0,5,22,4),ji(0,7,8,-4,0,13,19,2,0,5,24,4),ji(0,7,9,-4,0,14,21,2,0,5,26,4),ji(0,8,9,-5,0,15,22,2,0,6,28,5),ji(0,8,10,-5,0,16,24,2,0,6,30,5),ji(0,8,11,-5,0,17,26,2,0,6,32,5),ji(0,9,11,-5,0,18,28,2,0,7,34,6),ji(0,9,12,-6,0,19,29,2,0,7,36,6),ji(0,10,13,-6,0,20,31,3,0,8,38,7),ji(0,10,13,-6,0,21,33,3,0,8,40,7),ji(0,10,14,-6,0,22,35,3,0,8,42,7),ji(0,11,14,-7,0,23,36,3,0,9,44,8),ji(0,11,15,-7,0,24,38,3,0,9,46,8)],Ni=["duration","easing","delay"],zi={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)"},Di={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Bi(e){return`${Math.round(e)}ms`}function Fi(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Gi(e){const t=U({},zi,e.easing),n=U({},Di,e.duration);return U({getAutoHeightDuration:Fi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return W(r,Ni),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Bi(o)} ${i} ${"string"==typeof a?a:Bi(a)}`).join(",")}},e,{easing:t,duration:n})}const Hi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ui=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Wi(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=W(e,Ui);if(e.vars&&void 0===e.generateCssVars)throw new Error(F(18));const s=Ii(r),l=ar(e);let c=Qt(l,{mixins:(d=l.breakpoints,u=n,U({toolbar:{minHeight:56,[d.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[d.up("sm")]:{minHeight:64}}},u)),palette:s,shadows:$i.slice(),typography:Oi(s,i),transitions:Gi(o),zIndex:U({},Hi)});var d,u;return c=Qt(c,a),c=t.reduce((e,t)=>Qt(e,t),c),c.unstable_sxConfig=U({},tr,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return rr({sx:e,theme:this})},c}const Vi=Wi();function qi(){const e=dr(Vi);return e[H]||e}var Yi,Ki={},Xi={exports:{}};var Zi,Ji={exports:{}};var Qi,ea=D(Xt),ta=D(en),na=D(un),ra=D(jr),oa=D(sr),ia=D(mr);function aa(){if(Qi)return Ki;Qi=1;var e=Bo();Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=function(e={}){const{themeId:t,defaultTheme:a=f,rootShouldForwardProp:l=p,slotShouldForwardProp:c=p}=e,u=e=>(0,s.default)((0,n.default)({},e,{theme:b((0,n.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,C=(0,r.default)(s,d),S=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 _=(0,o.default)(e,(0,n.default)({shouldForwardProp:k,label:void 0},C)),A=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?r=>{const o=b({theme:r.theme,defaultTheme:a,themeId:t});return v(e,(0,n.default)({},r,{theme:o}),o.modularCssLayers?S:void 0)}:e,L=(r,...o)=>{let i=A(r);const s=o?o.map(A):[];h&&E&&s.push(e=>{const r=b((0,n.default)({},e,{defaultTheme:a,themeId:t}));if(!r.components||!r.components[h]||!r.components[h].styleOverrides)return null;const o=r.components[h].styleOverrides,i={};return Object.entries(o).forEach(([t,o])=>{i[t]=v(o,(0,n.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),E(e,i)}),h&&!w&&s.push(e=>{var r;const o=b((0,n.default)({},e,{defaultTheme:a,themeId:t}));return v({variants:null==o||null==(r=o.components)||null==(r=r[h])?void 0:r.variants},(0,n.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),R||s.push(u);const l=s.length-o.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const c=_(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return _.withConfig&&(L.withConfig=_.withConfig),L}},Ki.shouldForwardProp=p,Ki.systemDefaultTheme=void 0;var t,n=e((Yi||(Yi=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 n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}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}(Xi)),Xi.exports)),r=e((Zi||(Zi=1,(t=Ji).exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},t.exports.__esModule=!0,t.exports.default=t.exports),Ji.exports)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__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(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(ea),i=ta;e(na),e(ra);var a=e(oa),s=e(ia);const l=["ownerState"],c=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n: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=Ki.systemDefaultTheme=(0,a.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function v(e,t,i){let{ownerState:a}=t,s=(0,r.default)(t,l);const d="function"==typeof e?e((0,n.default)({ownerState:a},s)):e;if(Array.isArray(d))return d.flatMap(e=>v(e,(0,n.default)({ownerState:a},s),i));if(d&&"object"==typeof d&&Array.isArray(d.variants)){const{variants:e=[]}=d;let t=(0,r.default)(d,c);return e.forEach(e=>{let r=!0;if("function"==typeof e.props?r=e.props((0,n.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]&&(r=!1)}),r){Array.isArray(t)||(t=[t]);const r="function"==typeof e.style?e.style((0,n.default)({ownerState:a},s,a)):e.style;t.push(i?h((0,o.internal_serializeStyles)(r),i):r)}}),t}return i?h((0,o.internal_serializeStyles)(d),i):d}return Ki}const sa=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,la=z(aa())({themeId:H,defaultTheme:Vi,rootShouldForwardProp:sa}),ca=["theme"];function da(e){let{theme:t}=e,n=W(e,ca);const r=t[H];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=U({},r,{vars:null}):t&&!t.vars&&(o=U({},t,{vars:null}))),Ut.jsx($o,U({},n,{themeId:r?H:void 0,theme:o}))}const ua=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},pa={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)"},ha=12,fa=14,ma=16,ba=24,ga=3,va=300,ya=400,xa=600,Ea=700,Ca={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Sa(e){return Mo(e)}function wa(e){return Cr("MuiSvgIcon",e)}Sr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ra=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ka=la("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${dn(n.color)}`],t[`fontSize${dn(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,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==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"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]}}),_a=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:u="0 0 24 24"}=n,p=W(n,Ra),h=y.isValidElement(r)&&"svg"===r.type,f=U({},n,{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:n,classes:r}=e;return bo({root:["root","inherit"!==t&&`color${dn(t)}`,`fontSize${dn(n)}`]},wa,r)})(f);return Ut.jsxs(ka,U({as:a,className:yr(b.root,o),focusable:"false",color:l,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},m,p,h&&r.props,{ownerState:f,children:[h?r.props.children:r,d?Ut.jsx("title",{children:d}):null]}))});function Aa(e,t){function n(n,r){return Ut.jsx(_a,U({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=_a.muiName,y.memo(y.forwardRef(n))}function La(e,t){return La=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},La(e,t)}function Ia(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,La(e,t)}_a.muiName="SvgIcon";var Ta=!1,Pa=C.createContext(null),Ma="unmounted",Oa="exited",ja="entering",$a="entered",Na="exiting",za=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Oa,r.appearStatus=ja):o=$a:o=t.unmountOnExit||t.mountOnEnter?Ma:Oa,r.state={status:o},r.nextCallback=null,r}Ia(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ma?{status:Oa}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ja&&n!==$a&&(t=ja):n!==ja&&n!==$a||(t=Na)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ja){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:M.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Oa&&this.setState({status:Ma})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[M.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Ta?this.safeSetState({status:$a},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:ja},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:$a},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:M.findDOMNode(this);t&&!Ta?(this.props.onExit(r),this.safeSetState({status:Na},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Oa},function(){e.props.onExited(r)})})})):this.safeSetState({status:Oa},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:M.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ma)return null;var t=this.props,n=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 r=W(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return C.createElement(Pa.Provider,{value:null},"function"==typeof n?n(e,r):C.cloneElement(C.Children.only(n),r))},t}(C.Component);function Da(){}function Ba(e,t){var n=Object.create(null);return e&&R.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&S(e)?t(e):e}(e)}),n}function Fa(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Ga(e,t,n){var r=Ba(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,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(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(S(a)){var s=i in t,l=i in r,c=t[i],d=S(c)&&!c.props.in;!l||s&&!d?l||!s||d?l&&s&&S(c)&&(o[i]=w(a,{onExited:n.bind(null,a),in:c.props.in,exit:Fa(a,"exit",e),enter:Fa(a,"enter",e)})):o[i]=w(a,{in:!1}):o[i]=w(a,{onExited:n.bind(null,a),in:!0,exit:Fa(a,"exit",e),enter:Fa(a,"enter",e)})}}),o}za.contextType=Pa,za.propTypes={},za.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Da,onEntering:Da,onEntered:Da,onExit:Da,onExiting:Da,onExited:Da},za.UNMOUNTED=Ma,za.EXITED=Oa,za.ENTERING=ja,za.ENTERED=$a,za.EXITING=Na;var Ha=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ua=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Ia(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Ba(n.children,function(e){return w(e,{onExited:r.bind(null,e),in:!0,appear:Fa(e,"appear",n),enter:Fa(e,"enter",n),exit:Fa(e,"exit",n)})})):Ga(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Ba(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=U({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=W(e,["component","childFactory"]),o=this.state.contextValue,i=Ha(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?C.createElement(Pa.Provider,{value:o},i):C.createElement(Pa.Provider,{value:o},C.createElement(t,r,i))},t}(C.Component);Ua.propTypes={},Ua.defaultProps={component:"div",childFactory:function(e){return e}};const Wa=e=>e.scrollTop;function Va(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function qa(e){return Cr("MuiPaper",e)}Sr("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 Ya=["className","component","elevation","square","variant"],Ka=la("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return U({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&&U({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Wo.alpha("#fff",ua(t.elevation))}, ${Wo.alpha("#fff",ua(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),Xa=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=W(n,Ya),c=U({},n,{component:o,elevation:i,square:a,variant:s}),d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return bo({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},qa,o)})(c);return Ut.jsx(Ka,U({as:o,ownerState:c,className:yr(d.root,r),ref:t},l))});const Za=Sr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ja=["center","classes","className"];let Qa,es,ts,ns,rs=e=>e;const os=Pt(Qa||(Qa=rs`
|
|
14
|
+
*/function qt(e,t){return zt(e,t)}const Yt=[];function Kt(e){return Yt[0]=e,mt(Yt)}var Xt=Object.freeze({__proto__:null,GlobalStyles:Vt,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=y.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&Wt.has(e))return Wt.get(e);const r=function(e,t){const n=Je({key:"css",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(t,n);return Wt.set(e,r),r},[t,n]);return t||n?Ut.jsx(Ct,{value:o,children:r}):r},ThemeContext:wt,css:Tt,default:qt,internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:Kt,keyframes:Pt});function Zt(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 Jt(e){if(y.isValidElement(e)||!Zt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Jt(e[n])}),t}function Qt(e,t,n={clone:!0}){const r=n.clone?U({},e):e;return Zt(e)&&Zt(t)&&Object.keys(t).forEach(o=>{y.isValidElement(t[o])?r[o]=t[o]:Zt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Zt(e[o])?r[o]=Qt(e[o],t[o],n):n.clone?r[o]=Zt(t[o])?Jt(t[o]):t[o]:r[o]=t[o]}),r}var en=Object.freeze({__proto__:null,default:Qt,isPlainObject:Zt});const tn=["values","unit","step"];function nn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=W(e,tn),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)=>U({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return U({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:n},o)}const rn={borderRadius:4};function on(e,t){return t?Qt(e,t,{clone:!1}):e}const an={xs:0,sm:600,md:900,lg:1200,xl:1536},sn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${an[e]}px)`};function ln(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||sn;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||sn;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||an).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function cn(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function dn(e){if("string"!=typeof e)throw new Error(F(7));return e.charAt(0).toUpperCase()+e.slice(1)}var un=Object.freeze({__proto__:null,default:dn});function pn(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function hn(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:pn(e,n)||r,t&&(o=t(o,r,e)),o}function fn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=pn(e.theme,r)||{};return ln(e,i,e=>{let r=hn(a,o,e);return e===r&&"string"==typeof e&&(r=hn(a,o,`${t}${"default"===e?"":dn(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const mn={m:"margin",p:"padding"},bn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vn=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!gn[e])return[e];e=gn[e]}const[t,n]=e.split(""),r=mn[t],o=bn[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),yn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],xn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function En(e,t,n,r){var o;const i=null!=(o=pn(e,t,!1))?o:n;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 Cn(e){return En(e,"spacing",8)}function Sn(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function wn(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Sn(t,n),e),{})}(vn(n),r);return ln(e,e[n],o)}function Rn(e,t){const n=Cn(e.theme);return Object.keys(e).map(r=>wn(e,t,r,n)).reduce(on,{})}function _n(e){return Rn(e,yn)}function kn(e){return Rn(e,xn)}function An(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?on(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Ln(e){return"number"!=typeof e?e:`${e}px solid`}function In(e,t){return fn({prop:e,themeKey:"borders",transform:t})}_n.propTypes={},_n.filterProps=yn,kn.propTypes={},kn.filterProps=xn;const Tn=In("border",Ln),Pn=In("borderTop",Ln),Mn=In("borderRight",Ln),On=In("borderBottom",Ln),jn=In("borderLeft",Ln),$n=In("borderColor"),Nn=In("borderTopColor"),Dn=In("borderRightColor"),zn=In("borderBottomColor"),Bn=In("borderLeftColor"),Fn=In("outline",Ln),Gn=In("outlineColor"),Hn=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=En(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Sn(t,e)});return ln(e,e.borderRadius,n)}return null};Hn.propTypes={},Hn.filterProps=["borderRadius"],An(Tn,Pn,Mn,On,jn,$n,Nn,Dn,zn,Bn,Hn,Fn,Gn);const Un=e=>{if(void 0!==e.gap&&null!==e.gap){const t=En(e.theme,"spacing",8),n=e=>({gap:Sn(t,e)});return ln(e,e.gap,n)}return null};Un.propTypes={},Un.filterProps=["gap"];const Wn=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=En(e.theme,"spacing",8),n=e=>({columnGap:Sn(t,e)});return ln(e,e.columnGap,n)}return null};Wn.propTypes={},Wn.filterProps=["columnGap"];const Vn=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=En(e.theme,"spacing",8),n=e=>({rowGap:Sn(t,e)});return ln(e,e.rowGap,n)}return null};Vn.propTypes={},Vn.filterProps=["rowGap"];function qn(e,t){return"grey"===t?t:e}An(Un,Wn,Vn,fn({prop:"gridColumn"}),fn({prop:"gridRow"}),fn({prop:"gridAutoFlow"}),fn({prop:"gridAutoColumns"}),fn({prop:"gridAutoRows"}),fn({prop:"gridTemplateColumns"}),fn({prop:"gridTemplateRows"}),fn({prop:"gridTemplateAreas"}),fn({prop:"gridArea"}));function Yn(e){return e<=1&&0!==e?100*e+"%":e}An(fn({prop:"color",themeKey:"palette",transform:qn}),fn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qn}),fn({prop:"backgroundColor",themeKey:"palette",transform:qn}));const Kn=fn({prop:"width",transform:Yn}),Xn=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||an[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Yn(t)}};return ln(e,e.maxWidth,t)}return null};Xn.filterProps=["maxWidth"];const Zn=fn({prop:"minWidth",transform:Yn}),Jn=fn({prop:"height",transform:Yn}),Qn=fn({prop:"maxHeight",transform:Yn}),er=fn({prop:"minHeight",transform:Yn});fn({prop:"size",cssProperty:"width",transform:Yn}),fn({prop:"size",cssProperty:"height",transform:Yn});An(Kn,Xn,Zn,Jn,Qn,er,fn({prop:"boxSizing"}));const tr={border:{themeKey:"borders",transform:Ln},borderTop:{themeKey:"borders",transform:Ln},borderRight:{themeKey:"borders",transform:Ln},borderBottom:{themeKey:"borders",transform:Ln},borderLeft:{themeKey:"borders",transform:Ln},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ln},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Hn},color:{themeKey:"palette",transform:qn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qn},backgroundColor:{themeKey:"palette",transform:qn},p:{style:kn},pt:{style:kn},pr:{style:kn},pb:{style:kn},pl:{style:kn},px:{style:kn},py:{style:kn},padding:{style:kn},paddingTop:{style:kn},paddingRight:{style:kn},paddingBottom:{style:kn},paddingLeft:{style:kn},paddingX:{style:kn},paddingY:{style:kn},paddingInline:{style:kn},paddingInlineStart:{style:kn},paddingInlineEnd:{style:kn},paddingBlock:{style:kn},paddingBlockStart:{style:kn},paddingBlockEnd:{style:kn},m:{style:_n},mt:{style:_n},mr:{style:_n},mb:{style:_n},ml:{style:_n},mx:{style:_n},my:{style:_n},margin:{style:_n},marginTop:{style:_n},marginRight:{style:_n},marginBottom:{style:_n},marginLeft:{style:_n},marginX:{style:_n},marginY:{style:_n},marginInline:{style:_n},marginInlineStart:{style:_n},marginInlineEnd:{style:_n},marginBlock:{style:_n},marginBlockStart:{style:_n},marginBlockEnd:{style:_n},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:Un},rowGap:{style:Vn},columnGap:{style:Wn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yn},maxWidth:{style:Xn},minWidth:{transform:Yn},height:{transform:Yn},maxHeight:{transform:Yn},minHeight:{transform:Yn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function nr(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[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=pn(n,s)||{};if(c)return c(o);return ln(o,t,t=>{let n=hn(d,l,t);return t===n&&"string"==typeof t&&(n=hn(d,l,`${e}${"default"===t?"":dn(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:tr;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(r).forEach(n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])c=on(c,e(n,o,i,s));else{const e=ln({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?c=on(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=on(c,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":cn(l,c)}:cn(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const rr=nr();function or(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}rr.filterProps=["sx"];const ir=["breakpoints","palette","spacing","shape"];function ar(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=W(e,ir),s=nn(n),l=function(e=8){if(e.mui)return e;const t=Cn({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(o);let c=Qt({breakpoints:s,direction:"ltr",components:{},palette:U({mode:"light"},r),spacing:l,shape:U({},rn,i)},a);return c.applyStyles=or,c=t.reduce((e,t)=>Qt(e,t),c),c.unstable_sxConfig=U({},tr,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return rr({sx:e,theme:this})},c}var sr=Object.freeze({__proto__:null,default:ar,private_createBreakpoints:nn,unstable_applyStyles:or});function lr(e=null){const t=y.useContext(wt);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const cr=ar();function dr(e=cr){return lr(e)}function ur(e){const t=Kt(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function pr({styles:e,themeId:t,defaultTheme:n={}}){const r=dr(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>ur("function"==typeof e?e(o):e)):ur(i)),Ut.jsx(Vt,{styles:i})}const hr=["sx"];function fr(e){const{sx:t}=e,n=W(e,hr),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:tr;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Zt(n)?U({},r,n):r}:U({},r,t),U({},o,{sx:i})}var mr=Object.freeze({__proto__:null,default:rr,extendSxProp:fr,unstable_createStyleFunctionSx:nr,unstable_defaultSxConfig:tr});const br=e=>e,gr=(()=>{let e=br;return{configure(t){e=t},generate:t=>e(t),reset(){e=br}}})();function vr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=vr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function yr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=vr(e))&&(r&&(r+=" "),r+=t);return r}const xr=["className","component"];const Er={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 Cr(e,t,n="Mui"){const r=Er[t];return r?`${n}-${r}`:`${gr.generate(e)}-${t}`}function Sr(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Cr(e,t,n)}),r}var wr,Rr,_r={exports:{}},kr={};function Ar(){if(wr)return kr;wr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=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.view_transition"),h=Symbol.for("react.client.reference");function f(h){if("object"==typeof h&&null!==h){var f=h.$$typeof;switch(f){case e:switch(h=h.type){case n:case o:case r:case l:case c:case p:return h;default:switch(h=h&&h.$$typeof){case a:case s:case u:case d:case i:return h;default:return f}}case t:return f}}}return kr.ContextConsumer=i,kr.ContextProvider=a,kr.Element=e,kr.ForwardRef=s,kr.Fragment=n,kr.Lazy=u,kr.Memo=d,kr.Portal=t,kr.Profiler=o,kr.StrictMode=r,kr.Suspense=l,kr.SuspenseList=c,kr.isContextConsumer=function(e){return f(e)===i},kr.isContextProvider=function(e){return f(e)===a},kr.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},kr.isForwardRef=function(e){return f(e)===s},kr.isFragment=function(e){return f(e)===n},kr.isLazy=function(e){return f(e)===u},kr.isMemo=function(e){return f(e)===d},kr.isPortal=function(e){return f(e)===t},kr.isProfiler=function(e){return f(e)===o},kr.isStrictMode=function(e){return f(e)===r},kr.isSuspense=function(e){return f(e)===l},kr.isSuspenseList=function(e){return f(e)===c},kr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||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)},kr.typeOf=f,kr}function Lr(){return Rr||(Rr=1,_r.exports=Ar()),_r.exports}var Ir=Lr();const Tr=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Pr(e){const t=`${e}`.match(Tr);return t&&t[1]||""}function Mr(e,t=""){return e.displayName||e.name||Pr(e)||t}function Or(e,t,n){const r=Mr(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var jr=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Mr(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ir.ForwardRef:return Or(e,e.render,"ForwardRef");case Ir.Memo:return Or(e,e.type,"memo");default:return}}},getFunctionName:Pr});function $r(e,t){const n=U({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=U({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=U({},i),Object.keys(o).forEach(e=>{n[r][e]=$r(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}const Nr="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Dr(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var zr=Object.freeze({__proto__:null,default:Dr});function Br(e){if(e.type)return e;if("#"===e.charAt(0))return Br(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(F(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(F(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function Fr(e,t){return e=Br(e),t=function(e,t=0,n=1){return Dr(e,t,n)}(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:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function Gr(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Hr(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function Ur(e){return e&&e.ownerDocument||document}function Wr(e){return Ur(e).defaultView||window}function Vr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let qr=0;const Yr=y["useId".toString()];function Kr(e){if(void 0!==Yr){return Yr()}return function(e){const[t,n]=y.useState(e),r=e||t;return y.useEffect(()=>{null==t&&(qr+=1,n(`mui-${qr}`))},[t]),r}(e)}function Xr(e){const t=y.useRef(e);return Nr(()=>{t.current=e}),y.useRef((...e)=>(0,t.current)(...e)).current}function Zr(...e){return y.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{Vr(e,t)})},e)}const Jr={};const Qr=[];class eo{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new eo}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function to(){const e=function(e,t){const n=y.useRef(Jr);return n.current===Jr&&(n.current=e(t)),n}(eo.create).current;return function(e){y.useEffect(e,Qr)}(e.disposeEffect),e}let no=!0,ro=!1;const oo=new eo,io={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 ao(e){e.metaKey||e.altKey||e.ctrlKey||(no=!0)}function so(){no=!1}function lo(){"hidden"===this.visibilityState&&ro&&(no=!0)}function co(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return no||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!io[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function uo(){const e=y.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ao,!0),t.addEventListener("mousedown",so,!0),t.addEventListener("pointerdown",so,!0),t.addEventListener("touchstart",so,!0),t.addEventListener("visibilitychange",lo,!0))},[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!co(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ro=!0,oo.start(100,()=>{ro=!1}),t.current=!1,!0)},ref:e}}function po(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let ho;function fo(){if(ho)return ho;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),ho="reverse",e.scrollLeft>0?ho="default":(e.scrollLeft=1,0===e.scrollLeft&&(ho="negative")),document.body.removeChild(e),ho}function mo(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(fo()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function bo(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function go(e){return"string"==typeof e}function vo(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}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(n=>{t[n]=e[n]}),t}const xo=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Eo(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=W(e,xo),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=yr(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=U({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=U({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=vo(U({},o,r)),s=yo(r),l=yo(o),c=t(a),d=yr(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),u=U({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=U({},c,n,l,s);return d.length>0&&(p.className=d),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:c.ref}}(U({},a,{externalSlotProps:s})),d=function(e,t,n){return void 0===e||go(e)?t:U({},t,{ownerState:U({},t.ownerState,n)})}(n,U({},l,{ref:Zr(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return d}function Co(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 So=y.createContext(null);function wo(){return y.useContext(So)}var Ro="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function _o(e){const{children:t,theme:n}=e,r=wo(),o=y.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return U({},e,t)}(r,n);return null!=e&&(e[Ro]=null!==r),e},[n,r]);return Ut.jsx(So.Provider,{value:o,children:t})}const ko=["value"],Ao=y.createContext();function Lo(e){let{value:t}=e,n=W(e,ko);return Ut.jsx(Ao.Provider,U({value:null==t||t},n))}const Io=()=>{const e=y.useContext(Ao);return null!=e&&e},To=y.createContext(void 0);function Po({value:e,children:t}){return Ut.jsx(To.Provider,{value:e,children:t})}function Mo({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?$r(o.defaultProps,r):o.styleOverrides||o.variants?r:$r(o,r)}({props:e,name:t,theme:{components:y.useContext(To)}})}const Oo={};function jo(e,t,n,r=!1){return y.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?U({},t,{[e]:i}):i;return r?()=>a:a}return U({},t,e?{[e]:n}:n)},[e,t,n,r])}function $o(e){const{children:t,theme:n,themeId:r}=e,o=lr(Oo),i=wo()||Oo,a=jo(r,o,n),s=jo(r,i,n,!0),l="rtl"===a.direction,c=function(e){const t=lr(),n=Kr()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Nr(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}},[o,n]),o?Ut.jsx(pr,{styles:o}):null}(a);return Ut.jsx(_o,{theme:s,children:Ut.jsx(wt.Provider,{value:a,children:Ut.jsx(Lo,{value:l,children:Ut.jsxs(Po,{value:null==a?void 0:a.components,children:[c,t]})})})})}var No,Do={},zo={exports:{}};function Bo(){return No||(No=1,(e=zo).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),zo.exports;var e}var Fo,Go=z(G),Ho=z(zr);function Uo(){if(Fo)return Do;Fo=1;var e=Bo();Object.defineProperty(Do,"__esModule",{value:!0}),Do.alpha=d,Do.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),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})},Do.colorChannel=void 0,Do.darken=u,Do.decomposeColor=i,Do.emphasize=h,Do.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Do.getLuminance=c,Do.hexToRgb=o,Do.hslToRgb=l,Do.lighten=p,Do.private_safeAlpha=function(e,t,n){try{return d(e,t)}catch(t){return e}},Do.private_safeColorChannel=void 0,Do.private_safeDarken=function(e,t,n){try{return u(e,t)}catch(t){return e}},Do.private_safeEmphasize=function(e,t,n){try{return h(e,t)}catch(t){return e}},Do.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},Do.recomposeColor=s,Do.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(Go),n=e(Ho);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.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 n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){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:r,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};Do.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/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=r(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=r(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 n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function h(e,t=.15){return c(e)>.5?u(e,t):p(e,t)}return Do.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},Do}var Wo=Uo();const Vo={black:"#000",white:"#fff"},qo={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"},Yo="#f3e5f5",Ko="#ce93d8",Xo="#ba68c8",Zo="#ab47bc",Jo="#9c27b0",Qo="#7b1fa2",ei="#e57373",ti="#ef5350",ni="#f44336",ri="#d32f2f",oi="#c62828",ii="#ffb74d",ai="#ffa726",si="#ff9800",li="#f57c00",ci="#e65100",di="#e3f2fd",ui="#90caf9",pi="#42a5f5",hi="#1976d2",fi="#1565c0",mi="#4fc3f7",bi="#29b6f6",gi="#03a9f4",vi="#0288d1",yi="#01579b",xi="#81c784",Ei="#66bb6a",Ci="#4caf50",Si="#388e3c",wi="#2e7d32",Ri="#1b5e20",_i=["mode","contrastThreshold","tonalOffset"],ki={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:Vo.white,default:Vo.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}},Ai={text:{primary:Vo.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:Vo.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 Li(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Wo.lighten(e.main,o):"dark"===t&&(e.dark=Wo.darken(e.main,i)))}function Ii(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=W(e,_i),i=e.primary||function(e="light"){return"dark"===e?{main:ui,light:di,dark:pi}:{main:hi,light:pi,dark:fi}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ko,light:Yo,dark:Zo}:{main:Jo,light:Xo,dark:Qo}}(t),s=e.error||function(e="light"){return"dark"===e?{main:ni,light:ei,dark:ri}:{main:ri,light:ti,dark:oi}}(t),l=e.info||function(e="light"){return"dark"===e?{main:bi,light:mi,dark:vi}:{main:vi,light:gi,dark:yi}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Ei,light:xi,dark:Si}:{main:wi,light:Ci,dark:Ri}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:ai,light:ii,dark:li}:{main:"#ed6c02",light:si,dark:ci}}(t);function u(e){return Wo.getContrastRatio(e,Ai.text.primary)>=n?Ai.text.primary:ki.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=U({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(F(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(F(12,t?` (${t})`:"",JSON.stringify(e.main)));return Li(e,"light",o,r),Li(e,"dark",i,r),e.contrastText||(e.contrastText=u(e.main)),e},h={dark:Ai,light:ki};return Qt(U({common:U({},Vo),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:qo,contrastThreshold:n,getContrastText:u,augmentColor:p,tonalOffset:r},h[t]),o)}const Ti=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Pi={textTransform:"uppercase"},Mi='"Roboto", "Helvetica", "Arial", sans-serif';function Oi(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Mi,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=n,p=W(n,Ti),h=o/14,f=u||(e=>e/c*h+"rem"),m=(e,t,n,o,i)=>{return U({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===Mi?{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,Pi),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Pi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qt(U({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},b),p,{clone:!1})}function ji(...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 $i=["none",ji(0,2,1,-1,0,1,1,0,0,1,3,0),ji(0,3,1,-2,0,2,2,0,0,1,5,0),ji(0,3,3,-2,0,3,4,0,0,1,8,0),ji(0,2,4,-1,0,4,5,0,0,1,10,0),ji(0,3,5,-1,0,5,8,0,0,1,14,0),ji(0,3,5,-1,0,6,10,0,0,1,18,0),ji(0,4,5,-2,0,7,10,1,0,2,16,1),ji(0,5,5,-3,0,8,10,1,0,3,14,2),ji(0,5,6,-3,0,9,12,1,0,3,16,2),ji(0,6,6,-3,0,10,14,1,0,4,18,3),ji(0,6,7,-4,0,11,15,1,0,4,20,3),ji(0,7,8,-4,0,12,17,2,0,5,22,4),ji(0,7,8,-4,0,13,19,2,0,5,24,4),ji(0,7,9,-4,0,14,21,2,0,5,26,4),ji(0,8,9,-5,0,15,22,2,0,6,28,5),ji(0,8,10,-5,0,16,24,2,0,6,30,5),ji(0,8,11,-5,0,17,26,2,0,6,32,5),ji(0,9,11,-5,0,18,28,2,0,7,34,6),ji(0,9,12,-6,0,19,29,2,0,7,36,6),ji(0,10,13,-6,0,20,31,3,0,8,38,7),ji(0,10,13,-6,0,21,33,3,0,8,40,7),ji(0,10,14,-6,0,22,35,3,0,8,42,7),ji(0,11,14,-7,0,23,36,3,0,9,44,8),ji(0,11,15,-7,0,24,38,3,0,9,46,8)],Ni=["duration","easing","delay"],Di={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)"},zi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Bi(e){return`${Math.round(e)}ms`}function Fi(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Gi(e){const t=U({},Di,e.easing),n=U({},zi,e.duration);return U({getAutoHeightDuration:Fi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return W(r,Ni),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Bi(o)} ${i} ${"string"==typeof a?a:Bi(a)}`).join(",")}},e,{easing:t,duration:n})}const Hi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ui=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Wi(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=W(e,Ui);if(e.vars&&void 0===e.generateCssVars)throw new Error(F(18));const s=Ii(r),l=ar(e);let c=Qt(l,{mixins:(d=l.breakpoints,u=n,U({toolbar:{minHeight:56,[d.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[d.up("sm")]:{minHeight:64}}},u)),palette:s,shadows:$i.slice(),typography:Oi(s,i),transitions:Gi(o),zIndex:U({},Hi)});var d,u;return c=Qt(c,a),c=t.reduce((e,t)=>Qt(e,t),c),c.unstable_sxConfig=U({},tr,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return rr({sx:e,theme:this})},c}const Vi=Wi();function qi(){const e=dr(Vi);return e[H]||e}var Yi,Ki={},Xi={exports:{}};var Zi,Ji={exports:{}};var Qi,ea=z(Xt),ta=z(en),na=z(un),ra=z(jr),oa=z(sr),ia=z(mr);function aa(){if(Qi)return Ki;Qi=1;var e=Bo();Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=function(e={}){const{themeId:t,defaultTheme:a=f,rootShouldForwardProp:l=p,slotShouldForwardProp:c=p}=e,u=e=>(0,s.default)((0,n.default)({},e,{theme:b((0,n.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,C=(0,r.default)(s,d),S=h&&h.startsWith("Mui")||f?"components":"custom",w=void 0!==y?y:f&&"Root"!==f&&"root"!==f||!1,R=x||!1;let _=p;"Root"===f||"root"===f?_=l:f?_=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(_=void 0);const k=(0,o.default)(e,(0,n.default)({shouldForwardProp:_,label:void 0},C)),A=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?r=>{const o=b({theme:r.theme,defaultTheme:a,themeId:t});return v(e,(0,n.default)({},r,{theme:o}),o.modularCssLayers?S:void 0)}:e,L=(r,...o)=>{let i=A(r);const s=o?o.map(A):[];h&&E&&s.push(e=>{const r=b((0,n.default)({},e,{defaultTheme:a,themeId:t}));if(!r.components||!r.components[h]||!r.components[h].styleOverrides)return null;const o=r.components[h].styleOverrides,i={};return Object.entries(o).forEach(([t,o])=>{i[t]=v(o,(0,n.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),E(e,i)}),h&&!w&&s.push(e=>{var r;const o=b((0,n.default)({},e,{defaultTheme:a,themeId:t}));return v({variants:null==o||null==(r=o.components)||null==(r=r[h])?void 0:r.variants},(0,n.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),R||s.push(u);const l=s.length-o.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const c=k(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return k.withConfig&&(L.withConfig=k.withConfig),L}},Ki.shouldForwardProp=p,Ki.systemDefaultTheme=void 0;var t,n=e((Yi||(Yi=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 n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}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}(Xi)),Xi.exports)),r=e((Zi||(Zi=1,(t=Ji).exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},t.exports.__esModule=!0,t.exports.default=t.exports),Ji.exports)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__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(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(ea),i=ta;e(na),e(ra);var a=e(oa),s=e(ia);const l=["ownerState"],c=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n: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=Ki.systemDefaultTheme=(0,a.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function v(e,t,i){let{ownerState:a}=t,s=(0,r.default)(t,l);const d="function"==typeof e?e((0,n.default)({ownerState:a},s)):e;if(Array.isArray(d))return d.flatMap(e=>v(e,(0,n.default)({ownerState:a},s),i));if(d&&"object"==typeof d&&Array.isArray(d.variants)){const{variants:e=[]}=d;let t=(0,r.default)(d,c);return e.forEach(e=>{let r=!0;if("function"==typeof e.props?r=e.props((0,n.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]&&(r=!1)}),r){Array.isArray(t)||(t=[t]);const r="function"==typeof e.style?e.style((0,n.default)({ownerState:a},s,a)):e.style;t.push(i?h((0,o.internal_serializeStyles)(r),i):r)}}),t}return i?h((0,o.internal_serializeStyles)(d),i):d}return Ki}const sa=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,la=D(aa())({themeId:H,defaultTheme:Vi,rootShouldForwardProp:sa}),ca=["theme"];function da(e){let{theme:t}=e,n=W(e,ca);const r=t[H];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=U({},r,{vars:null}):t&&!t.vars&&(o=U({},t,{vars:null}))),Ut.jsx($o,U({},n,{themeId:r?H:void 0,theme:o}))}const ua=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},pa={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)"},ha=12,fa=14,ma=16,ba=24,ga=3,va=300,ya=400,xa=600,Ea=700,Ca={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Sa(e){return Mo(e)}function wa(e){return Cr("MuiSvgIcon",e)}Sr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ra=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],_a=la("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${dn(n.color)}`],t[`fontSize${dn(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,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==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"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]}}),ka=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:u="0 0 24 24"}=n,p=W(n,Ra),h=y.isValidElement(r)&&"svg"===r.type,f=U({},n,{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:n,classes:r}=e;return bo({root:["root","inherit"!==t&&`color${dn(t)}`,`fontSize${dn(n)}`]},wa,r)})(f);return Ut.jsxs(_a,U({as:a,className:yr(b.root,o),focusable:"false",color:l,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},m,p,h&&r.props,{ownerState:f,children:[h?r.props.children:r,d?Ut.jsx("title",{children:d}):null]}))});function Aa(e,t){function n(n,r){return Ut.jsx(ka,U({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=ka.muiName,y.memo(y.forwardRef(n))}function La(e,t){return La=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},La(e,t)}function Ia(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,La(e,t)}ka.muiName="SvgIcon";var Ta=!1,Pa=C.createContext(null),Ma="unmounted",Oa="exited",ja="entering",$a="entered",Na="exiting",Da=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Oa,r.appearStatus=ja):o=$a:o=t.unmountOnExit||t.mountOnEnter?Ma:Oa,r.state={status:o},r.nextCallback=null,r}Ia(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ma?{status:Oa}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ja&&n!==$a&&(t=ja):n!==ja&&n!==$a||(t=Na)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ja){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:M.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Oa&&this.setState({status:Ma})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[M.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Ta?this.safeSetState({status:$a},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:ja},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:$a},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:M.findDOMNode(this);t&&!Ta?(this.props.onExit(r),this.safeSetState({status:Na},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Oa},function(){e.props.onExited(r)})})})):this.safeSetState({status:Oa},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:M.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ma)return null;var t=this.props,n=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 r=W(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return C.createElement(Pa.Provider,{value:null},"function"==typeof n?n(e,r):C.cloneElement(C.Children.only(n),r))},t}(C.Component);function za(){}function Ba(e,t){var n=Object.create(null);return e&&R.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&S(e)?t(e):e}(e)}),n}function Fa(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Ga(e,t,n){var r=Ba(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,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(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(S(a)){var s=i in t,l=i in r,c=t[i],d=S(c)&&!c.props.in;!l||s&&!d?l||!s||d?l&&s&&S(c)&&(o[i]=w(a,{onExited:n.bind(null,a),in:c.props.in,exit:Fa(a,"exit",e),enter:Fa(a,"enter",e)})):o[i]=w(a,{in:!1}):o[i]=w(a,{onExited:n.bind(null,a),in:!0,exit:Fa(a,"exit",e),enter:Fa(a,"enter",e)})}}),o}Da.contextType=Pa,Da.propTypes={},Da.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:za,onEntering:za,onEntered:za,onExit:za,onExiting:za,onExited:za},Da.UNMOUNTED=Ma,Da.EXITED=Oa,Da.ENTERING=ja,Da.ENTERED=$a,Da.EXITING=Na;var Ha=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ua=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Ia(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Ba(n.children,function(e){return w(e,{onExited:r.bind(null,e),in:!0,appear:Fa(e,"appear",n),enter:Fa(e,"enter",n),exit:Fa(e,"exit",n)})})):Ga(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Ba(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=U({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=W(e,["component","childFactory"]),o=this.state.contextValue,i=Ha(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?C.createElement(Pa.Provider,{value:o},i):C.createElement(Pa.Provider,{value:o},C.createElement(t,r,i))},t}(C.Component);Ua.propTypes={},Ua.defaultProps={component:"div",childFactory:function(e){return e}};const Wa=e=>e.scrollTop;function Va(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function qa(e){return Cr("MuiPaper",e)}Sr("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 Ya=["className","component","elevation","square","variant"],Ka=la("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return U({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&&U({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Wo.alpha("#fff",ua(t.elevation))}, ${Wo.alpha("#fff",ua(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),Xa=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=W(n,Ya),c=U({},n,{component:o,elevation:i,square:a,variant:s}),d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return bo({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},qa,o)})(c);return Ut.jsx(Ka,U({as:o,ownerState:c,className:yr(d.root,r),ref:t},l))});const Za=Sr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ja=["center","classes","className"];let Qa,es,ts,ns,rs=e=>e;const os=Pt(Qa||(Qa=rs`
|
|
15
15
|
0% {
|
|
16
16
|
transform: scale(0);
|
|
17
17
|
opacity: 0.1;
|
|
@@ -84,6 +84,6 @@ System.register(["@nebula.js/stardust","react","react-dom"],function(e){"use str
|
|
|
84
84
|
animation-iteration-count: infinite;
|
|
85
85
|
animation-delay: 200ms;
|
|
86
86
|
}
|
|
87
|
-
`),Za.rippleVisible,os,550,({theme:e})=>e.transitions.easing.easeInOut,Za.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Za.child,Za.childLeaving,is,550,({theme:e})=>e.transitions.easing.easeInOut,Za.childPulsate,as,({theme:e})=>e.transitions.easing.easeInOut),cs=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=W(n,Ja),[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=to(),h=y.useRef(null),f=y.useRef(null),m=y.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,Ut.jsx(ls,{classes:{ripple:yr(o.ripple,Za.ripple),rippleVisible:yr(o.rippleVisible,Za.rippleVisible),ripplePulsate:yr(o.ripplePulsate,Za.ripplePulsate),child:yr(o.child,Za.child),childLeaving:yr(o.childLeaving,Za.childLeaving),childPulsate:yr(o.childPulsate,Za.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,d.current=a},[o]),b=y.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||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:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),d=Math.round(n-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:n})},p.start(80,()=>{h.current&&(h.current(),h.current=null)})):m({pulsate:o,rippleX:c,rippleY:d,rippleSize:b,cb:n})},[r,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]),Ut.jsx(ss,U({className:yr(Za.root,o.root,i),ref:f},a,{children:Ut.jsx(Ua,{component:null,exit:!0,children:s})}))});function ds(e){return Cr("MuiButtonBase",e)}const us=Sr("MuiButtonBase",["root","disabled","focusVisible"]),ps=["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"],hs=la("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"},[`&.${us.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fs=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiButtonBase"}),{action:r,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:C,onMouseLeave:S,onMouseUp:w,onTouchEnd:R,onTouchMove:k,onTouchStart:_,tabIndex:A=0,TouchRippleProps:L,touchRippleRef:I,type:T}=n,P=W(n,ps),M=y.useRef(null),O=y.useRef(null),j=Zr(O,I),{isFocusVisibleRef:$,onFocus:N,onBlur:z,ref:D}=uo(),[B,F]=y.useState(!1);l&&B&&F(!1),y.useImperativeHandle(r,()=>({focusVisible:()=>{F(!0),M.current.focus()}}),[]);const[G,H]=y.useState(!1);y.useEffect(()=>{H(!0)},[]);const V=G&&!c&&!l;function q(e,t,n=d){return Xr(r=>{t&&t(r);return!n&&O.current&&O.current[e](r),!0})}y.useEffect(()=>{B&&u&&!c&&G&&O.current.pulsate()},[c,u,B,G]);const Y=q("start",C),K=q("stop",m),X=q("stop",b),Z=q("stop",w),J=q("stop",e=>{B&&e.preventDefault(),S&&S(e)}),Q=q("start",_),ee=q("stop",R),te=q("stop",k),ne=q("stop",e=>{z(e),!1===$.current&&F(!1),h&&h(e)},!1),re=Xr(e=>{M.current||(M.current=e.currentTarget),N(e),!0===$.current&&(F(!0),v&&v(e)),g&&g(e)}),oe=()=>{const e=M.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ie=y.useRef(!1),ae=Xr(e=>{u&&!ie.current&&B&&O.current&&" "===e.key&&(ie.current=!0,O.current.stop(e,()=>{O.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=Xr(e=>{u&&" "===e.key&&O.current&&B&&!e.defaultPrevented&&(ie.current=!1,O.current.stop(e,()=>{O.current.pulsate(e)})),E&&E(e),f&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&f(e)});let le=s;"button"===le&&(P.href||P.to)&&(le=p);const ce={};"button"===le?(ce.type=void 0===T?"button":T,ce.disabled=l):(P.href||P.to||(ce.role="button"),l&&(ce["aria-disabled"]=l));const de=Zr(t,D,M),ue=U({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:d,focusRipple:u,tabIndex:A,focusVisible:B}),pe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=bo({root:["root",t&&"disabled",n&&"focusVisible"]},ds,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Ut.jsxs(hs,U({as:le,className:yr(pe.root,a),ownerState:ue,onBlur:ne,onClick:f,onContextMenu:K,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:Y,onMouseLeave:J,onMouseUp:Z,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:de,tabIndex:l?-1:A,type:T},ce,P,{children:[i,V?Ut.jsx(cs,U({ref:j,center:o},L)):null]}))});function ms(e){return Cr("MuiTypography",e)}Sr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const bs=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],gs=la("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${dn(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>U({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})),vs={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ys={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},xs=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiTypography"}),r=(e=>ys[e]||e)(n.color),o=fr(U({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:u="body1",variantMapping:p=vs}=o,h=W(o,bs),f=U({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:d,variant:u,variantMapping:p}),m=s||(d?"p":p[u]||vs[u])||"span",b=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return bo({root:["root",i,"inherit"!==e.align&&`align${dn(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},ms,a)})(f);return Ut.jsx(gs,U({as:m,ref:t,ownerState:f,className:yr(b.root,a)},h))});const Es=y.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=Zr(y.isValidElement(n)?Co(n):null,t);if(Nr(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),Nr(()=>{if(i&&!o)return Vr(t,i),()=>{Vr(t,null)}},[t,i,o]),o){if(y.isValidElement(n)){const e={ref:s};return y.cloneElement(n,e)}return Ut.jsx(y.Fragment,{children:n})}return Ut.jsx(y.Fragment,{children:i?O.createPortal(n,i):i})}),Cs=["onChange","maxRows","minRows","style","value"];function Ss(e){return parseInt(e,10)||0}const ws={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Rs(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const ks=y.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=W(e,Cs),{current:l}=y.useRef(null!=a),c=y.useRef(null),d=Zr(t,c),u=y.useRef(null),p=y.useRef(null),h=y.useCallback(()=>{const t=c.current,n=p.current;if(!t||!n)return;const i=Wr(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=Ss(i.paddingBottom)+Ss(i.paddingTop),l=Ss(i.borderBottomWidth)+Ss(i.borderTopWidth),d=n.scrollHeight;n.value="x";const u=n.scrollHeight;let h=d;o&&(h=Math.max(Number(o)*u,h)),r&&(h=Math.min(Number(r)*u,h)),h=Math.max(h,u);return{outerHeightStyle:h+("border-box"===a?s+l:0),overflowing:Math.abs(h-d)<=1}},[r,o,e.placeholder]),f=Xr(()=>{const e=c.current,t=h();if(!e||!t||Rs(t))return!1;const n=t.outerHeightStyle;return null!=u.current&&u.current!==n}),m=y.useCallback(()=>{const e=c.current,t=h();if(!e||!t||Rs(t))return;const n=t.outerHeightStyle;u.current!==n&&(u.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),b=y.useRef(-1);Nr(()=>{const e=Hr(m),t=null==c?void 0:c.current;if(!t)return;const n=Wr(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{f()&&(r.unobserve(t),cancelAnimationFrame(b.current),m(),b.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(b.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[h,m,f]),Nr(()=>{m()});return Ut.jsxs(y.Fragment,{children:[Ut.jsx("textarea",U({value:a,onChange:e=>{l||m(),n&&n(e)},ref:d,rows:o,style:i},s)),Ut.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:U({},ws,i,{paddingTop:0,paddingBottom:0})})]})});const _s=y.createContext(void 0);function As(){return y.useContext(_s)}function Ls(e){return Ut.jsx(pr,U({},e,{defaultTheme:Vi,themeId:H}))}function Is(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Ts(e){return Cr("MuiInputBase",e)}const Ps=Sr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ms=["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"],Os=la("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${dn(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})(({theme:e,ownerState:t})=>U({},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",[`&.${Ps.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&U({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),js=la("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]}})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=U({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.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:n?.42:.5};return U({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":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ps.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},[`&.${Ps.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"})}),$s=Ut.jsx(Ls,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ns=y.forwardRef(function(e,t){var n;const r=Sa({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:C=!1,name:S,onBlur:w,onChange:R,onClick:k,onFocus:_,onKeyDown:A,onKeyUp:L,placeholder:I,readOnly:T,renderSuffix:P,rows:M,slotProps:O={},slots:j={},startAdornment:$,type:N="text",value:z}=r,D=W(r,Ms),B=null!=g.value?g.value:z,{current:G}=y.useRef(null!=B),H=y.useRef(),V=y.useCallback(e=>{},[]),q=Zr(H,v,g.ref,V),[Y,K]=y.useState(!1),X=As(),Z=function({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}({props:r,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Z.focused=X?X.focused:Y,y.useEffect(()=>{!X&&u&&Y&&(K(!1),w&&w())},[X,u,Y,w]);const J=X&&X.onFilled,Q=X&&X.onEmpty,ee=y.useCallback(e=>{!function(e,t=!1){return e&&(Is(e.value)&&""!==e.value||t&&Is(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():J&&J()},[J,Q]);Nr(()=>{G&&ee({value:B})},[B,ee,G]);y.useEffect(()=>{ee(H.current)},[]);let te=b,ne=g;C&&"input"===te&&(ne=U(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:x,minRows:E},ne),te=ks);y.useEffect(()=>{X&&X.setAdornedStart(Boolean($))},[X,$]);const re=U({},r,{color:Z.color||"primary",disabled:Z.disabled,endAdornment:h,error:Z.error,focused:Z.focused,formControl:X,fullWidth:f,hiddenLabel:Z.hiddenLabel,multiline:C,size:Z.size,startAdornment:$,type:N}),oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:u,size:p,startAdornment:h,type:f}=e;return bo({root:["root",`color${dn(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${dn(p)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",u&&"readOnly"]},Ts,t)})(re),ie=j.root||l.Root||Os,ae=O.root||c.root||{},se=j.input||l.Input||js;return ne=U({},ne,null!=(n=O.input)?n:c.input),Ut.jsxs(y.Fragment,{children:[!p&&$s,Ut.jsxs(ie,U({},ae,!go(ie)&&{ownerState:U({},re,ae.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),k&&k(e)}},D,{className:yr(oe.root,ae.className,s,T&&"MuiInputBase-readOnly"),children:[$,Ut.jsx(_s.Provider,{value:null,children:Ut.jsx(se,U({ownerState:re,"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?H.current:{value:"x"})},name:S,placeholder:I,readOnly:T,required:Z.required,rows:M,value:B,onKeyDown:A,onKeyUp:L,type:N},ne,!go(se)&&{as:te,ownerState:U({},re,ne.ownerState)},{ref:q,className:yr(oe.input,ne.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),g.onBlur&&g.onBlur(e),X&&X.onBlur?X.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!G){const t=e.target||H.current;if(null==t)throw new Error(F(1));ee({value:t.value})}g.onChange&&g.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Z.disabled?e.stopPropagation():(_&&_(e),g.onFocus&&g.onFocus(e),X&&X.onFocus?X.onFocus(e):K(!0))}}))}),h,P?P(U({},Z,{startAdornment:$})):null]}))]})}),zs=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Ds={entering:{opacity:1},entered:{opacity:1}},Bs=y.forwardRef(function(e,t){const n=qi(),r={enter:n.transitions.duration.enteringScreen,exit:n.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=r,TransitionComponent:g=za}=e,v=W(e,zs),x=y.useRef(null),E=Zr(x,Co(a),t),C=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=C(u),w=C((e,t)=>{Wa(e);const r=Va({style:m,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),R=C(d),k=C(f),_=C(e=>{const t=Va({style:m,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),A=C(h);return Ut.jsx(g,U({appear:i,in:l,nodeRef:x,onEnter:w,onEntered:R,onEntering:S,onExit:_,onExited:A,onExiting:k,addEndListener:e=>{o&&o(x.current,e)},timeout:b},v,{children:(e,t)=>y.cloneElement(a,U({style:U({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Ds[e],m,a.props.style),ref:E},t))}))});function Fs(e){return Cr("MuiBackdrop",e)}Sr("MuiBackdrop",["root","invisible"]);const Gs=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Hs=la("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>U({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"})),Us=y.forwardRef(function(e,t){var n,r,o;const i=Sa({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=Bs,transitionDuration:b}=i,g=W(i,Gs),v=U({},i,{component:l,invisible:u}),y=(e=>{const{classes:t,invisible:n}=e;return bo({root:["root",n&&"invisible"]},Fs,t)})(v),x=null!=(n=h.root)?n:d.root;return Ut.jsx(m,U({in:p,timeout:b},g,{children:Ut.jsx(Hs,U({"aria-hidden":!0},x,{as:null!=(r=null!=(o=f.root)?o:c.Root)?r:l,className:yr(y.root,s,null==x?void 0:x.className),ownerState:U({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),Ws=Sr("MuiBox",["root"]),Vs=Wi(),qs=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=qt("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(rr);return y.forwardRef(function(e,a){const s=dr(n),l=fr(e),{className:c,component:d="div"}=l,u=W(l,xr);return Ut.jsx(i,U({as:d,ref:a,className:yr(c,o?o(r):r),theme:t&&s[t]||s},u))})}({themeId:H,defaultTheme:Vs,defaultClassName:Ws.root,generateClassName:gr.generate});function Ys(e){return Cr("MuiButton",e)}const Ks=Sr("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"]),Xs=y.createContext({}),Zs=y.createContext(void 0),Js=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Qs=e=>U({},"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}}),el=la(fs,{shouldForwardProp:e=>sa(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${dn(n.color)}`],t[`size${dn(n.size)}`],t[`${n.variant}Size${dn(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;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 U({},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":U({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Wo.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})`:Wo.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})`:Wo.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":U({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ks.focusVisible}`]:U({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ks.disabled}`]:U({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 ${Wo.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,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"},[`&.${Ks.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ks.disabled}`]:{boxShadow:"none"}}),tl=la("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${dn(n.size)}`]]}})(({ownerState:e})=>U({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Qs(e))),nl=la("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${dn(n.size)}`]]}})(({ownerState:e})=>U({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Qs(e))),rl=y.forwardRef(function(e,t){const n=y.useContext(Xs),r=y.useContext(Zs),o=Sa({props:$r(n,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=W(o,Js),E=U({},o,{color:a,component:s,disabled:c,disableElevation:d,disableFocusRipple:u,fullWidth:f,size:m,type:g,variant:v}),C=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return U({},a,bo({root:["root",i,`${i}${dn(t)}`,`size${dn(o)}`,`${i}Size${dn(o)}`,`color${dn(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${dn(o)}`],endIcon:["icon","endIcon",`iconSize${dn(o)}`]},Ys,a))})(E),S=b&&Ut.jsx(tl,{className:C.startIcon,ownerState:E,children:b}),w=p&&Ut.jsx(nl,{className:C.endIcon,ownerState:E,children:p}),R=r||"";return Ut.jsxs(el,U({ownerState:E,className:yr(n.className,C.root,l,R),component:s,disabled:c,focusRipple:!u,focusVisibleClassName:yr(C.focusVisible,h),ref:t,type:g},x,{classes:C,children:[S,i,w]}))});function ol(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function il(e){return parseInt(Wr(e).getComputedStyle(e).paddingRight,10)||0}function al(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&ol(e,o)})}function sl(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function ll(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Ur(e);return t.body===e?Wr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=po(Ur(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${il(r)+e}px`;const t=Ur(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${il(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Ur(r).body;else{const t=r.parentElement,n=Wr(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.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()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const cl=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function dl(e){const t=[],n=[];return Array.from(e.querySelectorAll(cl)).forEach((e,r)=>{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 n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function ul(){return!0}function pl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=dl,isEnabled:a=ul,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=Zr(Co(t),f),b=y.useRef(null);y.useEffect(()=>{s&&f.current&&(h.current=!n)},[n,s]),y.useEffect(()=>{if(!s||!f.current)return;const e=Ur(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=Ur(f.current),t=t=>{b.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(l.current=!0,d.current&&d.current.focus())},n=()=>{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(r&&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 n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=i(f.current)),n.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=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,a,s,i]);const g=e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0};return Ut.jsxs(y.Fragment,{children:[Ut.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 n=t.props.onFocus;n&&n(e)}}),Ut.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:d,"data-testid":"sentinelEnd"})]})}const hl=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ol(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);al(t,e.mount,e.modalRef,r,!0);const o=sl(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=sl(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=ll(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=sl(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&ol(e.modalRef,t),al(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&ol(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function fl(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=hl,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=Zr(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),C=()=>{o.mount(E(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},S=Xr(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ur(h.current).body;o.add(E(),e),f.current&&C()}),w=y.useCallback(()=>o.isTopModal(E()),[o]),R=Xr(e=>{h.current=e,e&&(d&&w()?C():f.current&&ol(f.current,x))}),k=y.useCallback(()=>{o.remove(E(),x)},[x,o]);y.useEffect(()=>()=>{k()},[k]),y.useEffect(()=>{d?S():v&&i||k()},[d,k,v,i,S]);const _=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},A=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=vo(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=U({},n,t);return U({role:"presentation"},r,{onKeyDown:_(r),ref:m})},getBackdropProps:(e={})=>U({"aria-hidden":!0},e,{onClick:A(e),open:d}),getTransitionProps:()=>({onEnter:Gr(()=>{g(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:Gr(()=>{g(!0),s&&s(),i&&k()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:b,hasTransition:v}}function ml(e){return Cr("MuiModal",e)}Sr("MuiModal",["root","hidden","backdrop"]);const bl=["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"],gl=la("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>U({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),vl=la(Us,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),yl=y.forwardRef(function(e,t){var n,r,o,i,a,s;const l=Sa({name:"MuiModal",props:e}),{BackdropComponent:c=vl,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:C=!1,disableRestoreFocus:S=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:k=!1,onBackdropClick:_,open:A,slotProps:L,slots:I}=l,T=W(l,bl),P=U({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:E,disablePortal:C,disableRestoreFocus:S,disableScrollLock:w,hideBackdrop:R,keepMounted:k}),{getRootProps:M,getBackdropProps:O,getTransitionProps:j,portalRef:$,isTopModal:N,exited:z,hasTransition:D}=fl(U({},P,{rootRef:t})),B=U({},P,{exited:z}),F=(e=>{const{open:t,exited:n,classes:r}=e;return bo({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ml,r)})(B),G={};if(void 0===h.props.tabIndex&&(G.tabIndex="-1"),D){const{onEnter:e,onExited:t}=j();G.onEnter=e,G.onExited=t}const H=null!=(n=null!=(r=null==I?void 0:I.root)?r:b.Root)?n:gl,V=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:b.Backdrop)?o:c,q=null!=(a=null==L?void 0:L.root)?a:g.root,Y=null!=(s=null==L?void 0:L.backdrop)?s:g.backdrop,K=Eo({elementType:H,externalSlotProps:q,externalForwardedProps:T,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:B,className:yr(u,null==q?void 0:q.className,null==F?void 0:F.root,!B.open&&B.exited&&(null==F?void 0:F.hidden))}),X=Eo({elementType:V,externalSlotProps:Y,additionalProps:d,getSlotProps:e=>O(U({},e,{onClick:t=>{_&&_(t),null!=e&&e.onClick&&e.onClick(t)}})),className:yr(null==Y?void 0:Y.className,null==d?void 0:d.className,null==F?void 0:F.backdrop),ownerState:B});return k||A||D&&!z?Ut.jsx(Es,{ref:$,container:f,disablePortal:C,children:Ut.jsxs(H,U({},K,{children:[!R&&c?Ut.jsx(V,U({},X)):null,Ut.jsx(pl,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:S,isEnabled:N,open:A,children:y.cloneElement(h,G)})]}))}):null});function xl(e){return Cr("MuiDivider",e)}const El=Sr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Cl=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Sl=la("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>U({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)`:Wo.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})=>U({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>U({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>U({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>U({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),wl=la("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>U({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)`})),Rl=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiDivider"}),{absolute:r=!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"}=n,h=W(n,Cl),f=U({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:d,textAlign:u,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return bo({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},xl,r)})(f);return Ut.jsx(Sl,U({as:a,className:yr(m.root,i),role:d,ref:t,ownerState:f},h,{children:o?Ut.jsx(wl,{className:m.wrapper,ownerState:f,children:o}):null}))});Rl.muiSkipListHighlight=!0;const kl=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function _l(e){return`scale(${e}, ${e**2})`}const Al={entering:{opacity:1,transform:_l(1)},entered:{opacity:1,transform:"none"}},Ll="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Il=y.forwardRef(function(e,t){const{addEndListener:n,appear:r=!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=za}=e,b=W(e,kl),g=to(),v=y.useRef(),x=qi(),E=y.useRef(null),C=Zr(E,Co(o),t),S=e=>t=>{if(e){const n=E.current;void 0===t?e(n):e(n,t)}},w=S(c),R=S((e,t)=>{Wa(e);const{duration:n,delay:r,easing:o}=Va({style:h,timeout:f,easing:i},{mode:"enter"});let a;"auto"===f?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:Ll?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),k=S(l),_=S(p),A=S(e=>{const{duration:t,delay:n,easing:r}=Va({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:n}),x.transitions.create("transform",{duration:Ll?o:.666*o,delay:Ll?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=_l(.75),d&&d(e)}),L=S(u);return Ut.jsx(m,U({appear:r,in:a,nodeRef:E,onEnter:R,onEntered:k,onEntering:w,onExit:A,onExited:L,onExiting:_,addEndListener:e=>{"auto"===f&&g.start(v.current||0,e),n&&n(E.current,e)},timeout:"auto"===f?null:f},b,{children:(e,t)=>y.cloneElement(o,U({style:U({opacity:0,transform:_l(.75),visibility:"exited"!==e||a?void 0:"hidden"},Al[e],h,o.props.style),ref:C},t))}))});function Tl(e){return Cr("MuiInputAdornment",e)}Il.muiSupportAuto=!0;const Pl=Sr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Ml;const Ol=["children","className","component","disablePointerEvents","disableTypography","position","variant"],jl=la("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${dn(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>U({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Pl.positionStart}&:not(.${Pl.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),$l=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c}=n,d=W(n,Ol),u=As()||{};let p=c;c&&u.variant,u&&!p&&(p=u.variant);const h=U({},n,{hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:l,variant:p}),f=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return bo({root:["root",n&&"disablePointerEvents",o&&`position${dn(o)}`,a,r&&"hiddenLabel",i&&`size${dn(i)}`]},Tl,t)})(h);return Ut.jsx(_s.Provider,{value:null,children:Ut.jsx(jl,U({as:i,ownerState:h,className:yr(f.root,o),ref:t},d,{children:"string"!=typeof r||s?Ut.jsxs(y.Fragment,{children:["start"===l?Ml||(Ml=Ut.jsx("span",{className:"notranslate",children:""})):null,r]}):Ut.jsx(xs,{color:"text.secondary",children:r})}))})}),Nl=y.createContext({});function zl(e){return Cr("MuiList",e)}Sr("MuiList",["root","padding","dense","subheader"]);const Dl=["children","className","component","dense","disablePadding","subheader"],Bl=la("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>U({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Fl=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=W(n,Dl),d=y.useMemo(()=>({dense:a}),[a]),u=U({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return bo({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},zl,t)})(u);return Ut.jsx(Nl.Provider,{value:d,children:Ut.jsxs(Bl,U({as:i,className:yr(p.root,o),ref:t,ownerState:u},c,{children:[l,r]}))})});function Gl(e){return Cr("MuiListItem",e)}const Hl=Sr("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function Ul(e){return Cr("MuiListItemButton",e)}const Wl=Sr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Vl=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],ql=la(fs,{shouldForwardProp:e=>sa(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>U({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"}},[`&.${Wl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Wl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Wl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Wo.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})`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Wl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Wl.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})),Yl=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiListItemButton"}),{alignItems:r="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}=n,h=W(n,Vl),f=y.useContext(Nl),m=y.useMemo(()=>({dense:s||f.dense||!1,alignItems:r,disableGutters:l}),[r,f.dense,s,l]),b=y.useRef(null);Nr(()=>{o&&b.current&&b.current.focus()},[o]);const g=U({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:u}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return U({},n,bo({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},Ul,n))})(g),x=Zr(b,t);return Ut.jsx(Nl.Provider,{value:m,children:Ut.jsx(ql,U({ref:x,href:h.href||h.to,component:(h.href||h.to)&&"div"===i?"button":i,focusVisibleClassName:yr(v.focusVisible,d),ownerState:g,className:yr(v.root,p)},h,{classes:v,children:a}))})});function Kl(e){return Cr("MuiListItemSecondaryAction",e)}Sr("MuiListItemSecondaryAction",["root","disableGutters"]);const Xl=["className"],Zl=la("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>U({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Jl=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=W(n,Xl),i=U({},n,{disableGutters:y.useContext(Nl).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return bo({root:["root",t&&"disableGutters"]},Kl,n)})(i);return Ut.jsx(Zl,U({className:yr(a.root,r),ownerState:i,ref:t},o))});Jl.muiName="ListItemSecondaryAction";const Ql=["className"],ec=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],tc=la("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})(({theme:e,ownerState:t})=>U({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&U({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Wl.root}`]:{paddingRight:48}},{[`&.${Hl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Hl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Hl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Hl.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"}},[`&.${Hl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Wo.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})`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),nc=la("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),rc=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiListItem"}),{alignItems:r="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:C={},slots:S={}}=n,w=W(n.ContainerProps,Ql),R=W(n,ec),k=y.useContext(Nl),_=y.useMemo(()=>({dense:h||k.dense||!1,alignItems:r,disableGutters:m}),[r,k.dense,h,m]),A=y.useRef(null);Nr(()=>{o&&A.current&&A.current.focus()},[o]);const L=y.Children.toArray(a),I=L.length&&(T=L[L.length-1],P=["ListItemSecondaryAction"],y.isValidElement(T)&&-1!==P.indexOf(null!=(M=T.type.muiName)?M:null==(O=T.type)||null==(O=O._payload)||null==(O=O.value)?void 0:O.muiName));var T,P,M,O;const j=U({},n,{alignItems:r,autoFocus:o,button:i,dense:_.dense,disabled:f,disableGutters:m,disablePadding:b,divider:g,hasSecondaryAction:I,selected:E}),$=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:d}=e;return bo({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},Gl,r)})(j),N=Zr(A,t),z=S.root||c.Root||tc,D=C.root||d.root||{},B=U({className:yr($.root,D.className,s),disabled:f},R);let F=l||"li";return i&&(B.component=l||"div",B.focusVisibleClassName=yr(Hl.focusVisible,v),F=fs),I?(F=B.component||l?F:"div","li"===u&&("li"===F?F="div":"li"===B.component&&(B.component="div")),Ut.jsx(Nl.Provider,{value:_,children:Ut.jsxs(nc,U({as:u,className:yr($.container,p),ref:N,ownerState:j},w,{children:[Ut.jsx(z,U({},D,!go(z)&&{as:F,ownerState:U({},j,D.ownerState)},B,{children:L})),L.pop()]}))})):Ut.jsx(Nl.Provider,{value:_,children:Ut.jsxs(z,U({},D,{as:F,ref:N},!go(z)&&{ownerState:U({},j,D.ownerState)},B,{children:[L,x&&Ut.jsx(Jl,{children:x})]}))})});function oc(e){return Cr("MuiListItemIcon",e)}const ic=Sr("MuiListItemIcon",["root","alignItemsFlexStart"]),ac=["className"],sc=la("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>U({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),lc=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=W(n,ac),i=U({},n,{alignItems:y.useContext(Nl).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return bo({root:["root","flex-start"===t&&"alignItemsFlexStart"]},oc,n)})(i);return Ut.jsx(sc,U({className:yr(a.root,r),ownerState:i,ref:t},o))}),cc=Sr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),dc=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function uc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function pc(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function hc(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function fc(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&hc(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const mc=y.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu"}=e,u=W(e,dc),p=y.useRef(null),h=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Nr(()=>{r&&p.current.focus()},[r]),y.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${po(Ur(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}}),[]);const f=Zr(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 Ut.jsx(Fl,U({role:"menu",ref:f,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Ur(t).activeElement;if("ArrowDown"===n)e.preventDefault(),fc(t,r,l,s,uc);else if("ArrowUp"===n)e.preventDefault(),fc(t,r,l,s,pc);else if("Home"===n)e.preventDefault(),fc(t,null,l,s,uc);else if("End"===n)e.preventDefault(),fc(t,null,l,s,pc);else if(1===n.length){const o=h.current,i=n.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=r&&!o.repeating&&hc(r,o);o.previousKeyMatched&&(l||fc(t,r,!1,s,uc,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},u,{children:b}))});function bc(e){return Cr("MuiPopover",e)}Sr("MuiPopover",["root","paper"]);const gc=["onEntering"],vc=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],yc=["slotProps"];function xc(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Ec(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Cc(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Sc(e){return"function"==typeof e?e():e}const wc=la(yl,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Rc=la(Xa,{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}),kc=y.forwardRef(function(e,t){var n,r,o;const i=Sa({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:C=Il,transitionDuration:S="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,k=W(i.TransitionProps,gc),_=W(i,vc),A=null!=(n=null==x?void 0:x.paper)?n:g,L=y.useRef(),I=Zr(L,A.ref),T=U({},i,{anchorOrigin:l,anchorReference:d,elevation:f,marginThreshold:m,externalPaperSlotProps:A,transformOrigin:E,TransitionComponent:C,transitionDuration:S,TransitionProps:k}),P=(e=>{const{classes:t}=e;return bo({root:["root"],paper:["paper"]},bc,t)})(T),M=y.useCallback(()=>{if("anchorPosition"===d)return c;const e=Sc(s),t=(e&&1===e.nodeType?e:Ur(L.current).body).getBoundingClientRect();return{top:t.top+xc(t,l.vertical),left:t.left+Ec(t,l.horizontal)}},[s,l.horizontal,l.vertical,c,d]),O=y.useCallback(e=>({vertical:xc(e,E.vertical),horizontal:Ec(e,E.horizontal)}),[E.horizontal,E.vertical]),j=y.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=O(t);if("none"===d)return{top:null,left:null,transformOrigin:Cc(n)};const r=M();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=Wr(Sc(s)),u=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>u){const e=a-u;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Cc(n)}},[s,d,M,O,m]),[$,N]=y.useState(b),z=y.useCallback(()=>{const e=L.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,N(!0)},[j]);y.useEffect(()=>(R&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z)),[s,R,z]);y.useEffect(()=>{b&&z()}),y.useImperativeHandle(a,()=>b?{updatePosition:()=>{z()}}:null,[b,z]),y.useEffect(()=>{if(!b)return;const e=Hr(()=>{z()}),t=Wr(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,b,z]);let D=S;"auto"!==S||C.muiSupportAuto||(D=void 0);const B=h||(s?Ur(Sc(s)).body:void 0),F=null!=(r=null==v?void 0:v.root)?r:wc,G=null!=(o=null==v?void 0:v.paper)?o:Rc,H=Eo({elementType:G,externalSlotProps:U({},A,{style:$?A.style:U({},A.style,{opacity:0})}),additionalProps:{elevation:f,ref:I},ownerState:T,className:yr(P.paper,null==A?void 0:A.className)}),V=Eo({elementType:F,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:_,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:B,open:b},ownerState:T,className:yr(P.root,p)}),{slotProps:q}=V,Y=W(V,yc);return Ut.jsx(F,U({},Y,!go(F)&&{slotProps:q,disableScrollLock:R},{children:Ut.jsx(C,U({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),z()},onExited:()=>{N(!1)},timeout:D},k,{children:Ut.jsx(G,U({},H,{children:u}))}))}))});function _c(e){return Cr("MuiMenu",e)}Sr("MuiMenu",["root","paper","list"]);const Ac=["onEntering"],Lc=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ic={vertical:"top",horizontal:"right"},Tc={vertical:"top",horizontal:"left"},Pc=la(kc,{shouldForwardProp:e=>sa(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mc=la(Rc,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Oc=la(mc,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),jc=y.forwardRef(function(e,t){var n,r;const o=Sa({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=W(o.TransitionProps,Ac),E=W(o,Lc),C=Io(),S=U({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:f,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return bo({root:["root"],paper:["paper"],list:["list"]},_c,t)})(S),R=i&&!l&&u,k=y.useRef(null);let _=-1;y.Children.map(a,(e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===_)&&(_=t))});const A=null!=(n=g.paper)?n:Mc,L=null!=(r=v.paper)?r:p,I=Eo({elementType:g.root,externalSlotProps:v.root,ownerState:S,className:[w.root,s]}),T=Eo({elementType:A,externalSlotProps:L,ownerState:S,className:w.paper});return Ut.jsx(Pc,U({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Ic:Tc,slots:{paper:A,root:g.root},slotProps:{root:I,paper:T},open:u,ref:t,transitionDuration:f,TransitionProps:U({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:S},E,{classes:h,children:Ut.jsx(Oc,U({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===_||l),autoFocusItem:R,variant:b},c,{className:yr(w.list,c.className),children:a}))}))});function $c(e){return Cr("MuiMenuItem",e)}const Nc=Sr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),zc=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Dc=la(fs,{shouldForwardProp:e=>sa(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>U({},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"}},[`&.${Nc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Nc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Nc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Wo.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})`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Nc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Nc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${El.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${El.inset}`]:{marginLeft:52},[`& .${cc.root}`]:{marginTop:0,marginBottom:0},[`& .${cc.inset}`]:{paddingLeft:36},[`& .${ic.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&U({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${ic.root} svg`]:{fontSize:"1.25rem"}}))),Bc=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:u}=n,p=W(n,zc),h=y.useContext(Nl),f=y.useMemo(()=>({dense:i||h.dense||!1,disableGutters:s}),[h.dense,i,s]),m=y.useRef(null);Nr(()=>{r&&m.current&&m.current.focus()},[r]);const b=U({},n,{dense:f.dense,divider:a,disableGutters:s}),g=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return U({},a,bo({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},$c,a))})(n),v=Zr(m,t);let x;return n.disabled||(x=void 0!==d?d:-1),Ut.jsx(Nl.Provider,{value:f,children:Ut.jsx(Dc,U({ref:v,role:c,tabIndex:x,component:o,focusVisibleClassName:yr(g.focusVisible,l),className:yr(g.root,u)},p,{ownerState:b,classes:g}))})});function Fc(e){return Cr("MuiTab",e)}const Gc=Sr("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Hc=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Uc=la(fs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${dn(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Gc.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>U({},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,[`& > .${Gc.iconWrapper}`]:U({},"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,[`&.${Gc.selected}`]:{opacity:1},[`&.${Gc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Gc.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Gc.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Gc.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Gc.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)})),Wc=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiTab"}),{className:r,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}=n,x=W(n,Hc),E=U({},n,{disabled:o,disableFocusRipple:i,selected:f,icon:!!s,iconPosition:l,label:!!d,fullWidth:a,textColor:b,wrapped:v}),C=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e;return bo({root:["root",i&&a&&"labelIcon",`textColor${dn(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]},Fc,t)})(E),S=s&&d&&y.isValidElement(s)?y.cloneElement(s,{className:yr(C.iconWrapper,s.props.className)}):s;return Ut.jsxs(Uc,U({focusRipple:!i,className:yr(C.root,r),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?Ut.jsxs(y.Fragment,{children:[S,d]}):Ut.jsxs(y.Fragment,{children:[d,S]}),c]}))});var Vc=Aa(Ut.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),qc=Aa(Ut.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Yc(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Kc=["onChange"],Xc={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Zc(e){return Cr("MuiTabScrollButton",e)}const Jc=Sr("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Qc=["className","slots","slotProps","direction","orientation","disabled"],ed=la(fs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>U({width:40,flexShrink:0,opacity:.8,[`&.${Jc.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),td=y.forwardRef(function(e,t){var n,r;const o=Sa({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:s={},direction:l}=o,c=W(o,Qc),d=U({isRtl:Io()},o),u=(e=>{const{classes:t,orientation:n,disabled:r}=e;return bo({root:["root",n,r&&"disabled"]},Zc,t)})(d),p=null!=(n=a.StartScrollButtonIcon)?n:Vc,h=null!=(r=a.EndScrollButtonIcon)?r:qc,f=Eo({elementType:p,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),m=Eo({elementType:h,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return Ut.jsx(ed,U({component:"div",className:yr(u.root,i),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===l?Ut.jsx(p,U({},f)):Ut.jsx(h,U({},m))}))});function nd(e){return Cr("MuiTabs",e)}const rd=Sr("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),od=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],id=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,ad=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,sd=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},ld=la("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${rd.scrollButtons}`]:t.scrollButtons},{[`& .${rd.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>U({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${rd.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),cd=la("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>U({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"})),dd=la("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>U({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),ud=la("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>U({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})),pd=la(function(e){const{onChange:t}=e,n=W(e,Kc),r=y.useRef(),o=y.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Nr(()=>{const e=Hr(()=>{const e=r.current;i(),e!==r.current&&t(r.current)}),n=Wr(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}},[t]),y.useEffect(()=>{i(),t(r.current)},[t]),Ut.jsx("div",U({style:Xc},n,{ref:o}))})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),hd={},fd=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiTabs"}),r=qi(),o=Io(),{"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=td,scrollButtons:g="auto",selectionFollowsFocus:v,slots:x={},slotProps:E={},TabIndicatorProps:C={},TabScrollButtonProps:S={},textColor:w="primary",value:R,variant:k="standard",visibleScrollbar:_=!1}=n,A=W(n,od),L="scrollable"===k,I="vertical"===m,T=I?"scrollTop":"scrollLeft",P=I?"top":"left",M=I?"bottom":"right",O=I?"clientHeight":"clientWidth",j=I?"height":"width",$=U({},n,{component:u,allowScrollButtonsMobile:p,indicatorColor:h,orientation:m,vertical:I,scrollButtons:g,textColor:w,variant:k,visibleScrollbar:_,fixed:!L,hideScrollbar:L&&!_,scrollableX:L&&!I,scrollableY:L&&I,centered:l&&!L,scrollButtonsHideMobile:!p}),N=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return bo({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},nd,l)})($),z=Eo({elementType:x.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:$}),D=Eo({elementType:x.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:$}),[B,F]=y.useState(!1),[G,H]=y.useState(hd),[V,q]=y.useState(!1),[Y,K]=y.useState(!1),[X,Z]=y.useState(!1),[J,Q]=y.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,te=y.useRef(null),ne=y.useRef(null),re=()=>{const e=te.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:mo(e,o?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==R){const e=ne.current.children;if(e.length>0){const t=e[ee.get(R)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},oe=Xr(()=>{const{tabsMeta:e,tabMeta:t}=re();let n,r=0;if(I)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=o?"right":"left",t&&e){const i=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(o?-1:1)*(t[n]-e[n]+i)}const i={[n]:r,[j]:t?t[j]:0};if(isNaN(G[n])||isNaN(G[j]))H(i);else{const e=Math.abs(G[n]-i[n]),t=Math.abs(G[j]-i[j]);(e>=1||t>=1)&&H(i)}}),ie=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=()=>{}){const{ease:i=Yc,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const d=()=>{c=!0},u=r=>{if(c)return void o(new Error("Animation cancelled"));null===s&&(s=r);const d=Math.min(1,(r-s)/a);t[e]=i(d)*(n-l)+l,d>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(u)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(u)}(T,te.current,e,{duration:r.transitions.duration.standard}):te.current[T]=e},ae=e=>{let t=te.current[T];I?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===fo()?-1:1),ie(t)},se=()=>{const e=te.current[O];let t=0;const n=Array.from(ne.current.children);for(let r=0;r<n.length;r+=1){const o=n[r];if(t+o[O]>e){0===r&&(t=e);break}t+=o[O]}return t},le=()=>{ae(-1*se())},ce=()=>{ae(se())},de=y.useCallback(e=>{Q({overflow:null,scrollbarWidth:e})},[]),ue=Xr(e=>{const{tabsMeta:t,tabMeta:n}=re();if(n&&t)if(n[P]<t[P]){const r=t[T]+(n[P]-t[P]);ie(r,{animation:e})}else if(n[M]>t[M]){const r=t[T]+(n[M]-t[M]);ie(r,{animation:e})}}),pe=Xr(()=>{L&&!1!==g&&Z(!X)});y.useEffect(()=>{const e=Hr(()=>{te.current&&oe()});let t;const n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{var n;null==(n=t)||n.unobserve(e)}),e.addedNodes.forEach(e=>{var n;null==(n=t)||n.observe(e)})}),e(),pe()},r=Wr(te.current);let o;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ne.current.children).forEach(e=>{t.observe(e)})),"undefined"!=typeof MutationObserver&&(o=new MutationObserver(n),o.observe(ne.current,{childList:!0})),()=>{var n,i;e.clear(),r.removeEventListener("resize",e),null==(n=o)||n.disconnect(),null==(i=t)||i.disconnect()}},[oe,pe]),y.useEffect(()=>{const e=Array.from(ne.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&L&&!1!==g){const n=e[0],r=e[t-1],o={root:te.current,threshold:.99},i=new IntersectionObserver(e=>{q(!e[0].isIntersecting)},o);i.observe(n);const a=new IntersectionObserver(e=>{K(!e[0].isIntersecting)},o);return a.observe(r),()=>{i.disconnect(),a.disconnect()}}},[L,g,X,null==c?void 0:c.length]),y.useEffect(()=>{F(!0)},[]),y.useEffect(()=>{oe()}),y.useEffect(()=>{ue(hd!==G)},[ue,G]),y.useImperativeHandle(s,()=>({updateIndicator:oe,updateScrollButtons:pe}),[oe,pe]);const he=Ut.jsx(ud,U({},C,{className:yr(N.indicator,C.className),ownerState:$,style:U({},G,C.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 n=t===R;return fe+=1,y.cloneElement(e,U({fullWidth:"fullWidth"===k,indicator:n&&!B&&he,selected:n,selectionFollowsFocus:v,onChange:f,textColor:w,value:t},1!==fe||!1!==R||e.props.tabIndex?{}:{tabIndex:0}))}),be=(()=>{const e={};e.scrollbarSizeListener=L?Ut.jsx(pd,{onChange:de,className:yr(N.scrollableX,N.hideScrollbar)}):null;const t=L&&("auto"===g&&(V||Y)||!0===g);return e.scrollButtonStart=t?Ut.jsx(b,U({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:z},orientation:m,direction:o?"right":"left",onClick:le,disabled:!V},S,{className:yr(N.scrollButtons,S.className)})):null,e.scrollButtonEnd=t?Ut.jsx(b,U({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:D},orientation:m,direction:o?"left":"right",onClick:ce,disabled:!Y},S,{className:yr(N.scrollButtons,S.className)})):null,e})();return Ut.jsxs(ld,U({className:yr(N.root,d),ownerState:$,ref:t,as:u},A,{children:[be.scrollButtonStart,be.scrollbarSizeListener,Ut.jsxs(cd,{className:N.scroller,ownerState:$,style:{overflow:J.overflow,[I?"margin"+(o?"Left":"Right"):"marginBottom"]:_?void 0:-J.scrollbarWidth},ref:te,children:[Ut.jsx(dd,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===m?"vertical":null,className:N.flexContainer,ownerState:$,onKeyDown:e=>{const t=ne.current,n=Ur(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===m?"ArrowLeft":"ArrowUp",i="horizontal"===m?"ArrowRight":"ArrowDown";switch("horizontal"===m&&o&&(r="ArrowRight",i="ArrowLeft"),e.key){case r:e.preventDefault(),sd(t,n,ad);break;case i:e.preventDefault(),sd(t,n,id);break;case"Home":e.preventDefault(),sd(t,null,id);break;case"End":e.preventDefault(),sd(t,null,ad)}},ref:ne,role:"tablist",children:me}),B&&he]}),be.scrollButtonEnd]}))});function md(e){return Ut.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Ut.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function bd({fontSize:e="medium",children:t=null,className:n=""}={}){return Ut.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:n,children:t})}function gd(e={}){return Ut.jsx(bd,{...e,children:Ut.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Ut.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Ut.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 vd(e={}){return Ut.jsx(bd,{fontSize:"medium",...e,children:Ut.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ut.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Ut.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 yd(e){return Ut.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Ut.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 xd(e={}){return Ut.jsx(bd,{...e,children:Ut.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ut.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Ut.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Ut.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Ed(e={}){return Ut.jsx(bd,{fontSize:"medium",...e,children:Ut.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ut.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Ut.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Cd({className:e}){return Ut.jsx(bd,{fontSize:"small",className:e,children:Ut.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Ut.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Ut.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Ut.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Ut.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"}),Ut.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 Sd(e={}){return Ut.jsx(bd,{...e,children:Ut.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ut.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Ut.jsx("rect",{stroke:pa.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var wd=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:pa.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:pa.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Ut.jsx(md,{"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 ${pa.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:pa.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${pa.MISC_FOCUS_BORDER}`,borderRadius:ga,backgroundColor:pa.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 ${pa.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:pa.WHITE,color:pa.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:ga},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${pa.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:pa.GREYSCALE_0_15,backgroundColor:pa.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:pa.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${pa.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:pa.GREEN_PALE},"&:active":{backgroundColor:pa.GREEN_DARK},"&.Mui-focusVisible":{borderColor:pa.GREEN_PALE,boxShadow:`0 0 0 3px ${Fr(pa.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:pa.BLUE_PALE},"&:active":{backgroundColor:pa.BLUE_DARK},"&.Mui-focusVisible":{borderColor:pa.BLUE_PALE,boxShadow:`0 0 0 3px ${Fr(pa.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:ga,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:pa.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${pa.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:pa.GREYSCALE_0_42,backgroundColor:pa.GREYSCALE_100_60,"&:active":{backgroundColor:pa.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:pa.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${pa.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:pa.PURPLE,"&.Mui-focusVisible":{borderColor:pa.PURPLE,boxShadow:`0 0 0 3px ${Fr(pa.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:pa.GREEN,"&.Mui-focusVisible":{borderColor:pa.GREEN,boxShadow:`0 0 0 3px ${Fr(pa.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:pa.BLUE,"&.Mui-focusVisible":{borderColor:pa.BLUE,boxShadow:`0 0 0 3px ${Fr(pa.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:pa.ORANGE,"&.Mui-focusVisible":{borderColor:pa.ORANGE,boxShadow:`0 0 0 3px ${Fr(pa.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:pa.RED,"&.Mui-focusVisible":{borderColor:pa.RED,boxShadow:`0 0 0 3px ${Fr(pa.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:pa.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:pa.PURPLE_PALE},"&:active":{backgroundColor:pa.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:pa.PURPLE_PALE,boxShadow:`0 0 0 3px ${Fr(pa.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:pa.GREEN_PALE},"&:active":{backgroundColor:pa.GREEN_DARK},"&.Mui-focusVisible":{borderColor:pa.GREEN_PALE,boxShadow:`0 0 0 3px ${Fr(pa.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:pa.BLUE_PALE},"&:active":{backgroundColor:pa.BLUE_DARK},"&.Mui-focusVisible":{borderColor:pa.BLUE_PALE,boxShadow:`0 0 0 3px ${Fr(pa.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:pa.ORANGE_PALE},"&:active":{backgroundColor:pa.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:pa.ORANGE_PALE,boxShadow:`0 0 0 3px ${Fr(pa.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:pa.RED_PALE},"&:active":{backgroundColor:pa.RED_DARK},"&.Mui-focusVisible":{borderColor:pa.RED_PALE,boxShadow:`0 0 0 3px ${Fr(pa.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:pa.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:pa.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:ga,boxShadow:`inset 0 0 0 2px ${pa.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Ut.jsx(yd,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:ha,borderRadius:ga,color:pa.TEXT_PRIMARY,backgroundColor:pa.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:pa.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${pa.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:pa.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:pa.GREYSCALE_0_05,color:pa.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:pa.GREEN,borderColor:pa.GREEN},"&.MuiChip-outlinedInfo":{color:pa.BLUE,borderColor:pa.BLUE},"&.MuiChip-outlinedWarning":{color:pa.ORANGE,borderColor:pa.ORANGE},"&.MuiChip-outlinedError":{color:pa.RED,borderColor:pa.RED}},outlined:{border:`solid 1px ${pa.GREYSCALE_0_15}`,backgroundColor:pa.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:ga,boxShadow:"none",backgroundColor:pa.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:pa.GREEN,borderColor:pa.GREEN},outlinedSecondary:{color:pa.BLUE,borderColor:pa.BLUE},label:{fontFamily:Ca.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Ut.jsx(yd,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Ut.jsx(md,{"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:ga},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:ga,fontSize:fa,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:pa.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${pa.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:pa.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:pa.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:pa.GREYSCALE_0_05}}},popupIndicator:{borderRadius:ga,border:`solid 1px ${pa.GREYSCALE_0_15}`,color:pa.GREYSCALE_0_60,marginRight:0,width:ba,height:ba},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${pa.GREYSCALE_0_15}`},clearIndicator:{borderRadius:ga,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:pa.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:fa}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:ha,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:pa.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:pa.GREYSCALE_25,fontSize:ha,fontFamily:Ca.FONT_FAMILY,fontWeight:xa,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:pa.TEXT_PRIMARY},"&.Mui-error":{color:pa.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:pa.TEXT_SECONDARY,content:"'(optional)'",fontWeight:ya,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:pa.TEXT_SECONDARY,content:"'(required)'",fontWeight:ya,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:fa,lineHeight:"16px",backgroundColor:pa.WHITE,borderRadius:ga,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pa.GREYSCALE_0_05}`,borderColor:pa.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pa.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${pa.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${pa.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pa.RED}`,boxShadow:`0px 0px 0px 1px ${pa.RED}, inset 0 2px 0 0 ${pa.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pa.GREYSCALE_0_10}`,borderColor:pa.GREYSCALE_0_10,backgroundColor:pa.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:pa.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:pa.GREYSCALE_0_15,borderRadius:ga,boxShadow:`inset 0 2px 0 0 ${pa.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Ut.jsx(md,{...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:pa.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:pa.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:pa.GREYSCALE_0_03},"&:active":{backgroundColor:pa.GREYSCALE_0_10},"&:focus":{backgroundColor:pa.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${pa.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${pa.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:pa.GREYSCALE_0_30,"&:hover":{backgroundColor:pa.GREYSCALE_0_0,borderColor:pa.GREYSCALE_0_15},"& ~svg":{color:pa.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${pa.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:ga}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:pa.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${pa.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:pa.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:ha,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:ha,fontWeight:xa,color:pa.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:xa}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${pa.GREYSCALE_0_15}, 0px 0px 0px 1px ${pa.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Ut.jsx(Ed,{}),checkedIcon:Ut.jsx(vd,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:pa.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${pa.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:pa.GREEN_PALE,boxShadow:`0 0 0 3px ${Fr(pa.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:pa.BLUE_PALE,boxShadow:`0 0 0 3px ${Fr(pa.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:pa.GREYSCALE_0_20}},"&.Mui-disabled":{fill:pa.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Ut.jsx(Sd,{}),checkedIcon:Ut.jsx(gd,{}),indeterminateIcon:Ut.jsx(xd,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:ga,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:pa.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:pa.GREYSCALE_0_55,color:pa.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:pa.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:pa.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:pa.GREYSCALE_0_55,"&:hover":{color:pa.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:pa.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:pa.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:fa,color:pa.TEXT_PRIMARY,lineHeight:"16px",fontWeight:xa},secondary:{fontSize:ha,color:pa.GREYSCALE_45,fontWeight:ya,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:pa.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:ha,borderBottom:`solid 1px ${pa.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:fa,color:pa.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:pa.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:pa.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:pa.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:pa.RED}}},"&.Mui-focusVisible":{backgroundColor:pa.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:pa.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:pa.GREEN,height:"24px","&.Mui-disabled":{color:pa.GREYSCALE_0_15}},rail:{backgroundColor:pa.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${pa.GREYSCALE_0_05}`,borderRadius:ga,boxShadow:`inset 0px 0px 0px 1px ${pa.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${pa.GREYSCALE_0_05}`,borderRadius:ga},thumb:{height:"16px",width:"16px",borderRadius:ga,backgroundColor:pa.WHITE,boxShadow:`0px 1px 2px 0px ${pa.GREYSCALE_0_15}, 0px 0px 0px 1px ${pa.GREYSCALE_0_05}`,"&:hover":{borderRadius:ga,boxShadow:`0 2px 4px 0 ${pa.GREYSCALE_0_30}, 0 0 0 1px ${pa.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${pa.GREYSCALE_0_15}, 0 0 0 1px ${pa.GREYSCALE_0_06}, 0 0 0 2px ${pa.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${pa.GREYSCALE_0_15}, 0 0 0 1px ${pa.GREYSCALE_0_06}, 0 0 0 2px ${pa.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:pa.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:pa.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:pa.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:pa.GREYSCALE_0_15},markLabel:{color:pa.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:pa.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:pa.WHITE,color:pa.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:pa.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:pa.GREEN_PALE,boxShadow:`0 0 0 3px ${Fr(pa.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:pa.BLUE_PALE,boxShadow:`0 0 0 3px ${Fr(pa.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:pa.GREYSCALE_0_15,borderRadius:ga},thumb:{height:"16px",width:"16px",borderRadius:ga,backgroundColor:pa.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:xa,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${pa.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${pa.MISC_FOCUS_BORDER}`,backgroundColor:pa.GREYSCALE_0_03,borderRadius:ga},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:pa.GREYSCALE_25,"&.Mui-selected":{color:pa.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:ga,"&:hover":{backgroundColor:pa.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 ${pa.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${pa.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:ga,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:pa.GREYSCALE_0_05},"&:hover":{backgroundColor:pa.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${pa.GREYSCALE_85}`,borderRight:`1px solid ${pa.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:xa,backgroundColor:pa.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:pa.GREYSCALE_98,borderBottom:`1px solid ${pa.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${pa.GREYSCALE_85}`,borderTop:`1px solid ${pa.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:pa.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:pa.GREYSCALE_0_05,"&:hover":{backgroundColor:pa.GREYSCALE_0_03}},"&&:hover":{backgroundColor:pa.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Ut.jsx(Cd,{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 ${pa.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:fa,borderRadius:ga,padding:"7px 16px",border:`1px solid ${pa.GREYSCALE_0_15}`,backgroundColor:pa.GREYSCALE_100_60,color:pa.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:pa.GREYSCALE_0_10,border:`1px solid ${pa.GREYSCALE_0_30}`},"&:hover":{backgroundColor:pa.GREYSCALE_0_03,border:`1px solid ${pa.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:pa.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${pa.MISC_FOCUS_BORDER}`,border:`1px solid ${pa.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:pa.GREYSCALE_25,backgroundColor:pa.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:pa.GREYSCALE_0_10,border:`1px solid ${pa.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:ha,height:24,width:24,padding:7},sizeLarge:{fontSize:ma,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:fa,borderRadius:ga}}},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:pa.GREYSCALE_20},tooltip:{backgroundColor:pa.GREYSCALE_20,fontSize:ha,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const Rd=e=>({mode:"light",primary:{ultraLight:pa.GREEN_ULTRA_LIGHT,light:pa.GREEN_PALE,main:pa.GREEN,dark:pa.GREEN_DARK,extraDark:pa.GREEN_EXTRA_DARK,contrastText:pa.WHITE},secondary:{ultraLight:pa.BLUE_ULTRA_LIGHT,light:pa.BLUE_PALE,main:pa.BLUE,dark:pa.BLUE_DARK,extraDark:pa.BLUE_EXTRA_DARK,contrastText:pa.WHITE},error:{ultraLight:pa.RED_ULTRA_LIGHT,light:pa.RED_PALE,main:pa.RED,dark:pa.RED_DARK,extraDark:pa.RED_EXTRA_DARK,contrastText:pa.WHITE},warning:{ultraLight:pa.ORANGE_ULTRA_LIGHT,light:pa.ORANGE_PALE,main:pa.ORANGE,dark:pa.ORANGE_DARK,extraDark:pa.ORANGE_EXTRA_DARK,contrastText:pa.WHITE},success:{ultraLight:pa.GREEN_ULTRA_LIGHT,light:pa.GREEN_PALE,main:pa.GREEN,dark:pa.GREEN_DARK,extraDark:pa.GREEN_EXTRA_DARK,contrastText:pa.WHITE},info:{ultraLight:pa.BLUE_ULTRA_LIGHT,light:pa.BLUE_PALE,main:pa.BLUE,dark:pa.BLUE_DARK,extraDark:pa.BLUE_EXTRA_DARK,contrastText:pa.WHITE},text:{primary:pa.TEXT_PRIMARY,secondary:pa.TEXT_SECONDARY,disabled:pa.GREYSCALE_0_30},action:{hover:pa.GREYSCALE_0_03,hoverOpacity:.03,selected:pa.GREYSCALE_0_05,selectedOpacity:.05,focus:pa.MISC_FOCUS_BORDER},amethyst:{ultraLight:pa.WHITE,main:pa.PURPLE,light:pa.PURPLE_PALE,dark:pa.PURPLE_DARK,extraDark:pa.GREYSCALE_0_0,contrastText:pa.WHITE},background:{paper:pa.WHITE,default:pa.GREYSCALE_95},divider:pa.GREYSCALE_0_15});function kd(e){return Wi({components:wd(),palette:Rd(),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:va,fontWeightRegular:ya,fontWeightMedium:xa,fontWeightBold:Ea,htmlFontSize:fa,fontFamily:Ca.FONT_FAMILY,button:{fontWeight:xa,fontSize:fa,textTransform:"none"},body1:{fontSize:ma,lineHeight:"24px"},body2:{fontSize:fa,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ba,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:ma,fontWeight:xa,lineHeight:"16px"},h6:{fontSize:fa,fontWeight:xa,lineHeight:"16px"},caption:{color:pa.TEXT_SECONDARY},subtitle1:{fontSize:fa,color:pa.TEXT_SECONDARY},subtitle2:{fontSize:ha,color:pa.TEXT_SECONDARY}},shape:{borderRadius:ga},direction:e})}class _d{translator;muiTheme;containers={};constructor({translator:e}){this.translator=e}sync=({element:e,sharedContainerUtilities:t,translator:n,containerId:r,dataHandler:o,renderHelper:i,chartList:a})=>{this.translator=n,this.containers[r]={element:e,sharedContainerUtilities:t,dataHandler:o,renderHelper:i,chartList:a}};setMuiTheme=e=>{this.muiTheme=kd(e)};destroy=e=>{delete this.containers[e]}}const Ad=["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 Ld{embed;translator;charts={};constructor(e,t){this.embed=e,this.translator=t}getCharts=()=>(this.charts=(this.embed?.getRegisteredTypes()??[]).reduce((e,t)=>{if(!Ad.includes(t.id)&&!1!==t.libraryInfo?.isLibraryItem&&!t.libraryInfo?.deprecated){const n=t;n.libraryInfo?.translationKey&&(n.libraryInfo.translation=this.translator.get(n.libraryInfo.translationKey)),e[t.id||t.type]=n}return e},{}),this.charts);getChart=e=>(this.charts[e]||this.getCharts(),this.charts[e])}var Id,Td={};var Pd=function(){if(Id)return Td;Id=1;var e=M;return Td.createRoot=e.createRoot,Td.hydrateRoot=e.hydrateRoot,Td}();const Md=x((e,t)=>Ut.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:Ut.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"})})),Od="rgb(89, 89, 89)",jd=Dt(qs)({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),$d=Dt(qs)({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),Nd=Dt(Fl,{shouldForwardProp:e=>"width"!==e})(({width:e})=>({"&.MuiList-root":{paddingTop:0,paddingBottom:0,width:e||250,maxHeight:250,overflow:"auto"}})),zd=Dt(xs)({color:Od,fontSize:"12px",fontFamily:"inherit",lineHeight:"24px",margin:"0px"}),Dd=Dt(lc)({"&.MuiListItemIcon-root":{minWidth:32,color:Od,marginRight:"0px"}}),Bd=Dt(Rl)({"&.MuiDivider-root":{borderBottom:"3px solid #595959"}}),Fd=Dt(rl)({"&.MuiButton-contained":{backgroundColor:Od,color:"rgb(255, 255, 255)"},"&.MuiButton-outlined":{backgroundColor:"rgb(255, 255, 255)",borderColor:Od,color:Od,border:"1px solid rgb(179, 179, 179)","&:hover":{backgroundColor:"rgb(255, 255, 255)",border:`1px solid ${Od}`}}}),Gd=Dt(_a)({width:"1em",height:"1em",paddingBottom:"8px"}),Hd=Dt(_a)({width:"16px",height:"16px"}),Ud=({name:e,items:t,onSelect:n})=>Ut.jsxs(Ut.Fragment,{children:[Ut.jsx(rc,{dense:!0,children:Ut.jsx(zd,{noWrap:!0,fontWeight:"bold",children:e})},e),Ut.jsx(Bd,{}),t.map(e=>Ut.jsx(rc,{divider:!0,disablePadding:!0,disableGutters:!0,children:Ut.jsxs(Yl,{sx:{minHeight:"32px",height:"auto"},onClick:()=>{n(e)},disableRipple:!0,dense:!0,children:[e.iconPath?Ut.jsx(Dd,{children:e.IconDefinition?Ut.jsx(e.IconDefinition,{}):Ut.jsx(Hd,{viewBox:"0 0 16 16",children:Ut.jsx("path",{d:e.iconPath})})}):null,Ut.jsx(zd,{noWrap:!0,title:e.translation||e.name,children:e.translation||e.name})]})},e.qExtendsId??e.name))]}),Wd=({categories:e,anchorEl:t,onClose:n,onSelect:r,width:o})=>{const[i,a]=k(""),s=!!t;return Ut.jsxs(kc,{open:s,anchorEl:t,onClose:()=>{a(""),n()},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{marginTop:"5px"},children:[Ut.jsx(Ns,{fullWidth:!0,onChange:e=>{a(e.target.value)},startAdornment:Ut.jsx($l,{position:"start",children:Ut.jsx(Md,{})})}),Ut.jsx(Bd,{}),Ut.jsx(Nd,{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&&Ut.jsx(Ud,{name:e.name,items:t,onSelect:r},e.name)})})]})},Vd=({anchorEl:e,onClose:t,dataHandler:n,translator:r,sharedContainerUtilities:o,width:i})=>{const[a,s]=k([]),[l,c]=k({});_(()=>{if(e&&n){(async()=>{const e=await n.getMasterVizList();s(e),c(n.getCharts())})().catch(()=>{})}},[e,n]);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,n=p.get(t);n?n.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})).toSorted((e,t)=>(e.translation||e.name).localeCompare(t.translation||t.name)),m=[{name:r.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})).toSorted((e,t)=>e.name.localeCompare(t.name))},{name:r.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||""})).toSorted((e,t)=>e.translation.localeCompare(t.translation))},{name:r.get("LayoutContainer.Object.CustomObjects"),items:f(u)}];for(const[e,t]of p)m.push({name:e,items:f(t)});return Ut.jsx(Wd,{categories:m,anchorEl:e,onSelect:e=>{if(!n)return;const{qExtendsId:r}=e;(r?n.addMasterObjectAsChild({initProps:{qExtendsId:r,qInfo:{qType:"undefined"}}}):n.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})},qd=e=>{const t=Kd(e);return e.objects?.map(e=>{const{childRefId:n}=e;if(!n)return e;const r=t[n];return r?{...e,id:r}:e})??[]},Yd=(e,t)=>e?.qChildList?.qItems?.find(e=>e?.qData?.childRefId===t),Kd=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qData?.childRefId;return e[n]=t?.qInfo?.qId,e},{});var Xd=Yd,Zd=e=>{const t={...e};return t.objects=qd(t),t},Jd=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qInfo?.qId;return e[n]=t.qData?.childRefId,e},{}),Qd=e=>e.objects.reduce((e,t)=>(e[t.childRefId]=t,e),{}),eu=(e,t)=>{if(!e)return t;const n=Yd(e,t);return n?.qInfo?.qId};class tu{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:n})=>{if(!this.activeContainer)return;const{dataHandler:r}=this.activeContainer;if(e?.qExtendsId){const{qExtendsId:o,qInfo:i}=e;return r?.addMasterObjectAsChild({initProps:{qExtendsId:o,qInfo:i},objectInitProps:t,children:n})}return r?.addVizAsChild({type:e?.visualization,initProps:e,objectInitProps:t,children:n})};deleteChild=async e=>{if(!this.activeContainer)return;const{dataHandler:t}=this.activeContainer;await(t?.deleteChildren([e]))};duplicateChild=async e=>{const{childRefId:t,...n}=e,r=this.getEngineId(t);if(!r)return;const o=await(this.app?.getObject(r));if(o&&this.activeContainer){const{sharedContainerUtilities:e}=this.activeContainer,t=await o.getFullPropertyTree(),r=t.qProperty,i=t.qChildren,a=await this.addChild({initProps:r,children:i,objectInitProps:n});a&&e?.setSelected([a.id])}};openAddChildPopover=e=>{if(this.activeContainer&&this.activeContainer.dataHandler&&this.data.muiTheme){const t=((e,t)=>{const n=e.getElementsByClassName(t);let r;return 0===n.length?(r=document.createElement("div"),r.className=t,e.appendChild(r)):r=n[0],Pd.createRoot(r)})(this.activeContainer.element,"add-child-popover"),n=()=>{t.unmount()};t?.render(Ut.jsx(da,{theme:this.data.muiTheme,children:Ut.jsx(Vd,{translator:this.data.translator,anchorEl:e,dataHandler:this.activeContainer.dataHandler,onClose:n,width:220,sharedContainerUtilities:this.activeContainer.sharedContainerUtilities})}))}};getObject(e){const t=this.getEngineId(e);if(t)return this.activeContainer?.renderHelper.objectMap.get(t)}getChartIcon(e){const t=this.getEngineId(e);if(!t)return;const n=this.activeContainer?.renderHelper.getChildLayout(t),r=n?.qData.visualization;return r?this.activeContainer?.chartList?.getChart(r)?.libraryInfo?.icon:void 0}setModel=e=>{this.activeId=e.id};setLayout=e=>{this.layout=e};getLayout=()=>this.layout;getEngineId=e=>eu(this.layout,e);setProperties=e=>{this.properties=e};canAddDimension=()=>!1;canAddMeasure=()=>!1;canColorBy=()=>!1;getDimensions=()=>[];getMeasures=()=>[];minDimensions=()=>0;minMeasures=()=>0;maxDimensions=()=>0;maxMeasures=()=>0}const nu="object",ru=["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"];const ou=e=>({value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}});function iu({theme:e,translator:t,id:n,path:r}){const o=()=>e.getStyle(n,r,"fontFamily");return{getDefaultValue:()=>o(),getOptions:()=>function({theme:e,translator:t,defaultValue:n}){const r=[],o=e.getStyle("","","fontFamilies");return Array.isArray(o)&&o.length?r.push(...new Set([n,...o.map(e=>e.split(",").map(e=>e.trim()).map(e=>e.replace(/\s+/g," ").trim()).filter(Boolean).join(", "))])):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFonts"),metaText:t.get("properties.theme"),groupHeader:!0},...r.map(e=>ou(e)),{value:"DefaultHeader",label:t.get("properties.allFonts"),metaText:t.get("properties.default"),groupHeader:!0},...ru.map(e=>ou(e))]}({theme:e,translator:t,defaultValue:o()})}}var au=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"];const su=e=>({value:e,label:e,groupHeader:!1,disabled:!1});function lu({theme:e,translator:t,id:n,path:r}){const o=()=>e.getStyle(n,r,"fontSize");return{getDefaultValue:()=>o(),getOptions:()=>function({theme:e,translator:t,defaultValue:n}){const r=[],o=e.getStyle("","","fontSizes");return Array.isArray(o)&&o.length?r.push(...new Set([n,...o])):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0},...r.map(e=>su(e)),{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0},...au.map(e=>su(e))]}({theme:e,translator:t,defaultValue:o()})}}function cu({theme:e,translator:t,id:n,path:r}){return{fontFamily:iu({theme:e,translator:t,id:n,path:r}),fontSize:lu({theme:e,translator:t,id:n,path:r})}}const du=["__proto__","constructor"],uu=e=>{if(du.some(t=>e.includes(t)))throw new Error("font-resolver: Forbidden property.")};var pu,hu,fu,mu=function(){if(hu)return pu;hu=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return pu=function e(){var t,n,r,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(n in t)r=s(u,n),u!==(l=s(t,n))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,d=r&&o(r)?r:[]):d=r&&i(r)?r:{},a(u,{name:n,newValue:e(f,d,l)})):void 0!==l&&a(u,{name:n,newValue:l}));return u},pu}();function bu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function gu(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function vu(){}(fu=mu)&&fu.__esModule&&Object.prototype.hasOwnProperty.call(fu,"default")&&fu.default;var yu=.7,xu=1/yu,Eu="\\s*([+-]?\\d+)\\s*",Cu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Su="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wu=/^#([0-9a-f]{3,8})$/,Ru=new RegExp(`^rgb\\(${Eu},${Eu},${Eu}\\)$`),ku=new RegExp(`^rgb\\(${Su},${Su},${Su}\\)$`),_u=new RegExp(`^rgba\\(${Eu},${Eu},${Eu},${Cu}\\)$`),Au=new RegExp(`^rgba\\(${Su},${Su},${Su},${Cu}\\)$`),Lu=new RegExp(`^hsl\\(${Cu},${Su},${Su}\\)$`),Iu=new RegExp(`^hsla\\(${Cu},${Su},${Su},${Cu}\\)$`),Tu={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 Pu(){return this.rgb().formatHex()}function Mu(){return this.rgb().formatRgb()}function Ou(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=wu.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ju(t):3===n?new Du(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?$u(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?$u(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=Ru.exec(e))?new Du(t[1],t[2],t[3],1):(t=ku.exec(e))?new Du(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_u.exec(e))?$u(t[1],t[2],t[3],t[4]):(t=Au.exec(e))?$u(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Lu.exec(e))?Wu(t[1],t[2]/100,t[3]/100,1):(t=Iu.exec(e))?Wu(t[1],t[2]/100,t[3]/100,t[4]):Tu.hasOwnProperty(e)?ju(Tu[e]):"transparent"===e?new Du(NaN,NaN,NaN,0):null}function ju(e){return new Du(e>>16&255,e>>8&255,255&e,1)}function $u(e,t,n,r){return r<=0&&(e=t=n=NaN),new Du(e,t,n,r)}function Nu(e){return e instanceof vu||(e=Ou(e)),e?new Du((e=e.rgb()).r,e.g,e.b,e.opacity):new Du}function zu(e,t,n,r){return 1===arguments.length?Nu(e):new Du(e,t,n,null==r?1:r)}function Du(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Bu(){return`#${Uu(this.r)}${Uu(this.g)}${Uu(this.b)}`}function Fu(){const e=Gu(this.opacity);return`${1===e?"rgb(":"rgba("}${Hu(this.r)}, ${Hu(this.g)}, ${Hu(this.b)}${1===e?")":`, ${e})`}`}function Gu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Hu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Uu(e){return((e=Hu(e))<16?"0":"")+e.toString(16)}function Wu(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qu(e,t,n,r)}function Vu(e){if(e instanceof qu)return new qu(e.h,e.s,e.l,e.opacity);if(e instanceof vu||(e=Ou(e)),!e)return new qu;if(e instanceof qu)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new qu(a,s,l,e.opacity)}function qu(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Yu(e){return(e=(e||0)%360)<0?e+360:e}function Ku(e){return Math.max(0,Math.min(1,e||0))}function Xu(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}bu(vu,Ou,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Pu,formatHex:Pu,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Vu(this).formatHsl()},formatRgb:Mu,toString:Mu}),bu(Du,zu,gu(vu,{brighter(e){return e=null==e?xu:Math.pow(xu,e),new Du(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?yu:Math.pow(yu,e),new Du(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Du(Hu(this.r),Hu(this.g),Hu(this.b),Gu(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:Bu,formatHex:Bu,formatHex8:function(){return`#${Uu(this.r)}${Uu(this.g)}${Uu(this.b)}${Uu(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Fu,toString:Fu})),bu(qu,function(e,t,n,r){return 1===arguments.length?Vu(e):new qu(e,t,n,null==r?1:r)},gu(vu,{brighter(e){return e=null==e?xu:Math.pow(xu,e),new qu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?yu:Math.pow(yu,e),new qu(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Du(Xu(e>=240?e-240:e+120,o,r),Xu(e,o,r),Xu(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new qu(Yu(this.h),Ku(this.s),Ku(this.l),Gu(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=Gu(this.opacity);return`${1===e?"hsl(":"hsla("}${Yu(this.h)}, ${100*Ku(this.s)}%, ${100*Ku(this.l)}%${1===e?")":`, ${e})`}`}}));const Zu=Math.PI/180,Ju=180/Math.PI,Qu=.96422,ep=.82521,tp=4/29,np=6/29,rp=3*np*np,op=np*np*np;function ip(e){if(e instanceof ap)return new ap(e.l,e.a,e.b,e.opacity);if(e instanceof up)return pp(e);e instanceof Du||(e=Nu(e));var t,n,r=dp(e.r),o=dp(e.g),i=dp(e.b),a=sp((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=sp((.4360747*r+.3850649*o+.1430804*i)/Qu),n=sp((.0139322*r+.0971045*o+.7141733*i)/ep)),new ap(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ap(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function sp(e){return e>op?Math.pow(e,1/3):e/rp+tp}function lp(e){return e>np?e*e*e:rp*(e-tp)}function cp(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function dp(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function up(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function pp(e){if(isNaN(e.h))return new ap(e.l,0,0,e.opacity);var t=e.h*Zu;return new ap(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}bu(ap,function(e,t,n,r){return 1===arguments.length?ip(e):new ap(e,t,n,null==r?1:r)},gu(vu,{brighter(e){return new ap(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ap(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,n=isNaN(this.b)?e:e-this.b/200;return new Du(cp(3.1338561*(t=Qu*lp(t))-1.6168667*(e=1*lp(e))-.4906146*(n=ep*lp(n))),cp(-.9787684*t+1.9161415*e+.033454*n),cp(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),bu(up,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof up)return new up(e.h,e.c,e.l,e.opacity);if(e instanceof ap||(e=ip(e)),0===e.a&&0===e.b)return new up(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ju;return new up(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new up(e,t,n,null==r?1:r)},gu(vu,{brighter(e){return new up(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new up(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return pp(this).rgb()}}));var hp=e=>()=>e;function fp(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):hp(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?fp:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):hp(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=zu(e)).r,(t=zu(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=fp(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var mp="center",bp="bottom";function gp(e,t,n){if(void 0===e||void 0===t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(void 0===o[t])return n;o=o[t]}return o}[{key:"NoDataExist",alignment:mp,condition:({layoutService:e})=>{if(!e)return!1;const{x:t,y:n}=e.meta.size;return t*n===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:mp,condition:({layoutService:e})=>!!e&&e.getHyperCubeValue("qMeasureInfo").every(e=>"NaN"===e.qMin&&"NaN"===e.qMax)},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:mp,condition:({layoutService:e})=>{if(!e)return!1;const{isContinuous:t}=e.meta;if(!t)return!1;const n=e.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:mp},{key:"DataRangeIncludingZero",alignment:bp},{key:"LimitedData",alignment:bp},{key:"NegativeOrZeroValues",alignment:bp}].reduce((e,t)=>(e[t.key]=t,e),{});const vp=["__proto__","constructor"];function yp(e,t,n){if(void 0===e||void 0===t)return;const r=t.split("."),o=r[r.length-1];if(vp.some(e=>r.includes(e)))return;let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0===i[t]&&(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n?i[o]=n:delete i[o]}function xp(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Ep(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Sp)):void 0===t&&(t=Cp);for(var n,r,o,i,a,s=new kp(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new kp(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Rp)}function Cp(e){return e.children}function Sp(e){return Array.isArray(e)?e[1]:null}function wp(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Rp(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function kp(e){this.data=e,this.depth=this.height=0,this.parent=null}var _p;kp.prototype=Ep.prototype={constructor:kp,count:function(){return this.eachAfter(xp)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},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(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return Ep(this).eachBefore(wp)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},_p=function(e){
|
|
87
|
+
`),Za.rippleVisible,os,550,({theme:e})=>e.transitions.easing.easeInOut,Za.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Za.child,Za.childLeaving,is,550,({theme:e})=>e.transitions.easing.easeInOut,Za.childPulsate,as,({theme:e})=>e.transitions.easing.easeInOut),cs=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=W(n,Ja),[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=to(),h=y.useRef(null),f=y.useRef(null),m=y.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,Ut.jsx(ls,{classes:{ripple:yr(o.ripple,Za.ripple),rippleVisible:yr(o.rippleVisible,Za.rippleVisible),ripplePulsate:yr(o.ripplePulsate,Za.ripplePulsate),child:yr(o.child,Za.child),childLeaving:yr(o.childLeaving,Za.childLeaving),childPulsate:yr(o.childPulsate,Za.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,d.current=a},[o]),b=y.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||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:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),d=Math.round(n-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:n})},p.start(80,()=>{h.current&&(h.current(),h.current=null)})):m({pulsate:o,rippleX:c,rippleY:d,rippleSize:b,cb:n})},[r,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]),Ut.jsx(ss,U({className:yr(Za.root,o.root,i),ref:f},a,{children:Ut.jsx(Ua,{component:null,exit:!0,children:s})}))});function ds(e){return Cr("MuiButtonBase",e)}const us=Sr("MuiButtonBase",["root","disabled","focusVisible"]),ps=["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"],hs=la("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"},[`&.${us.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fs=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiButtonBase"}),{action:r,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:C,onMouseLeave:S,onMouseUp:w,onTouchEnd:R,onTouchMove:_,onTouchStart:k,tabIndex:A=0,TouchRippleProps:L,touchRippleRef:I,type:T}=n,P=W(n,ps),M=y.useRef(null),O=y.useRef(null),j=Zr(O,I),{isFocusVisibleRef:$,onFocus:N,onBlur:D,ref:z}=uo(),[B,F]=y.useState(!1);l&&B&&F(!1),y.useImperativeHandle(r,()=>({focusVisible:()=>{F(!0),M.current.focus()}}),[]);const[G,H]=y.useState(!1);y.useEffect(()=>{H(!0)},[]);const V=G&&!c&&!l;function q(e,t,n=d){return Xr(r=>{t&&t(r);return!n&&O.current&&O.current[e](r),!0})}y.useEffect(()=>{B&&u&&!c&&G&&O.current.pulsate()},[c,u,B,G]);const Y=q("start",C),K=q("stop",m),X=q("stop",b),Z=q("stop",w),J=q("stop",e=>{B&&e.preventDefault(),S&&S(e)}),Q=q("start",k),ee=q("stop",R),te=q("stop",_),ne=q("stop",e=>{D(e),!1===$.current&&F(!1),h&&h(e)},!1),re=Xr(e=>{M.current||(M.current=e.currentTarget),N(e),!0===$.current&&(F(!0),v&&v(e)),g&&g(e)}),oe=()=>{const e=M.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ie=y.useRef(!1),ae=Xr(e=>{u&&!ie.current&&B&&O.current&&" "===e.key&&(ie.current=!0,O.current.stop(e,()=>{O.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=Xr(e=>{u&&" "===e.key&&O.current&&B&&!e.defaultPrevented&&(ie.current=!1,O.current.stop(e,()=>{O.current.pulsate(e)})),E&&E(e),f&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&f(e)});let le=s;"button"===le&&(P.href||P.to)&&(le=p);const ce={};"button"===le?(ce.type=void 0===T?"button":T,ce.disabled=l):(P.href||P.to||(ce.role="button"),l&&(ce["aria-disabled"]=l));const de=Zr(t,z,M),ue=U({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:d,focusRipple:u,tabIndex:A,focusVisible:B}),pe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=bo({root:["root",t&&"disabled",n&&"focusVisible"]},ds,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Ut.jsxs(hs,U({as:le,className:yr(pe.root,a),ownerState:ue,onBlur:ne,onClick:f,onContextMenu:K,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:Y,onMouseLeave:J,onMouseUp:Z,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:de,tabIndex:l?-1:A,type:T},ce,P,{children:[i,V?Ut.jsx(cs,U({ref:j,center:o},L)):null]}))});function ms(e){return Cr("MuiTypography",e)}Sr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const bs=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],gs=la("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${dn(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>U({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})),vs={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ys={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},xs=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiTypography"}),r=(e=>ys[e]||e)(n.color),o=fr(U({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:u="body1",variantMapping:p=vs}=o,h=W(o,bs),f=U({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:d,variant:u,variantMapping:p}),m=s||(d?"p":p[u]||vs[u])||"span",b=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return bo({root:["root",i,"inherit"!==e.align&&`align${dn(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},ms,a)})(f);return Ut.jsx(gs,U({as:m,ref:t,ownerState:f,className:yr(b.root,a)},h))});const Es=y.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=Zr(y.isValidElement(n)?Co(n):null,t);if(Nr(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),Nr(()=>{if(i&&!o)return Vr(t,i),()=>{Vr(t,null)}},[t,i,o]),o){if(y.isValidElement(n)){const e={ref:s};return y.cloneElement(n,e)}return Ut.jsx(y.Fragment,{children:n})}return Ut.jsx(y.Fragment,{children:i?O.createPortal(n,i):i})}),Cs=["onChange","maxRows","minRows","style","value"];function Ss(e){return parseInt(e,10)||0}const ws={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Rs(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const _s=y.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=W(e,Cs),{current:l}=y.useRef(null!=a),c=y.useRef(null),d=Zr(t,c),u=y.useRef(null),p=y.useRef(null),h=y.useCallback(()=>{const t=c.current,n=p.current;if(!t||!n)return;const i=Wr(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=Ss(i.paddingBottom)+Ss(i.paddingTop),l=Ss(i.borderBottomWidth)+Ss(i.borderTopWidth),d=n.scrollHeight;n.value="x";const u=n.scrollHeight;let h=d;o&&(h=Math.max(Number(o)*u,h)),r&&(h=Math.min(Number(r)*u,h)),h=Math.max(h,u);return{outerHeightStyle:h+("border-box"===a?s+l:0),overflowing:Math.abs(h-d)<=1}},[r,o,e.placeholder]),f=Xr(()=>{const e=c.current,t=h();if(!e||!t||Rs(t))return!1;const n=t.outerHeightStyle;return null!=u.current&&u.current!==n}),m=y.useCallback(()=>{const e=c.current,t=h();if(!e||!t||Rs(t))return;const n=t.outerHeightStyle;u.current!==n&&(u.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),b=y.useRef(-1);Nr(()=>{const e=Hr(m),t=null==c?void 0:c.current;if(!t)return;const n=Wr(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{f()&&(r.unobserve(t),cancelAnimationFrame(b.current),m(),b.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(b.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[h,m,f]),Nr(()=>{m()});return Ut.jsxs(y.Fragment,{children:[Ut.jsx("textarea",U({value:a,onChange:e=>{l||m(),n&&n(e)},ref:d,rows:o,style:i},s)),Ut.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:U({},ws,i,{paddingTop:0,paddingBottom:0})})]})});const ks=y.createContext(void 0);function As(){return y.useContext(ks)}function Ls(e){return Ut.jsx(pr,U({},e,{defaultTheme:Vi,themeId:H}))}function Is(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Ts(e){return Cr("MuiInputBase",e)}const Ps=Sr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ms=["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"],Os=la("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${dn(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})(({theme:e,ownerState:t})=>U({},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",[`&.${Ps.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&U({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),js=la("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]}})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=U({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.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:n?.42:.5};return U({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":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ps.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},[`&.${Ps.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"})}),$s=Ut.jsx(Ls,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ns=y.forwardRef(function(e,t){var n;const r=Sa({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:C=!1,name:S,onBlur:w,onChange:R,onClick:_,onFocus:k,onKeyDown:A,onKeyUp:L,placeholder:I,readOnly:T,renderSuffix:P,rows:M,slotProps:O={},slots:j={},startAdornment:$,type:N="text",value:D}=r,z=W(r,Ms),B=null!=g.value?g.value:D,{current:G}=y.useRef(null!=B),H=y.useRef(),V=y.useCallback(e=>{},[]),q=Zr(H,v,g.ref,V),[Y,K]=y.useState(!1),X=As(),Z=function({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}({props:r,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Z.focused=X?X.focused:Y,y.useEffect(()=>{!X&&u&&Y&&(K(!1),w&&w())},[X,u,Y,w]);const J=X&&X.onFilled,Q=X&&X.onEmpty,ee=y.useCallback(e=>{!function(e,t=!1){return e&&(Is(e.value)&&""!==e.value||t&&Is(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():J&&J()},[J,Q]);Nr(()=>{G&&ee({value:B})},[B,ee,G]);y.useEffect(()=>{ee(H.current)},[]);let te=b,ne=g;C&&"input"===te&&(ne=U(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:x,minRows:E},ne),te=_s);y.useEffect(()=>{X&&X.setAdornedStart(Boolean($))},[X,$]);const re=U({},r,{color:Z.color||"primary",disabled:Z.disabled,endAdornment:h,error:Z.error,focused:Z.focused,formControl:X,fullWidth:f,hiddenLabel:Z.hiddenLabel,multiline:C,size:Z.size,startAdornment:$,type:N}),oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:u,size:p,startAdornment:h,type:f}=e;return bo({root:["root",`color${dn(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${dn(p)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",u&&"readOnly"]},Ts,t)})(re),ie=j.root||l.Root||Os,ae=O.root||c.root||{},se=j.input||l.Input||js;return ne=U({},ne,null!=(n=O.input)?n:c.input),Ut.jsxs(y.Fragment,{children:[!p&&$s,Ut.jsxs(ie,U({},ae,!go(ie)&&{ownerState:U({},re,ae.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),_&&_(e)}},z,{className:yr(oe.root,ae.className,s,T&&"MuiInputBase-readOnly"),children:[$,Ut.jsx(ks.Provider,{value:null,children:Ut.jsx(se,U({ownerState:re,"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?H.current:{value:"x"})},name:S,placeholder:I,readOnly:T,required:Z.required,rows:M,value:B,onKeyDown:A,onKeyUp:L,type:N},ne,!go(se)&&{as:te,ownerState:U({},re,ne.ownerState)},{ref:q,className:yr(oe.input,ne.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),g.onBlur&&g.onBlur(e),X&&X.onBlur?X.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!G){const t=e.target||H.current;if(null==t)throw new Error(F(1));ee({value:t.value})}g.onChange&&g.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Z.disabled?e.stopPropagation():(k&&k(e),g.onFocus&&g.onFocus(e),X&&X.onFocus?X.onFocus(e):K(!0))}}))}),h,P?P(U({},Z,{startAdornment:$})):null]}))]})}),Ds=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],zs={entering:{opacity:1},entered:{opacity:1}},Bs=y.forwardRef(function(e,t){const n=qi(),r={enter:n.transitions.duration.enteringScreen,exit:n.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=r,TransitionComponent:g=Da}=e,v=W(e,Ds),x=y.useRef(null),E=Zr(x,Co(a),t),C=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=C(u),w=C((e,t)=>{Wa(e);const r=Va({style:m,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),R=C(d),_=C(f),k=C(e=>{const t=Va({style:m,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),A=C(h);return Ut.jsx(g,U({appear:i,in:l,nodeRef:x,onEnter:w,onEntered:R,onEntering:S,onExit:k,onExited:A,onExiting:_,addEndListener:e=>{o&&o(x.current,e)},timeout:b},v,{children:(e,t)=>y.cloneElement(a,U({style:U({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},zs[e],m,a.props.style),ref:E},t))}))});function Fs(e){return Cr("MuiBackdrop",e)}Sr("MuiBackdrop",["root","invisible"]);const Gs=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Hs=la("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>U({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"})),Us=y.forwardRef(function(e,t){var n,r,o;const i=Sa({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=Bs,transitionDuration:b}=i,g=W(i,Gs),v=U({},i,{component:l,invisible:u}),y=(e=>{const{classes:t,invisible:n}=e;return bo({root:["root",n&&"invisible"]},Fs,t)})(v),x=null!=(n=h.root)?n:d.root;return Ut.jsx(m,U({in:p,timeout:b},g,{children:Ut.jsx(Hs,U({"aria-hidden":!0},x,{as:null!=(r=null!=(o=f.root)?o:c.Root)?r:l,className:yr(y.root,s,null==x?void 0:x.className),ownerState:U({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),Ws=Sr("MuiBox",["root"]),Vs=Wi(),qs=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=qt("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(rr);return y.forwardRef(function(e,a){const s=dr(n),l=fr(e),{className:c,component:d="div"}=l,u=W(l,xr);return Ut.jsx(i,U({as:d,ref:a,className:yr(c,o?o(r):r),theme:t&&s[t]||s},u))})}({themeId:H,defaultTheme:Vs,defaultClassName:Ws.root,generateClassName:gr.generate});function Ys(e){return Cr("MuiButton",e)}const Ks=Sr("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"]),Xs=y.createContext({}),Zs=y.createContext(void 0),Js=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Qs=e=>U({},"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}}),el=la(fs,{shouldForwardProp:e=>sa(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${dn(n.color)}`],t[`size${dn(n.size)}`],t[`${n.variant}Size${dn(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;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 U({},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":U({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Wo.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})`:Wo.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})`:Wo.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":U({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ks.focusVisible}`]:U({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ks.disabled}`]:U({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 ${Wo.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,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"},[`&.${Ks.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ks.disabled}`]:{boxShadow:"none"}}),tl=la("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${dn(n.size)}`]]}})(({ownerState:e})=>U({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Qs(e))),nl=la("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${dn(n.size)}`]]}})(({ownerState:e})=>U({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Qs(e))),rl=y.forwardRef(function(e,t){const n=y.useContext(Xs),r=y.useContext(Zs),o=Sa({props:$r(n,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=W(o,Js),E=U({},o,{color:a,component:s,disabled:c,disableElevation:d,disableFocusRipple:u,fullWidth:f,size:m,type:g,variant:v}),C=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return U({},a,bo({root:["root",i,`${i}${dn(t)}`,`size${dn(o)}`,`${i}Size${dn(o)}`,`color${dn(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${dn(o)}`],endIcon:["icon","endIcon",`iconSize${dn(o)}`]},Ys,a))})(E),S=b&&Ut.jsx(tl,{className:C.startIcon,ownerState:E,children:b}),w=p&&Ut.jsx(nl,{className:C.endIcon,ownerState:E,children:p}),R=r||"";return Ut.jsxs(el,U({ownerState:E,className:yr(n.className,C.root,l,R),component:s,disabled:c,focusRipple:!u,focusVisibleClassName:yr(C.focusVisible,h),ref:t,type:g},x,{classes:C,children:[S,i,w]}))});function ol(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function il(e){return parseInt(Wr(e).getComputedStyle(e).paddingRight,10)||0}function al(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&ol(e,o)})}function sl(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function ll(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Ur(e);return t.body===e?Wr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=po(Ur(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${il(r)+e}px`;const t=Ur(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${il(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Ur(r).body;else{const t=r.parentElement,n=Wr(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.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()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const cl=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function dl(e){const t=[],n=[];return Array.from(e.querySelectorAll(cl)).forEach((e,r)=>{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 n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function ul(){return!0}function pl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=dl,isEnabled:a=ul,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=Zr(Co(t),f),b=y.useRef(null);y.useEffect(()=>{s&&f.current&&(h.current=!n)},[n,s]),y.useEffect(()=>{if(!s||!f.current)return;const e=Ur(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=Ur(f.current),t=t=>{b.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(l.current=!0,d.current&&d.current.focus())},n=()=>{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(r&&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 n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=i(f.current)),n.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=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,a,s,i]);const g=e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0};return Ut.jsxs(y.Fragment,{children:[Ut.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 n=t.props.onFocus;n&&n(e)}}),Ut.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:d,"data-testid":"sentinelEnd"})]})}const hl=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ol(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);al(t,e.mount,e.modalRef,r,!0);const o=sl(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=sl(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=ll(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=sl(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&ol(e.modalRef,t),al(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&ol(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function fl(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=hl,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=Zr(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),C=()=>{o.mount(E(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},S=Xr(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ur(h.current).body;o.add(E(),e),f.current&&C()}),w=y.useCallback(()=>o.isTopModal(E()),[o]),R=Xr(e=>{h.current=e,e&&(d&&w()?C():f.current&&ol(f.current,x))}),_=y.useCallback(()=>{o.remove(E(),x)},[x,o]);y.useEffect(()=>()=>{_()},[_]),y.useEffect(()=>{d?S():v&&i||_()},[d,_,v,i,S]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},A=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=vo(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=U({},n,t);return U({role:"presentation"},r,{onKeyDown:k(r),ref:m})},getBackdropProps:(e={})=>U({"aria-hidden":!0},e,{onClick:A(e),open:d}),getTransitionProps:()=>({onEnter:Gr(()=>{g(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:Gr(()=>{g(!0),s&&s(),i&&_()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:b,hasTransition:v}}function ml(e){return Cr("MuiModal",e)}Sr("MuiModal",["root","hidden","backdrop"]);const bl=["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"],gl=la("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>U({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),vl=la(Us,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),yl=y.forwardRef(function(e,t){var n,r,o,i,a,s;const l=Sa({name:"MuiModal",props:e}),{BackdropComponent:c=vl,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:C=!1,disableRestoreFocus:S=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:_=!1,onBackdropClick:k,open:A,slotProps:L,slots:I}=l,T=W(l,bl),P=U({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:E,disablePortal:C,disableRestoreFocus:S,disableScrollLock:w,hideBackdrop:R,keepMounted:_}),{getRootProps:M,getBackdropProps:O,getTransitionProps:j,portalRef:$,isTopModal:N,exited:D,hasTransition:z}=fl(U({},P,{rootRef:t})),B=U({},P,{exited:D}),F=(e=>{const{open:t,exited:n,classes:r}=e;return bo({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ml,r)})(B),G={};if(void 0===h.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=j();G.onEnter=e,G.onExited=t}const H=null!=(n=null!=(r=null==I?void 0:I.root)?r:b.Root)?n:gl,V=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:b.Backdrop)?o:c,q=null!=(a=null==L?void 0:L.root)?a:g.root,Y=null!=(s=null==L?void 0:L.backdrop)?s:g.backdrop,K=Eo({elementType:H,externalSlotProps:q,externalForwardedProps:T,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:B,className:yr(u,null==q?void 0:q.className,null==F?void 0:F.root,!B.open&&B.exited&&(null==F?void 0:F.hidden))}),X=Eo({elementType:V,externalSlotProps:Y,additionalProps:d,getSlotProps:e=>O(U({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:yr(null==Y?void 0:Y.className,null==d?void 0:d.className,null==F?void 0:F.backdrop),ownerState:B});return _||A||z&&!D?Ut.jsx(Es,{ref:$,container:f,disablePortal:C,children:Ut.jsxs(H,U({},K,{children:[!R&&c?Ut.jsx(V,U({},X)):null,Ut.jsx(pl,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:S,isEnabled:N,open:A,children:y.cloneElement(h,G)})]}))}):null});function xl(e){return Cr("MuiDivider",e)}const El=Sr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Cl=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Sl=la("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>U({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)`:Wo.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})=>U({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>U({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>U({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>U({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),wl=la("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>U({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)`})),Rl=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiDivider"}),{absolute:r=!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"}=n,h=W(n,Cl),f=U({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:d,textAlign:u,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return bo({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},xl,r)})(f);return Ut.jsx(Sl,U({as:a,className:yr(m.root,i),role:d,ref:t,ownerState:f},h,{children:o?Ut.jsx(wl,{className:m.wrapper,ownerState:f,children:o}):null}))});Rl.muiSkipListHighlight=!0;const _l=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function kl(e){return`scale(${e}, ${e**2})`}const Al={entering:{opacity:1,transform:kl(1)},entered:{opacity:1,transform:"none"}},Ll="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Il=y.forwardRef(function(e,t){const{addEndListener:n,appear:r=!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=Da}=e,b=W(e,_l),g=to(),v=y.useRef(),x=qi(),E=y.useRef(null),C=Zr(E,Co(o),t),S=e=>t=>{if(e){const n=E.current;void 0===t?e(n):e(n,t)}},w=S(c),R=S((e,t)=>{Wa(e);const{duration:n,delay:r,easing:o}=Va({style:h,timeout:f,easing:i},{mode:"enter"});let a;"auto"===f?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:Ll?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),_=S(l),k=S(p),A=S(e=>{const{duration:t,delay:n,easing:r}=Va({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:n}),x.transitions.create("transform",{duration:Ll?o:.666*o,delay:Ll?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=kl(.75),d&&d(e)}),L=S(u);return Ut.jsx(m,U({appear:r,in:a,nodeRef:E,onEnter:R,onEntered:_,onEntering:w,onExit:A,onExited:L,onExiting:k,addEndListener:e=>{"auto"===f&&g.start(v.current||0,e),n&&n(E.current,e)},timeout:"auto"===f?null:f},b,{children:(e,t)=>y.cloneElement(o,U({style:U({opacity:0,transform:kl(.75),visibility:"exited"!==e||a?void 0:"hidden"},Al[e],h,o.props.style),ref:C},t))}))});function Tl(e){return Cr("MuiInputAdornment",e)}Il.muiSupportAuto=!0;const Pl=Sr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Ml;const Ol=["children","className","component","disablePointerEvents","disableTypography","position","variant"],jl=la("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${dn(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>U({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Pl.positionStart}&:not(.${Pl.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),$l=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c}=n,d=W(n,Ol),u=As()||{};let p=c;c&&u.variant,u&&!p&&(p=u.variant);const h=U({},n,{hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:l,variant:p}),f=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return bo({root:["root",n&&"disablePointerEvents",o&&`position${dn(o)}`,a,r&&"hiddenLabel",i&&`size${dn(i)}`]},Tl,t)})(h);return Ut.jsx(ks.Provider,{value:null,children:Ut.jsx(jl,U({as:i,ownerState:h,className:yr(f.root,o),ref:t},d,{children:"string"!=typeof r||s?Ut.jsxs(y.Fragment,{children:["start"===l?Ml||(Ml=Ut.jsx("span",{className:"notranslate",children:""})):null,r]}):Ut.jsx(xs,{color:"text.secondary",children:r})}))})}),Nl=y.createContext({});function Dl(e){return Cr("MuiList",e)}Sr("MuiList",["root","padding","dense","subheader"]);const zl=["children","className","component","dense","disablePadding","subheader"],Bl=la("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>U({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Fl=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=W(n,zl),d=y.useMemo(()=>({dense:a}),[a]),u=U({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return bo({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Dl,t)})(u);return Ut.jsx(Nl.Provider,{value:d,children:Ut.jsxs(Bl,U({as:i,className:yr(p.root,o),ref:t,ownerState:u},c,{children:[l,r]}))})});function Gl(e){return Cr("MuiListItem",e)}const Hl=Sr("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function Ul(e){return Cr("MuiListItemButton",e)}const Wl=Sr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Vl=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],ql=la(fs,{shouldForwardProp:e=>sa(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>U({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"}},[`&.${Wl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Wl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Wl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Wo.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})`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Wl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Wl.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})),Yl=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiListItemButton"}),{alignItems:r="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}=n,h=W(n,Vl),f=y.useContext(Nl),m=y.useMemo(()=>({dense:s||f.dense||!1,alignItems:r,disableGutters:l}),[r,f.dense,s,l]),b=y.useRef(null);Nr(()=>{o&&b.current&&b.current.focus()},[o]);const g=U({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:u}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return U({},n,bo({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},Ul,n))})(g),x=Zr(b,t);return Ut.jsx(Nl.Provider,{value:m,children:Ut.jsx(ql,U({ref:x,href:h.href||h.to,component:(h.href||h.to)&&"div"===i?"button":i,focusVisibleClassName:yr(v.focusVisible,d),ownerState:g,className:yr(v.root,p)},h,{classes:v,children:a}))})});function Kl(e){return Cr("MuiListItemSecondaryAction",e)}Sr("MuiListItemSecondaryAction",["root","disableGutters"]);const Xl=["className"],Zl=la("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>U({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Jl=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=W(n,Xl),i=U({},n,{disableGutters:y.useContext(Nl).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return bo({root:["root",t&&"disableGutters"]},Kl,n)})(i);return Ut.jsx(Zl,U({className:yr(a.root,r),ownerState:i,ref:t},o))});Jl.muiName="ListItemSecondaryAction";const Ql=["className"],ec=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],tc=la("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})(({theme:e,ownerState:t})=>U({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&U({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Wl.root}`]:{paddingRight:48}},{[`&.${Hl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Hl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Hl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Hl.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"}},[`&.${Hl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Wo.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})`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),nc=la("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),rc=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiListItem"}),{alignItems:r="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:C={},slots:S={}}=n,w=W(n.ContainerProps,Ql),R=W(n,ec),_=y.useContext(Nl),k=y.useMemo(()=>({dense:h||_.dense||!1,alignItems:r,disableGutters:m}),[r,_.dense,h,m]),A=y.useRef(null);Nr(()=>{o&&A.current&&A.current.focus()},[o]);const L=y.Children.toArray(a),I=L.length&&(T=L[L.length-1],P=["ListItemSecondaryAction"],y.isValidElement(T)&&-1!==P.indexOf(null!=(M=T.type.muiName)?M:null==(O=T.type)||null==(O=O._payload)||null==(O=O.value)?void 0:O.muiName));var T,P,M,O;const j=U({},n,{alignItems:r,autoFocus:o,button:i,dense:k.dense,disabled:f,disableGutters:m,disablePadding:b,divider:g,hasSecondaryAction:I,selected:E}),$=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:d}=e;return bo({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},Gl,r)})(j),N=Zr(A,t),D=S.root||c.Root||tc,z=C.root||d.root||{},B=U({className:yr($.root,z.className,s),disabled:f},R);let F=l||"li";return i&&(B.component=l||"div",B.focusVisibleClassName=yr(Hl.focusVisible,v),F=fs),I?(F=B.component||l?F:"div","li"===u&&("li"===F?F="div":"li"===B.component&&(B.component="div")),Ut.jsx(Nl.Provider,{value:k,children:Ut.jsxs(nc,U({as:u,className:yr($.container,p),ref:N,ownerState:j},w,{children:[Ut.jsx(D,U({},z,!go(D)&&{as:F,ownerState:U({},j,z.ownerState)},B,{children:L})),L.pop()]}))})):Ut.jsx(Nl.Provider,{value:k,children:Ut.jsxs(D,U({},z,{as:F,ref:N},!go(D)&&{ownerState:U({},j,z.ownerState)},B,{children:[L,x&&Ut.jsx(Jl,{children:x})]}))})});function oc(e){return Cr("MuiListItemIcon",e)}const ic=Sr("MuiListItemIcon",["root","alignItemsFlexStart"]),ac=["className"],sc=la("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>U({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),lc=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=W(n,ac),i=U({},n,{alignItems:y.useContext(Nl).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return bo({root:["root","flex-start"===t&&"alignItemsFlexStart"]},oc,n)})(i);return Ut.jsx(sc,U({className:yr(a.root,r),ownerState:i,ref:t},o))}),cc=Sr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),dc=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function uc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function pc(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function hc(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function fc(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&hc(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const mc=y.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu"}=e,u=W(e,dc),p=y.useRef(null),h=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Nr(()=>{r&&p.current.focus()},[r]),y.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${po(Ur(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}}),[]);const f=Zr(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 Ut.jsx(Fl,U({role:"menu",ref:f,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Ur(t).activeElement;if("ArrowDown"===n)e.preventDefault(),fc(t,r,l,s,uc);else if("ArrowUp"===n)e.preventDefault(),fc(t,r,l,s,pc);else if("Home"===n)e.preventDefault(),fc(t,null,l,s,uc);else if("End"===n)e.preventDefault(),fc(t,null,l,s,pc);else if(1===n.length){const o=h.current,i=n.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=r&&!o.repeating&&hc(r,o);o.previousKeyMatched&&(l||fc(t,r,!1,s,uc,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},u,{children:b}))});function bc(e){return Cr("MuiPopover",e)}Sr("MuiPopover",["root","paper"]);const gc=["onEntering"],vc=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],yc=["slotProps"];function xc(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Ec(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Cc(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Sc(e){return"function"==typeof e?e():e}const wc=la(yl,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Rc=la(Xa,{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}),_c=y.forwardRef(function(e,t){var n,r,o;const i=Sa({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:C=Il,transitionDuration:S="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,_=W(i.TransitionProps,gc),k=W(i,vc),A=null!=(n=null==x?void 0:x.paper)?n:g,L=y.useRef(),I=Zr(L,A.ref),T=U({},i,{anchorOrigin:l,anchorReference:d,elevation:f,marginThreshold:m,externalPaperSlotProps:A,transformOrigin:E,TransitionComponent:C,transitionDuration:S,TransitionProps:_}),P=(e=>{const{classes:t}=e;return bo({root:["root"],paper:["paper"]},bc,t)})(T),M=y.useCallback(()=>{if("anchorPosition"===d)return c;const e=Sc(s),t=(e&&1===e.nodeType?e:Ur(L.current).body).getBoundingClientRect();return{top:t.top+xc(t,l.vertical),left:t.left+Ec(t,l.horizontal)}},[s,l.horizontal,l.vertical,c,d]),O=y.useCallback(e=>({vertical:xc(e,E.vertical),horizontal:Ec(e,E.horizontal)}),[E.horizontal,E.vertical]),j=y.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=O(t);if("none"===d)return{top:null,left:null,transformOrigin:Cc(n)};const r=M();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=Wr(Sc(s)),u=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>u){const e=a-u;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Cc(n)}},[s,d,M,O,m]),[$,N]=y.useState(b),D=y.useCallback(()=>{const e=L.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,N(!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=Hr(()=>{D()}),t=Wr(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,b,D]);let z=S;"auto"!==S||C.muiSupportAuto||(z=void 0);const B=h||(s?Ur(Sc(s)).body:void 0),F=null!=(r=null==v?void 0:v.root)?r:wc,G=null!=(o=null==v?void 0:v.paper)?o:Rc,H=Eo({elementType:G,externalSlotProps:U({},A,{style:$?A.style:U({},A.style,{opacity:0})}),additionalProps:{elevation:f,ref:I},ownerState:T,className:yr(P.paper,null==A?void 0:A.className)}),V=Eo({elementType:F,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:B,open:b},ownerState:T,className:yr(P.root,p)}),{slotProps:q}=V,Y=W(V,yc);return Ut.jsx(F,U({},Y,!go(F)&&{slotProps:q,disableScrollLock:R},{children:Ut.jsx(C,U({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),D()},onExited:()=>{N(!1)},timeout:z},_,{children:Ut.jsx(G,U({},H,{children:u}))}))}))});function kc(e){return Cr("MuiMenu",e)}Sr("MuiMenu",["root","paper","list"]);const Ac=["onEntering"],Lc=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ic={vertical:"top",horizontal:"right"},Tc={vertical:"top",horizontal:"left"},Pc=la(_c,{shouldForwardProp:e=>sa(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mc=la(Rc,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Oc=la(mc,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),jc=y.forwardRef(function(e,t){var n,r;const o=Sa({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=W(o.TransitionProps,Ac),E=W(o,Lc),C=Io(),S=U({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:f,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return bo({root:["root"],paper:["paper"],list:["list"]},kc,t)})(S),R=i&&!l&&u,_=y.useRef(null);let k=-1;y.Children.map(a,(e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===k)&&(k=t))});const A=null!=(n=g.paper)?n:Mc,L=null!=(r=v.paper)?r:p,I=Eo({elementType:g.root,externalSlotProps:v.root,ownerState:S,className:[w.root,s]}),T=Eo({elementType:A,externalSlotProps:L,ownerState:S,className:w.paper});return Ut.jsx(Pc,U({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Ic:Tc,slots:{paper:A,root:g.root},slotProps:{root:I,paper:T},open:u,ref:t,transitionDuration:f,TransitionProps:U({onEntering:(e,t)=>{_.current&&_.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:S},E,{classes:h,children:Ut.jsx(Oc,U({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:_,autoFocus:i&&(-1===k||l),autoFocusItem:R,variant:b},c,{className:yr(w.list,c.className),children:a}))}))});function $c(e){return Cr("MuiMenuItem",e)}const Nc=Sr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Dc=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],zc=la(fs,{shouldForwardProp:e=>sa(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>U({},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"}},[`&.${Nc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Nc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Nc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Wo.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})`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Nc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Nc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${El.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${El.inset}`]:{marginLeft:52},[`& .${cc.root}`]:{marginTop:0,marginBottom:0},[`& .${cc.inset}`]:{paddingLeft:36},[`& .${ic.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&U({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${ic.root} svg`]:{fontSize:"1.25rem"}}))),Bc=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:u}=n,p=W(n,Dc),h=y.useContext(Nl),f=y.useMemo(()=>({dense:i||h.dense||!1,disableGutters:s}),[h.dense,i,s]),m=y.useRef(null);Nr(()=>{r&&m.current&&m.current.focus()},[r]);const b=U({},n,{dense:f.dense,divider:a,disableGutters:s}),g=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return U({},a,bo({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},$c,a))})(n),v=Zr(m,t);let x;return n.disabled||(x=void 0!==d?d:-1),Ut.jsx(Nl.Provider,{value:f,children:Ut.jsx(zc,U({ref:v,role:c,tabIndex:x,component:o,focusVisibleClassName:yr(g.focusVisible,l),className:yr(g.root,u)},p,{ownerState:b,classes:g}))})});function Fc(e){return Cr("MuiTab",e)}const Gc=Sr("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Hc=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Uc=la(fs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${dn(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Gc.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>U({},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,[`& > .${Gc.iconWrapper}`]:U({},"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,[`&.${Gc.selected}`]:{opacity:1},[`&.${Gc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Gc.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Gc.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Gc.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Gc.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)})),Wc=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiTab"}),{className:r,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}=n,x=W(n,Hc),E=U({},n,{disabled:o,disableFocusRipple:i,selected:f,icon:!!s,iconPosition:l,label:!!d,fullWidth:a,textColor:b,wrapped:v}),C=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e;return bo({root:["root",i&&a&&"labelIcon",`textColor${dn(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]},Fc,t)})(E),S=s&&d&&y.isValidElement(s)?y.cloneElement(s,{className:yr(C.iconWrapper,s.props.className)}):s;return Ut.jsxs(Uc,U({focusRipple:!i,className:yr(C.root,r),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?Ut.jsxs(y.Fragment,{children:[S,d]}):Ut.jsxs(y.Fragment,{children:[d,S]}),c]}))});var Vc=Aa(Ut.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),qc=Aa(Ut.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Yc(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Kc=["onChange"],Xc={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Zc(e){return Cr("MuiTabScrollButton",e)}const Jc=Sr("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Qc=["className","slots","slotProps","direction","orientation","disabled"],ed=la(fs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>U({width:40,flexShrink:0,opacity:.8,[`&.${Jc.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),td=y.forwardRef(function(e,t){var n,r;const o=Sa({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:s={},direction:l}=o,c=W(o,Qc),d=U({isRtl:Io()},o),u=(e=>{const{classes:t,orientation:n,disabled:r}=e;return bo({root:["root",n,r&&"disabled"]},Zc,t)})(d),p=null!=(n=a.StartScrollButtonIcon)?n:Vc,h=null!=(r=a.EndScrollButtonIcon)?r:qc,f=Eo({elementType:p,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),m=Eo({elementType:h,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return Ut.jsx(ed,U({component:"div",className:yr(u.root,i),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===l?Ut.jsx(p,U({},f)):Ut.jsx(h,U({},m))}))});function nd(e){return Cr("MuiTabs",e)}const rd=Sr("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),od=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],id=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,ad=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,sd=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},ld=la("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${rd.scrollButtons}`]:t.scrollButtons},{[`& .${rd.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>U({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${rd.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),cd=la("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>U({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"})),dd=la("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>U({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),ud=la("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>U({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})),pd=la(function(e){const{onChange:t}=e,n=W(e,Kc),r=y.useRef(),o=y.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Nr(()=>{const e=Hr(()=>{const e=r.current;i(),e!==r.current&&t(r.current)}),n=Wr(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}},[t]),y.useEffect(()=>{i(),t(r.current)},[t]),Ut.jsx("div",U({style:Xc},n,{ref:o}))})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),hd={},fd=y.forwardRef(function(e,t){const n=Sa({props:e,name:"MuiTabs"}),r=qi(),o=Io(),{"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=td,scrollButtons:g="auto",selectionFollowsFocus:v,slots:x={},slotProps:E={},TabIndicatorProps:C={},TabScrollButtonProps:S={},textColor:w="primary",value:R,variant:_="standard",visibleScrollbar:k=!1}=n,A=W(n,od),L="scrollable"===_,I="vertical"===m,T=I?"scrollTop":"scrollLeft",P=I?"top":"left",M=I?"bottom":"right",O=I?"clientHeight":"clientWidth",j=I?"height":"width",$=U({},n,{component:u,allowScrollButtonsMobile:p,indicatorColor:h,orientation:m,vertical:I,scrollButtons:g,textColor:w,variant:_,visibleScrollbar:k,fixed:!L,hideScrollbar:L&&!k,scrollableX:L&&!I,scrollableY:L&&I,centered:l&&!L,scrollButtonsHideMobile:!p}),N=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return bo({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},nd,l)})($),D=Eo({elementType:x.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:$}),z=Eo({elementType:x.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:$}),[B,F]=y.useState(!1),[G,H]=y.useState(hd),[V,q]=y.useState(!1),[Y,K]=y.useState(!1),[X,Z]=y.useState(!1),[J,Q]=y.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,te=y.useRef(null),ne=y.useRef(null),re=()=>{const e=te.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:mo(e,o?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==R){const e=ne.current.children;if(e.length>0){const t=e[ee.get(R)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},oe=Xr(()=>{const{tabsMeta:e,tabMeta:t}=re();let n,r=0;if(I)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=o?"right":"left",t&&e){const i=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(o?-1:1)*(t[n]-e[n]+i)}const i={[n]:r,[j]:t?t[j]:0};if(isNaN(G[n])||isNaN(G[j]))H(i);else{const e=Math.abs(G[n]-i[n]),t=Math.abs(G[j]-i[j]);(e>=1||t>=1)&&H(i)}}),ie=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=()=>{}){const{ease:i=Yc,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const d=()=>{c=!0},u=r=>{if(c)return void o(new Error("Animation cancelled"));null===s&&(s=r);const d=Math.min(1,(r-s)/a);t[e]=i(d)*(n-l)+l,d>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(u)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(u)}(T,te.current,e,{duration:r.transitions.duration.standard}):te.current[T]=e},ae=e=>{let t=te.current[T];I?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===fo()?-1:1),ie(t)},se=()=>{const e=te.current[O];let t=0;const n=Array.from(ne.current.children);for(let r=0;r<n.length;r+=1){const o=n[r];if(t+o[O]>e){0===r&&(t=e);break}t+=o[O]}return t},le=()=>{ae(-1*se())},ce=()=>{ae(se())},de=y.useCallback(e=>{Q({overflow:null,scrollbarWidth:e})},[]),ue=Xr(e=>{const{tabsMeta:t,tabMeta:n}=re();if(n&&t)if(n[P]<t[P]){const r=t[T]+(n[P]-t[P]);ie(r,{animation:e})}else if(n[M]>t[M]){const r=t[T]+(n[M]-t[M]);ie(r,{animation:e})}}),pe=Xr(()=>{L&&!1!==g&&Z(!X)});y.useEffect(()=>{const e=Hr(()=>{te.current&&oe()});let t;const n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{var n;null==(n=t)||n.unobserve(e)}),e.addedNodes.forEach(e=>{var n;null==(n=t)||n.observe(e)})}),e(),pe()},r=Wr(te.current);let o;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ne.current.children).forEach(e=>{t.observe(e)})),"undefined"!=typeof MutationObserver&&(o=new MutationObserver(n),o.observe(ne.current,{childList:!0})),()=>{var n,i;e.clear(),r.removeEventListener("resize",e),null==(n=o)||n.disconnect(),null==(i=t)||i.disconnect()}},[oe,pe]),y.useEffect(()=>{const e=Array.from(ne.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&L&&!1!==g){const n=e[0],r=e[t-1],o={root:te.current,threshold:.99},i=new IntersectionObserver(e=>{q(!e[0].isIntersecting)},o);i.observe(n);const a=new IntersectionObserver(e=>{K(!e[0].isIntersecting)},o);return a.observe(r),()=>{i.disconnect(),a.disconnect()}}},[L,g,X,null==c?void 0:c.length]),y.useEffect(()=>{F(!0)},[]),y.useEffect(()=>{oe()}),y.useEffect(()=>{ue(hd!==G)},[ue,G]),y.useImperativeHandle(s,()=>({updateIndicator:oe,updateScrollButtons:pe}),[oe,pe]);const he=Ut.jsx(ud,U({},C,{className:yr(N.indicator,C.className),ownerState:$,style:U({},G,C.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 n=t===R;return fe+=1,y.cloneElement(e,U({fullWidth:"fullWidth"===_,indicator:n&&!B&&he,selected:n,selectionFollowsFocus:v,onChange:f,textColor:w,value:t},1!==fe||!1!==R||e.props.tabIndex?{}:{tabIndex:0}))}),be=(()=>{const e={};e.scrollbarSizeListener=L?Ut.jsx(pd,{onChange:de,className:yr(N.scrollableX,N.hideScrollbar)}):null;const t=L&&("auto"===g&&(V||Y)||!0===g);return e.scrollButtonStart=t?Ut.jsx(b,U({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:D},orientation:m,direction:o?"right":"left",onClick:le,disabled:!V},S,{className:yr(N.scrollButtons,S.className)})):null,e.scrollButtonEnd=t?Ut.jsx(b,U({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:z},orientation:m,direction:o?"left":"right",onClick:ce,disabled:!Y},S,{className:yr(N.scrollButtons,S.className)})):null,e})();return Ut.jsxs(ld,U({className:yr(N.root,d),ownerState:$,ref:t,as:u},A,{children:[be.scrollButtonStart,be.scrollbarSizeListener,Ut.jsxs(cd,{className:N.scroller,ownerState:$,style:{overflow:J.overflow,[I?"margin"+(o?"Left":"Right"):"marginBottom"]:k?void 0:-J.scrollbarWidth},ref:te,children:[Ut.jsx(dd,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===m?"vertical":null,className:N.flexContainer,ownerState:$,onKeyDown:e=>{const t=ne.current,n=Ur(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===m?"ArrowLeft":"ArrowUp",i="horizontal"===m?"ArrowRight":"ArrowDown";switch("horizontal"===m&&o&&(r="ArrowRight",i="ArrowLeft"),e.key){case r:e.preventDefault(),sd(t,n,ad);break;case i:e.preventDefault(),sd(t,n,id);break;case"Home":e.preventDefault(),sd(t,null,id);break;case"End":e.preventDefault(),sd(t,null,ad)}},ref:ne,role:"tablist",children:me}),B&&he]}),be.scrollButtonEnd]}))});function md(e){return Ut.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Ut.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function bd({fontSize:e="medium",children:t=null,className:n=""}={}){return Ut.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:n,children:t})}function gd(e={}){return Ut.jsx(bd,{...e,children:Ut.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Ut.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Ut.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 vd(e={}){return Ut.jsx(bd,{fontSize:"medium",...e,children:Ut.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ut.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Ut.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 yd(e){return Ut.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Ut.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 xd(e={}){return Ut.jsx(bd,{...e,children:Ut.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ut.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Ut.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Ut.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Ed(e={}){return Ut.jsx(bd,{fontSize:"medium",...e,children:Ut.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ut.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Ut.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Cd({className:e}){return Ut.jsx(bd,{fontSize:"small",className:e,children:Ut.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Ut.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Ut.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Ut.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Ut.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"}),Ut.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 Sd(e={}){return Ut.jsx(bd,{...e,children:Ut.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ut.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Ut.jsx("rect",{stroke:pa.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var wd=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:pa.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:pa.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Ut.jsx(md,{"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 ${pa.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:pa.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${pa.MISC_FOCUS_BORDER}`,borderRadius:ga,backgroundColor:pa.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 ${pa.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:pa.WHITE,color:pa.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:ga},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${pa.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:pa.GREYSCALE_0_15,backgroundColor:pa.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:pa.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${pa.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:pa.GREEN_PALE},"&:active":{backgroundColor:pa.GREEN_DARK},"&.Mui-focusVisible":{borderColor:pa.GREEN_PALE,boxShadow:`0 0 0 3px ${Fr(pa.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:pa.BLUE_PALE},"&:active":{backgroundColor:pa.BLUE_DARK},"&.Mui-focusVisible":{borderColor:pa.BLUE_PALE,boxShadow:`0 0 0 3px ${Fr(pa.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:ga,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:pa.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${pa.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:pa.GREYSCALE_0_42,backgroundColor:pa.GREYSCALE_100_60,"&:active":{backgroundColor:pa.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:pa.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${pa.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:pa.PURPLE,"&.Mui-focusVisible":{borderColor:pa.PURPLE,boxShadow:`0 0 0 3px ${Fr(pa.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:pa.GREEN,"&.Mui-focusVisible":{borderColor:pa.GREEN,boxShadow:`0 0 0 3px ${Fr(pa.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:pa.BLUE,"&.Mui-focusVisible":{borderColor:pa.BLUE,boxShadow:`0 0 0 3px ${Fr(pa.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:pa.ORANGE,"&.Mui-focusVisible":{borderColor:pa.ORANGE,boxShadow:`0 0 0 3px ${Fr(pa.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:pa.RED,"&.Mui-focusVisible":{borderColor:pa.RED,boxShadow:`0 0 0 3px ${Fr(pa.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:pa.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:pa.PURPLE_PALE},"&:active":{backgroundColor:pa.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:pa.PURPLE_PALE,boxShadow:`0 0 0 3px ${Fr(pa.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:pa.GREEN_PALE},"&:active":{backgroundColor:pa.GREEN_DARK},"&.Mui-focusVisible":{borderColor:pa.GREEN_PALE,boxShadow:`0 0 0 3px ${Fr(pa.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:pa.BLUE_PALE},"&:active":{backgroundColor:pa.BLUE_DARK},"&.Mui-focusVisible":{borderColor:pa.BLUE_PALE,boxShadow:`0 0 0 3px ${Fr(pa.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:pa.ORANGE_PALE},"&:active":{backgroundColor:pa.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:pa.ORANGE_PALE,boxShadow:`0 0 0 3px ${Fr(pa.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:pa.RED_PALE},"&:active":{backgroundColor:pa.RED_DARK},"&.Mui-focusVisible":{borderColor:pa.RED_PALE,boxShadow:`0 0 0 3px ${Fr(pa.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:pa.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:pa.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:ga,boxShadow:`inset 0 0 0 2px ${pa.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Ut.jsx(yd,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:ha,borderRadius:ga,color:pa.TEXT_PRIMARY,backgroundColor:pa.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:pa.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${pa.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:pa.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:pa.GREYSCALE_0_05,color:pa.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:pa.GREEN,borderColor:pa.GREEN},"&.MuiChip-outlinedInfo":{color:pa.BLUE,borderColor:pa.BLUE},"&.MuiChip-outlinedWarning":{color:pa.ORANGE,borderColor:pa.ORANGE},"&.MuiChip-outlinedError":{color:pa.RED,borderColor:pa.RED}},outlined:{border:`solid 1px ${pa.GREYSCALE_0_15}`,backgroundColor:pa.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:ga,boxShadow:"none",backgroundColor:pa.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:pa.GREEN,borderColor:pa.GREEN},outlinedSecondary:{color:pa.BLUE,borderColor:pa.BLUE},label:{fontFamily:Ca.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Ut.jsx(yd,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Ut.jsx(md,{"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:ga},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:ga,fontSize:fa,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:pa.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${pa.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:pa.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:pa.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:pa.GREYSCALE_0_05}}},popupIndicator:{borderRadius:ga,border:`solid 1px ${pa.GREYSCALE_0_15}`,color:pa.GREYSCALE_0_60,marginRight:0,width:ba,height:ba},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${pa.GREYSCALE_0_15}`},clearIndicator:{borderRadius:ga,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:pa.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:fa}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:ha,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:pa.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:pa.GREYSCALE_25,fontSize:ha,fontFamily:Ca.FONT_FAMILY,fontWeight:xa,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:pa.TEXT_PRIMARY},"&.Mui-error":{color:pa.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:pa.TEXT_SECONDARY,content:"'(optional)'",fontWeight:ya,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:pa.TEXT_SECONDARY,content:"'(required)'",fontWeight:ya,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:fa,lineHeight:"16px",backgroundColor:pa.WHITE,borderRadius:ga,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pa.GREYSCALE_0_05}`,borderColor:pa.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pa.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${pa.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${pa.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pa.RED}`,boxShadow:`0px 0px 0px 1px ${pa.RED}, inset 0 2px 0 0 ${pa.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pa.GREYSCALE_0_10}`,borderColor:pa.GREYSCALE_0_10,backgroundColor:pa.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:pa.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:pa.GREYSCALE_0_15,borderRadius:ga,boxShadow:`inset 0 2px 0 0 ${pa.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Ut.jsx(md,{...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:pa.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:pa.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:pa.GREYSCALE_0_03},"&:active":{backgroundColor:pa.GREYSCALE_0_10},"&:focus":{backgroundColor:pa.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${pa.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${pa.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:pa.GREYSCALE_0_30,"&:hover":{backgroundColor:pa.GREYSCALE_0_0,borderColor:pa.GREYSCALE_0_15},"& ~svg":{color:pa.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${pa.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:ga}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:pa.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${pa.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:pa.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:ha,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:ha,fontWeight:xa,color:pa.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:xa}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${pa.GREYSCALE_0_15}, 0px 0px 0px 1px ${pa.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Ut.jsx(Ed,{}),checkedIcon:Ut.jsx(vd,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:pa.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${pa.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:pa.GREEN_PALE,boxShadow:`0 0 0 3px ${Fr(pa.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:pa.BLUE_PALE,boxShadow:`0 0 0 3px ${Fr(pa.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:pa.GREYSCALE_0_20}},"&.Mui-disabled":{fill:pa.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Ut.jsx(Sd,{}),checkedIcon:Ut.jsx(gd,{}),indeterminateIcon:Ut.jsx(xd,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:ga,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:pa.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:pa.GREYSCALE_0_55,color:pa.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:pa.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:pa.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:pa.GREYSCALE_0_55,"&:hover":{color:pa.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:pa.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:pa.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:fa,color:pa.TEXT_PRIMARY,lineHeight:"16px",fontWeight:xa},secondary:{fontSize:ha,color:pa.GREYSCALE_45,fontWeight:ya,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:pa.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:ha,borderBottom:`solid 1px ${pa.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:fa,color:pa.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:pa.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:pa.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:pa.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:pa.RED}}},"&.Mui-focusVisible":{backgroundColor:pa.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:pa.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:pa.GREEN,height:"24px","&.Mui-disabled":{color:pa.GREYSCALE_0_15}},rail:{backgroundColor:pa.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${pa.GREYSCALE_0_05}`,borderRadius:ga,boxShadow:`inset 0px 0px 0px 1px ${pa.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${pa.GREYSCALE_0_05}`,borderRadius:ga},thumb:{height:"16px",width:"16px",borderRadius:ga,backgroundColor:pa.WHITE,boxShadow:`0px 1px 2px 0px ${pa.GREYSCALE_0_15}, 0px 0px 0px 1px ${pa.GREYSCALE_0_05}`,"&:hover":{borderRadius:ga,boxShadow:`0 2px 4px 0 ${pa.GREYSCALE_0_30}, 0 0 0 1px ${pa.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${pa.GREYSCALE_0_15}, 0 0 0 1px ${pa.GREYSCALE_0_06}, 0 0 0 2px ${pa.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${pa.GREYSCALE_0_15}, 0 0 0 1px ${pa.GREYSCALE_0_06}, 0 0 0 2px ${pa.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:pa.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:pa.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:pa.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:pa.GREYSCALE_0_15},markLabel:{color:pa.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:pa.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:pa.WHITE,color:pa.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:pa.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:pa.GREEN_PALE,boxShadow:`0 0 0 3px ${Fr(pa.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:pa.BLUE_PALE,boxShadow:`0 0 0 3px ${Fr(pa.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:pa.GREYSCALE_0_15,borderRadius:ga},thumb:{height:"16px",width:"16px",borderRadius:ga,backgroundColor:pa.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:xa,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${pa.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${pa.MISC_FOCUS_BORDER}`,backgroundColor:pa.GREYSCALE_0_03,borderRadius:ga},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:pa.GREYSCALE_25,"&.Mui-selected":{color:pa.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:ga,"&:hover":{backgroundColor:pa.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 ${pa.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${pa.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:ga,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:pa.GREYSCALE_0_05},"&:hover":{backgroundColor:pa.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${pa.GREYSCALE_85}`,borderRight:`1px solid ${pa.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:xa,backgroundColor:pa.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:pa.GREYSCALE_98,borderBottom:`1px solid ${pa.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${pa.GREYSCALE_85}`,borderTop:`1px solid ${pa.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:pa.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:pa.GREYSCALE_0_05,"&:hover":{backgroundColor:pa.GREYSCALE_0_03}},"&&:hover":{backgroundColor:pa.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Ut.jsx(Cd,{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 ${pa.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:fa,borderRadius:ga,padding:"7px 16px",border:`1px solid ${pa.GREYSCALE_0_15}`,backgroundColor:pa.GREYSCALE_100_60,color:pa.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:pa.GREYSCALE_0_10,border:`1px solid ${pa.GREYSCALE_0_30}`},"&:hover":{backgroundColor:pa.GREYSCALE_0_03,border:`1px solid ${pa.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:pa.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${pa.MISC_FOCUS_BORDER}`,border:`1px solid ${pa.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:pa.GREYSCALE_25,backgroundColor:pa.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:pa.GREYSCALE_0_10,border:`1px solid ${pa.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:ha,height:24,width:24,padding:7},sizeLarge:{fontSize:ma,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:fa,borderRadius:ga}}},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:pa.GREYSCALE_20},tooltip:{backgroundColor:pa.GREYSCALE_20,fontSize:ha,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const Rd=e=>({mode:"light",primary:{ultraLight:pa.GREEN_ULTRA_LIGHT,light:pa.GREEN_PALE,main:pa.GREEN,dark:pa.GREEN_DARK,extraDark:pa.GREEN_EXTRA_DARK,contrastText:pa.WHITE},secondary:{ultraLight:pa.BLUE_ULTRA_LIGHT,light:pa.BLUE_PALE,main:pa.BLUE,dark:pa.BLUE_DARK,extraDark:pa.BLUE_EXTRA_DARK,contrastText:pa.WHITE},error:{ultraLight:pa.RED_ULTRA_LIGHT,light:pa.RED_PALE,main:pa.RED,dark:pa.RED_DARK,extraDark:pa.RED_EXTRA_DARK,contrastText:pa.WHITE},warning:{ultraLight:pa.ORANGE_ULTRA_LIGHT,light:pa.ORANGE_PALE,main:pa.ORANGE,dark:pa.ORANGE_DARK,extraDark:pa.ORANGE_EXTRA_DARK,contrastText:pa.WHITE},success:{ultraLight:pa.GREEN_ULTRA_LIGHT,light:pa.GREEN_PALE,main:pa.GREEN,dark:pa.GREEN_DARK,extraDark:pa.GREEN_EXTRA_DARK,contrastText:pa.WHITE},info:{ultraLight:pa.BLUE_ULTRA_LIGHT,light:pa.BLUE_PALE,main:pa.BLUE,dark:pa.BLUE_DARK,extraDark:pa.BLUE_EXTRA_DARK,contrastText:pa.WHITE},text:{primary:pa.TEXT_PRIMARY,secondary:pa.TEXT_SECONDARY,disabled:pa.GREYSCALE_0_30},action:{hover:pa.GREYSCALE_0_03,hoverOpacity:.03,selected:pa.GREYSCALE_0_05,selectedOpacity:.05,focus:pa.MISC_FOCUS_BORDER},amethyst:{ultraLight:pa.WHITE,main:pa.PURPLE,light:pa.PURPLE_PALE,dark:pa.PURPLE_DARK,extraDark:pa.GREYSCALE_0_0,contrastText:pa.WHITE},background:{paper:pa.WHITE,default:pa.GREYSCALE_95},divider:pa.GREYSCALE_0_15});function _d(e){return Wi({components:wd(),palette:Rd(),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:va,fontWeightRegular:ya,fontWeightMedium:xa,fontWeightBold:Ea,htmlFontSize:fa,fontFamily:Ca.FONT_FAMILY,button:{fontWeight:xa,fontSize:fa,textTransform:"none"},body1:{fontSize:ma,lineHeight:"24px"},body2:{fontSize:fa,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ba,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:ma,fontWeight:xa,lineHeight:"16px"},h6:{fontSize:fa,fontWeight:xa,lineHeight:"16px"},caption:{color:pa.TEXT_SECONDARY},subtitle1:{fontSize:fa,color:pa.TEXT_SECONDARY},subtitle2:{fontSize:ha,color:pa.TEXT_SECONDARY}},shape:{borderRadius:ga},direction:e})}const kd=["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 Ad{embed;translator;charts={};constructor(e,t){this.embed=e,this.translator=t}getCharts=()=>(this.charts=(this.embed?.getRegisteredTypes()??[]).reduce((e,t)=>{if(!kd.includes(t.id)&&!1!==t.libraryInfo?.isLibraryItem&&!t.libraryInfo?.deprecated){const n=t;n.libraryInfo?.translationKey&&(n.libraryInfo.translation=this.translator.get(n.libraryInfo.translationKey)),e[t.id||t.type]=n}return e},{}),this.charts);getChart=e=>(this.charts[e]||this.getCharts(),this.charts[e])}var Ld,Id={};var Td=function(){if(Ld)return Id;Ld=1;var e=M;return Id.createRoot=e.createRoot,Id.hydrateRoot=e.hydrateRoot,Id}();const Pd=x((e,t)=>Ut.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:Ut.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"})})),Md="rgb(89, 89, 89)",Od=zt(qs)({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),jd=zt(qs)({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),$d=zt(Fl,{shouldForwardProp:e=>"width"!==e})(({width:e})=>({"&.MuiList-root":{paddingTop:0,paddingBottom:0,width:e||250,maxHeight:250,overflow:"auto"}})),Nd=zt(xs)({color:Md,fontSize:"12px",fontFamily:"inherit",lineHeight:"24px",margin:"0px"}),Dd=zt(lc)({"&.MuiListItemIcon-root":{minWidth:32,color:Md,marginRight:"0px"}}),zd=zt(Rl)({"&.MuiDivider-root":{borderBottom:"3px solid #595959"}}),Bd=zt(rl)({"&.MuiButton-contained":{backgroundColor:Md,color:"rgb(255, 255, 255)"},"&.MuiButton-outlined":{backgroundColor:"rgb(255, 255, 255)",borderColor:Md,color:Md,border:"1px solid rgb(179, 179, 179)","&:hover":{backgroundColor:"rgb(255, 255, 255)",border:`1px solid ${Md}`}}}),Fd=zt(ka)({width:"1em",height:"1em",paddingBottom:"8px"}),Gd=zt(ka)({width:"16px",height:"16px"}),Hd=({name:e,items:t,onSelect:n})=>Ut.jsxs(Ut.Fragment,{children:[Ut.jsx(rc,{dense:!0,children:Ut.jsx(Nd,{noWrap:!0,fontWeight:"bold",children:e})},e),Ut.jsx(zd,{}),t.map(e=>Ut.jsx(rc,{divider:!0,disablePadding:!0,disableGutters:!0,children:Ut.jsxs(Yl,{sx:{minHeight:"32px",height:"auto"},onClick:()=>{n(e)},disableRipple:!0,dense:!0,children:[e.iconPath?Ut.jsx(Dd,{children:e.IconDefinition?Ut.jsx(e.IconDefinition,{}):Ut.jsx(Gd,{viewBox:"0 0 16 16",children:Ut.jsx("path",{d:e.iconPath})})}):null,Ut.jsx(Nd,{noWrap:!0,title:e.translation||e.name,children:e.translation||e.name})]})},e.qExtendsId??e.name))]}),Ud=({categories:e,anchorEl:t,onClose:n,onSelect:r,width:o})=>{const[i,a]=_(""),s=!!t;return Ut.jsxs(_c,{open:s,anchorEl:t,onClose:()=>{a(""),n()},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{marginTop:"5px"},children:[Ut.jsx(Ns,{fullWidth:!0,onChange:e=>{a(e.target.value)},startAdornment:Ut.jsx($l,{position:"start",children:Ut.jsx(Pd,{})})}),Ut.jsx(zd,{}),Ut.jsx($d,{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&&Ut.jsx(Hd,{name:e.name,items:t,onSelect:r},e.name)})})]})},Wd=({anchorEl:e,onClose:t,dataHandler:n,translator:r,sharedContainerUtilities:o,width:i})=>{const[a,s]=_([]),[l,c]=_({});k(()=>{if(e&&n){(async()=>{const e=await n.getMasterVizList();s(e),c(n.getCharts())})().catch(()=>{})}},[e,n]);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,n=p.get(t);n?n.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})).toSorted((e,t)=>(e.translation||e.name).localeCompare(t.translation||t.name)),m=[{name:r.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})).toSorted((e,t)=>e.name.localeCompare(t.name))},{name:r.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||""})).toSorted((e,t)=>e.translation.localeCompare(t.translation))},{name:r.get("LayoutContainer.Object.CustomObjects"),items:f(u)}];for(const[e,t]of p)m.push({name:e,items:f(t)});return Ut.jsx(Ud,{categories:m,anchorEl:e,onSelect:e=>{if(!n)return;const{qExtendsId:r}=e;(r?n.addMasterObjectAsChild({initProps:{qExtendsId:r,qInfo:{qType:"undefined"}}}):n.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})},Vd=e=>{const t=Yd(e);return e.objects?.map(e=>{const{childRefId:n}=e;if(!n)return e;const r=t[n];return r?{...e,id:r}:e})??[]},qd=(e,t)=>e?.qChildList?.qItems?.find(e=>e?.qData?.childRefId===t),Yd=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qData?.childRefId;return e[n]=t?.qInfo?.qId,e},{});var Kd=qd,Xd=e=>{const t={...e};return t.objects=Vd(t),t},Zd=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qInfo?.qId;return e[n]=t.qData?.childRefId,e},{}),Jd=e=>e.objects.reduce((e,t)=>(e[t.childRefId]=t,e),{}),Qd=(e,t)=>{if(!e)return t;const n=qd(e,t);return n?.qInfo?.qId};class eu{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:n})=>{if(!this.activeContainer)return;const{dataHandler:r}=this.activeContainer;if(e?.qExtendsId){const{qExtendsId:o,qInfo:i}=e;return r?.addMasterObjectAsChild({initProps:{qExtendsId:o,qInfo:i},objectInitProps:t,children:n})}return r?.addVizAsChild({type:e?.visualization,initProps:e,objectInitProps:t,children:n})};deleteChild=async e=>{if(!this.activeContainer)return;const{dataHandler:t}=this.activeContainer;await(t?.deleteChildren([e]))};duplicateChild=async e=>{const{childRefId:t,...n}=e,r=this.getEngineId(t);if(!r)return;const o=await(this.app?.getObject(r));if(o&&this.activeContainer){const{sharedContainerUtilities:e}=this.activeContainer,t=await o.getFullPropertyTree(),r=t.qProperty,i=t.qChildren,a=await this.addChild({initProps:r,children:i,objectInitProps:n});a&&e?.setSelected([a.id])}};openAddChildPopover=e=>{if(this.activeContainer&&this.activeContainer.dataHandler&&this.data.muiTheme&&this.data.translator){const t=((e,t)=>{const n=e.getElementsByClassName(t);let r;return 0===n.length?(r=document.createElement("div"),r.className=t,e.appendChild(r)):r=n[0],Td.createRoot(r)})(this.activeContainer.element,"add-child-popover"),n=()=>{t.unmount()};t?.render(Ut.jsx(da,{theme:this.data.muiTheme,children:Ut.jsx(Wd,{translator:this.data.translator,anchorEl:e,dataHandler:this.activeContainer.dataHandler,onClose:n,width:220,sharedContainerUtilities:this.activeContainer.sharedContainerUtilities})}))}};getObject(e){const t=this.getEngineId(e);if(t)return this.activeContainer?.renderHelper.objectMap.get(t)}getChartIcon(e){const t=this.getEngineId(e);if(!t)return;const n=this.activeContainer?.renderHelper.getChildLayout(t),r=n?.qData.visualization;return r?this.activeContainer?.chartList?.getChart(r)?.libraryInfo?.icon:void 0}setModel=e=>{this.activeId=e.id};setLayout=e=>{this.layout=e};getLayout=()=>this.layout;getEngineId=e=>Qd(this.layout,e);setProperties=e=>{this.properties=e};canAddDimension=()=>!1;canAddMeasure=()=>!1;canColorBy=()=>!1;getDimensions=()=>[];getMeasures=()=>[];minDimensions=()=>0;minMeasures=()=>0;maxDimensions=()=>0;maxMeasures=()=>0}const tu="object",nu=["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"];const ru=e=>({value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}});function ou({theme:e,translator:t,id:n,path:r}){const o=()=>e.getStyle(n,r,"fontFamily");return{getDefaultValue:()=>o(),getOptions:()=>function({theme:e,translator:t,defaultValue:n}){const r=[],o=e.getStyle("","","fontFamilies");return Array.isArray(o)&&o.length?r.push(...new Set([n,...o.map(e=>e.split(",").map(e=>e.trim()).map(e=>e.replace(/\s+/g," ").trim()).filter(Boolean).join(", "))])):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFonts"),metaText:t.get("properties.theme"),groupHeader:!0},...r.map(e=>ru(e)),{value:"DefaultHeader",label:t.get("properties.allFonts"),metaText:t.get("properties.default"),groupHeader:!0},...nu.map(e=>ru(e))]}({theme:e,translator:t,defaultValue:o()})}}var iu=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"];const au=e=>({value:e,label:e,groupHeader:!1,disabled:!1});function su({theme:e,translator:t,id:n,path:r}){const o=()=>e.getStyle(n,r,"fontSize");return{getDefaultValue:()=>o(),getOptions:()=>function({theme:e,translator:t,defaultValue:n}){const r=[],o=e.getStyle("","","fontSizes");return Array.isArray(o)&&o.length?r.push(...new Set([n,...o])):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0},...r.map(e=>au(e)),{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0},...iu.map(e=>au(e))]}({theme:e,translator:t,defaultValue:o()})}}function lu({theme:e,translator:t,id:n,path:r}){return{fontFamily:ou({theme:e,translator:t,id:n,path:r}),fontSize:su({theme:e,translator:t,id:n,path:r})}}const cu=["__proto__","constructor"],du=e=>{if(cu.some(t=>e.includes(t)))throw new Error("font-resolver: Forbidden property.")};var uu,pu,hu,fu=function(){if(pu)return uu;pu=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return uu=function e(){var t,n,r,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(n in t)r=s(u,n),u!==(l=s(t,n))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,d=r&&o(r)?r:[]):d=r&&i(r)?r:{},a(u,{name:n,newValue:e(f,d,l)})):void 0!==l&&a(u,{name:n,newValue:l}));return u},uu}();function mu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function bu(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function gu(){}(hu=fu)&&hu.__esModule&&Object.prototype.hasOwnProperty.call(hu,"default")&&hu.default;var vu=.7,yu=1/vu,xu="\\s*([+-]?\\d+)\\s*",Eu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Cu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Su=/^#([0-9a-f]{3,8})$/,wu=new RegExp(`^rgb\\(${xu},${xu},${xu}\\)$`),Ru=new RegExp(`^rgb\\(${Cu},${Cu},${Cu}\\)$`),_u=new RegExp(`^rgba\\(${xu},${xu},${xu},${Eu}\\)$`),ku=new RegExp(`^rgba\\(${Cu},${Cu},${Cu},${Eu}\\)$`),Au=new RegExp(`^hsl\\(${Eu},${Cu},${Cu}\\)$`),Lu=new RegExp(`^hsla\\(${Eu},${Cu},${Cu},${Eu}\\)$`),Iu={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 Tu(){return this.rgb().formatHex()}function Pu(){return this.rgb().formatRgb()}function Mu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Su.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ou(t):3===n?new Du(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ju(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ju(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=wu.exec(e))?new Du(t[1],t[2],t[3],1):(t=Ru.exec(e))?new Du(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_u.exec(e))?ju(t[1],t[2],t[3],t[4]):(t=ku.exec(e))?ju(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Au.exec(e))?Uu(t[1],t[2]/100,t[3]/100,1):(t=Lu.exec(e))?Uu(t[1],t[2]/100,t[3]/100,t[4]):Iu.hasOwnProperty(e)?Ou(Iu[e]):"transparent"===e?new Du(NaN,NaN,NaN,0):null}function Ou(e){return new Du(e>>16&255,e>>8&255,255&e,1)}function ju(e,t,n,r){return r<=0&&(e=t=n=NaN),new Du(e,t,n,r)}function $u(e){return e instanceof gu||(e=Mu(e)),e?new Du((e=e.rgb()).r,e.g,e.b,e.opacity):new Du}function Nu(e,t,n,r){return 1===arguments.length?$u(e):new Du(e,t,n,null==r?1:r)}function Du(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function zu(){return`#${Hu(this.r)}${Hu(this.g)}${Hu(this.b)}`}function Bu(){const e=Fu(this.opacity);return`${1===e?"rgb(":"rgba("}${Gu(this.r)}, ${Gu(this.g)}, ${Gu(this.b)}${1===e?")":`, ${e})`}`}function Fu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Gu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Hu(e){return((e=Gu(e))<16?"0":"")+e.toString(16)}function Uu(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Vu(e,t,n,r)}function Wu(e){if(e instanceof Vu)return new Vu(e.h,e.s,e.l,e.opacity);if(e instanceof gu||(e=Mu(e)),!e)return new Vu;if(e instanceof Vu)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Vu(a,s,l,e.opacity)}function Vu(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function qu(e){return(e=(e||0)%360)<0?e+360:e}function Yu(e){return Math.max(0,Math.min(1,e||0))}function Ku(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}mu(gu,Mu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Tu,formatHex:Tu,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Wu(this).formatHsl()},formatRgb:Pu,toString:Pu}),mu(Du,Nu,bu(gu,{brighter(e){return e=null==e?yu:Math.pow(yu,e),new Du(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?vu:Math.pow(vu,e),new Du(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Du(Gu(this.r),Gu(this.g),Gu(this.b),Fu(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:zu,formatHex:zu,formatHex8:function(){return`#${Hu(this.r)}${Hu(this.g)}${Hu(this.b)}${Hu(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Bu,toString:Bu})),mu(Vu,function(e,t,n,r){return 1===arguments.length?Wu(e):new Vu(e,t,n,null==r?1:r)},bu(gu,{brighter(e){return e=null==e?yu:Math.pow(yu,e),new Vu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?vu:Math.pow(vu,e),new Vu(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Du(Ku(e>=240?e-240:e+120,o,r),Ku(e,o,r),Ku(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Vu(qu(this.h),Yu(this.s),Yu(this.l),Fu(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=Fu(this.opacity);return`${1===e?"hsl(":"hsla("}${qu(this.h)}, ${100*Yu(this.s)}%, ${100*Yu(this.l)}%${1===e?")":`, ${e})`}`}}));const Xu=Math.PI/180,Zu=180/Math.PI,Ju=.96422,Qu=.82521,ep=4/29,tp=6/29,np=3*tp*tp,rp=tp*tp*tp;function op(e){if(e instanceof ip)return new ip(e.l,e.a,e.b,e.opacity);if(e instanceof dp)return up(e);e instanceof Du||(e=$u(e));var t,n,r=cp(e.r),o=cp(e.g),i=cp(e.b),a=ap((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=ap((.4360747*r+.3850649*o+.1430804*i)/Ju),n=ap((.0139322*r+.0971045*o+.7141733*i)/Qu)),new ip(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ip(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ap(e){return e>rp?Math.pow(e,1/3):e/np+ep}function sp(e){return e>tp?e*e*e:np*(e-ep)}function lp(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function cp(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function dp(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function up(e){if(isNaN(e.h))return new ip(e.l,0,0,e.opacity);var t=e.h*Xu;return new ip(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}mu(ip,function(e,t,n,r){return 1===arguments.length?op(e):new ip(e,t,n,null==r?1:r)},bu(gu,{brighter(e){return new ip(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ip(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,n=isNaN(this.b)?e:e-this.b/200;return new Du(lp(3.1338561*(t=Ju*sp(t))-1.6168667*(e=1*sp(e))-.4906146*(n=Qu*sp(n))),lp(-.9787684*t+1.9161415*e+.033454*n),lp(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),mu(dp,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof dp)return new dp(e.h,e.c,e.l,e.opacity);if(e instanceof ip||(e=op(e)),0===e.a&&0===e.b)return new dp(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Zu;return new dp(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new dp(e,t,n,null==r?1:r)},bu(gu,{brighter(e){return new dp(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new dp(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return up(this).rgb()}}));var pp=e=>()=>e;function hp(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):pp(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?hp:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):pp(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Nu(e)).r,(t=Nu(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=hp(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var fp="center",mp="bottom";function bp(e,t,n){if(void 0===e||void 0===t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(void 0===o[t])return n;o=o[t]}return o}[{key:"NoDataExist",alignment:fp,condition:({layoutService:e})=>{if(!e)return!1;const{x:t,y:n}=e.meta.size;return t*n===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:fp,condition:({layoutService:e})=>!!e&&e.getHyperCubeValue("qMeasureInfo").every(e=>"NaN"===e.qMin&&"NaN"===e.qMax)},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:fp,condition:({layoutService:e})=>{if(!e)return!1;const{isContinuous:t}=e.meta;if(!t)return!1;const n=e.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:fp},{key:"DataRangeIncludingZero",alignment:mp},{key:"LimitedData",alignment:mp},{key:"NegativeOrZeroValues",alignment:mp}].reduce((e,t)=>(e[t.key]=t,e),{});const gp=["__proto__","constructor"];function vp(e,t,n){if(void 0===e||void 0===t)return;const r=t.split("."),o=r[r.length-1];if(gp.some(e=>r.includes(e)))return;let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0===i[t]&&(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n?i[o]=n:delete i[o]}function yp(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function xp(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Cp)):void 0===t&&(t=Ep);for(var n,r,o,i,a,s=new Rp(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new Rp(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(wp)}function Ep(e){return e.children}function Cp(e){return Array.isArray(e)?e[1]:null}function Sp(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function wp(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Rp(e){this.data=e,this.depth=this.height=0,this.parent=null}var _p;Rp.prototype=xp.prototype={constructor:Rp,count:function(){return this.eachAfter(yp)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},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(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return xp(this).eachBefore(Sp)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},_p=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 n,r,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(n=(t="-"===(e=e.substring(h,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[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"!==(r=t.join(""))&&""!==r||(n=!1),f+(n?"-":"")+r+x}},_p({exports:{}});const Ap="'Source Sans Pro', 'Arial', 'sans-serif'",Lp="#333333",Ip="#595959",Tp="#737373",Pp="#cccccc",Mp="#e6e6e6";function Op(e){const t={};return[...e,["","","color"],["object","","fontFamily"],["object","axis.label.name","color",Ip],["object","axis.label.name","fontFamily",Ap],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",Pp],["object","axis.line.minor","color",Mp],["object","axis.title","color"],["object","axis.title","fontFamily",Ap],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",Mp],["object","grid.line.major","color",Pp],["object","grid.line.minor","color",Mp],["object","label.value","color",Ip],["object","label.value","fontFamily",Ap],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",Ip],[!1,"label.value","lightColor",Mp],["object","outOfRange","color","#999"],["object","legend.title","color",Lp],["object","legend.title","fontFamily",Ap],["object","legend.title","fontSize","15px"],["object","legend.label","color",Ip],["object","legend.label","fontFamily",Ap],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",Lp],["object","referenceLine.label.name","fontFamily",Ap],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",Mp],["object","referenceLine.outOfBounds","fontFamily",Ap],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",Tp,e=>"transparent"===e?Tp:e]].reduce((e,n)=>{const r=`${n[0]}-${n[1]}-${n[2]}}`;return t[r]||(t[r]=!0,e.push(n)),e},[]).sort((e,t)=>(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0))}const jp="object",$p=e=>e;function Np({theme:e,id:t,transform:n,extend:r,matrix:o}){const i={},a=n.reduce((e,t)=>{const[n,r]=t;return e[n]=r,e},{});return o.forEach(n=>{const[r,o,s,l,c=e=>e]=n,d=function({theme:e,base:t,path:n,attribute:r,defaultValue:o}){if(!e||!1===t)return o;const i=e.getStyle(t,n,r);return void 0===i?o:i}({theme:e,base:r===jp&&t?`${jp}.${t}`:r,path:o,attribute:s,defaultValue:l}),u=(a[`${o}.${s}`]||$p)(c(d));yp(i,[o,s].filter(Boolean).join("."),u)}),r.forEach(e=>{const[t,n]=e;yp(i,t,n)}),i}const zp={qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",containerChildId:"/containerChildId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition",visible:"/visible"}};function Dp(e){if(!e.objects)return{};const t=Qd(e);return{container_id:e.qInfo.qId,objects:e.qChildList.qItems.map(n=>({chart_type:n.qData.visualization,chart_id:n.qInfo.qId,chart_isMaster:!!n.qData.qExtendsId,tab_isVisible:0!==t[n.qData.childRefId]?.condition&&!1!==t[n.qData.childRefId]?.visible,tab_isActive:n.qData.childRefId===e.cachedTabId}))}}const Bp=({ref:e,theme:t,change:n})=>({component:"inline-wrapper",items:{bgColorDropdown:{ref:`${e}.useColorExpression`,width:9,component:"dropdown",change(t){(gp(t,`${e}.color`)||gp(t,`${e}.colorExpression`))&&(yp(t,`${e}.color`,void 0),yp(t,`${e}.colorExpression`,void 0)),n?.(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=>!gp(t,`${e}.useColorExpression`),disableNone:!1,defaultValue:()=>({color:t?.getStyle("object.tabbedContainer",e,"color")??"none"}),showAlpha:!0,change:e=>{n?.(e)}},bgColorExpression:{component:"input-field-expression",ref:`${e}.colorExpression`,show:t=>gp(t,`${e}.useColorExpression`)}}}),Fp=({theme:e})=>({bgColorAllWrapper:Bp({ref:"background.unselected"}),selectedTab:{translation:"properties.chartType.selected",component:"text"},bgColorSelectedWrapper:Bp({ref:"background.selected"}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:Bp({ref:"background.hover",theme:e,change:e=>{yp(e,"indicator.hover.color",gp(e,"background.hover.color")),yp(e,"indicator.hover.useColorExpression",gp(e,"background.hover.useColorExpression"))}})},show:(e,t)=>"left"===t.layout.orientation}}),Gp=({paths:e,fontResolver:t,theme:n})=>{const r=`${e.theme}.fontSize`;return{fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.size`,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r),show:e=>!1!==e.icon?.show},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:n.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}}},Hp=({theme:e})=>({colorWrapper:Bp({ref:"indicator.selected",theme:e}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:Bp({ref:"indicator.hover",theme:e,change:e=>{yp(e,"background.hover.color",gp(e,"indicator.hover.color")),yp(e,"background.hover.useColorExpression",gp(e,"indicator.hover.useColorExpression"))}})},show:(e,t)=>"left"!==t.layout.orientation}}),Up=({paths:e,fontResolver:t,theme:n})=>{const r=`${e.theme}.fontFamily`,o=`${e.theme}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e.ref}.fontFamily`,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r),change:(e,t,n)=>{const r=e.label?.fontFamily,o=(e=>{const t=[];return e.objects.forEach(e=>{const n=e.components?.find(e=>"tab"===e.key),r=n?.label?.fontFamily;r&&-1===t.indexOf(r)&&t.push(r)}),t})(n);r&&-1===o.indexOf(r)&&o.push(r),n.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:n.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}}},Wp=({ref:e,key:t,fontResolver:n,theme:r})=>({translation:"Object.Container.Props.Label",component:"panel-section",items:{label:{component:"items",ref:e,key:t,items:Up({paths:{ref:"label",theme:"label.value"},fontResolver:n,theme:r})}}}),Vp=({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]}}}}}),qp=({theme:e,ref:t,key:n})=>({translation:"Object.TabbedContainer.Indicator",component:"panel-section",items:{indicator:{component:"items",ref:t,key:n,items:Hp({theme:e})}}}),Yp=({ref:e,key:t,fontResolver:n,theme:r})=>({translation:"properties.icon",component:"panel-section",items:{icon:{component:"items",ref:e,key:t,items:Gp({paths:{ref:"icon",theme:"icon.value"},fontResolver:n,theme:r})}},show:(e,{layout:t})=>t.showIcons}),Kp=({theme:e,ref:t,key:n})=>({translation:"Object.OrgChart.BackgroundColor",component:"panel-section",items:{background:{component:"items",ref:t,key:n,items:"tab"===n?{bgColorWrapper:Bp({ref:"background"})}:Fp({theme:e})}}}),Xp=({fontResolver:e,theme:t})=>{const n="components",r="tab";return{component:"styling-panel",chartTitle:"Object.Container",tabTitle:"scripteditor.dataconnectors.delimiter.tab",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:n,items:{label:Wp({ref:n,key:r,fontResolver:e,theme:t}),width:{...Vp({ref:n,key:r}),show:(e,{layout:t})=>"left"!==t.orientation},icon:Yp({ref:n,key:r,fontResolver:e,theme:t}),background:Kp({ref:n,key:r,theme:t})}}},Zp={ref:"label",type:"string",translation:"Object.Container.Props.Label",defaultValue:"",expression:"optional"},Jp={ref:"condition",translation:"Object.Container.Props.ShowCondition",component:"expression",defaultValue:{qValueExpression:{qExpr:""}},expressionType:"ValueExpression",expression:"always"},Qp=(e,t)=>"object"==typeof e.label?t.objects.find(t=>t.childRefId===e.childRefId)?.label||e.label.qValueExpression.qExpr:e.label,eh=e=>({component:"button",translation:"Object.Container.Props.EditProperties",disabled:(e,t)=>{const n=t.getLayout(),r=Xd(n,e.childRefId)?.qMeta;return!r?.privileges?.includes("update")||!n.permissions?.update},action(t,n,{app:r}){const{sense:o}=e.env.anything,i=n.getEngineId(t.childRefId);i&&(o.propertyPanel.show({id:i,app:r,parent:"current",headerLabel:Qp(t,n.getLayout())}),n.setSelectedChild([i]))}}),th=e=>{const{sense:t}=e.env.anything;return{label:Zp,condition:Jp,styling:Xp({fontResolver:e.fontResolver,theme:t?.theme}),editProperties:eh(e)}},nh={translation:"Object.Container.Props.Chart",component:"text",show:e=>e.objects?e.objects.length<=1:e.children.length<=1},rh={translation:"Common.Charts",component:"text",show:e=>e.objects?e.objects.length>1:e.children.length>1},oh=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,n){const r=document.querySelector(".pp-toplist-add-button");null!==r&&n.openAddChildPopover(r)},remove(e,t,n){n.deleteChild(e.childRefId).catch(()=>{})},items:th(e)}),ih=e=>({type:"items",translation:"Object.Container.Props.Content",items:{chartLabel:nh,chartsLabel:rh,chartList:oh(e)}}),ah={type:"boolean",translation:"Object.Container.Props.ShowTabs",ref:"showTabs",defaultValue:!0,component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sh={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},lh={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},ch={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},dh={type:"string",translation:"Object.Container.Props.DefaultTab",ref:"defaultTabId",component:"dropdown",defaultValue:void 0,options(e,t){const n=t.getLayout();return n?n.objects.map(e=>({translation:e.label,value:e.childRefId})):[]},change(e,t){const n=eu(t.getLayout(),e.defaultTabId);n&&t.setSelectedChild([n])},show:e=>e.objects.length>0},uh={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},ph=({fontResolver:e,theme:t})=>{const n="components",r="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:Wp({ref:n,key:r,fontResolver:e,theme:t}),width:Vp({ref:n,key:r}),indicator:qp({ref:n,key:r,theme:t}),icon:Yp({ref:n,key:r,fontResolver:e,theme:t}),background:Kp({ref:n,key:r,theme:t})}}},hh={items:{details:{show:e=>!0===e.showDetails}}},fh=e=>{const{sense:t}=e.env.anything;return{type:"items",translation:"properties.presentation",grouped:!0,items:{stylingPanel:ph({fontResolver:e.fontResolver,theme:t?.theme}),container:{type:"items",items:{showTabs:ah,useDropdown:sh,useScrollButton:lh,showIcons:ch,orientation:uh,defaultTabId:dh}}}}},mh=e=>({uses:"settings",items:{general:hh,presentation:fh(e)}}),bh=e=>({type:"items",component:"accordion",items:{content:ih(e),settings:mh(e)}}),gh=e=>{const{sense:t}=e.env.anything,n=function({theme:e,translator:t,config:n={}}){const{id:r,paths:o}=function({config:e={}}){const{id:t,paths:n}=e;return{id:void 0===t?nu:`${nu}.${t}`,paths:Array.isArray(n)?n:[]}}({config:n}),i={};o.forEach(n=>{const o=n.split(".");uu(o);let a=i;for(let i=0;i<o.length;i++){const s=o[i];i===o.length-1?a[s]=cu({theme:e,translator:t,id:r,path:n}):void 0===a[s]&&(a[s]={}),a=a[s]}});const a=e=>{const t=e.split(".");uu(t);let n=i;for(let r=0;r<t.length;r++){const o=t[r];if(void 0===n[o])throw new Error(`font-resolver: Path '${e}' could not be resolved.`);n=n[o]}return n};return i.getDefaultValue=e=>a(e).getDefaultValue(),i.getOptions=e=>a(e).getOptions(),i}({theme:t?.theme,translator:e.env.translator,flags:e.env.flags,config:{id:"tabbedContainer",paths:["label.value","icon.value"]}}),r=function(e){return{async getDropOptions(e,t,n){const{item:r}=t,o=e.getCreatePropertyHandler();if(o.setModel(e.model),"state"===t.item.type){const r=await e.model.getProperties();return o.setProperties(r),o.setLayout(e.model?.layout),this.getDropStateOptions(t,o,e.model,n)}if("visualization"===r.type)return t.menu.addItem({translation:["Object.Container.DropItem",r.name],tid:"addvisualization",select(){o.addChild({initProps:{qExtendsId:r.id,qInfo:{qType:"undefined"}}})?.then(e=>{e&&o.setSelectedChild([e.id])})}}),void n();const i=await t.item.getDropOption(t.item);"newObject"===i?.id&&t.menu.addItem({translation:["Object.Container.DropItem",r.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])})}}),n()},async addChild(t,n){const{model:r}=this,o=new tu({app:r.app,data:e.propertyHandlerData});return o.setModel(r),{childModel:await o.addChild({initProps:t,children:n}),handler:o}},canReceive(e){if(this.model.layout.qExtendsId)return!1;if("libraryitem"===e.type){const{item:t}=e;if("template"===t.type&&Ad.includes(t.template))return!1;if("visualization"===t.type&&Ad.includes(t.visualization))return!1}return"gridcell"!==e.type||!Ad.includes(e.cell.model.layout.visualization)}}}(e);return{definition:bh({...e,fontResolver:n}),support:{snapshot:!1,export:!0,sharing:!1,exportData:!1,viewData:!1},hidePatchPanel:()=>!0,getCreatePropertyHandler:t=>new tu({app:t,data:e.propertyHandlerData}),...r,addChild:async function(e,t){const{childModel:n,handler:o}=await r.addChild.apply(this,[e,t]);n&&o.setSelectedChild([n.id])},migrate:{properties:(e,t)=>((async(e,t)=>{if(!e.objects){const{objects:n,defaultTabId:r,components:o,orientation:i,showDetails:a}=await t.getEffectiveProperties(),s=await t.getFullPropertyTree();if(!s.qProperty.objects&&n){const l=[];s.qChildren.forEach(e=>{const n=e.qProperty;if(n.qInfo.qId){const r=async r=>{const o=await t.getChild(r),i=await o.getEffectiveProperties();return{...e,qProperty:{...n,childRefId:i.childRefId}}};l.push(r(n.qInfo.qId))}});const c=await Promise.all(l),d={...e,objects:n,defaultTabId:r??"",components:o,qChildListDef:zp,orientation:i,showDetails:a};t.clearSoftPatches(),await t.setFullPropertyTree({...s,qProperty:d,qChildren:c})}}})(e,t),e)},exportProperties:null,importProperties:(e,t)=>{const n={...e.properties};return"masterobject"!==e.properties.qInfo.qType&&(n.qInfo.qType=t.qInfo.qType),n.visualization=t.visualization,{qProperty:n,qChildren:e.qChildren}},extendMetrics:Dp}},vh=({propertyHandlerData:e,element:r,sharedContainerUtilities:o,translator:i,containerId:a,dataHandler:s,renderHelper:l,chartList:c})=>{const d=t();a&&e.sync({containerId:a,element:r,sharedContainerUtilities:o,translator:i,dataHandler:s,renderHelper:l,chartList:c}),n(()=>{e.setMuiTheme(d.direction)},[d.direction,e]),n(()=>()=>{a&&e.destroy(a)},[a,e,d.direction])},yh=e=>e.reduce((e,{id:t,data:n})=>(n&&(e[t]=n),e),{}),xh=async e=>{const t=[];for(const[n,r]of e){const e={id:n,data:void 0},o=r;t.push(o.getViewState().then(e=>({id:n,data:e})).catch(()=>e))}const n=await Promise.all(t);return{viewStates:yh(n)}},Eh=async e=>{const t=[];for(const[n,r]of e){const e={id:n,data:void 0},o=r;o.getSnapshotLayout?t.push(o.getSnapshotLayout().then(e=>({id:n,data:e})).catch(()=>e)):o.takeSnapshot&&t.push(o.takeSnapshot().then(e=>({id:n,data:e?.layout})).catch(()=>e))}const n=await Promise.all(t);return yh(n)},Ch=(e,t)=>(r(async n=>{const r=n,{snapshotData:o}=r;if(o){const n=Zd(r),i=t(e.objectMap,n),[a,s]=await Promise.all([Eh(i.objectMap),xh(i.objectMap)]);o.objectsData={layouts:a},r.objects=i.objects,o.viewState=s}return n}),{getViewState:()=>xh(e.objectMap)});let Sh=function(e){return e.OPEN_CONTEXT_MENU="shift+F10",e.ESCAPE="Escape",e.SPACE=" ",e.ENTER="Enter",e.BACKSPACE="Backspace",e.DELETE="Delete",e}({}),wh=function(e){return e.KEY_DOWN="keydown",e.FOCUS_OUT="focusout",e}({}),Rh=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 kh=`& .${Rh.TAB}.${Rh.TAB_EXTRA_PRIO}, .${Rh.TAB}.${Rh.ACTIVE_TAB}`,_h=`& .${Rh.TAB}.${Rh.TAB_EXTRA_PRIO}:hover`,Ah=`& .${Rh.TAB_LABEL}`,Lh=`& .${Rh.TABS_ICON} svg`,Ih=`& .${Rh.TAB_WRAPPER}`,Th=`& .${Rh.TAB_INDICATOR}`,Ph=e=>e.getElementsByClassName(Rh.ACTIVE_TAB)?.[0],Mh=e=>e.getElementsByClassName(Rh.ACTIVE_TAB_PANEL)?.[0],Oh=({element:e,setAccessibility:t,accessibility:r,renderHelper:s,interactions:l,env:c,models:d})=>{const{modifiedLayout:{showTabs:u,objects:p,orientation:h},translator:f}=d;n(()=>{(()=>{const t="top"===h?f.get("TabContainer.Navigation.Horizontal"):f.get("TabContainer.Navigation.Vertical"),n=((e,t)=>e.map(e=>e.label||t.get("TabContainer.Object.Untitled")).join(", "))(p,f);e.setAttribute("aria-label",f.get("TabContainer.Object.Description",[n,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 Sh.ESCAPE:t.stopPropagation(),b.blur?.(!0);break;case Sh.ENTER:case Sh.SPACE:{t.stopPropagation();const n=t.target;n?.classList.contains(Rh.ACTIVE_TAB)&&Mh(e)?.focus();break}}},[e,b]),y=i(()=>t=>{const n=t.shiftKey?`shift+${t.key}`:t.key,r=s.objectMap.values().next().value,o=s.objectApis.values().next().value;switch(n){case Sh.ESCAPE:{const n=Ph(e);m?(({event:e,objectApi:t,activeTab:n})=>{e.stopPropagation(),t?.viewDataToggled&&t.support?.("viewData")?t.toggleDataView():n?.focus()})({event:t,objectApi:o,activeTab:n}):(({event:e,objectApi:t,activeTab:n})=>{e.stopPropagation(),t?.viewDataToggled&&t.supportViewData?.()?t.toggleDataView?.():n?.focus()})({event:t,objectApi:r,activeTab:n});break}case Sh.ENTER:case Sh.SPACE:{const n=Mh(e);m?(({event:e,objectApi:t,activeTab:n})=>{if(!t)return;e.stopPropagation(),t.setOnBlurHandler?.(()=>{n?.focus(),t.setOnBlurHandler?.(void 0)}),!t.viewDataToggled&&t.support?.("viewData")?t.toggleDataView():t.toggleFocus?.(!0)})({event:t,objectApi:o,activeTab:n}):(({event:e,objectApi:t,activeTab:n})=>{if(!t)return;e.stopPropagation(),t.setOnBlurHandler?.(()=>{n?.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:r,activeTab:n});break}case Sh.OPEN_CONTEXT_MENU:t.stopPropagation(),r?.viewDataToggled||e!==document.activeElement&&(g(),e.focus())}},[e,g,m,s]),x=i(()=>e=>{const t=e.target;t?.classList.contains(Rh.ACTIVE_TAB_PANEL)?y(e):v(e)},[v,y]);n(()=>(r&&e.addEventListener(wh.KEY_DOWN,x),()=>{e.removeEventListener(wh.KEY_DOWN,x)}),[e,r,x]);const[E,C]=a(!1);n(()=>{E&&(C(!1),window.setTimeout(()=>((e=>e.getElementsByClassName(Rh.TAB_MENU)?.[0])(e)??Ph(e))?.focus(),0))},[e,E]),n(()=>{t(!1)},[l.edit,t]),n(()=>{const n=t=>{const n=t.relatedTarget;e?.contains(n)||n?.classList.contains(Rh.TAB_MENU_ITEM)||g?.()};return b.enabled&&b.active&&!l.edit&&(t(!0),C(!0),e.addEventListener(wh.FOCUS_OUT,n)),()=>{e.removeEventListener(wh.FOCUS_OUT,n)}},[b])},jh=e=>{const[t]=a(e);return[t,function(e){Object.assign(t,e)}]},$h=({isContainerActive:e,activeTabId:t,modifiedLayout:r,renderHelper:o,activeCharts:a,sharedContainerUtilities:s})=>{const l={modifiedLayout:r,activeTabId:t,renderHelper:o,isContainerActive:e},[c,d]=jh(l);d(l);const u=i(()=>()=>{const e=Jd(c.modifiedLayout);for(const[t,n]of c.renderHelper.objectMap.entries()){const r=c.isContainerActive&&c.activeTabId===e[t];"setIsActive"in n&&n.setIsActive(r)}},[c]);n(()=>{c.isContainerActive&&u()},[o.objectMap,u,c]),n(()=>{u()},[e,u]),(({activeCharts:e,onSetActiveCharts:t,canSetActiveChart:r=!0})=>{const[o,i]=jh({onSetActiveCharts:t});i({onSetActiveCharts:t}),n(()=>{if(!r)return;const t=e=>{o.onSetActiveCharts(e)};e.on("setActiveCharts",t);const n=e.getActiveCharts();return n.length>0&&t(n),()=>e.removeListener("setActiveCharts",t)},[e,o,r])})({activeCharts:a,onSetActiveCharts:e=>{if(0===e.length)return;const t=c.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t&&t!==c.activeTabId&&s.setSelected(e)}})},Nh={getChar(e){let t,n=e;return n>9?(t=65+n-10,t>90&&(t+=6)):n=`${n}`.charCodeAt(0),!t||[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(n+1):String.fromCharCode(t)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};const zh={qInfo:{qId:"MasterObjectList",qType:"MasterObjectList"},qAppObjectListDef:{qType:"masterobject",qData:{name:"/qMetaDef/title",labelExpression:"/labelExpression",visualization:"/visualization",tags:"/qMetaDef/tags"}}};class Dh{sessionObject;constructor(e){this.getOrCreateSessionObject(e).catch(()=>{})}getOrCreateSessionObject=async e=>{const t=zh.qInfo.qId;this.sessionObject=await e.getObject(t).catch(()=>e.createSessionObject(zh))};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=>!Ad.includes(e.visualization))}catch{return[]}}}let Bh=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 Fh{model;embed;app;undoRedoModel;chartList;masterVizList;mutex;constructor({embed:e,model:t,app:n,translator:r,mutex:o}){this.model=t,this.embed=e,this.app=n;const i=n;i&&i.getUndoInfoObject&&i.getUndoInfoObject().then(e=>{this.undoRedoModel=e}).catch(()=>{}),n&&(this.masterVizList=new Dh(n)),e&&r&&(this.chartList=new Ld(e,r)),this.mutex=o}rememberAsGroup=async e=>{let t;this.undoRedoModel&&(t=await this.undoRedoModel.startGroup());const n=await e();return t&&this.undoRedoModel&&await this.undoRedoModel.endGroup(t),n};generateProperties=async(e,t)=>await this.embed.generateProperties({type:e,properties:t});async addChild(e,t,n){if(this.model&&!Ad.includes(e.visualization))try{await this.mutex.lock();const{model:r}=this,o=async()=>{e.childRefId=Nh.id();const o=await r.createChild(e);if(o){const t=await r.getProperties();t.objects.unshift({childRefId:e.childRefId,...n,condition:{qValueExpression:{qExpr:""}}}),await r.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:n,children:r})=>{try{const o=await this.generateProperties(e,t);let i=n?.label||t?.title;if(!i){const n=this.getChart(t?.visualization),r=n?.libraryInfo;i=r?.translation||r?.name||e}const a={...n,label:i};return await this.addChild(o,r,a)}catch{return}};addMasterObjectAsChild=async({initProps:e,objectInitProps:t,children:n})=>{try{if(!e||!e.qExtendsId||!this.app)return;const r=await this.app.getObject(e.qExtendsId),o=await r.getProperties(),i=t?.label||o.title||o.qMetaDef.title,a={...e,qInfo:{qType:"childObject"}},s={...t,label:i};return await this.addChild(a,n,s)}catch{return}};deleteChildren=async e=>{const{model:t}=this;if(0===e.length||!t)return!1;try{await this.mutex.lock();const n=await t.getFullPropertyTree(),{qChildren:r,qProperty:o}=n,i=new Set(e);return n.qChildren=r.filter(({qProperty:e})=>{const t=e.childRefId;return!t||!i.has(t)}),n.qProperty.objects=o.objects.filter(e=>!i.has(e.childRefId)),await t.setFullPropertyTree(n),!0}catch{return!1}finally{this.mutex.unlock()}};moveChild=async(e,t)=>{if(this.model)try{await this.mutex.lock();const n=await this.model.getProperties(),{objects:r}=n,o=r.findIndex(e=>e.childRefId===t);let i=!1;switch(e){case Bh.TOP:{if(0===o)break;const e=r.splice(o,1)[0];r.unshift(e),i=!0;break}case Bh.BOTTOM:{if(o===r.length-1)break;const e=r.splice(o,1)[0];r.push(e),i=!0;break}case Bh.UP:{if(0===o)break;const e=r.splice(o,1)[0];r.splice(o-1,0,e),i=!0;break}case Bh.DOWN:{if(o===r.length-1)break;const e=r.splice(o,1)[0];r.splice(o+1,0,e),i=!0;break}}i&&await this.model.setProperties(n)}finally{this.mutex.unlock()}};getCharts=()=>this.chartList?.getCharts()||{};getMasterVizList=()=>this.masterVizList?.getMasterVisualizations()||Promise.resolve([]);getChart=e=>this.chartList?.getChart(e);getChartLabelById=(e,t)=>{const n=e?.qChildList?.qItems.find(e=>e.qInfo.qId===t);if(!n)return"";const{visualization:r,title:o}=n.qData;if(o)return o;const i=this.getChart(r);return i?.libraryInfo?.translation||r}}class Gh{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 Hh={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}},Uh={index:-1,color:"none",alpha:1},Wh=e=>{let t=parseFloat(e[1]),n=parseFloat(e[3]),r=parseFloat(e[5]);return t%=360,n/=100,r/=100,t=Math.max(0,Math.min(t,360)),n=Math.max(0,Math.min(n,1)),r=Math.max(0,Math.min(r,1)),{h:t,s:n,l:r,v:r}},Vh=(e,t,n,r,o=1)=>{let i,a,s,l;switch(n=Math.floor(n)){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]+r,a=l[1]+r,s=l[2]+r,i=Math.round(255*i),a=Math.round(255*a),s=Math.round(255*s),`rgba(${i},${a},${s},${o})`},qh=e=>{const{h:t,s:n,l:r}=Wh(e),o=e.length>7?parseFloat(e[7]):1,i=r<=.5?2*r*n:(2-2*r)*n,a=t/60,s=i*(1-Math.abs(a%2-1));return Vh(i,s,a,r-.5*i,o)},Yh={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 qh(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 qh(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:n,v:r}=Wh(e),o=r*n,i=t/60,a=o*(1-Math.abs(i%2-1));return Vh(o,a,i,r-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 n=e&&Hh[e.toLowerCase()];if(n){const e=void 0!==n.a?n.a:1;return`rgba(${n.r},${n.g},${n.b},${e})`}return"none"},getColor({style:e,defaultColor:t,theme:n}){const r=e?.color||Uh;let o;return o=e?.useColorExpression?Yh.resolveExpression(e):"string"==typeof r?r:n?.getColorPickerColor(r)||"",o&&"none"!==o?o:t}},Kh=()=>Ut.jsx(Gd,{viewBox:"0 0 16 16",children:Ut.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"})}),Xh=({libraryInfo:e,style:t,id:n})=>Ut.jsx("div",{style:t,"data-testid":"tab-chart-icon",id:n,className:Rh.TABS_ICON,children:Ut.jsx(e.IconDefinition,{})}),Zh=({style:e,id:t})=>Ut.jsx("div",{style:e,"data-testid":"tab-hidden-icon",id:t,children:Ut.jsx(Hd,{viewBox:"0 0 16 16",children:Ut.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"})})}),Jh=()=>Ut.jsx(Hd,{viewBox:"0 0 16 16",children:Ut.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"})}),Qh=la(td)({width:28,overflow:"hidden"}),ef=la(td)({height:28,width:"100%",overflow:"hidden",alignItems:"center","&::before":{visibility:"hidden"}}),tf=(e,t)=>e.find(e=>e.childRefId===t),nf=(e,t)=>!t.edit&&(0===e.condition||!1===e.visible),rf=e=>{const{objects:t,defaultTabId:n,cachedTabId:r}=e;return r||(n&&t.some(e=>e.childRefId===n)?n:t[0]?.childRefId||"")};class of{modifiedLayout;themeStyle;style;objectMap;activeTabId;theme;constructor({modifiedLayout:e,themeService:t}){this.modifiedLayout=e,this.activeTabId=rf(this.modifiedLayout),this.themeStyle=t.getStyles(),this.theme=t.getTheme(),this.objectMap=Qd(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 n=this.resolveComponentStyle({compPath:"width.unit",themePath:"tabWidth.unit",defaultValue:"%"});return{minWidth:`${t[0]}${n}`,maxWidth:`${t[1]}${n}`}};getTabWidth=e=>{const t=e?.value,n=e?.unit??"%";if(void 0===t||2!==t.length||"left"===this.modifiedLayout.orientation)return{};return{minWidth:`${t[0]}${n}`,maxWidth:`${t[1]}${n}`}};getColorStyle=(e,t=e)=>{const n=this.resolveComponentStyle({compPath:e,themePath:t});return Yh.getColor({style:n,theme:this.theme})??n};getTabBackgroundStyle=(e,t)=>{let n;if(this.activeTabId===e){const e=this.resolveComponentStyle({compPath:"background.selected",themePath:""});n=Yh.getColor({style:e,theme:this.theme})}return n??Yh.getColor({style:t,theme:this.theme})};createTabClasses=()=>this.modifiedLayout.objects?.reduce((e,t)=>{const n=t?.childRefId,r=t?.components?.find(e=>"tab"===e.key);return e[`#tab-${this.modifiedLayout.qInfo.qId}-${n}`]={textAlign:gp(r,"label.alignment"),backgroundColor:this.getTabBackgroundStyle(n,r?.background),...this.getTabWidth(r?.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:gp(r,"label.fontSize"),fontFamily:gp(r,"label.fontFamily"),color:Yh.getColor({style:gp(r,"label.color"),theme:this.theme})},e[`#tab-icon-${this.modifiedLayout.qInfo.qId}-${n} svg`]={height:gp(r,"icon.size"),color:Yh.getColor({style:gp(r,"icon.color"),theme:this.theme})},e},{});createTabsClasses=()=>({[Ah]:{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"})},[Lh]:{height:this.resolveComponentStyle({compPath:"icon.size",themePath:"icon.value.fontSize"}),color:this.getColorStyle("icon.color","icon.value.color")},[kh]:{textAlign:this.resolveComponentStyle({compPath:"label.alignment",themePath:"label.textAlignment"}),...this.getTabsWidth("top")},[_h]:{..."top"===this.modifiedLayout.orientation&&{borderBottomColor:this.getColorStyle("indicator.hover","indicator.hover.color")}},[Ih]:{...this.getTabsWidth("left"),backgroundColor:this.getColorStyle("background.unselected","")},[Th]:{backgroundColor:this.getColorStyle("indicator.selected","indicator.selected.color")}});createStyleClasses=()=>({...this.createTabsClasses(),...this.createTabClasses()});getStyleClasses(){return this.style}resolveComponentStyle=({key:e="tabs",compPath:t,themePath:n=t,defaultValue:r})=>{const o=this.modifiedLayout.components?.find(t=>t.key===e);return gp(o,t)??gp(this.themeStyle,n)??r};getTabStyle(e){return this.objectMap[e].components?.find(e=>"tab"===e.key)}}const af=()=>{const e=s(),n=l(),r=c(),o=d(),b=u(),g=p(),v=t(),y=h(),x=f(),E=function({theme:e,config:t={}}){const{id:n,resolve:r=[],transform:o=[],extend:i=[]}=t,a={theme:e,matrix:Op(r),styles:void 0};return a.styles=Np({theme:e,id:n,transform:o,extend:i,matrix:a.matrix}),{getStyles:()=>a.styles,getTheme:()=>a.theme,setTheme:e=>{a.theme=e,a.styles=Np({theme:e,id:n,transform:o,extend:i,matrix:a.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"]]}}),C=i(()=>new Ld(o,g),[o,g]),[S]=a(()=>new Gh(b?.id)),[w,R]=a(!1),k=i(()=>o&&b&&n?new Fh({embed:o,model:b,app:n,translator:g,mutex:S}):void 0,[o,b,n,g,S]),_=i(()=>Zd(r),[r]),A=i(()=>new of({modifiedLayout:_,themeService:E}),[_,E]);return i(()=>({app:n,modifiedLayout:_,embed:o,model:b,emitter:y,interactions:x,dataHandler:k,chartList:C,styleModel:A,mutex:S,options:v,accessibility:w,setAccessibility:R,translator:g,element:e}),[_,o,b,n,y,x,k,C,A,S,v,w,g,e])},sf=({dataHandler:e,modifiedLayout:t,translator:n,sharedContainerUtilities:r,Icon:o})=>{const[i,a]=k(void 0);if(!e||!t)return null;const s=!t.qExtendsId;return Ut.jsx($d,{children:Ut.jsxs(jd,{children:[Ut.jsx(o,{}),s?Ut.jsxs(Ut.Fragment,{children:[Ut.jsx(Fd,{sx:{width:250,height:32,fontFamily:"inherit"},className:"init-button",variant:i?"contained":"outlined",onClick:e=>{a(e.currentTarget)},"aria-label":n.get("LayoutContainer.EmptyList.AddContent"),disableRipple:!0,children:n.get("LayoutContainer.EmptyList.AddContent")}),Ut.jsx(Vd,{translator:n,anchorEl:i,dataHandler:e,onClose:()=>{a(void 0)},sharedContainerUtilities:r})]}):Ut.jsx(xs,{variant:"inherit",children:n.get("LayoutContainer.EmptyList.EmptyHint")})]})})};class lf{_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 dependencyData(){return this._dependencyData}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._dependencyData.options.onRenderStatusUpdate?.("Layout container rendering timeout reached after 90 seconds. Resolving anyway."),this.doResolve()},9e4),n=new Promise(t=>{e=t});this._resolver={promise:n,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){e.every(e=>this.rendered.has(e.id))&&(this._dependencyData.options.onRenderStatusUpdate?.("All layout container children rendered"),this.doResolve())}};syncObjects(e){const t=new Set,n=new Set([...Array.from(this.objectMap.keys()),...Array.from(this.objectApis.keys()),...this.rendered]),r=new Set(n);let o=!1;return e.forEach(e=>{n.has(e.id)?(this.rendered.has(e.id)&&t.add(e.id),r.delete(e.id)):o=!0}),r.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._dependencyData.options.onRenderStatusUpdate?.(`Layout container child rendered: ${this.rendered.size+1}/${this._dependencyData.visibleLayoutObjects.length} ${e}`),this.rendered.add(e),this.tryToResolve()}getChildrenObjects(){const{visibleLayoutObjects:e}=this._dependencyData,t=[];return e.forEach(e=>{const n=this.objectMap.get(e.id);n&&t.push(n)}),t}getChildLayout(e){const{modifiedLayout:t}=this._dependencyData;return t.qChildList.qItems.find(t=>t.qInfo.qId===e)}getObjectOptions(e){const{viewState:t,modifiedLayout:n,options:r}=this._dependencyData,{chartAnimations:o,direction:i,progressiveRendering:a,freeResize:s,navigation:l,useQlikEmbedChildRendering:c,getContextMenuParent:d,onContextMenu:u,context:p,disableThemeBorder:h}=r;return{isReadonly:!1,setController:t=>{this.saveObject(e,t)},onRendered:()=>{this.onRendered(e)},onInitialRender:()=>{this.onRendered(e)},isParentMaster:!!n?.qExtendsId,isSnapshot:!!n.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:h??!1,fallbackToClient:r.fallbackToClient,useQlikEmbedChildRendering:c,getContextMenuParent:d,onContextMenu:u,context:p}}confirmPotentialSelections(e){e&&"selectionsApi"in e&&e.selectionsApi.active&&e.selectionsApi.confirm()}}async function cf(e,t){return t?.runtimeModuleMocks?.[e]?t.runtimeModuleMocks?.[e]:(function(e){if(!window.__qlikMainPrivateResolvers)throw new Error("No main url resolver found");const t=function(e){if(!window.__qlikMainPrivateResolvers)throw new Error("No main url resolver found");let t,n=e?.embedRuntimeUrl||e?.url||e?.host;if(n||"noauth"!==e?.authType||(n="https://cdn.qlikcloud.com/qmfe"),n){for(t=n.toLowerCase().startsWith("https://")||n.toLowerCase().startsWith("http://")?n:`https://${n}`;t.endsWith("/");)t=t.slice(0,-1);return`${t}/qlik-embed/main.js`}}(e);t&&window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig&&window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig({url:t,hostConfig:e}),t&&window.__qlikMainPrivateResolvers.resolveMainJsUrl&&(window.__qlikMainPrivateResolvers.forwardCompatibleHostConfig=e,window.__qlikMainPrivateResolvers.resolveMainJsUrl(t))}(t),async function(e){if(!window.__qlikMainPrivateResolvers?.qlikMainPromise)throw new Error("No main url resolver found");return(await window.__qlikMainPrivateResolvers.qlikMainPromise).import(e)}(e))}window.__qlikMainPrivateResolvers||(window.__qlikMainPrivateResolvers={}),window.__qlikMainPrivateResolvers.mainUrlPromise||(window.__qlikMainPrivateResolvers.mainUrlPromise=new Promise(e=>{window.__qlikMainPrivateResolvers&&(window.__qlikMainPrivateResolvers.resolveMainJsUrl=t=>{e(t)})})),window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise||(window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise=new Promise(e=>{window.__qlikMainPrivateResolvers&&(window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig=t=>{e(t)})})),window.__qlikMainPrivateResolvers.qlikMainPromise||(window.__qlikMainPrivateResolvers.qlikMainPromise=(async()=>{if(window.QlikMain)return window.QlikMain;if(!window.__qlikMainPrivateResolvers?.mainJsUrlAndHostConfigPromise||!window.__qlikMainPrivateResolvers.mainUrlPromise)throw new Error("No main url promise found, report this issue");const e=setTimeout(()=>{console.warn("Waiting for a host parameter pointing to a Qlik runtime system")},5e3),{url:t,hostConfig:n}=await Promise.race([window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise,window.__qlikMainPrivateResolvers.mainUrlPromise.then(e=>({url:e,hostConfig:window.__qlikMainPrivateResolvers?.forwardCompatibleHostConfig}))]);clearTimeout(e);const r=await async function(e,t){if("windowscookie"===t?.authType){if(t.getAccessToken){const n=await async function(e){if("function"==typeof e)return e();if("string"==typeof e){const t=function(e){return globalThis[e]}(e);if("function"!=typeof t)throw new Error(`getAccessToken function "${e}" not found on globalThis. Please make sure it is defined.`);return t()}}(t.getAccessToken);return n&&await fetch(e,{method:"GET",mode:"cors",credentials:"include",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},cache:"no-cache"}),!0}if(t.loginUri&&!(await fetch(e,{method:"GET",mode:"cors",credentials:"include",redirect:"manual"}).catch(()=>({ok:!1}))).ok)return window.location.replace(t.loginUri),new Promise(()=>{})}return!1}(t,n);return new Promise(e=>{if(window.QlikMain)e(window.QlikMain);else{const n=window.document.createElement("script");t&&(n.src=t),r&&(n.crossOrigin="use-credentials"),n.addEventListener("error",()=>{console.error(`Qlik runtime system not found: ${t}`)}),n.addEventListener("load",()=>{window.QlikMain&&e(window.QlikMain)}),window.document.head.appendChild(n)}})})());const df=A(void 0),uf=e=>{const t=I(null),n=I(void 0),{vanillaEmbedFn:r,hostConfig:o,...i}=e;return _(()=>(t.current&&(n.current=r({target:t.current,props:{hostConfig:o,...i}})),()=>{n.current&&n.current.$destroy()}),[]),_(()=>{n.current&&n.current.$set({hostConfig:o,...i})},[i,o]),Ut.jsx("qlik-embed-react",{style:{display:"contents"},ref:t})},pf=e=>{const t=E(df),{vanillaEmbedFn:n}=function(e){const[t,n]=k({});return _(()=>{e&&cf("embed-vanilla@v1",e).then(({mountVanillaEmbedComponent:e})=>{n({vanillaEmbedFn:e})}).catch(e=>{n({vanillaError:e instanceof Error?e:new Error(String(e))})})},[e]),t}(t);return n?Ut.jsx(uf,{hostConfig:t,...e,vanillaEmbedFn:n}):null};const hf=x(function(e,t){const[n,r]=k(null),o=function(e){const t=I(e);return _(()=>{t.current=e},[e]),T(e=>{t.current(e)},[])}(e=>{r(()=>e)});return L(t,()=>n,[n]),Ut.jsx(pf,{exposeRefApi:o,...e})}),ff=new Map,mf=e=>{const t=ff.get(e);t&&(t.unmount(),ff.delete(e))},bf=({chartObject:e,embed:t,renderHelper:n,direction:r,interactions:o,env:i,app:a})=>{const s=I(null),{id:l}=e;_(()=>(l&&s.current&&(async(e,t,n,r,o)=>{const i=r.getObjectOptions(t)||{},a=r.dependencyData?.containerMenu??{id:"container-menu",icon:"ChartObject"},s=r.dependencyData?.translator,l=o?.id;if(i.useQlikEmbedChildRendering&&l)try{const n=Pd.createRoot(e);ff.set(t,n);const o={ui:"analytics/chart",objectId:t,appId:l,onRender:i.onRendered,context:i.context,exposeRefApi:({getVisualizationApi:e})=>{e().then(e=>{const n=e;r.saveObjectApi(t,n),r.saveObject(t,{...n,getViewState:()=>n.getImperativeHandle().then(e=>e.getViewState())})})},onContextMenu:async e=>{try{const t=await(i.onContextMenu?i.onContextMenu(e):e.contextMenuItems),n=await(i.getContextMenuParent?.(e));return n&&"object"==typeof e&&null!==e&&"contextMenuItems"in e&&t?.push({tid:a.id,id:a.id,icon:{value:a.icon,type:"sprout"},label:s?.get("contextMenu.subMenuContainerOptions")??"Container options",items:n}),t}catch(e){return console.error("Error getting context menu parent options",e),[]}}};return void n.render(Ut.jsx(df.Provider,{value:{},children:Ut.jsx(hf,{...o})}))}catch(e){console.warn("QlikEmbed mount failed, falling back to embed.render()",t,e),mf(t)}n.render({element:e,id:t,options:i}).then(e=>{r.saveObjectApi(t,e)}).catch(e=>{const n=r.getChildLayout(t)?.qInfo.qType;console.error("Could not render chart with id",t,n,e)})})(s.current,l,t,n,a),()=>{l&&mf(l)}),[l,t,n,r,a]);const c=P(()=>()=>{if(e?.id&&i.anything){const t=e?.label,{sense:r}=i.anything,o="current",a=n.objectMap.get(e.id);a&&r.propertyPanel.show({model:a.model,parent:o,headerLabel:t,keepCurrentActiveCell:!0})}},[i,e,n]);return _(()=>{const e=s?.current;return e&&o?.edit&&e.addEventListener("dblclick",c),()=>{e?.removeEventListener("dblclick",c)}},[s,c,o]),Ut.jsx("div",{ref:s,style:{position:"relative",height:"100%",width:"100%"},"data-testid":`tab-panel-${e.childRefId}`})};let gf=function(e){return e.TABS_HEIGHT="36px",e}({});const vf=({charts:e,handleChangeTab:t,activeTabId:n,element:r,translator:o,accessibility:i,disabled:a})=>{const[s,l]=C.useState(null),c=Boolean(s),d=()=>{l(null)},u=T(e=>{e?.focus()},[]);return Ut.jsxs(Ut.Fragment,{children:[Ut.jsx(rl,{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:Rh.TAB_MENU,sx:{m:"2px"},children:Ut.jsx(Jh,{})}),Ut.jsx(jc,{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=>Ut.jsx(Bc,{className:Rh.TAB_MENU_ITEM,ref:n===e.childRefId&&c?u:null,onClick:()=>{(e=>{t(e.childRefId),d(),window.setTimeout(()=>{r.getElementsByClassName(Rh.ACTIVE_TAB_PANEL)?.[0]?.focus()},0)})(e)},sx:n===e.childRefId?{backgroundColor:"rgba(0, 0, 0, 0.1)"}:{},"aria-label":e.label,title:e.label,children:Ut.jsx(xs,{variant:"inherit",noWrap:!0,children:e.label})},`chartTabMenu-${e.childRefId}`))})]})},yf=({label:e,id:t})=>Ut.jsx(qs,{className:Rh.TAB_LABEL,id:`tab-label-${t}`,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",overflow:"hidden",flexWrap:"wrap"},children:Ut.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})}),xf=({libraryInfo:e,chart:t,iconPosition:n,id:r})=>{let o;switch(n){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||!1===t.visible?Ut.jsx(Zh,{id:`${Rh.TABS_ICON}-${r}`,style:o}):e?Ut.jsx(Xh,{id:`${Rh.TABS_ICON}-${r}`,libraryInfo:e,style:o}):null},Ef=({models:e,activeTabId:t,handleChangeTab:n})=>{const{modifiedLayout:r,chartList:o,interactions:i,accessibility:a}=e,s=o?.getCharts(),l=r.objects.filter(e=>!nf(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:ef}:{orientation:"horizontal",tabContainerStyle:{display:"flex",flexDirection:"row",alignItems:"center"},ScrollButtonComponent:Qh})(r),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 Ut.jsxs(qs,{className:Rh.TAB_WRAPPER,sx:d,ref:e=>{m(e)},children:[r.useDropdown&&h?Ut.jsx(vf,{charts:l,handleChangeTab:n,activeTabId:t,accessibility:a,translator:e.translator,element:e.element,disabled:p}):null,Ut.jsx(fd,{value:t,onChange:(e,t)=>{n(t)},ScrollButtonComponent:u,variant:"scrollable",orientation:c,scrollButtons:!!r.useScrollButton&&"auto",TabScrollButtonProps:{...p&&{disabled:!0}},sx:{height:"100%",width:"100%",minHeight:gf.TABS_HEIGHT},children:l.map(n=>{const o=Xd(r,n.childRefId)?.qData?.visualization,i=o&&s?.[o]?.libraryInfo,l=e.styleModel.getTabStyle(n.childRefId),d=0===n.condition||r.showIcons&&i&&!1!==l?.icon?.show||!1===n.visible,u="vertical"===c?"top":"start",h=e.styleModel.resolveComponentStyle({compPath:"icon.position",defaultValue:u}),f=e.styleModel.resolveComponentStyle({compPath:"label.show"}),m=n.label&&(l?.label?.show??!1!==f),b=`${r.qInfo.qId}-${n.childRefId}`;return Ut.jsx(Wc,{className:`${Rh.TAB} ${t===n.childRefId?Rh.ACTIVE_TAB:""}`,disabled:p,id:`tab-${b}`,value:n.childRefId,title:n.label,label:m?Ut.jsx(yf,{label:n.label,id:b}):void 0,icon:d?Ut.jsx(xf,{libraryInfo:i,chart:n,iconPosition:h,id:b}):"",iconPosition:h,"data-testid":`container-tab-${n.childRefId}`,sx:{textAlign:"vertical"!==c||r.showIcons?"center":"start",minWidth:"vertical"===c?"100%":void 0,minHeight:gf.TABS_HEIGHT,padding:"6px 16px","&:hover":{paddingBottom:"4px"},"&.Mui-disabled":{opacity:"inherit"}},"aria-label":n.label,"aria-controls":`tab-panel-${b}`,tabIndex:a&&t===n.childRefId?0:-1},n.childRefId)})})]})},Cf=({models:e,renderHelper:t,activeTabId:n,handleChangeTab:r,env:o})=>{const{modifiedLayout:i,embed:a,interactions:s,options:l,styleModel:c,accessibility:d,app:u}=e,p=i.objects,h=s.edit||!!p.find(e=>0!==e.condition&&!1!==e.visible),f=i.showTabs&&h,m="left"===i.orientation?"row":"column",b=c.getStyleClasses();return Ut.jsxs(qs,{sx:{display:"flex",flexDirection:m,height:"100%",width:"100%",direction:l.direction,...b},children:[f?Ut.jsx(Ef,{models:e,activeTabId:n,handleChangeTab:r}):null,p.map(e=>{const r=`tab-panel-${i.qInfo.qId}-${e.childRefId}`,c=n===e.childRefId&&!nf(e,s);return Ut.jsx(qs,{role:"tabpanel",id:r,"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:Rh.ACTIVE_TAB_PANEL,tabIndex:d?0:-1}:{hidden:!0},children:c?Ut.jsx(bf,{chartObject:e,renderHelper:t,direction:l.direction,embed:a,interactions:s,env:o,app:u}):null},r)})]})};let Sf=function(e){return e.COPY="copy",e.PASTE="paste",e.RESET_COPY_BUFFER="resetCopyBuffer",e}({}),wf=function(e){return e.COPY="copy",e.PASTE_AND_REPLACE="paste-and-replace",e.PASTE="paste",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 Rf=[wf.PASTE_AND_REPLACE,wf.ZOOM_IN,wf.VISUAL_EXPLORATION],kf=[wf.VISUAL_EXPLORATION,wf.ALERT_GROUP,wf.SHOW_DETAILS,wf.EXPLAIN_KEY_DRIVERS,wf.EXPLAIN_KEY_DRIVERS_OLD_ID],_f=[wf.DELETE,wf.CUT,wf.ADD_TO_MASTER_ITEMS,wf.UNLINK_VISUALIZATION],Af=[wf.PASTE_AND_REPLACE],Lf=(e,t)=>{const{childRefId:n}=e.model.layout,r=t.objects.find(e=>e.childRefId===n);return{...e,additionalData:{label:r?.label}}},If=(e,t,n,r,o)=>{const i=t.getSupportFunction(wf.COPY);if(!i)return void e.deleteItem(wf.COPY);const a=()=>{i(Lf(n,r)).catch(()=>{})},s=e.items.find(e=>e.id===wf.COPY);if(s)s.updateItem({select:a});else if(o){const t=e.items.findIndex(e=>e.id===wf.CUT),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.copy",tid:wf.COPY,id:wf.COPY,icon:"copy",select:a,items:[]},n)}},Tf=e=>e.interactions.edit&&!e.modifiedLayout.qExtendsId,Pf=async(e,t,n,r,o)=>{if(o.flags.isEnabled("GVC_48_CHART_CONTEXT_MENU_ITEM_GENERATION"))return;const i=t.getBuilder("default");if(!i)return;const a=await i();a.addItem({translation:"contextMenu.containerOptionsHeader",tid:wf.CONTAINER_HEADER,id:wf.CONTAINER_HEADER,bold:!0,items:[]},0);const s=Tf(n);a.items.forEach(e=>{(kf.includes(e.id)||!s&&Af.includes(e.id))&&a.deleteItem(e.id)}),s&&await(async(e,t,n)=>{const r=t.getSupportFunction(Sf.PASTE),o=await(r?.()?.catch(()=>{}));if(!o||Ad.includes(o.template))return void e.deleteItem(wf.PASTE_AND_REPLACE);const i=()=>{n()},a=e.items.find(e=>e.id===wf.PASTE_AND_REPLACE||e.id===wf.PASTE);if(a)a.updateItem({translation:"contextMenu.paste",select:i});else{const t=e.items.findLastIndex(e=>e.id===wf.COPY||e.id===wf.DEVELOPER||e.id===wf.CONTAINER_HEADER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.paste",tid:wf.PASTE_AND_REPLACE,id:wf.PASTE_AND_REPLACE,icon:"paste",select:i,items:[]},n)}})(a,t,r),e.updateItem({items:a.items}),1===e.items.length&&e.deleteItem(wf.CONTAINER_HEADER)},Mf="tabbed-container-menu",Of=e=>{const t={[wf.MONITOR_IN_HUB]:!0,[wf.SUBSCRIBE]:!0,[wf.NOTES_GROUP]:!0,[wf.DOWNLOAD]:!0,[wf.SHARE_IMAGE]:!0};e.items.forEach(n=>{t[n.id]?e.deleteItem(n.id):n.items&&Of(n)})},jf=(e,t,n,r,o,i)=>a=>{const{dataHandler:s,modifiedLayout:l}=r;if(Tf(r)){n.isInvalid||(((e,t,n,r)=>{const{model:o,modifiedLayout:i}=n,a=e.items.findLastIndex(e=>e.id===wf.CHART_HEADER||e.id===wf.REORDER_LAYERS_GROUP),s=a>=0?1+a:void 0;e.addItem({translation:"Object.Container.Props.EditProperties",tid:wf.EDIT_PROPERTIES,id:wf.EDIT_PROPERTIES,icon:wf.EDIT_PROPERTIES,items:[],select:()=>{const{childRefId:e}=t.model.layout,n=i.objects.find(t=>t.childRefId===e),a=n?.label,{sense:s}=r.anything,l=o;s.propertyPanel.show({model:t.model,parent:l,headerLabel:a})}},s)})(a,n,r,o),((e,t,n,r,o,i)=>{const a=r.getSupportFunction(wf.COPY);if(!a)return void e.deleteItem(wf.CUT);const s=()=>{o&&a(Lf(n,i)).then(async()=>{await(o?.deleteChildren([t]))}).catch(()=>{})},l=e.items.find(e=>e.id===wf.CUT);if(l)l.updateItem({select:s});else{const t=e.items.findLastIndex(e=>e.id===wf.ADD_TO_MASTER_ITEMS||e.id===wf.UNLINK_VISUALIZATION||e.id===wf.EDIT_PROPERTIES||e.id===wf.REORDER_LAYERS_GROUP||e.id===wf.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.cut",tid:wf.CUT,id:wf.CUT,icon:"cut",select:s,items:[]},n)}})(a,t,n,e,s,l),If(a,e,n,l,!0),((e,t,n,r,o)=>{const i=t.getSupportFunction(Sf.COPY),a=t.getSupportFunction(Sf.PASTE);if(!i||!a)return void e.deleteItem(wf.DUPLICATE);const s=()=>{i(Lf(n,r)).then(()=>{o()}).catch(()=>{})},l=e.items.find(e=>e.id===wf.DUPLICATE);if(l)l.updateItem({select:s});else{const t=e.items.findIndex(e=>e.id===wf.COPY),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Duplicate",tid:wf.DUPLICATE,id:wf.DUPLICATE,icon:wf.DUPLICATE,items:[],select:s},n)}})(a,e,n,l,i)),((e,t,n)=>{const r=()=>{n&&n.deleteChildren([t]).catch(()=>{})},o=e.items.find(e=>e.id===wf.DELETE);if(o)o.updateItem({select:r});else{const t=e.items.findLastIndex(e=>e.id===wf.DUPLICATE||e.id===wf.ADD_TO_MASTER_ITEMS||e.id===wf.UNLINK_VISUALIZATION||e.id===wf.REORDER_LAYERS_GROUP||e.id===wf.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Delete",tid:wf.DELETE,id:wf.DELETE,icon:"bin",items:[],select:r},n)}})(a,t,s)}else If(a,e,n,l,!1)},$f=(e,t,n,r)=>{g(async(o,i,a)=>{if(!a)return!1;const s=((e,t)=>()=>{if(!e)return;const n=t.getSupportFunction(Sf.PASTE);n&&n().then(async({template:t,init:n,children:r,additionalData:o})=>{const{label:i}=o,a={label:i};n.qExtendsId?await e.addMasterObjectAsChild({initProps:n,children:r,objectInitProps:a}):await e.addVizAsChild({type:t,initProps:n,children:r,objectInitProps:a})}).catch(e=>{e&&t.getSupportFunction(Sf.RESET_COPY_BUFFER)})})(n.dataHandler,a);if(await Pf(o,a,n,s,r),Of(o),!(e=>{let t;t="qv-radial-contextmenu"===e.type?e.touches[0]?.target:e.target;return t&&((e,t)=>{let n=e;for(;n;){if(n.classList?.contains(t))return n;n=n.parentNode}return null})(t,Rh.ACTIVE_TAB_PANEL)})(i))return!0;const l=n.modifiedLayout.objects.find(t=>t.childRefId===e)?.id;if(!l)return!0;const c=t.objectMap.get(l);if(!c)return!0;const d=jf(a,e,c,n,r,s),u=await(async(e,t,n,r)=>{const o=Tf(n),i=e.getBuilder("object");if(!i)return;const a=await i(t);return a.addItem({translation:"contextMenu.chartOptionsHeader",tid:wf.CHART_HEADER,id:wf.CHART_HEADER,bold:!0,items:[]},0),r(a),a.items.forEach(e=>{(Rf.includes(e.id)||!o&&_f.includes(e.id))&&a.deleteItem(e.id)}),1===a.items.length&&a.deleteItem(wf.CHART_HEADER),a})(a,c,n,d);return!u||(o.items.length>0&&u.addItem({translation:"contextMenu.subMenuContainerOptions",tid:Mf,id:Mf,icon:"tabbed-container",items:[...o.items]},u.items.length),o.updateItem({items:u.items}),!0)})},Nf=({element:e,models:r,env:o,activeCharts:s})=>{const l=((e,t)=>{const[r,o]=a(void 0);return n(()=>{if(0===e.getElementsByClassName(t).length){const n=document.createElement("div");n.className=t,e.appendChild(n);const r=Pd.createRoot(n);o(r)}return()=>{r?.unmount()}},[e,t,r]),r})(e,"init-component"),{options:c,modifiedLayout:d,interactions:u,model:p}=r,{qChildList:h}=d,f=kd(c.direction),m=(e=>{const{viewState:n}=t(),{snapshotData:r}=e;if(r){const{layouts:e}=r.objectsData,t=r.viewState?.viewStates;return{layouts:e,viewStates:t}}if(n){const{viewStates:e}=n;return{viewStates:e}}})(d),g=i(()=>rf(d),[d]),v={modifiedLayout:d,activeTabId:g,env:o},[y,x]=jh(v);x(v);const E=i(()=>d.objects.filter(e=>g===e.childRefId),[g,d.objects]),C=i(()=>({...c,disableThemeBorder:!0}),[c]),{renderHelper:S}=(e=>{const{visibleLayoutObjects:t,options:r}=e,[o]=a(()=>new lf(e)),[,i]=a(r);return o.dependencyData=e,b(async()=>(i(e=>(e!==r&&t.forEach(e=>o.recreateMap.set(e.id,!0)),r)),o.syncObjects(t)?o.createTimerForRendering()?.promise:o.resolver?.promise),[t,r]),n(()=>()=>{o.destroy()},[o]),{renderHelper:o}})({modifiedLayout:d,visibleLayoutObjects:E,viewState:m,options:C,containerMenu:{id:Mf,icon:"TabbedContainerOutline"},translator:r.translator});$f(g,S,r,o);const[w]=a({current:void 0}),R=i(()=>e=>{(async({model:e,patchList:t})=>{if(e?.applyPatches){const n=await e.getEffectiveProperties(),r=[];t.forEach(e=>{const{newValue:t,propertyName:o}=e,i=void 0!==n[o]?"Replace":"Add";t?r.push({qPath:`/${o}`,qOp:i,qValue:JSON.stringify(t)}):"Replace"===i&&r.push({qPath:`/${o}`,qOp:"Remove"})}),r.length>0&&await e.applyPatches(r,!0)}})({model:p,patchList:[{newValue:e,propertyName:"cachedTabId"}]}).then(()=>{const t=y.modifiedLayout.objects.find(t=>t.childRefId===e)?.id;s.updateActiveCharts(t?[t]:[])})},[s,p,y.modifiedLayout.objects]),k=i(()=>({setSelected:e=>{const t=y.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t?R(t):w.current=e[0]}}),[R,y,w]);n(()=>{const e=(({chartObjects:e,activeTabId:t})=>!tf(e,t)&&e.length>0?e[0]?.childRefId:t)({chartObjects:y.modifiedLayout.objects,activeTabId:y.activeTabId});if(e!==y.activeTabId)R(e);else if(w.current){const e=y.modifiedLayout.objects.find(e=>e.id===w.current)?.childRefId;e&&R(e)}w.current=void 0},[d?.objects.length,y,w,R]),n(()=>{const e=(({chartObjects:e,activeTabId:t,interactions:n})=>{const r=tf(e,t);if(!r||nf(r,n)){const n=e.find(e=>0!==e.condition&&!1!==e.visible);return n?.childRefId||t}return t})({chartObjects:y.modifiedLayout.objects,activeTabId:y.activeTabId,interactions:u});e!==y.activeTabId&&R(e)},[u,d?.objects,y,R]);const _=0===h.qItems.length&&u.edit;return n(()=>{l?.render(Ut.jsxs(da,{theme:f,children:[_?Ut.jsx(sf,{Icon:Kh,dataHandler:r.dataHandler,modifiedLayout:r.modifiedLayout,translator:r.translator,sharedContainerUtilities:k}):null,!_&&Ut.jsx(Cf,{models:r,renderHelper:S,activeTabId:g,handleChangeTab:R,env:o})]}))},[l,r,f,_,S,g,k,R,o]),{renderHelper:S,sharedContainerUtilities:k,activeTabId:g}};var zf={targets:[]};const Df={showTitles:!0,title:"",subtitle:"",footnote:"",disableNavMenu:!0,showDetails:!1,objects:[],qChildListDef:{qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition",visible:"/visible"}},showTabs:!0,useScrollButton:!0,useDropdown:!1,showIcons:!1,components:[],defaultTabId:"",orientation:"top",fontsUsed:[]};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".init-component {\n height: 100%;\n overflow: hidden;\n}\n");const Bf=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:n=>t(n)&&e.canReceive(n)}}return e}),Ff=(e,t)=>{let n=!0;const r=t.objects.reduce((t,r)=>{const o=r.id;if(0!==r.condition&&!1!==r.visible){const i=e.get(o);return i&&(e=>e.supportExport())(i)&&(n=!1,t.objectMap.set(o,i)),t.objects.push(r),t}return t},{objects:[],objectMap:new Map});return n?{objects:[],objectMap:new Map}:r}}}});
|
|
89
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,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(n=(t="-"===(e=e.substring(h,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[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"!==(r=t.join(""))&&""!==r||(n=!1),f+(n?"-":"")+r+x}},_p({exports:{}});const kp="'Source Sans Pro', 'Arial', 'sans-serif'",Ap="#333333",Lp="#595959",Ip="#737373",Tp="#cccccc",Pp="#e6e6e6";function Mp(e){const t={};return[...e,["","","color"],["object","","fontFamily"],["object","axis.label.name","color",Lp],["object","axis.label.name","fontFamily",kp],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",Tp],["object","axis.line.minor","color",Pp],["object","axis.title","color"],["object","axis.title","fontFamily",kp],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",Pp],["object","grid.line.major","color",Tp],["object","grid.line.minor","color",Pp],["object","label.value","color",Lp],["object","label.value","fontFamily",kp],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",Lp],[!1,"label.value","lightColor",Pp],["object","outOfRange","color","#999"],["object","legend.title","color",Ap],["object","legend.title","fontFamily",kp],["object","legend.title","fontSize","15px"],["object","legend.label","color",Lp],["object","legend.label","fontFamily",kp],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",Ap],["object","referenceLine.label.name","fontFamily",kp],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",Pp],["object","referenceLine.outOfBounds","fontFamily",kp],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",Ip,e=>"transparent"===e?Ip:e]].reduce((e,n)=>{const r=`${n[0]}-${n[1]}-${n[2]}}`;return t[r]||(t[r]=!0,e.push(n)),e},[]).toSorted((e,t)=>(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0))}const Op="object",jp=e=>e;function $p({theme:e,id:t,transform:n,extend:r,matrix:o}){const i={},a=n.reduce((e,t)=>{const[n,r]=t;return e[n]=r,e},{});return o.forEach(n=>{const[r,o,s,l,c=e=>e]=n,d=function({theme:e,base:t,path:n,attribute:r,defaultValue:o}){if(!e||!1===t)return o;const i=e.getStyle(t,n,r);return void 0===i?o:i}({theme:e,base:r===Op&&t?`${Op}.${t}`:r,path:o,attribute:s,defaultValue:l}),u=(a[`${o}.${s}`]||jp)(c(d));vp(i,[o,s].filter(Boolean).join("."),u)}),r.forEach(e=>{const[t,n]=e;vp(i,t,n)}),i}const Np={qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",containerChildId:"/containerChildId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition",visible:"/visible"}};function Dp(e){if(!e.objects)return{};const t=Jd(e);return{container_id:e.qInfo.qId,objects:e.qChildList.qItems.map(n=>({chart_type:n.qData.visualization,chart_id:n.qInfo.qId,chart_isMaster:!!n.qData.qExtendsId,tab_isVisible:0!==t[n.qData.childRefId]?.condition&&!1!==t[n.qData.childRefId]?.visible,tab_isActive:n.qData.childRefId===e.cachedTabId}))}}const zp=({ref:e,theme:t,change:n})=>({component:"inline-wrapper",items:{bgColorDropdown:{ref:`${e}.useColorExpression`,width:9,component:"dropdown",change(t){(bp(t,`${e}.color`)||bp(t,`${e}.colorExpression`))&&(vp(t,`${e}.color`,void 0),vp(t,`${e}.colorExpression`,void 0)),n?.(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=>!bp(t,`${e}.useColorExpression`),disableNone:!1,defaultValue:()=>({color:t?.getStyle("object.tabbedContainer",e,"color")??"none"}),showAlpha:!0,change:e=>{n?.(e)}},bgColorExpression:{component:"input-field-expression",ref:`${e}.colorExpression`,show:t=>bp(t,`${e}.useColorExpression`)}}}),Bp=({theme:e})=>({bgColorAllWrapper:zp({ref:"background.unselected"}),selectedTab:{translation:"properties.chartType.selected",component:"text"},bgColorSelectedWrapper:zp({ref:"background.selected"}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:zp({ref:"background.hover",theme:e,change:e=>{vp(e,"indicator.hover.color",bp(e,"background.hover.color")),vp(e,"indicator.hover.useColorExpression",bp(e,"background.hover.useColorExpression"))}})},show:(e,t)=>"left"===t.layout.orientation}}),Fp=({paths:e,fontResolver:t,theme:n})=>{const r=`${e.theme}.fontSize`;return{fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.size`,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r),show:e=>!1!==e.icon?.show},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:n.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}}},Gp=({theme:e})=>({colorWrapper:zp({ref:"indicator.selected",theme:e}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:zp({ref:"indicator.hover",theme:e,change:e=>{vp(e,"background.hover.color",bp(e,"indicator.hover.color")),vp(e,"background.hover.useColorExpression",bp(e,"indicator.hover.useColorExpression"))}})},show:(e,t)=>"left"!==t.layout.orientation}}),Hp=({paths:e,fontResolver:t,theme:n})=>{const r=`${e.theme}.fontFamily`,o=`${e.theme}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e.ref}.fontFamily`,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r),change:(e,t,n)=>{const r=e.label?.fontFamily,o=(e=>{const t=[];return e.objects.forEach(e=>{const n=e.components?.find(e=>"tab"===e.key),r=n?.label?.fontFamily;r&&-1===t.indexOf(r)&&t.push(r)}),t})(n);r&&-1===o.indexOf(r)&&o.push(r),n.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:n.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}}},Up=({ref:e,key:t,fontResolver:n,theme:r})=>({translation:"Object.Container.Props.Label",component:"panel-section",items:{label:{component:"items",ref:e,key:t,items:Hp({paths:{ref:"label",theme:"label.value"},fontResolver:n,theme:r})}}}),Wp=({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]}}}}}),Vp=({theme:e,ref:t,key:n})=>({translation:"Object.TabbedContainer.Indicator",component:"panel-section",items:{indicator:{component:"items",ref:t,key:n,items:Gp({theme:e})}}}),qp=({ref:e,key:t,fontResolver:n,theme:r})=>({translation:"properties.icon",component:"panel-section",items:{icon:{component:"items",ref:e,key:t,items:Fp({paths:{ref:"icon",theme:"icon.value"},fontResolver:n,theme:r})}},show:(e,{layout:t})=>t.showIcons}),Yp=({theme:e,ref:t,key:n})=>({translation:"Object.OrgChart.BackgroundColor",component:"panel-section",items:{background:{component:"items",ref:t,key:n,items:"tab"===n?{bgColorWrapper:zp({ref:"background"})}:Bp({theme:e})}}}),Kp=({fontResolver:e,theme:t})=>{const n="components",r="tab";return{component:"styling-panel",chartTitle:"Object.Container",tabTitle:"scripteditor.dataconnectors.delimiter.tab",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:n,items:{label:Up({ref:n,key:r,fontResolver:e,theme:t}),width:{...Wp({ref:n,key:r}),show:(e,{layout:t})=>"left"!==t.orientation},icon:qp({ref:n,key:r,fontResolver:e,theme:t}),background:Yp({ref:n,key:r,theme:t})}}},Xp={ref:"label",type:"string",translation:"Object.Container.Props.Label",defaultValue:"",expression:"optional"},Zp={ref:"condition",translation:"Object.Container.Props.ShowCondition",component:"expression",defaultValue:{qValueExpression:{qExpr:""}},expressionType:"ValueExpression",expression:"always"},Jp=(e,t)=>"object"==typeof e.label?t.objects.find(t=>t.childRefId===e.childRefId)?.label||e.label.qValueExpression.qExpr:e.label,Qp=e=>({component:"button",translation:"Object.Container.Props.EditProperties",disabled:(e,t)=>{const n=t.getLayout(),r=Kd(n,e.childRefId)?.qMeta;return!r?.privileges?.includes("update")||!n.permissions?.update},action(t,n,{app:r}){const{sense:o}=e.env.anything,i=n.getEngineId(t.childRefId);i&&(o.propertyPanel.show({id:i,app:r,parent:"current",headerLabel:Jp(t,n.getLayout())}),n.setSelectedChild([i]))}}),eh=e=>{const{sense:t}=e.env.anything;return{label:Xp,condition:Zp,styling:Kp({fontResolver:e.fontResolver,theme:t?.theme}),editProperties:Qp(e)}},th={translation:"Object.Container.Props.Chart",component:"text",show:e=>e.objects?e.objects.length<=1:e.children.length<=1},nh={translation:"Common.Charts",component:"text",show:e=>e.objects?e.objects.length>1:e.children.length>1},rh=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,n){const r=document.querySelector(".pp-toplist-add-button");null!==r&&n.openAddChildPopover(r)},remove(e,t,n){n.deleteChild(e.childRefId).catch(()=>{})},items:eh(e)}),oh=e=>({type:"items",translation:"Object.Container.Props.Content",items:{chartLabel:th,chartsLabel:nh,chartList:rh(e)}}),ih={type:"boolean",translation:"Object.Container.Props.ShowTabs",ref:"showTabs",defaultValue:!0,component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},ah={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},sh={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},lh={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},ch={type:"string",translation:"Object.Container.Props.DefaultTab",ref:"defaultTabId",component:"dropdown",defaultValue:void 0,options(e,t){const n=t.getLayout();return n?n.objects.map(e=>({translation:e.label,value:e.childRefId})):[]},change(e,t){const n=Qd(t.getLayout(),e.defaultTabId);n&&t.setSelectedChild([n])},show:e=>e.objects.length>0},dh={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},uh=({fontResolver:e,theme:t})=>{const n="components",r="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:Up({ref:n,key:r,fontResolver:e,theme:t}),width:Wp({ref:n,key:r}),indicator:Vp({ref:n,key:r,theme:t}),icon:qp({ref:n,key:r,fontResolver:e,theme:t}),background:Yp({ref:n,key:r,theme:t})}}},ph={items:{details:{show:e=>!0===e.showDetails}}},hh=e=>{const{sense:t}=e.env.anything;return{type:"items",translation:"properties.presentation",grouped:!0,items:{stylingPanel:uh({fontResolver:e.fontResolver,theme:t?.theme}),container:{type:"items",items:{showTabs:ih,useDropdown:ah,useScrollButton:sh,showIcons:lh,orientation:dh,defaultTabId:ch}}}}},fh=e=>({uses:"settings",items:{general:ph,presentation:hh(e)}}),mh=e=>({type:"items",component:"accordion",items:{content:oh(e),settings:fh(e)}}),bh=e=>{const{sense:t}=e.env.anything,n=function({theme:e,translator:t,config:n={}}){const{id:r,paths:o}=function({config:e={}}){const{id:t,paths:n}=e;return{id:void 0===t?tu:`${tu}.${t}`,paths:Array.isArray(n)?n:[]}}({config:n}),i={};o.forEach(n=>{const o=n.split(".");du(o);let a=i;for(let i=0;i<o.length;i++){const s=o[i];i===o.length-1?a[s]=lu({theme:e,translator:t,id:r,path:n}):void 0===a[s]&&(a[s]={}),a=a[s]}});const a=e=>{const t=e.split(".");du(t);let n=i;for(let r=0;r<t.length;r++){const o=t[r];if(void 0===n[o])throw new Error(`font-resolver: Path '${e}' could not be resolved.`);n=n[o]}return n};return i.getDefaultValue=e=>a(e).getDefaultValue(),i.getOptions=e=>a(e).getOptions(),i}({theme:t?.theme,translator:e.env.translator,flags:e.env.flags,config:{id:"tabbedContainer",paths:["label.value","icon.value"]}}),r=function(e){return{async getDropOptions(e,t,n){const{item:r}=t,o=e.getCreatePropertyHandler();if(o.setModel(e.model),"state"===t.item.type){const r=await e.model.getProperties();return o.setProperties(r),o.setLayout(e.model?.layout),this.getDropStateOptions(t,o,e.model,n)}if("visualization"===r.type)return t.menu.addItem({translation:["Object.Container.DropItem",r.name],tid:"addvisualization",select(){o.addChild({initProps:{qExtendsId:r.id,qInfo:{qType:"undefined"}}})?.then(e=>{e&&o.setSelectedChild([e.id])})}}),void n();const i=await t.item.getDropOption(t.item);"newObject"===i?.id&&t.menu.addItem({translation:["Object.Container.DropItem",r.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])})}}),n()},async addChild(t,n){const{model:r}=this,o=new eu({app:r.app,data:e.propertyHandlerData});return o.setModel(r),{childModel:await o.addChild({initProps:t,children:n}),handler:o}},canReceive(e){if(this.model.layout.qExtendsId)return!1;if("libraryitem"===e.type){const{item:t}=e;if("template"===t.type&&kd.includes(t.template))return!1;if("visualization"===t.type&&kd.includes(t.visualization))return!1}return"gridcell"!==e.type||!kd.includes(e.cell.model.layout.visualization)}}}(e);return{definition:mh({...e,fontResolver:n}),support:{snapshot:!1,export:!0,sharing:!1,exportData:!1,viewData:!1},hidePatchPanel:()=>!0,getCreatePropertyHandler:t=>new eu({app:t,data:e.propertyHandlerData}),...r,addChild:async function(e,t){const{childModel:n,handler:o}=await r.addChild.apply(this,[e,t]);n&&o.setSelectedChild([n.id])},migrate:{properties:(e,t)=>((async(e,t)=>{if(!e.objects){const{objects:n,defaultTabId:r,components:o,orientation:i,showDetails:a}=await t.getEffectiveProperties(),s=await t.getFullPropertyTree();if(!s.qProperty.objects&&n){const l=[];s.qChildren.forEach(e=>{const n=e.qProperty;if(n.qInfo.qId){const r=async r=>{const o=await t.getChild(r),i=await o.getEffectiveProperties();return{...e,qProperty:{...n,childRefId:i.childRefId}}};l.push(r(n.qInfo.qId))}});const c=await Promise.all(l),d={...e,objects:n,defaultTabId:r??"",components:o,qChildListDef:Np,orientation:i,showDetails:a};t.clearSoftPatches(),await t.setFullPropertyTree({...s,qProperty:d,qChildren:c})}}})(e,t),e)},exportProperties:null,importProperties:(e,t)=>{const n={...e.properties};return"masterobject"!==e.properties.qInfo.qType&&(n.qInfo.qType=t.qInfo.qType),n.visualization=t.visualization,{qProperty:n,qChildren:e.qChildren}},extendMetrics:Dp}},gh=({propertyHandlerData:e,element:r,sharedContainerUtilities:o,translator:i,containerId:a,dataHandler:s,renderHelper:l,chartList:c})=>{const d=t();a&&e.sync({containerId:a,element:r,sharedContainerUtilities:o,translator:i,dataHandler:s,renderHelper:l,chartList:c}),n(()=>{e.setMuiTheme(d.direction)},[d.direction,e]),n(()=>()=>{a&&e.destroy(a)},[a,e,d.direction])},vh=e=>e.reduce((e,{id:t,data:n})=>(n&&(e[t]=n),e),{}),yh=async e=>{const t=[];for(const[n,r]of e){const e={id:n,data:void 0},o=r;t.push(o.getViewState().then(e=>({id:n,data:e})).catch(()=>e))}const n=await Promise.all(t);return{viewStates:vh(n)}},xh=async e=>{const t=[];for(const[n,r]of e){const e={id:n,data:void 0},o=r;o.getSnapshotLayout?t.push(o.getSnapshotLayout().then(e=>({id:n,data:e})).catch(()=>e)):o.takeSnapshot&&t.push(o.takeSnapshot().then(e=>({id:n,data:e?.layout})).catch(()=>e))}const n=await Promise.all(t);return vh(n)},Eh=(e,t)=>(r(async n=>{const r=n,{snapshotData:o}=r;if(o){const n=Xd(r),i=t(e.objectMap,n),[a,s]=await Promise.all([xh(i.objectMap),yh(i.objectMap)]);o.objectsData={layouts:a},r.objects=i.objects,o.viewState=s}return n}),{getViewState:()=>yh(e.objectMap)});let Ch=function(e){return e.OPEN_CONTEXT_MENU="shift+F10",e.ESCAPE="Escape",e.SPACE=" ",e.ENTER="Enter",e.BACKSPACE="Backspace",e.DELETE="Delete",e}({}),Sh=function(e){return e.KEY_DOWN="keydown",e.FOCUS_OUT="focusout",e}({}),wh=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 Rh=`& .${wh.TAB}.${wh.TAB_EXTRA_PRIO}, .${wh.TAB}.${wh.ACTIVE_TAB}`,_h=`& .${wh.TAB}.${wh.TAB_EXTRA_PRIO}:hover`,kh=`& .${wh.TAB_LABEL}`,Ah=`& .${wh.TABS_ICON} svg`,Lh=`& .${wh.TAB_WRAPPER}`,Ih=`& .${wh.TAB_INDICATOR}`,Th=e=>e.getElementsByClassName(wh.ACTIVE_TAB)?.[0],Ph=e=>e.getElementsByClassName(wh.ACTIVE_TAB_PANEL)?.[0],Mh=({element:e,setAccessibility:t,accessibility:r,renderHelper:s,interactions:l,env:c,models:d})=>{const{modifiedLayout:{showTabs:u,objects:p,orientation:h},translator:f}=d;n(()=>{(()=>{const t="top"===h?f.get("TabContainer.Navigation.Horizontal"):f.get("TabContainer.Navigation.Vertical"),n=((e,t)=>e.map(e=>e.label||t.get("TabContainer.Object.Untitled")).join(", "))(p,f);e.setAttribute("aria-label",f.get("TabContainer.Object.Description",[n,u?t:""]))})()},[e,u,p,f,h]);const m=c.flags.isEnabled("VIZ-7_NEW_SHEET")||c.flags.isEnabled("VIZ-7_NEW_SHEET_EDIT"),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 Ch.ESCAPE:t.stopPropagation(),b.blur?.(!0);break;case Ch.ENTER:case Ch.SPACE:{t.stopPropagation();const n=t.target;n?.classList.contains(wh.ACTIVE_TAB)&&Ph(e)?.focus();break}}},[e,b]),y=i(()=>t=>{const n=t.shiftKey?`shift+${t.key}`:t.key,r=s.objectMap.values().next().value,o=s.objectApis.values().next().value;switch(n){case Ch.ESCAPE:{const n=Th(e);m?(({event:e,objectApi:t,activeTab:n})=>{e.stopPropagation(),t?.viewDataToggled&&t.support?.("viewData")?t.toggleDataView():n?.focus()})({event:t,objectApi:o,activeTab:n}):(({event:e,objectApi:t,activeTab:n})=>{e.stopPropagation(),t?.viewDataToggled&&t.supportViewData?.()?t.toggleDataView?.():n?.focus()})({event:t,objectApi:r,activeTab:n});break}case Ch.ENTER:case Ch.SPACE:{const n=Ph(e);m?(({event:e,objectApi:t,activeTab:n})=>{if(!t)return;e.stopPropagation(),t.setOnBlurHandler?.(()=>{n?.focus(),t.setOnBlurHandler?.(void 0)}),!t.viewDataToggled&&t.support?.("viewData")?t.toggleDataView():t.toggleFocus?.(!0)})({event:t,objectApi:o,activeTab:n}):(({event:e,objectApi:t,activeTab:n})=>{if(!t)return;e.stopPropagation(),t.setOnBlurHandler?.(()=>{n?.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:r,activeTab:n});break}case Ch.OPEN_CONTEXT_MENU:t.stopPropagation(),r?.viewDataToggled||e!==document.activeElement&&(g(),e.focus())}},[e,g,m,s]),x=i(()=>e=>{const t=e.target;t?.classList.contains(wh.ACTIVE_TAB_PANEL)?y(e):v(e)},[v,y]);n(()=>(r&&e.addEventListener(Sh.KEY_DOWN,x),()=>{e.removeEventListener(Sh.KEY_DOWN,x)}),[e,r,x]);const[E,C]=a(!1);n(()=>{E&&(C(!1),window.setTimeout(()=>((e=>e.getElementsByClassName(wh.TAB_MENU)?.[0])(e)??Th(e))?.focus(),0))},[e,E]),n(()=>{t(!1)},[l.edit,t]),n(()=>{const n=t=>{const n=t.relatedTarget;e?.contains(n)||n?.classList.contains(wh.TAB_MENU_ITEM)||g?.()};return b.enabled&&b.active&&!l.edit&&(t(!0),C(!0),e.addEventListener(Sh.FOCUS_OUT,n)),()=>{e.removeEventListener(Sh.FOCUS_OUT,n)}},[b])},Oh=e=>{const[t]=a(e);return[t,function(e){Object.assign(t,e)}]},jh=({isContainerActive:e,activeTabId:t,modifiedLayout:r,renderHelper:o,activeCharts:a,sharedContainerUtilities:s})=>{const l={modifiedLayout:r,activeTabId:t,renderHelper:o,isContainerActive:e},[c,d]=Oh(l);d(l);const u=i(()=>()=>{const e=Zd(c.modifiedLayout);for(const[t,n]of c.renderHelper.objectMap.entries()){const r=c.isContainerActive&&c.activeTabId===e[t];"setIsActive"in n&&n.setIsActive(r)}},[c]);n(()=>{c.isContainerActive&&u()},[o.objectMap,u,c]),n(()=>{u()},[e,u]),(({activeCharts:e,onSetActiveCharts:t,canSetActiveChart:r=!0})=>{const[o,i]=Oh({onSetActiveCharts:t});i({onSetActiveCharts:t}),n(()=>{if(!r)return;const t=e=>{o.onSetActiveCharts(e)};e.on("setActiveCharts",t);const n=e.getActiveCharts();return n.length>0&&t(n),()=>e.removeListener("setActiveCharts",t)},[e,o,r])})({activeCharts:a,onSetActiveCharts:e=>{if(0===e.length)return;const t=c.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t&&t!==c.activeTabId&&s.setSelected(e)}})},$h={getChar(e){let t,n=e;return n>9?(t=65+n-10,t>90&&(t+=6)):n=`${n}`.charCodeAt(0),!t||[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(n+1):String.fromCharCode(t)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};const Nh={qInfo:{qId:"MasterObjectList",qType:"MasterObjectList"},qAppObjectListDef:{qType:"masterobject",qData:{name:"/qMetaDef/title",labelExpression:"/labelExpression",visualization:"/visualization",tags:"/qMetaDef/tags"}}};class Dh{sessionObject;constructor(e){this.getOrCreateSessionObject(e).catch(()=>{})}getOrCreateSessionObject=async e=>{const t=Nh.qInfo.qId;this.sessionObject=await e.getObject(t).catch(()=>e.createSessionObject(Nh))};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=>!kd.includes(e.visualization))}catch{return[]}}}let zh=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 Bh{model;embed;app;undoRedoModel;chartList;masterVizList;mutex;constructor({embed:e,model:t,app:n,translator:r,mutex:o}){this.model=t,this.embed=e,this.app=n;const i=n;i&&i.getUndoInfoObject&&i.getUndoInfoObject().then(e=>{this.undoRedoModel=e}).catch(()=>{}),n&&(this.masterVizList=new Dh(n)),e&&r&&(this.chartList=new Ad(e,r)),this.mutex=o}rememberAsGroup=async e=>{let t;this.undoRedoModel&&(t=await this.undoRedoModel.startGroup());const n=await e();return t&&this.undoRedoModel&&await this.undoRedoModel.endGroup(t),n};generateProperties=async(e,t)=>await this.embed.generateProperties({type:e,properties:t});async addChild(e,t,n){if(this.model&&!kd.includes(e.visualization))try{await this.mutex.lock();const{model:r}=this,o=async()=>{e.childRefId=$h.id();const o=await r.createChild(e);if(o){const t=await r.getProperties();t.objects.unshift({childRefId:e.childRefId,...n,condition:{qValueExpression:{qExpr:""}}}),await r.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:n,children:r})=>{try{const o=await this.generateProperties(e,t);let i=n?.label||t?.title;if(!i){const n=this.getChart(t?.visualization),r=n?.libraryInfo;i=r?.translation||r?.name||e}const a={...n,label:i};return await this.addChild(o,r,a)}catch{return}};addMasterObjectAsChild=async({initProps:e,objectInitProps:t,children:n})=>{try{if(!e||!e.qExtendsId||!this.app)return;const r=await this.app.getObject(e.qExtendsId),o=await r.getProperties(),i=t?.label||o.title||o.qMetaDef.title,a={...e,qInfo:{qType:"childObject"}},s={...t,label:i};return await this.addChild(a,n,s)}catch{return}};deleteChildren=async e=>{const{model:t}=this;if(0===e.length||!t)return!1;try{await this.mutex.lock();const n=await t.getFullPropertyTree(),{qChildren:r,qProperty:o}=n,i=new Set(e);return n.qChildren=r.filter(({qProperty:e})=>{const t=e.childRefId;return!t||!i.has(t)}),n.qProperty.objects=o.objects.filter(e=>!i.has(e.childRefId)),await t.setFullPropertyTree(n),!0}catch{return!1}finally{this.mutex.unlock()}};moveChild=async(e,t)=>{if(this.model)try{await this.mutex.lock();const n=await this.model.getProperties(),{objects:r}=n,o=r.findIndex(e=>e.childRefId===t);let i=!1;switch(e){case zh.TOP:{if(0===o)break;const e=r.splice(o,1)[0];r.unshift(e),i=!0;break}case zh.BOTTOM:{if(o===r.length-1)break;const e=r.splice(o,1)[0];r.push(e),i=!0;break}case zh.UP:{if(0===o)break;const e=r.splice(o,1)[0];r.splice(o-1,0,e),i=!0;break}case zh.DOWN:{if(o===r.length-1)break;const e=r.splice(o,1)[0];r.splice(o+1,0,e),i=!0;break}}i&&await this.model.setProperties(n)}finally{this.mutex.unlock()}};getCharts=()=>this.chartList?.getCharts()||{};getMasterVizList=()=>this.masterVizList?.getMasterVisualizations()||Promise.resolve([]);getChart=e=>this.chartList?.getChart(e);getChartLabelById=(e,t)=>{const n=e?.qChildList?.qItems.find(e=>e.qInfo.qId===t);if(!n)return"";const{visualization:r,title:o}=n.qData;if(o)return o;const i=this.getChart(r);return i?.libraryInfo?.translation||r}}class Fh{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 Gh={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}},Hh={index:-1,color:"none",alpha:1},Uh=e=>{let t=parseFloat(e[1]),n=parseFloat(e[3]),r=parseFloat(e[5]);return t%=360,n/=100,r/=100,t=Math.max(0,Math.min(t,360)),n=Math.max(0,Math.min(n,1)),r=Math.max(0,Math.min(r,1)),{h:t,s:n,l:r,v:r}},Wh=(e,t,n,r,o=1)=>{let i,a,s,l;switch(n=Math.floor(n)){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]+r,a=l[1]+r,s=l[2]+r,i=Math.round(255*i),a=Math.round(255*a),s=Math.round(255*s),`rgba(${i},${a},${s},${o})`},Vh=e=>{const{h:t,s:n,l:r}=Uh(e),o=e.length>7?parseFloat(e[7]):1,i=r<=.5?2*r*n:(2-2*r)*n,a=t/60,s=i*(1-Math.abs(a%2-1));return Wh(i,s,a,r-.5*i,o)},qh={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 Vh(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 Vh(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:n,v:r}=Uh(e),o=r*n,i=t/60,a=o*(1-Math.abs(i%2-1));return Wh(o,a,i,r-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 n=e&&Gh[e.toLowerCase()];if(n){const e=void 0!==n.a?n.a:1;return`rgba(${n.r},${n.g},${n.b},${e})`}return"none"},getColor({style:e,defaultColor:t,theme:n}){const r=e?.color||Hh;let o;return o=e?.useColorExpression?qh.resolveExpression(e):"string"==typeof r?r:n?.getColorPickerColor(r)||"",o&&"none"!==o?o:t}},Yh=()=>Ut.jsx(Fd,{viewBox:"0 0 16 16",children:Ut.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"})}),Kh=({libraryInfo:e,style:t,id:n})=>Ut.jsx("div",{style:t,"data-testid":"tab-chart-icon",id:n,className:wh.TABS_ICON,children:Ut.jsx(e.IconDefinition,{})}),Xh=({style:e,id:t})=>Ut.jsx("div",{style:e,"data-testid":"tab-hidden-icon",id:t,children:Ut.jsx(Gd,{viewBox:"0 0 16 16",children:Ut.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"})})}),Zh=()=>Ut.jsx(Gd,{viewBox:"0 0 16 16",children:Ut.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"})}),Jh=la(td)({width:28,overflow:"hidden"}),Qh=la(td)({height:28,width:"100%",overflow:"hidden",alignItems:"center","&::before":{visibility:"hidden"}}),ef=(e,t)=>e.find(e=>e.childRefId===t),tf=(e,t)=>!t.edit&&(0===e.condition||!1===e.visible),nf=e=>{const{objects:t,defaultTabId:n,cachedTabId:r}=e;return r||(n&&t.some(e=>e.childRefId===n)?n:t[0]?.childRefId||"")};class rf{modifiedLayout;themeStyle;style;objectMap;activeTabId;theme;constructor({modifiedLayout:e,themeService:t}){this.modifiedLayout=e,this.activeTabId=nf(this.modifiedLayout),this.themeStyle=t.getStyles(),this.theme=t.getTheme(),this.objectMap=Jd(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 n=this.resolveComponentStyle({compPath:"width.unit",themePath:"tabWidth.unit",defaultValue:"%"});return{minWidth:`${t[0]}${n}`,maxWidth:`${t[1]}${n}`}};getTabWidth=e=>{const t=e?.value,n=e?.unit??"%";if(void 0===t||2!==t.length||"left"===this.modifiedLayout.orientation)return{};return{minWidth:`${t[0]}${n}`,maxWidth:`${t[1]}${n}`}};getColorStyle=(e,t=e)=>{const n=this.resolveComponentStyle({compPath:e,themePath:t});return qh.getColor({style:n,theme:this.theme})??n};getTabBackgroundStyle=(e,t)=>{let n;if(this.activeTabId===e){const e=this.resolveComponentStyle({compPath:"background.selected",themePath:""});n=qh.getColor({style:e,theme:this.theme})}return n??qh.getColor({style:t,theme:this.theme})};createTabClasses=()=>this.modifiedLayout.objects?.reduce((e,t)=>{const n=t?.childRefId,r=t?.components?.find(e=>"tab"===e.key);return e[`#tab-${this.modifiedLayout.qInfo.qId}-${n}`]={textAlign:bp(r,"label.alignment"),backgroundColor:this.getTabBackgroundStyle(n,r?.background),...this.getTabWidth(r?.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:bp(r,"label.fontSize"),fontFamily:bp(r,"label.fontFamily"),color:qh.getColor({style:bp(r,"label.color"),theme:this.theme})},e[`#tab-icon-${this.modifiedLayout.qInfo.qId}-${n} svg`]={height:bp(r,"icon.size"),color:qh.getColor({style:bp(r,"icon.color"),theme:this.theme})},e},{});createTabsClasses=()=>({[kh]:{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"})},[Ah]:{height:this.resolveComponentStyle({compPath:"icon.size",themePath:"icon.value.fontSize"}),color:this.getColorStyle("icon.color","icon.value.color")},[Rh]:{textAlign:this.resolveComponentStyle({compPath:"label.alignment",themePath:"label.textAlignment"}),...this.getTabsWidth("top")},[_h]:{..."top"===this.modifiedLayout.orientation&&{borderBottomColor:this.getColorStyle("indicator.hover","indicator.hover.color")}},[Lh]:{...this.getTabsWidth("left"),backgroundColor:this.getColorStyle("background.unselected","")},[Ih]:{backgroundColor:this.getColorStyle("indicator.selected","indicator.selected.color")}});createStyleClasses=()=>({...this.createTabsClasses(),...this.createTabClasses()});getStyleClasses(){return this.style}resolveComponentStyle=({key:e="tabs",compPath:t,themePath:n=t,defaultValue:r})=>{const o=this.modifiedLayout.components?.find(t=>t.key===e);return bp(o,t)??bp(this.themeStyle,n)??r};getTabStyle(e){return this.objectMap[e].components?.find(e=>"tab"===e.key)}}const of=()=>{const e=s(),n=l(),r=c(),o=d(),b=u(),g=p(),v=t(),y=h(),x=f(),E=function({theme:e,config:t={}}){const{id:n,resolve:r=[],transform:o=[],extend:i=[]}=t,a={theme:e,matrix:Mp(r),styles:void 0};return a.styles=$p({theme:e,id:n,transform:o,extend:i,matrix:a.matrix}),{getStyles:()=>a.styles,getTheme:()=>a.theme,setTheme:e=>{a.theme=e,a.styles=$p({theme:e,id:n,transform:o,extend:i,matrix:a.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"]]}}),C=i(()=>new Ad(o,g),[o,g]),[S]=a(()=>new Fh(b?.id)),[w,R]=a(!1),_=i(()=>o&&b&&n?new Bh({embed:o,model:b,app:n,translator:g,mutex:S}):void 0,[o,b,n,g,S]),k=i(()=>Xd(r),[r]),A=i(()=>new rf({modifiedLayout:k,themeService:E}),[k,E]);return i(()=>({app:n,modifiedLayout:k,embed:o,model:b,emitter:y,interactions:x,dataHandler:_,chartList:C,styleModel:A,mutex:S,options:v,accessibility:w,setAccessibility:R,translator:g,element:e}),[k,o,b,n,y,x,_,C,A,S,v,w,g,e])},af=({dataHandler:e,modifiedLayout:t,translator:n,sharedContainerUtilities:r,Icon:o})=>{const[i,a]=_(void 0);if(!e||!t)return null;const s=!t.qExtendsId;return Ut.jsx(jd,{children:Ut.jsxs(Od,{children:[Ut.jsx(o,{}),s?Ut.jsxs(Ut.Fragment,{children:[Ut.jsx(Bd,{sx:{width:250,height:32,fontFamily:"inherit"},className:"init-button",variant:i?"contained":"outlined",onClick:e=>{a(e.currentTarget)},"aria-label":n.get("LayoutContainer.EmptyList.AddContent"),disableRipple:!0,children:n.get("LayoutContainer.EmptyList.AddContent")}),Ut.jsx(Wd,{translator:n,anchorEl:i,dataHandler:e,onClose:()=>{a(void 0)},sharedContainerUtilities:r})]}):Ut.jsx(xs,{variant:"inherit",children:n.get("LayoutContainer.EmptyList.EmptyHint")})]})})};class sf{_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 dependencyData(){return this._dependencyData}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._dependencyData.options.onRenderStatusUpdate?.("Layout container rendering timeout reached after 90 seconds. Resolving anyway."),this.doResolve()},9e4),n=new Promise(t=>{e=t});this._resolver={promise:n,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){e.every(e=>this.rendered.has(e.id))&&(this._dependencyData.options.onRenderStatusUpdate?.("All layout container children rendered"),this.doResolve())}};syncObjects(e){const t=new Set,n=new Set([...Array.from(this.objectMap.keys()),...Array.from(this.objectApis.keys()),...this.rendered]),r=new Set(n);let o=!1;return e.forEach(e=>{n.has(e.id)?(this.rendered.has(e.id)&&t.add(e.id),r.delete(e.id)):o=!0}),r.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._dependencyData.options.onRenderStatusUpdate?.(`Layout container child rendered: ${this.rendered.size+1}/${this._dependencyData.visibleLayoutObjects.length} ${e}`),this.rendered.add(e),this.tryToResolve()}getChildrenObjects(){const{visibleLayoutObjects:e}=this._dependencyData,t=[];return e.forEach(e=>{const n=this.objectMap.get(e.id);n&&t.push(n)}),t}getChildLayout(e){const{modifiedLayout:t}=this._dependencyData;return t.qChildList.qItems.find(t=>t.qInfo.qId===e)}shouldRenderWithQmfeEmbed(e){return!!this._dependencyData.options.useQlikEmbedChildRendering&&!!e}getNebulaOptions(e){const{viewState:t,modifiedLayout:n,options:r}=this._dependencyData;return{isReadonly:!1,isParentMaster:!!n?.qExtendsId,isSnapshot:!!n.snapshotData,...!!t?.viewStates?.[e]&&{viewState:t?.viewStates[e]},...!!t?.layouts?.[e]&&{layout:t.layouts[e]},direction:r.direction,chartAnimations:r.chartAnimations,progressiveRendering:r.progressiveRendering,freeResize:r.freeResize,navigation:r.navigation,disableThemeBorder:r.disableThemeBorder??!1,fallbackToClient:r.fallbackToClient}}getNebulaEmbedOptions(e){const{useQlikEmbedChildRendering:t,getContextMenuParent:n,embedProps:r}=this._dependencyData.options;return{...this.getNebulaOptions(e),setController:t=>{this.saveObject(e,t)},onRendered:()=>{this.onRendered(e)},onInitialRender:()=>{this.onRendered(e)},useQlikEmbedChildRendering:t,getContextMenuParent:n,embedProps:r}}getQmfeEmbedProps(e,t){const{options:n,containerMenu:r={id:"container-menu",icon:"ChartObject"},translator:o}=this._dependencyData,{embedProps:i,getContextMenuParent:a}=n;return{...i,ui:"analytics/chart",objectId:e,preview:!0,appId:t,onRender:()=>{this.onRendered(e)},options:{...i?.options,...this.getNebulaOptions(e)},onError:t=>{const n=this.getChildLayout(e)?.qInfo.qType;console.error("Could not render chart with id",e,n,t)},exposeRefApi:({getVisualizationApi:t})=>{t().then(t=>{const n=t;this.saveObjectApi(e,n),this.saveObject(e,{...n,getViewState:()=>n.getImperativeHandle().then(e=>e.getViewState())})})},onContextMenu:async e=>{try{const t=await(i?.onContextMenu?i.onContextMenu(e):e.contextMenuItems)??[],n=await(a?.(e));return n&&"contextMenuItems"in e&&t.push({id:r.id,icon:{value:r.icon,type:"sprout"},label:o?.get("contextMenu.subMenuContainerOptions")??"Container options",onClick:()=>{},items:n}),t}catch(e){return console.error("Error getting context menu parent options",e),[]}}}}confirmPotentialSelections(e){e&&"selectionsApi"in e&&e.selectionsApi.active&&e.selectionsApi.confirm()}}async function lf(e,t){return t?.runtimeModuleMocks?.[e]?t.runtimeModuleMocks?.[e]:(function(e){if(!window.__qlikMainPrivateResolvers)throw new Error("No main url resolver found");const t=function(e){if(!window.__qlikMainPrivateResolvers)throw new Error("No main url resolver found");let t,n=e?.embedRuntimeUrl||e?.url||e?.host;if(n||"noauth"!==e?.authType||(n="https://cdn.qlikcloud.com/qmfe"),n){for(t=n.toLowerCase().startsWith("https://")||n.toLowerCase().startsWith("http://")?n:`https://${n}`;t.endsWith("/");)t=t.slice(0,-1);return`${t}/qlik-embed/main.js`}}(e);t&&window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig&&window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig({url:t,hostConfig:e}),t&&window.__qlikMainPrivateResolvers.resolveMainJsUrl&&(window.__qlikMainPrivateResolvers.forwardCompatibleHostConfig=e,window.__qlikMainPrivateResolvers.resolveMainJsUrl(t))}(t),async function(e){if(!window.__qlikMainPrivateResolvers?.qlikMainPromise)throw new Error("No main url resolver found");return(await window.__qlikMainPrivateResolvers.qlikMainPromise).import(e)}(e))}window.__qlikMainPrivateResolvers||(window.__qlikMainPrivateResolvers={}),window.__qlikMainPrivateResolvers.mainUrlPromise||(window.__qlikMainPrivateResolvers.mainUrlPromise=new Promise(e=>{window.__qlikMainPrivateResolvers&&(window.__qlikMainPrivateResolvers.resolveMainJsUrl=t=>{e(t)})})),window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise||(window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise=new Promise(e=>{window.__qlikMainPrivateResolvers&&(window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig=t=>{e(t)})})),window.__qlikMainPrivateResolvers.qlikMainPromise||(window.__qlikMainPrivateResolvers.qlikMainPromise=(async()=>{if(window.QlikMain)return window.QlikMain;if(!window.__qlikMainPrivateResolvers?.mainJsUrlAndHostConfigPromise||!window.__qlikMainPrivateResolvers.mainUrlPromise)throw new Error("No main url promise found, report this issue");const e=setTimeout(()=>{console.warn("Waiting for a host parameter pointing to a Qlik runtime system")},5e3),{url:t,hostConfig:n}=await Promise.race([window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise,window.__qlikMainPrivateResolvers.mainUrlPromise.then(e=>({url:e,hostConfig:window.__qlikMainPrivateResolvers?.forwardCompatibleHostConfig}))]);clearTimeout(e);const r=await async function(e,t){if("windowscookie"===t?.authType){if(t.getAccessToken){const n=await async function(e){if("function"==typeof e)return e();if("string"==typeof e){const t=function(e){return globalThis[e]}(e);if("function"!=typeof t)throw new Error(`getAccessToken function "${e}" not found on globalThis. Please make sure it is defined.`);return t()}}(t.getAccessToken);return n&&await fetch(e,{method:"GET",mode:"cors",credentials:"include",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},cache:"no-cache"}),!0}if(t.loginUri&&!(await fetch(e,{method:"GET",mode:"cors",credentials:"include",redirect:"manual"}).catch(()=>({ok:!1}))).ok)return window.location.replace(t.loginUri),new Promise(()=>{})}return!1}(t,n);return new Promise(e=>{if(window.QlikMain)e(window.QlikMain);else{const n=window.document.createElement("script");t&&(n.src=t),r&&(n.crossOrigin="use-credentials"),n.addEventListener("error",()=>{console.error(`Qlik runtime system not found: ${t}`)}),n.addEventListener("load",()=>{window.QlikMain&&e(window.QlikMain)}),window.document.head.appendChild(n)}})})());const cf=A(void 0),df=e=>{const t=I(null),n=I(void 0),{vanillaEmbedFn:r,hostConfig:o,...i}=e;return k(()=>(t.current&&(n.current=r({target:t.current,props:{hostConfig:o,...i}})),()=>{n.current&&n.current.$destroy()}),[]),k(()=>{n.current&&n.current.$set({hostConfig:o,...i})},[i,o]),Ut.jsx("qlik-embed-react",{style:{display:"contents"},ref:t})},uf=e=>{const t=E(cf),{vanillaEmbedFn:n}=function(e){const[t,n]=_({});return k(()=>{e&&lf("embed-vanilla@v1",e).then(({mountVanillaEmbedComponent:e})=>{n({vanillaEmbedFn:e})}).catch(e=>{n({vanillaError:e instanceof Error?e:new Error(String(e))})})},[e]),t}(t);return n?Ut.jsx(df,{hostConfig:t,...e,vanillaEmbedFn:n}):null};const pf=x(function(e,t){const[n,r]=_(null),o=function(e){const t=I(e);return k(()=>{t.current=e},[e]),T(e=>{t.current(e)},[])}(e=>{r(()=>e)});return L(t,()=>n,[n]),Ut.jsx(uf,{exposeRefApi:o,...e})}),hf=new Map,ff=e=>{const t=hf.get(e);t&&(t.unmount(),hf.delete(e))},mf=({chartObject:e,embed:t,renderHelper:n,direction:r,interactions:o,env:i,app:a})=>{const s=I(null),{id:l}=e;k(()=>(l&&s.current&&(async(e,t,n,r,o)=>{const i=o?.id;if(r.shouldRenderWithQmfeEmbed(i))try{const n=Td.createRoot(e);return hf.set(t,n),void n.render(Ut.jsx(cf.Provider,{value:{},children:Ut.jsx(pf,{...r.getQmfeEmbedProps(t,i)})}))}catch(e){console.warn("QlikEmbed mount failed, falling back to embed.render()",t,e),ff(t)}n.render({element:e,id:t,options:r.getNebulaEmbedOptions(t)}).then(e=>{r.saveObjectApi(t,e)}).catch(e=>{const n=r.getChildLayout(t)?.qInfo.qType;console.error("Could not render chart with id",t,n,e)})})(s.current,l,t,n,a),()=>{l&&ff(l)}),[l,t,n,r,a]);const c=P(()=>()=>{if(e?.id&&i.anything){const t=e?.label,{sense:r}=i.anything,o="current",a=n.objectMap.get(e.id);a&&r.propertyPanel.show({model:a.model,parent:o,headerLabel:t,keepCurrentActiveCell:!0})}},[i,e,n]);return k(()=>{const e=s?.current;return e&&o?.edit&&e.addEventListener("dblclick",c),()=>{e?.removeEventListener("dblclick",c)}},[s,c,o]),Ut.jsx("div",{ref:s,style:{position:"relative",height:"100%",width:"100%"},"data-testid":`tab-panel-${e.childRefId}`})};let bf=function(e){return e.TABS_HEIGHT="36px",e}({});const gf=({charts:e,handleChangeTab:t,activeTabId:n,element:r,translator:o,accessibility:i,disabled:a})=>{const[s,l]=C.useState(null),c=Boolean(s),d=()=>{l(null)},u=T(e=>{e?.focus()},[]);return Ut.jsxs(Ut.Fragment,{children:[Ut.jsx(rl,{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:wh.TAB_MENU,sx:{m:"2px"},children:Ut.jsx(Zh,{})}),Ut.jsx(jc,{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=>Ut.jsx(Bc,{className:wh.TAB_MENU_ITEM,ref:n===e.childRefId&&c?u:null,onClick:()=>{(e=>{t(e.childRefId),d(),window.setTimeout(()=>{r.getElementsByClassName(wh.ACTIVE_TAB_PANEL)?.[0]?.focus()},0)})(e)},sx:n===e.childRefId?{backgroundColor:"rgba(0, 0, 0, 0.1)"}:{},"aria-label":e.label,title:e.label,children:Ut.jsx(xs,{variant:"inherit",noWrap:!0,children:e.label})},`chartTabMenu-${e.childRefId}`))})]})},vf=({label:e,id:t})=>Ut.jsx(qs,{className:wh.TAB_LABEL,id:`tab-label-${t}`,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",overflow:"hidden",flexWrap:"wrap"},children:Ut.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})}),yf=({libraryInfo:e,chart:t,iconPosition:n,id:r})=>{let o;switch(n){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||!1===t.visible?Ut.jsx(Xh,{id:`${wh.TABS_ICON}-${r}`,style:o}):e?Ut.jsx(Kh,{id:`${wh.TABS_ICON}-${r}`,libraryInfo:e,style:o}):null},xf=({models:e,activeTabId:t,handleChangeTab:n})=>{const{modifiedLayout:r,chartList:o,interactions:i,accessibility:a}=e,s=o?.getCharts(),l=r.objects.filter(e=>!tf(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:Qh}:{orientation:"horizontal",tabContainerStyle:{display:"flex",flexDirection:"row",alignItems:"center"},ScrollButtonComponent:Jh})(r),p=!1===i.active&&!i.edit,[h,f]=_(!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 Ut.jsxs(qs,{className:wh.TAB_WRAPPER,sx:d,ref:e=>{m(e)},children:[r.useDropdown&&h?Ut.jsx(gf,{charts:l,handleChangeTab:n,activeTabId:t,accessibility:a,translator:e.translator,element:e.element,disabled:p}):null,Ut.jsx(fd,{value:t,onChange:(e,t)=>{n(t)},ScrollButtonComponent:u,variant:"scrollable",orientation:c,scrollButtons:!!r.useScrollButton&&"auto",TabScrollButtonProps:{...p&&{disabled:!0}},sx:{height:"100%",width:"100%",minHeight:bf.TABS_HEIGHT},children:l.map(n=>{const o=Kd(r,n.childRefId)?.qData?.visualization,i=o&&s?.[o]?.libraryInfo,l=e.styleModel.getTabStyle(n.childRefId),d=0===n.condition||r.showIcons&&i&&!1!==l?.icon?.show||!1===n.visible,u="vertical"===c?"top":"start",h=e.styleModel.resolveComponentStyle({compPath:"icon.position",defaultValue:u}),f=e.styleModel.resolveComponentStyle({compPath:"label.show"}),m=n.label&&(l?.label?.show??!1!==f),b=`${r.qInfo.qId}-${n.childRefId}`;return Ut.jsx(Wc,{className:`${wh.TAB} ${t===n.childRefId?wh.ACTIVE_TAB:""}`,disabled:p,id:`tab-${b}`,value:n.childRefId,title:n.label,label:m?Ut.jsx(vf,{label:n.label,id:b}):void 0,icon:d?Ut.jsx(yf,{libraryInfo:i,chart:n,iconPosition:h,id:b}):"",iconPosition:h,"data-testid":`container-tab-${n.childRefId}`,sx:{textAlign:"vertical"!==c||r.showIcons?"center":"start",minWidth:"vertical"===c?"100%":void 0,minHeight:bf.TABS_HEIGHT,padding:"6px 16px","&:hover":{paddingBottom:"4px"},"&.Mui-disabled":{opacity:"inherit"}},"aria-label":n.label,"aria-controls":`tab-panel-${b}`,tabIndex:a&&t===n.childRefId?0:-1},n.childRefId)})})]})},Ef=({models:e,renderHelper:t,activeTabId:n,handleChangeTab:r,env:o})=>{const{modifiedLayout:i,embed:a,interactions:s,options:l,styleModel:c,accessibility:d,app:u}=e,p=i.objects,h=s.edit||!!p.find(e=>0!==e.condition&&!1!==e.visible),f=i.showTabs&&h,m="left"===i.orientation?"row":"column",b=c.getStyleClasses();return Ut.jsxs(qs,{sx:{display:"flex",flexDirection:m,height:"100%",width:"100%",direction:l.direction,...b},children:[f?Ut.jsx(xf,{models:e,activeTabId:n,handleChangeTab:r}):null,p.map(e=>{const r=`tab-panel-${i.qInfo.qId}-${e.childRefId}`,c=n===e.childRefId&&!tf(e,s);return Ut.jsx(qs,{role:"tabpanel",id:r,"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:wh.ACTIVE_TAB_PANEL,tabIndex:d?0:-1}:{hidden:!0},children:c?Ut.jsx(mf,{chartObject:e,renderHelper:t,direction:l.direction,embed:a,interactions:s,env:o,app:u}):null},r)})]})};let Cf=function(e){return e.COPY="copy",e.PASTE="paste",e.RESET_COPY_BUFFER="resetCopyBuffer",e}({}),Sf=function(e){return e.COPY="copy",e.PASTE_AND_REPLACE="paste-and-replace",e.PASTE="paste",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 wf=[Sf.PASTE_AND_REPLACE,Sf.ZOOM_IN,Sf.VISUAL_EXPLORATION],Rf=[Sf.VISUAL_EXPLORATION,Sf.ALERT_GROUP,Sf.SHOW_DETAILS,Sf.EXPLAIN_KEY_DRIVERS,Sf.EXPLAIN_KEY_DRIVERS_OLD_ID],_f=[Sf.DELETE,Sf.CUT,Sf.ADD_TO_MASTER_ITEMS,Sf.UNLINK_VISUALIZATION],kf=[Sf.PASTE_AND_REPLACE],Af=(e,t)=>{const{childRefId:n}=e.model.layout,r=t.objects.find(e=>e.childRefId===n);return{...e,additionalData:{label:r?.label}}},Lf=(e,t,n,r,o)=>{const i=t.getSupportFunction(Sf.COPY);if(!i)return void e.deleteItem(Sf.COPY);const a=()=>{i(Af(n,r)).catch(()=>{})},s=e.items.find(e=>e.id===Sf.COPY);if(s)s.updateItem({select:a});else if(o){const t=e.items.findIndex(e=>e.id===Sf.CUT),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.copy",tid:Sf.COPY,id:Sf.COPY,icon:"copy",select:a,items:[]},n)}},If=e=>e.interactions.edit&&!e.modifiedLayout.qExtendsId,Tf=async(e,t,n,r,o)=>{if(o.flags.isEnabled("GVC_48_CHART_CONTEXT_MENU_ITEM_GENERATION"))return;const i=t.getBuilder("default");if(!i)return;const a=await i();a.addItem({translation:"contextMenu.containerOptionsHeader",tid:Sf.CONTAINER_HEADER,id:Sf.CONTAINER_HEADER,bold:!0,items:[]},0);const s=If(n);a.items.forEach(e=>{(Rf.includes(e.id)||!s&&kf.includes(e.id))&&a.deleteItem(e.id)}),s&&await(async(e,t,n)=>{const r=t.getSupportFunction(Cf.PASTE),o=await(r?.()?.catch(()=>{}));if(!o||kd.includes(o.template))return void e.deleteItem(Sf.PASTE_AND_REPLACE);const i=()=>{n()},a=e.items.find(e=>e.id===Sf.PASTE_AND_REPLACE||e.id===Sf.PASTE);if(a)a.updateItem({translation:"contextMenu.paste",select:i});else{const t=e.items.findLastIndex(e=>e.id===Sf.COPY||e.id===Sf.DEVELOPER||e.id===Sf.CONTAINER_HEADER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.paste",tid:Sf.PASTE_AND_REPLACE,id:Sf.PASTE_AND_REPLACE,icon:"paste",select:i,items:[]},n)}})(a,t,r),e.updateItem({items:a.items}),1===e.items.length&&e.deleteItem(Sf.CONTAINER_HEADER)},Pf="tabbed-container-menu",Mf=e=>{const t={[Sf.MONITOR_IN_HUB]:!0,[Sf.SUBSCRIBE]:!0,[Sf.NOTES_GROUP]:!0,[Sf.DOWNLOAD]:!0,[Sf.SHARE_IMAGE]:!0};e.items.forEach(n=>{t[n.id]?e.deleteItem(n.id):n.items&&Mf(n)})},Of=(e,t,n,r,o,i)=>a=>{const{dataHandler:s,modifiedLayout:l}=r;if(If(r)){n.isInvalid||(((e,t,n,r)=>{const{model:o,modifiedLayout:i}=n,a=e.items.findLastIndex(e=>e.id===Sf.CHART_HEADER||e.id===Sf.REORDER_LAYERS_GROUP),s=a>=0?1+a:void 0;e.addItem({translation:"Object.Container.Props.EditProperties",tid:Sf.EDIT_PROPERTIES,id:Sf.EDIT_PROPERTIES,icon:Sf.EDIT_PROPERTIES,items:[],select:()=>{const{childRefId:e}=t.model.layout,n=i.objects.find(t=>t.childRefId===e),a=n?.label,{sense:s}=r.anything,l=o;s.propertyPanel.show({model:t.model,parent:l,headerLabel:a})}},s)})(a,n,r,o),((e,t,n,r,o,i)=>{const a=r.getSupportFunction(Sf.COPY);if(!a)return void e.deleteItem(Sf.CUT);const s=()=>{o&&a(Af(n,i)).then(async()=>{await(o?.deleteChildren([t]))}).catch(()=>{})},l=e.items.find(e=>e.id===Sf.CUT);if(l)l.updateItem({select:s});else{const t=e.items.findLastIndex(e=>e.id===Sf.ADD_TO_MASTER_ITEMS||e.id===Sf.UNLINK_VISUALIZATION||e.id===Sf.EDIT_PROPERTIES||e.id===Sf.REORDER_LAYERS_GROUP||e.id===Sf.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.cut",tid:Sf.CUT,id:Sf.CUT,icon:"cut",select:s,items:[]},n)}})(a,t,n,e,s,l),Lf(a,e,n,l,!0),((e,t,n,r,o)=>{const i=t.getSupportFunction(Cf.COPY),a=t.getSupportFunction(Cf.PASTE);if(!i||!a)return void e.deleteItem(Sf.DUPLICATE);const s=()=>{i(Af(n,r)).then(()=>{o()}).catch(()=>{})},l=e.items.find(e=>e.id===Sf.DUPLICATE);if(l)l.updateItem({select:s});else{const t=e.items.findIndex(e=>e.id===Sf.COPY),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Duplicate",tid:Sf.DUPLICATE,id:Sf.DUPLICATE,icon:Sf.DUPLICATE,items:[],select:s},n)}})(a,e,n,l,i)),((e,t,n)=>{const r=()=>{n&&n.deleteChildren([t]).catch(()=>{})},o=e.items.find(e=>e.id===Sf.DELETE);if(o)o.updateItem({select:r});else{const t=e.items.findLastIndex(e=>e.id===Sf.DUPLICATE||e.id===Sf.ADD_TO_MASTER_ITEMS||e.id===Sf.UNLINK_VISUALIZATION||e.id===Sf.REORDER_LAYERS_GROUP||e.id===Sf.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Delete",tid:Sf.DELETE,id:Sf.DELETE,icon:"bin",items:[],select:r},n)}})(a,t,s)}else Lf(a,e,n,l,!1)},jf=(e,t,n,r)=>{g(async(o,i,a)=>{if(!a)return!1;const s=((e,t)=>()=>{if(!e)return;const n=t.getSupportFunction(Cf.PASTE);n&&n().then(async({template:t,init:n,children:r,additionalData:o})=>{const{label:i}=o,a={label:i};n.qExtendsId?await e.addMasterObjectAsChild({initProps:n,children:r,objectInitProps:a}):await e.addVizAsChild({type:t,initProps:n,children:r,objectInitProps:a})}).catch(e=>{e&&t.getSupportFunction(Cf.RESET_COPY_BUFFER)})})(n.dataHandler,a);if(await Tf(o,a,n,s,r),Mf(o),!(e=>{let t;t="qv-radial-contextmenu"===e.type?e.touches[0]?.target:e.target;return t&&((e,t)=>{let n=e;for(;n;){if(n.classList?.contains(t))return n;n=n.parentNode}return null})(t,wh.ACTIVE_TAB_PANEL)})(i))return!0;const l=n.modifiedLayout.objects.find(t=>t.childRefId===e)?.id;if(!l)return!0;const c=t.objectMap.get(l);if(!c)return!0;const d=Of(a,e,c,n,r,s),u=await(async(e,t,n,r)=>{const o=If(n),i=e.getBuilder("object");if(!i)return;const a=await i(t);return a.addItem({translation:"contextMenu.chartOptionsHeader",tid:Sf.CHART_HEADER,id:Sf.CHART_HEADER,bold:!0,items:[]},0),r(a),a.items.forEach(e=>{(wf.includes(e.id)||!o&&_f.includes(e.id))&&a.deleteItem(e.id)}),1===a.items.length&&a.deleteItem(Sf.CHART_HEADER),a})(a,c,n,d);return!u||(o.items.length>0&&u.addItem({translation:"contextMenu.subMenuContainerOptions",tid:Pf,id:Pf,icon:"tabbed-container",items:[...o.items]},u.items.length),o.updateItem({items:u.items}),!0)})},$f=({element:e,models:r,env:o,activeCharts:s})=>{const l=((e,t)=>{const[r,o]=a(void 0);return n(()=>{if(0===e.getElementsByClassName(t).length){const n=document.createElement("div");n.className=t,e.appendChild(n);const r=Td.createRoot(n);o(r)}return()=>{r?.unmount()}},[e,t,r]),r})(e,"init-component"),{options:c,modifiedLayout:d,interactions:u,model:p}=r,{qChildList:h}=d,f=_d(c.direction),m=(e=>{const{viewState:n}=t(),{snapshotData:r}=e;if(r){const{layouts:e}=r.objectsData,t=r.viewState?.viewStates;return{layouts:e,viewStates:t}}if(n){const{viewStates:e}=n;return{viewStates:e}}})(d),g=i(()=>nf(d),[d]),v={modifiedLayout:d,activeTabId:g,env:o},[y,x]=Oh(v);x(v);const E=i(()=>d.objects.filter(e=>g===e.childRefId),[g,d.objects]),C=i(()=>({...c,disableThemeBorder:!0}),[c]),{renderHelper:S}=(e=>{const{visibleLayoutObjects:t,options:r}=e,[o]=a(()=>new sf(e)),[,i]=a(r);return o.dependencyData=e,b(async()=>(i(e=>(e!==r&&t.forEach(e=>o.recreateMap.set(e.id,!0)),r)),o.syncObjects(t)?o.createTimerForRendering()?.promise:o.resolver?.promise),[t,r]),n(()=>()=>{o.destroy()},[o]),{renderHelper:o}})({modifiedLayout:d,visibleLayoutObjects:E,viewState:m,options:C,containerMenu:{id:Pf,icon:"TabbedContainerOutline"},translator:r.translator});jf(g,S,r,o);const[w]=a({current:void 0}),R=i(()=>e=>{(async({model:e,patchList:t})=>{if(e?.applyPatches){const n=await e.getEffectiveProperties(),r=[];t.forEach(e=>{const{newValue:t,propertyName:o}=e,i=void 0!==n[o]?"Replace":"Add";t?r.push({qPath:`/${o}`,qOp:i,qValue:JSON.stringify(t)}):"Replace"===i&&r.push({qPath:`/${o}`,qOp:"Remove"})}),r.length>0&&await e.applyPatches(r,!0)}})({model:p,patchList:[{newValue:e,propertyName:"cachedTabId"}]}).then(()=>{const t=y.modifiedLayout.objects.find(t=>t.childRefId===e)?.id;s.updateActiveCharts(t?[t]:[])})},[s,p,y.modifiedLayout.objects]),_=i(()=>({setSelected:e=>{const t=y.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t?R(t):w.current=e[0]}}),[R,y,w]);n(()=>{const e=(({chartObjects:e,activeTabId:t})=>!ef(e,t)&&e.length>0?e[0]?.childRefId:t)({chartObjects:y.modifiedLayout.objects,activeTabId:y.activeTabId});if(e!==y.activeTabId)R(e);else if(w.current){const e=y.modifiedLayout.objects.find(e=>e.id===w.current)?.childRefId;e&&R(e)}w.current=void 0},[d?.objects.length,y,w,R]),n(()=>{const e=(({chartObjects:e,activeTabId:t,interactions:n})=>{const r=ef(e,t);if(!r||tf(r,n)){const n=e.find(e=>0!==e.condition&&!1!==e.visible);return n?.childRefId||t}return t})({chartObjects:y.modifiedLayout.objects,activeTabId:y.activeTabId,interactions:u});e!==y.activeTabId&&R(e)},[u,d?.objects,y,R]);const k=0===h.qItems.length&&u.edit;return n(()=>{l?.render(Ut.jsxs(da,{theme:f,children:[k?Ut.jsx(af,{Icon:Yh,dataHandler:r.dataHandler,modifiedLayout:r.modifiedLayout,translator:r.translator,sharedContainerUtilities:_}):null,!k&&Ut.jsx(Ef,{models:r,renderHelper:S,activeTabId:g,handleChangeTab:R,env:o})]}))},[l,r,f,k,S,g,_,R,o]),{renderHelper:S,sharedContainerUtilities:_,activeTabId:g}};var Nf={targets:[]};const Df={showTitles:!0,title:"",subtitle:"",footnote:"",disableNavMenu:!0,showDetails:!1,objects:[],qChildListDef:{qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition",visible:"/visible"}},showTabs:!0,useScrollButton:!0,useDropdown:!1,showIcons:!1,components:[],defaultTabId:"",orientation:"top",fontsUsed:[]};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".init-component {\n height: 100%;\n overflow: hidden;\n}\n");const zf=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:n=>t(n)&&e.canReceive(n)}}return e}),Bf=(e,t)=>{let n=!0;const r=t.objects.reduce((t,r)=>{const o=r.id;if(0!==r.condition&&!1!==r.visible){const i=e.get(o);return i&&(e=>e.supportExport())(i)&&(n=!1,t.objectMap.set(o,i)),t.objects.push(r),t}return t},{objects:[],objectMap:new Map});return n?{objects:[],objectMap:new Map}:r},Ff=new class{translator;muiTheme;containers={};sync=({element:e,sharedContainerUtilities:t,translator:n,containerId:r,dataHandler:o,renderHelper:i,chartList:a})=>{this.translator=n,this.containers[r]={element:e,sharedContainerUtilities:t,dataHandler:o,renderHelper:i,chartList:a}};setMuiTheme=e=>{this.muiTheme=_d(e)};destroy=e=>{delete this.containers[e]}}}}});
|