@nebula.js/sn-tabbed-container 2.16.0 → 2.17.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/sn-tabbed-container.json +2 -2
- package/api-specification/spec.json +1 -1
- package/core/esm/index.js +6 -8
- package/dist/sn-tabbed-container.js +6 -8
- package/dist/sn-tabbed-container.systemjs.js +6 -8
- package/package.json +10 -10
- package/sn-tabbed-container-ext/dist/sn-tabbed-container.js +6 -8
- 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.17.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,u,c,d,p,h,f,m,b,g,v,y,E,C,D,x,A,S,w,R,F,_,k,I,B,L,T;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,u=e.useStaleLayout,c=e.useEmbed,d=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,E=e.forwardRef,C=e.useContext,D=e.default,x=e.isValidElement,A=e.cloneElement,S=e.Children,w=e.useState,R=e.useEffect,F=e.createContext,_=e.useImperativeHandle,k=e.useRef,I=e.useCallback,B=e.useMemo},function(e){L=e.default,T=e}],execute:function(){e("default",function(e){return{qae:{properties:Uf,data:Hf},ext:bh({env:e,propertyHandlerData:qf}),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(M).forEach(t=>{e.add(M[t])})}}(n)},[n]);const{dataHandler:r,model:o,accessibility:s,setAccessibility:l,interactions:u,element:c,modifiedLayout:d}=t,h=i(()=>function(){const e=new $.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}=Gf({element:c,models:t,env:e,activeCharts:h});gh({containerId:o?.id||"",element:c,sharedContainerUtilities:m,translator:n,dataHandler:r,propertyHandlerData:qf,renderHelper:f});const[g,y]=a(!0);Ph({isContainerActive:g,activeTabId:b,renderHelper:f,modifiedLayout:d,activeCharts:h,sharedContainerUtilities:m}),Lh({element:c,accessibility:s,setAccessibility:l,renderHelper:f,interactions:u,env:e,models:t});const{getViewState:E}=Ch(f,Wf);v(()=>({getViewState:E,getChildrenObjects(){const e=f.getChildrenObjects();return Vf(e)},updateActiveState(e){y(e)},activeCharts:h}),[])}}});var P,O,M={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 j(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function N(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 $=function(){if(O)return P;O=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},P=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},P}();function z(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:z}),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 V(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 W=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 ue(e){return e.length}function ce(e,t){return t.push(e),e}var de=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:de,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,de--),me}function Ee(){return me=fe<he?ae(be,fe++):0,pe++,10===me&&(pe=1,de++),me}function Ce(){return ae(be,fe)}function De(){return fe}function xe(e,t){return se(be,e,t)}function Ae(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 Se(e){return de=pe=1,he=le(be=e),fe=0,[]}function we(e){return be="",e}function Re(e){return re(xe(fe-1,ke(91===e?e+2:40===e?e+1:e)))}function Fe(e){for(;(me=Ce())&&me<33;)Ee();return Ae(e)>2||Ae(me)>3?"":" "}function _e(e,t){for(;--t&&Ee()&&!(me<48||me>102||me>57&&me<65||me>70&&me<97););return xe(e,De()+(t<6&&32==Ce()&&32==Ee()))}function ke(e){for(;Ee();)switch(me){case e:return fe;case 34:case 39:34!==e&&39!==e&&ke(me);break;case 40:41===e&&ke(e);break;case 92:Ee()}return fe}function Ie(e,t){for(;Ee()&&e+me!==57&&(e+me!==84||47!==Ce()););return"/*"+xe(t,fe-1)+"*"+te(47===e?e:Ee())}function Be(e){for(;!Ae(Ce());)Ee();return xe(e,fe)}function Le(e){return we(Te("",null,null,null,[""],e=Se(e),0,[0],e))}function Te(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,h=0,f=0,m=1,b=1,g=1,v=0,y="",E=o,C=i,D=r,x=y;b;)switch(f=v,v=Ee()){case 40:if(108!=f&&58==ae(x,d-1)){-1!=ie(x+=oe(Re(v),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:x+=Re(v);break;case 9:case 10:case 13:case 32:x+=Fe(f);break;case 92:x+=_e(De()-1,7);continue;case 47:switch(Ce()){case 42:case 47:ce(Oe(Ie(Ee(),De()),t,n),l);break;default:x+="/"}break;case 123*m:s[u++]=le(x)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+c:-1==g&&(x=oe(x,/\f/g,"")),h>0&&le(x)-d&&ce(h>32?Me(x+";",r,n,d-1):Me(oe(x," ","")+";",r,n,d-2),l);break;case 59:x+=";";default:if(ce(D=Pe(x,t,n,u,c,o,s,y,E=[],C=[],d),i),123===v)if(0===c)Te(x,t,D,D,E,i,d,s,C);else switch(99===p&&110===ae(x,3)?100:p){case 100:case 108:case 109:case 115:Te(e,D,D,r&&ce(Pe(e,D,D,0,0,o,s,y,o,E=[],d),C),o,C,d,s,r?E:C);break;default:Te(x,D,D,D,[""],C,0,s,C)}}u=c=h=0,m=g=1,y=x="",d=a;break;case 58:d=1+le(x),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==ye())continue;switch(x+=te(v),v*m){case 38:g=c>0?1:(x+="\f",-1);break;case 44:s[u++]=(le(x)-1)*g,g=1;break;case 64:45===Ce()&&(x+=Re(Ee())),p=Ce(),c=d=le(y=x+=Be(De())),v++;break;case 45:45===f&&2==le(x)&&(m=0)}}return i}function Pe(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,p=0===o?i:[""],h=ue(p),f=0,m=0,b=0;f<r;++f)for(var g=0,v=se(e,d+1,d=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,u,c)}function Oe(e,t,n){return ge(e,t,n,X,te(me),se(e,2,-2),0)}function Me(e,t,n,r){return ge(e,t,n,J,se(e,0,r),se(e,r+1,-1),r)}function je(e,t){for(var n="",r=ue(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ne(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+"{"+je(e.children,r)+"}";case Z:e.value=e.props.join(",")}return le(n=je(e.children,r))?e.return=e.value+"{"+n+"}":""}function $e(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ze=function(e,t,n){for(var r=0,o=0;r=o,o=Ce(),38===r&&12===o&&(t[n]=1),!Ae(o);)Ee();return xe(e,fe)},Ge=function(e,t){return we(function(e,t){var n=-1,r=44;do{switch(Ae(r)){case 0:38===r&&12===Ce()&&(t[n]=1),e[n]+=ze(fe-1,t,n);break;case 2:e[n]+=Re(r);break;case 4:if(44===r){e[++n]=58===Ce()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=te(r)}}while(r=Ee());return e}(Se(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 u=0;u<a.length;u++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},Ve=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function We(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")?We(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=We(e.value,e.length);break;case Q:return je([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 je([ve(e,{props:[oe(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return je([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,u,c=[Ne,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=ue(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,Ve].concat(i,c));o=function(e,t,n,r){l=n,function(e){je(Le(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new W({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,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=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 u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case f:case h:case a:return e;default:return p}}case n:return p}}}function E(e){return y(e)===u}return et.AsyncMode=l,et.ConcurrentMode=u,et.ContextConsumer=s,et.ContextProvider=a,et.Element=t,et.ForwardRef=c,et.Fragment=r,et.Lazy=f,et.Memo=h,et.Portal=n,et.Profiler=i,et.StrictMode=o,et.Suspense=d,et.isAsyncMode=function(e){return E(e)||y(e)===l},et.isConcurrentMode=E,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)===c},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)===d},et.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||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,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;Ke=function e(t,r,o){if("string"!=typeof r){if(d){var p=c(r);p&&p!==d&&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=u(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)},ut=function(e){return null!=e&&"boolean"!=typeof e},ct=$e(function(e){return lt(e)?e:e.replace(at,"-$&").toLowerCase()}),dt=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]+"}":ut(s)&&(r+=ct(i)+":"+dt(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+=ct(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)ut(a[u])&&(r+=ct(i)+":"+dt(i,a[u])+";")}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 u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}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 u=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:u,styles:o,next:ht}}var bt,gt,vt=!!y.useInsertionEffect&&y.useInsertionEffect,yt=vt||function(e){return e()},Et=vt||y.useLayoutEffect,Ct=y.createContext("undefined"!=typeof HTMLElement?Je({key:"css"}):null),Dt=Ct.Provider,xt=function(e){return E(function(t,n){var r=C(Ct);return e(t,r,n)})},At=y.createContext({}),St={}.hasOwnProperty,wt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Rt=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},Ft=xt(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[wt],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(At));a+=t.key+"-"+s.name;var l={};for(var u in e)St.call(e,u)&&"css"!==u&&u!==wt&&(l[u]=e[u]);return l.className=a,n&&(l.ref=n),y.createElement(y.Fragment,null,y.createElement(Rt,{cache:t,serialized:s,isStringTag:"string"==typeof o}),y.createElement(o,l))}),_t=function(e,t){var n=arguments;if(null==t||!St.call(t,"css"))return y.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Ft,o[1]=function(e,t){var n={};for(var r in t)St.call(t,r)&&(n[r]=t[r]);return n[wt]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return y.createElement.apply(null,o)};bt=_t||(_t={}),gt||(gt=bt.JSX||(bt.JSX={}));var kt=xt(function(e,t){var n=mt([e.styles],void 0,y.useContext(At)),r=y.useRef();return Et(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]),Et(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 It(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mt(t)}function Bt(){var e=It.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 Lt=/^((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)-.*))$/,Tt=$e(function(e){return Lt.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Pt=function(e){return"theme"!==e},Ot=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Tt:Pt},Mt=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},jt=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},Nt=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=Mt(t,n,i),l=s||Ot(a),u=!l("as");return function(){var c=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var p=c[0];d.push(p[0]);for(var h=c.length,f=1;f<h;f++)d.push(c[f],p[f])}var m=xt(function(e,t,n){var r=u&&e.as||a,i="",c=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=y.useContext(At)}"string"==typeof e.className?i=nt(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var f=mt(d.concat(c),t.registered,p);i+=t.key+"-"+f.name,void 0!==o&&(i+=" "+o);var m=u&&void 0===s?Ot(r):l,b={};for(var g in e)u&&"as"===g||m(g)&&(b[g]=e[g]);return b.className=i,n&&(b.ref=n),y.createElement(y.Fragment,null,y.createElement(jt,{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=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,U({},n,r,{shouldForwardProp:Mt(m,r,!0)})).apply(void 0,d)},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){Nt[e]=Nt(e)});var $t,zt,Gt={exports:{}},Ht={};var Ut=(zt||(zt=1,Gt.exports=function(){if($t)return Ht;$t=1;var e=D,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={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=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:u,ref:c,props:l,_owner:o.current}}return Ht.Fragment=n,Ht.jsx=a,Ht.jsxs=a,Ht}()),Gt.exports);const Vt=new Map;function Wt(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(kt,{styles:r})}
|
|
7
|
+
System.register(["@nebula.js/stardust","react","react-dom"],function(e){"use strict";var t,n,r,o,i,a,s,l,u,c,d,p,h,f,m,b,g,v,y,C,E,D,x,A,S,w,R,F,_,k,B,I,L,T;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,u=e.useStaleLayout,c=e.useEmbed,d=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,C=e.forwardRef,E=e.useContext,D=e.default,x=e.isValidElement,A=e.cloneElement,S=e.Children,w=e.useState,R=e.useEffect,F=e.createContext,_=e.useImperativeHandle,k=e.useRef,B=e.useCallback,I=e.useMemo},function(e){L=e.default,T=e}],execute:function(){e("default",function(e){return{qae:{properties:kh,data:_h},ext:ap({env:e,propertyHandlerData:Th}),component(){const t=Yp(),n=p();i(()=>{!function(e){if(e&&e.get&&e.add){const t="LayoutContainer.EmptyList.AddContent";if(e.get(t)!==t)return;Object.keys(M).forEach(t=>{e.add(M[t])})}}(n)},[n]);const{dataHandler:r,model:o,accessibility:s,setAccessibility:l,interactions:u,element:c,modifiedLayout:d}=t,h=i(()=>function(){const e=new N.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}=Fh({element:c,models:t,env:e,activeCharts:h});sp({containerId:o?.id||"",element:c,sharedContainerUtilities:m,translator:n,dataHandler:r,propertyHandlerData:Th,renderHelper:f});const[g,y]=a(!0);Sp({isContainerActive:g,activeTabId:b,renderHelper:f,modifiedLayout:d,activeCharts:h,sharedContainerUtilities:m}),Lh({env:e,models:t,sharedContainerUtilities:m}),xp({element:c,accessibility:s,setAccessibility:l,renderHelper:f,interactions:u,env:e,models:t});const{getViewState:C}=dp(f,Ih);v(()=>({getViewState:C,getChildrenObjects(){const e=f.getChildrenObjects();return Bh(e)},updateActiveState(e){y(e)},activeCharts:h}),[])}}});var P,O,M={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 j(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $(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 N=function(){if(O)return P;O=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},P=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},P}();function z(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:z}),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 ue(e){return e.length}function ce(e,t){return t.push(e),e}var de=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:de,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,de--),me}function Ce(){return me=fe<he?ae(be,fe++):0,pe++,10===me&&(pe=1,de++),me}function Ee(){return ae(be,fe)}function De(){return fe}function xe(e,t){return se(be,e,t)}function Ae(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 Se(e){return de=pe=1,he=le(be=e),fe=0,[]}function we(e){return be="",e}function Re(e){return re(xe(fe-1,ke(91===e?e+2:40===e?e+1:e)))}function Fe(e){for(;(me=Ee())&&me<33;)Ce();return Ae(e)>2||Ae(me)>3?"":" "}function _e(e,t){for(;--t&&Ce()&&!(me<48||me>102||me>57&&me<65||me>70&&me<97););return xe(e,De()+(t<6&&32==Ee()&&32==Ce()))}function ke(e){for(;Ce();)switch(me){case e:return fe;case 34:case 39:34!==e&&39!==e&&ke(me);break;case 40:41===e&&ke(e);break;case 92:Ce()}return fe}function Be(e,t){for(;Ce()&&e+me!==57&&(e+me!==84||47!==Ee()););return"/*"+xe(t,fe-1)+"*"+te(47===e?e:Ce())}function Ie(e){for(;!Ae(Ee());)Ce();return xe(e,fe)}function Le(e){return we(Te("",null,null,null,[""],e=Se(e),0,[0],e))}function Te(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,h=0,f=0,m=1,b=1,g=1,v=0,y="",C=o,E=i,D=r,x=y;b;)switch(f=v,v=Ce()){case 40:if(108!=f&&58==ae(x,d-1)){-1!=ie(x+=oe(Re(v),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:x+=Re(v);break;case 9:case 10:case 13:case 32:x+=Fe(f);break;case 92:x+=_e(De()-1,7);continue;case 47:switch(Ee()){case 42:case 47:ce(Oe(Be(Ce(),De()),t,n),l);break;default:x+="/"}break;case 123*m:s[u++]=le(x)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+c:-1==g&&(x=oe(x,/\f/g,"")),h>0&&le(x)-d&&ce(h>32?Me(x+";",r,n,d-1):Me(oe(x," ","")+";",r,n,d-2),l);break;case 59:x+=";";default:if(ce(D=Pe(x,t,n,u,c,o,s,y,C=[],E=[],d),i),123===v)if(0===c)Te(x,t,D,D,C,i,d,s,E);else switch(99===p&&110===ae(x,3)?100:p){case 100:case 108:case 109:case 115:Te(e,D,D,r&&ce(Pe(e,D,D,0,0,o,s,y,o,C=[],d),E),o,E,d,s,r?C:E);break;default:Te(x,D,D,D,[""],E,0,s,E)}}u=c=h=0,m=g=1,y=x="",d=a;break;case 58:d=1+le(x),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==ye())continue;switch(x+=te(v),v*m){case 38:g=c>0?1:(x+="\f",-1);break;case 44:s[u++]=(le(x)-1)*g,g=1;break;case 64:45===Ee()&&(x+=Re(Ce())),p=Ee(),c=d=le(y=x+=Ie(De())),v++;break;case 45:45===f&&2==le(x)&&(m=0)}}return i}function Pe(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,p=0===o?i:[""],h=ue(p),f=0,m=0,b=0;f<r;++f)for(var g=0,v=se(e,d+1,d=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,u,c)}function Oe(e,t,n){return ge(e,t,n,X,te(me),se(e,2,-2),0)}function Me(e,t,n,r){return ge(e,t,n,J,se(e,0,r),se(e,r+1,-1),r)}function je(e,t){for(var n="",r=ue(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function $e(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+"{"+je(e.children,r)+"}";case Z:e.value=e.props.join(",")}return le(n=je(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ne(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ze=function(e,t,n){for(var r=0,o=0;r=o,o=Ee(),38===r&&12===o&&(t[n]=1),!Ae(o);)Ce();return xe(e,fe)},Ge=function(e,t){return we(function(e,t){var n=-1,r=44;do{switch(Ae(r)){case 0:38===r&&12===Ee()&&(t[n]=1),e[n]+=ze(fe-1,t,n);break;case 2:e[n]+=Re(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=Ce());return e}(Se(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 u=0;u<a.length;u++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+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 je([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 je([ve(e,{props:[oe(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return je([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,u,c=[$e,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=ue(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,c));o=function(e,t,n,r){l=n,function(e){je(Le(e),d)}(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,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=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 u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case f:case h:case a:return e;default:return p}}case n:return p}}}function C(e){return y(e)===u}return et.AsyncMode=l,et.ConcurrentMode=u,et.ContextConsumer=s,et.ContextProvider=a,et.Element=t,et.ForwardRef=c,et.Fragment=r,et.Lazy=f,et.Memo=h,et.Portal=n,et.Profiler=i,et.StrictMode=o,et.Suspense=d,et.isAsyncMode=function(e){return C(e)||y(e)===l},et.isConcurrentMode=C,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)===c},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)===d},et.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||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,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;Ke=function e(t,r,o){if("string"!=typeof r){if(d){var p=c(r);p&&p!==d&&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=u(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)},ut=function(e){return null!=e&&"boolean"!=typeof e},ct=Ne(function(e){return lt(e)?e:e.replace(at,"-$&").toLowerCase()}),dt=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]+"}":ut(s)&&(r+=ct(i)+":"+dt(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+=ct(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)ut(a[u])&&(r+=ct(i)+":"+dt(i,a[u])+";")}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 u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}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 u=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:u,styles:o,next:ht}}var bt,gt,vt=!!y.useInsertionEffect&&y.useInsertionEffect,yt=vt||function(e){return e()},Ct=vt||y.useLayoutEffect,Et=y.createContext("undefined"!=typeof HTMLElement?Je({key:"css"}):null),Dt=Et.Provider,xt=function(e){return C(function(t,n){var r=E(Et);return e(t,r,n)})},At=y.createContext({}),St={}.hasOwnProperty,wt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Rt=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},Ft=xt(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[wt],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(At));a+=t.key+"-"+s.name;var l={};for(var u in e)St.call(e,u)&&"css"!==u&&u!==wt&&(l[u]=e[u]);return l.className=a,n&&(l.ref=n),y.createElement(y.Fragment,null,y.createElement(Rt,{cache:t,serialized:s,isStringTag:"string"==typeof o}),y.createElement(o,l))}),_t=function(e,t){var n=arguments;if(null==t||!St.call(t,"css"))return y.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Ft,o[1]=function(e,t){var n={};for(var r in t)St.call(t,r)&&(n[r]=t[r]);return n[wt]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return y.createElement.apply(null,o)};bt=_t||(_t={}),gt||(gt=bt.JSX||(bt.JSX={}));var kt=xt(function(e,t){var n=mt([e.styles],void 0,y.useContext(At)),r=y.useRef();return Ct(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]),Ct(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 Bt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mt(t)}function It(){var e=Bt.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 Lt=/^((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)-.*))$/,Tt=Ne(function(e){return Lt.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Pt=function(e){return"theme"!==e},Ot=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Tt:Pt},Mt=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},jt=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},$t=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=Mt(t,n,i),l=s||Ot(a),u=!l("as");return function(){var c=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var p=c[0];d.push(p[0]);for(var h=c.length,f=1;f<h;f++)d.push(c[f],p[f])}var m=xt(function(e,t,n){var r=u&&e.as||a,i="",c=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=y.useContext(At)}"string"==typeof e.className?i=nt(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var f=mt(d.concat(c),t.registered,p);i+=t.key+"-"+f.name,void 0!==o&&(i+=" "+o);var m=u&&void 0===s?Ot(r):l,b={};for(var g in e)u&&"as"===g||m(g)&&(b[g]=e[g]);return b.className=i,n&&(b.ref=n),y.createElement(y.Fragment,null,y.createElement(jt,{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=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,U({},n,r,{shouldForwardProp:Mt(m,r,!0)})).apply(void 0,d)},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){$t[e]=$t(e)});var Nt,zt,Gt={exports:{}},Ht={};var Ut=(zt||(zt=1,Gt.exports=function(){if(Nt)return Ht;Nt=1;var e=D,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={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=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:u,ref:c,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(kt,{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 Nt(e,t)}const Yt=[];function Kt(e){return Yt[0]=e,mt(Yt)}var Xt=Object.freeze({__proto__:null,GlobalStyles:Wt,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=y.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&Vt.has(e))return Vt.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 Vt.set(e,r),r},[t,n]);return t||n?Ut.jsx(Dt,{value:o,children:r}):r},ThemeContext:At,css:It,default:qt,internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:Kt,keyframes:Bt});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=V(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 u(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:u,only:function(e){return a.indexOf(e)+1<a.length?u(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]):u(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 un(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function cn(e){if("string"!=typeof e)throw new Error(z(7));return e.charAt(0).toUpperCase()+e.slice(1)}var dn=Object.freeze({__proto__:null,default:cn});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?"":cn(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"],En=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Cn(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 Dn(e){return Cn(e,"spacing",8)}function xn(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 An(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=xn(t,n),e),{})}(vn(n),r);return ln(e,e[n],o)}function Sn(e,t){const n=Dn(e.theme);return Object.keys(e).map(r=>An(e,t,r,n)).reduce(on,{})}function wn(e){return Sn(e,yn)}function Rn(e){return Sn(e,En)}function Fn(...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 _n(e){return"number"!=typeof e?e:`${e}px solid`}function kn(e,t){return fn({prop:e,themeKey:"borders",transform:t})}wn.propTypes={},wn.filterProps=yn,Rn.propTypes={},Rn.filterProps=En;const In=kn("border",_n),Bn=kn("borderTop",_n),Ln=kn("borderRight",_n),Tn=kn("borderBottom",_n),Pn=kn("borderLeft",_n),On=kn("borderColor"),Mn=kn("borderTopColor"),jn=kn("borderRightColor"),Nn=kn("borderBottomColor"),$n=kn("borderLeftColor"),zn=kn("outline",_n),Gn=kn("outlineColor"),Hn=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Cn(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:xn(t,e)});return ln(e,e.borderRadius,n)}return null};Hn.propTypes={},Hn.filterProps=["borderRadius"],Fn(In,Bn,Ln,Tn,Pn,On,Mn,jn,Nn,$n,Hn,zn,Gn);const Un=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Cn(e.theme,"spacing",8),n=e=>({gap:xn(t,e)});return ln(e,e.gap,n)}return null};Un.propTypes={},Un.filterProps=["gap"];const Vn=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Cn(e.theme,"spacing",8),n=e=>({columnGap:xn(t,e)});return ln(e,e.columnGap,n)}return null};Vn.propTypes={},Vn.filterProps=["columnGap"];const Wn=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Cn(e.theme,"spacing",8),n=e=>({rowGap:xn(t,e)});return ln(e,e.rowGap,n)}return null};Wn.propTypes={},Wn.filterProps=["rowGap"];function qn(e,t){return"grey"===t?t:e}Fn(Un,Vn,Wn,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}Fn(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});Fn(Kn,Xn,Zn,Jn,Qn,er,fn({prop:"boxSizing"}));const tr={border:{themeKey:"borders",transform:_n},borderTop:{themeKey:"borders",transform:_n},borderRight:{themeKey:"borders",transform:_n},borderBottom:{themeKey:"borders",transform:_n},borderLeft:{themeKey:"borders",transform:_n},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_n},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:Rn},pt:{style:Rn},pr:{style:Rn},pb:{style:Rn},pl:{style:Rn},px:{style:Rn},py:{style:Rn},padding:{style:Rn},paddingTop:{style:Rn},paddingRight:{style:Rn},paddingBottom:{style:Rn},paddingLeft:{style:Rn},paddingX:{style:Rn},paddingY:{style:Rn},paddingInline:{style:Rn},paddingInlineStart:{style:Rn},paddingInlineEnd:{style:Rn},paddingBlock:{style:Rn},paddingBlockStart:{style:Rn},paddingBlockEnd:{style:Rn},m:{style:wn},mt:{style:wn},mr:{style:wn},mb:{style:wn},ml:{style:wn},mx:{style:wn},my:{style:wn},margin:{style:wn},marginTop:{style:wn},marginRight:{style:wn},marginBottom:{style:wn},marginLeft:{style:wn},marginX:{style:wn},marginY:{style:wn},marginInline:{style:wn},marginInlineStart:{style:wn},marginInlineEnd:{style:wn},marginBlock:{style:wn},marginBlockStart:{style:wn},marginBlockEnd:{style:wn},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:Wn},columnGap:{style:Vn},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:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=pn(n,s)||{};if(u)return u(o);return ln(o,t,t=>{let n=hn(c,l,t);return t===n&&"string"==typeof t&&(n=hn(c,l,`${e}${"default"===t?"":cn(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 u=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])u=on(u,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)?u=on(u,e):u[n]=t({sx:o,theme:i,nested:!0})}else u=on(u,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":un(l,u)}:un(l,u)}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=V(e,ir),s=nn(n),l=function(e=8){if(e.mui)return e;const t=Dn({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 u=Qt({breakpoints:s,direction:"ltr",components:{},palette:U({mode:"light"},r),spacing:l,shape:U({},rn,i)},a);return u.applyStyles=or,u=t.reduce((e,t)=>Qt(e,t),u),u.unstable_sxConfig=U({},tr,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return rr({sx:e,theme:this})},u}var sr=Object.freeze({__proto__:null,default:ar,private_createBreakpoints:nn,unstable_applyStyles:or});function lr(e=null){const t=y.useContext(At);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const ur=ar();function cr(e=ur){return lr(e)}function dr(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=cr(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>dr("function"==typeof e?e(o):e)):dr(i)),Ut.jsx(Wt,{styles:i})}const hr=["sx"];function fr(e){const{sx:t}=e,n=V(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 Er=["className","component"];const Cr={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 Dr(e,t,n="Mui"){const r=Cr[t];return r?`${n}-${r}`:`${gr.generate(e)}-${t}`}function xr(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Dr(e,t,n)}),r}var Ar,Sr,wr={exports:{}},Rr={};function Fr(){if(Ar)return Rr;Ar=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"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=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 u:case p:return h;default:switch(h=h&&h.$$typeof){case a:case s:case d:case c:case i:return h;default:return f}}case t:return f}}}return Rr.ContextConsumer=i,Rr.ContextProvider=a,Rr.Element=e,Rr.ForwardRef=s,Rr.Fragment=n,Rr.Lazy=d,Rr.Memo=c,Rr.Portal=t,Rr.Profiler=o,Rr.StrictMode=r,Rr.Suspense=l,Rr.SuspenseList=u,Rr.isContextConsumer=function(e){return f(e)===i},Rr.isContextProvider=function(e){return f(e)===a},Rr.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Rr.isForwardRef=function(e){return f(e)===s},Rr.isFragment=function(e){return f(e)===n},Rr.isLazy=function(e){return f(e)===d},Rr.isMemo=function(e){return f(e)===c},Rr.isPortal=function(e){return f(e)===t},Rr.isProfiler=function(e){return f(e)===o},Rr.isStrictMode=function(e){return f(e)===r},Rr.isSuspense=function(e){return f(e)===l},Rr.isSuspenseList=function(e){return f(e)===u},Rr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===h||void 0!==e.getModuleId)},Rr.typeOf=f,Rr}function _r(){return Sr||(Sr=1,wr.exports=Fr()),wr.exports}var kr=_r();const Ir=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Br(e){const t=`${e}`.match(Ir);return t&&t[1]||""}function Lr(e,t=""){return e.displayName||e.name||Br(e)||t}function Tr(e,t,n){const r=Lr(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Pr=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Lr(e,"Component");if("object"==typeof e)switch(e.$$typeof){case kr.ForwardRef:return Tr(e,e.render,"ForwardRef");case kr.Memo:return Tr(e,e.type,"memo");default:return}}},getFunctionName:Br});function Or(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]=Or(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}const Mr="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function jr(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Nr=Object.freeze({__proto__:null,default:jr});function $r(e){if(e.type)return e;if("#"===e.charAt(0))return $r(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(z(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(z(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function zr(e,t){return e=$r(e),t=function(e,t=0,n=1){return jr(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 Vr(e){return Ur(e).defaultView||window}function Wr(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 Mr(()=>{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=>{Wr(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 uo(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 co(){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!!uo(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 Eo=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Co(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=V(e,Eo),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:u}=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),u=t(a),c=yr(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=U({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=U({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(U({},a,{externalSlotProps:s})),c=function(e,t,n){return void 0===e||go(e)?t:U({},t,{ownerState:U({},t.ownerState,n)})}(n,U({},l,{ref:Zr(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Do(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 xo=y.createContext(null);function Ao(){return y.useContext(xo)}var So="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function wo(e){const{children:t,theme:n}=e,r=Ao(),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[So]=null!==r),e},[n,r]);return Ut.jsx(xo.Provider,{value:o,children:t})}const Ro=["value"],Fo=y.createContext();function _o(e){let{value:t}=e,n=V(e,Ro);return Ut.jsx(Fo.Provider,U({value:null==t||t},n))}const ko=()=>{const e=y.useContext(Fo);return null!=e&&e},Io=y.createContext(void 0);function Bo({value:e,children:t}){return Ut.jsx(Io.Provider,{value:e,children:t})}function Lo({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?Or(o.defaultProps,r):o.styleOverrides||o.variants?r:Or(o,r)}({props:e,name:t,theme:{components:y.useContext(Io)}})}const To={};function Po(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 Oo(e){const{children:t,theme:n,themeId:r}=e,o=lr(To),i=Ao()||To,a=Po(r,o,n),s=Po(r,i,n,!0),l="rtl"===a.direction,u=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};`:"",Mr(()=>{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(wo,{theme:s,children:Ut.jsx(At.Provider,{value:a,children:Ut.jsx(_o,{value:l,children:Ut.jsxs(Bo,{value:null==a?void 0:a.components,children:[u,t]})})})})}var Mo,jo={},No={exports:{}};function $o(){return Mo||(Mo=1,(e=No).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),No.exports;var e}var zo,Go=N(G),Ho=N(Nr);function Uo(){if(zo)return jo;zo=1;var e=$o();Object.defineProperty(jo,"__esModule",{value:!0}),jo.alpha=c,jo.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),u=[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:u})},jo.colorChannel=void 0,jo.darken=d,jo.decomposeColor=i,jo.emphasize=h,jo.getContrastRatio=function(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},jo.getLuminance=u,jo.hexToRgb=o,jo.hslToRgb=l,jo.lighten=p,jo.private_safeAlpha=function(e,t,n){try{return c(e,t)}catch(t){return e}},jo.private_safeColorChannel=void 0,jo.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},jo.private_safeEmphasize=function(e,t,n){try{return h(e,t)}catch(t){return e}},jo.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},jo.recomposeColor=s,jo.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(" ")};jo.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 u="rgb";const c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),s({type:u,values:c})}function u(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 c(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 d(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 u(e)>.5?d(e,t):p(e,t)}return jo.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},jo}var Vo=Uo();const Wo={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",ui="#e65100",ci="#e3f2fd",di="#90caf9",pi="#42a5f5",hi="#1976d2",fi="#1565c0",mi="#4fc3f7",bi="#29b6f6",gi="#03a9f4",vi="#0288d1",yi="#01579b",Ei="#81c784",Ci="#66bb6a",Di="#4caf50",xi="#388e3c",Ai="#2e7d32",Si="#1b5e20",wi=["mode","contrastThreshold","tonalOffset"],Ri={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:Wo.white,default:Wo.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}},Fi={text:{primary:Wo.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:Wo.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 _i(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=Vo.lighten(e.main,o):"dark"===t&&(e.dark=Vo.darken(e.main,i)))}function ki(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=V(e,wi),i=e.primary||function(e="light"){return"dark"===e?{main:di,light:ci,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),u=e.success||function(e="light"){return"dark"===e?{main:Ci,light:Ei,dark:xi}:{main:Ai,light:Di,dark:Si}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:ai,light:ii,dark:li}:{main:"#ed6c02",light:si,dark:ui}}(t);function d(e){return Vo.getContrastRatio(e,Fi.text.primary)>=n?Fi.text.primary:Ri.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(z(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(z(12,t?` (${t})`:"",JSON.stringify(e.main)));return _i(e,"light",o,r),_i(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:Fi,light:Ri};return Qt(U({common:U({},Wo),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:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:qo,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),o)}const Ii=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Bi={textTransform:"uppercase"},Li='"Roboto", "Helvetica", "Arial", sans-serif';function Ti(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Li,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=V(n,Ii),h=o/14,f=d||(e=>e/u*h+"rem"),m=(e,t,n,o,i)=>{return U({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===Li?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);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,Bi),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Bi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qt(U({htmlFontSize:u,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},b),p,{clone:!1})}function Pi(...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 Oi=["none",Pi(0,2,1,-1,0,1,1,0,0,1,3,0),Pi(0,3,1,-2,0,2,2,0,0,1,5,0),Pi(0,3,3,-2,0,3,4,0,0,1,8,0),Pi(0,2,4,-1,0,4,5,0,0,1,10,0),Pi(0,3,5,-1,0,5,8,0,0,1,14,0),Pi(0,3,5,-1,0,6,10,0,0,1,18,0),Pi(0,4,5,-2,0,7,10,1,0,2,16,1),Pi(0,5,5,-3,0,8,10,1,0,3,14,2),Pi(0,5,6,-3,0,9,12,1,0,3,16,2),Pi(0,6,6,-3,0,10,14,1,0,4,18,3),Pi(0,6,7,-4,0,11,15,1,0,4,20,3),Pi(0,7,8,-4,0,12,17,2,0,5,22,4),Pi(0,7,8,-4,0,13,19,2,0,5,24,4),Pi(0,7,9,-4,0,14,21,2,0,5,26,4),Pi(0,8,9,-5,0,15,22,2,0,6,28,5),Pi(0,8,10,-5,0,16,24,2,0,6,30,5),Pi(0,8,11,-5,0,17,26,2,0,6,32,5),Pi(0,9,11,-5,0,18,28,2,0,7,34,6),Pi(0,9,12,-6,0,19,29,2,0,7,36,6),Pi(0,10,13,-6,0,20,31,3,0,8,38,7),Pi(0,10,13,-6,0,21,33,3,0,8,40,7),Pi(0,10,14,-6,0,22,35,3,0,8,42,7),Pi(0,11,14,-7,0,23,36,3,0,9,44,8),Pi(0,11,15,-7,0,24,38,3,0,9,46,8)],Mi=["duration","easing","delay"],ji={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)"},Ni={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $i(e){return`${Math.round(e)}ms`}function zi(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({},ji,e.easing),n=U({},Ni,e.duration);return U({getAutoHeightDuration:zi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return V(r,Mi),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:$i(o)} ${i} ${"string"==typeof a?a:$i(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 Vi(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=V(e,Ui);if(e.vars&&void 0===e.generateCssVars)throw new Error(z(18));const s=ki(r),l=ar(e);let u=Qt(l,{mixins:(c=l.breakpoints,d=n,U({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:Oi.slice(),typography:Ti(s,i),transitions:Gi(o),zIndex:U({},Hi)});var c,d;return u=Qt(u,a),u=t.reduce((e,t)=>Qt(e,t),u),u.unstable_sxConfig=U({},tr,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return rr({sx:e,theme:this})},u}const Wi=Vi();function qi(){const e=cr(Wi);return e[H]||e}var Yi,Ki={},Xi={exports:{}};var Zi,Ji={exports:{}};var Qi,ea=N(Xt),ta=N(en),na=N(dn),ra=N(Pr),oa=N(sr),ia=N(mr);function aa(){if(Qi)return Ki;Qi=1;var e=$o();Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=function(e={}){const{themeId:t,defaultTheme:a=f,rootShouldForwardProp:l=p,slotShouldForwardProp:u=p}=e,d=e=>(0,s.default)((0,n.default)({},e,{theme:b((0,n.default)({},e,{defaultTheme:a,themeId:t}))}));return d.__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:E,overridesResolver:C=g(m(f))}=s,D=(0,r.default)(s,c),x=h&&h.startsWith("Mui")||f?"components":"custom",A=void 0!==y?y:f&&"Root"!==f&&"root"!==f||!1,S=E||!1;let w=p;"Root"===f||"root"===f?w=l:f?w=u:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(w=void 0);const R=(0,o.default)(e,(0,n.default)({shouldForwardProp:w,label:void 0},D)),F=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?x:void 0)}:e,_=(r,...o)=>{let i=F(r);const s=o?o.map(F):[];h&&C&&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)}),C(e,i)}),h&&!A&&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)}),S||s.push(d);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 u=R(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return R.withConfig&&(_.withConfig=R.withConfig),_}},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=d(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"],u=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=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 c="function"==typeof e?e((0,n.default)({ownerState:a},s)):e;if(Array.isArray(c))return c.flatMap(e=>v(e,(0,n.default)({ownerState:a},s),i));if(c&&"object"==typeof c&&Array.isArray(c.variants)){const{variants:e=[]}=c;let t=(0,r.default)(c,u);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)(c),i):c}return Ki}const sa=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,la=j(aa())({themeId:H,defaultTheme:Wi,rootShouldForwardProp:sa}),ua=["theme"];function ca(e){let{theme:t}=e,n=V(e,ua);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(Oo,U({},n,{themeId:r?H:void 0,theme:o}))}const da=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,Ea=600,Ca=700,Da={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function xa(e){return Lo(e)}function Aa(e){return Dr("MuiSvgIcon",e)}xr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Sa=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],wa=la("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${cn(n.color)}`],t[`fontSize${cn(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,u,c,d,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==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{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]}}),Ra=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=V(n,Sa),h=y.isValidElement(r)&&"svg"===r.type,f=U({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:h}),m={};u||(m.viewBox=d);const b=(e=>{const{color:t,fontSize:n,classes:r}=e;return bo({root:["root","inherit"!==t&&`color${cn(t)}`,`fontSize${cn(n)}`]},Aa,r)})(f);return Ut.jsxs(wa,U({as:a,className:yr(b.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,h&&r.props,{ownerState:f,children:[h?r.props.children:r,c?Ut.jsx("title",{children:c}):null]}))});function Fa(e,t){function n(n,r){return Ut.jsx(Ra,U({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Ra.muiName,y.memo(y.forwardRef(n))}function _a(e,t){return _a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_a(e,t)}function ka(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_a(e,t)}Ra.muiName="SvgIcon";var Ia=!1,Ba=D.createContext(null),La="unmounted",Ta="exited",Pa="entering",Oa="entered",Ma="exiting",ja=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=Ta,r.appearStatus=Pa):o=Oa:o=t.unmountOnExit||t.mountOnEnter?La:Ta,r.state={status:o},r.nextCallback=null,r}ka(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===La?{status:Ta}: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!==Pa&&n!==Oa&&(t=Pa):n!==Pa&&n!==Oa||(t=Ma)}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===Pa){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:L.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ta&&this.setState({status:La})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[L.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Ia?this.safeSetState({status:Oa},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:Pa},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:Oa},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:L.findDOMNode(this);t&&!Ia?(this.props.onExit(r),this.safeSetState({status:Ma},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Ta},function(){e.props.onExited(r)})})})):this.safeSetState({status:Ta},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:L.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===La)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=V(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return D.createElement(Ba.Provider,{value:null},"function"==typeof n?n(e,r):D.cloneElement(D.Children.only(n),r))},t}(D.Component);function Na(){}function $a(e,t){var n=Object.create(null);return e&&S.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&x(e)?t(e):e}(e)}),n}function za(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Ga(e,t,n){var r=$a(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 u=o[l][r];s[o[l][r]]=n(u)}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(x(a)){var s=i in t,l=i in r,u=t[i],c=x(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&x(u)&&(o[i]=A(a,{onExited:n.bind(null,a),in:u.props.in,exit:za(a,"exit",e),enter:za(a,"enter",e)})):o[i]=A(a,{in:!1}):o[i]=A(a,{onExited:n.bind(null,a),in:!0,exit:za(a,"exit",e),enter:za(a,"enter",e)})}}),o}ja.contextType=Ba,ja.propTypes={},ja.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Na,onEntering:Na,onEntered:Na,onExit:Na,onExiting:Na,onExited:Na},ja.UNMOUNTED=La,ja.EXITED=Ta,ja.ENTERING=Pa,ja.ENTERED=Oa,ja.EXITING=Ma;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}ka(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,$a(n.children,function(e){return A(e,{onExited:r.bind(null,e),in:!0,appear:za(e,"appear",n),enter:za(e,"enter",n),exit:za(e,"exit",n)})})):Ga(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=$a(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=V(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?D.createElement(Ba.Provider,{value:o},i):D.createElement(Ba.Provider,{value:o},D.createElement(t,r,i))},t}(D.Component);Ua.propTypes={},Ua.defaultProps={component:"div",childFactory:function(e){return e}};const Va=e=>e.scrollTop;function Wa(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 Dr("MuiPaper",e)}xr("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(${Vo.alpha("#fff",da(t.elevation))}, ${Vo.alpha("#fff",da(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),Xa=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=V(n,Ya),u=U({},n,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return bo({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},qa,o)})(u);return Ut.jsx(Ka,U({as:o,ownerState:u,className:yr(c.root,r),ref:t},l))});const Za=xr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ja=["center","classes","className"];let Qa,es,ts,ns,rs=e=>e;const os=Bt(Qa||(Qa=rs`
|
|
14
|
+
*/function qt(e,t){return $t(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(Dt,{value:o,children:r}):r},ThemeContext:At,css:Bt,default:qt,internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:Kt,keyframes:It});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 u(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:u,only:function(e){return a.indexOf(e)+1<a.length?u(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]):u(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 un(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function cn(e){if("string"!=typeof e)throw new Error(z(7));return e.charAt(0).toUpperCase()+e.slice(1)}var dn=Object.freeze({__proto__:null,default:cn});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?"":cn(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"],Cn=["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 Dn(e){return En(e,"spacing",8)}function xn(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 An(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=xn(t,n),e),{})}(vn(n),r);return ln(e,e[n],o)}function Sn(e,t){const n=Dn(e.theme);return Object.keys(e).map(r=>An(e,t,r,n)).reduce(on,{})}function wn(e){return Sn(e,yn)}function Rn(e){return Sn(e,Cn)}function Fn(...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 _n(e){return"number"!=typeof e?e:`${e}px solid`}function kn(e,t){return fn({prop:e,themeKey:"borders",transform:t})}wn.propTypes={},wn.filterProps=yn,Rn.propTypes={},Rn.filterProps=Cn;const Bn=kn("border",_n),In=kn("borderTop",_n),Ln=kn("borderRight",_n),Tn=kn("borderBottom",_n),Pn=kn("borderLeft",_n),On=kn("borderColor"),Mn=kn("borderTopColor"),jn=kn("borderRightColor"),$n=kn("borderBottomColor"),Nn=kn("borderLeftColor"),zn=kn("outline",_n),Gn=kn("outlineColor"),Hn=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=En(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:xn(t,e)});return ln(e,e.borderRadius,n)}return null};Hn.propTypes={},Hn.filterProps=["borderRadius"],Fn(Bn,In,Ln,Tn,Pn,On,Mn,jn,$n,Nn,Hn,zn,Gn);const Un=e=>{if(void 0!==e.gap&&null!==e.gap){const t=En(e.theme,"spacing",8),n=e=>({gap:xn(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:xn(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:xn(t,e)});return ln(e,e.rowGap,n)}return null};Vn.propTypes={},Vn.filterProps=["rowGap"];function qn(e,t){return"grey"===t?t:e}Fn(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}Fn(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});Fn(Kn,Xn,Zn,Jn,Qn,er,fn({prop:"boxSizing"}));const tr={border:{themeKey:"borders",transform:_n},borderTop:{themeKey:"borders",transform:_n},borderRight:{themeKey:"borders",transform:_n},borderBottom:{themeKey:"borders",transform:_n},borderLeft:{themeKey:"borders",transform:_n},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_n},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:Rn},pt:{style:Rn},pr:{style:Rn},pb:{style:Rn},pl:{style:Rn},px:{style:Rn},py:{style:Rn},padding:{style:Rn},paddingTop:{style:Rn},paddingRight:{style:Rn},paddingBottom:{style:Rn},paddingLeft:{style:Rn},paddingX:{style:Rn},paddingY:{style:Rn},paddingInline:{style:Rn},paddingInlineStart:{style:Rn},paddingInlineEnd:{style:Rn},paddingBlock:{style:Rn},paddingBlockStart:{style:Rn},paddingBlockEnd:{style:Rn},m:{style:wn},mt:{style:wn},mr:{style:wn},mb:{style:wn},ml:{style:wn},mx:{style:wn},my:{style:wn},margin:{style:wn},marginTop:{style:wn},marginRight:{style:wn},marginBottom:{style:wn},marginLeft:{style:wn},marginX:{style:wn},marginY:{style:wn},marginInline:{style:wn},marginInlineStart:{style:wn},marginInlineEnd:{style:wn},marginBlock:{style:wn},marginBlockStart:{style:wn},marginBlockEnd:{style:wn},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:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=pn(n,s)||{};if(u)return u(o);return ln(o,t,t=>{let n=hn(c,l,t);return t===n&&"string"==typeof t&&(n=hn(c,l,`${e}${"default"===t?"":cn(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 u=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])u=on(u,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)?u=on(u,e):u[n]=t({sx:o,theme:i,nested:!0})}else u=on(u,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":un(l,u)}:un(l,u)}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=Dn({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 u=Qt({breakpoints:s,direction:"ltr",components:{},palette:U({mode:"light"},r),spacing:l,shape:U({},rn,i)},a);return u.applyStyles=or,u=t.reduce((e,t)=>Qt(e,t),u),u.unstable_sxConfig=U({},tr,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return rr({sx:e,theme:this})},u}var sr=Object.freeze({__proto__:null,default:ar,private_createBreakpoints:nn,unstable_applyStyles:or});function lr(e=null){const t=y.useContext(At);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const ur=ar();function cr(e=ur){return lr(e)}function dr(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=cr(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>dr("function"==typeof e?e(o):e)):dr(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 Cr=["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 Dr(e,t,n="Mui"){const r=Er[t];return r?`${n}-${r}`:`${gr.generate(e)}-${t}`}function xr(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Dr(e,t,n)}),r}var Ar,Sr,wr={exports:{}},Rr={};function Fr(){if(Ar)return Rr;Ar=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"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=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 u:case p:return h;default:switch(h=h&&h.$$typeof){case a:case s:case d:case c:case i:return h;default:return f}}case t:return f}}}return Rr.ContextConsumer=i,Rr.ContextProvider=a,Rr.Element=e,Rr.ForwardRef=s,Rr.Fragment=n,Rr.Lazy=d,Rr.Memo=c,Rr.Portal=t,Rr.Profiler=o,Rr.StrictMode=r,Rr.Suspense=l,Rr.SuspenseList=u,Rr.isContextConsumer=function(e){return f(e)===i},Rr.isContextProvider=function(e){return f(e)===a},Rr.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Rr.isForwardRef=function(e){return f(e)===s},Rr.isFragment=function(e){return f(e)===n},Rr.isLazy=function(e){return f(e)===d},Rr.isMemo=function(e){return f(e)===c},Rr.isPortal=function(e){return f(e)===t},Rr.isProfiler=function(e){return f(e)===o},Rr.isStrictMode=function(e){return f(e)===r},Rr.isSuspense=function(e){return f(e)===l},Rr.isSuspenseList=function(e){return f(e)===u},Rr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===h||void 0!==e.getModuleId)},Rr.typeOf=f,Rr}function _r(){return Sr||(Sr=1,wr.exports=Fr()),wr.exports}var kr=_r();const Br=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ir(e){const t=`${e}`.match(Br);return t&&t[1]||""}function Lr(e,t=""){return e.displayName||e.name||Ir(e)||t}function Tr(e,t,n){const r=Lr(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Pr=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Lr(e,"Component");if("object"==typeof e)switch(e.$$typeof){case kr.ForwardRef:return Tr(e,e.render,"ForwardRef");case kr.Memo:return Tr(e,e.type,"memo");default:return}}},getFunctionName:Ir});function Or(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]=Or(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}const Mr="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function jr(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var $r=Object.freeze({__proto__:null,default:jr});function Nr(e){if(e.type)return e;if("#"===e.charAt(0))return Nr(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(z(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(z(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function zr(e,t){return e=Nr(e),t=function(e,t=0,n=1){return jr(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 Mr(()=>{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;var t;return t=e.disposeEffect,y.useEffect(t,Qr),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 uo(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 co(){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!!uo(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 Co=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Eo(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=W(e,Co),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:u}=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),u=t(a),c=yr(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=U({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=U({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(U({},a,{externalSlotProps:s})),c=function(e,t,n){return void 0===e||go(e)?t:U({},t,{ownerState:U({},t.ownerState,n)})}(n,U({},l,{ref:Zr(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Do(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 xo=y.createContext(null);function Ao(){return y.useContext(xo)}var So="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function wo(e){const{children:t,theme:n}=e,r=Ao(),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[So]=null!==r),e},[n,r]);return Ut.jsx(xo.Provider,{value:o,children:t})}const Ro=["value"],Fo=y.createContext();function _o(e){let{value:t}=e,n=W(e,Ro);return Ut.jsx(Fo.Provider,U({value:null==t||t},n))}const ko=()=>{const e=y.useContext(Fo);return null!=e&&e},Bo=y.createContext(void 0);function Io({value:e,children:t}){return Ut.jsx(Bo.Provider,{value:e,children:t})}function Lo({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?Or(o.defaultProps,r):o.styleOverrides||o.variants?r:Or(o,r)}({props:e,name:t,theme:{components:y.useContext(Bo)}})}const To={};function Po(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 Oo(e){const{children:t,theme:n,themeId:r}=e,o=lr(To),i=Ao()||To,a=Po(r,o,n),s=Po(r,i,n,!0),l="rtl"===a.direction,u=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};`:"",Mr(()=>{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(wo,{theme:s,children:Ut.jsx(At.Provider,{value:a,children:Ut.jsx(_o,{value:l,children:Ut.jsxs(Io,{value:null==a?void 0:a.components,children:[u,t]})})})})}var Mo,jo={},$o={exports:{}};function No(){return Mo||(Mo=1,(e=$o).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),$o.exports;var e}var zo,Go=$(G),Ho=$($r);function Uo(){if(zo)return jo;zo=1;var e=No();Object.defineProperty(jo,"__esModule",{value:!0}),jo.alpha=c,jo.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),u=[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:u})},jo.colorChannel=void 0,jo.darken=d,jo.decomposeColor=i,jo.emphasize=h,jo.getContrastRatio=function(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},jo.getLuminance=u,jo.hexToRgb=o,jo.hslToRgb=l,jo.lighten=p,jo.private_safeAlpha=function(e,t,n){try{return c(e,t)}catch(t){return e}},jo.private_safeColorChannel=void 0,jo.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},jo.private_safeEmphasize=function(e,t,n){try{return h(e,t)}catch(t){return e}},jo.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},jo.recomposeColor=s,jo.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(" ")};jo.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 u="rgb";const c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),s({type:u,values:c})}function u(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 c(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 d(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 u(e)>.5?d(e,t):p(e,t)}return jo.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},jo}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",ui="#e65100",ci="#e3f2fd",di="#90caf9",pi="#42a5f5",hi="#1976d2",fi="#1565c0",mi="#4fc3f7",bi="#29b6f6",gi="#03a9f4",vi="#0288d1",yi="#01579b",Ci="#81c784",Ei="#66bb6a",Di="#4caf50",xi="#388e3c",Ai="#2e7d32",Si="#1b5e20",wi=["mode","contrastThreshold","tonalOffset"],Ri={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}},Fi={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 _i(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 ki(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=W(e,wi),i=e.primary||function(e="light"){return"dark"===e?{main:di,light:ci,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),u=e.success||function(e="light"){return"dark"===e?{main:Ei,light:Ci,dark:xi}:{main:Ai,light:Di,dark:Si}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:ai,light:ii,dark:li}:{main:"#ed6c02",light:si,dark:ui}}(t);function d(e){return Wo.getContrastRatio(e,Fi.text.primary)>=n?Fi.text.primary:Ri.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(z(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(z(12,t?` (${t})`:"",JSON.stringify(e.main)));return _i(e,"light",o,r),_i(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:Fi,light:Ri};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:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:qo,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),o)}const Bi=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ii={textTransform:"uppercase"},Li='"Roboto", "Helvetica", "Arial", sans-serif';function Ti(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Li,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=W(n,Bi),h=o/14,f=d||(e=>e/u*h+"rem"),m=(e,t,n,o,i)=>{return U({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===Li?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);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,Ii),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Ii),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qt(U({htmlFontSize:u,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},b),p,{clone:!1})}function Pi(...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 Oi=["none",Pi(0,2,1,-1,0,1,1,0,0,1,3,0),Pi(0,3,1,-2,0,2,2,0,0,1,5,0),Pi(0,3,3,-2,0,3,4,0,0,1,8,0),Pi(0,2,4,-1,0,4,5,0,0,1,10,0),Pi(0,3,5,-1,0,5,8,0,0,1,14,0),Pi(0,3,5,-1,0,6,10,0,0,1,18,0),Pi(0,4,5,-2,0,7,10,1,0,2,16,1),Pi(0,5,5,-3,0,8,10,1,0,3,14,2),Pi(0,5,6,-3,0,9,12,1,0,3,16,2),Pi(0,6,6,-3,0,10,14,1,0,4,18,3),Pi(0,6,7,-4,0,11,15,1,0,4,20,3),Pi(0,7,8,-4,0,12,17,2,0,5,22,4),Pi(0,7,8,-4,0,13,19,2,0,5,24,4),Pi(0,7,9,-4,0,14,21,2,0,5,26,4),Pi(0,8,9,-5,0,15,22,2,0,6,28,5),Pi(0,8,10,-5,0,16,24,2,0,6,30,5),Pi(0,8,11,-5,0,17,26,2,0,6,32,5),Pi(0,9,11,-5,0,18,28,2,0,7,34,6),Pi(0,9,12,-6,0,19,29,2,0,7,36,6),Pi(0,10,13,-6,0,20,31,3,0,8,38,7),Pi(0,10,13,-6,0,21,33,3,0,8,40,7),Pi(0,10,14,-6,0,22,35,3,0,8,42,7),Pi(0,11,14,-7,0,23,36,3,0,9,44,8),Pi(0,11,15,-7,0,24,38,3,0,9,46,8)],Mi=["duration","easing","delay"],ji={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)"},$i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ni(e){return`${Math.round(e)}ms`}function zi(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({},ji,e.easing),n=U({},$i,e.duration);return U({getAutoHeightDuration:zi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return W(r,Mi),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Ni(o)} ${i} ${"string"==typeof a?a:Ni(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(z(18));const s=ki(r),l=ar(e);let u=Qt(l,{mixins:(c=l.breakpoints,d=n,U({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:Oi.slice(),typography:Ti(s,i),transitions:Gi(o),zIndex:U({},Hi)});var c,d;return u=Qt(u,a),u=t.reduce((e,t)=>Qt(e,t),u),u.unstable_sxConfig=U({},tr,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return rr({sx:e,theme:this})},u}const Vi=Wi();function qi(){const e=cr(Vi);return e[H]||e}var Yi,Ki={},Xi={exports:{}};var Zi,Ji={exports:{}};var Qi,ea=$(Xt),ta=$(en),na=$(dn),ra=$(Pr),oa=$(sr),ia=$(mr);function aa(){if(Qi)return Ki;Qi=1;var e=No();Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=function(e={}){const{themeId:t,defaultTheme:a=f,rootShouldForwardProp:l=p,slotShouldForwardProp:u=p}=e,d=e=>(0,s.default)((0,n.default)({},e,{theme:b((0,n.default)({},e,{defaultTheme:a,themeId:t}))}));return d.__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:C,overridesResolver:E=g(m(f))}=s,D=(0,r.default)(s,c),x=h&&h.startsWith("Mui")||f?"components":"custom",A=void 0!==y?y:f&&"Root"!==f&&"root"!==f||!1,S=C||!1;let w=p;"Root"===f||"root"===f?w=l:f?w=u:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(w=void 0);const R=(0,o.default)(e,(0,n.default)({shouldForwardProp:w,label:void 0},D)),F=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?x:void 0)}:e,_=(r,...o)=>{let i=F(r);const s=o?o.map(F):[];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&&!A&&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)}),S||s.push(d);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 u=R(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return R.withConfig&&(_.withConfig=R.withConfig),_}},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=d(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"],u=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=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 c="function"==typeof e?e((0,n.default)({ownerState:a},s)):e;if(Array.isArray(c))return c.flatMap(e=>v(e,(0,n.default)({ownerState:a},s),i));if(c&&"object"==typeof c&&Array.isArray(c.variants)){const{variants:e=[]}=c;let t=(0,r.default)(c,u);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)(c),i):c}return Ki}const sa=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,la=j(aa())({themeId:H,defaultTheme:Vi,rootShouldForwardProp:sa}),ua=["theme"];function ca(e){let{theme:t}=e,n=W(e,ua);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(Oo,U({},n,{themeId:r?H:void 0,theme:o}))}const da=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,Ca=600,Ea=700,Da={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function xa(e){return Lo(e)}function Aa(e){return Dr("MuiSvgIcon",e)}xr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Sa=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],wa=la("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${cn(n.color)}`],t[`fontSize${cn(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,u,c,d,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==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{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]}}),Ra=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=W(n,Sa),h=y.isValidElement(r)&&"svg"===r.type,f=U({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:h}),m={};u||(m.viewBox=d);const b=(e=>{const{color:t,fontSize:n,classes:r}=e;return bo({root:["root","inherit"!==t&&`color${cn(t)}`,`fontSize${cn(n)}`]},Aa,r)})(f);return Ut.jsxs(wa,U({as:a,className:yr(b.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,h&&r.props,{ownerState:f,children:[h?r.props.children:r,c?Ut.jsx("title",{children:c}):null]}))});function Fa(e,t){function n(n,r){return Ut.jsx(Ra,U({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Ra.muiName,y.memo(y.forwardRef(n))}function _a(e,t){return _a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_a(e,t)}function ka(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_a(e,t)}Ra.muiName="SvgIcon";var Ba=!1,Ia=D.createContext(null),La="unmounted",Ta="exited",Pa="entering",Oa="entered",Ma="exiting",ja=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=Ta,r.appearStatus=Pa):o=Oa:o=t.unmountOnExit||t.mountOnEnter?La:Ta,r.state={status:o},r.nextCallback=null,r}ka(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===La?{status:Ta}: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!==Pa&&n!==Oa&&(t=Pa):n!==Pa&&n!==Oa||(t=Ma)}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===Pa){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:L.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ta&&this.setState({status:La})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[L.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Ba?this.safeSetState({status:Oa},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:Pa},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:Oa},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:L.findDOMNode(this);t&&!Ba?(this.props.onExit(r),this.safeSetState({status:Ma},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Ta},function(){e.props.onExited(r)})})})):this.safeSetState({status:Ta},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:L.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===La)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 D.createElement(Ia.Provider,{value:null},"function"==typeof n?n(e,r):D.cloneElement(D.Children.only(n),r))},t}(D.Component);function $a(){}function Na(e,t){var n=Object.create(null);return e&&S.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&x(e)?t(e):e}(e)}),n}function za(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Ga(e,t,n){var r=Na(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 u=o[l][r];s[o[l][r]]=n(u)}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(x(a)){var s=i in t,l=i in r,u=t[i],c=x(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&x(u)&&(o[i]=A(a,{onExited:n.bind(null,a),in:u.props.in,exit:za(a,"exit",e),enter:za(a,"enter",e)})):o[i]=A(a,{in:!1}):o[i]=A(a,{onExited:n.bind(null,a),in:!0,exit:za(a,"exit",e),enter:za(a,"enter",e)})}}),o}ja.contextType=Ia,ja.propTypes={},ja.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$a,onEntering:$a,onEntered:$a,onExit:$a,onExiting:$a,onExited:$a},ja.UNMOUNTED=La,ja.EXITED=Ta,ja.ENTERING=Pa,ja.ENTERED=Oa,ja.EXITING=Ma;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}ka(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,Na(n.children,function(e){return A(e,{onExited:r.bind(null,e),in:!0,appear:za(e,"appear",n),enter:za(e,"enter",n),exit:za(e,"exit",n)})})):Ga(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Na(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?D.createElement(Ia.Provider,{value:o},i):D.createElement(Ia.Provider,{value:o},D.createElement(t,r,i))},t}(D.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 Dr("MuiPaper",e)}xr("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",da(t.elevation))}, ${Wo.alpha("#fff",da(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),Xa=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=W(n,Ya),u=U({},n,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return bo({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},qa,o)})(u);return Ut.jsx(Ka,U({as:o,ownerState:u,className:yr(c.root,r),ref:t},l))});const Za=xr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ja=["center","classes","className"];let Qa,es,ts,ns,rs=e=>e;const os=It(Qa||(Qa=rs`
|
|
15
15
|
0% {
|
|
16
16
|
transform: scale(0);
|
|
17
17
|
opacity: 0.1;
|
|
@@ -21,7 +21,7 @@ System.register(["@nebula.js/stardust","react","react-dom"],function(e){"use str
|
|
|
21
21
|
transform: scale(1);
|
|
22
22
|
opacity: 0.3;
|
|
23
23
|
}
|
|
24
|
-
`)),is=
|
|
24
|
+
`)),is=It(es||(es=rs`
|
|
25
25
|
0% {
|
|
26
26
|
opacity: 1;
|
|
27
27
|
}
|
|
@@ -29,7 +29,7 @@ System.register(["@nebula.js/stardust","react","react-dom"],function(e){"use str
|
|
|
29
29
|
100% {
|
|
30
30
|
opacity: 0;
|
|
31
31
|
}
|
|
32
|
-
`)),as=
|
|
32
|
+
`)),as=It(ts||(ts=rs`
|
|
33
33
|
0% {
|
|
34
34
|
transform: scale(1);
|
|
35
35
|
}
|
|
@@ -84,6 +84,4 @@ 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),us=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=V(n,Ja),[s,l]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=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},u.current)]),u.current+=1,c.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)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:f.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,b;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=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)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;b=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:b,cb:n})},p.start(80,()=>{h.current&&(h.current(),h.current=null)})):m({pulsate:o,rippleX:u,rippleY:c,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),c.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 cs(e){return Dr("MuiButtonBase",e)}const ds=xr("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"},[`&.${ds.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fs=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:h,onClick:f,onContextMenu:m,onDragLeave:b,onFocus:g,onFocusVisible:v,onKeyDown:E,onKeyUp:C,onMouseDown:D,onMouseLeave:x,onMouseUp:A,onTouchEnd:S,onTouchMove:w,onTouchStart:R,tabIndex:F=0,TouchRippleProps:_,touchRippleRef:k,type:I}=n,B=V(n,ps),L=y.useRef(null),T=y.useRef(null),P=Zr(T,k),{isFocusVisibleRef:O,onFocus:M,onBlur:j,ref:N}=co(),[$,z]=y.useState(!1);l&&$&&z(!1),y.useImperativeHandle(r,()=>({focusVisible:()=>{z(!0),L.current.focus()}}),[]);const[G,H]=y.useState(!1);y.useEffect(()=>{H(!0)},[]);const W=G&&!u&&!l;function q(e,t,n=c){return Xr(r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0})}y.useEffect(()=>{$&&d&&!u&&G&&T.current.pulsate()},[u,d,$,G]);const Y=q("start",D),K=q("stop",m),X=q("stop",b),Z=q("stop",A),J=q("stop",e=>{$&&e.preventDefault(),x&&x(e)}),Q=q("start",R),ee=q("stop",S),te=q("stop",w),ne=q("stop",e=>{j(),!1===O.current&&z(!1),h&&h(e)},!1),re=Xr(e=>{L.current||(L.current=e.currentTarget),M(e),!0===O.current&&(z(!0),v&&v(e)),g&&g(e)}),oe=()=>{const e=L.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ie=y.useRef(!1),ae=Xr(e=>{d&&!ie.current&&$&&T.current&&" "===e.key&&(ie.current=!0,T.current.stop(e,()=>{T.current.start(e)})),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),E&&E(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!l&&(e.preventDefault(),f&&f(e))}),se=Xr(e=>{d&&" "===e.key&&T.current&&$&&!e.defaultPrevented&&(ie.current=!1,T.current.stop(e,()=>{T.current.pulsate(e)})),C&&C(e),f&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&f(e)});let le=s;"button"===le&&(B.href||B.to)&&(le=p);const ue={};"button"===le?(ue.type=void 0===I?"button":I,ue.disabled=l):(B.href||B.to||(ue.role="button"),l&&(ue["aria-disabled"]=l));const ce=Zr(t,N,L),de=U({},n,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:F,focusVisible:$}),pe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=bo({root:["root",t&&"disabled",n&&"focusVisible"]},cs,o);return n&&r&&(i.root+=` ${r}`),i})(de);return Ut.jsxs(hs,U({as:le,className:yr(pe.root,a),ownerState:de,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:ce,tabIndex:l?-1:F,type:I},ue,B,{children:[i,W?Ut.jsx(us,U({ref:P,center:o},_)):null]}))});function ms(e){return Dr("MuiTypography",e)}xr("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${cn(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"},Es=y.forwardRef(function(e,t){const n=xa({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:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=vs}=o,h=V(o,bs),f=U({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||vs[d])||"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${cn(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 Cs=y.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=Zr(y.isValidElement(n)?Do(n):null,t);if(Mr(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),Mr(()=>{if(i&&!o)return Wr(t,i),()=>{Wr(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?T.createPortal(n,i):i})}),Ds=["onChange","maxRows","minRows","style","value"];function xs(e){return parseInt(e,10)||0}const As={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Ss(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const ws=y.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=V(e,Ds),{current:l}=y.useRef(null!=a),u=y.useRef(null),c=Zr(t,u),d=y.useRef(null),p=y.useRef(null),h=y.useCallback(()=>{const t=u.current,n=p.current;if(!t||!n)return;const i=Vr(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=xs(i.paddingBottom)+xs(i.paddingTop),l=xs(i.borderBottomWidth)+xs(i.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let h=c;o&&(h=Math.max(Number(o)*d,h)),r&&(h=Math.min(Number(r)*d,h)),h=Math.max(h,d);return{outerHeightStyle:h+("border-box"===a?s+l:0),overflowing:Math.abs(h-c)<=1}},[r,o,e.placeholder]),f=Xr(()=>{const e=u.current,t=h();if(!e||!t||Ss(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n}),m=y.useCallback(()=>{const e=u.current,t=h();if(!e||!t||Ss(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),b=y.useRef(-1);Mr(()=>{const e=Hr(m),t=null==u?void 0:u.current;if(!t)return;const n=Vr(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]),Mr(()=>{m()});return Ut.jsxs(y.Fragment,{children:[Ut.jsx("textarea",U({value:a,onChange:e=>{l||m(),n&&n(e)},ref:c,rows:o,style:i},s)),Ut.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:U({},As,i,{paddingTop:0,paddingBottom:0})})]})});const Rs=y.createContext(void 0);function Fs(){return y.useContext(Rs)}function _s(e){return Ut.jsx(pr,U({},e,{defaultTheme:Wi,themeId:H}))}function ks(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Is(e){return Dr("MuiInputBase",e)}const Bs=xr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ls=["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"],Ts=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${cn(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",[`&.${Bs.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%"})),Ps=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] + .${Bs.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},[`&.${Bs.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"})}),Os=Ut.jsx(_s,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ms=y.forwardRef(function(e,t){var n;const r=xa({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:f=!1,id:m,inputComponent:b="input",inputProps:g={},inputRef:v,maxRows:E,minRows:C,multiline:D=!1,name:x,onBlur:A,onChange:S,onClick:w,onFocus:R,onKeyDown:F,onKeyUp:_,placeholder:k,readOnly:I,renderSuffix:B,rows:L,slotProps:T={},slots:P={},startAdornment:O,type:M="text",value:j}=r,N=V(r,Ls),$=null!=g.value?g.value:j,{current:G}=y.useRef(null!=$),H=y.useRef(),W=y.useCallback(e=>{},[]),q=Zr(H,v,g.ref,W),[Y,K]=y.useState(!1),X=Fs(),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&&d&&Y&&(K(!1),A&&A())},[X,d,Y,A]);const J=X&&X.onFilled,Q=X&&X.onEmpty,ee=y.useCallback(e=>{!function(e,t=!1){return e&&(ks(e.value)&&""!==e.value||t&&ks(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():J&&J()},[J,Q]);Mr(()=>{G&&ee({value:$})},[$,ee,G]);y.useEffect(()=>{ee(H.current)},[]);let te=b,ne=g;D&&"input"===te&&(ne=U(L?{type:void 0,minRows:L,maxRows:L}:{type:void 0,maxRows:E,minRows:C},ne),te=ws);y.useEffect(()=>{X&&X.setAdornedStart(Boolean(O))},[X,O]);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:D,size:Z.size,startAdornment:O,type:M}),oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:h,type:f}=e;return bo({root:["root",`color${cn(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${cn(p)}`,c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Is,t)})(re),ie=P.root||l.Root||Ts,ae=T.root||u.root||{},se=P.input||l.Input||Ps;return ne=U({},ne,null!=(n=T.input)?n:u.input),Ut.jsxs(y.Fragment,{children:[!p&&Os,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(),w&&w(e)}},N,{className:yr(oe.root,ae.className,s,I&&"MuiInputBase-readOnly"),children:[O,Ut.jsx(Rs.Provider,{value:null,children:Ut.jsx(se,U({ownerState:re,"aria-invalid":Z.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Z.disabled,id:m,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:x,placeholder:k,readOnly:I,required:Z.required,rows:L,value:$,onKeyDown:F,onKeyUp:_,type:M},ne,!go(se)&&{as:te,ownerState:U({},re,ne.ownerState)},{ref:q,className:yr(oe.input,ne.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{A&&A(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(z(1));ee({value:t.value})}g.onChange&&g.onChange(e,...t),S&&S(e,...t)},onFocus:e=>{Z.disabled?e.stopPropagation():(R&&R(e),g.onFocus&&g.onFocus(e),X&&X.onFocus?X.onFocus(e):K(!0))}}))}),h,B?B(U({},Z,{startAdornment:O})):null]}))]})}),js=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Ns={entering:{opacity:1},entered:{opacity:1}},$s=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:u,onEntered:c,onEntering:d,onExit:p,onExited:h,onExiting:f,style:m,timeout:b=r,TransitionComponent:g=ja}=e,v=V(e,js),E=y.useRef(null),C=Zr(E,Do(a),t),D=e=>t=>{if(e){const n=E.current;void 0===t?e(n):e(n,t)}},x=D(d),A=D((e,t)=>{Va(e);const r=Wa({style:m,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)}),S=D(c),w=D(f),R=D(e=>{const t=Wa({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)}),F=D(h);return Ut.jsx(g,U({appear:i,in:l,nodeRef:E,onEnter:A,onEntered:S,onEntering:x,onExit:R,onExited:F,onExiting:w,addEndListener:e=>{o&&o(E.current,e)},timeout:b},v,{children:(e,t)=>y.cloneElement(a,U({style:U({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Ns[e],m,a.props.style),ref:C},t))}))});function zs(e){return Dr("MuiBackdrop",e)}xr("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=xa({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=$s,transitionDuration:b}=i,g=V(i,Gs),v=U({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return bo({root:["root",n&&"invisible"]},zs,t)})(v),E=null!=(n=h.root)?n:c.root;return Ut.jsx(m,U({in:p,timeout:b},g,{children:Ut.jsx(Hs,U({"aria-hidden":!0},E,{as:null!=(r=null!=(o=f.root)?o:u.Root)?r:l,className:yr(y.root,s,null==E?void 0:E.className),ownerState:U({},v,null==E?void 0:E.ownerState),classes:y,ref:t,children:a}))}))}),Vs=xr("MuiBox",["root"]),Ws=Vi(),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=cr(n),l=fr(e),{className:u,component:c="div"}=l,d=V(l,Er);return Ut.jsx(i,U({as:c,ref:a,className:yr(u,o?o(r):r),theme:t&&s[t]||s},d))})}({themeId:H,defaultTheme:Ws,defaultClassName:Vs.root,generateClassName:gr.generate});function Ys(e){return Dr("MuiButton",e)}const Ks=xr("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}${cn(n.color)}`],t[`size${cn(n.size)}`],t[`${n.variant}Size${cn(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})`:Vo.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})`:Vo.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})`:Vo.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 ${Vo.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${cn(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${cn(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=xa({props:Or(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:h,fullWidth:f=!1,size:m="medium",startIcon:b,type:g,variant:v="text"}=o,E=V(o,Js),C=U({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:f,size:m,type:g,variant:v}),D=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return U({},a,bo({root:["root",i,`${i}${cn(t)}`,`size${cn(o)}`,`${i}Size${cn(o)}`,`color${cn(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${cn(o)}`],endIcon:["icon","endIcon",`iconSize${cn(o)}`]},Ys,a))})(C),x=b&&Ut.jsx(tl,{className:D.startIcon,ownerState:C,children:b}),A=p&&Ut.jsx(nl,{className:D.endIcon,ownerState:C,children:p}),S=r||"";return Ut.jsxs(el,U({ownerState:C,className:yr(n.className,D.root,l,S),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:yr(D.focusVisible,h),ref:t,type:g},E,{classes:D,children:[x,i,A]}))});function ol(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function il(e){return parseInt(Vr(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?Vr(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=Vr(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 ul=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function cl(e){const t=[],n=[];return Array.from(e.querySelectorAll(ul)).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 dl(){return!0}function pl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=cl,isEnabled:a=dl,open:s}=e,l=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),h=y.useRef(!1),f=y.useRef(null),m=Zr(Do(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||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.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,c.current&&c.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!==u.current&&e.activeElement!==c.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!==u.current&&e.activeElement!==c.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===d.current&&(d.current=e.relatedTarget),h.current=!0};return Ut.jsxs(y.Fragment,{children:[Ut.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.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:c,"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:u,open:c,rootRef:d}=e,p=y.useRef({}),h=y.useRef(null),f=y.useRef(null),m=Zr(f,d),[b,g]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let E=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(E=!1);const C=()=>(p.current.modalRef=f.current,p.current.mount=h.current,p.current),D=()=>{o.mount(C(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},x=Xr(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ur(h.current).body;o.add(C(),e),f.current&&D()}),A=y.useCallback(()=>o.isTopModal(C()),[o]),S=Xr(e=>{h.current=e,e&&(c&&A()?D():f.current&&ol(f.current,E))}),w=y.useCallback(()=>{o.remove(C(),E)},[E,o]);y.useEffect(()=>()=>{w()},[w]),y.useEffect(()=>{c?x():v&&i||w()},[c,w,v,i,x]);const R=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&A()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},F=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(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(r),ref:m})},getBackdropProps:(e={})=>U({"aria-hidden":!0},e,{onClick:F(e),open:c}),getTransitionProps:()=>({onEnter:Gr(()=>{g(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:Gr(()=>{g(!0),s&&s(),i&&w()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:S,isTopModal:A,exited:b,hasTransition:v}}function ml(e){return Dr("MuiModal",e)}xr("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=xa({name:"MuiModal",props:e}),{BackdropComponent:u=vl,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:h,container:f,component:m,components:b={},componentsProps:g={},disableAutoFocus:v=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:C=!1,disablePortal:D=!1,disableRestoreFocus:x=!1,disableScrollLock:A=!1,hideBackdrop:S=!1,keepMounted:w=!1,onBackdropClick:R,open:F,slotProps:_,slots:k}=l,I=V(l,bl),B=U({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:E,disableEscapeKeyDown:C,disablePortal:D,disableRestoreFocus:x,disableScrollLock:A,hideBackdrop:S,keepMounted:w}),{getRootProps:L,getBackdropProps:T,getTransitionProps:P,portalRef:O,isTopModal:M,exited:j,hasTransition:N}=fl(U({},B,{rootRef:t})),$=U({},B,{exited:j}),z=(e=>{const{open:t,exited:n,classes:r}=e;return bo({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ml,r)})($),G={};if(void 0===h.props.tabIndex&&(G.tabIndex="-1"),N){const{onEnter:e,onExited:t}=P();G.onEnter=e,G.onExited=t}const H=null!=(n=null!=(r=null==k?void 0:k.root)?r:b.Root)?n:gl,W=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:b.Backdrop)?o:u,q=null!=(a=null==_?void 0:_.root)?a:g.root,Y=null!=(s=null==_?void 0:_.backdrop)?s:g.backdrop,K=Co({elementType:H,externalSlotProps:q,externalForwardedProps:I,getSlotProps:L,additionalProps:{ref:t,as:m},ownerState:$,className:yr(d,null==q?void 0:q.className,null==z?void 0:z.root,!$.open&&$.exited&&(null==z?void 0:z.hidden))}),X=Co({elementType:W,externalSlotProps:Y,additionalProps:c,getSlotProps:e=>T(U({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:yr(null==Y?void 0:Y.className,null==c?void 0:c.className,null==z?void 0:z.backdrop),ownerState:$});return w||F||N&&!j?Ut.jsx(Cs,{ref:O,container:f,disablePortal:D,children:Ut.jsxs(H,U({},K,{children:[!S&&u?Ut.jsx(W,U({},X)):null,Ut.jsx(pl,{disableEnforceFocus:E,disableAutoFocus:v,disableRestoreFocus:x,isEnabled:M,open:F,children:y.cloneElement(h,G)})]}))}):null});function El(e){return Dr("MuiDivider",e)}const Cl=xr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Dl=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],xl=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)`:Vo.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%"}})),Al=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)`})),Sl=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,h=V(n,Dl),f=U({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,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"]},El,r)})(f);return Ut.jsx(xl,U({as:a,className:yr(m.root,i),role:c,ref:t,ownerState:f},h,{children:o?Ut.jsx(Al,{className:m.wrapper,ownerState:f,children:o}):null}))});Sl.muiSkipListHighlight=!0;const wl=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Rl(e){return`scale(${e}, ${e**2})`}const Fl={entering:{opacity:1,transform:Rl(1)},entered:{opacity:1,transform:"none"}},_l="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),kl=y.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:h,timeout:f="auto",TransitionComponent:m=ja}=e,b=V(e,wl),g=to(),v=y.useRef(),E=qi(),C=y.useRef(null),D=Zr(C,Do(o),t),x=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},A=x(u),S=x((e,t)=>{Va(e);const{duration:n,delay:r,easing:o}=Wa({style:h,timeout:f,easing:i},{mode:"enter"});let a;"auto"===f?(a=E.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[E.transitions.create("opacity",{duration:a,delay:r}),E.transitions.create("transform",{duration:_l?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),w=x(l),R=x(p),F=x(e=>{const{duration:t,delay:n,easing:r}=Wa({style:h,timeout:f,easing:i},{mode:"exit"});let o;"auto"===f?(o=E.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[E.transitions.create("opacity",{duration:o,delay:n}),E.transitions.create("transform",{duration:_l?o:.666*o,delay:_l?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Rl(.75),c&&c(e)}),_=x(d);return Ut.jsx(m,U({appear:r,in:a,nodeRef:C,onEnter:S,onEntered:w,onEntering:A,onExit:F,onExited:_,onExiting:R,addEndListener:e=>{"auto"===f&&g.start(v.current||0,e),n&&n(C.current,e)},timeout:"auto"===f?null:f},b,{children:(e,t)=>y.cloneElement(o,U({style:U({opacity:0,transform:Rl(.75),visibility:"exited"!==e||a?void 0:"hidden"},Fl[e],h,o.props.style),ref:D},t))}))});function Il(e){return Dr("MuiInputAdornment",e)}kl.muiSupportAuto=!0;const Bl=xr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Ll;const Tl=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Pl=la("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${cn(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&&{[`&.${Bl.positionStart}&:not(.${Bl.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),Ol=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:u}=n,c=V(n,Tl),d=Fs()||{};let p=u;u&&d.variant,d&&!p&&(p=d.variant);const h=U({},n,{hiddenLabel:d.hiddenLabel,size:d.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${cn(o)}`,a,r&&"hiddenLabel",i&&`size${cn(i)}`]},Il,t)})(h);return Ut.jsx(Rs.Provider,{value:null,children:Ut.jsx(Pl,U({as:i,ownerState:h,className:yr(f.root,o),ref:t},c,{children:"string"!=typeof r||s?Ut.jsxs(y.Fragment,{children:["start"===l?Ll||(Ll=Ut.jsx("span",{className:"notranslate",children:""})):null,r]}):Ut.jsx(Es,{color:"text.secondary",children:r})}))})}),Ml=y.createContext({});function jl(e){return Dr("MuiList",e)}xr("MuiList",["root","padding","dense","subheader"]);const Nl=["children","className","component","dense","disablePadding","subheader"],$l=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})),zl=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,u=V(n,Nl),c=y.useMemo(()=>({dense:a}),[a]),d=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"]},jl,t)})(d);return Ut.jsx(Ml.Provider,{value:c,children:Ut.jsxs($l,U({as:i,className:yr(p.root,o),ref:t,ownerState:d},u,{children:[l,r]}))})});function Gl(e){return Dr("MuiListItem",e)}const Hl=xr("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function Ul(e){return Dr("MuiListItemButton",e)}const Vl=xr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Wl=["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"}},[`&.${Vl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Vl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Vl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vo.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})`:Vo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Vl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Vl.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=xa({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:c,selected:d=!1,className:p}=n,h=V(n,Wl),f=y.useContext(Ml),m=y.useMemo(()=>({dense:s||f.dense||!1,alignItems:r,disableGutters:l}),[r,f.dense,s,l]),b=y.useRef(null);Mr(()=>{o&&b.current&&b.current.focus()},[o]);const g=U({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:u,selected:d}),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),E=Zr(b,t);return Ut.jsx(Ml.Provider,{value:m,children:Ut.jsx(ql,U({ref:E,href:h.href||h.to,component:(h.href||h.to)&&"div"===i?"button":i,focusVisibleClassName:yr(v.focusVisible,c),ownerState:g,className:yr(v.root,p)},h,{classes:v,children:a}))})});function Kl(e){return Dr("MuiListItemSecondaryAction",e)}xr("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=xa({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=V(n,Xl),i=U({},n,{disableGutters:y.useContext(Ml).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"],eu=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],tu=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&&{[`& > .${Vl.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})`:Vo.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}))`:Vo.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}))`:Vo.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})`:Vo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),nu=la("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),ru=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:u={},componentsProps:c={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:h=!1,disabled:f=!1,disableGutters:m=!1,disablePadding:b=!1,divider:g=!1,focusVisibleClassName:v,secondaryAction:E,selected:C=!1,slotProps:D={},slots:x={}}=n,A=V(n.ContainerProps,Ql),S=V(n,eu),w=y.useContext(Ml),R=y.useMemo(()=>({dense:h||w.dense||!1,alignItems:r,disableGutters:m}),[r,w.dense,h,m]),F=y.useRef(null);Mr(()=>{o&&F.current&&F.current.focus()},[o]);const _=y.Children.toArray(a),k=_.length&&(I=_[_.length-1],B=["ListItemSecondaryAction"],y.isValidElement(I)&&-1!==B.indexOf(null!=(L=I.type.muiName)?L:null==(T=I.type)||null==(T=T._payload)||null==(T=T.value)?void 0:T.muiName));var I,B,L,T;const P=U({},n,{alignItems:r,autoFocus:o,button:i,dense:R.dense,disabled:f,disableGutters:m,disablePadding:b,divider:g,hasSecondaryAction:k,selected:C}),O=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return bo({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Gl,r)})(P),M=Zr(F,t),j=x.root||u.Root||tu,N=D.root||c.root||{},$=U({className:yr(O.root,N.className,s),disabled:f},S);let z=l||"li";return i&&($.component=l||"div",$.focusVisibleClassName=yr(Hl.focusVisible,v),z=fs),k?(z=$.component||l?z:"div","li"===d&&("li"===z?z="div":"li"===$.component&&($.component="div")),Ut.jsx(Ml.Provider,{value:R,children:Ut.jsxs(nu,U({as:d,className:yr(O.container,p),ref:M,ownerState:P},A,{children:[Ut.jsx(j,U({},N,!go(j)&&{as:z,ownerState:U({},P,N.ownerState)},$,{children:_})),_.pop()]}))})):Ut.jsx(Ml.Provider,{value:R,children:Ut.jsxs(j,U({},N,{as:z,ref:M},!go(j)&&{ownerState:U({},P,N.ownerState)},$,{children:[_,E&&Ut.jsx(Jl,{children:E})]}))})});function ou(e){return Dr("MuiListItemIcon",e)}const iu=xr("MuiListItemIcon",["root","alignItemsFlexStart"]),au=["className"],su=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})),lu=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=V(n,au),i=U({},n,{alignItems:y.useContext(Ml).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return bo({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ou,n)})(i);return Ut.jsx(su,U({className:yr(a.root,r),ownerState:i,ref:t},o))}),uu=xr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),cu=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function du(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function pu(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function hu(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 fu(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")&&hu(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const mu=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:u,variant:c="selectedMenu"}=e,d=V(e,cu),p=y.useRef(null),h=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Mr(()=>{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"===c&&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"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e});return Ut.jsx(zl,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(),fu(t,r,l,s,du);else if("ArrowUp"===n)e.preventDefault(),fu(t,r,l,s,pu);else if("Home"===n)e.preventDefault(),fu(t,null,l,s,du);else if("End"===n)e.preventDefault(),fu(t,null,l,s,pu);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&&hu(r,o);o.previousKeyMatched&&(l||fu(t,r,!1,s,du,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:b}))});function bu(e){return Dr("MuiPopover",e)}xr("MuiPopover",["root","paper"]);const gu=["onEntering"],vu=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],yu=["slotProps"];function Eu(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Cu(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Du(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function xu(e){return"function"==typeof e?e():e}const Au=la(yl,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Su=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}),wu=y.forwardRef(function(e,t){var n,r,o;const i=xa({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:h,elevation:f=8,marginThreshold:m=16,open:b,PaperProps:g={},slots:v,slotProps:E,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:D=kl,transitionDuration:x="auto",TransitionProps:{onEntering:A}={},disableScrollLock:S=!1}=i,w=V(i.TransitionProps,gu),R=V(i,vu),F=null!=(n=null==E?void 0:E.paper)?n:g,_=y.useRef(),k=Zr(_,F.ref),I=U({},i,{anchorOrigin:l,anchorReference:c,elevation:f,marginThreshold:m,externalPaperSlotProps:F,transformOrigin:C,TransitionComponent:D,transitionDuration:x,TransitionProps:w}),B=(e=>{const{classes:t}=e;return bo({root:["root"],paper:["paper"]},bu,t)})(I),L=y.useCallback(()=>{if("anchorPosition"===c)return u;const e=xu(s),t=(e&&1===e.nodeType?e:Ur(_.current).body).getBoundingClientRect();return{top:t.top+Eu(t,l.vertical),left:t.left+Cu(t,l.horizontal)}},[s,l.horizontal,l.vertical,u,c]),T=y.useCallback(e=>({vertical:Eu(e,C.vertical),horizontal:Cu(e,C.horizontal)}),[C.horizontal,C.vertical]),P=y.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:Du(n)};const r=L();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,u=Vr(xu(s)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;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:Du(n)}},[s,c,L,T,m]),[O,M]=y.useState(b),j=y.useCallback(()=>{const e=_.current;if(!e)return;const t=P(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,M(!0)},[P]);y.useEffect(()=>(S&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[s,S,j]);y.useEffect(()=>{b&&j()}),y.useImperativeHandle(a,()=>b?{updatePosition:()=>{j()}}:null,[b,j]),y.useEffect(()=>{if(!b)return;const e=Hr(()=>{j()}),t=Vr(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,b,j]);let N=x;"auto"!==x||D.muiSupportAuto||(N=void 0);const $=h||(s?Ur(xu(s)).body:void 0),z=null!=(r=null==v?void 0:v.root)?r:Au,G=null!=(o=null==v?void 0:v.paper)?o:Su,H=Co({elementType:G,externalSlotProps:U({},F,{style:O?F.style:U({},F.style,{opacity:0})}),additionalProps:{elevation:f,ref:k},ownerState:I,className:yr(B.paper,null==F?void 0:F.className)}),W=Co({elementType:z,externalSlotProps:(null==E?void 0:E.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:$,open:b},ownerState:I,className:yr(B.root,p)}),{slotProps:q}=W,Y=V(W,yu);return Ut.jsx(z,U({},Y,!go(z)&&{slotProps:q,disableScrollLock:S},{children:Ut.jsx(D,U({appear:!0,in:b,onEntering:(e,t)=>{A&&A(e,t),j()},onExited:()=>{M(!1)},timeout:N},w,{children:Ut.jsx(G,U({},H,{children:d}))}))}))});function Ru(e){return Dr("MuiMenu",e)}xr("MuiMenu",["root","paper","list"]);const Fu=["onEntering"],_u=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],ku={vertical:"top",horizontal:"right"},Iu={vertical:"top",horizontal:"left"},Bu=la(wu,{shouldForwardProp:e=>sa(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Lu=la(Su,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Tu=la(mu,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Pu=y.forwardRef(function(e,t){var n,r;const o=xa({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:m}={},variant:b="selectedMenu",slots:g={},slotProps:v={}}=o,E=V(o.TransitionProps,Fu),C=V(o,_u),D=ko(),x=U({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:f,TransitionProps:E,variant:b}),A=(e=>{const{classes:t}=e;return bo({root:["root"],paper:["paper"],list:["list"]},Ru,t)})(x),S=i&&!l&&d,w=y.useRef(null);let R=-1;y.Children.map(a,(e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===R)&&(R=t))});const F=null!=(n=g.paper)?n:Lu,_=null!=(r=v.paper)?r:p,k=Co({elementType:g.root,externalSlotProps:v.root,ownerState:x,className:[A.root,s]}),I=Co({elementType:F,externalSlotProps:_,ownerState:x,className:A.paper});return Ut.jsx(Bu,U({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:D?"right":"left"},transformOrigin:D?ku:Iu,slots:{paper:F,root:g.root},slotProps:{root:k,paper:I},open:d,ref:t,transitionDuration:f,TransitionProps:U({onEntering:(e,t)=>{w.current&&w.current.adjustStyleForScrollbar(e,{direction:D?"rtl":"ltr"}),m&&m(e,t)}},E),ownerState:x},C,{classes:h,children:Ut.jsx(Tu,U({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:w,autoFocus:i&&(-1===R||l),autoFocusItem:S,variant:b},u,{className:yr(A.list,u.className),children:a}))}))});function Ou(e){return Dr("MuiMenuItem",e)}const Mu=xr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ju=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Nu=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"}},[`&.${Mu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Mu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Mu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vo.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})`:Vo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Mu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Mu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Cl.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Cl.inset}`]:{marginLeft:52},[`& .${uu.root}`]:{marginTop:0,marginBottom:0},[`& .${uu.inset}`]:{paddingLeft:36},[`& .${iu.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&U({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${iu.root} svg`]:{fontSize:"1.25rem"}}))),$u=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=n,p=V(n,ju),h=y.useContext(Ml),f=y.useMemo(()=>({dense:i||h.dense||!1,disableGutters:s}),[h.dense,i,s]),m=y.useRef(null);Mr(()=>{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"]},Ou,a))})(n),v=Zr(m,t);let E;return n.disabled||(E=void 0!==c?c:-1),Ut.jsx(Ml.Provider,{value:f,children:Ut.jsx(Nu,U({ref:v,role:u,tabIndex:E,component:o,focusVisibleClassName:yr(g.focusVisible,l),className:yr(g.root,d)},p,{ownerState:b,classes:g}))})});function zu(e){return Dr("MuiTab",e)}const Gu=xr("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Hu=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Uu=la(fs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${cn(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Gu.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,[`& > .${Gu.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,[`&.${Gu.selected}`]:{opacity:1},[`&.${Gu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Gu.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Gu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Gu.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Gu.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)})),Vu=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiTab"}),{className:r,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:a,icon:s,iconPosition:l="top",indicator:u,label:c,onChange:d,onClick:p,onFocus:h,selected:f,selectionFollowsFocus:m,textColor:b="inherit",value:g,wrapped:v=!1}=n,E=V(n,Hu),C=U({},n,{disabled:o,disableFocusRipple:i,selected:f,icon:!!s,iconPosition:l,label:!!c,fullWidth:a,textColor:b,wrapped:v}),D=(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${cn(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]},zu,t)})(C),x=s&&c&&y.isValidElement(s)?y.cloneElement(s,{className:yr(D.iconWrapper,s.props.className)}):s;return Ut.jsxs(Uu,U({focusRipple:!i,className:yr(D.root,r),ref:t,role:"tab","aria-selected":f,disabled:o,onClick:e=>{!f&&d&&d(e,g),p&&p(e)},onFocus:e=>{m&&!f&&d&&d(e,g),h&&h(e)},ownerState:C,tabIndex:f?0:-1},E,{children:["top"===l||"start"===l?Ut.jsxs(y.Fragment,{children:[x,c]}):Ut.jsxs(y.Fragment,{children:[c,x]}),u]}))});var Wu=Fa(Ut.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),qu=Fa(Ut.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Yu(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Ku=["onChange"],Xu={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Zu(e){return Dr("MuiTabScrollButton",e)}const Ju=xr("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Qu=["className","slots","slotProps","direction","orientation","disabled"],ec=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,[`&.${Ju.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),tc=y.forwardRef(function(e,t){var n,r;const o=xa({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:s={},direction:l}=o,u=V(o,Qu),c=U({isRtl:ko()},o),d=(e=>{const{classes:t,orientation:n,disabled:r}=e;return bo({root:["root",n,r&&"disabled"]},Zu,t)})(c),p=null!=(n=a.StartScrollButtonIcon)?n:Wu,h=null!=(r=a.EndScrollButtonIcon)?r:qu,f=Co({elementType:p,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:c}),m=Co({elementType:h,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:c});return Ut.jsx(ec,U({component:"div",className:yr(d.root,i),ref:t,role:null,ownerState:c,tabIndex:null},u,{children:"left"===l?Ut.jsx(p,U({},f)):Ut.jsx(h,U({},m))}))});function nc(e){return Dr("MuiTabs",e)}const rc=xr("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),oc=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],ic=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,ac=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,sc=(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)}},lc=la("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${rc.scrollButtons}`]:t.scrollButtons},{[`& .${rc.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&&{[`& .${rc.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),uc=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"})),cc=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"})),dc=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})),pc=la(function(e){const{onChange:t}=e,n=V(e,Ku),r=y.useRef(),o=y.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Mr(()=>{const e=Hr(()=>{const e=r.current;i(),e!==r.current&&t(r.current)}),n=Vr(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:Xu},n,{ref:o}))})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),hc={},fc=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiTabs"}),r=qi(),o=ko(),{"aria-label":i,"aria-labelledby":a,action:s,centered:l=!1,children:u,className:c,component:d="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:f,orientation:m="horizontal",ScrollButtonComponent:b=tc,scrollButtons:g="auto",selectionFollowsFocus:v,slots:E={},slotProps:C={},TabIndicatorProps:D={},TabScrollButtonProps:x={},textColor:A="primary",value:S,variant:w="standard",visibleScrollbar:R=!1}=n,F=V(n,oc),_="scrollable"===w,k="vertical"===m,I=k?"scrollTop":"scrollLeft",B=k?"top":"left",L=k?"bottom":"right",T=k?"clientHeight":"clientWidth",P=k?"height":"width",O=U({},n,{component:d,allowScrollButtonsMobile:p,indicatorColor:h,orientation:m,vertical:k,scrollButtons:g,textColor:A,variant:w,visibleScrollbar:R,fixed:!_,hideScrollbar:_&&!R,scrollableX:_&&!k,scrollableY:_&&k,centered:l&&!_,scrollButtonsHideMobile:!p}),M=(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"]},nc,l)})(O),j=Co({elementType:E.StartScrollButtonIcon,externalSlotProps:C.startScrollButtonIcon,ownerState:O}),N=Co({elementType:E.EndScrollButtonIcon,externalSlotProps:C.endScrollButtonIcon,ownerState:O}),[$,z]=y.useState(!1),[G,H]=y.useState(hc),[W,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!==S){const e=ne.current.children;if(e.length>0){const t=e[ee.get(S)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},oe=Xr(()=>{const{tabsMeta:e,tabMeta:t}=re();let n,r=0;if(k)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,[P]:t?t[P]:0};if(isNaN(G[n])||isNaN(G[P]))H(i);else{const e=Math.abs(G[n]-i[n]),t=Math.abs(G[P]-i[P]);(e>=1||t>=1)&&H(i)}}),ie=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=()=>{}){const{ease:i=Yu,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},d=r=>{if(u)return void o(new Error("Animation cancelled"));null===s&&(s=r);const c=Math.min(1,(r-s)/a);t[e]=i(c)*(n-l)+l,c>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(d)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(d)}(I,te.current,e,{duration:r.transitions.duration.standard}):te.current[I]=e},ae=e=>{let t=te.current[I];k?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===fo()?-1:1),ie(t)},se=()=>{const e=te.current[T];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[T]>e){0===r&&(t=e);break}t+=o[T]}return t},le=()=>{ae(-1*se())},ue=()=>{ae(se())},ce=y.useCallback(e=>{Q({overflow:null,scrollbarWidth:e})},[]),de=Xr(e=>{const{tabsMeta:t,tabMeta:n}=re();if(n&&t)if(n[B]<t[B]){const r=t[I]+(n[B]-t[B]);ie(r,{animation:e})}else if(n[L]>t[L]){const r=t[I]+(n[L]-t[L]);ie(r,{animation:e})}}),pe=Xr(()=>{_&&!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=Vr(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&&_&&!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()}}},[_,g,X,null==u?void 0:u.length]),y.useEffect(()=>{z(!0)},[]),y.useEffect(()=>{oe()}),y.useEffect(()=>{de(hc!==G)},[de,G]),y.useImperativeHandle(s,()=>({updateIndicator:oe,updateScrollButtons:pe}),[oe,pe]);const he=Ut.jsx(dc,U({},D,{className:yr(M.indicator,D.className),ownerState:O,style:U({},G,D.style)}));let fe=0;const me=y.Children.map(u,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===S;return fe+=1,y.cloneElement(e,U({fullWidth:"fullWidth"===w,indicator:n&&!$&&he,selected:n,selectionFollowsFocus:v,onChange:f,textColor:A,value:t},1!==fe||!1!==S||e.props.tabIndex?{}:{tabIndex:0}))}),be=(()=>{const e={};e.scrollbarSizeListener=_?Ut.jsx(pc,{onChange:ce,className:yr(M.scrollableX,M.hideScrollbar)}):null;const t=_&&("auto"===g&&(W||Y)||!0===g);return e.scrollButtonStart=t?Ut.jsx(b,U({slots:{StartScrollButtonIcon:E.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:j},orientation:m,direction:o?"right":"left",onClick:le,disabled:!W},x,{className:yr(M.scrollButtons,x.className)})):null,e.scrollButtonEnd=t?Ut.jsx(b,U({slots:{EndScrollButtonIcon:E.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:N},orientation:m,direction:o?"left":"right",onClick:ue,disabled:!Y},x,{className:yr(M.scrollButtons,x.className)})):null,e})();return Ut.jsxs(lc,U({className:yr(M.root,c),ownerState:O,ref:t,as:d},F,{children:[be.scrollButtonStart,be.scrollbarSizeListener,Ut.jsxs(uc,{className:M.scroller,ownerState:O,style:{overflow:J.overflow,[k?"margin"+(o?"Left":"Right"):"marginBottom"]:R?void 0:-J.scrollbarWidth},ref:te,children:[Ut.jsx(cc,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===m?"vertical":null,className:M.flexContainer,ownerState:O,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(),sc(t,n,ac);break;case i:e.preventDefault(),sc(t,n,ic);break;case"Home":e.preventDefault(),sc(t,null,ic);break;case"End":e.preventDefault(),sc(t,null,ac)}},ref:ne,role:"tablist",children:me}),$&&he]}),be.scrollButtonEnd]}))});function mc(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 bc({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 gc(e={}){return Ut.jsx(bc,{...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 vc(e={}){return Ut.jsx(bc,{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 yc(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 Ec(e={}){return Ut.jsx(bc,{...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 Cc(e={}){return Ut.jsx(bc,{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 Dc({className:e}){return Ut.jsx(bc,{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 xc(e={}){return Ut.jsx(bc,{...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 Ac=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(mc,{"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 ${zr(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 ${zr(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 ${zr(pa.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:pa.GREEN,"&.Mui-focusVisible":{borderColor:pa.GREEN,boxShadow:`0 0 0 3px ${zr(pa.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:pa.BLUE,"&.Mui-focusVisible":{borderColor:pa.BLUE,boxShadow:`0 0 0 3px ${zr(pa.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:pa.ORANGE,"&.Mui-focusVisible":{borderColor:pa.ORANGE,boxShadow:`0 0 0 3px ${zr(pa.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:pa.RED,"&.Mui-focusVisible":{borderColor:pa.RED,boxShadow:`0 0 0 3px ${zr(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 ${zr(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 ${zr(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 ${zr(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 ${zr(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 ${zr(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(yc,{"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:Da.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Ut.jsx(yc,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Ut.jsx(mc,{"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:Da.FONT_FAMILY,fontWeight:Ea,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(mc,{...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:Ea,color:pa.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Ea}}}},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(Cc,{}),checkedIcon:Ut.jsx(vc,{})},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 ${zr(pa.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:pa.BLUE_PALE,boxShadow:`0 0 0 3px ${zr(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(xc,{}),checkedIcon:Ut.jsx(gc,{}),indeterminateIcon:Ut.jsx(Ec,{})},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:Ea},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 ${zr(pa.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:pa.BLUE_PALE,boxShadow:`0 0 0 3px ${zr(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:Ea,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:Ea,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(Dc,{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 Sc=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 wc(e){return Vi({components:Ac(),palette:Sc(),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:Ea,fontWeightBold:Ca,htmlFontSize:fa,fontFamily:Da.FONT_FAMILY,button:{fontWeight:Ea,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:Ea,lineHeight:"16px"},h6:{fontSize:fa,fontWeight:Ea,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 Rc=["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 Fc{embed;translator;charts={};constructor(e,t){this.embed=e,this.translator=t}getCharts=()=>(this.charts=(this.embed?.getRegisteredTypes()??[]).reduce((e,t)=>{if(!Rc.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 _c,kc={};var Ic=function(){if(_c)return kc;_c=1;var e=L;return kc.createRoot=e.createRoot,kc.hydrateRoot=e.hydrateRoot,kc}();const Bc=E((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"})})),Lc="rgb(89, 89, 89)",Tc=Nt(qs)({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),Pc=Nt(qs)({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),Oc=Nt(zl,{shouldForwardProp:e=>"width"!==e})(({width:e})=>({"&.MuiList-root":{paddingTop:0,paddingBottom:0,width:e||250,maxHeight:250,overflow:"auto"}})),Mc=Nt(Es)({color:Lc,fontSize:"12px",fontFamily:"inherit",lineHeight:"24px",margin:"0px"}),jc=Nt(lu)({"&.MuiListItemIcon-root":{minWidth:32,color:Lc,marginRight:"0px"}}),Nc=Nt(Sl)({"&.MuiDivider-root":{borderBottom:"3px solid #595959"}}),$c=Nt(rl)({"&.MuiButton-contained":{backgroundColor:Lc,color:"rgb(255, 255, 255)"},"&.MuiButton-outlined":{backgroundColor:"rgb(255, 255, 255)",borderColor:Lc,color:Lc,border:"1px solid rgb(179, 179, 179)","&:hover":{backgroundColor:"rgb(255, 255, 255)",border:`1px solid ${Lc}`}}}),zc=Nt(Ra)({width:"1em",height:"1em",paddingBottom:"8px"}),Gc=Nt(Ra)({width:"16px",height:"16px"}),Hc=({name:e,items:t,onSelect:n})=>Ut.jsxs(Ut.Fragment,{children:[Ut.jsx(ru,{dense:!0,children:Ut.jsx(Mc,{noWrap:!0,fontWeight:"bold",children:e})},e),Ut.jsx(Nc,{}),t.map(e=>Ut.jsx(ru,{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(jc,{children:e.IconDefinition?Ut.jsx(e.IconDefinition,{}):Ut.jsx(Gc,{viewBox:"0 0 16 16",children:Ut.jsx("path",{d:e.iconPath})})}):null,Ut.jsx(Mc,{noWrap:!0,title:e.translation||e.name,children:e.translation||e.name})]})},e.qExtendsId??e.name))]}),Uc=({categories:e,anchorEl:t,onClose:n,onSelect:r,width:o})=>{const[i,a]=w(""),s=!!t;return Ut.jsxs(wu,{open:s,anchorEl:t,onClose:()=>{a(""),n()},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{marginTop:"5px"},children:[Ut.jsx(Ms,{fullWidth:!0,onChange:e=>{a(e.target.value)},startAdornment:Ut.jsx(Ol,{position:"start",children:Ut.jsx(Bc,{})})}),Ut.jsx(Nc,{}),Ut.jsx(Oc,{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(Hc,{name:e.name,items:t,onSelect:r},e.name)})})]})},Vc=({anchorEl:e,onClose:t,dataHandler:n,translator:r,sharedContainerUtilities:o,width:i})=>{const[a,s]=w([]),[l,u]=w({});R(()=>{if(e&&n){(async()=>{const e=await n.getMasterVizList();s(e),u(n.getCharts())})().catch(()=>{})}},[e,n]);const c=[],d=[],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)c.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 d.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:c.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(d)}];for(const[e,t]of p)m.push({name:e,items:f(t)});return Ut.jsx(Uc,{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})},Wc=e=>{const t=Yc(e);return e.objects?.map(e=>{const{childRefId:n}=e;if(!n)return e;const r=t[n];return r?{...e,id:r}:e})??[]},qc=(e,t)=>e?.qChildList?.qItems?.find(e=>e?.qData?.childRefId===t),Yc=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qData?.childRefId;return e[n]=t?.qInfo?.qId,e},{});var Kc=qc,Xc=e=>{const t={...e};return t.objects=Wc(t),t},Zc=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qInfo?.qId;return e[n]=t.qData?.childRefId,e},{}),Jc=e=>e.objects.reduce((e,t)=>(e[t.childRefId]=t,e),{}),Qc=(e,t)=>{if(!e)return t;const n=qc(e,t);return n?.qInfo?.qId};class ed{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],Ic.createRoot(r)})(this.activeContainer.element,"add-child-popover"),n=()=>{t.unmount()};t?.render(Ut.jsx(ca,{theme:this.data.muiTheme,children:Ut.jsx(Vc,{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=>Qc(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 td="object",nd=["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 rd=e=>({value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}});function od({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=>rd(e)),{value:"DefaultHeader",label:t.get("properties.allFonts"),metaText:t.get("properties.default"),groupHeader:!0},...nd.map(e=>rd(e))]}({theme:e,translator:t,defaultValue:o()})}}var id=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"];const ad=e=>({value:e,label:e,groupHeader:!1,disabled:!1});function sd({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=>ad(e)),{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0},...id.map(e=>ad(e))]}({theme:e,translator:t,defaultValue:o()})}}function ld({theme:e,translator:t,id:n,path:r}){return{fontFamily:od({theme:e,translator:t,id:n,path:r}),fontSize:sd({theme:e,translator:t,id:n,path:r})}}const ud=["__proto__","constructor"],cd=e=>{if(ud.some(t=>e.includes(t)))throw new Error("font-resolver: Forbidden property.")};var dd,pd,hd,fd=function(){if(pd)return dd;pd=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 dd=function e(){var t,n,r,l,u,c,d=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(f&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(f,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},dd}();function md(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function bd(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function gd(){}(hd=fd)&&hd.__esModule&&Object.prototype.hasOwnProperty.call(hd,"default")&&hd.default;var vd=.7,yd=1/vd,Ed="\\s*([+-]?\\d+)\\s*",Cd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Dd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xd=/^#([0-9a-f]{3,8})$/,Ad=new RegExp(`^rgb\\(${Ed},${Ed},${Ed}\\)$`),Sd=new RegExp(`^rgb\\(${Dd},${Dd},${Dd}\\)$`),wd=new RegExp(`^rgba\\(${Ed},${Ed},${Ed},${Cd}\\)$`),Rd=new RegExp(`^rgba\\(${Dd},${Dd},${Dd},${Cd}\\)$`),Fd=new RegExp(`^hsl\\(${Cd},${Dd},${Dd}\\)$`),_d=new RegExp(`^hsla\\(${Cd},${Dd},${Dd},${Cd}\\)$`),kd={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 Id(){return this.rgb().formatHex()}function Bd(){return this.rgb().formatRgb()}function Ld(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=xd.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Td(t):3===n?new jd(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Pd(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Pd(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=Ad.exec(e))?new jd(t[1],t[2],t[3],1):(t=Sd.exec(e))?new jd(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=wd.exec(e))?Pd(t[1],t[2],t[3],t[4]):(t=Rd.exec(e))?Pd(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Fd.exec(e))?Ud(t[1],t[2]/100,t[3]/100,1):(t=_d.exec(e))?Ud(t[1],t[2]/100,t[3]/100,t[4]):kd.hasOwnProperty(e)?Td(kd[e]):"transparent"===e?new jd(NaN,NaN,NaN,0):null}function Td(e){return new jd(e>>16&255,e>>8&255,255&e,1)}function Pd(e,t,n,r){return r<=0&&(e=t=n=NaN),new jd(e,t,n,r)}function Od(e){return e instanceof gd||(e=Ld(e)),e?new jd((e=e.rgb()).r,e.g,e.b,e.opacity):new jd}function Md(e,t,n,r){return 1===arguments.length?Od(e):new jd(e,t,n,null==r?1:r)}function jd(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Nd(){return`#${Hd(this.r)}${Hd(this.g)}${Hd(this.b)}`}function $d(){const e=zd(this.opacity);return`${1===e?"rgb(":"rgba("}${Gd(this.r)}, ${Gd(this.g)}, ${Gd(this.b)}${1===e?")":`, ${e})`}`}function zd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Gd(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Hd(e){return((e=Gd(e))<16?"0":"")+e.toString(16)}function Ud(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Wd(e,t,n,r)}function Vd(e){if(e instanceof Wd)return new Wd(e.h,e.s,e.l,e.opacity);if(e instanceof gd||(e=Ld(e)),!e)return new Wd;if(e instanceof Wd)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 Wd(a,s,l,e.opacity)}function Wd(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function qd(e){return(e=(e||0)%360)<0?e+360:e}function Yd(e){return Math.max(0,Math.min(1,e||0))}function Kd(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}md(gd,Ld,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Id,formatHex:Id,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Vd(this).formatHsl()},formatRgb:Bd,toString:Bd}),md(jd,Md,bd(gd,{brighter(e){return e=null==e?yd:Math.pow(yd,e),new jd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?vd:Math.pow(vd,e),new jd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jd(Gd(this.r),Gd(this.g),Gd(this.b),zd(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:Nd,formatHex:Nd,formatHex8:function(){return`#${Hd(this.r)}${Hd(this.g)}${Hd(this.b)}${Hd(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$d,toString:$d})),md(Wd,function(e,t,n,r){return 1===arguments.length?Vd(e):new Wd(e,t,n,null==r?1:r)},bd(gd,{brighter(e){return e=null==e?yd:Math.pow(yd,e),new Wd(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?vd:Math.pow(vd,e),new Wd(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 jd(Kd(e>=240?e-240:e+120,o,r),Kd(e,o,r),Kd(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Wd(qd(this.h),Yd(this.s),Yd(this.l),zd(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=zd(this.opacity);return`${1===e?"hsl(":"hsla("}${qd(this.h)}, ${100*Yd(this.s)}%, ${100*Yd(this.l)}%${1===e?")":`, ${e})`}`}}));const Xd=Math.PI/180,Zd=180/Math.PI,Jd=.96422,Qd=.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 cp)return dp(e);e instanceof jd||(e=Od(e));var t,n,r=up(e.r),o=up(e.g),i=up(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)/Jd),n=ap((.0139322*r+.0971045*o+.7141733*i)/Qd)),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 up(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function cp(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function dp(e){if(isNaN(e.h))return new ip(e.l,0,0,e.opacity);var t=e.h*Xd;return new ip(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}md(ip,function(e,t,n,r){return 1===arguments.length?op(e):new ip(e,t,n,null==r?1:r)},bd(gd,{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 jd(lp(3.1338561*(t=Jd*sp(t))-1.6168667*(e=1*sp(e))-.4906146*(n=Qd*sp(n))),lp(-.9787684*t+1.9161415*e+.033454*n),lp(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),md(cp,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof cp)return new cp(e.h,e.c,e.l,e.opacity);if(e instanceof ip||(e=op(e)),0===e.a&&0===e.b)return new cp(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Zd;return new cp(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new cp(e,t,n,null==r?1:r)},bd(gd,{brighter(e){return new cp(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new cp(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return dp(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=Md(e)).r,(t=Md(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 Ep(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Dp)):void 0===t&&(t=Cp);for(var n,r,o,i,a,s=new Sp(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 Sp(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Ap)}function Cp(e){return e.children}function Dp(e){return Array.isArray(e)?e[1]:null}function xp(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Ap(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Sp(e){this.data=e,this.depth=this.height=0,this.parent=null}var wp;Sp.prototype=Ep.prototype={constructor:Sp,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 Ep(this).eachBefore(xp)},[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)}},wp=function(e){
|
|
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,u,c,d,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),E=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"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0===+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",g=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.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+E}},wp({exports:{}});const Rp="'Source Sans Pro', 'Arial', 'sans-serif'",Fp="#333333",_p="#595959",kp="#737373",Ip="#cccccc",Bp="#e6e6e6";function Lp(e){const t={};return[...e,["","","color"],["object","","fontFamily"],["object","axis.label.name","color",_p],["object","axis.label.name","fontFamily",Rp],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",Ip],["object","axis.line.minor","color",Bp],["object","axis.title","color"],["object","axis.title","fontFamily",Rp],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",Bp],["object","grid.line.major","color",Ip],["object","grid.line.minor","color",Bp],["object","label.value","color",_p],["object","label.value","fontFamily",Rp],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",_p],[!1,"label.value","lightColor",Bp],["object","outOfRange","color","#999"],["object","legend.title","color",Fp],["object","legend.title","fontFamily",Rp],["object","legend.title","fontSize","15px"],["object","legend.label","color",_p],["object","legend.label","fontFamily",Rp],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",Fp],["object","referenceLine.label.name","fontFamily",Rp],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",Bp],["object","referenceLine.outOfBounds","fontFamily",Rp],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",kp,e=>"transparent"===e?kp: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 Tp="object",Pp=e=>e;function Op({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,u=e=>e]=n,c=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===Tp&&t?`${Tp}.${t}`:r,path:o,attribute:s,defaultValue:l}),d=(a[`${o}.${s}`]||Pp)(u(c));vp(i,[o,s].filter(Boolean).join("."),d)}),r.forEach(e=>{const[t,n]=e;vp(i,t,n)}),i}const Mp={qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",containerChildId:"/containerChildId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition",visible:"/visible"}};function jp(e){if(!e.objects)return{};const t=Jc(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 Np=({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`)}}}),$p=({theme:e})=>({bgColorAllWrapper:Np({ref:"background.unselected"}),selectedTab:{translation:"properties.chartType.selected",component:"text"},bgColorSelectedWrapper:Np({ref:"background.selected"}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:Np({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}}),zp=({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:Np({ref:"indicator.selected",theme:e}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:Np({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})}}}),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]}}}}}),Wp=({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:zp({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:Np({ref:"background"})}:$p({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:{...Vp({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=Kc(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},uh={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=Qc(t.getLayout(),e.defaultTabId);n&&t.setSelectedChild([n])},show:e=>e.objects.length>0},ch={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},dh=({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:Vp({ref:n,key:r}),indicator:Wp({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:dh({fontResolver:e.fontResolver,theme:t?.theme}),container:{type:"items",items:{showTabs:ih,useDropdown:ah,useScrollButton:sh,showIcons:lh,orientation:ch,defaultTabId:uh}}}}},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?td:`${td}.${t}`,paths:Array.isArray(n)?n:[]}}({config:n}),i={};o.forEach(n=>{const o=n.split(".");cd(o);let a=i;for(let i=0;i<o.length;i++){const s=o[i];i===o.length-1?a[s]=ld({theme:e,translator:t,id:r,path:n}):void 0===a[s]&&(a[s]={}),a=a[s]}});const a=e=>{const t=e.split(".");cd(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 ed({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&&Rc.includes(t.template))return!1;if("visualization"===t.type&&Rc.includes(t.visualization))return!1}return"gridcell"!==e.type||!Rc.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 ed({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 u=await Promise.all(l),c={...e,objects:n,defaultTabId:r??"",components:o,qChildListDef:Mp,orientation:i,showDetails:a};t.clearSoftPatches(),await t.setFullPropertyTree({...s,qProperty:c,qChildren:u})}}})(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:jp}},gh=({propertyHandlerData:e,element:r,sharedContainerUtilities:o,translator:i,containerId:a,dataHandler:s,renderHelper:l,chartList:u})=>{const c=t();a&&e.sync({containerId:a,element:r,sharedContainerUtilities:o,translator:i,dataHandler:s,renderHelper:l,chartList:u}),n(()=>{e.setMuiTheme(c.direction)},[c.direction,e]),n(()=>()=>{a&&e.destroy(a)},[a,e,c.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)}},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 vh(n)},Ch=(e,t)=>(r(async n=>{const r=n,{snapshotData:o}=r;if(o){const n=Xc(r),i=t(e.objectMap,n),[a,s]=await Promise.all([Eh(i.objectMap),yh(i.objectMap)]);o.objectsData={layouts:a},r.objects=i.objects,o.viewState=s}return n}),{getViewState:()=>yh(e.objectMap)});let Dh=function(e){return e.OPEN_CONTEXT_MENU="shift+F10",e.ESCAPE="Escape",e.SPACE=" ",e.ENTER="Enter",e.BACKSPACE="Backspace",e.DELETE="Delete",e}({}),xh=function(e){return e.KEY_DOWN="keydown",e.FOCUS_OUT="focusout",e}({}),Ah=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 Sh=`& .${Ah.TAB}.${Ah.TAB_EXTRA_PRIO}, .${Ah.TAB}.${Ah.ACTIVE_TAB}`,wh=`& .${Ah.TAB}.${Ah.TAB_EXTRA_PRIO}:hover`,Rh=`& .${Ah.TAB_LABEL}`,Fh=`& .${Ah.TABS_ICON} svg`,_h=`& .${Ah.TAB_WRAPPER}`,kh=`& .${Ah.TAB_INDICATOR}`,Ih=e=>e.getElementsByClassName(Ah.ACTIVE_TAB)?.[0],Bh=e=>e.getElementsByClassName(Ah.ACTIVE_TAB_PANEL)?.[0],Lh=({element:e,setAccessibility:t,accessibility:r,renderHelper:s,interactions:l,env:u,models:c})=>{const{modifiedLayout:{showTabs:d,objects:p,orientation:h},translator:f}=c;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,d?t:""]))})()},[e,d,p,f,h]);const m=u.flags.isEnabled("VIZ-7_NEW_SHEET")||u.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 Dh.ESCAPE:t.stopPropagation(),b.blur?.(!0);break;case Dh.ENTER:case Dh.SPACE:{t.stopPropagation();const n=t.target;n?.classList.contains(Ah.ACTIVE_TAB)&&Bh(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 Dh.ESCAPE:{const n=Ih(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 Dh.ENTER:case Dh.SPACE:{const n=Bh(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 Dh.OPEN_CONTEXT_MENU:t.stopPropagation(),r?.viewDataToggled||e!==document.activeElement&&(g(),e.focus())}},[e,g,m,s]),E=i(()=>e=>{const t=e.target;t?.classList.contains(Ah.ACTIVE_TAB_PANEL)?y(e):v(e)},[v,y]);n(()=>(r&&e.addEventListener(xh.KEY_DOWN,E),()=>{e.removeEventListener(xh.KEY_DOWN,E)}),[e,r,E]);const[C,D]=a(!1);n(()=>{C&&(D(!1),window.setTimeout(()=>((e=>e.getElementsByClassName(Ah.TAB_MENU)?.[0])(e)??Ih(e))?.focus(),0))},[e,C]),n(()=>{t(!1)},[l.edit,t]),n(()=>{const n=t=>{const n=t.relatedTarget;e?.contains(n)||n?.classList.contains(Ah.TAB_MENU_ITEM)||g?.()};return b.enabled&&b.active&&!l.edit&&(t(!0),D(!0),e.addEventListener(xh.FOCUS_OUT,n)),()=>{e.removeEventListener(xh.FOCUS_OUT,n)}},[b])},Th=e=>{const[t]=a(e);return[t,function(e){Object.assign(t,e)}]},Ph=({isContainerActive:e,activeTabId:t,modifiedLayout:r,renderHelper:o,activeCharts:a,sharedContainerUtilities:s})=>{const l={modifiedLayout:r,activeTabId:t,renderHelper:o,isContainerActive:e},[u,c]=Th(l);c(l);const d=i(()=>()=>{const e=Zc(u.modifiedLayout);for(const[t,n]of u.renderHelper.objectMap.entries()){const r=u.isContainerActive&&u.activeTabId===e[t];"setIsActive"in n&&n.setIsActive(r)}},[u]);n(()=>{u.isContainerActive&&d()},[o.objectMap,d,u]),n(()=>{d()},[e,d]),(({activeCharts:e,onSetActiveCharts:t,canSetActiveChart:r=!0})=>{const[o,i]=Th({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=u.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t&&t!==u.activeTabId&&s.setSelected(e)}})},Oh={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 Mh={qInfo:{qId:"MasterObjectList",qType:"MasterObjectList"},qAppObjectListDef:{qType:"masterobject",qData:{name:"/qMetaDef/title",labelExpression:"/labelExpression",visualization:"/visualization",tags:"/qMetaDef/tags"}}};class jh{sessionObject;constructor(e){this.getOrCreateSessionObject(e).catch(()=>{})}getOrCreateSessionObject=async e=>{const t=Mh.qInfo.qId;this.sessionObject=await e.getObject(t).catch(()=>e.createSessionObject(Mh))};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=>!Rc.includes(e.visualization))}catch{return[]}}}let Nh=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 $h{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 jh(n)),e&&r&&(this.chartList=new Fc(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&&!Rc.includes(e.visualization))try{await this.mutex.lock();const{model:r}=this,o=async()=>{e.childRefId=Oh.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 Nh.TOP:{if(0===o)break;const e=r.splice(o,1)[0];r.unshift(e),i=!0;break}case Nh.BOTTOM:{if(o===r.length-1)break;const e=r.splice(o,1)[0];r.push(e),i=!0;break}case Nh.UP:{if(0===o)break;const e=r.splice(o,1)[0];r.splice(o-1,0,e),i=!0;break}case Nh.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 zh{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}},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})`},Wh=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 Vh(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 Wh(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 Wh(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 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&&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(zc,{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:Ah.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(Gc,{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(Gc,{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(tc)({width:28,overflow:"hidden"}),Qh=la(tc)({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=Jc(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=()=>({[Rh]:{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"})},[Fh]:{height:this.resolveComponentStyle({compPath:"icon.size",themePath:"icon.value.fontSize"}),color:this.getColorStyle("icon.color","icon.value.color")},[Sh]:{textAlign:this.resolveComponentStyle({compPath:"label.alignment",themePath:"label.textAlignment"}),...this.getTabsWidth("top")},[wh]:{..."top"===this.modifiedLayout.orientation&&{borderBottomColor:this.getColorStyle("indicator.hover","indicator.hover.color")}},[_h]:{...this.getTabsWidth("left"),backgroundColor:this.getColorStyle("background.unselected","")},[kh]:{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=u(),o=c(),b=d(),g=p(),v=t(),y=h(),E=f(),C=function({theme:e,config:t={}}){const{id:n,resolve:r=[],transform:o=[],extend:i=[]}=t,a={theme:e,matrix:Lp(r),styles:void 0};return a.styles=Op({theme:e,id:n,transform:o,extend:i,matrix:a.matrix}),{getStyles:()=>a.styles,getTheme:()=>a.theme,setTheme:e=>{a.theme=e,a.styles=Op({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"]]}}),D=i(()=>new Fc(o,g),[o,g]),[x]=a(()=>new zh(b?.id)),[A,S]=a(!1),w=i(()=>o&&b&&n?new $h({embed:o,model:b,app:n,translator:g,mutex:x}):void 0,[o,b,n,g,x]),R=i(()=>Xc(r),[r]),F=i(()=>new rf({modifiedLayout:R,themeService:C}),[R,C]);return i(()=>({app:n,modifiedLayout:R,embed:o,model:b,emitter:y,interactions:E,dataHandler:w,chartList:D,styleModel:F,mutex:x,options:v,accessibility:A,setAccessibility:S,translator:g,element:e}),[R,o,b,n,y,E,w,D,F,x,v,A,g,e])},af=({dataHandler:e,modifiedLayout:t,translator:n,sharedContainerUtilities:r,Icon:o})=>{const[i,a]=w(void 0);if(!e||!t)return null;const s=!t.qExtendsId;return Ut.jsx(Pc,{children:Ut.jsxs(Tc,{children:[Ut.jsx(o,{}),s?Ut.jsxs(Ut.Fragment,{children:[Ut.jsx($c,{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(Vc,{translator:n,anchorEl:i,dataHandler:e,onClose:()=>{a(void 0)},sharedContainerUtilities:r})]}):Ut.jsx(Es,{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()}}var lf=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),uf=lf((e,t)=>{t.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,t.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,t.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/}),cf=lf((e,t)=>{const n=uf();t.exports={isSpaceSeparator:e=>"string"==typeof e&&n.Space_Separator.test(e),isIdStartChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||n.ID_Start.test(e)),isIdContinueChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||""===e||""===e||n.ID_Continue.test(e)),isDigit:e=>"string"==typeof e&&/[0-9]/.test(e),isHexDigit:e=>"string"==typeof e&&/[0-9A-Fa-f]/.test(e)}}),df=lf((e,t)=>{const n=cf();let r,o,i,a,s,l,u,c,d,p,h,f,m,b;function g(e,t,n){const r=e[t];if(null!=r&&"object"==typeof r)if(Array.isArray(r))for(let e=0;e<r.length;e++){const t=String(e),o=g(r,t,n);void 0===o?delete r[t]:Object.defineProperty(r,t,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(const e in r){const t=g(r,e,n);void 0===t?delete r[e]:Object.defineProperty(r,e,{value:t,writable:!0,enumerable:!0,configurable:!0})}return n.call(e,t,r)}function v(){for(p="default",h="",f=!1,m=1;;){b=y();const e=C[p]();if(e)return e}}function y(){if(r[a])return String.fromCodePoint(r.codePointAt(a))}function E(){const e=y();return"\n"===e?(s++,l=0):e?l+=e.length:l++,e&&(a+=e.length),e}t.exports=function(e,t){r=String(e),o="start",i=[],a=0,s=1,l=0,u=void 0,c=void 0,d=void 0;do{u=v(),S[o]()}while("eof"!==u.type);return"function"==typeof t?g({"":d},"",t):d};const C={default(){switch(b){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":return void E();case"/":return E(),void(p="comment");case void 0:return E(),D("eof")}if(!n.isSpaceSeparator(b))return C[o]();E()},comment(){switch(b){case"*":return E(),void(p="multiLineComment");case"/":return E(),void(p="singleLineComment")}throw F(E())},multiLineComment(){switch(b){case"*":return E(),void(p="multiLineCommentAsterisk");case void 0:throw F(E())}E()},multiLineCommentAsterisk(){switch(b){case"*":return void E();case"/":return E(),void(p="default");case void 0:throw F(E())}E(),p="multiLineComment"},singleLineComment(){switch(b){case"\n":case"\r":case"\u2028":case"\u2029":return E(),void(p="default");case void 0:return E(),D("eof")}E()},value(){switch(b){case"{":case"[":return D("punctuator",E());case"n":return E(),x("ull"),D("null",null);case"t":return E(),x("rue"),D("boolean",!0);case"f":return E(),x("alse"),D("boolean",!1);case"-":case"+":return"-"===E()&&(m=-1),void(p="sign");case".":return h=E(),void(p="decimalPointLeading");case"0":return h=E(),void(p="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return h=E(),void(p="decimalInteger");case"I":return E(),x("nfinity"),D("numeric",1/0);case"N":return E(),x("aN"),D("numeric",NaN);case'"':case"'":return f='"'===E(),h="",void(p="string")}throw F(E())},identifierNameStartEscape(){if("u"!==b)throw F(E());E();const e=A();switch(e){case"$":case"_":break;default:if(!n.isIdStartChar(e))throw k()}h+=e,p="identifierName"},identifierName(){switch(b){case"$":case"_":case"":case"":return void(h+=E());case"\\":return E(),void(p="identifierNameEscape")}if(!n.isIdContinueChar(b))return D("identifier",h);h+=E()},identifierNameEscape(){if("u"!==b)throw F(E());E();const e=A();switch(e){case"$":case"_":case"":case"":break;default:if(!n.isIdContinueChar(e))throw k()}h+=e,p="identifierName"},sign(){switch(b){case".":return h=E(),void(p="decimalPointLeading");case"0":return h=E(),void(p="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return h=E(),void(p="decimalInteger");case"I":return E(),x("nfinity"),D("numeric",m*(1/0));case"N":return E(),x("aN"),D("numeric",NaN)}throw F(E())},zero(){switch(b){case".":return h+=E(),void(p="decimalPoint");case"e":case"E":return h+=E(),void(p="decimalExponent");case"x":case"X":return h+=E(),void(p="hexadecimal")}return D("numeric",0*m)},decimalInteger(){switch(b){case".":return h+=E(),void(p="decimalPoint");case"e":case"E":return h+=E(),void(p="decimalExponent")}if(!n.isDigit(b))return D("numeric",m*Number(h));h+=E()},decimalPointLeading(){if(n.isDigit(b))return h+=E(),void(p="decimalFraction");throw F(E())},decimalPoint(){switch(b){case"e":case"E":return h+=E(),void(p="decimalExponent")}return n.isDigit(b)?(h+=E(),void(p="decimalFraction")):D("numeric",m*Number(h))},decimalFraction(){switch(b){case"e":case"E":return h+=E(),void(p="decimalExponent")}if(!n.isDigit(b))return D("numeric",m*Number(h));h+=E()},decimalExponent(){switch(b){case"+":case"-":return h+=E(),void(p="decimalExponentSign")}if(n.isDigit(b))return h+=E(),void(p="decimalExponentInteger");throw F(E())},decimalExponentSign(){if(n.isDigit(b))return h+=E(),void(p="decimalExponentInteger");throw F(E())},decimalExponentInteger(){if(!n.isDigit(b))return D("numeric",m*Number(h));h+=E()},hexadecimal(){if(n.isHexDigit(b))return h+=E(),void(p="hexadecimalInteger");throw F(E())},hexadecimalInteger(){if(!n.isHexDigit(b))return D("numeric",m*Number(h));h+=E()},string(){switch(b){case"\\":return E(),void(h+=function(){switch(y()){case"b":return E(),"\b";case"f":return E(),"\f";case"n":return E(),"\n";case"r":return E(),"\r";case"t":return E(),"\t";case"v":return E(),"\v";case"0":if(E(),n.isDigit(y()))throw F(E());return"\0";case"x":return E(),function(){let e="",t=y();if(!n.isHexDigit(t))throw F(E());if(e+=E(),t=y(),!n.isHexDigit(t))throw F(E());return e+=E(),String.fromCodePoint(parseInt(e,16))}();case"u":return E(),A();case"\n":case"\u2028":case"\u2029":return E(),"";case"\r":return E(),"\n"===y()&&E(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case void 0:throw F(E())}return E()}());case'"':return f?(E(),D("string",h)):void(h+=E());case"'":return f?void(h+=E()):(E(),D("string",h));case"\n":case"\r":throw F(E());case"\u2028":case"\u2029":!function(e){console.warn(`JSON5: '${I(e)}' in strings is not valid ECMAScript; consider escaping`)}(b);break;case void 0:throw F(E())}h+=E()},start(){switch(b){case"{":case"[":return D("punctuator",E())}p="value"},beforePropertyName(){switch(b){case"$":case"_":return h=E(),void(p="identifierName");case"\\":return E(),void(p="identifierNameStartEscape");case"}":return D("punctuator",E());case'"':case"'":return f='"'===E(),void(p="string")}if(n.isIdStartChar(b))return h+=E(),void(p="identifierName");throw F(E())},afterPropertyName(){if(":"===b)return D("punctuator",E());throw F(E())},beforePropertyValue(){p="value"},afterPropertyValue(){switch(b){case",":case"}":return D("punctuator",E())}throw F(E())},beforeArrayValue(){if("]"===b)return D("punctuator",E());p="value"},afterArrayValue(){switch(b){case",":case"]":return D("punctuator",E())}throw F(E())},end(){throw F(E())}};function D(e,t){return{type:e,value:t,line:s,column:l}}function x(e){for(const t of e){if(y()!==t)throw F(E());E()}}function A(){let e="",t=4;for(;t-- >0;){const t=y();if(!n.isHexDigit(t))throw F(E());e+=E()}return String.fromCodePoint(parseInt(e,16))}const S={start(){if("eof"===u.type)throw _();w()},beforePropertyName(){switch(u.type){case"identifier":case"string":return c=u.value,void(o="afterPropertyName");case"punctuator":return void R();case"eof":throw _()}},afterPropertyName(){if("eof"===u.type)throw _();o="beforePropertyValue"},beforePropertyValue(){if("eof"===u.type)throw _();w()},beforeArrayValue(){if("eof"===u.type)throw _();"punctuator"!==u.type||"]"!==u.value?w():R()},afterPropertyValue(){if("eof"===u.type)throw _();switch(u.value){case",":return void(o="beforePropertyName");case"}":R()}},afterArrayValue(){if("eof"===u.type)throw _();switch(u.value){case",":return void(o="beforeArrayValue");case"]":R()}},end(){}};function w(){let e;switch(u.type){case"punctuator":switch(u.value){case"{":e={};break;case"[":e=[]}break;case"null":case"boolean":case"numeric":case"string":e=u.value}if(void 0===d)d=e;else{const t=i[i.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,c,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(null!==e&&"object"==typeof e)i.push(e),o=Array.isArray(e)?"beforeArrayValue":"beforePropertyName";else{const e=i[i.length-1];o=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}}function R(){i.pop();const e=i[i.length-1];o=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}function F(e){return B(void 0===e?`JSON5: invalid end of input at ${s}:${l}`:`JSON5: invalid character '${I(e)}' at ${s}:${l}`)}function _(){return B(`JSON5: invalid end of input at ${s}:${l}`)}function k(){return l-=5,B(`JSON5: invalid identifier character at ${s}:${l}`)}function I(e){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){const t=e.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return e}function B(e){const t=new SyntaxError(e);return t.lineNumber=s,t.columnNumber=l,t}}),pf=lf((e,t)=>{const n=cf();t.exports=function(e,t,r){const o=[];let i,a,s,l="",u="";if(null==t||"object"!=typeof t||Array.isArray(t)||(r=t.space,s=t.quote,t=t.replacer),"function"==typeof t)a=t;else if(Array.isArray(t)){i=[];for(const e of t){let t;"string"==typeof e?t=e:("number"==typeof e||e instanceof String||e instanceof Number)&&(t=String(e)),void 0!==t&&i.indexOf(t)<0&&i.push(t)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),"number"==typeof r?r>0&&(r=Math.min(10,Math.floor(r)),u=" ".substr(0,r)):"string"==typeof r&&(u=r.substr(0,10)),c("",{"":e});function c(e,t){let n=t[e];switch(null!=n&&("function"==typeof n.toJSON5?n=n.toJSON5(e):"function"==typeof n.toJSON&&(n=n.toJSON(e))),a&&(n=a.call(t,e,n)),n instanceof Number?n=Number(n):n instanceof String?n=String(n):n instanceof Boolean&&(n=n.valueOf()),n){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof n?d(n):"number"==typeof n?String(n):"object"==typeof n?Array.isArray(n)?function(e){if(o.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");o.push(e);let t=l;l+=u;let n,r=[];for(let t=0;t<e.length;t++){const n=c(String(t),e);r.push(void 0!==n?n:"null")}if(0===r.length)n="[]";else if(""===u)n="["+r.join(",")+"]";else{let e=",\n"+l,o=r.join(e);n="[\n"+l+o+",\n"+t+"]"}return o.pop(),l=t,n}(n):function(e){if(o.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");o.push(e);let t=l;l+=u;let n,r=i||Object.keys(e),a=[];for(const t of r){const n=c(t,e);if(void 0!==n){let e=p(t)+":";""!==u&&(e+=" "),e+=n,a.push(e)}}if(0===a.length)n="{}";else{let e;if(""===u)e=a.join(","),n="{"+e+"}";else{let r=",\n"+l;e=a.join(r),n="{\n"+l+e+",\n"+t+"}"}}return o.pop(),l=t,n}(n):void 0}function d(e){const t={"'":.1,'"':.2},r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let o="";for(let i=0;i<e.length;i++){const a=e[i];switch(a){case"'":case'"':t[a]++,o+=a;continue;case"\0":if(n.isDigit(e[i+1])){o+="\\x00";continue}}if(r[a])o+=r[a];else{if(a<" "){let e=a.charCodeAt(0).toString(16);o+="\\x"+("00"+e).substring(e.length);continue}o+=a}}const i=s||Object.keys(t).reduce((e,n)=>t[e]<t[n]?e:n);return o=o.replace(new RegExp(i,"g"),r[i]),i+o+i}function p(e){if(0===e.length)return d(e);const t=String.fromCodePoint(e.codePointAt(0));if(!n.isIdStartChar(t))return d(e);for(let r=t.length;r<e.length;r++)if(!n.isIdContinueChar(String.fromCodePoint(e.codePointAt(r))))return d(e);return e}}});function hf(e){if("undefined"==typeof window)throw new Error(`Cannot load runtime module "${e}" outside a browser (no window available)`)}async function ff(e,t){return t?.runtimeModuleMocks?.[e]?t.runtimeModuleMocks?.[e]:(hf(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(hf(e),!window.__qlikMainPrivateResolvers?.qlikMainPromise)throw new Error("No main url resolver found");return(await window.__qlikMainPrivateResolvers.qlikMainPromise).import(e)}(e))}lf((e,t)=>{t.exports={parse:df(),stringify:pf()}})(),"undefined"!=typeof window&&(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 mf=F(void 0),bf=e=>{const t=k(null),n=k(void 0),{vanillaEmbedFn:r,hostConfig:o,...i}=e;return R(()=>(t.current&&(n.current=r({target:t.current,props:{hostConfig:o,...i}})),()=>{n.current&&n.current.$destroy()}),[]),R(()=>{n.current&&n.current.$set({hostConfig:o,...i})},[i,o]),Ut.jsx("qlik-embed-react",{style:{display:"contents"},ref:t})},gf=e=>{const t=C(mf),{vanillaEmbedFn:n}=function(e){const[t,n]=w({});return R(()=>{let t=!1;const r=e=>{t||n({vanillaError:e instanceof Error?e:new Error(String(e))})},o=e=>ff("embed-vanilla@v1",e).then(({mountVanillaEmbedComponent:e})=>{t||n({vanillaEmbedFn:e})});return e?o(e).catch(r):ff("auth@v1").then(e=>{if(!t&&e.getDefaultHostConfig?.())return o(void 0)}).catch(r),()=>{t=!0}},[e]),t}(t);return n?Ut.jsx(bf,{hostConfig:t,...e,vanillaEmbedFn:n}):null};const vf=E(function(e,t){const[n,r]=w(null),o=function(e){const t=k(e);return R(()=>{t.current=e},[e]),I(e=>{t.current(e)},[])}(e=>{r(()=>e)});return _(t,()=>n,[n]),Ut.jsx(gf,{exposeRefApi:o,...e})}),yf=new Map,Ef=e=>{const t=yf.get(e);t&&(t.unmount(),yf.delete(e))},Cf=({chartObject:e,embed:t,renderHelper:n,direction:r,interactions:o,env:i,app:a})=>{const s=k(null),{id:l}=e;R(()=>(l&&s.current&&(async(e,t,n,r,o)=>{const i=o?.id;if(r.shouldRenderWithQmfeEmbed(i))try{const n=Ic.createRoot(e);return yf.set(t,n),void n.render(Ut.jsx(mf.Provider,{value:{},children:Ut.jsx(vf,{...r.getQmfeEmbedProps(t,i)})}))}catch(e){console.warn("QlikEmbed mount failed, falling back to embed.render()",t,e),Ef(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&&Ef(l)}),[l,t,n,r,a]);const u=B(()=>()=>{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 R(()=>{const e=s?.current;return e&&o?.edit&&e.addEventListener("dblclick",u),()=>{e?.removeEventListener("dblclick",u)}},[s,u,o]),Ut.jsx("div",{ref:s,style:{position:"relative",height:"100%",width:"100%"},"data-testid":`tab-panel-${e.childRefId}`})};let Df=function(e){return e.TABS_HEIGHT="36px",e}({});const xf=({charts:e,handleChangeTab:t,activeTabId:n,element:r,translator:o,accessibility:i,disabled:a})=>{const[s,l]=D.useState(null),u=Boolean(s),c=()=>{l(null)},d=I(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:Ah.TAB_MENU,sx:{m:"2px"},children:Ut.jsx(Zh,{})}),Ut.jsx(Pu,{anchorEl:s,open:u,onClose:c,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($u,{className:Ah.TAB_MENU_ITEM,ref:n===e.childRefId&&u?d:null,onClick:()=>{(e=>{t(e.childRefId),c(),window.setTimeout(()=>{r.getElementsByClassName(Ah.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(Es,{variant:"inherit",noWrap:!0,children:e.label})},`chartTabMenu-${e.childRefId}`))})]})},Af=({label:e,id:t})=>Ut.jsx(qs,{className:Ah.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})}),Sf=({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:`${Ah.TABS_ICON}-${r}`,style:o}):e?Ut.jsx(Kh,{id:`${Ah.TABS_ICON}-${r}`,libraryInfo:e,style:o}):null},wf=({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:u,tabContainerStyle:c,ScrollButtonComponent:d}=(({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]=w(!1),m=I(e=>{if(e){const t=e.getElementsByClassName("MuiTabs-flexContainer")[0];if(t)return void f("vertical"===u?t.scrollHeight>t.offsetHeight:t.scrollWidth>t.offsetWidth)}f(!1)},[u]);return Ut.jsxs(qs,{className:Ah.TAB_WRAPPER,sx:c,ref:e=>{m(e)},children:[r.useDropdown&&h?Ut.jsx(xf,{charts:l,handleChangeTab:n,activeTabId:t,accessibility:a,translator:e.translator,element:e.element,disabled:p}):null,Ut.jsx(fc,{value:t,onChange:(e,t)=>{n(t)},ScrollButtonComponent:d,variant:"scrollable",orientation:u,scrollButtons:!!r.useScrollButton&&"auto",TabScrollButtonProps:{...p&&{disabled:!0}},sx:{height:"100%",width:"100%",minHeight:Df.TABS_HEIGHT},children:l.map(n=>{const o=Kc(r,n.childRefId)?.qData?.visualization,i=o&&s?.[o]?.libraryInfo,l=e.styleModel.getTabStyle(n.childRefId),c=0===n.condition||r.showIcons&&i&&!1!==l?.icon?.show||!1===n.visible,d="vertical"===u?"top":"start",h=e.styleModel.resolveComponentStyle({compPath:"icon.position",defaultValue:d}),f=e.styleModel.resolveComponentStyle({compPath:"label.show"}),m=n.label&&(l?.label?.show??!1!==f),b=`${r.qInfo.qId}-${n.childRefId}`;return Ut.jsx(Vu,{className:`${Ah.TAB} ${t===n.childRefId?Ah.ACTIVE_TAB:""}`,disabled:p,id:`tab-${b}`,value:n.childRefId,title:n.label,label:m?Ut.jsx(Af,{label:n.label,id:b}):void 0,icon:c?Ut.jsx(Sf,{libraryInfo:i,chart:n,iconPosition:h,id:b}):"",iconPosition:h,"data-testid":`container-tab-${n.childRefId}`,sx:{textAlign:"vertical"!==u||r.showIcons?"center":"start",minWidth:"vertical"===u?"100%":void 0,minHeight:Df.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)})})]})},Rf=({models:e,renderHelper:t,activeTabId:n,handleChangeTab:r,env:o})=>{const{modifiedLayout:i,embed:a,interactions:s,options:l,styleModel:u,accessibility:c,app:d}=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=u.getStyleClasses();return Ut.jsxs(qs,{sx:{display:"flex",flexDirection:m,height:"100%",width:"100%",direction:l.direction,...b},children:[f?Ut.jsx(wf,{models:e,activeTabId:n,handleChangeTab:r}):null,p.map(e=>{const r=`tab-panel-${i.qInfo.qId}-${e.childRefId}`,u=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}},...u?{className:Ah.ACTIVE_TAB_PANEL,tabIndex:c?0:-1}:{hidden:!0},children:u?Ut.jsx(Cf,{chartObject:e,renderHelper:t,direction:l.direction,embed:a,interactions:s,env:o,app:d}):null},r)})]})};let Ff=function(e){return e.COPY="copy",e.PASTE="paste",e.RESET_COPY_BUFFER="resetCopyBuffer",e}({}),_f=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 kf=[_f.PASTE_AND_REPLACE,_f.ZOOM_IN,_f.VISUAL_EXPLORATION],If=[_f.VISUAL_EXPLORATION,_f.ALERT_GROUP,_f.SHOW_DETAILS,_f.EXPLAIN_KEY_DRIVERS,_f.EXPLAIN_KEY_DRIVERS_OLD_ID],Bf=[_f.DELETE,_f.CUT,_f.ADD_TO_MASTER_ITEMS,_f.UNLINK_VISUALIZATION],Lf=[_f.PASTE_AND_REPLACE],Tf=(e,t)=>{const{childRefId:n}=e.model.layout,r=t.objects.find(e=>e.childRefId===n);return{...e,additionalData:{label:r?.label}}},Pf=(e,t,n,r,o)=>{const i=t.getSupportFunction(_f.COPY);if(!i)return void e.deleteItem(_f.COPY);const a=()=>{i(Tf(n,r)).catch(()=>{})},s=e.items.find(e=>e.id===_f.COPY);if(s)s.updateItem({select:a});else if(o){const t=e.items.findIndex(e=>e.id===_f.CUT),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.copy",tid:_f.COPY,id:_f.COPY,icon:"copy",select:a,items:[]},n)}},Of=e=>e.interactions.edit&&!e.modifiedLayout.qExtendsId,Mf=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:_f.CONTAINER_HEADER,id:_f.CONTAINER_HEADER,bold:!0,items:[]},0);const s=Of(n);a.items.forEach(e=>{(If.includes(e.id)||!s&&Lf.includes(e.id))&&a.deleteItem(e.id)}),s&&await(async(e,t,n)=>{const r=t.getSupportFunction(Ff.PASTE),o=await(r?.()?.catch(()=>{}));if(!o||Rc.includes(o.template))return void e.deleteItem(_f.PASTE_AND_REPLACE);const i=()=>{n()},a=e.items.find(e=>e.id===_f.PASTE_AND_REPLACE||e.id===_f.PASTE);if(a)a.updateItem({translation:"contextMenu.paste",select:i});else{const t=e.items.findLastIndex(e=>e.id===_f.COPY||e.id===_f.DEVELOPER||e.id===_f.CONTAINER_HEADER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.paste",tid:_f.PASTE_AND_REPLACE,id:_f.PASTE_AND_REPLACE,icon:"paste",select:i,items:[]},n)}})(a,t,r),e.updateItem({items:a.items}),1===e.items.length&&e.deleteItem(_f.CONTAINER_HEADER)},jf="tabbed-container-menu",Nf=e=>{const t={[_f.MONITOR_IN_HUB]:!0,[_f.SUBSCRIBE]:!0,[_f.NOTES_GROUP]:!0,[_f.DOWNLOAD]:!0,[_f.SHARE_IMAGE]:!0};e.items.forEach(n=>{t[n.id]?e.deleteItem(n.id):n.items&&Nf(n)})},$f=(e,t,n,r,o,i)=>a=>{const{dataHandler:s,modifiedLayout:l}=r;if(Of(r)){n.isInvalid||(((e,t,n,r)=>{const{model:o,modifiedLayout:i}=n,a=e.items.findLastIndex(e=>e.id===_f.CHART_HEADER||e.id===_f.REORDER_LAYERS_GROUP),s=a>=0?1+a:void 0;e.addItem({translation:"Object.Container.Props.EditProperties",tid:_f.EDIT_PROPERTIES,id:_f.EDIT_PROPERTIES,icon:_f.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(_f.COPY);if(!a)return void e.deleteItem(_f.CUT);const s=()=>{o&&a(Tf(n,i)).then(async()=>{await(o?.deleteChildren([t]))}).catch(()=>{})},l=e.items.find(e=>e.id===_f.CUT);if(l)l.updateItem({select:s});else{const t=e.items.findLastIndex(e=>e.id===_f.ADD_TO_MASTER_ITEMS||e.id===_f.UNLINK_VISUALIZATION||e.id===_f.EDIT_PROPERTIES||e.id===_f.REORDER_LAYERS_GROUP||e.id===_f.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.cut",tid:_f.CUT,id:_f.CUT,icon:"cut",select:s,items:[]},n)}})(a,t,n,e,s,l),Pf(a,e,n,l,!0),((e,t,n,r,o)=>{const i=t.getSupportFunction(Ff.COPY),a=t.getSupportFunction(Ff.PASTE);if(!i||!a)return void e.deleteItem(_f.DUPLICATE);const s=()=>{i(Tf(n,r)).then(()=>{o()}).catch(()=>{})},l=e.items.find(e=>e.id===_f.DUPLICATE);if(l)l.updateItem({select:s});else{const t=e.items.findIndex(e=>e.id===_f.COPY),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Duplicate",tid:_f.DUPLICATE,id:_f.DUPLICATE,icon:_f.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===_f.DELETE);if(o)o.updateItem({select:r});else{const t=e.items.findLastIndex(e=>e.id===_f.DUPLICATE||e.id===_f.ADD_TO_MASTER_ITEMS||e.id===_f.UNLINK_VISUALIZATION||e.id===_f.REORDER_LAYERS_GROUP||e.id===_f.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Delete",tid:_f.DELETE,id:_f.DELETE,icon:"bin",items:[],select:r},n)}})(a,t,s)}else Pf(a,e,n,l,!1)},zf=(e,t,n,r)=>{g(async(o,i,a)=>{if(!a)return!1;const s=((e,t)=>()=>{if(!e)return;const n=t.getSupportFunction(Ff.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(Ff.RESET_COPY_BUFFER)})})(n.dataHandler,a);if(await Mf(o,a,n,s,r),Nf(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,Ah.ACTIVE_TAB_PANEL)})(i))return!0;const l=n.modifiedLayout.objects.find(t=>t.childRefId===e)?.id;if(!l)return!0;const u=t.objectMap.get(l);if(!u)return!0;const c=$f(a,e,u,n,r,s),d=await(async(e,t,n,r)=>{const o=Of(n),i=e.getBuilder("object");if(!i)return;const a=await i(t);return a.addItem({translation:"contextMenu.chartOptionsHeader",tid:_f.CHART_HEADER,id:_f.CHART_HEADER,bold:!0,items:[]},0),r(a),a.items.forEach(e=>{(kf.includes(e.id)||!o&&Bf.includes(e.id))&&a.deleteItem(e.id)}),1===a.items.length&&a.deleteItem(_f.CHART_HEADER),a})(a,u,n,c);return!d||(o.items.length>0&&d.addItem({translation:"contextMenu.subMenuContainerOptions",tid:jf,id:jf,icon:"tabbed-container",items:[...o.items]},d.items.length),o.updateItem({items:d.items}),!0)})},Gf=({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=Ic.createRoot(n);o(r)}return()=>{r?.unmount()}},[e,t,r]),r})(e,"init-component"),{options:u,modifiedLayout:c,interactions:d,model:p}=r,{qChildList:h}=c,f=wc(u.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}}})(c),g=i(()=>nf(c),[c]),v={modifiedLayout:c,activeTabId:g,env:o},[y,E]=Th(v);E(v);const C=i(()=>c.objects.filter(e=>g===e.childRefId),[g,c.objects]),D=i(()=>({...u,disableThemeBorder:!0}),[u]),{renderHelper:x}=(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:c,visibleLayoutObjects:C,viewState:m,options:D,containerMenu:{id:jf,icon:"TabbedContainerOutline"},translator:r.translator});zf(g,x,r,o);const[A]=a({current:void 0}),S=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]),w=i(()=>({setSelected:e=>{const t=y.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t?S(t):A.current=e[0]}}),[S,y,A]);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)S(e);else if(A.current){const e=y.modifiedLayout.objects.find(e=>e.id===A.current)?.childRefId;e&&S(e)}A.current=void 0},[c?.objects.length,y,A,S]),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:d});e!==y.activeTabId&&S(e)},[d,c?.objects,y,S]);const R=0===h.qItems.length&&d.edit;return n(()=>{l?.render(Ut.jsxs(ca,{theme:f,children:[R?Ut.jsx(af,{Icon:Yh,dataHandler:r.dataHandler,modifiedLayout:r.modifiedLayout,translator:r.translator,sharedContainerUtilities:w}):null,!R&&Ut.jsx(Rf,{models:r,renderHelper:x,activeTabId:g,handleChangeTab:S,env:o})]}))},[l,r,f,R,x,g,w,S,o]),{renderHelper:x,sharedContainerUtilities:w,activeTabId:g}};var Hf={targets:[]};const Uf={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 Vf=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}),Wf=(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},qf=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=wc(e)};destroy=e=>{delete this.containers[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),us=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=W(n,Ja),[s,l]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=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},u.current)]),u.current+=1,c.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)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:f.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,b;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=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)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;b=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:b,cb:n})},p.start(80,()=>{h.current&&(h.current(),h.current=null)})):m({pulsate:o,rippleX:u,rippleY:c,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),c.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 cs(e){return Dr("MuiButtonBase",e)}const ds=xr("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"},[`&.${ds.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fs=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:h,onClick:f,onContextMenu:m,onDragLeave:b,onFocus:g,onFocusVisible:v,onKeyDown:C,onKeyUp:E,onMouseDown:D,onMouseLeave:x,onMouseUp:A,onTouchEnd:S,onTouchMove:w,onTouchStart:R,tabIndex:F=0,TouchRippleProps:_,touchRippleRef:k,type:B}=n,I=W(n,ps),L=y.useRef(null),T=y.useRef(null),P=Zr(T,k),{isFocusVisibleRef:O,onFocus:M,onBlur:j,ref:$}=co(),[N,z]=y.useState(!1);l&&N&&z(!1),y.useImperativeHandle(r,()=>({focusVisible:()=>{z(!0),L.current.focus()}}),[]);const[G,H]=y.useState(!1);y.useEffect(()=>{H(!0)},[]);const V=G&&!u&&!l;function q(e,t,n=c){return Xr(r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0})}y.useEffect(()=>{N&&d&&!u&&G&&T.current.pulsate()},[u,d,N,G]);const Y=q("start",D),K=q("stop",m),X=q("stop",b),Z=q("stop",A),J=q("stop",e=>{N&&e.preventDefault(),x&&x(e)}),Q=q("start",R),ee=q("stop",S),te=q("stop",w),ne=q("stop",e=>{j(),!1===O.current&&z(!1),h&&h(e)},!1),re=Xr(e=>{L.current||(L.current=e.currentTarget),M(e),!0===O.current&&(z(!0),v&&v(e)),g&&g(e)}),oe=()=>{const e=L.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ie=y.useRef(!1),ae=Xr(e=>{d&&!ie.current&&N&&T.current&&" "===e.key&&(ie.current=!0,T.current.stop(e,()=>{T.current.start(e)})),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!l&&(e.preventDefault(),f&&f(e))}),se=Xr(e=>{d&&" "===e.key&&T.current&&N&&!e.defaultPrevented&&(ie.current=!1,T.current.stop(e,()=>{T.current.pulsate(e)})),E&&E(e),f&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&f(e)});let le=s;"button"===le&&(I.href||I.to)&&(le=p);const ue={};"button"===le?(ue.type=void 0===B?"button":B,ue.disabled=l):(I.href||I.to||(ue.role="button"),l&&(ue["aria-disabled"]=l));const ce=Zr(t,$,L),de=U({},n,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:F,focusVisible:N}),pe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=bo({root:["root",t&&"disabled",n&&"focusVisible"]},cs,o);return n&&r&&(i.root+=` ${r}`),i})(de);return Ut.jsxs(hs,U({as:le,className:yr(pe.root,a),ownerState:de,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:ce,tabIndex:l?-1:F,type:B},ue,I,{children:[i,V?Ut.jsx(us,U({ref:P,center:o},_)):null]}))});function ms(e){return Dr("MuiTypography",e)}xr("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${cn(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"},Cs=y.forwardRef(function(e,t){const n=xa({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:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=vs}=o,h=W(o,bs),f=U({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||vs[d])||"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${cn(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)?Do(n):null,t);if(Mr(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),Mr(()=>{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?T.createPortal(n,i):i})}),Ds=["onChange","maxRows","minRows","style","value"];function xs(e){return parseInt(e,10)||0}const As={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Ss(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const ws=y.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=W(e,Ds),{current:l}=y.useRef(null!=a),u=y.useRef(null),c=Zr(t,u),d=y.useRef(null),p=y.useRef(null),h=y.useCallback(()=>{const t=u.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=xs(i.paddingBottom)+xs(i.paddingTop),l=xs(i.borderBottomWidth)+xs(i.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let h=c;o&&(h=Math.max(Number(o)*d,h)),r&&(h=Math.min(Number(r)*d,h)),h=Math.max(h,d);return{outerHeightStyle:h+("border-box"===a?s+l:0),overflowing:Math.abs(h-c)<=1}},[r,o,e.placeholder]),f=Xr(()=>{const e=u.current,t=h();if(!e||!t||Ss(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n}),m=y.useCallback(()=>{const e=u.current,t=h();if(!e||!t||Ss(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),b=y.useRef(-1);Mr(()=>{const e=Hr(m),t=null==u?void 0:u.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]),Mr(()=>{m()});return Ut.jsxs(y.Fragment,{children:[Ut.jsx("textarea",U({value:a,onChange:e=>{l||m(),n&&n(e)},ref:c,rows:o,style:i},s)),Ut.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:U({},As,i,{paddingTop:0,paddingBottom:0})})]})});const Rs=y.createContext(void 0);function Fs(){return y.useContext(Rs)}function _s(e){return Ut.jsx(pr,U({},e,{defaultTheme:Vi,themeId:H}))}function ks(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Bs(e){return Dr("MuiInputBase",e)}const Is=xr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ls=["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"],Ts=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${cn(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",[`&.${Is.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%"})),Ps=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] + .${Is.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},[`&.${Is.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"})}),Os=Ut.jsx(_s,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ms=y.forwardRef(function(e,t){var n;const r=xa({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:f=!1,id:m,inputComponent:b="input",inputProps:g={},inputRef:v,maxRows:C,minRows:E,multiline:D=!1,name:x,onBlur:A,onChange:S,onClick:w,onFocus:R,onKeyDown:F,onKeyUp:_,placeholder:k,readOnly:B,renderSuffix:I,rows:L,slotProps:T={},slots:P={},startAdornment:O,type:M="text",value:j}=r,$=W(r,Ls),N=null!=g.value?g.value:j,{current:G}=y.useRef(null!=N),H=y.useRef(),V=y.useCallback(e=>{},[]),q=Zr(H,v,g.ref,V),[Y,K]=y.useState(!1),X=Fs(),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&&d&&Y&&(K(!1),A&&A())},[X,d,Y,A]);const J=X&&X.onFilled,Q=X&&X.onEmpty,ee=y.useCallback(e=>{!function(e,t=!1){return e&&(ks(e.value)&&""!==e.value||t&&ks(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():J&&J()},[J,Q]);Mr(()=>{G&&ee({value:N})},[N,ee,G]);y.useEffect(()=>{ee(H.current)},[]);let te=b,ne=g;D&&"input"===te&&(ne=U(L?{type:void 0,minRows:L,maxRows:L}:{type:void 0,maxRows:C,minRows:E},ne),te=ws);y.useEffect(()=>{X&&X.setAdornedStart(Boolean(O))},[X,O]);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:D,size:Z.size,startAdornment:O,type:M}),oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:h,type:f}=e;return bo({root:["root",`color${cn(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${cn(p)}`,c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Bs,t)})(re),ie=P.root||l.Root||Ts,ae=T.root||u.root||{},se=P.input||l.Input||Ps;return ne=U({},ne,null!=(n=T.input)?n:u.input),Ut.jsxs(y.Fragment,{children:[!p&&Os,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(),w&&w(e)}},$,{className:yr(oe.root,ae.className,s,B&&"MuiInputBase-readOnly"),children:[O,Ut.jsx(Rs.Provider,{value:null,children:Ut.jsx(se,U({ownerState:re,"aria-invalid":Z.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Z.disabled,id:m,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:x,placeholder:k,readOnly:B,required:Z.required,rows:L,value:N,onKeyDown:F,onKeyUp:_,type:M},ne,!go(se)&&{as:te,ownerState:U({},re,ne.ownerState)},{ref:q,className:yr(oe.input,ne.className,B&&"MuiInputBase-readOnly"),onBlur:e=>{A&&A(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(z(1));ee({value:t.value})}g.onChange&&g.onChange(e,...t),S&&S(e,...t)},onFocus:e=>{Z.disabled?e.stopPropagation():(R&&R(e),g.onFocus&&g.onFocus(e),X&&X.onFocus?X.onFocus(e):K(!0))}}))}),h,I?I(U({},Z,{startAdornment:O})):null]}))]})}),js=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],$s={entering:{opacity:1},entered:{opacity:1}},Ns=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:u,onEntered:c,onEntering:d,onExit:p,onExited:h,onExiting:f,style:m,timeout:b=r,TransitionComponent:g=ja}=e,v=W(e,js),C=y.useRef(null),E=Zr(C,Do(a),t),D=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},x=D(d),A=D((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),u&&u(e,t)}),S=D(c),w=D(f),R=D(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)}),F=D(h);return Ut.jsx(g,U({appear:i,in:l,nodeRef:C,onEnter:A,onEntered:S,onEntering:x,onExit:R,onExited:F,onExiting:w,addEndListener:e=>{o&&o(C.current,e)},timeout:b},v,{children:(e,t)=>y.cloneElement(a,U({style:U({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},$s[e],m,a.props.style),ref:E},t))}))});function zs(e){return Dr("MuiBackdrop",e)}xr("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=xa({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=Ns,transitionDuration:b}=i,g=W(i,Gs),v=U({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return bo({root:["root",n&&"invisible"]},zs,t)})(v),C=null!=(n=h.root)?n:c.root;return Ut.jsx(m,U({in:p,timeout:b},g,{children:Ut.jsx(Hs,U({"aria-hidden":!0},C,{as:null!=(r=null!=(o=f.root)?o:u.Root)?r:l,className:yr(y.root,s,null==C?void 0:C.className),ownerState:U({},v,null==C?void 0:C.ownerState),classes:y,ref:t,children:a}))}))}),Ws=xr("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=cr(n),l=fr(e),{className:u,component:c="div"}=l,d=W(l,Cr);return Ut.jsx(i,U({as:c,ref:a,className:yr(u,o?o(r):r),theme:t&&s[t]||s},d))})}({themeId:H,defaultTheme:Vs,defaultClassName:Ws.root,generateClassName:gr.generate});function Ys(e){return Dr("MuiButton",e)}const Ks=xr("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}${cn(n.color)}`],t[`size${cn(n.size)}`],t[`${n.variant}Size${cn(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${cn(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${cn(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=xa({props:Or(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:h,fullWidth:f=!1,size:m="medium",startIcon:b,type:g,variant:v="text"}=o,C=W(o,Js),E=U({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:f,size:m,type:g,variant:v}),D=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return U({},a,bo({root:["root",i,`${i}${cn(t)}`,`size${cn(o)}`,`${i}Size${cn(o)}`,`color${cn(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${cn(o)}`],endIcon:["icon","endIcon",`iconSize${cn(o)}`]},Ys,a))})(E),x=b&&Ut.jsx(tl,{className:D.startIcon,ownerState:E,children:b}),A=p&&Ut.jsx(nl,{className:D.endIcon,ownerState:E,children:p}),S=r||"";return Ut.jsxs(el,U({ownerState:E,className:yr(n.className,D.root,l,S),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:yr(D.focusVisible,h),ref:t,type:g},C,{classes:D,children:[x,i,A]}))});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 ul=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function cl(e){const t=[],n=[];return Array.from(e.querySelectorAll(ul)).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 dl(){return!0}function pl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=cl,isEnabled:a=dl,open:s}=e,l=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),h=y.useRef(!1),f=y.useRef(null),m=Zr(Do(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||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.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,c.current&&c.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!==u.current&&e.activeElement!==c.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!==u.current&&e.activeElement!==c.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===d.current&&(d.current=e.relatedTarget),h.current=!0};return Ut.jsxs(y.Fragment,{children:[Ut.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.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:c,"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:u,open:c,rootRef:d}=e,p=y.useRef({}),h=y.useRef(null),f=y.useRef(null),m=Zr(f,d),[b,g]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let C=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(C=!1);const E=()=>(p.current.modalRef=f.current,p.current.mount=h.current,p.current),D=()=>{o.mount(E(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},x=Xr(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ur(h.current).body;o.add(E(),e),f.current&&D()}),A=y.useCallback(()=>o.isTopModal(E()),[o]),S=Xr(e=>{h.current=e,e&&(c&&A()?D():f.current&&ol(f.current,C))}),w=y.useCallback(()=>{o.remove(E(),C)},[C,o]);y.useEffect(()=>()=>{w()},[w]),y.useEffect(()=>{c?x():v&&i||w()},[c,w,v,i,x]);const R=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&A()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},F=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(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(r),ref:m})},getBackdropProps:(e={})=>U({"aria-hidden":!0},e,{onClick:F(e),open:c}),getTransitionProps:()=>({onEnter:Gr(()=>{g(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:Gr(()=>{g(!0),s&&s(),i&&w()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:S,isTopModal:A,exited:b,hasTransition:v}}function ml(e){return Dr("MuiModal",e)}xr("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=xa({name:"MuiModal",props:e}),{BackdropComponent:u=vl,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:h,container:f,component:m,components:b={},componentsProps:g={},disableAutoFocus:v=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:E=!1,disablePortal:D=!1,disableRestoreFocus:x=!1,disableScrollLock:A=!1,hideBackdrop:S=!1,keepMounted:w=!1,onBackdropClick:R,open:F,slotProps:_,slots:k}=l,B=W(l,bl),I=U({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:C,disableEscapeKeyDown:E,disablePortal:D,disableRestoreFocus:x,disableScrollLock:A,hideBackdrop:S,keepMounted:w}),{getRootProps:L,getBackdropProps:T,getTransitionProps:P,portalRef:O,isTopModal:M,exited:j,hasTransition:$}=fl(U({},I,{rootRef:t})),N=U({},I,{exited:j}),z=(e=>{const{open:t,exited:n,classes:r}=e;return bo({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ml,r)})(N),G={};if(void 0===h.props.tabIndex&&(G.tabIndex="-1"),$){const{onEnter:e,onExited:t}=P();G.onEnter=e,G.onExited=t}const H=null!=(n=null!=(r=null==k?void 0:k.root)?r:b.Root)?n:gl,V=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:b.Backdrop)?o:u,q=null!=(a=null==_?void 0:_.root)?a:g.root,Y=null!=(s=null==_?void 0:_.backdrop)?s:g.backdrop,K=Eo({elementType:H,externalSlotProps:q,externalForwardedProps:B,getSlotProps:L,additionalProps:{ref:t,as:m},ownerState:N,className:yr(d,null==q?void 0:q.className,null==z?void 0:z.root,!N.open&&N.exited&&(null==z?void 0:z.hidden))}),X=Eo({elementType:V,externalSlotProps:Y,additionalProps:c,getSlotProps:e=>T(U({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:yr(null==Y?void 0:Y.className,null==c?void 0:c.className,null==z?void 0:z.backdrop),ownerState:N});return w||F||$&&!j?Ut.jsx(Es,{ref:O,container:f,disablePortal:D,children:Ut.jsxs(H,U({},K,{children:[!S&&u?Ut.jsx(V,U({},X)):null,Ut.jsx(pl,{disableEnforceFocus:C,disableAutoFocus:v,disableRestoreFocus:x,isEnabled:M,open:F,children:y.cloneElement(h,G)})]}))}):null});function Cl(e){return Dr("MuiDivider",e)}const El=xr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Dl=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],xl=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%"}})),Al=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)`})),Sl=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,h=W(n,Dl),f=U({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,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"]},Cl,r)})(f);return Ut.jsx(xl,U({as:a,className:yr(m.root,i),role:c,ref:t,ownerState:f},h,{children:o?Ut.jsx(Al,{className:m.wrapper,ownerState:f,children:o}):null}))});Sl.muiSkipListHighlight=!0;const wl=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Rl(e){return`scale(${e}, ${e**2})`}const Fl={entering:{opacity:1,transform:Rl(1)},entered:{opacity:1,transform:"none"}},_l="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),kl=y.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:h,timeout:f="auto",TransitionComponent:m=ja}=e,b=W(e,wl),g=to(),v=y.useRef(),C=qi(),E=y.useRef(null),D=Zr(E,Do(o),t),x=e=>t=>{if(e){const n=E.current;void 0===t?e(n):e(n,t)}},A=x(u),S=x((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=C.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[C.transitions.create("opacity",{duration:a,delay:r}),C.transitions.create("transform",{duration:_l?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),w=x(l),R=x(p),F=x(e=>{const{duration:t,delay:n,easing:r}=Va({style:h,timeout:f,easing:i},{mode:"exit"});let o;"auto"===f?(o=C.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[C.transitions.create("opacity",{duration:o,delay:n}),C.transitions.create("transform",{duration:_l?o:.666*o,delay:_l?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Rl(.75),c&&c(e)}),_=x(d);return Ut.jsx(m,U({appear:r,in:a,nodeRef:E,onEnter:S,onEntered:w,onEntering:A,onExit:F,onExited:_,onExiting:R,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:Rl(.75),visibility:"exited"!==e||a?void 0:"hidden"},Fl[e],h,o.props.style),ref:D},t))}))});function Bl(e){return Dr("MuiInputAdornment",e)}kl.muiSupportAuto=!0;const Il=xr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Ll;const Tl=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Pl=la("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${cn(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&&{[`&.${Il.positionStart}&:not(.${Il.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),Ol=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:u}=n,c=W(n,Tl),d=Fs()||{};let p=u;u&&d.variant,d&&!p&&(p=d.variant);const h=U({},n,{hiddenLabel:d.hiddenLabel,size:d.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${cn(o)}`,a,r&&"hiddenLabel",i&&`size${cn(i)}`]},Bl,t)})(h);return Ut.jsx(Rs.Provider,{value:null,children:Ut.jsx(Pl,U({as:i,ownerState:h,className:yr(f.root,o),ref:t},c,{children:"string"!=typeof r||s?Ut.jsxs(y.Fragment,{children:["start"===l?Ll||(Ll=Ut.jsx("span",{className:"notranslate",children:""})):null,r]}):Ut.jsx(Cs,{color:"text.secondary",children:r})}))})}),Ml=y.createContext({});function jl(e){return Dr("MuiList",e)}xr("MuiList",["root","padding","dense","subheader"]);const $l=["children","className","component","dense","disablePadding","subheader"],Nl=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})),zl=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,u=W(n,$l),c=y.useMemo(()=>({dense:a}),[a]),d=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"]},jl,t)})(d);return Ut.jsx(Ml.Provider,{value:c,children:Ut.jsxs(Nl,U({as:i,className:yr(p.root,o),ref:t,ownerState:d},u,{children:[l,r]}))})});function Gl(e){return Dr("MuiListItem",e)}const Hl=xr("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function Ul(e){return Dr("MuiListItemButton",e)}const Wl=xr("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=xa({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:c,selected:d=!1,className:p}=n,h=W(n,Vl),f=y.useContext(Ml),m=y.useMemo(()=>({dense:s||f.dense||!1,alignItems:r,disableGutters:l}),[r,f.dense,s,l]),b=y.useRef(null);Mr(()=>{o&&b.current&&b.current.focus()},[o]);const g=U({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:u,selected:d}),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),C=Zr(b,t);return Ut.jsx(Ml.Provider,{value:m,children:Ut.jsx(ql,U({ref:C,href:h.href||h.to,component:(h.href||h.to)&&"div"===i?"button":i,focusVisibleClassName:yr(v.focusVisible,c),ownerState:g,className:yr(v.root,p)},h,{classes:v,children:a}))})});function Kl(e){return Dr("MuiListItemSecondaryAction",e)}xr("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=xa({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=W(n,Xl),i=U({},n,{disableGutters:y.useContext(Ml).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"],eu=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],tu=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})),nu=la("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),ru=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:u={},componentsProps:c={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:h=!1,disabled:f=!1,disableGutters:m=!1,disablePadding:b=!1,divider:g=!1,focusVisibleClassName:v,secondaryAction:C,selected:E=!1,slotProps:D={},slots:x={}}=n,A=W(n.ContainerProps,Ql),S=W(n,eu),w=y.useContext(Ml),R=y.useMemo(()=>({dense:h||w.dense||!1,alignItems:r,disableGutters:m}),[r,w.dense,h,m]),F=y.useRef(null);Mr(()=>{o&&F.current&&F.current.focus()},[o]);const _=y.Children.toArray(a),k=_.length&&(B=_[_.length-1],I=["ListItemSecondaryAction"],y.isValidElement(B)&&-1!==I.indexOf(null!=(L=B.type.muiName)?L:null==(T=B.type)||null==(T=T._payload)||null==(T=T.value)?void 0:T.muiName));var B,I,L,T;const P=U({},n,{alignItems:r,autoFocus:o,button:i,dense:R.dense,disabled:f,disableGutters:m,disablePadding:b,divider:g,hasSecondaryAction:k,selected:E}),O=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return bo({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Gl,r)})(P),M=Zr(F,t),j=x.root||u.Root||tu,$=D.root||c.root||{},N=U({className:yr(O.root,$.className,s),disabled:f},S);let z=l||"li";return i&&(N.component=l||"div",N.focusVisibleClassName=yr(Hl.focusVisible,v),z=fs),k?(z=N.component||l?z:"div","li"===d&&("li"===z?z="div":"li"===N.component&&(N.component="div")),Ut.jsx(Ml.Provider,{value:R,children:Ut.jsxs(nu,U({as:d,className:yr(O.container,p),ref:M,ownerState:P},A,{children:[Ut.jsx(j,U({},$,!go(j)&&{as:z,ownerState:U({},P,$.ownerState)},N,{children:_})),_.pop()]}))})):Ut.jsx(Ml.Provider,{value:R,children:Ut.jsxs(j,U({},$,{as:z,ref:M},!go(j)&&{ownerState:U({},P,$.ownerState)},N,{children:[_,C&&Ut.jsx(Jl,{children:C})]}))})});function ou(e){return Dr("MuiListItemIcon",e)}const iu=xr("MuiListItemIcon",["root","alignItemsFlexStart"]),au=["className"],su=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})),lu=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=W(n,au),i=U({},n,{alignItems:y.useContext(Ml).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return bo({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ou,n)})(i);return Ut.jsx(su,U({className:yr(a.root,r),ownerState:i,ref:t},o))}),uu=xr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),cu=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function du(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function pu(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function hu(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 fu(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")&&hu(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const mu=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:u,variant:c="selectedMenu"}=e,d=W(e,cu),p=y.useRef(null),h=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Mr(()=>{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"===c&&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"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e});return Ut.jsx(zl,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(),fu(t,r,l,s,du);else if("ArrowUp"===n)e.preventDefault(),fu(t,r,l,s,pu);else if("Home"===n)e.preventDefault(),fu(t,null,l,s,du);else if("End"===n)e.preventDefault(),fu(t,null,l,s,pu);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&&hu(r,o);o.previousKeyMatched&&(l||fu(t,r,!1,s,du,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:b}))});function bu(e){return Dr("MuiPopover",e)}xr("MuiPopover",["root","paper"]);const gu=["onEntering"],vu=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],yu=["slotProps"];function Cu(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Eu(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Du(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function xu(e){return"function"==typeof e?e():e}const Au=la(yl,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Su=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}),wu=y.forwardRef(function(e,t){var n,r,o;const i=xa({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:h,elevation:f=8,marginThreshold:m=16,open:b,PaperProps:g={},slots:v,slotProps:C,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:D=kl,transitionDuration:x="auto",TransitionProps:{onEntering:A}={},disableScrollLock:S=!1}=i,w=W(i.TransitionProps,gu),R=W(i,vu),F=null!=(n=null==C?void 0:C.paper)?n:g,_=y.useRef(),k=Zr(_,F.ref),B=U({},i,{anchorOrigin:l,anchorReference:c,elevation:f,marginThreshold:m,externalPaperSlotProps:F,transformOrigin:E,TransitionComponent:D,transitionDuration:x,TransitionProps:w}),I=(e=>{const{classes:t}=e;return bo({root:["root"],paper:["paper"]},bu,t)})(B),L=y.useCallback(()=>{if("anchorPosition"===c)return u;const e=xu(s),t=(e&&1===e.nodeType?e:Ur(_.current).body).getBoundingClientRect();return{top:t.top+Cu(t,l.vertical),left:t.left+Eu(t,l.horizontal)}},[s,l.horizontal,l.vertical,u,c]),T=y.useCallback(e=>({vertical:Cu(e,E.vertical),horizontal:Eu(e,E.horizontal)}),[E.horizontal,E.vertical]),P=y.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:Du(n)};const r=L();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,u=Wr(xu(s)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;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:Du(n)}},[s,c,L,T,m]),[O,M]=y.useState(b),j=y.useCallback(()=>{const e=_.current;if(!e)return;const t=P(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,M(!0)},[P]);y.useEffect(()=>(S&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[s,S,j]);y.useEffect(()=>{b&&j()}),y.useImperativeHandle(a,()=>b?{updatePosition:()=>{j()}}:null,[b,j]),y.useEffect(()=>{if(!b)return;const e=Hr(()=>{j()}),t=Wr(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,b,j]);let $=x;"auto"!==x||D.muiSupportAuto||($=void 0);const N=h||(s?Ur(xu(s)).body:void 0),z=null!=(r=null==v?void 0:v.root)?r:Au,G=null!=(o=null==v?void 0:v.paper)?o:Su,H=Eo({elementType:G,externalSlotProps:U({},F,{style:O?F.style:U({},F.style,{opacity:0})}),additionalProps:{elevation:f,ref:k},ownerState:B,className:yr(I.paper,null==F?void 0:F.className)}),V=Eo({elementType:z,externalSlotProps:(null==C?void 0:C.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:N,open:b},ownerState:B,className:yr(I.root,p)}),{slotProps:q}=V,Y=W(V,yu);return Ut.jsx(z,U({},Y,!go(z)&&{slotProps:q,disableScrollLock:S},{children:Ut.jsx(D,U({appear:!0,in:b,onEntering:(e,t)=>{A&&A(e,t),j()},onExited:()=>{M(!1)},timeout:$},w,{children:Ut.jsx(G,U({},H,{children:d}))}))}))});function Ru(e){return Dr("MuiMenu",e)}xr("MuiMenu",["root","paper","list"]);const Fu=["onEntering"],_u=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],ku={vertical:"top",horizontal:"right"},Bu={vertical:"top",horizontal:"left"},Iu=la(wu,{shouldForwardProp:e=>sa(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Lu=la(Su,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Tu=la(mu,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Pu=y.forwardRef(function(e,t){var n,r;const o=xa({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:m}={},variant:b="selectedMenu",slots:g={},slotProps:v={}}=o,C=W(o.TransitionProps,Fu),E=W(o,_u),D=ko(),x=U({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:f,TransitionProps:C,variant:b}),A=(e=>{const{classes:t}=e;return bo({root:["root"],paper:["paper"],list:["list"]},Ru,t)})(x),S=i&&!l&&d,w=y.useRef(null);let R=-1;y.Children.map(a,(e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===R)&&(R=t))});const F=null!=(n=g.paper)?n:Lu,_=null!=(r=v.paper)?r:p,k=Eo({elementType:g.root,externalSlotProps:v.root,ownerState:x,className:[A.root,s]}),B=Eo({elementType:F,externalSlotProps:_,ownerState:x,className:A.paper});return Ut.jsx(Iu,U({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:D?"right":"left"},transformOrigin:D?ku:Bu,slots:{paper:F,root:g.root},slotProps:{root:k,paper:B},open:d,ref:t,transitionDuration:f,TransitionProps:U({onEntering:(e,t)=>{w.current&&w.current.adjustStyleForScrollbar(e,{direction:D?"rtl":"ltr"}),m&&m(e,t)}},C),ownerState:x},E,{classes:h,children:Ut.jsx(Tu,U({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:w,autoFocus:i&&(-1===R||l),autoFocusItem:S,variant:b},u,{className:yr(A.list,u.className),children:a}))}))});function Ou(e){return Dr("MuiMenuItem",e)}const Mu=xr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ju=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],$u=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"}},[`&.${Mu.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),[`&.${Mu.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)}},[`&.${Mu.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)}},[`&.${Mu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Mu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${El.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${El.inset}`]:{marginLeft:52},[`& .${uu.root}`]:{marginTop:0,marginBottom:0},[`& .${uu.inset}`]:{paddingLeft:36},[`& .${iu.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&U({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${iu.root} svg`]:{fontSize:"1.25rem"}}))),Nu=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=n,p=W(n,ju),h=y.useContext(Ml),f=y.useMemo(()=>({dense:i||h.dense||!1,disableGutters:s}),[h.dense,i,s]),m=y.useRef(null);Mr(()=>{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"]},Ou,a))})(n),v=Zr(m,t);let C;return n.disabled||(C=void 0!==c?c:-1),Ut.jsx(Ml.Provider,{value:f,children:Ut.jsx($u,U({ref:v,role:u,tabIndex:C,component:o,focusVisibleClassName:yr(g.focusVisible,l),className:yr(g.root,d)},p,{ownerState:b,classes:g}))})});function zu(e){return Dr("MuiTab",e)}const Gu=xr("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Hu=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Uu=la(fs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${cn(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Gu.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,[`& > .${Gu.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,[`&.${Gu.selected}`]:{opacity:1},[`&.${Gu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Gu.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Gu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Gu.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Gu.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)})),Wu=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiTab"}),{className:r,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:a,icon:s,iconPosition:l="top",indicator:u,label:c,onChange:d,onClick:p,onFocus:h,selected:f,selectionFollowsFocus:m,textColor:b="inherit",value:g,wrapped:v=!1}=n,C=W(n,Hu),E=U({},n,{disabled:o,disableFocusRipple:i,selected:f,icon:!!s,iconPosition:l,label:!!c,fullWidth:a,textColor:b,wrapped:v}),D=(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${cn(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]},zu,t)})(E),x=s&&c&&y.isValidElement(s)?y.cloneElement(s,{className:yr(D.iconWrapper,s.props.className)}):s;return Ut.jsxs(Uu,U({focusRipple:!i,className:yr(D.root,r),ref:t,role:"tab","aria-selected":f,disabled:o,onClick:e=>{!f&&d&&d(e,g),p&&p(e)},onFocus:e=>{m&&!f&&d&&d(e,g),h&&h(e)},ownerState:E,tabIndex:f?0:-1},C,{children:["top"===l||"start"===l?Ut.jsxs(y.Fragment,{children:[x,c]}):Ut.jsxs(y.Fragment,{children:[c,x]}),u]}))});var Vu=Fa(Ut.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),qu=Fa(Ut.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Yu(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Ku=["onChange"],Xu={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Zu(e){return Dr("MuiTabScrollButton",e)}const Ju=xr("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Qu=["className","slots","slotProps","direction","orientation","disabled"],ec=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,[`&.${Ju.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),tc=y.forwardRef(function(e,t){var n,r;const o=xa({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:s={},direction:l}=o,u=W(o,Qu),c=U({isRtl:ko()},o),d=(e=>{const{classes:t,orientation:n,disabled:r}=e;return bo({root:["root",n,r&&"disabled"]},Zu,t)})(c),p=null!=(n=a.StartScrollButtonIcon)?n:Vu,h=null!=(r=a.EndScrollButtonIcon)?r:qu,f=Eo({elementType:p,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:c}),m=Eo({elementType:h,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:c});return Ut.jsx(ec,U({component:"div",className:yr(d.root,i),ref:t,role:null,ownerState:c,tabIndex:null},u,{children:"left"===l?Ut.jsx(p,U({},f)):Ut.jsx(h,U({},m))}))});function nc(e){return Dr("MuiTabs",e)}const rc=xr("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),oc=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],ic=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,ac=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,sc=(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)}},lc=la("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${rc.scrollButtons}`]:t.scrollButtons},{[`& .${rc.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&&{[`& .${rc.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),uc=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"})),cc=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"})),dc=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})),pc=la(function(e){const{onChange:t}=e,n=W(e,Ku),r=y.useRef(),o=y.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Mr(()=>{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:Xu},n,{ref:o}))})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),hc={},fc=y.forwardRef(function(e,t){const n=xa({props:e,name:"MuiTabs"}),r=qi(),o=ko(),{"aria-label":i,"aria-labelledby":a,action:s,centered:l=!1,children:u,className:c,component:d="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:f,orientation:m="horizontal",ScrollButtonComponent:b=tc,scrollButtons:g="auto",selectionFollowsFocus:v,slots:C={},slotProps:E={},TabIndicatorProps:D={},TabScrollButtonProps:x={},textColor:A="primary",value:S,variant:w="standard",visibleScrollbar:R=!1}=n,F=W(n,oc),_="scrollable"===w,k="vertical"===m,B=k?"scrollTop":"scrollLeft",I=k?"top":"left",L=k?"bottom":"right",T=k?"clientHeight":"clientWidth",P=k?"height":"width",O=U({},n,{component:d,allowScrollButtonsMobile:p,indicatorColor:h,orientation:m,vertical:k,scrollButtons:g,textColor:A,variant:w,visibleScrollbar:R,fixed:!_,hideScrollbar:_&&!R,scrollableX:_&&!k,scrollableY:_&&k,centered:l&&!_,scrollButtonsHideMobile:!p}),M=(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"]},nc,l)})(O),j=Eo({elementType:C.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:O}),$=Eo({elementType:C.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:O}),[N,z]=y.useState(!1),[G,H]=y.useState(hc),[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!==S){const e=ne.current.children;if(e.length>0){const t=e[ee.get(S)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},oe=Xr(()=>{const{tabsMeta:e,tabMeta:t}=re();let n,r=0;if(k)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,[P]:t?t[P]:0};if(isNaN(G[n])||isNaN(G[P]))H(i);else{const e=Math.abs(G[n]-i[n]),t=Math.abs(G[P]-i[P]);(e>=1||t>=1)&&H(i)}}),ie=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=()=>{}){const{ease:i=Yu,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},d=r=>{if(u)return void o(new Error("Animation cancelled"));null===s&&(s=r);const c=Math.min(1,(r-s)/a);t[e]=i(c)*(n-l)+l,c>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(d)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(d)}(B,te.current,e,{duration:r.transitions.duration.standard}):te.current[B]=e},ae=e=>{let t=te.current[B];k?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===fo()?-1:1),ie(t)},se=()=>{const e=te.current[T];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[T]>e){0===r&&(t=e);break}t+=o[T]}return t},le=()=>{ae(-1*se())},ue=()=>{ae(se())},ce=y.useCallback(e=>{Q({overflow:null,scrollbarWidth:e})},[]),de=Xr(e=>{const{tabsMeta:t,tabMeta:n}=re();if(n&&t)if(n[I]<t[I]){const r=t[B]+(n[I]-t[I]);ie(r,{animation:e})}else if(n[L]>t[L]){const r=t[B]+(n[L]-t[L]);ie(r,{animation:e})}}),pe=Xr(()=>{_&&!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&&_&&!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()}}},[_,g,X,null==u?void 0:u.length]),y.useEffect(()=>{z(!0)},[]),y.useEffect(()=>{oe()}),y.useEffect(()=>{de(hc!==G)},[de,G]),y.useImperativeHandle(s,()=>({updateIndicator:oe,updateScrollButtons:pe}),[oe,pe]);const he=Ut.jsx(dc,U({},D,{className:yr(M.indicator,D.className),ownerState:O,style:U({},G,D.style)}));let fe=0;const me=y.Children.map(u,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===S;return fe+=1,y.cloneElement(e,U({fullWidth:"fullWidth"===w,indicator:n&&!N&&he,selected:n,selectionFollowsFocus:v,onChange:f,textColor:A,value:t},1!==fe||!1!==S||e.props.tabIndex?{}:{tabIndex:0}))}),be=(()=>{const e={};e.scrollbarSizeListener=_?Ut.jsx(pc,{onChange:ce,className:yr(M.scrollableX,M.hideScrollbar)}):null;const t=_&&("auto"===g&&(V||Y)||!0===g);return e.scrollButtonStart=t?Ut.jsx(b,U({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:j},orientation:m,direction:o?"right":"left",onClick:le,disabled:!V},x,{className:yr(M.scrollButtons,x.className)})):null,e.scrollButtonEnd=t?Ut.jsx(b,U({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:$},orientation:m,direction:o?"left":"right",onClick:ue,disabled:!Y},x,{className:yr(M.scrollButtons,x.className)})):null,e})();return Ut.jsxs(lc,U({className:yr(M.root,c),ownerState:O,ref:t,as:d},F,{children:[be.scrollButtonStart,be.scrollbarSizeListener,Ut.jsxs(uc,{className:M.scroller,ownerState:O,style:{overflow:J.overflow,[k?"margin"+(o?"Left":"Right"):"marginBottom"]:R?void 0:-J.scrollbarWidth},ref:te,children:[Ut.jsx(cc,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===m?"vertical":null,className:M.flexContainer,ownerState:O,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(),sc(t,n,ac);break;case i:e.preventDefault(),sc(t,n,ic);break;case"Home":e.preventDefault(),sc(t,null,ic);break;case"End":e.preventDefault(),sc(t,null,ac)}},ref:ne,role:"tablist",children:me}),N&&he]}),be.scrollButtonEnd]}))});function mc(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 bc({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 gc(e={}){return Ut.jsx(bc,{...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 vc(e={}){return Ut.jsx(bc,{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 yc(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 Cc(e={}){return Ut.jsx(bc,{...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 Ec(e={}){return Ut.jsx(bc,{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 Dc({className:e}){return Ut.jsx(bc,{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 xc(e={}){return Ut.jsx(bc,{...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 Ac=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(mc,{"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 ${zr(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 ${zr(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 ${zr(pa.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:pa.GREEN,"&.Mui-focusVisible":{borderColor:pa.GREEN,boxShadow:`0 0 0 3px ${zr(pa.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:pa.BLUE,"&.Mui-focusVisible":{borderColor:pa.BLUE,boxShadow:`0 0 0 3px ${zr(pa.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:pa.ORANGE,"&.Mui-focusVisible":{borderColor:pa.ORANGE,boxShadow:`0 0 0 3px ${zr(pa.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:pa.RED,"&.Mui-focusVisible":{borderColor:pa.RED,boxShadow:`0 0 0 3px ${zr(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 ${zr(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 ${zr(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 ${zr(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 ${zr(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 ${zr(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(yc,{"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:Da.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Ut.jsx(yc,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Ut.jsx(mc,{"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:Da.FONT_FAMILY,fontWeight:Ca,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(mc,{...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:Ca,color:pa.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Ca}}}},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(Ec,{}),checkedIcon:Ut.jsx(vc,{})},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 ${zr(pa.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:pa.BLUE_PALE,boxShadow:`0 0 0 3px ${zr(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(xc,{}),checkedIcon:Ut.jsx(gc,{}),indeterminateIcon:Ut.jsx(Cc,{})},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:Ca},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 ${zr(pa.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:pa.BLUE_PALE,boxShadow:`0 0 0 3px ${zr(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:Ca,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:Ca,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(Dc,{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 Sc=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 wc(e){return Wi({components:Ac(),palette:Sc(),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:Ca,fontWeightBold:Ea,htmlFontSize:fa,fontFamily:Da.FONT_FAMILY,button:{fontWeight:Ca,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:Ca,lineHeight:"16px"},h6:{fontSize:fa,fontWeight:Ca,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 Rc=["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 Fc{embed;translator;charts={};constructor(e,t){this.embed=e,this.translator=t}getCharts=()=>(this.charts=(this.embed?.getRegisteredTypes()??[]).reduce((e,t)=>{if(!Rc.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 _c,kc={};var Bc=function(){if(_c)return kc;_c=1;var e=L;return kc.createRoot=e.createRoot,kc.hydrateRoot=e.hydrateRoot,kc}();const Ic=C((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"})})),Lc="rgb(89, 89, 89)",Tc=$t(qs)({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),Pc=$t(qs)({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),Oc=$t(zl,{shouldForwardProp:e=>"width"!==e})(({width:e})=>({"&.MuiList-root":{paddingTop:0,paddingBottom:0,width:e||250,maxHeight:250,overflow:"auto"}})),Mc=$t(Cs)({color:Lc,fontSize:"12px",fontFamily:"inherit",lineHeight:"24px",margin:"0px"}),jc=$t(lu)({"&.MuiListItemIcon-root":{minWidth:32,color:Lc,marginRight:"0px"}}),$c=$t(Sl)({"&.MuiDivider-root":{borderBottom:"3px solid #595959"}}),Nc=$t(rl)({"&.MuiButton-contained":{backgroundColor:Lc,color:"rgb(255, 255, 255)"},"&.MuiButton-outlined":{backgroundColor:"rgb(255, 255, 255)",borderColor:Lc,color:Lc,border:"1px solid rgb(179, 179, 179)","&:hover":{backgroundColor:"rgb(255, 255, 255)",border:`1px solid ${Lc}`}}}),zc=$t(Ra)({width:"1em",height:"1em",paddingBottom:"8px"}),Gc=$t(Ra)({width:"16px",height:"16px"}),Hc=({name:e,items:t,onSelect:n})=>Ut.jsxs(Ut.Fragment,{children:[Ut.jsx(ru,{dense:!0,children:Ut.jsx(Mc,{noWrap:!0,fontWeight:"bold",children:e})},e),Ut.jsx($c,{}),t.map(e=>Ut.jsx(ru,{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(jc,{children:e.IconDefinition?Ut.jsx(e.IconDefinition,{}):Ut.jsx(Gc,{viewBox:"0 0 16 16",children:Ut.jsx("path",{d:e.iconPath})})}):null,Ut.jsx(Mc,{noWrap:!0,title:e.translation||e.name,children:e.translation||e.name})]})},e.qExtendsId??e.name))]}),Uc=({categories:e,anchorEl:t,onClose:n,onSelect:r,width:o})=>{const[i,a]=w(""),s=!!t;return Ut.jsxs(wu,{open:s,anchorEl:t,onClose:()=>{a(""),n()},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{marginTop:"5px"},children:[Ut.jsx(Ms,{fullWidth:!0,onChange:e=>{a(e.target.value)},startAdornment:Ut.jsx(Ol,{position:"start",children:Ut.jsx(Ic,{})})}),Ut.jsx($c,{}),Ut.jsx(Oc,{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(Hc,{name:e.name,items:t,onSelect:r},e.name)})})]})},Wc=({anchorEl:e,onClose:t,dataHandler:n,translator:r,sharedContainerUtilities:o,width:i})=>{const[a,s]=w([]),[l,u]=w({});R(()=>{if(e&&n){(async()=>{const e=await n.getMasterVizList();s(e),u(n.getCharts())})().catch(()=>{})}},[e,n]);const c=[],d=[],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)c.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 d.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:c.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(d)}];for(const[e,t]of p)m.push({name:e,items:f(t)});return Ut.jsx(Uc,{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})},Vc=e=>{const t=Yc(e);return e.objects?.map(e=>{const{childRefId:n}=e;if(!n)return e;const r=t[n];return r?{...e,id:r}:e})??[]},qc=(e,t)=>e?.qChildList?.qItems?.find(e=>e?.qData?.childRefId===t),Yc=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qData?.childRefId;return e[n]=t?.qInfo?.qId,e},{});var Kc=qc,Xc=e=>{const t={...e};return t.objects=Vc(t),t},Zc=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qInfo?.qId;return e[n]=t.qData?.childRefId,e},{}),Jc=e=>e.objects.reduce((e,t)=>(e[t.childRefId]=t,e),{}),Qc=(e,t)=>{if(!e)return t;const n=qc(e,t);return n?.qInfo?.qId};class ed{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],Bc.createRoot(r)})(this.activeContainer.element,"add-child-popover"),n=()=>{t.unmount()};t?.render(Ut.jsx(ca,{theme:this.data.muiTheme,children:Ut.jsx(Wc,{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=>Qc(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 td="object";const nd=["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 rd=e=>({value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}});function od({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=>rd(e)),{value:"DefaultHeader",label:t.get("properties.allFonts"),metaText:t.get("properties.default"),groupHeader:!0},...nd.map(e=>rd(e))]}function id({theme:e,translator:t,id:n,path:r}){const o=()=>e.getStyle(n,r,"fontFamily");return{getDefaultValue:()=>o(),getOptions:()=>od({theme:e,translator:t,defaultValue:o()})}}var ad=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"];const sd=e=>({value:e,label:e,groupHeader:!1,disabled:!1});function ld({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=>sd(e)),{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0},...ad.map(e=>sd(e))]}({theme:e,translator:t,defaultValue:o()})}}function ud({theme:e,translator:t,id:n,path:r}){return{fontFamily:id({theme:e,translator:t,id:n,path:r}),fontSize:ld({theme:e,translator:t,id:n,path:r})}}const cd=["__proto__","constructor"],dd=e=>{if(cd.some(t=>e.includes(t)))throw new Error("font-resolver: Forbidden property.")};function pd({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?td:`${td}.${t}`,paths:Array.isArray(n)?n:[]}}({config:n}),i={};o.forEach(n=>{const o=n.split(".");dd(o);let a=i;for(let i=0;i<o.length;i++){const s=o[i];i===o.length-1?a[s]=ud({theme:e,translator:t,id:r,path:n}):void 0===a[s]&&(a[s]={}),a=a[s]}});const a=e=>{const t=e.split(".");dd(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}function hd(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}const fd=["__proto__","constructor"];function md(e,t,n){if(void 0===e||void 0===t)return;const r=t.split("."),o=r[r.length-1];if(fd.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]}const bd="'Source Sans Pro', 'Arial', 'sans-serif'",gd="#333333",vd="#595959",yd="#737373",Cd="#cccccc",Ed="#e6e6e6";function Dd(e){const t={};return[...e,["","","color"],["object","","fontFamily"],["object","axis.label.name","color",vd],["object","axis.label.name","fontFamily",bd],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",Cd],["object","axis.line.minor","color",Ed],["object","axis.title","color"],["object","axis.title","fontFamily",bd],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",Ed],["object","grid.line.major","color",Cd],["object","grid.line.minor","color",Ed],["object","label.value","color",vd],["object","label.value","fontFamily",bd],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",vd],[!1,"label.value","lightColor",Ed],["object","outOfRange","color","#999"],["object","legend.title","color",gd],["object","legend.title","fontFamily",bd],["object","legend.title","fontSize","15px"],["object","legend.label","color",vd],["object","legend.label","fontFamily",bd],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",gd],["object","referenceLine.label.name","fontFamily",bd],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",Ed],["object","referenceLine.outOfBounds","fontFamily",bd],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",yd,e=>"transparent"===e?yd: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 xd="object",Ad=e=>e;function Sd({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,u=e=>e]=n,c=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===xd&&t?`${xd}.${t}`:r,path:o,attribute:s,defaultValue:l}),d=(a[`${o}.${s}`]||Ad)(u(c));md(i,[o,s].filter(Boolean).join("."),d)}),r.forEach(e=>{const[t,n]=e;md(i,t,n)}),i}const wd={qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",containerChildId:"/containerChildId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition",visible:"/visible"}};function Rd(e){if(!e.objects)return{};const t=Jc(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 Fd=({ref:e,theme:t,change:n})=>({component:"inline-wrapper",items:{bgColorDropdown:{ref:`${e}.useColorExpression`,width:9,component:"dropdown",change(t){(hd(t,`${e}.color`)||hd(t,`${e}.colorExpression`))&&(md(t,`${e}.color`,void 0),md(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=>!hd(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=>hd(t,`${e}.useColorExpression`)}}}),_d=({theme:e})=>({bgColorAllWrapper:Fd({ref:"background.unselected"}),selectedTab:{translation:"properties.chartType.selected",component:"text"},bgColorSelectedWrapper:Fd({ref:"background.selected"}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:Fd({ref:"background.hover",theme:e,change:e=>{md(e,"indicator.hover.color",hd(e,"background.hover.color")),md(e,"indicator.hover.useColorExpression",hd(e,"background.hover.useColorExpression"))}})},show:(e,t)=>"left"===t.layout.orientation}}),kd=({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}}},Bd=({theme:e})=>({colorWrapper:Fd({ref:"indicator.selected",theme:e}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:Fd({ref:"indicator.hover",theme:e,change:e=>{md(e,"background.hover.color",hd(e,"indicator.hover.color")),md(e,"background.hover.useColorExpression",hd(e,"indicator.hover.useColorExpression"))}})},show:(e,t)=>"left"!==t.layout.orientation}}),Id=({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}}},Ld=({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:Id({paths:{ref:"label",theme:"label.value"},fontResolver:n,theme:r})}}}),Td=({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]}}}}}),Pd=({theme:e,ref:t,key:n})=>({translation:"Object.TabbedContainer.Indicator",component:"panel-section",items:{indicator:{component:"items",ref:t,key:n,items:Bd({theme:e})}}}),Od=({ref:e,key:t,fontResolver:n,theme:r})=>({translation:"properties.icon",component:"panel-section",items:{icon:{component:"items",ref:e,key:t,items:kd({paths:{ref:"icon",theme:"icon.value"},fontResolver:n,theme:r})}},show:(e,{layout:t})=>t.showIcons}),Md=({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:Fd({ref:"background"})}:_d({theme:e})}}}),jd=({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:Ld({ref:n,key:r,fontResolver:e,theme:t}),width:{...Td({ref:n,key:r}),show:(e,{layout:t})=>"left"!==t.orientation},icon:Od({ref:n,key:r,fontResolver:e,theme:t}),background:Md({ref:n,key:r,theme:t})}}},$d=(e,t,n)=>{e.setSelectedObjects(((e,t)=>n=>"chart"!==n.type||n.parentId&&n.parentId!==e?n:n.parentId||n.ids.includes(e)?{type:"chart",sheetId:n.sheetId,parentId:e,ids:t}:n)(t,n))},Nd={ref:"label",type:"string",translation:"Object.Container.Props.Label",defaultValue:"",expression:"optional"},zd={ref:"condition",translation:"Object.Container.Props.ShowCondition",component:"expression",defaultValue:{qValueExpression:{qExpr:""}},expressionType:"ValueExpression",expression:"always"},Gd=(e,t)=>"object"==typeof e.label?t.objects.find(t=>t.childRefId===e.childRefId)?.label||e.label.qValueExpression.qExpr:e.label,Hd=e=>({component:"button",translation:"Object.Container.Props.EditProperties",disabled:(e,t)=>{const n=t.getLayout(),r=Kc(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),a=e.env.anything?.sense?.selectedObjects;if(a){const e=n.properties.qInfo.qId;return void(e&&i&&$d(a,e,[i]))}i&&(o.propertyPanel.show({id:i,app:r,parent:"current",headerLabel:Gd(t,n.getLayout())}),n.setSelectedChild([i]))}}),Ud=e=>{const{sense:t}=e.env.anything;return{label:Nd,condition:zd,styling:jd({fontResolver:e.fontResolver,theme:t?.theme}),editProperties:Hd(e)}},Wd={translation:"Object.Container.Props.Chart",component:"text",show:e=>e.objects?e.objects.length<=1:e.children.length<=1},Vd={translation:"Common.Charts",component:"text",show:e=>e.objects?e.objects.length>1:e.children.length>1},qd=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:Ud(e)}),Yd=e=>({type:"items",translation:"Object.Container.Props.Content",items:{chartLabel:Wd,chartsLabel:Vd,chartList:qd(e)}}),Kd={type:"boolean",translation:"Object.Container.Props.ShowTabs",ref:"showTabs",defaultValue:!0,component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},Xd={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},Zd={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},Jd={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},Qd={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=Qc(t.getLayout(),e.defaultTabId);n&&t.setSelectedChild([n])},show:e=>e.objects.length>0},ep={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},tp=({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:Ld({ref:n,key:r,fontResolver:e,theme:t}),width:Td({ref:n,key:r}),indicator:Pd({ref:n,key:r,theme:t}),icon:Od({ref:n,key:r,fontResolver:e,theme:t}),background:Md({ref:n,key:r,theme:t})}}},np={items:{details:{show:e=>!0===e.showDetails}}},rp=e=>{const{sense:t}=e.env.anything;return{type:"items",translation:"properties.presentation",grouped:!0,items:{stylingPanel:tp({fontResolver:e.fontResolver,theme:t?.theme}),container:{type:"items",items:{showTabs:Kd,useDropdown:Xd,useScrollButton:Zd,showIcons:Jd,orientation:ep,defaultTabId:Qd}}}}},op=e=>({uses:"settings",items:{general:np,presentation:rp(e)}}),ip=e=>({type:"items",component:"accordion",items:{content:Yd(e),settings:op(e)}}),ap=e=>{const{sense:t}=e.env.anything,n=pd({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 ed({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&&Rc.includes(t.template))return!1;if("visualization"===t.type&&Rc.includes(t.visualization))return!1}return"gridcell"!==e.type||!Rc.includes(e.cell.model.layout.visualization)}}}(e);return{definition:ip({...e,fontResolver:n}),support:{snapshot:!1,export:!0,sharing:!1,exportData:!1,viewData:!1},hidePatchPanel:()=>!0,getCreatePropertyHandler:t=>new ed({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 u=await Promise.all(l),c={...e,objects:n,defaultTabId:r??"",components:o,qChildListDef:wd,orientation:i,showDetails:a};t.clearSoftPatches(),await t.setFullPropertyTree({...s,qProperty:c,qChildren:u})}}})(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:Rd}},sp=({propertyHandlerData:e,element:r,sharedContainerUtilities:o,translator:i,containerId:a,dataHandler:s,renderHelper:l,chartList:u})=>{const c=t();a&&e.sync({containerId:a,element:r,sharedContainerUtilities:o,translator:i,dataHandler:s,renderHelper:l,chartList:u}),n(()=>{e.setMuiTheme(c.direction)},[c.direction,e]),n(()=>()=>{a&&e.destroy(a)},[a,e,c.direction])},lp=e=>e.reduce((e,{id:t,data:n})=>(n&&(e[t]=n),e),{}),up=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:lp(n)}},cp=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 lp(n)},dp=(e,t)=>(r(async n=>{const r=n,{snapshotData:o}=r;if(o){const n=Xc(r),i=t(e.objectMap,n),[a,s]=await Promise.all([cp(i.objectMap),up(i.objectMap)]);o.objectsData={layouts:a},r.objects=i.objects,o.viewState=s}return n}),{getViewState:()=>up(e.objectMap)});let pp=function(e){return e.OPEN_CONTEXT_MENU="shift+F10",e.ESCAPE="Escape",e.SPACE=" ",e.ENTER="Enter",e.BACKSPACE="Backspace",e.DELETE="Delete",e}({}),hp=function(e){return e.KEY_DOWN="keydown",e.FOCUS_OUT="focusout",e}({}),fp=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 mp=`& .${fp.TAB}.${fp.TAB_EXTRA_PRIO}, .${fp.TAB}.${fp.ACTIVE_TAB}`,bp=`& .${fp.TAB}.${fp.TAB_EXTRA_PRIO}:hover`,gp=`& .${fp.TAB_LABEL}`,vp=`& .${fp.TABS_ICON} svg`,yp=`& .${fp.TAB_WRAPPER}`,Cp=`& .${fp.TAB_INDICATOR}`,Ep=e=>e.getElementsByClassName(fp.ACTIVE_TAB)?.[0],Dp=e=>e.getElementsByClassName(fp.ACTIVE_TAB_PANEL)?.[0],xp=({element:e,setAccessibility:t,accessibility:r,renderHelper:s,interactions:l,env:u,models:c})=>{const{modifiedLayout:{showTabs:d,objects:p,orientation:h},translator:f}=c;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,d?t:""]))})()},[e,d,p,f,h]);const m=u.flags.isEnabled("VIZ-7_NEW_SHEET")||u.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 pp.ESCAPE:t.stopPropagation(),b.blur?.(!0);break;case pp.ENTER:case pp.SPACE:{t.stopPropagation();const n=t.target;n?.classList.contains(fp.ACTIVE_TAB)&&Dp(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 pp.ESCAPE:{const n=Ep(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 pp.ENTER:case pp.SPACE:{const n=Dp(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 pp.OPEN_CONTEXT_MENU:t.stopPropagation(),r?.viewDataToggled||e!==document.activeElement&&(g(),e.focus())}},[e,g,m,s]),C=i(()=>e=>{const t=e.target;t?.classList.contains(fp.ACTIVE_TAB_PANEL)?y(e):v(e)},[v,y]);n(()=>(r&&e.addEventListener(hp.KEY_DOWN,C),()=>{e.removeEventListener(hp.KEY_DOWN,C)}),[e,r,C]);const[E,D]=a(!1);n(()=>{E&&(D(!1),window.setTimeout(()=>((e=>e.getElementsByClassName(fp.TAB_MENU)?.[0])(e)??Ep(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(fp.TAB_MENU_ITEM)||g?.()};return b.enabled&&b.active&&!l.edit&&(t(!0),D(!0),e.addEventListener(hp.FOCUS_OUT,n)),()=>{e.removeEventListener(hp.FOCUS_OUT,n)}},[b])},Ap=e=>{const[t]=a(e);return[t,function(e){Object.assign(t,e)}]},Sp=({isContainerActive:e,activeTabId:t,modifiedLayout:r,renderHelper:o,activeCharts:a,sharedContainerUtilities:s})=>{const l={modifiedLayout:r,activeTabId:t,renderHelper:o,isContainerActive:e},[u,c]=Ap(l);c(l);const d=i(()=>()=>{const e=Zc(u.modifiedLayout);for(const[t,n]of u.renderHelper.objectMap.entries()){const r=u.isContainerActive&&u.activeTabId===e[t];"setIsActive"in n&&n.setIsActive(r)}},[u]);n(()=>{u.isContainerActive&&d()},[o.objectMap,d,u]),n(()=>{d()},[e,d]),(({activeCharts:e,onSetActiveCharts:t,canSetActiveChart:r=!0})=>{const[o,i]=Ap({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=u.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t&&t!==u.activeTabId&&s.setSelected(e)}})},wp={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 Rp={qInfo:{qId:"MasterObjectList",qType:"MasterObjectList"},qAppObjectListDef:{qType:"masterobject",qData:{name:"/qMetaDef/title",labelExpression:"/labelExpression",visualization:"/visualization",tags:"/qMetaDef/tags"}}};class Fp{sessionObject;constructor(e){this.getOrCreateSessionObject(e).catch(()=>{})}getOrCreateSessionObject=async e=>{const t=Rp.qInfo.qId;this.sessionObject=await e.getObject(t).catch(()=>e.createSessionObject(Rp))};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=>!Rc.includes(e.visualization))}catch{return[]}}}let _p=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 kp{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 Fp(n)),e&&r&&(this.chartList=new Fc(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&&!Rc.includes(e.visualization))try{await this.mutex.lock();const{model:r}=this,o=async()=>{e.childRefId=wp.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 _p.TOP:{if(0===o)break;const e=r.splice(o,1)[0];r.unshift(e),i=!0;break}case _p.BOTTOM:{if(o===r.length-1)break;const e=r.splice(o,1)[0];r.push(e),i=!0;break}case _p.UP:{if(0===o)break;const e=r.splice(o,1)[0];r.splice(o-1,0,e),i=!0;break}case _p.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 Bp{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 Ip={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}},Lp={index:-1,color:"none",alpha:1},Tp=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}},Pp=(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})`},Op=e=>{const{h:t,s:n,l:r}=Tp(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 Pp(i,s,a,r-.5*i,o)},Mp={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 Op(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 Op(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}=Tp(e),o=r*n,i=t/60,a=o*(1-Math.abs(i%2-1));return Pp(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&&Ip[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||Lp;let o;return o=e?.useColorExpression?Mp.resolveExpression(e):"string"==typeof r?r:n?.getColorPickerColor(r)||"",o&&"none"!==o?o:t}},jp=()=>Ut.jsx(zc,{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"})}),$p=({libraryInfo:e,style:t,id:n})=>Ut.jsx("div",{style:t,"data-testid":"tab-chart-icon",id:n,className:fp.TABS_ICON,children:Ut.jsx(e.IconDefinition,{})}),Np=({style:e,id:t})=>Ut.jsx("div",{style:e,"data-testid":"tab-hidden-icon",id:t,children:Ut.jsx(Gc,{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"})})}),zp=()=>Ut.jsx(Gc,{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"})}),Gp=la(tc)({width:28,overflow:"hidden"}),Hp=la(tc)({height:28,width:"100%",overflow:"hidden",alignItems:"center","&::before":{visibility:"hidden"}}),Up=(e,t)=>e.find(e=>e.childRefId===t),Wp=(e,t)=>!t.edit&&(0===e.condition||!1===e.visible),Vp=e=>{const{objects:t,defaultTabId:n,cachedTabId:r}=e;return r||(n&&t.some(e=>e.childRefId===n)?n:t[0]?.childRefId||"")};class qp{modifiedLayout;themeStyle;style;objectMap;activeTabId;theme;constructor({modifiedLayout:e,themeService:t}){this.modifiedLayout=e,this.activeTabId=Vp(this.modifiedLayout),this.themeStyle=t.getStyles(),this.theme=t.getTheme(),this.objectMap=Jc(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 Mp.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=Mp.getColor({style:e,theme:this.theme})}return n??Mp.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:hd(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:hd(r,"label.fontSize"),fontFamily:hd(r,"label.fontFamily"),color:Mp.getColor({style:hd(r,"label.color"),theme:this.theme})},e[`#tab-icon-${this.modifiedLayout.qInfo.qId}-${n} svg`]={height:hd(r,"icon.size"),color:Mp.getColor({style:hd(r,"icon.color"),theme:this.theme})},e},{});createTabsClasses=()=>({[gp]:{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"})},[vp]:{height:this.resolveComponentStyle({compPath:"icon.size",themePath:"icon.value.fontSize"}),color:this.getColorStyle("icon.color","icon.value.color")},[mp]:{textAlign:this.resolveComponentStyle({compPath:"label.alignment",themePath:"label.textAlignment"}),...this.getTabsWidth("top")},[bp]:{..."top"===this.modifiedLayout.orientation&&{borderBottomColor:this.getColorStyle("indicator.hover","indicator.hover.color")}},[yp]:{...this.getTabsWidth("left"),backgroundColor:this.getColorStyle("background.unselected","")},[Cp]:{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 hd(o,t)??hd(this.themeStyle,n)??r};getTabStyle(e){return this.objectMap[e].components?.find(e=>"tab"===e.key)}}const Yp=()=>{const e=s(),n=l(),r=u(),o=c(),b=d(),g=p(),v=t(),y=h(),C=f(),E=function({theme:e,config:t={}}){const{id:n,resolve:r=[],transform:o=[],extend:i=[]}=t,a={theme:e,matrix:Dd(r),styles:void 0};return a.styles=Sd({theme:e,id:n,transform:o,extend:i,matrix:a.matrix}),{getStyles:()=>a.styles,getTheme:()=>a.theme,setTheme:e=>{a.theme=e,a.styles=Sd({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"]]}}),D=i(()=>new Fc(o,g),[o,g]),[x]=a(()=>new Bp(b?.id)),[A,S]=a(!1),w=i(()=>o&&b&&n?new kp({embed:o,model:b,app:n,translator:g,mutex:x}):void 0,[o,b,n,g,x]),R=i(()=>Xc(r),[r]),F=i(()=>new qp({modifiedLayout:R,themeService:E}),[R,E]);return i(()=>({app:n,modifiedLayout:R,embed:o,model:b,emitter:y,interactions:C,dataHandler:w,chartList:D,styleModel:F,mutex:x,options:v,accessibility:A,setAccessibility:S,translator:g,element:e}),[R,o,b,n,y,C,w,D,F,x,v,A,g,e])},Kp=({dataHandler:e,modifiedLayout:t,translator:n,sharedContainerUtilities:r,Icon:o})=>{const[i,a]=w(void 0);if(!e||!t)return null;const s=!t.qExtendsId;return Ut.jsx(Pc,{children:Ut.jsxs(Tc,{children:[Ut.jsx(o,{}),s?Ut.jsxs(Ut.Fragment,{children:[Ut.jsx(Nc,{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(Wc,{translator:n,anchorEl:i,dataHandler:e,onClose:()=>{a(void 0)},sharedContainerUtilities:r})]}):Ut.jsx(Cs,{variant:"inherit",children:n.get("LayoutContainer.EmptyList.EmptyHint")})]})})};class Xp{_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()}}var Zp=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),Jp=Zp((e,t)=>{t.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,t.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,t.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/}),Qp=Zp((e,t)=>{const n=Jp();t.exports={isSpaceSeparator:e=>"string"==typeof e&&n.Space_Separator.test(e),isIdStartChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||n.ID_Start.test(e)),isIdContinueChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||""===e||""===e||n.ID_Continue.test(e)),isDigit:e=>"string"==typeof e&&/[0-9]/.test(e),isHexDigit:e=>"string"==typeof e&&/[0-9A-Fa-f]/.test(e)}}),eh=Zp((e,t)=>{const n=Qp();let r,o,i,a,s,l,u,c,d,p,h,f,m,b;function g(e,t,n){const r=e[t];if(null!=r&&"object"==typeof r)if(Array.isArray(r))for(let e=0;e<r.length;e++){const t=String(e),o=g(r,t,n);void 0===o?delete r[t]:Object.defineProperty(r,t,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(const e in r){const t=g(r,e,n);void 0===t?delete r[e]:Object.defineProperty(r,e,{value:t,writable:!0,enumerable:!0,configurable:!0})}return n.call(e,t,r)}function v(){for(p="default",h="",f=!1,m=1;;){b=y();const e=E[p]();if(e)return e}}function y(){if(r[a])return String.fromCodePoint(r.codePointAt(a))}function C(){const e=y();return"\n"===e?(s++,l=0):e?l+=e.length:l++,e&&(a+=e.length),e}t.exports=function(e,t){r=String(e),o="start",i=[],a=0,s=1,l=0,u=void 0,c=void 0,d=void 0;do{u=v(),S[o]()}while("eof"!==u.type);return"function"==typeof t?g({"":d},"",t):d};const E={default(){switch(b){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":return void C();case"/":return C(),void(p="comment");case void 0:return C(),D("eof")}if(!n.isSpaceSeparator(b))return E[o]();C()},comment(){switch(b){case"*":return C(),void(p="multiLineComment");case"/":return C(),void(p="singleLineComment")}throw F(C())},multiLineComment(){switch(b){case"*":return C(),void(p="multiLineCommentAsterisk");case void 0:throw F(C())}C()},multiLineCommentAsterisk(){switch(b){case"*":return void C();case"/":return C(),void(p="default");case void 0:throw F(C())}C(),p="multiLineComment"},singleLineComment(){switch(b){case"\n":case"\r":case"\u2028":case"\u2029":return C(),void(p="default");case void 0:return C(),D("eof")}C()},value(){switch(b){case"{":case"[":return D("punctuator",C());case"n":return C(),x("ull"),D("null",null);case"t":return C(),x("rue"),D("boolean",!0);case"f":return C(),x("alse"),D("boolean",!1);case"-":case"+":return"-"===C()&&(m=-1),void(p="sign");case".":return h=C(),void(p="decimalPointLeading");case"0":return h=C(),void(p="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return h=C(),void(p="decimalInteger");case"I":return C(),x("nfinity"),D("numeric",1/0);case"N":return C(),x("aN"),D("numeric",NaN);case'"':case"'":return f='"'===C(),h="",void(p="string")}throw F(C())},identifierNameStartEscape(){if("u"!==b)throw F(C());C();const e=A();switch(e){case"$":case"_":break;default:if(!n.isIdStartChar(e))throw k()}h+=e,p="identifierName"},identifierName(){switch(b){case"$":case"_":case"":case"":return void(h+=C());case"\\":return C(),void(p="identifierNameEscape")}if(!n.isIdContinueChar(b))return D("identifier",h);h+=C()},identifierNameEscape(){if("u"!==b)throw F(C());C();const e=A();switch(e){case"$":case"_":case"":case"":break;default:if(!n.isIdContinueChar(e))throw k()}h+=e,p="identifierName"},sign(){switch(b){case".":return h=C(),void(p="decimalPointLeading");case"0":return h=C(),void(p="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return h=C(),void(p="decimalInteger");case"I":return C(),x("nfinity"),D("numeric",m*(1/0));case"N":return C(),x("aN"),D("numeric",NaN)}throw F(C())},zero(){switch(b){case".":return h+=C(),void(p="decimalPoint");case"e":case"E":return h+=C(),void(p="decimalExponent");case"x":case"X":return h+=C(),void(p="hexadecimal")}return D("numeric",0*m)},decimalInteger(){switch(b){case".":return h+=C(),void(p="decimalPoint");case"e":case"E":return h+=C(),void(p="decimalExponent")}if(!n.isDigit(b))return D("numeric",m*Number(h));h+=C()},decimalPointLeading(){if(n.isDigit(b))return h+=C(),void(p="decimalFraction");throw F(C())},decimalPoint(){switch(b){case"e":case"E":return h+=C(),void(p="decimalExponent")}return n.isDigit(b)?(h+=C(),void(p="decimalFraction")):D("numeric",m*Number(h))},decimalFraction(){switch(b){case"e":case"E":return h+=C(),void(p="decimalExponent")}if(!n.isDigit(b))return D("numeric",m*Number(h));h+=C()},decimalExponent(){switch(b){case"+":case"-":return h+=C(),void(p="decimalExponentSign")}if(n.isDigit(b))return h+=C(),void(p="decimalExponentInteger");throw F(C())},decimalExponentSign(){if(n.isDigit(b))return h+=C(),void(p="decimalExponentInteger");throw F(C())},decimalExponentInteger(){if(!n.isDigit(b))return D("numeric",m*Number(h));h+=C()},hexadecimal(){if(n.isHexDigit(b))return h+=C(),void(p="hexadecimalInteger");throw F(C())},hexadecimalInteger(){if(!n.isHexDigit(b))return D("numeric",m*Number(h));h+=C()},string(){switch(b){case"\\":return C(),void(h+=function(){switch(y()){case"b":return C(),"\b";case"f":return C(),"\f";case"n":return C(),"\n";case"r":return C(),"\r";case"t":return C(),"\t";case"v":return C(),"\v";case"0":if(C(),n.isDigit(y()))throw F(C());return"\0";case"x":return C(),function(){let e="",t=y();if(!n.isHexDigit(t))throw F(C());if(e+=C(),t=y(),!n.isHexDigit(t))throw F(C());return e+=C(),String.fromCodePoint(parseInt(e,16))}();case"u":return C(),A();case"\n":case"\u2028":case"\u2029":return C(),"";case"\r":return C(),"\n"===y()&&C(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case void 0:throw F(C())}return C()}());case'"':return f?(C(),D("string",h)):void(h+=C());case"'":return f?void(h+=C()):(C(),D("string",h));case"\n":case"\r":throw F(C());case"\u2028":case"\u2029":!function(e){console.warn(`JSON5: '${B(e)}' in strings is not valid ECMAScript; consider escaping`)}(b);break;case void 0:throw F(C())}h+=C()},start(){switch(b){case"{":case"[":return D("punctuator",C())}p="value"},beforePropertyName(){switch(b){case"$":case"_":return h=C(),void(p="identifierName");case"\\":return C(),void(p="identifierNameStartEscape");case"}":return D("punctuator",C());case'"':case"'":return f='"'===C(),void(p="string")}if(n.isIdStartChar(b))return h+=C(),void(p="identifierName");throw F(C())},afterPropertyName(){if(":"===b)return D("punctuator",C());throw F(C())},beforePropertyValue(){p="value"},afterPropertyValue(){switch(b){case",":case"}":return D("punctuator",C())}throw F(C())},beforeArrayValue(){if("]"===b)return D("punctuator",C());p="value"},afterArrayValue(){switch(b){case",":case"]":return D("punctuator",C())}throw F(C())},end(){throw F(C())}};function D(e,t){return{type:e,value:t,line:s,column:l}}function x(e){for(const t of e){if(y()!==t)throw F(C());C()}}function A(){let e="",t=4;for(;t-- >0;){const t=y();if(!n.isHexDigit(t))throw F(C());e+=C()}return String.fromCodePoint(parseInt(e,16))}const S={start(){if("eof"===u.type)throw _();w()},beforePropertyName(){switch(u.type){case"identifier":case"string":return c=u.value,void(o="afterPropertyName");case"punctuator":return void R();case"eof":throw _()}},afterPropertyName(){if("eof"===u.type)throw _();o="beforePropertyValue"},beforePropertyValue(){if("eof"===u.type)throw _();w()},beforeArrayValue(){if("eof"===u.type)throw _();"punctuator"!==u.type||"]"!==u.value?w():R()},afterPropertyValue(){if("eof"===u.type)throw _();switch(u.value){case",":return void(o="beforePropertyName");case"}":R()}},afterArrayValue(){if("eof"===u.type)throw _();switch(u.value){case",":return void(o="beforeArrayValue");case"]":R()}},end(){}};function w(){let e;switch(u.type){case"punctuator":switch(u.value){case"{":e={};break;case"[":e=[]}break;case"null":case"boolean":case"numeric":case"string":e=u.value}if(void 0===d)d=e;else{const t=i[i.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,c,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(null!==e&&"object"==typeof e)i.push(e),o=Array.isArray(e)?"beforeArrayValue":"beforePropertyName";else{const e=i[i.length-1];o=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}}function R(){i.pop();const e=i[i.length-1];o=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}function F(e){return I(void 0===e?`JSON5: invalid end of input at ${s}:${l}`:`JSON5: invalid character '${B(e)}' at ${s}:${l}`)}function _(){return I(`JSON5: invalid end of input at ${s}:${l}`)}function k(){return l-=5,I(`JSON5: invalid identifier character at ${s}:${l}`)}function B(e){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){const t=e.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return e}function I(e){const t=new SyntaxError(e);return t.lineNumber=s,t.columnNumber=l,t}}),th=Zp((e,t)=>{const n=Qp();t.exports=function(e,t,r){const o=[];let i,a,s,l="",u="";if(null==t||"object"!=typeof t||Array.isArray(t)||(r=t.space,s=t.quote,t=t.replacer),"function"==typeof t)a=t;else if(Array.isArray(t)){i=[];for(const e of t){let t;"string"==typeof e?t=e:("number"==typeof e||e instanceof String||e instanceof Number)&&(t=String(e)),void 0!==t&&i.indexOf(t)<0&&i.push(t)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),"number"==typeof r?r>0&&(r=Math.min(10,Math.floor(r)),u=" ".substr(0,r)):"string"==typeof r&&(u=r.substr(0,10)),c("",{"":e});function c(e,t){let n=t[e];switch(null!=n&&("function"==typeof n.toJSON5?n=n.toJSON5(e):"function"==typeof n.toJSON&&(n=n.toJSON(e))),a&&(n=a.call(t,e,n)),n instanceof Number?n=Number(n):n instanceof String?n=String(n):n instanceof Boolean&&(n=n.valueOf()),n){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof n?d(n):"number"==typeof n?String(n):"object"==typeof n?Array.isArray(n)?function(e){if(o.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");o.push(e);let t=l;l+=u;let n,r=[];for(let t=0;t<e.length;t++){const n=c(String(t),e);r.push(void 0!==n?n:"null")}if(0===r.length)n="[]";else if(""===u)n="["+r.join(",")+"]";else{let e=",\n"+l,o=r.join(e);n="[\n"+l+o+",\n"+t+"]"}return o.pop(),l=t,n}(n):function(e){if(o.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");o.push(e);let t=l;l+=u;let n,r=i||Object.keys(e),a=[];for(const t of r){const n=c(t,e);if(void 0!==n){let e=p(t)+":";""!==u&&(e+=" "),e+=n,a.push(e)}}if(0===a.length)n="{}";else{let e;if(""===u)e=a.join(","),n="{"+e+"}";else{let r=",\n"+l;e=a.join(r),n="{\n"+l+e+",\n"+t+"}"}}return o.pop(),l=t,n}(n):void 0}function d(e){const t={"'":.1,'"':.2},r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let o="";for(let i=0;i<e.length;i++){const a=e[i];switch(a){case"'":case'"':t[a]++,o+=a;continue;case"\0":if(n.isDigit(e[i+1])){o+="\\x00";continue}}if(r[a])o+=r[a];else{if(a<" "){let e=a.charCodeAt(0).toString(16);o+="\\x"+("00"+e).substring(e.length);continue}o+=a}}const i=s||Object.keys(t).reduce((e,n)=>t[e]<t[n]?e:n);return o=o.replace(new RegExp(i,"g"),r[i]),i+o+i}function p(e){if(0===e.length)return d(e);const t=String.fromCodePoint(e.codePointAt(0));if(!n.isIdStartChar(t))return d(e);for(let r=t.length;r<e.length;r++)if(!n.isIdContinueChar(String.fromCodePoint(e.codePointAt(r))))return d(e);return e}}});function nh(e){if("undefined"==typeof window)throw new Error(`Cannot load runtime module "${e}" outside a browser (no window available)`)}async function rh(e,t){return t?.runtimeModuleMocks?.[e]?t.runtimeModuleMocks?.[e]:(nh(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(nh(e),!window.__qlikMainPrivateResolvers?.qlikMainPromise)throw new Error("No main url resolver found");return(await window.__qlikMainPrivateResolvers.qlikMainPromise).import(e)}(e))}Zp((e,t)=>{t.exports={parse:eh(),stringify:th()}})(),"undefined"!=typeof window&&(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 oh=F(void 0),ih=e=>{const t=k(null),n=k(void 0),{vanillaEmbedFn:r,hostConfig:o,...i}=e;return R(()=>(t.current&&(n.current=r({target:t.current,props:{hostConfig:o,...i}})),()=>{n.current&&n.current.$destroy()}),[]),R(()=>{n.current&&n.current.$set({hostConfig:o,...i})},[i,o]),Ut.jsx("qlik-embed-react",{style:{display:"contents"},ref:t})},ah=e=>{const t=E(oh),{vanillaEmbedFn:n}=function(e){const[t,n]=w({});return R(()=>{let t=!1;const r=e=>{t||n({vanillaError:e instanceof Error?e:new Error(String(e))})},o=e=>rh("embed-vanilla@v1",e).then(({mountVanillaEmbedComponent:e})=>{t||n({vanillaEmbedFn:e})});return e?o(e).catch(r):rh("auth@v1").then(e=>{if(!t&&e.getDefaultHostConfig?.())return o(void 0)}).catch(r),()=>{t=!0}},[e]),t}(t);return n?Ut.jsx(ih,{hostConfig:t,...e,vanillaEmbedFn:n}):null};const sh=C(function(e,t){const[n,r]=w(null),o=function(e){const t=k(e);return R(()=>{t.current=e},[e]),B(e=>{t.current(e)},[])}(e=>{r(()=>e)});return _(t,()=>n,[n]),Ut.jsx(ah,{exposeRefApi:o,...e})}),lh=new Map,uh=e=>{const t=lh.get(e);t&&(t.unmount(),lh.delete(e))},ch=({chartObject:e,embed:t,renderHelper:n,direction:r,interactions:o,env:i,app:a})=>{const s=k(null),{id:l}=e;R(()=>(l&&s.current&&(async(e,t,n,r,o)=>{const i=o?.id;if(r.shouldRenderWithQmfeEmbed(i))try{const n=Bc.createRoot(e);return lh.set(t,n),void n.render(Ut.jsx(oh.Provider,{value:{},children:Ut.jsx(sh,{...r.getQmfeEmbedProps(t,i)})}))}catch(e){console.warn("QlikEmbed mount failed, falling back to embed.render()",t,e),uh(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&&uh(l)}),[l,t,n,r,a]);const u=I(()=>()=>{const t=i.anything?.sense?.selectedObjects;if(t){const r=n.dependencyData.modifiedLayout.qInfo.qId;return void(r&&e?.id&&$d(t,r,[e.id]))}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 R(()=>{const e=s?.current;return e&&o?.edit&&e.addEventListener("dblclick",u),()=>{e?.removeEventListener("dblclick",u)}},[s,u,o]),Ut.jsx("div",{ref:s,style:{position:"relative",height:"100%",width:"100%"},"data-testid":`tab-panel-${e.childRefId}`})};let dh=function(e){return e.TABS_HEIGHT="36px",e}({});const ph=({charts:e,handleChangeTab:t,activeTabId:n,element:r,translator:o,accessibility:i,disabled:a})=>{const[s,l]=D.useState(null),u=Boolean(s),c=()=>{l(null)},d=B(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:fp.TAB_MENU,sx:{m:"2px"},children:Ut.jsx(zp,{})}),Ut.jsx(Pu,{anchorEl:s,open:u,onClose:c,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(Nu,{className:fp.TAB_MENU_ITEM,ref:n===e.childRefId&&u?d:null,onClick:()=>{(e=>{t(e.childRefId),c(),window.setTimeout(()=>{r.getElementsByClassName(fp.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(Cs,{variant:"inherit",noWrap:!0,children:e.label})},`chartTabMenu-${e.childRefId}`))})]})},hh=({label:e,id:t})=>Ut.jsx(qs,{className:fp.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})}),fh=({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(Np,{id:`${fp.TABS_ICON}-${r}`,style:o}):e?Ut.jsx($p,{id:`${fp.TABS_ICON}-${r}`,libraryInfo:e,style:o}):null},mh=({models:e,activeTabId:t,handleChangeTab:n})=>{const{modifiedLayout:r,chartList:o,interactions:i,accessibility:a}=e,s=o?.getCharts(),l=r.objects.filter(e=>!Wp(e,i)),{orientation:u,tabContainerStyle:c,ScrollButtonComponent:d}=(({orientation:e})=>"left"===e?{orientation:"vertical",tabContainerStyle:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"25%",flexShrink:0},ScrollButtonComponent:Hp}:{orientation:"horizontal",tabContainerStyle:{display:"flex",flexDirection:"row",alignItems:"center"},ScrollButtonComponent:Gp})(r),p=!1===i.active&&!i.edit,[h,f]=w(!1),m=B(e=>{if(e){const t=e.getElementsByClassName("MuiTabs-flexContainer")[0];if(t)return void f("vertical"===u?t.scrollHeight>t.offsetHeight:t.scrollWidth>t.offsetWidth)}f(!1)},[u]);return Ut.jsxs(qs,{className:fp.TAB_WRAPPER,sx:c,ref:e=>{m(e)},children:[r.useDropdown&&h?Ut.jsx(ph,{charts:l,handleChangeTab:n,activeTabId:t,accessibility:a,translator:e.translator,element:e.element,disabled:p}):null,Ut.jsx(fc,{value:t,onChange:(e,t)=>{n(t)},ScrollButtonComponent:d,variant:"scrollable",orientation:u,scrollButtons:!!r.useScrollButton&&"auto",TabScrollButtonProps:{...p&&{disabled:!0}},sx:{height:"100%",width:"100%",minHeight:dh.TABS_HEIGHT},children:l.map(n=>{const o=Kc(r,n.childRefId)?.qData?.visualization,i=o&&s?.[o]?.libraryInfo,l=e.styleModel.getTabStyle(n.childRefId),c=0===n.condition||r.showIcons&&i&&!1!==l?.icon?.show||!1===n.visible,d="vertical"===u?"top":"start",h=e.styleModel.resolveComponentStyle({compPath:"icon.position",defaultValue:d}),f=e.styleModel.resolveComponentStyle({compPath:"label.show"}),m=n.label&&(l?.label?.show??!1!==f),b=`${r.qInfo.qId}-${n.childRefId}`;return Ut.jsx(Wu,{className:`${fp.TAB} ${t===n.childRefId?fp.ACTIVE_TAB:""}`,disabled:p,id:`tab-${b}`,value:n.childRefId,title:n.label,label:m?Ut.jsx(hh,{label:n.label,id:b}):void 0,icon:c?Ut.jsx(fh,{libraryInfo:i,chart:n,iconPosition:h,id:b}):"",iconPosition:h,"data-testid":`container-tab-${n.childRefId}`,sx:{textAlign:"vertical"!==u||r.showIcons?"center":"start",minWidth:"vertical"===u?"100%":void 0,minHeight:dh.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)})})]})},bh=({models:e,renderHelper:t,activeTabId:n,handleChangeTab:r,env:o})=>{const{modifiedLayout:i,embed:a,interactions:s,options:l,styleModel:u,accessibility:c,app:d}=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=u.getStyleClasses();return Ut.jsxs(qs,{sx:{display:"flex",flexDirection:m,height:"100%",width:"100%",direction:l.direction,...b},children:[f?Ut.jsx(mh,{models:e,activeTabId:n,handleChangeTab:r}):null,p.map(e=>{const r=`tab-panel-${i.qInfo.qId}-${e.childRefId}`,u=n===e.childRefId&&!Wp(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}},...u?{className:fp.ACTIVE_TAB_PANEL,tabIndex:c?0:-1}:{hidden:!0},children:u?Ut.jsx(ch,{chartObject:e,renderHelper:t,direction:l.direction,embed:a,interactions:s,env:o,app:d}):null},r)})]})};let gh=function(e){return e.COPY="copy",e.PASTE="paste",e.RESET_COPY_BUFFER="resetCopyBuffer",e}({}),vh=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.CHART_HEADER="chart-header",e.ADD_TO_MASTER_ITEMS="add-to-master-items",e.UNLINK_VISUALIZATION="unlink",e.DEVELOPER="object-developer",e.SUBSCRIBE="subscribe",e.NOTES_GROUP="notesGroup",e.DOWNLOAD="download",e.SHARE_IMAGE="share",e}({});const yh=[vh.PASTE_AND_REPLACE,vh.ZOOM_IN,vh.VISUAL_EXPLORATION],Ch=[vh.DELETE,vh.CUT,vh.ADD_TO_MASTER_ITEMS,vh.UNLINK_VISUALIZATION],Eh=(e,t)=>{const{childRefId:n}=e.model.layout,r=t.objects.find(e=>e.childRefId===n);return{...e,additionalData:{label:r?.label}}},Dh=(e,t,n,r,o)=>{const i=t.getSupportFunction(vh.COPY);if(!i)return void e.deleteItem(vh.COPY);const a=()=>{i(Eh(n,r)).catch(()=>{})},s=e.items.find(e=>e.id===vh.COPY);if(s)s.updateItem({select:a});else if(o){const t=e.items.findIndex(e=>e.id===vh.CUT),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.copy",tid:vh.COPY,id:vh.COPY,icon:"copy",select:a,items:[]},n)}},xh=e=>e.interactions.edit&&!e.modifiedLayout.qExtendsId,Ah="tabbed-container-menu",Sh=e=>{const t={[vh.MONITOR_IN_HUB]:!0,[vh.SUBSCRIBE]:!0,[vh.NOTES_GROUP]:!0,[vh.DOWNLOAD]:!0,[vh.SHARE_IMAGE]:!0};e.items.forEach(n=>{t[n.id]?e.deleteItem(n.id):n.items&&Sh(n)})},wh=(e,t,n,r,o,i)=>a=>{const{dataHandler:s,modifiedLayout:l}=r;if(xh(r)){n.isInvalid||(((e,t,n,r)=>{const{model:o,modifiedLayout:i}=n,a=e.items.findLastIndex(e=>e.id===vh.CHART_HEADER||e.id===vh.REORDER_LAYERS_GROUP),s=a>=0?1+a:void 0;e.addItem({translation:"Object.Container.Props.EditProperties",tid:vh.EDIT_PROPERTIES,id:vh.EDIT_PROPERTIES,icon:vh.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(vh.COPY);if(!a)return void e.deleteItem(vh.CUT);const s=()=>{o&&a(Eh(n,i)).then(async()=>{await(o?.deleteChildren([t]))}).catch(()=>{})},l=e.items.find(e=>e.id===vh.CUT);if(l)l.updateItem({select:s});else{const t=e.items.findLastIndex(e=>e.id===vh.ADD_TO_MASTER_ITEMS||e.id===vh.UNLINK_VISUALIZATION||e.id===vh.EDIT_PROPERTIES||e.id===vh.REORDER_LAYERS_GROUP||e.id===vh.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.cut",tid:vh.CUT,id:vh.CUT,icon:"cut",select:s,items:[]},n)}})(a,t,n,e,s,l),Dh(a,e,n,l,!0),((e,t,n,r,o)=>{const i=t.getSupportFunction(gh.COPY),a=t.getSupportFunction(gh.PASTE);if(!i||!a)return void e.deleteItem(vh.DUPLICATE);const s=()=>{i(Eh(n,r)).then(()=>{o()}).catch(()=>{})},l=e.items.find(e=>e.id===vh.DUPLICATE);if(l)l.updateItem({select:s});else{const t=e.items.findIndex(e=>e.id===vh.COPY),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Duplicate",tid:vh.DUPLICATE,id:vh.DUPLICATE,icon:vh.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===vh.DELETE);if(o)o.updateItem({select:r});else{const t=e.items.findLastIndex(e=>e.id===vh.DUPLICATE||e.id===vh.ADD_TO_MASTER_ITEMS||e.id===vh.UNLINK_VISUALIZATION||e.id===vh.REORDER_LAYERS_GROUP||e.id===vh.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Delete",tid:vh.DELETE,id:vh.DELETE,icon:"bin",items:[],select:r},n)}})(a,t,s)}else Dh(a,e,n,l,!1)},Rh=(e,t,n,r)=>{g(async(o,i,a)=>{if(!a)return!1;const s=((e,t)=>()=>{if(!e)return;const n=t.getSupportFunction(gh.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(gh.RESET_COPY_BUFFER)})})(n.dataHandler,a);if(Sh(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,fp.ACTIVE_TAB_PANEL)})(i))return!0;const l=n.modifiedLayout.objects.find(t=>t.childRefId===e)?.id;if(!l)return!0;const u=t.objectMap.get(l);if(!u)return!0;const c=wh(a,e,u,n,r,s),d=await(async(e,t,n,r)=>{const o=xh(n),i=e.getBuilder("object");if(!i)return;const a=await i(t);return a.addItem({translation:"contextMenu.chartOptionsHeader",tid:vh.CHART_HEADER,id:vh.CHART_HEADER,bold:!0,items:[]},0),r(a),a.items.forEach(e=>{(yh.includes(e.id)||!o&&Ch.includes(e.id))&&a.deleteItem(e.id)}),1===a.items.length&&a.deleteItem(vh.CHART_HEADER),a})(a,u,n,c);return!d||(o.items.length>0&&d.addItem({translation:"contextMenu.subMenuContainerOptions",tid:Ah,id:Ah,icon:"tabbed-container",items:[...o.items]},d.items.length),o.updateItem({items:d.items}),!0)})},Fh=({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=Bc.createRoot(n);o(r)}return()=>{r?.unmount()}},[e,t,r]),r})(e,"init-component"),{options:u,modifiedLayout:c,interactions:d,model:p}=r,{qChildList:h}=c,f=wc(u.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}}})(c),g=i(()=>Vp(c),[c]),v={modifiedLayout:c,activeTabId:g,env:o},[y,C]=Ap(v);C(v);const E=i(()=>c.objects.filter(e=>g===e.childRefId),[g,c.objects]),D=i(()=>({...u,disableThemeBorder:!0}),[u]),{renderHelper:x}=(e=>{const{visibleLayoutObjects:t,options:r}=e,[o]=a(()=>new Xp(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:c,visibleLayoutObjects:E,viewState:m,options:D,containerMenu:{id:Ah,icon:"TabbedContainerOutline"},translator:r.translator});Rh(g,x,r,o);const[A]=a({current:void 0}),S=c.qInfo.qId,w=o.anything?.sense?.selectedObjects,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]:[]),w&&w.setSelectedObjects(((e,t)=>n=>"chart"!==n.type||n.parentId!==e?n:{...n,ids:t?[t]:[]})(S,t))})},[s,p,S,y.modifiedLayout.objects,w]),F=i(()=>({setSelected:e=>{const t=y.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t&&t!==y.activeTabId?R(t):t||(A.current=e[0])}}),[R,y,A]);n(()=>{const e=(({chartObjects:e,activeTabId:t})=>!Up(e,t)&&e.length>0?e[0]?.childRefId:t)({chartObjects:y.modifiedLayout.objects,activeTabId:y.activeTabId});if(e!==y.activeTabId)R(e);else if(A.current){const e=y.modifiedLayout.objects.find(e=>e.id===A.current)?.childRefId;e&&R(e)}A.current=void 0},[c?.objects.length,y,A,R]),n(()=>{const e=(({chartObjects:e,activeTabId:t,interactions:n})=>{const r=Up(e,t);if(!r||Wp(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:d});e!==y.activeTabId&&R(e)},[d,c?.objects,y,R]);const _=0===h.qItems.length&&d.edit;return n(()=>{l?.render(Ut.jsxs(ca,{theme:f,children:[_?Ut.jsx(Kp,{Icon:jp,dataHandler:r.dataHandler,modifiedLayout:r.modifiedLayout,translator:r.translator,sharedContainerUtilities:F}):null,!_&&Ut.jsx(bh,{models:r,renderHelper:x,activeTabId:g,handleChangeTab:R,env:o})]}))},[l,r,f,_,x,g,F,R,o]),{renderHelper:x,sharedContainerUtilities:F,activeTabId:g}};var _h={targets:[]};const kh={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 Bh=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}),Ih=(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},Lh=({env:e,models:t,sharedContainerUtilities:r})=>{const{modifiedLayout:o}=t,i=o.qInfo.qId,a=e.anything?.sense?.selectedObjects;n(()=>a?.subscribe(e=>{const t=((e,t)=>"chart"===e.type&&e.parentId===t?e.ids:[])(e,i);1===t.length&&r.setSelected(t)}),[a,i,r])},Th=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=wc(e)};destroy=e=>{delete this.containers[e]}}}}});
|