@nebula.js/sn-tabbed-container 2.7.0 → 2.8.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/core/esm/index.js CHANGED
@@ -1,17 +1,17 @@
1
1
  /*
2
- * @nebula.js/sn-tabbed-container v2.7.0
2
+ * @nebula.js/sn-tabbed-container v2.8.0
3
3
  * Copyright (c) 2026 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- import{useOptions as e,useEffect as t,onTakeSnapshot as n,useKeyboard as r,useMemo as o,useState as i,useElement as a,useApp as s,useStaleLayout as l,useEmbed as c,useModel as d,useTranslator as u,useEmitter as p,useInteractionState as h,useTheme as f,usePromise as m,onContextMenu as b,useImperativeHandle as g}from"@nebula.js/stardust";import*as v from"react";import y,{forwardRef as x,useContext as E,isValidElement as C,cloneElement as S,Children as w,useState as R,useEffect as _,useRef as A,useMemo as k,useCallback as I}from"react";import*as L from"react-dom";import T from"react-dom";var O,P,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":"無標題的物件"}}};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{}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(P)return O;P=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},O=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},O}();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 D=Object.freeze({__proto__:null,default:z}),B="$$material";function F(){return F=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},F.apply(null,arguments)}function G(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 H=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],n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);if(n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n,this.isSpeedy){var r=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{r.insertRule(e,r.cssRules.length)}catch(t){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),U="-ms-",W="-moz-",Y="-webkit-",V="comm",q="rule",K="decl",X="@keyframes",Z=Math.abs,J=String.fromCharCode,Q=Object.assign;function ee(e){return e.trim()}function te(e,t,n){return e.replace(t,n)}function ne(e,t){return e.indexOf(t)}function re(e,t){return 0|e.charCodeAt(t)}function oe(e,t,n){return e.slice(t,n)}function ie(e){return e.length}function ae(e){return e.length}function se(e,t){return t.push(e),e}var le=1,ce=1,de=0,ue=0,pe=0,he="";function fe(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:le,column:ce,length:a,return:""}}function me(e,t){return Q(fe("",null,null,"",null,null,0),e,{length:-e.length},t)}function be(){return pe=ue>0?re(he,--ue):0,ce--,10===pe&&(ce=1,le--),pe}function ge(){return pe=ue<de?re(he,ue++):0,ce++,10===pe&&(ce=1,le++),pe}function ve(){return re(he,ue)}function ye(){return ue}function xe(e,t){return oe(he,e,t)}function Ee(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 Ce(e){return le=ce=1,de=ie(he=e),ue=0,[]}function Se(e){return he="",e}function we(e){return ee(xe(ue-1,Ae(91===e?e+2:40===e?e+1:e)))}function Re(e){for(;(pe=ve())&&pe<33;)ge();return Ee(e)>2||Ee(pe)>3?"":" "}function _e(e,t){for(;--t&&ge()&&!(pe<48||pe>102||pe>57&&pe<65||pe>70&&pe<97););return xe(e,ye()+(t<6&&32==ve()&&32==ge()))}function Ae(e){for(;ge();)switch(pe){case e:return ue;case 34:case 39:34!==e&&39!==e&&Ae(pe);break;case 40:41===e&&Ae(e);break;case 92:ge()}return ue}function ke(e,t){for(;ge()&&e+pe!==57&&(e+pe!==84||47!==ve()););return"/*"+xe(t,ue-1)+"*"+J(47===e?e:ge())}function Ie(e){for(;!Ee(ve());)ge();return xe(e,ue)}function Le(e){return Se(Te("",null,null,null,[""],e=Ce(e),0,[0],e))}function Te(e,t,n,r,o,i,a,s,l){for(var c=0,d=0,u=a,p=0,h=0,f=0,m=1,b=1,g=1,v=0,y="",x=o,E=i,C=r,S=y;b;)switch(f=v,v=ge()){case 40:if(108!=f&&58==re(S,u-1)){-1!=ne(S+=te(we(v),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=we(v);break;case 9:case 10:case 13:case 32:S+=Re(f);break;case 92:S+=_e(ye()-1,7);continue;case 47:switch(ve()){case 42:case 47:se(Pe(ke(ge(),ye()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=ie(S)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+d:-1==g&&(S=te(S,/\f/g,"")),h>0&&ie(S)-u&&se(h>32?Me(S+";",r,n,u-1):Me(te(S," ","")+";",r,n,u-2),l);break;case 59:S+=";";default:if(se(C=Oe(S,t,n,c,d,o,s,y,x=[],E=[],u),i),123===v)if(0===d)Te(S,t,C,C,x,i,u,s,E);else switch(99===p&&110===re(S,3)?100:p){case 100:case 108:case 109:case 115:Te(e,C,C,r&&se(Oe(e,C,C,0,0,o,s,y,o,x=[],u),E),o,E,u,s,r?x:E);break;default:Te(S,C,C,C,[""],E,0,s,E)}}c=d=h=0,m=g=1,y=S="",u=a;break;case 58:u=1+ie(S),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==be())continue;switch(S+=J(v),v*m){case 38:g=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(ie(S)-1)*g,g=1;break;case 64:45===ve()&&(S+=we(ge())),p=ve(),d=u=ie(y=S+=Ie(ye())),v++;break;case 45:45===f&&2==ie(S)&&(m=0)}}return i}function Oe(e,t,n,r,o,i,a,s,l,c,d){for(var u=o-1,p=0===o?i:[""],h=ae(p),f=0,m=0,b=0;f<r;++f)for(var g=0,v=oe(e,u+1,u=Z(m=a[f])),y=e;g<h;++g)(y=ee(m>0?p[g]+" "+v:te(v,/&\f/g,p[g])))&&(l[b++]=y);return fe(e,t,n,0===o?q:s,l,c,d)}function Pe(e,t,n){return fe(e,t,n,V,J(pe),oe(e,2,-2),0)}function Me(e,t,n,r){return fe(e,t,n,K,oe(e,0,r),oe(e,r+1,-1),r)}function je(e,t){for(var n="",r=ae(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 K:return e.return=e.return||e.value;case V:return"";case X:return e.return=e.value+"{"+je(e.children,r)+"}";case q:e.value=e.props.join(",")}return ie(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=ve(),38===r&&12===o&&(t[n]=1),!Ee(o);)ge();return xe(e,ue)},De=function(e,t){return Se(function(e,t){var n=-1,r=44;do{switch(Ee(r)){case 0:38===r&&12===ve()&&(t[n]=1),e[n]+=ze(ue-1,t,n);break;case 2:e[n]+=we(r);break;case 4:if(44===r){e[++n]=58===ve()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=J(r)}}while(r=ge());return e}(Ce(e),t))},Be=new WeakMap,Fe=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)||Be.get(n))&&!r){Be.set(e,!0);for(var o=[],i=De(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Ge=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},He=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},Ue=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},We=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Ye=function(e,t,n){Ue(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),We(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Ue(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),We(e)))};function Ve(e,t){switch(function(e,t){return 45^re(e,0)?(((t<<2^re(e,0))<<2^re(e,1))<<2^re(e,2))<<2^re(e,3):0}(e,t)){case 5103:return Y+"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 Y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+W+e+U+e+e;case 6828:case 4268:return Y+e+U+e+e;case 6165:return Y+e+U+"flex-"+e+e;case 5187:return Y+e+te(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+U+"flex-$1$2")+e;case 5443:return Y+e+U+"flex-item-"+te(e,/flex-|-self/,"")+e;case 4675:return Y+e+U+"flex-line-pack"+te(e,/align-content|flex-|-self/,"")+e;case 5548:return Y+e+U+te(e,"shrink","negative")+e;case 5292:return Y+e+U+te(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+te(e,"-grow","")+Y+e+U+te(e,"grow","positive")+e;case 4554:return Y+te(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return te(te(te(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return te(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return te(te(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+U+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+e+e;case 4095:case 3583:case 4068:case 2532:return te(e,/(.+)-inline(.+)/,Y+"$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(ie(e)-1-t>6)switch(re(e,t+1)){case 109:if(45!==re(e,t+4))break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+W+(108==re(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ne(e,"stretch")?Ve(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==re(e,t+1))break;case 6444:switch(re(e,ie(e)-3-(~ne(e,"!important")&&10))){case 107:return te(e,":",":"+Y)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(45===re(e,14)?"inline-":"")+"box$3$1"+Y+"$2$3$1"+U+"$2box$3")+e}break;case 5936:switch(re(e,t+11)){case 114:return Y+e+U+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+U+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+U+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+U+e+e}return e}var qe,Ke=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case K:e.return=Ve(e.value,e.length);break;case X:return je([me(e,{value:te(e.value,"@","@"+Y)})],r);case q: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([me(e,{props:[te(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return je([me(e,{props:[te(t,/:(plac\w+)/,":"+Y+"input-$1")]}),me(e,{props:[te(t,/:(plac\w+)/,":-moz-$1")]}),me(e,{props:[te(t,/:(plac\w+)/,U+"input-$1")]})],r)}return""})}}],Xe=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;qe=function(e){var t=e.match(Xe);if(t)return t[t.length-1]};var Ze,Je,Qe,et,tt=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var 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=e.stylisPlugins||Ke;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l=[Fe,Ge];l.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent?t.parent.children:r,a=i.length-1;a>=0;a--){var s=i[a];if(s.line<t.line)break;if(s.column<t.column){if(He(s))return;break}}o.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}}({get compat(){return p.compat}}),Ye);var c,d=[Ne,function(e){e.root||(e.return?c.insert(e.return):e.value&&e.type!==V&&c.insert(e.value+"{}"))}],u=function(e){var t=ae(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(l.concat(r,d));i=function(e,t,n,r){if(c=n,qe){var o=qe(t.styles);o&&(c={insert:function(e){n.insert(e+o)}})}!function(e){je(Le(e),u)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new H({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return p.sheet.hydrate(s),p},nt={exports:{}},rt={};function ot(){return Je||(Je=1,nt.exports=function(){if(Ze)return rt;Ze=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case i:case o:case u:return e;default:switch(e=e&&e.$$typeof){case s:case d:case f:case h:case a:return e;default:return p}}case n:return p}}}function x(e){return y(e)===c}return rt.AsyncMode=l,rt.ConcurrentMode=c,rt.ContextConsumer=s,rt.ContextProvider=a,rt.Element=t,rt.ForwardRef=d,rt.Fragment=r,rt.Lazy=f,rt.Memo=h,rt.Portal=n,rt.Profiler=i,rt.StrictMode=o,rt.Suspense=u,rt.isAsyncMode=function(e){return x(e)||y(e)===l},rt.isConcurrentMode=x,rt.isContextConsumer=function(e){return y(e)===s},rt.isContextProvider=function(e){return y(e)===a},rt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},rt.isForwardRef=function(e){return y(e)===d},rt.isFragment=function(e){return y(e)===r},rt.isLazy=function(e){return y(e)===f},rt.isMemo=function(e){return y(e)===h},rt.isPortal=function(e){return y(e)===n},rt.isProfiler=function(e){return y(e)===i},rt.isStrictMode=function(e){return y(e)===o},rt.isSuspense=function(e){return y(e)===u},rt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===d||e.$$typeof===b||e.$$typeof===g||e.$$typeof===v||e.$$typeof===m)},rt.typeOf=y,rt}()),nt.exports}!function(){if(et)return Qe;et=1;var e=ot(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,u=Object.prototype;Qe=function e(t,r,o){if("string"!=typeof r){if(u){var p=d(r);p&&p!==u&&e(t,p,o)}var h=s(r);l&&(h=h.concat(l(r)));for(var f=i(t),m=i(r),b=0;b<h.length;++b){var g=h[b];if(!(n[g]||o&&o[g]||m&&m[g]||f&&f[g])){var v=c(r,g);try{a(t,g,v)}catch(e){}}}}return t}}();function it(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var at=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},st=function(e,t,n){at(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 lt={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},ct="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",dt="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",ut=/[A-Z]|^ms/g,pt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ht=function(e){return 45===e.charCodeAt(1)},ft=function(e){return null!=e&&"boolean"!=typeof e},mt=$e(function(e){return ht(e)?e:e.replace(ut,"-$&").toLowerCase()}),bt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(pt,function(e,t,n){return Rt={name:t,styles:n,next:Rt},t})}return 1===lt[e]||ht(e)||"number"!=typeof t||0===t?t:t+"px"},gt=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,vt=["normal","none","initial","inherit","unset"],yt=bt,xt=/^-ms-/,Et=/-(.)/g,Ct={};bt=function(e,t){if("content"===e&&("string"!=typeof t||-1===vt.indexOf(t)&&!gt.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=yt(e,t);return""===n||ht(e)||-1===e.indexOf("-")||void 0!==Ct[e]||(Ct[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(xt,"ms-").replace(Et,function(e,t){return t.toUpperCase()})+"?")),n};var St="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function wt(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles){if("NO_COMPONENT_SELECTOR"===String(r))throw new Error(St);return r}switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Rt={name:o.name,styles:o.styles,next:Rt},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Rt={name:a.name,styles:a.styles,next:Rt},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+=wt(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]+"}":ft(s)&&(r+=mt(i)+":"+bt(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(St);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=wt(e,t,a);switch(i){case"animation":case"animationName":r+=mt(i)+":"+l+";";break;default:"undefined"===i&&console.error(dt),r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)ft(a[c])&&(r+=mt(i)+":"+bt(i,a[c])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=Rt,l=n(e);return Rt=s,wt(e,t,l)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var c=[],d=n.replace(pt,function(e,t,n){var r="animation"+c.length;return c.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});c.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(c,["`"+d+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+d+"`")}var u=n;if(null==t)return u;var p=t[u];return void 0!==p?p:u}var Rt,_t=/label:\s*([^\s;{]+)\s*(;|$)/g;function At(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="";Rt=void 0;var i=e[0];if(null==i||void 0===i.raw)r=!1,o+=wt(n,t,i);else{var a=i;void 0===a[0]&&console.error(ct),o+=a[0]}for(var s=1;s<e.length;s++)if(o+=wt(n,t,e[s]),r){var l=i;void 0===l[s]&&console.error(ct),o+=l[s]}_t.lastIndex=0;for(var c,d="";null!==(c=_t.exec(o));)d+="-"+c[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)+d;return{name:u,styles:o,next:Rt,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}}var kt=!!v.useInsertionEffect&&v.useInsertionEffect,It=kt||function(e){return e()},Lt=kt||v.useLayoutEffect,Tt=v.createContext("undefined"!=typeof HTMLElement?tt({key:"css"}):null);Tt.displayName="EmotionCacheContext";var Ot=Tt.Provider,Pt=function(e){return x(function(t,n){var r=E(Tt);return e(t,r,n)})},Mt=v.createContext({});Mt.displayName="EmotionThemeContext";var jt={}.hasOwnProperty,Nt=function(e){var t=e.split(".");return t[t.length-1]},$t=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?Nt(t[1]):void 0},zt=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Dt=function(e){return e.replace(/\$/g,"-")},Bt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ft="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Gt=function(e,t){if("string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)jt.call(t,r)&&(n[r]=t[r]);if(n[Bt]=e,"undefined"!=typeof globalThis&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&t.css&&("object"!=typeof t.css||!("name"in t.css)||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var o=function(e){if(e)for(var t=e.split("\n"),n=0;n<t.length;n++){var r=$t(t[n]);if(r){if(zt.has(r))break;if(/^[A-Z]/.test(r))return Dt(r)}}}((new Error).stack);o&&(n[Ft]=o)}return n},Ht=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return at(t,n,r),It(function(){return st(t,n,r)}),null},Ut=Pt(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Bt],i=[r],a="";"string"==typeof e.className?a=it(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=At(i,void 0,v.useContext(Mt));if(-1===s.name.indexOf("-")){var l=e[Ft];l&&(s=At([s,"label:"+l+";"]))}a+=t.key+"-"+s.name;var c={};for(var d in e)jt.call(e,d)&&"css"!==d&&d!==Bt&&d!==Ft&&(c[d]=e[d]);return c.className=a,n&&(c.ref=n),v.createElement(v.Fragment,null,v.createElement(Ht,{cache:t,serialized:s,isStringTag:"string"==typeof o}),v.createElement(o,c))});Ut.displayName="EmotionCssPropInternal";var Wt,Yt,Vt=Ut,qt=function(e,t){var n=arguments;if(null==t||!jt.call(t,"css"))return v.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Vt,o[1]=Gt(e,t);for(var i=2;i<r;i++)o[i]=n[i];return v.createElement.apply(null,o)};Wt=qt||(qt={}),Yt||(Yt=Wt.JSX||(Wt.JSX={}));var Kt=!1,Xt=Pt(function(e,t){!Kt&&("className"in e&&e.className||"css"in e&&e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Kt=!0);var n=At([e.styles],void 0,v.useContext(Mt)),r=v.useRef();return Lt(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]),Lt(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&st(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 Zt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return At(t)}function Jt(){var e=Zt.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_"}}}Xt.displayName="EmotionGlobal";var Qt=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};var en=function(e){var t=e.cache,n=e.serializedArr;return It(function(){for(var e=0;e<n.length;e++)st(t,n[e],!1)}),null},tn=Pt(function(e,t){var n=!1,r=[],o=function(){if(n)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var a=At(o,t.registered);return r.push(a),at(t,a,!1),t.key+"-"+a.name},i={css:o,cx:function(){if(n)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(e,t,n){var r=[],o=it(e,r,n);return r.length<2?n:o+t(r)}(t.registered,o,Qt(r))},theme:v.useContext(Mt)},a=e.children(i);return n=!0,v.createElement(v.Fragment,null,v.createElement(en,{cache:t,serializedArr:r}),a)});tn.displayName="EmotionClassNames";var nn="undefined"!=typeof document,rn="undefined"!=typeof jest||"undefined"!=typeof vi;if(nn&&!rn){var on="undefined"!=typeof globalThis?globalThis:nn?window:global,an="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";on[an]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),on[an]=!0}var sn=/^((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)-.*))$/,ln=$e(function(e){return sn.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),cn=function(e){return"theme"!==e},dn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ln:cn},un=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},pn="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",hn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return at(t,n,r),It(function(){return st(t,n,r)}),null},fn=function e(t,n){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=un(t,n,i),l=s||dn(a),c=!l("as");return function(){var d=arguments,u=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&u.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)u.push.apply(u,d);else{var p=d[0];void 0===p[0]&&console.error(pn),u.push(p[0]);for(var h=d.length,f=1;f<h;f++)void 0===p[f]&&console.error(pn),u.push(d[f],p[f])}var m=Pt(function(e,t,n){var r=c&&e.as||a,i="",d=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=v.useContext(Mt)}"string"==typeof e.className?i=it(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var f=At(u.concat(d),t.registered,p);i+=t.key+"-"+f.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===s?dn(r):l,b={};for(var g in e)c&&"as"===g||m(g)&&(b[g]=e[g]);return b.className=i,n&&(b.ref=n),v.createElement(v.Fragment,null,v.createElement(hn,{cache:t,serialized:f,isStringTag:"string"==typeof r}),v.createElement(r,b))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=u,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===o?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,F({},n,r,{shouldForwardProp:un(m,r,!0)})).apply(void 0,u)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){fn[e]=fn(e)});var mn,bn,gn={exports:{}},vn={};var yn=(bn||(bn=1,gn.exports=function(){if(mn)return vn;mn=1;var e=y,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},c=null,d=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(d=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:d,props:l,_owner:o.current}}return vn.Fragment=n,vn.jsx=a,vn.jsxs=a,vn}()),gn.exports);const xn=new Map;function En(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 yn.jsx(Xt,{styles:r})}
7
+ import{useOptions as e,useEffect as t,onTakeSnapshot as n,useKeyboard as r,useMemo as o,useState as i,useElement as a,useApp as s,useStaleLayout as l,useEmbed as c,useModel as d,useTranslator as u,useEmitter as p,useInteractionState as h,useTheme as f,usePromise as m,onContextMenu as b,useImperativeHandle as g}from"@nebula.js/stardust";import*as v from"react";import y,{forwardRef as x,useContext as E,isValidElement as C,cloneElement as S,Children as w,useState as R,useEffect as _,useRef as k,useMemo as A,useCallback as I}from"react";import*as L from"react-dom";import T from"react-dom";var O,P,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":"無標題的物件"}}};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{}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(P)return O;P=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},O=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},O}();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 D=Object.freeze({__proto__:null,default:z}),B="$$material";function F(){return F=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},F.apply(null,arguments)}function G(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 H=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],n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);if(n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n,this.isSpeedy){var r=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{r.insertRule(e,r.cssRules.length)}catch(t){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),U="-ms-",W="-moz-",Y="-webkit-",V="comm",q="rule",K="decl",X="@keyframes",Z=Math.abs,J=String.fromCharCode,Q=Object.assign;function ee(e){return e.trim()}function te(e,t,n){return e.replace(t,n)}function ne(e,t){return e.indexOf(t)}function re(e,t){return 0|e.charCodeAt(t)}function oe(e,t,n){return e.slice(t,n)}function ie(e){return e.length}function ae(e){return e.length}function se(e,t){return t.push(e),e}var le=1,ce=1,de=0,ue=0,pe=0,he="";function fe(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:le,column:ce,length:a,return:""}}function me(e,t){return Q(fe("",null,null,"",null,null,0),e,{length:-e.length},t)}function be(){return pe=ue>0?re(he,--ue):0,ce--,10===pe&&(ce=1,le--),pe}function ge(){return pe=ue<de?re(he,ue++):0,ce++,10===pe&&(ce=1,le++),pe}function ve(){return re(he,ue)}function ye(){return ue}function xe(e,t){return oe(he,e,t)}function Ee(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 Ce(e){return le=ce=1,de=ie(he=e),ue=0,[]}function Se(e){return he="",e}function we(e){return ee(xe(ue-1,ke(91===e?e+2:40===e?e+1:e)))}function Re(e){for(;(pe=ve())&&pe<33;)ge();return Ee(e)>2||Ee(pe)>3?"":" "}function _e(e,t){for(;--t&&ge()&&!(pe<48||pe>102||pe>57&&pe<65||pe>70&&pe<97););return xe(e,ye()+(t<6&&32==ve()&&32==ge()))}function ke(e){for(;ge();)switch(pe){case e:return ue;case 34:case 39:34!==e&&39!==e&&ke(pe);break;case 40:41===e&&ke(e);break;case 92:ge()}return ue}function Ae(e,t){for(;ge()&&e+pe!==57&&(e+pe!==84||47!==ve()););return"/*"+xe(t,ue-1)+"*"+J(47===e?e:ge())}function Ie(e){for(;!Ee(ve());)ge();return xe(e,ue)}function Le(e){return Se(Te("",null,null,null,[""],e=Ce(e),0,[0],e))}function Te(e,t,n,r,o,i,a,s,l){for(var c=0,d=0,u=a,p=0,h=0,f=0,m=1,b=1,g=1,v=0,y="",x=o,E=i,C=r,S=y;b;)switch(f=v,v=ge()){case 40:if(108!=f&&58==re(S,u-1)){-1!=ne(S+=te(we(v),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=we(v);break;case 9:case 10:case 13:case 32:S+=Re(f);break;case 92:S+=_e(ye()-1,7);continue;case 47:switch(ve()){case 42:case 47:se(Pe(Ae(ge(),ye()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=ie(S)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+d:-1==g&&(S=te(S,/\f/g,"")),h>0&&ie(S)-u&&se(h>32?Me(S+";",r,n,u-1):Me(te(S," ","")+";",r,n,u-2),l);break;case 59:S+=";";default:if(se(C=Oe(S,t,n,c,d,o,s,y,x=[],E=[],u),i),123===v)if(0===d)Te(S,t,C,C,x,i,u,s,E);else switch(99===p&&110===re(S,3)?100:p){case 100:case 108:case 109:case 115:Te(e,C,C,r&&se(Oe(e,C,C,0,0,o,s,y,o,x=[],u),E),o,E,u,s,r?x:E);break;default:Te(S,C,C,C,[""],E,0,s,E)}}c=d=h=0,m=g=1,y=S="",u=a;break;case 58:u=1+ie(S),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==be())continue;switch(S+=J(v),v*m){case 38:g=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(ie(S)-1)*g,g=1;break;case 64:45===ve()&&(S+=we(ge())),p=ve(),d=u=ie(y=S+=Ie(ye())),v++;break;case 45:45===f&&2==ie(S)&&(m=0)}}return i}function Oe(e,t,n,r,o,i,a,s,l,c,d){for(var u=o-1,p=0===o?i:[""],h=ae(p),f=0,m=0,b=0;f<r;++f)for(var g=0,v=oe(e,u+1,u=Z(m=a[f])),y=e;g<h;++g)(y=ee(m>0?p[g]+" "+v:te(v,/&\f/g,p[g])))&&(l[b++]=y);return fe(e,t,n,0===o?q:s,l,c,d)}function Pe(e,t,n){return fe(e,t,n,V,J(pe),oe(e,2,-2),0)}function Me(e,t,n,r){return fe(e,t,n,K,oe(e,0,r),oe(e,r+1,-1),r)}function je(e,t){for(var n="",r=ae(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 K:return e.return=e.return||e.value;case V:return"";case X:return e.return=e.value+"{"+je(e.children,r)+"}";case q:e.value=e.props.join(",")}return ie(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=ve(),38===r&&12===o&&(t[n]=1),!Ee(o);)ge();return xe(e,ue)},De=function(e,t){return Se(function(e,t){var n=-1,r=44;do{switch(Ee(r)){case 0:38===r&&12===ve()&&(t[n]=1),e[n]+=ze(ue-1,t,n);break;case 2:e[n]+=we(r);break;case 4:if(44===r){e[++n]=58===ve()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=J(r)}}while(r=ge());return e}(Ce(e),t))},Be=new WeakMap,Fe=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)||Be.get(n))&&!r){Be.set(e,!0);for(var o=[],i=De(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Ge=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},He=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},Ue=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},We=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Ye=function(e,t,n){Ue(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),We(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Ue(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),We(e)))};function Ve(e,t){switch(function(e,t){return 45^re(e,0)?(((t<<2^re(e,0))<<2^re(e,1))<<2^re(e,2))<<2^re(e,3):0}(e,t)){case 5103:return Y+"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 Y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+W+e+U+e+e;case 6828:case 4268:return Y+e+U+e+e;case 6165:return Y+e+U+"flex-"+e+e;case 5187:return Y+e+te(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+U+"flex-$1$2")+e;case 5443:return Y+e+U+"flex-item-"+te(e,/flex-|-self/,"")+e;case 4675:return Y+e+U+"flex-line-pack"+te(e,/align-content|flex-|-self/,"")+e;case 5548:return Y+e+U+te(e,"shrink","negative")+e;case 5292:return Y+e+U+te(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+te(e,"-grow","")+Y+e+U+te(e,"grow","positive")+e;case 4554:return Y+te(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return te(te(te(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return te(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return te(te(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+U+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+e+e;case 4095:case 3583:case 4068:case 2532:return te(e,/(.+)-inline(.+)/,Y+"$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(ie(e)-1-t>6)switch(re(e,t+1)){case 109:if(45!==re(e,t+4))break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+W+(108==re(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ne(e,"stretch")?Ve(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==re(e,t+1))break;case 6444:switch(re(e,ie(e)-3-(~ne(e,"!important")&&10))){case 107:return te(e,":",":"+Y)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(45===re(e,14)?"inline-":"")+"box$3$1"+Y+"$2$3$1"+U+"$2box$3")+e}break;case 5936:switch(re(e,t+11)){case 114:return Y+e+U+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+U+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+U+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+U+e+e}return e}var qe,Ke=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case K:e.return=Ve(e.value,e.length);break;case X:return je([me(e,{value:te(e.value,"@","@"+Y)})],r);case q: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([me(e,{props:[te(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return je([me(e,{props:[te(t,/:(plac\w+)/,":"+Y+"input-$1")]}),me(e,{props:[te(t,/:(plac\w+)/,":-moz-$1")]}),me(e,{props:[te(t,/:(plac\w+)/,U+"input-$1")]})],r)}return""})}}],Xe=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;qe=function(e){var t=e.match(Xe);if(t)return t[t.length-1]};var Ze,Je,Qe,et,tt=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var 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=e.stylisPlugins||Ke;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l=[Fe,Ge];l.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent?t.parent.children:r,a=i.length-1;a>=0;a--){var s=i[a];if(s.line<t.line)break;if(s.column<t.column){if(He(s))return;break}}o.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}}({get compat(){return p.compat}}),Ye);var c,d=[Ne,function(e){e.root||(e.return?c.insert(e.return):e.value&&e.type!==V&&c.insert(e.value+"{}"))}],u=function(e){var t=ae(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(l.concat(r,d));i=function(e,t,n,r){if(c=n,qe){var o=qe(t.styles);o&&(c={insert:function(e){n.insert(e+o)}})}!function(e){je(Le(e),u)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new H({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return p.sheet.hydrate(s),p},nt={exports:{}},rt={};function ot(){return Je||(Je=1,nt.exports=function(){if(Ze)return rt;Ze=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case i:case o:case u:return e;default:switch(e=e&&e.$$typeof){case s:case d:case f:case h:case a:return e;default:return p}}case n:return p}}}function x(e){return y(e)===c}return rt.AsyncMode=l,rt.ConcurrentMode=c,rt.ContextConsumer=s,rt.ContextProvider=a,rt.Element=t,rt.ForwardRef=d,rt.Fragment=r,rt.Lazy=f,rt.Memo=h,rt.Portal=n,rt.Profiler=i,rt.StrictMode=o,rt.Suspense=u,rt.isAsyncMode=function(e){return x(e)||y(e)===l},rt.isConcurrentMode=x,rt.isContextConsumer=function(e){return y(e)===s},rt.isContextProvider=function(e){return y(e)===a},rt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},rt.isForwardRef=function(e){return y(e)===d},rt.isFragment=function(e){return y(e)===r},rt.isLazy=function(e){return y(e)===f},rt.isMemo=function(e){return y(e)===h},rt.isPortal=function(e){return y(e)===n},rt.isProfiler=function(e){return y(e)===i},rt.isStrictMode=function(e){return y(e)===o},rt.isSuspense=function(e){return y(e)===u},rt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===d||e.$$typeof===b||e.$$typeof===g||e.$$typeof===v||e.$$typeof===m)},rt.typeOf=y,rt}()),nt.exports}!function(){if(et)return Qe;et=1;var e=ot(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,u=Object.prototype;Qe=function e(t,r,o){if("string"!=typeof r){if(u){var p=d(r);p&&p!==u&&e(t,p,o)}var h=s(r);l&&(h=h.concat(l(r)));for(var f=i(t),m=i(r),b=0;b<h.length;++b){var g=h[b];if(!(n[g]||o&&o[g]||m&&m[g]||f&&f[g])){var v=c(r,g);try{a(t,g,v)}catch(e){}}}}return t}}();function it(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var at=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},st=function(e,t,n){at(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 lt={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},ct="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",dt="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",ut=/[A-Z]|^ms/g,pt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ht=function(e){return 45===e.charCodeAt(1)},ft=function(e){return null!=e&&"boolean"!=typeof e},mt=$e(function(e){return ht(e)?e:e.replace(ut,"-$&").toLowerCase()}),bt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(pt,function(e,t,n){return Rt={name:t,styles:n,next:Rt},t})}return 1===lt[e]||ht(e)||"number"!=typeof t||0===t?t:t+"px"},gt=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,vt=["normal","none","initial","inherit","unset"],yt=bt,xt=/^-ms-/,Et=/-(.)/g,Ct={};bt=function(e,t){if("content"===e&&("string"!=typeof t||-1===vt.indexOf(t)&&!gt.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=yt(e,t);return""===n||ht(e)||-1===e.indexOf("-")||void 0!==Ct[e]||(Ct[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(xt,"ms-").replace(Et,function(e,t){return t.toUpperCase()})+"?")),n};var St="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function wt(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles){if("NO_COMPONENT_SELECTOR"===String(r))throw new Error(St);return r}switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Rt={name:o.name,styles:o.styles,next:Rt},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Rt={name:a.name,styles:a.styles,next:Rt},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+=wt(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]+"}":ft(s)&&(r+=mt(i)+":"+bt(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(St);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=wt(e,t,a);switch(i){case"animation":case"animationName":r+=mt(i)+":"+l+";";break;default:"undefined"===i&&console.error(dt),r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)ft(a[c])&&(r+=mt(i)+":"+bt(i,a[c])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=Rt,l=n(e);return Rt=s,wt(e,t,l)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var c=[],d=n.replace(pt,function(e,t,n){var r="animation"+c.length;return c.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});c.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(c,["`"+d+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+d+"`")}var u=n;if(null==t)return u;var p=t[u];return void 0!==p?p:u}var Rt,_t=/label:\s*([^\s;{]+)\s*(;|$)/g;function kt(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="";Rt=void 0;var i=e[0];if(null==i||void 0===i.raw)r=!1,o+=wt(n,t,i);else{var a=i;void 0===a[0]&&console.error(ct),o+=a[0]}for(var s=1;s<e.length;s++)if(o+=wt(n,t,e[s]),r){var l=i;void 0===l[s]&&console.error(ct),o+=l[s]}_t.lastIndex=0;for(var c,d="";null!==(c=_t.exec(o));)d+="-"+c[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)+d;return{name:u,styles:o,next:Rt,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}}var At=!!v.useInsertionEffect&&v.useInsertionEffect,It=At||function(e){return e()},Lt=At||v.useLayoutEffect,Tt=v.createContext("undefined"!=typeof HTMLElement?tt({key:"css"}):null);Tt.displayName="EmotionCacheContext";var Ot=Tt.Provider,Pt=function(e){return x(function(t,n){var r=E(Tt);return e(t,r,n)})},Mt=v.createContext({});Mt.displayName="EmotionThemeContext";var jt={}.hasOwnProperty,Nt=function(e){var t=e.split(".");return t[t.length-1]},$t=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?Nt(t[1]):void 0},zt=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Dt=function(e){return e.replace(/\$/g,"-")},Bt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ft="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Gt=function(e,t){if("string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)jt.call(t,r)&&(n[r]=t[r]);if(n[Bt]=e,"undefined"!=typeof globalThis&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&t.css&&("object"!=typeof t.css||!("name"in t.css)||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var o=function(e){if(e)for(var t=e.split("\n"),n=0;n<t.length;n++){var r=$t(t[n]);if(r){if(zt.has(r))break;if(/^[A-Z]/.test(r))return Dt(r)}}}((new Error).stack);o&&(n[Ft]=o)}return n},Ht=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return at(t,n,r),It(function(){return st(t,n,r)}),null},Ut=Pt(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Bt],i=[r],a="";"string"==typeof e.className?a=it(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=kt(i,void 0,v.useContext(Mt));if(-1===s.name.indexOf("-")){var l=e[Ft];l&&(s=kt([s,"label:"+l+";"]))}a+=t.key+"-"+s.name;var c={};for(var d in e)jt.call(e,d)&&"css"!==d&&d!==Bt&&d!==Ft&&(c[d]=e[d]);return c.className=a,n&&(c.ref=n),v.createElement(v.Fragment,null,v.createElement(Ht,{cache:t,serialized:s,isStringTag:"string"==typeof o}),v.createElement(o,c))});Ut.displayName="EmotionCssPropInternal";var Wt,Yt,Vt=Ut,qt=function(e,t){var n=arguments;if(null==t||!jt.call(t,"css"))return v.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Vt,o[1]=Gt(e,t);for(var i=2;i<r;i++)o[i]=n[i];return v.createElement.apply(null,o)};Wt=qt||(qt={}),Yt||(Yt=Wt.JSX||(Wt.JSX={}));var Kt=!1,Xt=Pt(function(e,t){!Kt&&("className"in e&&e.className||"css"in e&&e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Kt=!0);var n=kt([e.styles],void 0,v.useContext(Mt)),r=v.useRef();return Lt(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]),Lt(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&st(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 Zt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return kt(t)}function Jt(){var e=Zt.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_"}}}Xt.displayName="EmotionGlobal";var Qt=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};var en=function(e){var t=e.cache,n=e.serializedArr;return It(function(){for(var e=0;e<n.length;e++)st(t,n[e],!1)}),null},tn=Pt(function(e,t){var n=!1,r=[],o=function(){if(n)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var a=kt(o,t.registered);return r.push(a),at(t,a,!1),t.key+"-"+a.name},i={css:o,cx:function(){if(n)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(e,t,n){var r=[],o=it(e,r,n);return r.length<2?n:o+t(r)}(t.registered,o,Qt(r))},theme:v.useContext(Mt)},a=e.children(i);return n=!0,v.createElement(v.Fragment,null,v.createElement(en,{cache:t,serializedArr:r}),a)});tn.displayName="EmotionClassNames";var nn="undefined"!=typeof document,rn="undefined"!=typeof jest||"undefined"!=typeof vi;if(nn&&!rn){var on="undefined"!=typeof globalThis?globalThis:nn?window:global,an="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";on[an]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),on[an]=!0}var sn=/^((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)-.*))$/,ln=$e(function(e){return sn.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),cn=function(e){return"theme"!==e},dn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ln:cn},un=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},pn="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",hn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return at(t,n,r),It(function(){return st(t,n,r)}),null},fn=function e(t,n){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=un(t,n,i),l=s||dn(a),c=!l("as");return function(){var d=arguments,u=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&u.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)u.push.apply(u,d);else{var p=d[0];void 0===p[0]&&console.error(pn),u.push(p[0]);for(var h=d.length,f=1;f<h;f++)void 0===p[f]&&console.error(pn),u.push(d[f],p[f])}var m=Pt(function(e,t,n){var r=c&&e.as||a,i="",d=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=v.useContext(Mt)}"string"==typeof e.className?i=it(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var f=kt(u.concat(d),t.registered,p);i+=t.key+"-"+f.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===s?dn(r):l,b={};for(var g in e)c&&"as"===g||m(g)&&(b[g]=e[g]);return b.className=i,n&&(b.ref=n),v.createElement(v.Fragment,null,v.createElement(hn,{cache:t,serialized:f,isStringTag:"string"==typeof r}),v.createElement(r,b))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=u,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===o?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,F({},n,r,{shouldForwardProp:un(m,r,!0)})).apply(void 0,u)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){fn[e]=fn(e)});var mn,bn,gn={exports:{}},vn={};var yn=(bn||(bn=1,gn.exports=function(){if(mn)return vn;mn=1;var e=y,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},c=null,d=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(d=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:d,props:l,_owner:o.current}}return vn.Fragment=n,vn.jsx=a,vn.jsxs=a,vn}()),gn.exports);const xn=new Map;function En(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 yn.jsx(Xt,{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 Cn(e,t){return fn(e,t)}const Sn=[];function wn(e){return Sn[0]=e,At(Sn)}var Rn=Object.freeze({__proto__:null,GlobalStyles:En,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=v.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&xn.has(e))return xn.get(e);const r=function(e,t){const n=tt({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 xn.set(e,r),r},[t,n]);return t||n?yn.jsx(Ot,{value:o,children:r}):r},ThemeContext:Mt,css:Zt,default:Cn,internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:wn,keyframes:Jt});function _n(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 An(e){if(v.isValidElement(e)||!_n(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=An(e[n])}),t}function kn(e,t,n={clone:!0}){const r=n.clone?F({},e):e;return _n(e)&&_n(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])?r[o]=t[o]:_n(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&_n(e[o])?r[o]=kn(e[o],t[o],n):n.clone?r[o]=_n(t[o])?An(t[o]):t[o]:r[o]=t[o]}),r}var In=Object.freeze({__proto__:null,default:kn,isPlainObject:_n});const Ln=["values","unit","step"];function Tn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=G(e,Ln),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)=>F({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return F({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const On={borderRadius:4};function Pn(e,t){return t?kn(e,t,{clone:!1}):e}const Mn={xs:0,sm:600,md:900,lg:1200,xl:1536},jn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Mn[e]}px)`};function Nn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||jn;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||jn;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||Mn).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function $n(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function zn(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:zn});function Bn(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 Fn(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Bn(e,n)||r,t&&(o=t(o,r,e)),o}function Gn(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=Bn(e.theme,r)||{};return Nn(e,i,e=>{let r=Fn(a,o,e);return e===r&&"string"==typeof e&&(r=Fn(a,o,`${t}${"default"===e?"":zn(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const Hn={m:"margin",p:"padding"},Un={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Wn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Yn=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Wn[e])return[e];e=Wn[e]}const[t,n]=e.split(""),r=Hn[t],o=Un[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),Vn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],qn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Kn(e,t,n,r){var o;const i=null!=(o=Bn(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 Xn(e){return Kn(e,"spacing",8)}function Zn(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 Jn(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Zn(t,n),e),{})}(Yn(n),r);return Nn(e,e[n],o)}function Qn(e,t){const n=Xn(e.theme);return Object.keys(e).map(r=>Jn(e,t,r,n)).reduce(Pn,{})}function er(e){return Qn(e,Vn)}function tr(e){return Qn(e,qn)}function nr(...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]?Pn(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function rr(e){return"number"!=typeof e?e:`${e}px solid`}function or(e,t){return Gn({prop:e,themeKey:"borders",transform:t})}er.propTypes={},er.filterProps=Vn,tr.propTypes={},tr.filterProps=qn;const ir=or("border",rr),ar=or("borderTop",rr),sr=or("borderRight",rr),lr=or("borderBottom",rr),cr=or("borderLeft",rr),dr=or("borderColor"),ur=or("borderTopColor"),pr=or("borderRightColor"),hr=or("borderBottomColor"),fr=or("borderLeftColor"),mr=or("outline",rr),br=or("outlineColor"),gr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Kn(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Zn(t,e)});return Nn(e,e.borderRadius,n)}return null};gr.propTypes={},gr.filterProps=["borderRadius"],nr(ir,ar,sr,lr,cr,dr,ur,pr,hr,fr,gr,mr,br);const vr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Kn(e.theme,"spacing",8),n=e=>({gap:Zn(t,e)});return Nn(e,e.gap,n)}return null};vr.propTypes={},vr.filterProps=["gap"];const yr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Kn(e.theme,"spacing",8),n=e=>({columnGap:Zn(t,e)});return Nn(e,e.columnGap,n)}return null};yr.propTypes={},yr.filterProps=["columnGap"];const xr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Kn(e.theme,"spacing",8),n=e=>({rowGap:Zn(t,e)});return Nn(e,e.rowGap,n)}return null};xr.propTypes={},xr.filterProps=["rowGap"];function Er(e,t){return"grey"===t?t:e}nr(vr,yr,xr,Gn({prop:"gridColumn"}),Gn({prop:"gridRow"}),Gn({prop:"gridAutoFlow"}),Gn({prop:"gridAutoColumns"}),Gn({prop:"gridAutoRows"}),Gn({prop:"gridTemplateColumns"}),Gn({prop:"gridTemplateRows"}),Gn({prop:"gridTemplateAreas"}),Gn({prop:"gridArea"}));function Cr(e){return e<=1&&0!==e?100*e+"%":e}nr(Gn({prop:"color",themeKey:"palette",transform:Er}),Gn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Er}),Gn({prop:"backgroundColor",themeKey:"palette",transform:Er}));const Sr=Gn({prop:"width",transform:Cr}),wr=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])||Mn[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:Cr(t)}};return Nn(e,e.maxWidth,t)}return null};wr.filterProps=["maxWidth"];const Rr=Gn({prop:"minWidth",transform:Cr}),_r=Gn({prop:"height",transform:Cr}),Ar=Gn({prop:"maxHeight",transform:Cr}),kr=Gn({prop:"minHeight",transform:Cr});Gn({prop:"size",cssProperty:"width",transform:Cr}),Gn({prop:"size",cssProperty:"height",transform:Cr});nr(Sr,wr,Rr,_r,Ar,kr,Gn({prop:"boxSizing"}));const Ir={border:{themeKey:"borders",transform:rr},borderTop:{themeKey:"borders",transform:rr},borderRight:{themeKey:"borders",transform:rr},borderBottom:{themeKey:"borders",transform:rr},borderLeft:{themeKey:"borders",transform:rr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gr},color:{themeKey:"palette",transform:Er},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Er},backgroundColor:{themeKey:"palette",transform:Er},p:{style:tr},pt:{style:tr},pr:{style:tr},pb:{style:tr},pl:{style:tr},px:{style:tr},py:{style:tr},padding:{style:tr},paddingTop:{style:tr},paddingRight:{style:tr},paddingBottom:{style:tr},paddingLeft:{style:tr},paddingX:{style:tr},paddingY:{style:tr},paddingInline:{style:tr},paddingInlineStart:{style:tr},paddingInlineEnd:{style:tr},paddingBlock:{style:tr},paddingBlockStart:{style:tr},paddingBlockEnd:{style:tr},m:{style:er},mt:{style:er},mr:{style:er},mb:{style:er},ml:{style:er},mx:{style:er},my:{style:er},margin:{style:er},marginTop:{style:er},marginRight:{style:er},marginBottom:{style:er},marginLeft:{style:er},marginX:{style:er},marginY:{style:er},marginInline:{style:er},marginInlineStart:{style:er},marginInlineEnd:{style:er},marginBlock:{style:er},marginBlockStart:{style:er},marginBlockEnd:{style:er},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:vr},rowGap:{style:xr},columnGap:{style:yr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Cr},maxWidth:{style:wr},minWidth:{transform:Cr},height:{transform:Cr},maxHeight:{transform:Cr},minHeight:{transform:Cr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Lr(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const d=Bn(n,s)||{};if(c)return c(o);return Nn(o,t,t=>{let n=Fn(d,l,t);return t===n&&"string"==typeof t&&(n=Fn(d,l,`${e}${"default"===t?"":zn(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:Ir;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(r).forEach(n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])c=Pn(c,e(n,o,i,s));else{const e=Nn({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?c=Pn(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=Pn(c,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":$n(l,c)}:$n(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const Tr=Lr();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:{}}Tr.filterProps=["sx"];const Pr=["breakpoints","palette","spacing","shape"];function Mr(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=G(e,Pr),s=Tn(n),l=function(e=8){if(e.mui)return e;const t=Xn({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(o);let c=kn({breakpoints:s,direction:"ltr",components:{},palette:F({mode:"light"},r),spacing:l,shape:F({},On,i)},a);return c.applyStyles=Or,c=t.reduce((e,t)=>kn(e,t),c),c.unstable_sxConfig=F({},Ir,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Tr({sx:e,theme:this})},c}var jr=Object.freeze({__proto__:null,default:Mr,private_createBreakpoints:Tn,unstable_applyStyles:Or});function Nr(e=null){const t=v.useContext(Mt);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const $r=Mr();function zr(e=$r){return Nr(e)}function Dr(e){const t=wn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Br({styles:e,themeId:t,defaultTheme:n={}}){const r=zr(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)),yn.jsx(En,{styles:i})}const Fr=["sx"];function Gr(e){const{sx:t}=e,n=G(e,Fr),{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:Ir;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 _n(n)?F({},r,n):r}:F({},r,t),F({},o,{sx:i})}var Hr=Object.freeze({__proto__:null,default:Tr,extendSxProp:Gr,unstable_createStyleFunctionSx:Lr,unstable_defaultSxConfig:Ir});const Ur=e=>e,Wr=(()=>{let e=Ur;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ur}}})();function Yr(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=Yr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Yr(e))&&(r&&(r+=" "),r+=t);return r}const qr=["className","component"];const Kr={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 Xr(e,t,n="Mui"){const r=Kr[t];return r?`${n}-${r}`:`${Wr.generate(e)}-${t}`}function Zr(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Xr(e,t,n)}),r}var Jr,Qr,eo={exports:{}},to={};function no(){if(Jr)return to;Jr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function f(h){if("object"==typeof h&&null!==h){var f=h.$$typeof;switch(f){case e:switch(h=h.type){case n:case o:case r:case l:case c:case p:return h;default:switch(h=h&&h.$$typeof){case a:case s:case u:case d:case i:return h;default:return f}}case t:return f}}}return to.ContextConsumer=i,to.ContextProvider=a,to.Element=e,to.ForwardRef=s,to.Fragment=n,to.Lazy=u,to.Memo=d,to.Portal=t,to.Profiler=o,to.StrictMode=r,to.Suspense=l,to.SuspenseList=c,to.isContextConsumer=function(e){return f(e)===i},to.isContextProvider=function(e){return f(e)===a},to.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},to.isForwardRef=function(e){return f(e)===s},to.isFragment=function(e){return f(e)===n},to.isLazy=function(e){return f(e)===u},to.isMemo=function(e){return f(e)===d},to.isPortal=function(e){return f(e)===t},to.isProfiler=function(e){return f(e)===o},to.isStrictMode=function(e){return f(e)===r},to.isSuspense=function(e){return f(e)===l},to.isSuspenseList=function(e){return f(e)===c},to.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===d||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===h||void 0!==e.getModuleId)},to.typeOf=f,to}function ro(){return Qr||(Qr=1,eo.exports=no()),eo.exports}var oo=ro();const io=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ao(e){const t=`${e}`.match(io);return t&&t[1]||""}function so(e,t=""){return e.displayName||e.name||ao(e)||t}function lo(e,t,n){const r=so(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var co=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return so(e,"Component");if("object"==typeof e)switch(e.$$typeof){case oo.ForwardRef:return lo(e,e.render,"ForwardRef");case oo.Memo:return lo(e,e.type,"memo");default:return}}},getFunctionName:ao});function uo(e,t){const n=F({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=F({},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]=F({},i),Object.keys(o).forEach(e=>{n[r][e]=uo(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}const po="undefined"!=typeof window?v.useLayoutEffect:v.useEffect;function ho(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var fo=Object.freeze({__proto__:null,default:ho});function mo(e){if(e.type)return e;if("#"===e.charAt(0))return mo(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 bo(e,t){return e=mo(e),t=function(e,t=0,n=1){return ho(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 go(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function vo(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function yo(e){return e&&e.ownerDocument||document}function xo(e){return yo(e).defaultView||window}function Eo(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Co=0;const So=v["useId".toString()];function wo(e){if(void 0!==So){return So()}return function(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{null==t&&(Co+=1,n(`mui-${Co}`))},[t]),r}(e)}function Ro(e){const t=v.useRef(e);return po(()=>{t.current=e}),v.useRef((...e)=>(0,t.current)(...e)).current}function _o(...e){return v.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{Eo(e,t)})},e)}const Ao={};const ko=[];class Io{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Io}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function Lo(){const e=function(e,t){const n=v.useRef(Ao);return n.current===Ao&&(n.current=e(t)),n}(Io.create).current;return function(e){v.useEffect(e,ko)}(e.disposeEffect),e}let To=!0,Oo=!1;const Po=new Io,Mo={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 jo(e){e.metaKey||e.altKey||e.ctrlKey||(To=!0)}function No(){To=!1}function $o(){"hidden"===this.visibilityState&&Oo&&(To=!0)}function zo(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return To||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Mo[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Do(){const e=v.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",jo,!0),t.addEventListener("mousedown",No,!0),t.addEventListener("pointerdown",No,!0),t.addEventListener("touchstart",No,!0),t.addEventListener("visibilitychange",$o,!0))},[]),t=v.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!zo(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Oo=!0,Po.start(100,()=>{Oo=!1}),t.current=!1,!0)},ref:e}}function Bo(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Fo;function Go(){if(Fo)return Fo;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),Fo="reverse",e.scrollLeft>0?Fo="default":(e.scrollLeft=1,0===e.scrollLeft&&(Fo="negative")),document.body.removeChild(e),Fo}function Ho(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(Go()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function Uo(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 Wo(e){return"string"==typeof e}function Yo(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 Vo(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 qo=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ko(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=G(e,qo),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Vr(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=F({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=F({},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=Yo(F({},o,r)),s=Vo(r),l=Vo(o),c=t(a),d=Vr(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),u=F({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=F({},c,n,l,s);return d.length>0&&(p.className=d),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:c.ref}}(F({},a,{externalSlotProps:s})),d=function(e,t,n){return void 0===e||Wo(e)?t:F({},t,{ownerState:F({},t.ownerState,n)})}(n,F({},l,{ref:_o(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return d}function Xo(e){var t;return parseInt(v.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Zo=v.createContext(null);function Jo(){return v.useContext(Zo)}var Qo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ei(e){const{children:t,theme:n}=e,r=Jo(),o=v.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return F({},e,t)}(r,n);return null!=e&&(e[Qo]=null!==r),e},[n,r]);return yn.jsx(Zo.Provider,{value:o,children:t})}const ti=["value"],ni=v.createContext();function ri(e){let{value:t}=e,n=G(e,ti);return yn.jsx(ni.Provider,F({value:null==t||t},n))}const oi=()=>{const e=v.useContext(ni);return null!=e&&e},ii=v.createContext(void 0);function ai({value:e,children:t}){return yn.jsx(ii.Provider,{value:e,children:t})}function si({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?uo(o.defaultProps,r):o.styleOverrides||o.variants?r:uo(o,r)}({props:e,name:t,theme:{components:v.useContext(ii)}})}const li={};function ci(e,t,n,r=!1){return v.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?F({},t,{[e]:i}):i;return r?()=>a:a}return F({},t,e?{[e]:n}:n)},[e,t,n,r])}function di(e){const{children:t,theme:n,themeId:r}=e,o=Nr(li),i=Jo()||li,a=ci(r,o,n),s=ci(r,i,n,!0),l="rtl"===a.direction,c=function(e){const t=Nr(),n=wo()||"",{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};`:"",po(()=>{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?yn.jsx(Br,{styles:o}):null}(a);return yn.jsx(ei,{theme:s,children:yn.jsx(Mt.Provider,{value:a,children:yn.jsx(ri,{value:l,children:yn.jsxs(ai,{value:null==a?void 0:a.components,children:[c,t]})})})})}var ui,pi={},hi={exports:{}};function fi(){return ui||(ui=1,(e=hi).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),hi.exports;var e}var mi,bi=N(D),gi=N(fo);function yi(){if(mi)return pi;mi=1;var e=fi();Object.defineProperty(pi,"__esModule",{value:!0}),pi.alpha=d,pi.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),l=i(t),c=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:c})},pi.colorChannel=void 0,pi.darken=u,pi.decomposeColor=i,pi.emphasize=h,pi.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},pi.getLuminance=c,pi.hexToRgb=o,pi.hslToRgb=l,pi.lighten=p,pi.private_safeAlpha=function(e,t,n){try{return d(e,t)}catch(t){return e}},pi.private_safeColorChannel=void 0,pi.private_safeDarken=function(e,t,n){try{return u(e,t)}catch(t){return e}},pi.private_safeEmphasize=function(e,t,n){try{return h(e,t)}catch(t){return e}},pi.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},pi.recomposeColor=s,pi.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(bi),n=e(gi);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(" ")};pi.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const d=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",d.push(t[3])),s({type:c,values:d})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function d(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function u(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function h(e,t=.15){return c(e)>.5?u(e,t):p(e,t)}return pi.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},pi}var xi=yi();const Ei={black:"#000",white:"#fff"},Ci={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"},Si="#f3e5f5",wi="#ce93d8",Ri="#ba68c8",_i="#ab47bc",Ai="#9c27b0",ki="#7b1fa2",Ii="#e57373",Li="#ef5350",Ti="#f44336",Oi="#d32f2f",Pi="#c62828",Mi="#ffb74d",ji="#ffa726",Ni="#ff9800",$i="#f57c00",zi="#e65100",Di="#e3f2fd",Bi="#90caf9",Fi="#42a5f5",Gi="#1976d2",Hi="#1565c0",Ui="#4fc3f7",Wi="#29b6f6",Yi="#03a9f4",Vi="#0288d1",qi="#01579b",Ki="#81c784",Xi="#66bb6a",Zi="#4caf50",Ji="#388e3c",Qi="#2e7d32",ea="#1b5e20",ta=["mode","contrastThreshold","tonalOffset"],na={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:Ei.white,default:Ei.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}},ra={text:{primary:Ei.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:Ei.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 oa(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=xi.lighten(e.main,o):"dark"===t&&(e.dark=xi.darken(e.main,i)))}function ia(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=G(e,ta),i=e.primary||function(e="light"){return"dark"===e?{main:Bi,light:Di,dark:Fi}:{main:Gi,light:Fi,dark:Hi}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:wi,light:Si,dark:_i}:{main:Ai,light:Ri,dark:ki}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Ti,light:Ii,dark:Oi}:{main:Oi,light:Li,dark:Pi}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Wi,light:Ui,dark:Vi}:{main:Vi,light:Yi,dark:qi}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Xi,light:Ki,dark:Ji}:{main:Qi,light:Zi,dark:ea}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:ji,light:Mi,dark:$i}:{main:"#ed6c02",light:Ni,dark:zi}}(t);function u(e){return xi.getContrastRatio(e,ra.text.primary)>=n?ra.text.primary:na.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=F({},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 oa(e,"light",o,r),oa(e,"dark",i,r),e.contrastText||(e.contrastText=u(e.main)),e},h={dark:ra,light:na};return kn(F({common:F({},Ei),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Ci,contrastThreshold:n,getContrastText:u,augmentColor:p,tonalOffset:r},h[t]),o)}const aa=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const sa={textTransform:"uppercase"},la='"Roboto", "Helvetica", "Arial", sans-serif';function ca(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=la,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=n,p=G(n,aa),h=o/14,f=u||(e=>e/c*h+"rem"),m=(e,t,n,o,i)=>{return F({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===la?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,d);var a},b={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,sa),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,sa),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kn(F({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},b),p,{clone:!1})}function da(...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 ua=["none",da(0,2,1,-1,0,1,1,0,0,1,3,0),da(0,3,1,-2,0,2,2,0,0,1,5,0),da(0,3,3,-2,0,3,4,0,0,1,8,0),da(0,2,4,-1,0,4,5,0,0,1,10,0),da(0,3,5,-1,0,5,8,0,0,1,14,0),da(0,3,5,-1,0,6,10,0,0,1,18,0),da(0,4,5,-2,0,7,10,1,0,2,16,1),da(0,5,5,-3,0,8,10,1,0,3,14,2),da(0,5,6,-3,0,9,12,1,0,3,16,2),da(0,6,6,-3,0,10,14,1,0,4,18,3),da(0,6,7,-4,0,11,15,1,0,4,20,3),da(0,7,8,-4,0,12,17,2,0,5,22,4),da(0,7,8,-4,0,13,19,2,0,5,24,4),da(0,7,9,-4,0,14,21,2,0,5,26,4),da(0,8,9,-5,0,15,22,2,0,6,28,5),da(0,8,10,-5,0,16,24,2,0,6,30,5),da(0,8,11,-5,0,17,26,2,0,6,32,5),da(0,9,11,-5,0,18,28,2,0,7,34,6),da(0,9,12,-6,0,19,29,2,0,7,36,6),da(0,10,13,-6,0,20,31,3,0,8,38,7),da(0,10,13,-6,0,21,33,3,0,8,40,7),da(0,10,14,-6,0,22,35,3,0,8,42,7),da(0,11,14,-7,0,23,36,3,0,9,44,8),da(0,11,15,-7,0,24,38,3,0,9,46,8)],pa=["duration","easing","delay"],ha={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)"},fa={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ma(e){return`${Math.round(e)}ms`}function ba(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ga(e){const t=F({},ha,e.easing),n=F({},fa,e.duration);return F({getAutoHeightDuration:ba,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return G(r,pa),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:ma(o)} ${i} ${"string"==typeof a?a:ma(a)}`).join(",")}},e,{easing:t,duration:n})}const va={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ya=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function xa(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=G(e,ya);if(e.vars&&void 0===e.generateCssVars)throw new Error(z(18));const s=ia(r),l=Mr(e);let c=kn(l,{mixins:(d=l.breakpoints,u=n,F({toolbar:{minHeight:56,[d.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[d.up("sm")]:{minHeight:64}}},u)),palette:s,shadows:ua.slice(),typography:ca(s,i),transitions:ga(o),zIndex:F({},va)});var d,u;return c=kn(c,a),c=t.reduce((e,t)=>kn(e,t),c),c.unstable_sxConfig=F({},Ir,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Tr({sx:e,theme:this})},c}const Ea=xa();function Ca(){const e=zr(Ea);return e[B]||e}var Sa,wa={},Ra={exports:{}};var _a,Aa={exports:{}};var ka,Ia=N(Rn),La=N(In),Ta=N(Dn),Oa=N(co),Pa=N(jr),Ma=N(Hr);function ja(){if(ka)return wa;ka=1;var e=fi();Object.defineProperty(wa,"__esModule",{value:!0}),wa.default=function(e={}){const{themeId:t,defaultTheme:a=f,rootShouldForwardProp:l=p,slotShouldForwardProp:c=p}=e,u=e=>(0,s.default)((0,n.default)({},e,{theme:b((0,n.default)({},e,{defaultTheme:a,themeId:t}))}));return u.__mui_systemSx=!0,(e,s={})=>{(0,o.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:h,slot:f,skipVariantsResolver:y,skipSx:x,overridesResolver:E=g(m(f))}=s,C=(0,r.default)(s,d),S=h&&h.startsWith("Mui")||f?"components":"custom",w=void 0!==y?y:f&&"Root"!==f&&"root"!==f||!1,R=x||!1;let _=p;"Root"===f||"root"===f?_=l:f?_=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(_=void 0);const A=(0,o.default)(e,(0,n.default)({shouldForwardProp:_,label:void 0},C)),k=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?r=>{const o=b({theme:r.theme,defaultTheme:a,themeId:t});return v(e,(0,n.default)({},r,{theme:o}),o.modularCssLayers?S:void 0)}:e,I=(r,...o)=>{let i=k(r);const s=o?o.map(k):[];h&&E&&s.push(e=>{const r=b((0,n.default)({},e,{defaultTheme:a,themeId:t}));if(!r.components||!r.components[h]||!r.components[h].styleOverrides)return null;const o=r.components[h].styleOverrides,i={};return Object.entries(o).forEach(([t,o])=>{i[t]=v(o,(0,n.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),E(e,i)}),h&&!w&&s.push(e=>{var r;const o=b((0,n.default)({},e,{defaultTheme:a,themeId:t}));return v({variants:null==o||null==(r=o.components)||null==(r=r[h])?void 0:r.variants},(0,n.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),R||s.push(u);const l=s.length-o.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const c=A(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return A.withConfig&&(I.withConfig=A.withConfig),I}},wa.shouldForwardProp=p,wa.systemDefaultTheme=void 0;var t,n=e((Sa||(Sa=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}(Ra)),Ra.exports)),r=e((_a||(_a=1,(t=Aa).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),Aa.exports)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Ia),i=La;e(Ta),e(Oa);var a=e(Pa),s=e(Ma);const l=["ownerState"],c=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function h(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=wa.systemDefaultTheme=(0,a.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function v(e,t,i){let{ownerState:a}=t,s=(0,r.default)(t,l);const d="function"==typeof e?e((0,n.default)({ownerState:a},s)):e;if(Array.isArray(d))return d.flatMap(e=>v(e,(0,n.default)({ownerState:a},s),i));if(d&&"object"==typeof d&&Array.isArray(d.variants)){const{variants:e=[]}=d;let t=(0,r.default)(d,c);return e.forEach(e=>{let r=!0;if("function"==typeof e.props?r=e.props((0,n.default)({ownerState:a},s,a)):Object.keys(e.props).forEach(t=>{(null==a?void 0:a[t])!==e.props[t]&&s[t]!==e.props[t]&&(r=!1)}),r){Array.isArray(t)||(t=[t]);const r="function"==typeof e.style?e.style((0,n.default)({ownerState:a},s,a)):e.style;t.push(i?h((0,o.internal_serializeStyles)(r),i):r)}}),t}return i?h((0,o.internal_serializeStyles)(d),i):d}return wa}const Na=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,$a=j(ja())({themeId:B,defaultTheme:Ea,rootShouldForwardProp:Na}),za=["theme"];function Da(e){let{theme:t}=e,n=G(e,za);const r=t[B];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=F({},r,{vars:null}):t&&!t.vars&&(o=F({},t,{vars:null}))),yn.jsx(di,F({},n,{themeId:r?B:void 0,theme:o}))}const Ba=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Fa={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)"},Ga=12,Ha=14,Ua=16,Wa=24,Ya=3,Va=300,qa=400,Ka=600,Xa=700,Za={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Ja(e){return si(e)}function Qa(e){return Xr("MuiSvgIcon",e)}Zr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const es=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ts=$a("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${zn(n.color)}`],t[`fontSize${zn(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,d,u,p,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(u=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?u:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}}),ns=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:u="0 0 24 24"}=n,p=G(n,es),h=v.isValidElement(r)&&"svg"===r.type,f=F({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:u,hasSvgAsChild:h}),m={};c||(m.viewBox=u);const b=(e=>{const{color:t,fontSize:n,classes:r}=e;return Uo({root:["root","inherit"!==t&&`color${zn(t)}`,`fontSize${zn(n)}`]},Qa,r)})(f);return yn.jsxs(ts,F({as:a,className:Vr(b.root,o),focusable:"false",color:l,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},m,p,h&&r.props,{ownerState:f,children:[h?r.props.children:r,d?yn.jsx("title",{children:d}):null]}))});function rs(e,t){function n(n,r){return yn.jsx(ns,F({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=ns.muiName,v.memo(v.forwardRef(n))}function os(e,t){return os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},os(e,t)}function is(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,os(e,t)}ns.muiName="SvgIcon";var as=!1,ss=y.createContext(null),ls="unmounted",cs="exited",ds="entering",us="entered",ps="exiting",hs=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=cs,r.appearStatus=ds):o=us:o=t.unmountOnExit||t.mountOnEnter?ls:cs,r.state={status:o},r.nextCallback=null,r}is(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ls?{status:cs}: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!==ds&&n!==us&&(t=ds):n!==ds&&n!==us||(t=ps)}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===ds){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:T.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===cs&&this.setState({status:ls})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[T.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||as?this.safeSetState({status:us},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:ds},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:us},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:T.findDOMNode(this);t&&!as?(this.props.onExit(r),this.safeSetState({status:ps},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:cs},function(){e.props.onExited(r)})})})):this.safeSetState({status:cs},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:T.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===ls)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=G(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(ss.Provider,{value:null},"function"==typeof n?n(e,r):y.cloneElement(y.Children.only(n),r))},t}(y.Component);function fs(){}function ms(e,t){var n=Object.create(null);return e&&w.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&C(e)?t(e):e}(e)}),n}function bs(e,t,n){return null!=n[t]?n[t]:e.props[t]}function gs(e,t,n){var r=ms(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(C(a)){var s=i in t,l=i in r,c=t[i],d=C(c)&&!c.props.in;!l||s&&!d?l||!s||d?l&&s&&C(c)&&(o[i]=S(a,{onExited:n.bind(null,a),in:c.props.in,exit:bs(a,"exit",e),enter:bs(a,"enter",e)})):o[i]=S(a,{in:!1}):o[i]=S(a,{onExited:n.bind(null,a),in:!0,exit:bs(a,"exit",e),enter:bs(a,"enter",e)})}}),o}hs.contextType=ss,hs.propTypes={},hs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fs,onEntering:fs,onEntered:fs,onExit:fs,onExiting:fs,onExited:fs},hs.UNMOUNTED=ls,hs.EXITED=cs,hs.ENTERING=ds,hs.ENTERED=us,hs.EXITING=ps;var vs=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ys=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}is(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,ms(n.children,function(e){return S(e,{onExited:r.bind(null,e),in:!0,appear:bs(e,"appear",n),enter:bs(e,"enter",n),exit:bs(e,"exit",n)})})):gs(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=ms(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=F({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=G(e,["component","childFactory"]),o=this.state.contextValue,i=vs(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?y.createElement(ss.Provider,{value:o},i):y.createElement(ss.Provider,{value:o},y.createElement(t,r,i))},t}(y.Component);ys.propTypes={},ys.defaultProps={component:"div",childFactory:function(e){return e}};const xs=e=>e.scrollTop;function Es(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 Cs(e){return Xr("MuiPaper",e)}Zr("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 Ss=["className","component","elevation","square","variant"],ws=$a("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 F({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&&F({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${xi.alpha("#fff",Ba(t.elevation))}, ${xi.alpha("#fff",Ba(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),Rs=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=G(n,Ss),c=F({},n,{component:o,elevation:i,square:a,variant:s}),d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Uo({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Cs,o)})(c);return yn.jsx(ws,F({as:o,ownerState:c,className:Vr(d.root,r),ref:t},l))});const _s=Zr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),As=["center","classes","className"];let ks,Is,Ls,Ts,Os=e=>e;const Ps=Jt(ks||(ks=Os`
14
+ */function Cn(e,t){return fn(e,t)}const Sn=[];function wn(e){return Sn[0]=e,kt(Sn)}var Rn=Object.freeze({__proto__:null,GlobalStyles:En,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=v.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&xn.has(e))return xn.get(e);const r=function(e,t){const n=tt({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 xn.set(e,r),r},[t,n]);return t||n?yn.jsx(Ot,{value:o,children:r}):r},ThemeContext:Mt,css:Zt,default:Cn,internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:wn,keyframes:Jt});function _n(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 kn(e){if(v.isValidElement(e)||!_n(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=kn(e[n])}),t}function An(e,t,n={clone:!0}){const r=n.clone?F({},e):e;return _n(e)&&_n(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])?r[o]=t[o]:_n(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&_n(e[o])?r[o]=An(e[o],t[o],n):n.clone?r[o]=_n(t[o])?kn(t[o]):t[o]:r[o]=t[o]}),r}var In=Object.freeze({__proto__:null,default:An,isPlainObject:_n});const Ln=["values","unit","step"];function Tn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=G(e,Ln),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)=>F({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return F({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const On={borderRadius:4};function Pn(e,t){return t?An(e,t,{clone:!1}):e}const Mn={xs:0,sm:600,md:900,lg:1200,xl:1536},jn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Mn[e]}px)`};function Nn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||jn;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||jn;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||Mn).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function $n(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function zn(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:zn});function Bn(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 Fn(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Bn(e,n)||r,t&&(o=t(o,r,e)),o}function Gn(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=Bn(e.theme,r)||{};return Nn(e,i,e=>{let r=Fn(a,o,e);return e===r&&"string"==typeof e&&(r=Fn(a,o,`${t}${"default"===e?"":zn(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const Hn={m:"margin",p:"padding"},Un={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Wn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Yn=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Wn[e])return[e];e=Wn[e]}const[t,n]=e.split(""),r=Hn[t],o=Un[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),Vn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],qn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Kn(e,t,n,r){var o;const i=null!=(o=Bn(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 Xn(e){return Kn(e,"spacing",8)}function Zn(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 Jn(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Zn(t,n),e),{})}(Yn(n),r);return Nn(e,e[n],o)}function Qn(e,t){const n=Xn(e.theme);return Object.keys(e).map(r=>Jn(e,t,r,n)).reduce(Pn,{})}function er(e){return Qn(e,Vn)}function tr(e){return Qn(e,qn)}function nr(...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]?Pn(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function rr(e){return"number"!=typeof e?e:`${e}px solid`}function or(e,t){return Gn({prop:e,themeKey:"borders",transform:t})}er.propTypes={},er.filterProps=Vn,tr.propTypes={},tr.filterProps=qn;const ir=or("border",rr),ar=or("borderTop",rr),sr=or("borderRight",rr),lr=or("borderBottom",rr),cr=or("borderLeft",rr),dr=or("borderColor"),ur=or("borderTopColor"),pr=or("borderRightColor"),hr=or("borderBottomColor"),fr=or("borderLeftColor"),mr=or("outline",rr),br=or("outlineColor"),gr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Kn(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Zn(t,e)});return Nn(e,e.borderRadius,n)}return null};gr.propTypes={},gr.filterProps=["borderRadius"],nr(ir,ar,sr,lr,cr,dr,ur,pr,hr,fr,gr,mr,br);const vr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Kn(e.theme,"spacing",8),n=e=>({gap:Zn(t,e)});return Nn(e,e.gap,n)}return null};vr.propTypes={},vr.filterProps=["gap"];const yr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Kn(e.theme,"spacing",8),n=e=>({columnGap:Zn(t,e)});return Nn(e,e.columnGap,n)}return null};yr.propTypes={},yr.filterProps=["columnGap"];const xr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Kn(e.theme,"spacing",8),n=e=>({rowGap:Zn(t,e)});return Nn(e,e.rowGap,n)}return null};xr.propTypes={},xr.filterProps=["rowGap"];function Er(e,t){return"grey"===t?t:e}nr(vr,yr,xr,Gn({prop:"gridColumn"}),Gn({prop:"gridRow"}),Gn({prop:"gridAutoFlow"}),Gn({prop:"gridAutoColumns"}),Gn({prop:"gridAutoRows"}),Gn({prop:"gridTemplateColumns"}),Gn({prop:"gridTemplateRows"}),Gn({prop:"gridTemplateAreas"}),Gn({prop:"gridArea"}));function Cr(e){return e<=1&&0!==e?100*e+"%":e}nr(Gn({prop:"color",themeKey:"palette",transform:Er}),Gn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Er}),Gn({prop:"backgroundColor",themeKey:"palette",transform:Er}));const Sr=Gn({prop:"width",transform:Cr}),wr=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])||Mn[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:Cr(t)}};return Nn(e,e.maxWidth,t)}return null};wr.filterProps=["maxWidth"];const Rr=Gn({prop:"minWidth",transform:Cr}),_r=Gn({prop:"height",transform:Cr}),kr=Gn({prop:"maxHeight",transform:Cr}),Ar=Gn({prop:"minHeight",transform:Cr});Gn({prop:"size",cssProperty:"width",transform:Cr}),Gn({prop:"size",cssProperty:"height",transform:Cr});nr(Sr,wr,Rr,_r,kr,Ar,Gn({prop:"boxSizing"}));const Ir={border:{themeKey:"borders",transform:rr},borderTop:{themeKey:"borders",transform:rr},borderRight:{themeKey:"borders",transform:rr},borderBottom:{themeKey:"borders",transform:rr},borderLeft:{themeKey:"borders",transform:rr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gr},color:{themeKey:"palette",transform:Er},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Er},backgroundColor:{themeKey:"palette",transform:Er},p:{style:tr},pt:{style:tr},pr:{style:tr},pb:{style:tr},pl:{style:tr},px:{style:tr},py:{style:tr},padding:{style:tr},paddingTop:{style:tr},paddingRight:{style:tr},paddingBottom:{style:tr},paddingLeft:{style:tr},paddingX:{style:tr},paddingY:{style:tr},paddingInline:{style:tr},paddingInlineStart:{style:tr},paddingInlineEnd:{style:tr},paddingBlock:{style:tr},paddingBlockStart:{style:tr},paddingBlockEnd:{style:tr},m:{style:er},mt:{style:er},mr:{style:er},mb:{style:er},ml:{style:er},mx:{style:er},my:{style:er},margin:{style:er},marginTop:{style:er},marginRight:{style:er},marginBottom:{style:er},marginLeft:{style:er},marginX:{style:er},marginY:{style:er},marginInline:{style:er},marginInlineStart:{style:er},marginInlineEnd:{style:er},marginBlock:{style:er},marginBlockStart:{style:er},marginBlockEnd:{style:er},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:vr},rowGap:{style:xr},columnGap:{style:yr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Cr},maxWidth:{style:wr},minWidth:{transform:Cr},height:{transform:Cr},maxHeight:{transform:Cr},minHeight:{transform:Cr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Lr(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const d=Bn(n,s)||{};if(c)return c(o);return Nn(o,t,t=>{let n=Fn(d,l,t);return t===n&&"string"==typeof t&&(n=Fn(d,l,`${e}${"default"===t?"":zn(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:Ir;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(r).forEach(n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])c=Pn(c,e(n,o,i,s));else{const e=Nn({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?c=Pn(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=Pn(c,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":$n(l,c)}:$n(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const Tr=Lr();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:{}}Tr.filterProps=["sx"];const Pr=["breakpoints","palette","spacing","shape"];function Mr(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=G(e,Pr),s=Tn(n),l=function(e=8){if(e.mui)return e;const t=Xn({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(o);let c=An({breakpoints:s,direction:"ltr",components:{},palette:F({mode:"light"},r),spacing:l,shape:F({},On,i)},a);return c.applyStyles=Or,c=t.reduce((e,t)=>An(e,t),c),c.unstable_sxConfig=F({},Ir,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Tr({sx:e,theme:this})},c}var jr=Object.freeze({__proto__:null,default:Mr,private_createBreakpoints:Tn,unstable_applyStyles:Or});function Nr(e=null){const t=v.useContext(Mt);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const $r=Mr();function zr(e=$r){return Nr(e)}function Dr(e){const t=wn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Br({styles:e,themeId:t,defaultTheme:n={}}){const r=zr(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)),yn.jsx(En,{styles:i})}const Fr=["sx"];function Gr(e){const{sx:t}=e,n=G(e,Fr),{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:Ir;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 _n(n)?F({},r,n):r}:F({},r,t),F({},o,{sx:i})}var Hr=Object.freeze({__proto__:null,default:Tr,extendSxProp:Gr,unstable_createStyleFunctionSx:Lr,unstable_defaultSxConfig:Ir});const Ur=e=>e,Wr=(()=>{let e=Ur;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ur}}})();function Yr(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=Yr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Yr(e))&&(r&&(r+=" "),r+=t);return r}const qr=["className","component"];const Kr={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 Xr(e,t,n="Mui"){const r=Kr[t];return r?`${n}-${r}`:`${Wr.generate(e)}-${t}`}function Zr(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Xr(e,t,n)}),r}var Jr,Qr,eo={exports:{}},to={};function no(){if(Jr)return to;Jr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function f(h){if("object"==typeof h&&null!==h){var f=h.$$typeof;switch(f){case e:switch(h=h.type){case n:case o:case r:case l:case c:case p:return h;default:switch(h=h&&h.$$typeof){case a:case s:case u:case d:case i:return h;default:return f}}case t:return f}}}return to.ContextConsumer=i,to.ContextProvider=a,to.Element=e,to.ForwardRef=s,to.Fragment=n,to.Lazy=u,to.Memo=d,to.Portal=t,to.Profiler=o,to.StrictMode=r,to.Suspense=l,to.SuspenseList=c,to.isContextConsumer=function(e){return f(e)===i},to.isContextProvider=function(e){return f(e)===a},to.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},to.isForwardRef=function(e){return f(e)===s},to.isFragment=function(e){return f(e)===n},to.isLazy=function(e){return f(e)===u},to.isMemo=function(e){return f(e)===d},to.isPortal=function(e){return f(e)===t},to.isProfiler=function(e){return f(e)===o},to.isStrictMode=function(e){return f(e)===r},to.isSuspense=function(e){return f(e)===l},to.isSuspenseList=function(e){return f(e)===c},to.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===d||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===h||void 0!==e.getModuleId)},to.typeOf=f,to}function ro(){return Qr||(Qr=1,eo.exports=no()),eo.exports}var oo=ro();const io=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ao(e){const t=`${e}`.match(io);return t&&t[1]||""}function so(e,t=""){return e.displayName||e.name||ao(e)||t}function lo(e,t,n){const r=so(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var co=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return so(e,"Component");if("object"==typeof e)switch(e.$$typeof){case oo.ForwardRef:return lo(e,e.render,"ForwardRef");case oo.Memo:return lo(e,e.type,"memo");default:return}}},getFunctionName:ao});function uo(e,t){const n=F({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=F({},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]=F({},i),Object.keys(o).forEach(e=>{n[r][e]=uo(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}const po="undefined"!=typeof window?v.useLayoutEffect:v.useEffect;function ho(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var fo=Object.freeze({__proto__:null,default:ho});function mo(e){if(e.type)return e;if("#"===e.charAt(0))return mo(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 bo(e,t){return e=mo(e),t=function(e,t=0,n=1){return ho(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 go(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function vo(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function yo(e){return e&&e.ownerDocument||document}function xo(e){return yo(e).defaultView||window}function Eo(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Co=0;const So=v["useId".toString()];function wo(e){if(void 0!==So){return So()}return function(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{null==t&&(Co+=1,n(`mui-${Co}`))},[t]),r}(e)}function Ro(e){const t=v.useRef(e);return po(()=>{t.current=e}),v.useRef((...e)=>(0,t.current)(...e)).current}function _o(...e){return v.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{Eo(e,t)})},e)}const ko={};const Ao=[];class Io{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Io}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function Lo(){const e=function(e,t){const n=v.useRef(ko);return n.current===ko&&(n.current=e(t)),n}(Io.create).current;return function(e){v.useEffect(e,Ao)}(e.disposeEffect),e}let To=!0,Oo=!1;const Po=new Io,Mo={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 jo(e){e.metaKey||e.altKey||e.ctrlKey||(To=!0)}function No(){To=!1}function $o(){"hidden"===this.visibilityState&&Oo&&(To=!0)}function zo(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return To||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Mo[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Do(){const e=v.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",jo,!0),t.addEventListener("mousedown",No,!0),t.addEventListener("pointerdown",No,!0),t.addEventListener("touchstart",No,!0),t.addEventListener("visibilitychange",$o,!0))},[]),t=v.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!zo(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Oo=!0,Po.start(100,()=>{Oo=!1}),t.current=!1,!0)},ref:e}}function Bo(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Fo;function Go(){if(Fo)return Fo;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),Fo="reverse",e.scrollLeft>0?Fo="default":(e.scrollLeft=1,0===e.scrollLeft&&(Fo="negative")),document.body.removeChild(e),Fo}function Ho(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(Go()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function Uo(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 Wo(e){return"string"==typeof e}function Yo(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 Vo(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 qo=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ko(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=G(e,qo),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Vr(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=F({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=F({},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=Yo(F({},o,r)),s=Vo(r),l=Vo(o),c=t(a),d=Vr(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),u=F({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=F({},c,n,l,s);return d.length>0&&(p.className=d),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:c.ref}}(F({},a,{externalSlotProps:s})),d=function(e,t,n){return void 0===e||Wo(e)?t:F({},t,{ownerState:F({},t.ownerState,n)})}(n,F({},l,{ref:_o(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return d}function Xo(e){var t;return parseInt(v.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Zo=v.createContext(null);function Jo(){return v.useContext(Zo)}var Qo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ei(e){const{children:t,theme:n}=e,r=Jo(),o=v.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return F({},e,t)}(r,n);return null!=e&&(e[Qo]=null!==r),e},[n,r]);return yn.jsx(Zo.Provider,{value:o,children:t})}const ti=["value"],ni=v.createContext();function ri(e){let{value:t}=e,n=G(e,ti);return yn.jsx(ni.Provider,F({value:null==t||t},n))}const oi=()=>{const e=v.useContext(ni);return null!=e&&e},ii=v.createContext(void 0);function ai({value:e,children:t}){return yn.jsx(ii.Provider,{value:e,children:t})}function si({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?uo(o.defaultProps,r):o.styleOverrides||o.variants?r:uo(o,r)}({props:e,name:t,theme:{components:v.useContext(ii)}})}const li={};function ci(e,t,n,r=!1){return v.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?F({},t,{[e]:i}):i;return r?()=>a:a}return F({},t,e?{[e]:n}:n)},[e,t,n,r])}function di(e){const{children:t,theme:n,themeId:r}=e,o=Nr(li),i=Jo()||li,a=ci(r,o,n),s=ci(r,i,n,!0),l="rtl"===a.direction,c=function(e){const t=Nr(),n=wo()||"",{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};`:"",po(()=>{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?yn.jsx(Br,{styles:o}):null}(a);return yn.jsx(ei,{theme:s,children:yn.jsx(Mt.Provider,{value:a,children:yn.jsx(ri,{value:l,children:yn.jsxs(ai,{value:null==a?void 0:a.components,children:[c,t]})})})})}var ui,pi={},hi={exports:{}};function fi(){return ui||(ui=1,(e=hi).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),hi.exports;var e}var mi,bi=N(D),gi=N(fo);function yi(){if(mi)return pi;mi=1;var e=fi();Object.defineProperty(pi,"__esModule",{value:!0}),pi.alpha=d,pi.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),l=i(t),c=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:c})},pi.colorChannel=void 0,pi.darken=u,pi.decomposeColor=i,pi.emphasize=h,pi.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},pi.getLuminance=c,pi.hexToRgb=o,pi.hslToRgb=l,pi.lighten=p,pi.private_safeAlpha=function(e,t,n){try{return d(e,t)}catch(t){return e}},pi.private_safeColorChannel=void 0,pi.private_safeDarken=function(e,t,n){try{return u(e,t)}catch(t){return e}},pi.private_safeEmphasize=function(e,t,n){try{return h(e,t)}catch(t){return e}},pi.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},pi.recomposeColor=s,pi.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(bi),n=e(gi);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(" ")};pi.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const d=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",d.push(t[3])),s({type:c,values:d})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function d(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function u(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function h(e,t=.15){return c(e)>.5?u(e,t):p(e,t)}return pi.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},pi}var xi=yi();const Ei={black:"#000",white:"#fff"},Ci={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"},Si="#f3e5f5",wi="#ce93d8",Ri="#ba68c8",_i="#ab47bc",ki="#9c27b0",Ai="#7b1fa2",Ii="#e57373",Li="#ef5350",Ti="#f44336",Oi="#d32f2f",Pi="#c62828",Mi="#ffb74d",ji="#ffa726",Ni="#ff9800",$i="#f57c00",zi="#e65100",Di="#e3f2fd",Bi="#90caf9",Fi="#42a5f5",Gi="#1976d2",Hi="#1565c0",Ui="#4fc3f7",Wi="#29b6f6",Yi="#03a9f4",Vi="#0288d1",qi="#01579b",Ki="#81c784",Xi="#66bb6a",Zi="#4caf50",Ji="#388e3c",Qi="#2e7d32",ea="#1b5e20",ta=["mode","contrastThreshold","tonalOffset"],na={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:Ei.white,default:Ei.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}},ra={text:{primary:Ei.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:Ei.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 oa(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=xi.lighten(e.main,o):"dark"===t&&(e.dark=xi.darken(e.main,i)))}function ia(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=G(e,ta),i=e.primary||function(e="light"){return"dark"===e?{main:Bi,light:Di,dark:Fi}:{main:Gi,light:Fi,dark:Hi}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:wi,light:Si,dark:_i}:{main:ki,light:Ri,dark:Ai}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Ti,light:Ii,dark:Oi}:{main:Oi,light:Li,dark:Pi}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Wi,light:Ui,dark:Vi}:{main:Vi,light:Yi,dark:qi}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Xi,light:Ki,dark:Ji}:{main:Qi,light:Zi,dark:ea}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:ji,light:Mi,dark:$i}:{main:"#ed6c02",light:Ni,dark:zi}}(t);function u(e){return xi.getContrastRatio(e,ra.text.primary)>=n?ra.text.primary:na.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=F({},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 oa(e,"light",o,r),oa(e,"dark",i,r),e.contrastText||(e.contrastText=u(e.main)),e},h={dark:ra,light:na};return An(F({common:F({},Ei),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Ci,contrastThreshold:n,getContrastText:u,augmentColor:p,tonalOffset:r},h[t]),o)}const aa=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const sa={textTransform:"uppercase"},la='"Roboto", "Helvetica", "Arial", sans-serif';function ca(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=la,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=n,p=G(n,aa),h=o/14,f=u||(e=>e/c*h+"rem"),m=(e,t,n,o,i)=>{return F({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===la?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,d);var a},b={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,sa),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,sa),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return An(F({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},b),p,{clone:!1})}function da(...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 ua=["none",da(0,2,1,-1,0,1,1,0,0,1,3,0),da(0,3,1,-2,0,2,2,0,0,1,5,0),da(0,3,3,-2,0,3,4,0,0,1,8,0),da(0,2,4,-1,0,4,5,0,0,1,10,0),da(0,3,5,-1,0,5,8,0,0,1,14,0),da(0,3,5,-1,0,6,10,0,0,1,18,0),da(0,4,5,-2,0,7,10,1,0,2,16,1),da(0,5,5,-3,0,8,10,1,0,3,14,2),da(0,5,6,-3,0,9,12,1,0,3,16,2),da(0,6,6,-3,0,10,14,1,0,4,18,3),da(0,6,7,-4,0,11,15,1,0,4,20,3),da(0,7,8,-4,0,12,17,2,0,5,22,4),da(0,7,8,-4,0,13,19,2,0,5,24,4),da(0,7,9,-4,0,14,21,2,0,5,26,4),da(0,8,9,-5,0,15,22,2,0,6,28,5),da(0,8,10,-5,0,16,24,2,0,6,30,5),da(0,8,11,-5,0,17,26,2,0,6,32,5),da(0,9,11,-5,0,18,28,2,0,7,34,6),da(0,9,12,-6,0,19,29,2,0,7,36,6),da(0,10,13,-6,0,20,31,3,0,8,38,7),da(0,10,13,-6,0,21,33,3,0,8,40,7),da(0,10,14,-6,0,22,35,3,0,8,42,7),da(0,11,14,-7,0,23,36,3,0,9,44,8),da(0,11,15,-7,0,24,38,3,0,9,46,8)],pa=["duration","easing","delay"],ha={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)"},fa={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ma(e){return`${Math.round(e)}ms`}function ba(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ga(e){const t=F({},ha,e.easing),n=F({},fa,e.duration);return F({getAutoHeightDuration:ba,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return G(r,pa),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:ma(o)} ${i} ${"string"==typeof a?a:ma(a)}`).join(",")}},e,{easing:t,duration:n})}const va={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ya=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function xa(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=G(e,ya);if(e.vars&&void 0===e.generateCssVars)throw new Error(z(18));const s=ia(r),l=Mr(e);let c=An(l,{mixins:(d=l.breakpoints,u=n,F({toolbar:{minHeight:56,[d.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[d.up("sm")]:{minHeight:64}}},u)),palette:s,shadows:ua.slice(),typography:ca(s,i),transitions:ga(o),zIndex:F({},va)});var d,u;return c=An(c,a),c=t.reduce((e,t)=>An(e,t),c),c.unstable_sxConfig=F({},Ir,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Tr({sx:e,theme:this})},c}const Ea=xa();function Ca(){const e=zr(Ea);return e[B]||e}var Sa,wa={},Ra={exports:{}};var _a,ka={exports:{}};var Aa,Ia=N(Rn),La=N(In),Ta=N(Dn),Oa=N(co),Pa=N(jr),Ma=N(Hr);function ja(){if(Aa)return wa;Aa=1;var e=fi();Object.defineProperty(wa,"__esModule",{value:!0}),wa.default=function(e={}){const{themeId:t,defaultTheme:a=f,rootShouldForwardProp:l=p,slotShouldForwardProp:c=p}=e,u=e=>(0,s.default)((0,n.default)({},e,{theme:b((0,n.default)({},e,{defaultTheme:a,themeId:t}))}));return u.__mui_systemSx=!0,(e,s={})=>{(0,o.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:h,slot:f,skipVariantsResolver:y,skipSx:x,overridesResolver:E=g(m(f))}=s,C=(0,r.default)(s,d),S=h&&h.startsWith("Mui")||f?"components":"custom",w=void 0!==y?y:f&&"Root"!==f&&"root"!==f||!1,R=x||!1;let _=p;"Root"===f||"root"===f?_=l:f?_=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(_=void 0);const k=(0,o.default)(e,(0,n.default)({shouldForwardProp:_,label:void 0},C)),A=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?r=>{const o=b({theme:r.theme,defaultTheme:a,themeId:t});return v(e,(0,n.default)({},r,{theme:o}),o.modularCssLayers?S:void 0)}:e,I=(r,...o)=>{let i=A(r);const s=o?o.map(A):[];h&&E&&s.push(e=>{const r=b((0,n.default)({},e,{defaultTheme:a,themeId:t}));if(!r.components||!r.components[h]||!r.components[h].styleOverrides)return null;const o=r.components[h].styleOverrides,i={};return Object.entries(o).forEach(([t,o])=>{i[t]=v(o,(0,n.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),E(e,i)}),h&&!w&&s.push(e=>{var r;const o=b((0,n.default)({},e,{defaultTheme:a,themeId:t}));return v({variants:null==o||null==(r=o.components)||null==(r=r[h])?void 0:r.variants},(0,n.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),R||s.push(u);const l=s.length-o.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const c=k(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return k.withConfig&&(I.withConfig=k.withConfig),I}},wa.shouldForwardProp=p,wa.systemDefaultTheme=void 0;var t,n=e((Sa||(Sa=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}(Ra)),Ra.exports)),r=e((_a||(_a=1,(t=ka).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),ka.exports)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Ia),i=La;e(Ta),e(Oa);var a=e(Pa),s=e(Ma);const l=["ownerState"],c=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function h(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=wa.systemDefaultTheme=(0,a.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function v(e,t,i){let{ownerState:a}=t,s=(0,r.default)(t,l);const d="function"==typeof e?e((0,n.default)({ownerState:a},s)):e;if(Array.isArray(d))return d.flatMap(e=>v(e,(0,n.default)({ownerState:a},s),i));if(d&&"object"==typeof d&&Array.isArray(d.variants)){const{variants:e=[]}=d;let t=(0,r.default)(d,c);return e.forEach(e=>{let r=!0;if("function"==typeof e.props?r=e.props((0,n.default)({ownerState:a},s,a)):Object.keys(e.props).forEach(t=>{(null==a?void 0:a[t])!==e.props[t]&&s[t]!==e.props[t]&&(r=!1)}),r){Array.isArray(t)||(t=[t]);const r="function"==typeof e.style?e.style((0,n.default)({ownerState:a},s,a)):e.style;t.push(i?h((0,o.internal_serializeStyles)(r),i):r)}}),t}return i?h((0,o.internal_serializeStyles)(d),i):d}return wa}const Na=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,$a=j(ja())({themeId:B,defaultTheme:Ea,rootShouldForwardProp:Na}),za=["theme"];function Da(e){let{theme:t}=e,n=G(e,za);const r=t[B];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=F({},r,{vars:null}):t&&!t.vars&&(o=F({},t,{vars:null}))),yn.jsx(di,F({},n,{themeId:r?B:void 0,theme:o}))}const Ba=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Fa={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)"},Ga=12,Ha=14,Ua=16,Wa=24,Ya=3,Va=300,qa=400,Ka=600,Xa=700,Za={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Ja(e){return si(e)}function Qa(e){return Xr("MuiSvgIcon",e)}Zr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const es=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ts=$a("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${zn(n.color)}`],t[`fontSize${zn(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,d,u,p,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(u=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?u:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}}),ns=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:u="0 0 24 24"}=n,p=G(n,es),h=v.isValidElement(r)&&"svg"===r.type,f=F({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:u,hasSvgAsChild:h}),m={};c||(m.viewBox=u);const b=(e=>{const{color:t,fontSize:n,classes:r}=e;return Uo({root:["root","inherit"!==t&&`color${zn(t)}`,`fontSize${zn(n)}`]},Qa,r)})(f);return yn.jsxs(ts,F({as:a,className:Vr(b.root,o),focusable:"false",color:l,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},m,p,h&&r.props,{ownerState:f,children:[h?r.props.children:r,d?yn.jsx("title",{children:d}):null]}))});function rs(e,t){function n(n,r){return yn.jsx(ns,F({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=ns.muiName,v.memo(v.forwardRef(n))}function os(e,t){return os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},os(e,t)}function is(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,os(e,t)}ns.muiName="SvgIcon";var as=!1,ss=y.createContext(null),ls="unmounted",cs="exited",ds="entering",us="entered",ps="exiting",hs=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=cs,r.appearStatus=ds):o=us:o=t.unmountOnExit||t.mountOnEnter?ls:cs,r.state={status:o},r.nextCallback=null,r}is(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ls?{status:cs}: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!==ds&&n!==us&&(t=ds):n!==ds&&n!==us||(t=ps)}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===ds){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:T.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===cs&&this.setState({status:ls})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[T.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||as?this.safeSetState({status:us},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:ds},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:us},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:T.findDOMNode(this);t&&!as?(this.props.onExit(r),this.safeSetState({status:ps},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:cs},function(){e.props.onExited(r)})})})):this.safeSetState({status:cs},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:T.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===ls)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=G(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(ss.Provider,{value:null},"function"==typeof n?n(e,r):y.cloneElement(y.Children.only(n),r))},t}(y.Component);function fs(){}function ms(e,t){var n=Object.create(null);return e&&w.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&C(e)?t(e):e}(e)}),n}function bs(e,t,n){return null!=n[t]?n[t]:e.props[t]}function gs(e,t,n){var r=ms(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(C(a)){var s=i in t,l=i in r,c=t[i],d=C(c)&&!c.props.in;!l||s&&!d?l||!s||d?l&&s&&C(c)&&(o[i]=S(a,{onExited:n.bind(null,a),in:c.props.in,exit:bs(a,"exit",e),enter:bs(a,"enter",e)})):o[i]=S(a,{in:!1}):o[i]=S(a,{onExited:n.bind(null,a),in:!0,exit:bs(a,"exit",e),enter:bs(a,"enter",e)})}}),o}hs.contextType=ss,hs.propTypes={},hs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fs,onEntering:fs,onEntered:fs,onExit:fs,onExiting:fs,onExited:fs},hs.UNMOUNTED=ls,hs.EXITED=cs,hs.ENTERING=ds,hs.ENTERED=us,hs.EXITING=ps;var vs=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ys=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}is(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,ms(n.children,function(e){return S(e,{onExited:r.bind(null,e),in:!0,appear:bs(e,"appear",n),enter:bs(e,"enter",n),exit:bs(e,"exit",n)})})):gs(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=ms(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=F({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=G(e,["component","childFactory"]),o=this.state.contextValue,i=vs(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?y.createElement(ss.Provider,{value:o},i):y.createElement(ss.Provider,{value:o},y.createElement(t,r,i))},t}(y.Component);ys.propTypes={},ys.defaultProps={component:"div",childFactory:function(e){return e}};const xs=e=>e.scrollTop;function Es(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 Cs(e){return Xr("MuiPaper",e)}Zr("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 Ss=["className","component","elevation","square","variant"],ws=$a("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 F({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&&F({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${xi.alpha("#fff",Ba(t.elevation))}, ${xi.alpha("#fff",Ba(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),Rs=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=G(n,Ss),c=F({},n,{component:o,elevation:i,square:a,variant:s}),d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Uo({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Cs,o)})(c);return yn.jsx(ws,F({as:o,ownerState:c,className:Vr(d.root,r),ref:t},l))});const _s=Zr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ks=["center","classes","className"];let As,Is,Ls,Ts,Os=e=>e;const Ps=Jt(As||(As=Os`
15
15
  0% {
16
16
  transform: scale(0);
17
17
  opacity: 0.1;
@@ -84,6 +84,6 @@ import{useOptions as e,useEffect as t,onTakeSnapshot as n,useKeyboard as r,useMe
84
84
  animation-iteration-count: infinite;
85
85
  animation-delay: 200ms;
86
86
  }
87
- `),_s.rippleVisible,Ps,550,({theme:e})=>e.transitions.easing.easeInOut,_s.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,_s.child,_s.childLeaving,Ms,550,({theme:e})=>e.transitions.easing.easeInOut,_s.childPulsate,js,({theme:e})=>e.transitions.easing.easeInOut),zs=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=G(n,As),[s,l]=v.useState([]),c=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const u=v.useRef(!1),p=Lo(),h=v.useRef(null),f=v.useRef(null),m=v.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,yn.jsx($s,{classes:{ripple:Vr(o.ripple,_s.ripple),rippleVisible:Vr(o.rippleVisible,_s.rippleVisible),ripplePulsate:Vr(o.ripplePulsate,_s.ripplePulsate),child:Vr(o.child,_s.child),childLeaving:Vr(o.childLeaving,_s.childLeaving),childPulsate:Vr(o.childPulsate,_s.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,d.current=a},[o]),b=v.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&u.current)return void(u.current=!1);"touchstart"===(null==e?void 0:e.type)&&(u.current=!0);const s=a?null:f.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,d,b;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),d=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),d=Math.round(n-l.top)}if(i)b=Math.sqrt((2*l.width**2+l.height**2)/3),b%2==0&&(b+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-d),d)+2;b=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:o,rippleX:c,rippleY:d,rippleSize:b,cb:n})},p.start(80,()=>{h.current&&(h.current(),h.current=null)})):m({pulsate:o,rippleX:c,rippleY:d,rippleSize:b,cb:n})},[r,m,p]),g=v.useCallback(()=>{b({},{pulsate:!0})},[b]),y=v.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,()=>{y(e,t)});h.current=null,l(e=>e.length>0?e.slice(1):e),d.current=t},[p]);return v.useImperativeHandle(t,()=>({pulsate:g,start:b,stop:y}),[g,b,y]),yn.jsx(Ns,F({className:Vr(_s.root,o.root,i),ref:f},a,{children:yn.jsx(ys,{component:null,exit:!0,children:s})}))});function Ds(e){return Xr("MuiButtonBase",e)}const Bs=Zr("MuiButtonBase",["root","disabled","focusVisible"]),Fs=["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"],Gs=$a("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"},[`&.${Bs.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Hs=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:u=!1,LinkComponent:p="a",onBlur:h,onClick:f,onContextMenu:m,onDragLeave:b,onFocus:g,onFocusVisible:y,onKeyDown:x,onKeyUp:E,onMouseDown:C,onMouseLeave:S,onMouseUp:w,onTouchEnd:R,onTouchMove:_,onTouchStart:A,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:L,type:T}=n,O=G(n,Fs),P=v.useRef(null),M=v.useRef(null),j=_o(M,L),{isFocusVisibleRef:N,onFocus:$,onBlur:z,ref:D}=Do(),[B,H]=v.useState(!1);l&&B&&H(!1),v.useImperativeHandle(r,()=>({focusVisible:()=>{H(!0),P.current.focus()}}),[]);const[U,W]=v.useState(!1);v.useEffect(()=>{W(!0)},[]);const Y=U&&!c&&!l;function V(e,t,n=d){return Ro(r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0})}v.useEffect(()=>{B&&u&&!c&&U&&M.current.pulsate()},[c,u,B,U]);const q=V("start",C),K=V("stop",m),X=V("stop",b),Z=V("stop",w),J=V("stop",e=>{B&&e.preventDefault(),S&&S(e)}),Q=V("start",A),ee=V("stop",R),te=V("stop",_),ne=V("stop",e=>{z(e),!1===N.current&&H(!1),h&&h(e)},!1),re=Ro(e=>{P.current||(P.current=e.currentTarget),$(e),!0===N.current&&(H(!0),y&&y(e)),g&&g(e)}),oe=()=>{const e=P.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ie=v.useRef(!1),ae=Ro(e=>{u&&!ie.current&&B&&M.current&&" "===e.key&&(ie.current=!0,M.current.stop(e,()=>{M.current.start(e)})),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!l&&(e.preventDefault(),f&&f(e))}),se=Ro(e=>{u&&" "===e.key&&M.current&&B&&!e.defaultPrevented&&(ie.current=!1,M.current.stop(e,()=>{M.current.pulsate(e)})),E&&E(e),f&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&f(e)});let le=s;"button"===le&&(O.href||O.to)&&(le=p);const ce={};"button"===le?(ce.type=void 0===T?"button":T,ce.disabled=l):(O.href||O.to||(ce.role="button"),l&&(ce["aria-disabled"]=l));const de=_o(t,D,P),ue=F({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:d,focusRipple:u,tabIndex:k,focusVisible:B}),pe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Uo({root:["root",t&&"disabled",n&&"focusVisible"]},Ds,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return yn.jsxs(Gs,F({as:le,className:Vr(pe.root,a),ownerState:ue,onBlur:ne,onClick:f,onContextMenu:K,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:q,onMouseLeave:J,onMouseUp:Z,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:de,tabIndex:l?-1:k,type:T},ce,O,{children:[i,Y?yn.jsx(zs,F({ref:j,center:o},I)):null]}))});function Us(e){return Xr("MuiTypography",e)}Zr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Ws=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ys=$a("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${zn(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>F({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"},qs={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ks=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiTypography"}),r=(e=>qs[e]||e)(n.color),o=Gr(F({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:u="body1",variantMapping:p=Vs}=o,h=G(o,Ws),f=F({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:d,variant:u,variantMapping:p}),m=s||(d?"p":p[u]||Vs[u])||"span",b=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Uo({root:["root",i,"inherit"!==e.align&&`align${zn(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Us,a)})(f);return yn.jsx(Ys,F({as:m,ref:t,ownerState:f,className:Vr(b.root,a)},h))});const Xs=v.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=v.useState(null),s=_o(v.isValidElement(n)?Xo(n):null,t);if(po(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),po(()=>{if(i&&!o)return Eo(t,i),()=>{Eo(t,null)}},[t,i,o]),o){if(v.isValidElement(n)){const e={ref:s};return v.cloneElement(n,e)}return yn.jsx(v.Fragment,{children:n})}return yn.jsx(v.Fragment,{children:i?L.createPortal(n,i):i})}),Zs=["onChange","maxRows","minRows","style","value"];function Js(e){return parseInt(e,10)||0}const Qs={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function el(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const tl=v.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=G(e,Zs),{current:l}=v.useRef(null!=a),c=v.useRef(null),d=_o(t,c),u=v.useRef(null),p=v.useRef(null),h=v.useCallback(()=>{const t=c.current,n=p.current;if(!t||!n)return;const i=xo(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=Js(i.paddingBottom)+Js(i.paddingTop),l=Js(i.borderBottomWidth)+Js(i.borderTopWidth),d=n.scrollHeight;n.value="x";const u=n.scrollHeight;let h=d;o&&(h=Math.max(Number(o)*u,h)),r&&(h=Math.min(Number(r)*u,h)),h=Math.max(h,u);return{outerHeightStyle:h+("border-box"===a?s+l:0),overflowing:Math.abs(h-d)<=1}},[r,o,e.placeholder]),f=Ro(()=>{const e=c.current,t=h();if(!e||!t||el(t))return!1;const n=t.outerHeightStyle;return null!=u.current&&u.current!==n}),m=v.useCallback(()=>{const e=c.current,t=h();if(!e||!t||el(t))return;const n=t.outerHeightStyle;u.current!==n&&(u.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),b=v.useRef(-1);po(()=>{const e=vo(m),t=null==c?void 0:c.current;if(!t)return;const n=xo(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]),po(()=>{m()});return yn.jsxs(v.Fragment,{children:[yn.jsx("textarea",F({value:a,onChange:e=>{l||m(),n&&n(e)},ref:d,rows:o,style:i},s)),yn.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:F({},Qs,i,{paddingTop:0,paddingBottom:0})})]})});const nl=v.createContext(void 0);function rl(){return v.useContext(nl)}function ol(e){return yn.jsx(Br,F({},e,{defaultTheme:Ea,themeId:B}))}function il(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function al(e){return Xr("MuiInputBase",e)}const sl=Zr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ll=["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"],cl=$a("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${zn(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})(({theme:e,ownerState:t})=>F({},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",[`&.${sl.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&F({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),dl=$a("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=F({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 F({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] + .${sl.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},[`&.${sl.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"})}),ul=yn.jsx(ol,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),pl=v.forwardRef(function(e,t){var n;const r=Ja({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:c={},defaultValue:d,disabled:u,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:f=!1,id:m,inputComponent:b="input",inputProps:g={},inputRef:y,maxRows:x,minRows:E,multiline:C=!1,name:S,onBlur:w,onChange:R,onClick:_,onFocus:A,onKeyDown:k,onKeyUp:I,placeholder:L,readOnly:T,renderSuffix:O,rows:P,slotProps:M={},slots:j={},startAdornment:N,type:$="text",value:D}=r,B=G(r,ll),H=null!=g.value?g.value:D,{current:U}=v.useRef(null!=H),W=v.useRef(),Y=v.useCallback(e=>{},[]),V=_o(W,y,g.ref,Y),[q,K]=v.useState(!1),X=rl(),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:q,v.useEffect(()=>{!X&&u&&q&&(K(!1),w&&w())},[X,u,q,w]);const J=X&&X.onFilled,Q=X&&X.onEmpty,ee=v.useCallback(e=>{!function(e,t=!1){return e&&(il(e.value)&&""!==e.value||t&&il(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():J&&J()},[J,Q]);po(()=>{U&&ee({value:H})},[H,ee,U]);v.useEffect(()=>{ee(W.current)},[]);let te=b,ne=g;C&&"input"===te&&(ne=F(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:x,minRows:E},ne),te=tl);v.useEffect(()=>{X&&X.setAdornedStart(Boolean(N))},[X,N]);const re=F({},r,{color:Z.color||"primary",disabled:Z.disabled,endAdornment:h,error:Z.error,focused:Z.focused,formControl:X,fullWidth:f,hiddenLabel:Z.hiddenLabel,multiline:C,size:Z.size,startAdornment:N,type:$}),oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:u,size:p,startAdornment:h,type:f}=e;return Uo({root:["root",`color${zn(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${zn(p)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",u&&"readOnly"]},al,t)})(re),ie=j.root||l.Root||cl,ae=M.root||c.root||{},se=j.input||l.Input||dl;return ne=F({},ne,null!=(n=M.input)?n:c.input),yn.jsxs(v.Fragment,{children:[!p&&ul,yn.jsxs(ie,F({},ae,!Wo(ie)&&{ownerState:F({},re,ae.ownerState)},{ref:t,onClick:e=>{W.current&&e.currentTarget===e.target&&W.current.focus(),_&&_(e)}},B,{className:Vr(oe.root,ae.className,s,T&&"MuiInputBase-readOnly"),children:[N,yn.jsx(nl.Provider,{value:null,children:yn.jsx(se,F({ownerState:re,"aria-invalid":Z.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:Z.disabled,id:m,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?W.current:{value:"x"})},name:S,placeholder:L,readOnly:T,required:Z.required,rows:P,value:H,onKeyDown:k,onKeyUp:I,type:$},ne,!Wo(se)&&{as:te,ownerState:F({},re,ne.ownerState)},{ref:V,className:Vr(oe.input,ne.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),g.onBlur&&g.onBlur(e),X&&X.onBlur?X.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!U){const t=e.target||W.current;if(null==t)throw new Error(z(1));ee({value:t.value})}g.onChange&&g.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Z.disabled?e.stopPropagation():(A&&A(e),g.onFocus&&g.onFocus(e),X&&X.onFocus?X.onFocus(e):K(!0))}}))}),h,O?O(F({},Z,{startAdornment:N})):null]}))]})}),hl=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],fl={entering:{opacity:1},entered:{opacity:1}},ml=v.forwardRef(function(e,t){const n=Ca(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:d,onEntering:u,onExit:p,onExited:h,onExiting:f,style:m,timeout:b=r,TransitionComponent:g=hs}=e,y=G(e,hl),x=v.useRef(null),E=_o(x,Xo(a),t),C=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=C(u),w=C((e,t)=>{xs(e);const r=Es({style:m,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),R=C(d),_=C(f),A=C(e=>{const t=Es({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)}),k=C(h);return yn.jsx(g,F({appear:i,in:l,nodeRef:x,onEnter:w,onEntered:R,onEntering:S,onExit:A,onExited:k,onExiting:_,addEndListener:e=>{o&&o(x.current,e)},timeout:b},y,{children:(e,t)=>v.cloneElement(a,F({style:F({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},fl[e],m,a.props.style),ref:E},t))}))});function bl(e){return Xr("MuiBackdrop",e)}Zr("MuiBackdrop",["root","invisible"]);const gl=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],vl=$a("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>F({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"})),yl=v.forwardRef(function(e,t){var n,r,o;const i=Ja({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:d={},invisible:u=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=ml,transitionDuration:b}=i,g=G(i,gl),v=F({},i,{component:l,invisible:u}),y=(e=>{const{classes:t,invisible:n}=e;return Uo({root:["root",n&&"invisible"]},bl,t)})(v),x=null!=(n=h.root)?n:d.root;return yn.jsx(m,F({in:p,timeout:b},g,{children:yn.jsx(vl,F({"aria-hidden":!0},x,{as:null!=(r=null!=(o=f.root)?o:c.Root)?r:l,className:Vr(y.root,s,null==x?void 0:x.className),ownerState:F({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),xl=Zr("MuiBox",["root"]),El=xa(),Cl=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Cn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Tr);return v.forwardRef(function(e,a){const s=zr(n),l=Gr(e),{className:c,component:d="div"}=l,u=G(l,qr);return yn.jsx(i,F({as:d,ref:a,className:Vr(c,o?o(r):r),theme:t&&s[t]||s},u))})}({themeId:B,defaultTheme:El,defaultClassName:xl.root,generateClassName:Wr.generate});function Sl(e){return Xr("MuiButton",e)}const wl=Zr("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"]),Rl=v.createContext({}),_l=v.createContext(void 0),Al=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],kl=e=>F({},"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}}),Il=$a(Hs,{shouldForwardProp:e=>Na(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${zn(n.color)}`],t[`size${zn(n.size)}`],t[`${n.variant}Size${zn(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 F({},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":F({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:xi.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})`:xi.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})`:xi.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":F({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${wl.focusVisible}`]:F({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${wl.disabled}`]:F({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 ${xi.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"},[`&.${wl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${wl.disabled}`]:{boxShadow:"none"}}),Ll=$a("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${zn(n.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},kl(e))),Tl=$a("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${zn(n.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},kl(e))),Ol=v.forwardRef(function(e,t){const n=v.useContext(Rl),r=v.useContext(_l),o=Ja({props:uo(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:u=!1,endIcon:p,focusVisibleClassName:h,fullWidth:f=!1,size:m="medium",startIcon:b,type:g,variant:y="text"}=o,x=G(o,Al),E=F({},o,{color:a,component:s,disabled:c,disableElevation:d,disableFocusRipple:u,fullWidth:f,size:m,type:g,variant:y}),C=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return F({},a,Uo({root:["root",i,`${i}${zn(t)}`,`size${zn(o)}`,`${i}Size${zn(o)}`,`color${zn(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${zn(o)}`],endIcon:["icon","endIcon",`iconSize${zn(o)}`]},Sl,a))})(E),S=b&&yn.jsx(Ll,{className:C.startIcon,ownerState:E,children:b}),w=p&&yn.jsx(Tl,{className:C.endIcon,ownerState:E,children:p}),R=r||"";return yn.jsxs(Il,F({ownerState:E,className:Vr(n.className,C.root,l,R),component:s,disabled:c,focusRipple:!u,focusVisibleClassName:Vr(C.focusVisible,h),ref:t,type:g},x,{classes:C,children:[S,i,w]}))});function Pl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ml(e){return parseInt(xo(e).getComputedStyle(e).paddingRight,10)||0}function jl(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&&Pl(e,o)})}function Nl(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function $l(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=yo(e);return t.body===e?xo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Bo(yo(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Ml(r)+e}px`;const t=yo(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Ml(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=yo(r).body;else{const t=r.parentElement,n=xo(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 zl=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Dl(e){const t=[],n=[];return Array.from(e.querySelectorAll(zl)).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 Bl(){return!0}function Fl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Dl,isEnabled:a=Bl,open:s}=e,l=v.useRef(!1),c=v.useRef(null),d=v.useRef(null),u=v.useRef(null),p=v.useRef(null),h=v.useRef(!1),f=v.useRef(null),m=_o(Xo(t),f),b=v.useRef(null);v.useEffect(()=>{s&&f.current&&(h.current=!n)},[n,s]),v.useEffect(()=>{if(!s||!f.current)return;const e=yo(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),h.current&&f.current.focus()),()=>{o||(u.current&&u.current.focus&&(l.current=!0,u.current.focus()),u.current=null)}},[s]),v.useEffect(()=>{if(!s||!f.current)return;const e=yo(f.current),t=t=>{b.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(l.current=!0,d.current&&d.current.focus())},n=()=>{const t=f.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=i(f.current)),n.length>0){var o,s;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=b.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,a,s,i]);const g=e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0};return yn.jsxs(v.Fragment,{children:[yn.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:c,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:m,onFocus:e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),yn.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:d,"data-testid":"sentinelEnd"})]})}const Gl=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&&Pl(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);jl(t,e.mount,e.modalRef,r,!0);const o=Nl(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=Nl(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=$l(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Nl(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&&Pl(e.modalRef,t),jl(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&&Pl(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Hl(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Gl,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:d,rootRef:u}=e,p=v.useRef({}),h=v.useRef(null),f=v.useRef(null),m=_o(f,u),[b,g]=v.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const E=()=>(p.current.modalRef=f.current,p.current.mount=h.current,p.current),C=()=>{o.mount(E(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},S=Ro(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||yo(h.current).body;o.add(E(),e),f.current&&C()}),w=v.useCallback(()=>o.isTopModal(E()),[o]),R=Ro(e=>{h.current=e,e&&(d&&w()?C():f.current&&Pl(f.current,x))}),_=v.useCallback(()=>{o.remove(E(),x)},[x,o]);v.useEffect(()=>()=>{_()},[_]),v.useEffect(()=>{d?S():y&&i||_()},[d,_,y,i,S]);const A=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Yo(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=F({},n,t);return F({role:"presentation"},r,{onKeyDown:A(r),ref:m})},getBackdropProps:(e={})=>F({"aria-hidden":!0},e,{onClick:k(e),open:d}),getTransitionProps:()=>({onEnter:go(()=>{g(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:go(()=>{g(!0),s&&s(),i&&_()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}function Ul(e){return Xr("MuiModal",e)}Zr("MuiModal",["root","hidden","backdrop"]);const Wl=["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"],Yl=$a("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})=>F({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Vl=$a(yl,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ql=v.forwardRef(function(e,t){var n,r,o,i,a,s;const l=Ja({name:"MuiModal",props:e}),{BackdropComponent:c=Vl,BackdropProps:d,className:u,closeAfterTransition:p=!1,children:h,container:f,component:m,components:b={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:E=!1,disablePortal:C=!1,disableRestoreFocus:S=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:_=!1,onBackdropClick:A,open:k,slotProps:I,slots:L}=l,T=G(l,Wl),O=F({},l,{closeAfterTransition:p,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:E,disablePortal:C,disableRestoreFocus:S,disableScrollLock:w,hideBackdrop:R,keepMounted:_}),{getRootProps:P,getBackdropProps:M,getTransitionProps:j,portalRef:N,isTopModal:$,exited:z,hasTransition:D}=Hl(F({},O,{rootRef:t})),B=F({},O,{exited:z}),H=(e=>{const{open:t,exited:n,classes:r}=e;return Uo({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Ul,r)})(B),U={};if(void 0===h.props.tabIndex&&(U.tabIndex="-1"),D){const{onEnter:e,onExited:t}=j();U.onEnter=e,U.onExited=t}const W=null!=(n=null!=(r=null==L?void 0:L.root)?r:b.Root)?n:Yl,Y=null!=(o=null!=(i=null==L?void 0:L.backdrop)?i:b.Backdrop)?o:c,V=null!=(a=null==I?void 0:I.root)?a:g.root,q=null!=(s=null==I?void 0:I.backdrop)?s:g.backdrop,K=Ko({elementType:W,externalSlotProps:V,externalForwardedProps:T,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:B,className:Vr(u,null==V?void 0:V.className,null==H?void 0:H.root,!B.open&&B.exited&&(null==H?void 0:H.hidden))}),X=Ko({elementType:Y,externalSlotProps:q,additionalProps:d,getSlotProps:e=>M(F({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Vr(null==q?void 0:q.className,null==d?void 0:d.className,null==H?void 0:H.backdrop),ownerState:B});return _||k||D&&!z?yn.jsx(Xs,{ref:N,container:f,disablePortal:C,children:yn.jsxs(W,F({},K,{children:[!R&&c?yn.jsx(Y,F({},X)):null,yn.jsx(Fl,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:S,isEnabled:$,open:k,children:v.cloneElement(h,U)})]}))}):null});function Kl(e){return Xr("MuiDivider",e)}const Xl=Zr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Zl=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Jl=$a("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})=>F({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)`:xi.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})=>F({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>F({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>F({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>F({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Ql=$a("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>F({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)`})),ec=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:d=("hr"!==a?"separator":void 0),textAlign:u="center",variant:p="fullWidth"}=n,h=G(n,Zl),f=F({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:d,textAlign:u,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Uo({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"]},Kl,r)})(f);return yn.jsx(Jl,F({as:a,className:Vr(m.root,i),role:d,ref:t,ownerState:f},h,{children:o?yn.jsx(Ql,{className:m.wrapper,ownerState:f,children:o}):null}))});ec.muiSkipListHighlight=!0;const tc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function nc(e){return`scale(${e}, ${e**2})`}const rc={entering:{opacity:1,transform:nc(1)},entered:{opacity:1,transform:"none"}},oc="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ic=v.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:d,onExited:u,onExiting:p,style:h,timeout:f="auto",TransitionComponent:m=hs}=e,b=G(e,tc),g=Lo(),y=v.useRef(),x=Ca(),E=v.useRef(null),C=_o(E,Xo(o),t),S=e=>t=>{if(e){const n=E.current;void 0===t?e(n):e(n,t)}},w=S(c),R=S((e,t)=>{xs(e);const{duration:n,delay:r,easing:o}=Es({style:h,timeout:f,easing:i},{mode:"enter"});let a;"auto"===f?(a=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:oc?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),_=S(l),A=S(p),k=S(e=>{const{duration:t,delay:n,easing:r}=Es({style:h,timeout:f,easing:i},{mode:"exit"});let o;"auto"===f?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:oc?o:.666*o,delay:oc?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=nc(.75),d&&d(e)}),I=S(u);return yn.jsx(m,F({appear:r,in:a,nodeRef:E,onEnter:R,onEntered:_,onEntering:w,onExit:k,onExited:I,onExiting:A,addEndListener:e=>{"auto"===f&&g.start(y.current||0,e),n&&n(E.current,e)},timeout:"auto"===f?null:f},b,{children:(e,t)=>v.cloneElement(o,F({style:F({opacity:0,transform:nc(.75),visibility:"exited"!==e||a?void 0:"hidden"},rc[e],h,o.props.style),ref:C},t))}))});function ac(e){return Xr("MuiInputAdornment",e)}ic.muiSupportAuto=!0;const sc=Zr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var lc;const cc=["children","className","component","disablePointerEvents","disableTypography","position","variant"],dc=$a("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${zn(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>F({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${sc.positionStart}&:not(.${sc.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),uc=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c}=n,d=G(n,cc),u=rl()||{};let p=c;c&&u.variant,u&&!p&&(p=u.variant);const h=F({},n,{hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:l,variant:p}),f=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return Uo({root:["root",n&&"disablePointerEvents",o&&`position${zn(o)}`,a,r&&"hiddenLabel",i&&`size${zn(i)}`]},ac,t)})(h);return yn.jsx(nl.Provider,{value:null,children:yn.jsx(dc,F({as:i,ownerState:h,className:Vr(f.root,o),ref:t},d,{children:"string"!=typeof r||s?yn.jsxs(v.Fragment,{children:["start"===l?lc||(lc=yn.jsx("span",{className:"notranslate",children:"​"})):null,r]}):yn.jsx(Ks,{color:"text.secondary",children:r})}))})}),pc=v.createContext({});function hc(e){return Xr("MuiList",e)}Zr("MuiList",["root","padding","dense","subheader"]);const fc=["children","className","component","dense","disablePadding","subheader"],mc=$a("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})=>F({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),bc=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=G(n,fc),d=v.useMemo(()=>({dense:a}),[a]),u=F({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Uo({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},hc,t)})(u);return yn.jsx(pc.Provider,{value:d,children:yn.jsxs(mc,F({as:i,className:Vr(p.root,o),ref:t,ownerState:u},c,{children:[l,r]}))})});function gc(e){return Xr("MuiListItem",e)}const vc=Zr("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function yc(e){return Xr("MuiListItemButton",e)}const xc=Zr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Ec=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Cc=$a(Hs,{shouldForwardProp:e=>Na(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})=>F({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"}},[`&.${xc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xi.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})`:xi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${xc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xc.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})),Sc=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:d,selected:u=!1,className:p}=n,h=G(n,Ec),f=v.useContext(pc),m=v.useMemo(()=>({dense:s||f.dense||!1,alignItems:r,disableGutters:l}),[r,f.dense,s,l]),b=v.useRef(null);po(()=>{o&&b.current&&b.current.focus()},[o]);const g=F({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:u}),y=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return F({},n,Uo({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},yc,n))})(g),x=_o(b,t);return yn.jsx(pc.Provider,{value:m,children:yn.jsx(Cc,F({ref:x,href:h.href||h.to,component:(h.href||h.to)&&"div"===i?"button":i,focusVisibleClassName:Vr(y.focusVisible,d),ownerState:g,className:Vr(y.root,p)},h,{classes:y,children:a}))})});function wc(e){return Xr("MuiListItemSecondaryAction",e)}Zr("MuiListItemSecondaryAction",["root","disableGutters"]);const Rc=["className"],_c=$a("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>F({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Ac=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=G(n,Rc),i=F({},n,{disableGutters:v.useContext(pc).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return Uo({root:["root",t&&"disableGutters"]},wc,n)})(i);return yn.jsx(_c,F({className:Vr(a.root,r),ownerState:i,ref:t},o))});Ac.muiName="ListItemSecondaryAction";const kc=["className"],Ic=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Lc=$a("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})=>F({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&F({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${xc.root}`]:{paddingRight:48}},{[`&.${vc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${vc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${vc.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"}},[`&.${vc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xi.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})`:xi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Tc=$a("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Oc=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:c={},componentsProps:d={},ContainerComponent:u="li",ContainerProps:{className:p}={},dense:h=!1,disabled:f=!1,disableGutters:m=!1,disablePadding:b=!1,divider:g=!1,focusVisibleClassName:y,secondaryAction:x,selected:E=!1,slotProps:C={},slots:S={}}=n,w=G(n.ContainerProps,kc),R=G(n,Ic),_=v.useContext(pc),A=v.useMemo(()=>({dense:h||_.dense||!1,alignItems:r,disableGutters:m}),[r,_.dense,h,m]),k=v.useRef(null);po(()=>{o&&k.current&&k.current.focus()},[o]);const I=v.Children.toArray(a),L=I.length&&(T=I[I.length-1],O=["ListItemSecondaryAction"],v.isValidElement(T)&&-1!==O.indexOf(null!=(P=T.type.muiName)?P:null==(M=T.type)||null==(M=M._payload)||null==(M=M.value)?void 0:M.muiName));var T,O,P,M;const j=F({},n,{alignItems:r,autoFocus:o,button:i,dense:A.dense,disabled:f,disableGutters:m,disablePadding:b,divider:g,hasSecondaryAction:L,selected:E}),N=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:d}=e;return Uo({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},gc,r)})(j),$=_o(k,t),z=S.root||c.Root||Lc,D=C.root||d.root||{},B=F({className:Vr(N.root,D.className,s),disabled:f},R);let H=l||"li";return i&&(B.component=l||"div",B.focusVisibleClassName=Vr(vc.focusVisible,y),H=Hs),L?(H=B.component||l?H:"div","li"===u&&("li"===H?H="div":"li"===B.component&&(B.component="div")),yn.jsx(pc.Provider,{value:A,children:yn.jsxs(Tc,F({as:u,className:Vr(N.container,p),ref:$,ownerState:j},w,{children:[yn.jsx(z,F({},D,!Wo(z)&&{as:H,ownerState:F({},j,D.ownerState)},B,{children:I})),I.pop()]}))})):yn.jsx(pc.Provider,{value:A,children:yn.jsxs(z,F({},D,{as:H,ref:$},!Wo(z)&&{ownerState:F({},j,D.ownerState)},B,{children:[I,x&&yn.jsx(Ac,{children:x})]}))})});function Pc(e){return Xr("MuiListItemIcon",e)}const Mc=Zr("MuiListItemIcon",["root","alignItemsFlexStart"]),jc=["className"],Nc=$a("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})=>F({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),$c=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=G(n,jc),i=F({},n,{alignItems:v.useContext(pc).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Uo({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Pc,n)})(i);return yn.jsx(Nc,F({className:Vr(a.root,r),ownerState:i,ref:t},o))}),zc=Zr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Dc=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Bc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Fc(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Gc(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 Hc(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")&&Gc(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const Uc=v.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu"}=e,u=G(e,Dc),p=v.useRef(null),h=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});po(()=>{r&&p.current.focus()},[r]),v.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Bo(yo(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}}),[]);const f=_o(p,t);let m=-1;v.Children.forEach(i,(e,t)=>{v.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const b=v.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),v.cloneElement(e,t)}return e});return yn.jsx(bc,F({role:"menu",ref:f,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=yo(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Hc(t,r,l,s,Bc);else if("ArrowUp"===n)e.preventDefault(),Hc(t,r,l,s,Fc);else if("Home"===n)e.preventDefault(),Hc(t,null,l,s,Bc);else if("End"===n)e.preventDefault(),Hc(t,null,l,s,Fc);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&&Gc(r,o);o.previousKeyMatched&&(l||Hc(t,r,!1,s,Bc,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},u,{children:b}))});function Wc(e){return Xr("MuiPopover",e)}Zr("MuiPopover",["root","paper"]);const Yc=["onEntering"],Vc=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],qc=["slotProps"];function Kc(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Xc(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Zc(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Jc(e){return"function"==typeof e?e():e}const Qc=$a(ql,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ed=$a(Rs,{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}),td=v.forwardRef(function(e,t){var n,r,o;const i=Ja({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:u,className:p,container:h,elevation:f=8,marginThreshold:m=16,open:b,PaperProps:g={},slots:y,slotProps:x,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:C=ic,transitionDuration:S="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,_=G(i.TransitionProps,Yc),A=G(i,Vc),k=null!=(n=null==x?void 0:x.paper)?n:g,I=v.useRef(),L=_o(I,k.ref),T=F({},i,{anchorOrigin:l,anchorReference:d,elevation:f,marginThreshold:m,externalPaperSlotProps:k,transformOrigin:E,TransitionComponent:C,transitionDuration:S,TransitionProps:_}),O=(e=>{const{classes:t}=e;return Uo({root:["root"],paper:["paper"]},Wc,t)})(T),P=v.useCallback(()=>{if("anchorPosition"===d)return c;const e=Jc(s),t=(e&&1===e.nodeType?e:yo(I.current).body).getBoundingClientRect();return{top:t.top+Kc(t,l.vertical),left:t.left+Xc(t,l.horizontal)}},[s,l.horizontal,l.vertical,c,d]),M=v.useCallback(e=>({vertical:Kc(e,E.vertical),horizontal:Xc(e,E.horizontal)}),[E.horizontal,E.vertical]),j=v.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=M(t);if("none"===d)return{top:null,left:null,transformOrigin:Zc(n)};const r=P();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=xo(Jc(s)),u=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>u){const e=a-u;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Zc(n)}},[s,d,P,M,m]),[N,$]=v.useState(b),z=v.useCallback(()=>{const e=I.current;if(!e)return;const t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,$(!0)},[j]);v.useEffect(()=>(R&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z)),[s,R,z]);v.useEffect(()=>{b&&z()}),v.useImperativeHandle(a,()=>b?{updatePosition:()=>{z()}}:null,[b,z]),v.useEffect(()=>{if(!b)return;const e=vo(()=>{z()}),t=xo(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,b,z]);let D=S;"auto"!==S||C.muiSupportAuto||(D=void 0);const B=h||(s?yo(Jc(s)).body:void 0),H=null!=(r=null==y?void 0:y.root)?r:Qc,U=null!=(o=null==y?void 0:y.paper)?o:ed,W=Ko({elementType:U,externalSlotProps:F({},k,{style:N?k.style:F({},k.style,{opacity:0})}),additionalProps:{elevation:f,ref:L},ownerState:T,className:Vr(O.paper,null==k?void 0:k.className)}),Y=Ko({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:B,open:b},ownerState:T,className:Vr(O.root,p)}),{slotProps:V}=Y,q=G(Y,qc);return yn.jsx(H,F({},q,!Wo(H)&&{slotProps:V,disableScrollLock:R},{children:yn.jsx(C,F({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),z()},onExited:()=>{$(!1)},timeout:D},_,{children:yn.jsx(U,F({},W,{children:u}))}))}))});function nd(e){return Xr("MuiMenu",e)}Zr("MuiMenu",["root","paper","list"]);const rd=["onEntering"],od=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],id={vertical:"top",horizontal:"right"},ad={vertical:"top",horizontal:"left"},sd=$a(td,{shouldForwardProp:e=>Na(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ld=$a(ed,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),cd=$a(Uc,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),dd=v.forwardRef(function(e,t){var n,r;const o=Ja({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:d,open:u,PaperProps:p={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:m}={},variant:b="selectedMenu",slots:g={},slotProps:y={}}=o,x=G(o.TransitionProps,rd),E=G(o,od),C=oi(),S=F({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:f,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return Uo({root:["root"],paper:["paper"],list:["list"]},nd,t)})(S),R=i&&!l&&u,_=v.useRef(null);let A=-1;v.Children.map(a,(e,t)=>{v.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===A)&&(A=t))});const k=null!=(n=g.paper)?n:ld,I=null!=(r=y.paper)?r:p,L=Ko({elementType:g.root,externalSlotProps:y.root,ownerState:S,className:[w.root,s]}),T=Ko({elementType:k,externalSlotProps:I,ownerState:S,className:w.paper});return yn.jsx(sd,F({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?id:ad,slots:{paper:k,root:g.root},slotProps:{root:L,paper:T},open:u,ref:t,transitionDuration:f,TransitionProps:F({onEntering:(e,t)=>{_.current&&_.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:S},E,{classes:h,children:yn.jsx(cd,F({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:_,autoFocus:i&&(-1===A||l),autoFocusItem:R,variant:b},c,{className:Vr(w.list,c.className),children:a}))}))});function ud(e){return Xr("MuiMenuItem",e)}const pd=Zr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),hd=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],fd=$a(Hs,{shouldForwardProp:e=>Na(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})=>F({},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"}},[`&.${pd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${pd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${pd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xi.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})`:xi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${pd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Xl.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Xl.inset}`]:{marginLeft:52},[`& .${zc.root}`]:{marginTop:0,marginBottom:0},[`& .${zc.inset}`]:{paddingLeft:36},[`& .${Mc.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&F({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Mc.root} svg`]:{fontSize:"1.25rem"}}))),md=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:u}=n,p=G(n,hd),h=v.useContext(pc),f=v.useMemo(()=>({dense:i||h.dense||!1,disableGutters:s}),[h.dense,i,s]),m=v.useRef(null);po(()=>{r&&m.current&&m.current.focus()},[r]);const b=F({},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 F({},a,Uo({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},ud,a))})(n),y=_o(m,t);let x;return n.disabled||(x=void 0!==d?d:-1),yn.jsx(pc.Provider,{value:f,children:yn.jsx(fd,F({ref:y,role:c,tabIndex:x,component:o,focusVisibleClassName:Vr(g.focusVisible,l),className:Vr(g.root,u)},p,{ownerState:b,classes:g}))})});function bd(e){return Xr("MuiTab",e)}const gd=Zr("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),vd=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],yd=$a(Hs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${zn(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${gd.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>F({},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,[`& > .${gd.iconWrapper}`]:F({},"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,[`&.${gd.selected}`]:{opacity:1},[`&.${gd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${gd.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${gd.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${gd.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${gd.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)})),xd=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiTab"}),{className:r,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:a,icon:s,iconPosition:l="top",indicator:c,label:d,onChange:u,onClick:p,onFocus:h,selected:f,selectionFollowsFocus:m,textColor:b="inherit",value:g,wrapped:y=!1}=n,x=G(n,vd),E=F({},n,{disabled:o,disableFocusRipple:i,selected:f,icon:!!s,iconPosition:l,label:!!d,fullWidth:a,textColor:b,wrapped:y}),C=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e;return Uo({root:["root",i&&a&&"labelIcon",`textColor${zn(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]},bd,t)})(E),S=s&&d&&v.isValidElement(s)?v.cloneElement(s,{className:Vr(C.iconWrapper,s.props.className)}):s;return yn.jsxs(yd,F({focusRipple:!i,className:Vr(C.root,r),ref:t,role:"tab","aria-selected":f,disabled:o,onClick:e=>{!f&&u&&u(e,g),p&&p(e)},onFocus:e=>{m&&!f&&u&&u(e,g),h&&h(e)},ownerState:E,tabIndex:f?0:-1},x,{children:["top"===l||"start"===l?yn.jsxs(v.Fragment,{children:[S,d]}):yn.jsxs(v.Fragment,{children:[d,S]}),c]}))});var Ed=rs(yn.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Cd=rs(yn.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Sd(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const wd=["onChange"],Rd={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function _d(e){return Xr("MuiTabScrollButton",e)}const Ad=Zr("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),kd=["className","slots","slotProps","direction","orientation","disabled"],Id=$a(Hs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>F({width:40,flexShrink:0,opacity:.8,[`&.${Ad.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Ld=v.forwardRef(function(e,t){var n,r;const o=Ja({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:s={},direction:l}=o,c=G(o,kd),d=F({isRtl:oi()},o),u=(e=>{const{classes:t,orientation:n,disabled:r}=e;return Uo({root:["root",n,r&&"disabled"]},_d,t)})(d),p=null!=(n=a.StartScrollButtonIcon)?n:Ed,h=null!=(r=a.EndScrollButtonIcon)?r:Cd,f=Ko({elementType:p,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),m=Ko({elementType:h,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return yn.jsx(Id,F({component:"div",className:Vr(u.root,i),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===l?yn.jsx(p,F({},f)):yn.jsx(h,F({},m))}))});function Td(e){return Xr("MuiTabs",e)}const Od=Zr("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Pd=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Md=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,jd=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Nd=(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)}},$d=$a("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Od.scrollButtons}`]:t.scrollButtons},{[`& .${Od.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>F({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Od.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),zd=$a("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})=>F({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Dd=$a("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})=>F({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Bd=$a("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>F({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})),Fd=$a(function(e){const{onChange:t}=e,n=G(e,wd),r=v.useRef(),o=v.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return po(()=>{const e=vo(()=>{const e=r.current;i(),e!==r.current&&t(r.current)}),n=xo(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}},[t]),v.useEffect(()=>{i(),t(r.current)},[t]),yn.jsx("div",F({style:Rd},n,{ref:o}))})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Gd={},Hd=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiTabs"}),r=Ca(),o=oi(),{"aria-label":i,"aria-labelledby":a,action:s,centered:l=!1,children:c,className:d,component:u="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:f,orientation:m="horizontal",ScrollButtonComponent:b=Ld,scrollButtons:g="auto",selectionFollowsFocus:y,slots:x={},slotProps:E={},TabIndicatorProps:C={},TabScrollButtonProps:S={},textColor:w="primary",value:R,variant:_="standard",visibleScrollbar:A=!1}=n,k=G(n,Pd),I="scrollable"===_,L="vertical"===m,T=L?"scrollTop":"scrollLeft",O=L?"top":"left",P=L?"bottom":"right",M=L?"clientHeight":"clientWidth",j=L?"height":"width",N=F({},n,{component:u,allowScrollButtonsMobile:p,indicatorColor:h,orientation:m,vertical:L,scrollButtons:g,textColor:w,variant:_,visibleScrollbar:A,fixed:!I,hideScrollbar:I&&!A,scrollableX:I&&!L,scrollableY:I&&L,centered:l&&!I,scrollButtonsHideMobile:!p}),$=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Uo({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"]},Td,l)})(N),z=Ko({elementType:x.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:N}),D=Ko({elementType:x.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:N}),[B,H]=v.useState(!1),[U,W]=v.useState(Gd),[Y,V]=v.useState(!1),[q,K]=v.useState(!1),[X,Z]=v.useState(!1),[J,Q]=v.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,te=v.useRef(null),ne=v.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:Ho(e,o?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==R){const e=ne.current.children;if(e.length>0){const t=e[ee.get(R)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},oe=Ro(()=>{const{tabsMeta:e,tabMeta:t}=re();let n,r=0;if(L)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=o?"right":"left",t&&e){const i=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(o?-1:1)*(t[n]-e[n]+i)}const i={[n]:r,[j]:t?t[j]:0};if(isNaN(U[n])||isNaN(U[j]))W(i);else{const e=Math.abs(U[n]-i[n]),t=Math.abs(U[j]-i[j]);(e>=1||t>=1)&&W(i)}}),ie=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=()=>{}){const{ease:i=Sd,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const d=()=>{c=!0},u=r=>{if(c)return void o(new Error("Animation cancelled"));null===s&&(s=r);const d=Math.min(1,(r-s)/a);t[e]=i(d)*(n-l)+l,d>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(u)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(u)}(T,te.current,e,{duration:r.transitions.duration.standard}):te.current[T]=e},ae=e=>{let t=te.current[T];L?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===Go()?-1:1),ie(t)},se=()=>{const e=te.current[M];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[M]>e){0===r&&(t=e);break}t+=o[M]}return t},le=()=>{ae(-1*se())},ce=()=>{ae(se())},de=v.useCallback(e=>{Q({overflow:null,scrollbarWidth:e})},[]),ue=Ro(e=>{const{tabsMeta:t,tabMeta:n}=re();if(n&&t)if(n[O]<t[O]){const r=t[T]+(n[O]-t[O]);ie(r,{animation:e})}else if(n[P]>t[P]){const r=t[T]+(n[P]-t[P]);ie(r,{animation:e})}}),pe=Ro(()=>{I&&!1!==g&&Z(!X)});v.useEffect(()=>{const e=vo(()=>{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=xo(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]),v.useEffect(()=>{const e=Array.from(ne.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&I&&!1!==g){const n=e[0],r=e[t-1],o={root:te.current,threshold:.99},i=new IntersectionObserver(e=>{V(!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()}}},[I,g,X,null==c?void 0:c.length]),v.useEffect(()=>{H(!0)},[]),v.useEffect(()=>{oe()}),v.useEffect(()=>{ue(Gd!==U)},[ue,U]),v.useImperativeHandle(s,()=>({updateIndicator:oe,updateScrollButtons:pe}),[oe,pe]);const he=yn.jsx(Bd,F({},C,{className:Vr($.indicator,C.className),ownerState:N,style:F({},U,C.style)}));let fe=0;const me=v.Children.map(c,e=>{if(!v.isValidElement(e))return null;const t=void 0===e.props.value?fe:e.props.value;ee.set(t,fe);const n=t===R;return fe+=1,v.cloneElement(e,F({fullWidth:"fullWidth"===_,indicator:n&&!B&&he,selected:n,selectionFollowsFocus:y,onChange:f,textColor:w,value:t},1!==fe||!1!==R||e.props.tabIndex?{}:{tabIndex:0}))}),be=(()=>{const e={};e.scrollbarSizeListener=I?yn.jsx(Fd,{onChange:de,className:Vr($.scrollableX,$.hideScrollbar)}):null;const t=I&&("auto"===g&&(Y||q)||!0===g);return e.scrollButtonStart=t?yn.jsx(b,F({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:z},orientation:m,direction:o?"right":"left",onClick:le,disabled:!Y},S,{className:Vr($.scrollButtons,S.className)})):null,e.scrollButtonEnd=t?yn.jsx(b,F({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:D},orientation:m,direction:o?"left":"right",onClick:ce,disabled:!q},S,{className:Vr($.scrollButtons,S.className)})):null,e})();return yn.jsxs($d,F({className:Vr($.root,d),ownerState:N,ref:t,as:u},k,{children:[be.scrollButtonStart,be.scrollbarSizeListener,yn.jsxs(zd,{className:$.scroller,ownerState:N,style:{overflow:J.overflow,[L?"margin"+(o?"Left":"Right"):"marginBottom"]:A?void 0:-J.scrollbarWidth},ref:te,children:[yn.jsx(Dd,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===m?"vertical":null,className:$.flexContainer,ownerState:N,onKeyDown:e=>{const t=ne.current,n=yo(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(),Nd(t,n,jd);break;case i:e.preventDefault(),Nd(t,n,Md);break;case"Home":e.preventDefault(),Nd(t,null,Md);break;case"End":e.preventDefault(),Nd(t,null,jd)}},ref:ne,role:"tablist",children:me}),B&&he]}),be.scrollButtonEnd]}))});function Ud(e){return yn.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:yn.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function Wd({fontSize:e="medium",children:t=null,className:n=""}={}){return yn.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 Yd(e={}){return yn.jsx(Wd,{...e,children:yn.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[yn.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),yn.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function Vd(e={}){return yn.jsx(Wd,{fontSize:"medium",...e,children:yn.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[yn.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),yn.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 qd(e){return yn.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:yn.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 Kd(e={}){return yn.jsx(Wd,{...e,children:yn.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:yn.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[yn.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),yn.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Xd(e={}){return yn.jsx(Wd,{fontSize:"medium",...e,children:yn.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:yn.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:yn.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Zd({className:e}){return yn.jsx(Wd,{fontSize:"small",className:e,children:yn.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:yn.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:yn.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:yn.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[yn.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"}),yn.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 Jd(e={}){return yn.jsx(Wd,{...e,children:yn.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:yn.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:yn.jsx("rect",{stroke:Fa.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var Qd=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Fa.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Fa.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:yn.jsx(Ud,{"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 ${Fa.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Fa.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Fa.MISC_FOCUS_BORDER}`,borderRadius:Ya,backgroundColor:Fa.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 ${Fa.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Fa.WHITE,color:Fa.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:Ya},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Fa.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Fa.GREYSCALE_0_15,backgroundColor:Fa.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Fa.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Fa.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Fa.GREEN_PALE},"&:active":{backgroundColor:Fa.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Fa.GREEN_PALE,boxShadow:`0 0 0 3px ${bo(Fa.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Fa.BLUE_PALE},"&:active":{backgroundColor:Fa.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Fa.BLUE_PALE,boxShadow:`0 0 0 3px ${bo(Fa.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:Ya,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Fa.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Fa.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Fa.GREYSCALE_0_42,backgroundColor:Fa.GREYSCALE_100_60,"&:active":{backgroundColor:Fa.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Fa.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Fa.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Fa.PURPLE,"&.Mui-focusVisible":{borderColor:Fa.PURPLE,boxShadow:`0 0 0 3px ${bo(Fa.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Fa.GREEN,"&.Mui-focusVisible":{borderColor:Fa.GREEN,boxShadow:`0 0 0 3px ${bo(Fa.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Fa.BLUE,"&.Mui-focusVisible":{borderColor:Fa.BLUE,boxShadow:`0 0 0 3px ${bo(Fa.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Fa.ORANGE,"&.Mui-focusVisible":{borderColor:Fa.ORANGE,boxShadow:`0 0 0 3px ${bo(Fa.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Fa.RED,"&.Mui-focusVisible":{borderColor:Fa.RED,boxShadow:`0 0 0 3px ${bo(Fa.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Fa.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Fa.PURPLE_PALE},"&:active":{backgroundColor:Fa.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Fa.PURPLE_PALE,boxShadow:`0 0 0 3px ${bo(Fa.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Fa.GREEN_PALE},"&:active":{backgroundColor:Fa.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Fa.GREEN_PALE,boxShadow:`0 0 0 3px ${bo(Fa.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Fa.BLUE_PALE},"&:active":{backgroundColor:Fa.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Fa.BLUE_PALE,boxShadow:`0 0 0 3px ${bo(Fa.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Fa.ORANGE_PALE},"&:active":{backgroundColor:Fa.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Fa.ORANGE_PALE,boxShadow:`0 0 0 3px ${bo(Fa.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Fa.RED_PALE},"&:active":{backgroundColor:Fa.RED_DARK},"&.Mui-focusVisible":{borderColor:Fa.RED_PALE,boxShadow:`0 0 0 3px ${bo(Fa.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:Fa.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Fa.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ya,boxShadow:`inset 0 0 0 2px ${Fa.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:yn.jsx(qd,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ga,borderRadius:Ya,color:Fa.TEXT_PRIMARY,backgroundColor:Fa.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Fa.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Fa.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Fa.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Fa.GREYSCALE_0_05,color:Fa.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Fa.GREEN,borderColor:Fa.GREEN},"&.MuiChip-outlinedInfo":{color:Fa.BLUE,borderColor:Fa.BLUE},"&.MuiChip-outlinedWarning":{color:Fa.ORANGE,borderColor:Fa.ORANGE},"&.MuiChip-outlinedError":{color:Fa.RED,borderColor:Fa.RED}},outlined:{border:`solid 1px ${Fa.GREYSCALE_0_15}`,backgroundColor:Fa.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ya,boxShadow:"none",backgroundColor:Fa.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Fa.GREEN,borderColor:Fa.GREEN},outlinedSecondary:{color:Fa.BLUE,borderColor:Fa.BLUE},label:{fontFamily:Za.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:yn.jsx(qd,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:yn.jsx(Ud,{"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:Ya},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Ya,fontSize:Ha,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Fa.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Fa.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Fa.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Fa.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Fa.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Ya,border:`solid 1px ${Fa.GREYSCALE_0_15}`,color:Fa.GREYSCALE_0_60,marginRight:0,width:Wa,height:Wa},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Fa.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ya,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Fa.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Ha}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ga,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Fa.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Fa.GREYSCALE_25,fontSize:Ga,fontFamily:Za.FONT_FAMILY,fontWeight:Ka,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Fa.TEXT_PRIMARY},"&.Mui-error":{color:Fa.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Fa.TEXT_SECONDARY,content:"'(optional)'",fontWeight:qa,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Fa.TEXT_SECONDARY,content:"'(required)'",fontWeight:qa,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Ha,lineHeight:"16px",backgroundColor:Fa.WHITE,borderRadius:Ya,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Fa.GREYSCALE_0_05}`,borderColor:Fa.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Fa.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Fa.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Fa.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Fa.RED}`,boxShadow:`0px 0px 0px 1px ${Fa.RED}, inset 0 2px 0 0 ${Fa.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Fa.GREYSCALE_0_10}`,borderColor:Fa.GREYSCALE_0_10,backgroundColor:Fa.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Fa.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Fa.GREYSCALE_0_15,borderRadius:Ya,boxShadow:`inset 0 2px 0 0 ${Fa.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>yn.jsx(Ud,{...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:Fa.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Fa.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Fa.GREYSCALE_0_03},"&:active":{backgroundColor:Fa.GREYSCALE_0_10},"&:focus":{backgroundColor:Fa.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Fa.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Fa.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Fa.GREYSCALE_0_30,"&:hover":{backgroundColor:Fa.GREYSCALE_0_0,borderColor:Fa.GREYSCALE_0_15},"& ~svg":{color:Fa.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Fa.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ya}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Fa.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Fa.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Fa.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Ha,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ga,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ga,fontWeight:Ka,color:Fa.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Ka}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Fa.GREYSCALE_0_15}, 0px 0px 0px 1px ${Fa.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:yn.jsx(Xd,{}),checkedIcon:yn.jsx(Vd,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Fa.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Fa.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Fa.GREEN_PALE,boxShadow:`0 0 0 3px ${bo(Fa.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Fa.BLUE_PALE,boxShadow:`0 0 0 3px ${bo(Fa.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Fa.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Fa.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:yn.jsx(Jd,{}),checkedIcon:yn.jsx(Yd,{}),indeterminateIcon:yn.jsx(Kd,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ya,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Fa.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Fa.GREYSCALE_0_55,color:Fa.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:Fa.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Fa.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Fa.GREYSCALE_0_55,"&:hover":{color:Fa.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:Fa.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Fa.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Ha,color:Fa.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Ka},secondary:{fontSize:Ga,color:Fa.GREYSCALE_45,fontWeight:qa,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Ha,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Ha,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Fa.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ga,borderBottom:`solid 1px ${Fa.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Ha,color:Fa.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Fa.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Fa.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Fa.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:Fa.RED}}},"&.Mui-focusVisible":{backgroundColor:Fa.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:Fa.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:Fa.GREEN,height:"24px","&.Mui-disabled":{color:Fa.GREYSCALE_0_15}},rail:{backgroundColor:Fa.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Fa.GREYSCALE_0_05}`,borderRadius:Ya,boxShadow:`inset 0px 0px 0px 1px ${Fa.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Fa.GREYSCALE_0_05}`,borderRadius:Ya},thumb:{height:"16px",width:"16px",borderRadius:Ya,backgroundColor:Fa.WHITE,boxShadow:`0px 1px 2px 0px ${Fa.GREYSCALE_0_15}, 0px 0px 0px 1px ${Fa.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ya,boxShadow:`0 2px 4px 0 ${Fa.GREYSCALE_0_30}, 0 0 0 1px ${Fa.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Fa.GREYSCALE_0_15}, 0 0 0 1px ${Fa.GREYSCALE_0_06}, 0 0 0 2px ${Fa.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Fa.GREYSCALE_0_15}, 0 0 0 1px ${Fa.GREYSCALE_0_06}, 0 0 0 2px ${Fa.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Fa.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Fa.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Fa.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Fa.GREYSCALE_0_15},markLabel:{color:Fa.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Fa.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Fa.WHITE,color:Fa.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:Fa.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:Fa.GREEN_PALE,boxShadow:`0 0 0 3px ${bo(Fa.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Fa.BLUE_PALE,boxShadow:`0 0 0 3px ${bo(Fa.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Fa.GREYSCALE_0_15,borderRadius:Ya},thumb:{height:"16px",width:"16px",borderRadius:Ya,backgroundColor:Fa.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:Ha,fontWeight:Ka,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Fa.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Fa.MISC_FOCUS_BORDER}`,backgroundColor:Fa.GREYSCALE_0_03,borderRadius:Ya},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Fa.GREYSCALE_25,"&.Mui-selected":{color:Fa.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Ha,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Ya,"&:hover":{backgroundColor:Fa.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 ${Fa.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Fa.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Ya,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Fa.GREYSCALE_0_05},"&:hover":{backgroundColor:Fa.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Fa.GREYSCALE_85}`,borderRight:`1px solid ${Fa.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Ka,backgroundColor:Fa.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:Fa.GREYSCALE_98,borderBottom:`1px solid ${Fa.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Fa.GREYSCALE_85}`,borderTop:`1px solid ${Fa.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Fa.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Fa.GREYSCALE_0_05,"&:hover":{backgroundColor:Fa.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Fa.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>yn.jsx(Zd,{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 ${Fa.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Ha,borderRadius:Ya,padding:"7px 16px",border:`1px solid ${Fa.GREYSCALE_0_15}`,backgroundColor:Fa.GREYSCALE_100_60,color:Fa.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Fa.GREYSCALE_0_10,border:`1px solid ${Fa.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Fa.GREYSCALE_0_03,border:`1px solid ${Fa.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Fa.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Fa.MISC_FOCUS_BORDER}`,border:`1px solid ${Fa.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Fa.GREYSCALE_25,backgroundColor:Fa.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Fa.GREYSCALE_0_10,border:`1px solid ${Fa.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ga,height:24,width:24,padding:7},sizeLarge:{fontSize:Ua,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Ha,borderRadius:Ya}}},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:Fa.GREYSCALE_20},tooltip:{backgroundColor:Fa.GREYSCALE_20,fontSize:Ga,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const eu=e=>({mode:"light",primary:{ultraLight:Fa.GREEN_ULTRA_LIGHT,light:Fa.GREEN_PALE,main:Fa.GREEN,dark:Fa.GREEN_DARK,extraDark:Fa.GREEN_EXTRA_DARK,contrastText:Fa.WHITE},secondary:{ultraLight:Fa.BLUE_ULTRA_LIGHT,light:Fa.BLUE_PALE,main:Fa.BLUE,dark:Fa.BLUE_DARK,extraDark:Fa.BLUE_EXTRA_DARK,contrastText:Fa.WHITE},error:{ultraLight:Fa.RED_ULTRA_LIGHT,light:Fa.RED_PALE,main:Fa.RED,dark:Fa.RED_DARK,extraDark:Fa.RED_EXTRA_DARK,contrastText:Fa.WHITE},warning:{ultraLight:Fa.ORANGE_ULTRA_LIGHT,light:Fa.ORANGE_PALE,main:Fa.ORANGE,dark:Fa.ORANGE_DARK,extraDark:Fa.ORANGE_EXTRA_DARK,contrastText:Fa.WHITE},success:{ultraLight:Fa.GREEN_ULTRA_LIGHT,light:Fa.GREEN_PALE,main:Fa.GREEN,dark:Fa.GREEN_DARK,extraDark:Fa.GREEN_EXTRA_DARK,contrastText:Fa.WHITE},info:{ultraLight:Fa.BLUE_ULTRA_LIGHT,light:Fa.BLUE_PALE,main:Fa.BLUE,dark:Fa.BLUE_DARK,extraDark:Fa.BLUE_EXTRA_DARK,contrastText:Fa.WHITE},text:{primary:Fa.TEXT_PRIMARY,secondary:Fa.TEXT_SECONDARY,disabled:Fa.GREYSCALE_0_30},action:{hover:Fa.GREYSCALE_0_03,hoverOpacity:.03,selected:Fa.GREYSCALE_0_05,selectedOpacity:.05,focus:Fa.MISC_FOCUS_BORDER},amethyst:{ultraLight:Fa.WHITE,main:Fa.PURPLE,light:Fa.PURPLE_PALE,dark:Fa.PURPLE_DARK,extraDark:Fa.GREYSCALE_0_0,contrastText:Fa.WHITE},background:{paper:Fa.WHITE,default:Fa.GREYSCALE_95},divider:Fa.GREYSCALE_0_15});function tu(e){return xa({components:Qd(),palette:eu(),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:Ha,fontWeightLight:Va,fontWeightRegular:qa,fontWeightMedium:Ka,fontWeightBold:Xa,htmlFontSize:Ha,fontFamily:Za.FONT_FAMILY,button:{fontWeight:Ka,fontSize:Ha,textTransform:"none"},body1:{fontSize:Ua,lineHeight:"24px"},body2:{fontSize:Ha,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Wa,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ua,fontWeight:Ka,lineHeight:"16px"},h6:{fontSize:Ha,fontWeight:Ka,lineHeight:"16px"},caption:{color:Fa.TEXT_SECONDARY},subtitle1:{fontSize:Ha,color:Fa.TEXT_SECONDARY},subtitle2:{fontSize:Ga,color:Fa.TEXT_SECONDARY}},shape:{borderRadius:Ya},direction:e})}class nu{translator;muiTheme;containers={};constructor({translator:e}){this.translator=e}sync=({element:e,sharedContainerUtilities:t,translator:n,containerId:r,dataHandler:o,renderHelper:i,chartList:a})=>{this.translator=n,this.containers[r]={element:e,sharedContainerUtilities:t,dataHandler:o,renderHelper:i,chartList:a}};setMuiTheme=e=>{this.muiTheme=tu(e)};destroy=e=>{delete this.containers[e]}}const ru=["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 ou{embed;translator;charts={};constructor(e,t){this.embed=e,this.translator=t}getCharts=()=>(this.charts=(this.embed?.getRegisteredTypes()??[]).reduce((e,t)=>{if(!ru.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 iu,au={};var su=function(){if(iu)return au;iu=1;var e=T;return au.createRoot=e.createRoot,au.hydrateRoot=e.hydrateRoot,au}();const lu=x((e,t)=>yn.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:yn.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"})})),cu="rgb(89, 89, 89)",du=fn(Cl)({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),uu=fn(Cl)({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),pu=fn(bc,{shouldForwardProp:e=>"width"!==e})(({width:e})=>({"&.MuiList-root":{paddingTop:0,paddingBottom:0,width:e||250,maxHeight:250,overflow:"auto"}})),hu=fn(Ks)({color:cu,fontSize:"12px",fontFamily:"inherit",lineHeight:"24px",margin:"0px"}),fu=fn($c)({"&.MuiListItemIcon-root":{minWidth:32,color:cu,marginRight:"0px"}}),mu=fn(ec)({"&.MuiDivider-root":{borderBottom:"3px solid #595959"}}),bu=fn(Ol)({"&.MuiButton-contained":{backgroundColor:cu,color:"rgb(255, 255, 255)"},"&.MuiButton-outlined":{backgroundColor:"rgb(255, 255, 255)",borderColor:cu,color:cu,border:"1px solid rgb(179, 179, 179)","&:hover":{backgroundColor:"rgb(255, 255, 255)",border:`1px solid ${cu}`}}}),gu=fn(ns)({width:"1em",height:"1em",paddingBottom:"8px"}),vu=fn(ns)({width:"16px",height:"16px"}),yu=({name:e,items:t,onSelect:n})=>yn.jsxs(yn.Fragment,{children:[yn.jsx(Oc,{dense:!0,children:yn.jsx(hu,{noWrap:!0,fontWeight:"bold",children:e})},e),yn.jsx(mu,{}),t.map(e=>yn.jsx(Oc,{divider:!0,disablePadding:!0,disableGutters:!0,children:yn.jsxs(Sc,{sx:{minHeight:"32px",height:"auto"},onClick:()=>{n(e)},disableRipple:!0,dense:!0,children:[e.iconPath?yn.jsx(fu,{children:e.IconDefinition?yn.jsx(e.IconDefinition,{}):yn.jsx(vu,{viewBox:"0 0 16 16",children:yn.jsx("path",{d:e.iconPath})})}):null,yn.jsx(hu,{noWrap:!0,title:e.translation||e.name,children:e.translation||e.name})]})},e.qExtendsId??e.name))]}),xu=({categories:e,anchorEl:t,onClose:n,onSelect:r,width:o})=>{const[i,a]=R(""),s=!!t;return yn.jsxs(td,{open:s,anchorEl:t,onClose:()=>{a(""),n()},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{marginTop:"5px"},children:[yn.jsx(pl,{fullWidth:!0,onChange:e=>{a(e.target.value)},startAdornment:yn.jsx(uc,{position:"start",children:yn.jsx(lu,{})})}),yn.jsx(mu,{}),yn.jsx(pu,{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&&yn.jsx(yu,{name:e.name,items:t,onSelect:r},e.name)})})]})},Eu=({anchorEl:e,onClose:t,dataHandler:n,translator:r,sharedContainerUtilities:o,width:i})=>{const[a,s]=R([]),[l,c]=R({});_(()=>{if(e&&n){(async()=>{const e=await n.getMasterVizList();s(e),c(n.getCharts())})().catch(()=>{})}},[e,n]);const d=[],u=[],p=new Map,h=Object.values(l);if(0===h.length&&0===a.length)return null;h.forEach(e=>{if(!e.libraryInfo||!e.libraryInfo.isThirdParty&&e.libraryInfo.visible)d.push(e);else if(e.libraryInfo.visible)if(e.libraryInfo.bundle?.name){const t=e.libraryInfo.bundle.name,n=p.get(t);n?n.push(e):p.set(t,[e])}else u.push(e)});const f=e=>e.map(e=>({iconPath:e.libraryInfo?.iconPath,IconDefinition:e.libraryInfo?.IconDefinition,name:e.id,translation:e.libraryInfo?.translation||e.libraryInfo?.name||e.id||"",type:e.id})).toSorted((e,t)=>(e.translation||e.name).localeCompare(t.translation||t.name)),m=[{name:r.get("LayoutContainer.Object.MasterItems"),items:a.map(e=>({qExtendsId:e.qExtendsId,iconPath:l[e.visualization]?.libraryInfo?.iconPath,IconDefinition:l[e.visualization]?.libraryInfo?.IconDefinition,name:e.name,type:e.visualization})).toSorted((e,t)=>e.name.localeCompare(t.name))},{name:r.get("LayoutContainer.Object.Charts"),items:d.map(e=>({iconPath:e.libraryInfo?.iconPath||"",IconDefinition:e.libraryInfo?.IconDefinition,name:e.libraryInfo?.name||e.id,type:e.libraryInfo?.template||e.id,translation:e.libraryInfo?.translation||e.id||""})).toSorted((e,t)=>e.translation.localeCompare(t.translation))},{name:r.get("LayoutContainer.Object.CustomObjects"),items:f(u)}];for(const[e,t]of p)m.push({name:e,items:f(t)});return yn.jsx(xu,{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})},Cu=e=>{const t=wu(e);return e.objects?.map(e=>{const{childRefId:n}=e;if(!n)return e;const r=t[n];return r?{...e,id:r}:e})??[]},Su=(e,t)=>e?.qChildList?.qItems?.find(e=>e?.qData?.childRefId===t),wu=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qData?.childRefId;return e[n]=t?.qInfo?.qId,e},{});var Ru=Su,_u=e=>{const t={...e};return t.objects=Cu(t),t},Au=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qInfo?.qId;return e[n]=t.qData?.childRefId,e},{}),ku=e=>e.objects.reduce((e,t)=>(e[t.childRefId]=t,e),{}),Iu=(e,t)=>{if(!e)return t;const n=Su(e,t);return n?.qInfo?.qId};class Lu{layout;app;activeId="";data;properties=void 0;constructor({app:e,data:t}){this.app=e,this.data=t}get activeContainer(){return this.data.containers[this.activeId]}setSelectedChild=e=>{this.activeContainer?.sharedContainerUtilities?.setSelected(e)};addChild=({initProps:e,objectInitProps:t,children:n})=>{if(!this.activeContainer)return;const{dataHandler:r}=this.activeContainer;if(e?.qExtendsId){const{qExtendsId:o,qInfo:i}=e;return r?.addMasterObjectAsChild({initProps:{qExtendsId:o,qInfo:i},objectInitProps:t,children:n})}return r?.addVizAsChild({type:e?.visualization,initProps:e,objectInitProps:t,children:n})};deleteChild=async e=>{if(!this.activeContainer)return;const{dataHandler:t}=this.activeContainer;await(t?.deleteChildren([e]))};duplicateChild=async e=>{const{childRefId:t,...n}=e,r=this.getEngineId(t);if(!r)return;const o=await(this.app?.getObject(r));if(o&&this.activeContainer){const{sharedContainerUtilities:e}=this.activeContainer,t=await o.getFullPropertyTree(),r=t.qProperty,i=t.qChildren,a=await this.addChild({initProps:r,children:i,objectInitProps:n});a&&e?.setSelected([a.id])}};openAddChildPopover=e=>{if(this.activeContainer&&this.activeContainer.dataHandler&&this.data.muiTheme){const t=((e,t)=>{const n=e.getElementsByClassName(t);let r;return 0===n.length?(r=document.createElement("div"),r.className=t,e.appendChild(r)):r=n[0],su.createRoot(r)})(this.activeContainer.element,"add-child-popover"),n=()=>{t.unmount()};t?.render(yn.jsx(Da,{theme:this.data.muiTheme,children:yn.jsx(Eu,{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=>Iu(this.layout,e);setProperties=e=>{this.properties=e};canAddDimension=()=>!1;canAddMeasure=()=>!1;canColorBy=()=>!1;getDimensions=()=>[];getMeasures=()=>[];minDimensions=()=>0;minMeasures=()=>0;maxDimensions=()=>0;maxMeasures=()=>0}const Tu="object",Ou=["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 Pu=e=>({value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}});function Mu({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=>Pu(e)),{value:"DefaultHeader",label:t.get("properties.allFonts"),metaText:t.get("properties.default"),groupHeader:!0},...Ou.map(e=>Pu(e))]}({theme:e,translator:t,defaultValue:o()})}}var ju=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"];const Nu=e=>({value:e,label:e,groupHeader:!1,disabled:!1});function $u({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=>Nu(e)),{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0},...ju.map(e=>Nu(e))]}({theme:e,translator:t,defaultValue:o()})}}function zu({theme:e,translator:t,id:n,path:r}){return{fontFamily:Mu({theme:e,translator:t,id:n,path:r}),fontSize:$u({theme:e,translator:t,id:n,path:r})}}const Du=["__proto__","constructor"],Bu=e=>{if(Du.some(t=>e.includes(t)))throw new Error("font-resolver: Forbidden property.")};var Fu,Gu,Hu,Uu=function(){if(Gu)return Fu;Gu=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 Fu=function e(){var t,n,r,l,c,d,u=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},p=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=s(u,n),u!==(l=s(t,n))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,d=r&&o(r)?r:[]):d=r&&i(r)?r:{},a(u,{name:n,newValue:e(f,d,l)})):void 0!==l&&a(u,{name:n,newValue:l}));return u},Fu}();function Wu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Yu(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Vu(){}(Hu=Uu)&&Hu.__esModule&&Object.prototype.hasOwnProperty.call(Hu,"default")&&Hu.default;var qu=.7,Ku=1/qu,Xu="\\s*([+-]?\\d+)\\s*",Zu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ju="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qu=/^#([0-9a-f]{3,8})$/,ep=new RegExp(`^rgb\\(${Xu},${Xu},${Xu}\\)$`),tp=new RegExp(`^rgb\\(${Ju},${Ju},${Ju}\\)$`),np=new RegExp(`^rgba\\(${Xu},${Xu},${Xu},${Zu}\\)$`),rp=new RegExp(`^rgba\\(${Ju},${Ju},${Ju},${Zu}\\)$`),op=new RegExp(`^hsl\\(${Zu},${Ju},${Ju}\\)$`),ip=new RegExp(`^hsla\\(${Zu},${Ju},${Ju},${Zu}\\)$`),ap={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 sp(){return this.rgb().formatHex()}function lp(){return this.rgb().formatRgb()}function cp(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Qu.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?dp(t):3===n?new fp(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?up(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?up(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=ep.exec(e))?new fp(t[1],t[2],t[3],1):(t=tp.exec(e))?new fp(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=np.exec(e))?up(t[1],t[2],t[3],t[4]):(t=rp.exec(e))?up(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=op.exec(e))?xp(t[1],t[2]/100,t[3]/100,1):(t=ip.exec(e))?xp(t[1],t[2]/100,t[3]/100,t[4]):ap.hasOwnProperty(e)?dp(ap[e]):"transparent"===e?new fp(NaN,NaN,NaN,0):null}function dp(e){return new fp(e>>16&255,e>>8&255,255&e,1)}function up(e,t,n,r){return r<=0&&(e=t=n=NaN),new fp(e,t,n,r)}function pp(e){return e instanceof Vu||(e=cp(e)),e?new fp((e=e.rgb()).r,e.g,e.b,e.opacity):new fp}function hp(e,t,n,r){return 1===arguments.length?pp(e):new fp(e,t,n,null==r?1:r)}function fp(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function mp(){return`#${yp(this.r)}${yp(this.g)}${yp(this.b)}`}function bp(){const e=gp(this.opacity);return`${1===e?"rgb(":"rgba("}${vp(this.r)}, ${vp(this.g)}, ${vp(this.b)}${1===e?")":`, ${e})`}`}function gp(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vp(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function yp(e){return((e=vp(e))<16?"0":"")+e.toString(16)}function xp(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Cp(e,t,n,r)}function Ep(e){if(e instanceof Cp)return new Cp(e.h,e.s,e.l,e.opacity);if(e instanceof Vu||(e=cp(e)),!e)return new Cp;if(e instanceof Cp)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 Cp(a,s,l,e.opacity)}function Cp(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Sp(e){return(e=(e||0)%360)<0?e+360:e}function wp(e){return Math.max(0,Math.min(1,e||0))}function Rp(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Wu(Vu,cp,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sp,formatHex:sp,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ep(this).formatHsl()},formatRgb:lp,toString:lp}),Wu(fp,hp,Yu(Vu,{brighter(e){return e=null==e?Ku:Math.pow(Ku,e),new fp(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?qu:Math.pow(qu,e),new fp(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fp(vp(this.r),vp(this.g),vp(this.b),gp(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:mp,formatHex:mp,formatHex8:function(){return`#${yp(this.r)}${yp(this.g)}${yp(this.b)}${yp(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:bp,toString:bp})),Wu(Cp,function(e,t,n,r){return 1===arguments.length?Ep(e):new Cp(e,t,n,null==r?1:r)},Yu(Vu,{brighter(e){return e=null==e?Ku:Math.pow(Ku,e),new Cp(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?qu:Math.pow(qu,e),new Cp(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 fp(Rp(e>=240?e-240:e+120,o,r),Rp(e,o,r),Rp(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Cp(Sp(this.h),wp(this.s),wp(this.l),gp(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=gp(this.opacity);return`${1===e?"hsl(":"hsla("}${Sp(this.h)}, ${100*wp(this.s)}%, ${100*wp(this.l)}%${1===e?")":`, ${e})`}`}}));const _p=Math.PI/180,Ap=180/Math.PI,kp=.96422,Ip=.82521,Lp=4/29,Tp=6/29,Op=3*Tp*Tp,Pp=Tp*Tp*Tp;function Mp(e){if(e instanceof jp)return new jp(e.l,e.a,e.b,e.opacity);if(e instanceof Bp)return Fp(e);e instanceof fp||(e=pp(e));var t,n,r=Dp(e.r),o=Dp(e.g),i=Dp(e.b),a=Np((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Np((.4360747*r+.3850649*o+.1430804*i)/kp),n=Np((.0139322*r+.0971045*o+.7141733*i)/Ip)),new jp(116*a-16,500*(t-a),200*(a-n),e.opacity)}function jp(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Np(e){return e>Pp?Math.pow(e,1/3):e/Op+Lp}function $p(e){return e>Tp?e*e*e:Op*(e-Lp)}function zp(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Dp(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Bp(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Fp(e){if(isNaN(e.h))return new jp(e.l,0,0,e.opacity);var t=e.h*_p;return new jp(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Wu(jp,function(e,t,n,r){return 1===arguments.length?Mp(e):new jp(e,t,n,null==r?1:r)},Yu(Vu,{brighter(e){return new jp(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new jp(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 fp(zp(3.1338561*(t=kp*$p(t))-1.6168667*(e=1*$p(e))-.4906146*(n=Ip*$p(n))),zp(-.9787684*t+1.9161415*e+.033454*n),zp(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Wu(Bp,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Bp)return new Bp(e.h,e.c,e.l,e.opacity);if(e instanceof jp||(e=Mp(e)),0===e.a&&0===e.b)return new Bp(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ap;return new Bp(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Bp(e,t,n,null==r?1:r)},Yu(Vu,{brighter(e){return new Bp(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Bp(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Fp(this).rgb()}}));var Gp=e=>()=>e;function Hp(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Gp(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):Gp(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=hp(e)).r,(t=hp(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 Up="center",Wp="bottom";function Yp(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:Up,condition:({layoutService:e})=>{if(!e)return!1;const{x:t,y:n}=e.meta.size;return t*n===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Up,condition:({layoutService:e})=>!!e&&e.getHyperCubeValue("qMeasureInfo").every(e=>"NaN"===e.qMin&&"NaN"===e.qMax)},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Up,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:Up},{key:"DataRangeIncludingZero",alignment:Wp},{key:"LimitedData",alignment:Wp},{key:"NegativeOrZeroValues",alignment:Wp}].reduce((e,t)=>(e[t.key]=t,e),{});const Vp=["__proto__","constructor"];function qp(e,t,n){if(void 0===e||void 0===t)return;const r=t.split("."),o=r[r.length-1];if(Vp.some(e=>r.includes(e)))return;let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0===i[t]&&(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n?i[o]=n:delete i[o]}function Kp(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Xp(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Jp)):void 0===t&&(t=Zp);for(var n,r,o,i,a,s=new th(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 th(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(eh)}function Zp(e){return e.children}function Jp(e){return Array.isArray(e)?e[1]:null}function Qp(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function eh(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function th(e){this.data=e,this.depth=this.height=0,this.parent=null}var nh;th.prototype=Xp.prototype={constructor:th,count:function(){return this.eachAfter(Kp)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return Xp(this).eachBefore(Qp)},[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)}},nh=function(e){
87
+ `),_s.rippleVisible,Ps,550,({theme:e})=>e.transitions.easing.easeInOut,_s.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,_s.child,_s.childLeaving,Ms,550,({theme:e})=>e.transitions.easing.easeInOut,_s.childPulsate,js,({theme:e})=>e.transitions.easing.easeInOut),zs=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=G(n,ks),[s,l]=v.useState([]),c=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const u=v.useRef(!1),p=Lo(),h=v.useRef(null),f=v.useRef(null),m=v.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,yn.jsx($s,{classes:{ripple:Vr(o.ripple,_s.ripple),rippleVisible:Vr(o.rippleVisible,_s.rippleVisible),ripplePulsate:Vr(o.ripplePulsate,_s.ripplePulsate),child:Vr(o.child,_s.child),childLeaving:Vr(o.childLeaving,_s.childLeaving),childPulsate:Vr(o.childPulsate,_s.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,d.current=a},[o]),b=v.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&u.current)return void(u.current=!1);"touchstart"===(null==e?void 0:e.type)&&(u.current=!0);const s=a?null:f.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,d,b;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),d=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),d=Math.round(n-l.top)}if(i)b=Math.sqrt((2*l.width**2+l.height**2)/3),b%2==0&&(b+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-d),d)+2;b=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:o,rippleX:c,rippleY:d,rippleSize:b,cb:n})},p.start(80,()=>{h.current&&(h.current(),h.current=null)})):m({pulsate:o,rippleX:c,rippleY:d,rippleSize:b,cb:n})},[r,m,p]),g=v.useCallback(()=>{b({},{pulsate:!0})},[b]),y=v.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,()=>{y(e,t)});h.current=null,l(e=>e.length>0?e.slice(1):e),d.current=t},[p]);return v.useImperativeHandle(t,()=>({pulsate:g,start:b,stop:y}),[g,b,y]),yn.jsx(Ns,F({className:Vr(_s.root,o.root,i),ref:f},a,{children:yn.jsx(ys,{component:null,exit:!0,children:s})}))});function Ds(e){return Xr("MuiButtonBase",e)}const Bs=Zr("MuiButtonBase",["root","disabled","focusVisible"]),Fs=["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"],Gs=$a("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"},[`&.${Bs.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Hs=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:u=!1,LinkComponent:p="a",onBlur:h,onClick:f,onContextMenu:m,onDragLeave:b,onFocus:g,onFocusVisible:y,onKeyDown:x,onKeyUp:E,onMouseDown:C,onMouseLeave:S,onMouseUp:w,onTouchEnd:R,onTouchMove:_,onTouchStart:k,tabIndex:A=0,TouchRippleProps:I,touchRippleRef:L,type:T}=n,O=G(n,Fs),P=v.useRef(null),M=v.useRef(null),j=_o(M,L),{isFocusVisibleRef:N,onFocus:$,onBlur:z,ref:D}=Do(),[B,H]=v.useState(!1);l&&B&&H(!1),v.useImperativeHandle(r,()=>({focusVisible:()=>{H(!0),P.current.focus()}}),[]);const[U,W]=v.useState(!1);v.useEffect(()=>{W(!0)},[]);const Y=U&&!c&&!l;function V(e,t,n=d){return Ro(r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0})}v.useEffect(()=>{B&&u&&!c&&U&&M.current.pulsate()},[c,u,B,U]);const q=V("start",C),K=V("stop",m),X=V("stop",b),Z=V("stop",w),J=V("stop",e=>{B&&e.preventDefault(),S&&S(e)}),Q=V("start",k),ee=V("stop",R),te=V("stop",_),ne=V("stop",e=>{z(e),!1===N.current&&H(!1),h&&h(e)},!1),re=Ro(e=>{P.current||(P.current=e.currentTarget),$(e),!0===N.current&&(H(!0),y&&y(e)),g&&g(e)}),oe=()=>{const e=P.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ie=v.useRef(!1),ae=Ro(e=>{u&&!ie.current&&B&&M.current&&" "===e.key&&(ie.current=!0,M.current.stop(e,()=>{M.current.start(e)})),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!l&&(e.preventDefault(),f&&f(e))}),se=Ro(e=>{u&&" "===e.key&&M.current&&B&&!e.defaultPrevented&&(ie.current=!1,M.current.stop(e,()=>{M.current.pulsate(e)})),E&&E(e),f&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&f(e)});let le=s;"button"===le&&(O.href||O.to)&&(le=p);const ce={};"button"===le?(ce.type=void 0===T?"button":T,ce.disabled=l):(O.href||O.to||(ce.role="button"),l&&(ce["aria-disabled"]=l));const de=_o(t,D,P),ue=F({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:d,focusRipple:u,tabIndex:A,focusVisible:B}),pe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Uo({root:["root",t&&"disabled",n&&"focusVisible"]},Ds,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return yn.jsxs(Gs,F({as:le,className:Vr(pe.root,a),ownerState:ue,onBlur:ne,onClick:f,onContextMenu:K,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:q,onMouseLeave:J,onMouseUp:Z,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:de,tabIndex:l?-1:A,type:T},ce,O,{children:[i,Y?yn.jsx(zs,F({ref:j,center:o},I)):null]}))});function Us(e){return Xr("MuiTypography",e)}Zr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Ws=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ys=$a("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${zn(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>F({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"},qs={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ks=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiTypography"}),r=(e=>qs[e]||e)(n.color),o=Gr(F({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:u="body1",variantMapping:p=Vs}=o,h=G(o,Ws),f=F({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:d,variant:u,variantMapping:p}),m=s||(d?"p":p[u]||Vs[u])||"span",b=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Uo({root:["root",i,"inherit"!==e.align&&`align${zn(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Us,a)})(f);return yn.jsx(Ys,F({as:m,ref:t,ownerState:f,className:Vr(b.root,a)},h))});const Xs=v.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=v.useState(null),s=_o(v.isValidElement(n)?Xo(n):null,t);if(po(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),po(()=>{if(i&&!o)return Eo(t,i),()=>{Eo(t,null)}},[t,i,o]),o){if(v.isValidElement(n)){const e={ref:s};return v.cloneElement(n,e)}return yn.jsx(v.Fragment,{children:n})}return yn.jsx(v.Fragment,{children:i?L.createPortal(n,i):i})}),Zs=["onChange","maxRows","minRows","style","value"];function Js(e){return parseInt(e,10)||0}const Qs={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function el(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const tl=v.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=G(e,Zs),{current:l}=v.useRef(null!=a),c=v.useRef(null),d=_o(t,c),u=v.useRef(null),p=v.useRef(null),h=v.useCallback(()=>{const t=c.current,n=p.current;if(!t||!n)return;const i=xo(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=Js(i.paddingBottom)+Js(i.paddingTop),l=Js(i.borderBottomWidth)+Js(i.borderTopWidth),d=n.scrollHeight;n.value="x";const u=n.scrollHeight;let h=d;o&&(h=Math.max(Number(o)*u,h)),r&&(h=Math.min(Number(r)*u,h)),h=Math.max(h,u);return{outerHeightStyle:h+("border-box"===a?s+l:0),overflowing:Math.abs(h-d)<=1}},[r,o,e.placeholder]),f=Ro(()=>{const e=c.current,t=h();if(!e||!t||el(t))return!1;const n=t.outerHeightStyle;return null!=u.current&&u.current!==n}),m=v.useCallback(()=>{const e=c.current,t=h();if(!e||!t||el(t))return;const n=t.outerHeightStyle;u.current!==n&&(u.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),b=v.useRef(-1);po(()=>{const e=vo(m),t=null==c?void 0:c.current;if(!t)return;const n=xo(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]),po(()=>{m()});return yn.jsxs(v.Fragment,{children:[yn.jsx("textarea",F({value:a,onChange:e=>{l||m(),n&&n(e)},ref:d,rows:o,style:i},s)),yn.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:F({},Qs,i,{paddingTop:0,paddingBottom:0})})]})});const nl=v.createContext(void 0);function rl(){return v.useContext(nl)}function ol(e){return yn.jsx(Br,F({},e,{defaultTheme:Ea,themeId:B}))}function il(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function al(e){return Xr("MuiInputBase",e)}const sl=Zr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ll=["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"],cl=$a("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${zn(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})(({theme:e,ownerState:t})=>F({},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",[`&.${sl.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&F({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),dl=$a("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=F({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 F({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] + .${sl.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},[`&.${sl.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"})}),ul=yn.jsx(ol,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),pl=v.forwardRef(function(e,t){var n;const r=Ja({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:c={},defaultValue:d,disabled:u,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:f=!1,id:m,inputComponent:b="input",inputProps:g={},inputRef:y,maxRows:x,minRows:E,multiline:C=!1,name:S,onBlur:w,onChange:R,onClick:_,onFocus:k,onKeyDown:A,onKeyUp:I,placeholder:L,readOnly:T,renderSuffix:O,rows:P,slotProps:M={},slots:j={},startAdornment:N,type:$="text",value:D}=r,B=G(r,ll),H=null!=g.value?g.value:D,{current:U}=v.useRef(null!=H),W=v.useRef(),Y=v.useCallback(e=>{},[]),V=_o(W,y,g.ref,Y),[q,K]=v.useState(!1),X=rl(),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:q,v.useEffect(()=>{!X&&u&&q&&(K(!1),w&&w())},[X,u,q,w]);const J=X&&X.onFilled,Q=X&&X.onEmpty,ee=v.useCallback(e=>{!function(e,t=!1){return e&&(il(e.value)&&""!==e.value||t&&il(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():J&&J()},[J,Q]);po(()=>{U&&ee({value:H})},[H,ee,U]);v.useEffect(()=>{ee(W.current)},[]);let te=b,ne=g;C&&"input"===te&&(ne=F(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:x,minRows:E},ne),te=tl);v.useEffect(()=>{X&&X.setAdornedStart(Boolean(N))},[X,N]);const re=F({},r,{color:Z.color||"primary",disabled:Z.disabled,endAdornment:h,error:Z.error,focused:Z.focused,formControl:X,fullWidth:f,hiddenLabel:Z.hiddenLabel,multiline:C,size:Z.size,startAdornment:N,type:$}),oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:u,size:p,startAdornment:h,type:f}=e;return Uo({root:["root",`color${zn(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${zn(p)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",u&&"readOnly"]},al,t)})(re),ie=j.root||l.Root||cl,ae=M.root||c.root||{},se=j.input||l.Input||dl;return ne=F({},ne,null!=(n=M.input)?n:c.input),yn.jsxs(v.Fragment,{children:[!p&&ul,yn.jsxs(ie,F({},ae,!Wo(ie)&&{ownerState:F({},re,ae.ownerState)},{ref:t,onClick:e=>{W.current&&e.currentTarget===e.target&&W.current.focus(),_&&_(e)}},B,{className:Vr(oe.root,ae.className,s,T&&"MuiInputBase-readOnly"),children:[N,yn.jsx(nl.Provider,{value:null,children:yn.jsx(se,F({ownerState:re,"aria-invalid":Z.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:Z.disabled,id:m,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?W.current:{value:"x"})},name:S,placeholder:L,readOnly:T,required:Z.required,rows:P,value:H,onKeyDown:A,onKeyUp:I,type:$},ne,!Wo(se)&&{as:te,ownerState:F({},re,ne.ownerState)},{ref:V,className:Vr(oe.input,ne.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),g.onBlur&&g.onBlur(e),X&&X.onBlur?X.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!U){const t=e.target||W.current;if(null==t)throw new Error(z(1));ee({value:t.value})}g.onChange&&g.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Z.disabled?e.stopPropagation():(k&&k(e),g.onFocus&&g.onFocus(e),X&&X.onFocus?X.onFocus(e):K(!0))}}))}),h,O?O(F({},Z,{startAdornment:N})):null]}))]})}),hl=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],fl={entering:{opacity:1},entered:{opacity:1}},ml=v.forwardRef(function(e,t){const n=Ca(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:d,onEntering:u,onExit:p,onExited:h,onExiting:f,style:m,timeout:b=r,TransitionComponent:g=hs}=e,y=G(e,hl),x=v.useRef(null),E=_o(x,Xo(a),t),C=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=C(u),w=C((e,t)=>{xs(e);const r=Es({style:m,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),R=C(d),_=C(f),k=C(e=>{const t=Es({style:m,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),A=C(h);return yn.jsx(g,F({appear:i,in:l,nodeRef:x,onEnter:w,onEntered:R,onEntering:S,onExit:k,onExited:A,onExiting:_,addEndListener:e=>{o&&o(x.current,e)},timeout:b},y,{children:(e,t)=>v.cloneElement(a,F({style:F({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},fl[e],m,a.props.style),ref:E},t))}))});function bl(e){return Xr("MuiBackdrop",e)}Zr("MuiBackdrop",["root","invisible"]);const gl=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],vl=$a("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>F({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"})),yl=v.forwardRef(function(e,t){var n,r,o;const i=Ja({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:d={},invisible:u=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=ml,transitionDuration:b}=i,g=G(i,gl),v=F({},i,{component:l,invisible:u}),y=(e=>{const{classes:t,invisible:n}=e;return Uo({root:["root",n&&"invisible"]},bl,t)})(v),x=null!=(n=h.root)?n:d.root;return yn.jsx(m,F({in:p,timeout:b},g,{children:yn.jsx(vl,F({"aria-hidden":!0},x,{as:null!=(r=null!=(o=f.root)?o:c.Root)?r:l,className:Vr(y.root,s,null==x?void 0:x.className),ownerState:F({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),xl=Zr("MuiBox",["root"]),El=xa(),Cl=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Cn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Tr);return v.forwardRef(function(e,a){const s=zr(n),l=Gr(e),{className:c,component:d="div"}=l,u=G(l,qr);return yn.jsx(i,F({as:d,ref:a,className:Vr(c,o?o(r):r),theme:t&&s[t]||s},u))})}({themeId:B,defaultTheme:El,defaultClassName:xl.root,generateClassName:Wr.generate});function Sl(e){return Xr("MuiButton",e)}const wl=Zr("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"]),Rl=v.createContext({}),_l=v.createContext(void 0),kl=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Al=e=>F({},"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}}),Il=$a(Hs,{shouldForwardProp:e=>Na(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${zn(n.color)}`],t[`size${zn(n.size)}`],t[`${n.variant}Size${zn(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 F({},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":F({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:xi.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})`:xi.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})`:xi.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":F({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${wl.focusVisible}`]:F({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${wl.disabled}`]:F({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 ${xi.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"},[`&.${wl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${wl.disabled}`]:{boxShadow:"none"}}),Ll=$a("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${zn(n.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Al(e))),Tl=$a("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${zn(n.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Al(e))),Ol=v.forwardRef(function(e,t){const n=v.useContext(Rl),r=v.useContext(_l),o=Ja({props:uo(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:u=!1,endIcon:p,focusVisibleClassName:h,fullWidth:f=!1,size:m="medium",startIcon:b,type:g,variant:y="text"}=o,x=G(o,kl),E=F({},o,{color:a,component:s,disabled:c,disableElevation:d,disableFocusRipple:u,fullWidth:f,size:m,type:g,variant:y}),C=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return F({},a,Uo({root:["root",i,`${i}${zn(t)}`,`size${zn(o)}`,`${i}Size${zn(o)}`,`color${zn(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${zn(o)}`],endIcon:["icon","endIcon",`iconSize${zn(o)}`]},Sl,a))})(E),S=b&&yn.jsx(Ll,{className:C.startIcon,ownerState:E,children:b}),w=p&&yn.jsx(Tl,{className:C.endIcon,ownerState:E,children:p}),R=r||"";return yn.jsxs(Il,F({ownerState:E,className:Vr(n.className,C.root,l,R),component:s,disabled:c,focusRipple:!u,focusVisibleClassName:Vr(C.focusVisible,h),ref:t,type:g},x,{classes:C,children:[S,i,w]}))});function Pl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ml(e){return parseInt(xo(e).getComputedStyle(e).paddingRight,10)||0}function jl(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&&Pl(e,o)})}function Nl(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function $l(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=yo(e);return t.body===e?xo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Bo(yo(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Ml(r)+e}px`;const t=yo(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Ml(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=yo(r).body;else{const t=r.parentElement,n=xo(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 zl=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Dl(e){const t=[],n=[];return Array.from(e.querySelectorAll(zl)).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 Bl(){return!0}function Fl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Dl,isEnabled:a=Bl,open:s}=e,l=v.useRef(!1),c=v.useRef(null),d=v.useRef(null),u=v.useRef(null),p=v.useRef(null),h=v.useRef(!1),f=v.useRef(null),m=_o(Xo(t),f),b=v.useRef(null);v.useEffect(()=>{s&&f.current&&(h.current=!n)},[n,s]),v.useEffect(()=>{if(!s||!f.current)return;const e=yo(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),h.current&&f.current.focus()),()=>{o||(u.current&&u.current.focus&&(l.current=!0,u.current.focus()),u.current=null)}},[s]),v.useEffect(()=>{if(!s||!f.current)return;const e=yo(f.current),t=t=>{b.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(l.current=!0,d.current&&d.current.focus())},n=()=>{const t=f.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=i(f.current)),n.length>0){var o,s;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=b.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,a,s,i]);const g=e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0};return yn.jsxs(v.Fragment,{children:[yn.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:c,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:m,onFocus:e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),yn.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:d,"data-testid":"sentinelEnd"})]})}const Gl=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&&Pl(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);jl(t,e.mount,e.modalRef,r,!0);const o=Nl(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=Nl(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=$l(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Nl(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&&Pl(e.modalRef,t),jl(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&&Pl(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Hl(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Gl,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:d,rootRef:u}=e,p=v.useRef({}),h=v.useRef(null),f=v.useRef(null),m=_o(f,u),[b,g]=v.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const E=()=>(p.current.modalRef=f.current,p.current.mount=h.current,p.current),C=()=>{o.mount(E(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},S=Ro(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||yo(h.current).body;o.add(E(),e),f.current&&C()}),w=v.useCallback(()=>o.isTopModal(E()),[o]),R=Ro(e=>{h.current=e,e&&(d&&w()?C():f.current&&Pl(f.current,x))}),_=v.useCallback(()=>{o.remove(E(),x)},[x,o]);v.useEffect(()=>()=>{_()},[_]),v.useEffect(()=>{d?S():y&&i||_()},[d,_,y,i,S]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},A=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Yo(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=F({},n,t);return F({role:"presentation"},r,{onKeyDown:k(r),ref:m})},getBackdropProps:(e={})=>F({"aria-hidden":!0},e,{onClick:A(e),open:d}),getTransitionProps:()=>({onEnter:go(()=>{g(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:go(()=>{g(!0),s&&s(),i&&_()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}function Ul(e){return Xr("MuiModal",e)}Zr("MuiModal",["root","hidden","backdrop"]);const Wl=["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"],Yl=$a("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})=>F({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Vl=$a(yl,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ql=v.forwardRef(function(e,t){var n,r,o,i,a,s;const l=Ja({name:"MuiModal",props:e}),{BackdropComponent:c=Vl,BackdropProps:d,className:u,closeAfterTransition:p=!1,children:h,container:f,component:m,components:b={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:E=!1,disablePortal:C=!1,disableRestoreFocus:S=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:_=!1,onBackdropClick:k,open:A,slotProps:I,slots:L}=l,T=G(l,Wl),O=F({},l,{closeAfterTransition:p,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:E,disablePortal:C,disableRestoreFocus:S,disableScrollLock:w,hideBackdrop:R,keepMounted:_}),{getRootProps:P,getBackdropProps:M,getTransitionProps:j,portalRef:N,isTopModal:$,exited:z,hasTransition:D}=Hl(F({},O,{rootRef:t})),B=F({},O,{exited:z}),H=(e=>{const{open:t,exited:n,classes:r}=e;return Uo({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Ul,r)})(B),U={};if(void 0===h.props.tabIndex&&(U.tabIndex="-1"),D){const{onEnter:e,onExited:t}=j();U.onEnter=e,U.onExited=t}const W=null!=(n=null!=(r=null==L?void 0:L.root)?r:b.Root)?n:Yl,Y=null!=(o=null!=(i=null==L?void 0:L.backdrop)?i:b.Backdrop)?o:c,V=null!=(a=null==I?void 0:I.root)?a:g.root,q=null!=(s=null==I?void 0:I.backdrop)?s:g.backdrop,K=Ko({elementType:W,externalSlotProps:V,externalForwardedProps:T,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:B,className:Vr(u,null==V?void 0:V.className,null==H?void 0:H.root,!B.open&&B.exited&&(null==H?void 0:H.hidden))}),X=Ko({elementType:Y,externalSlotProps:q,additionalProps:d,getSlotProps:e=>M(F({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Vr(null==q?void 0:q.className,null==d?void 0:d.className,null==H?void 0:H.backdrop),ownerState:B});return _||A||D&&!z?yn.jsx(Xs,{ref:N,container:f,disablePortal:C,children:yn.jsxs(W,F({},K,{children:[!R&&c?yn.jsx(Y,F({},X)):null,yn.jsx(Fl,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:S,isEnabled:$,open:A,children:v.cloneElement(h,U)})]}))}):null});function Kl(e){return Xr("MuiDivider",e)}const Xl=Zr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Zl=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Jl=$a("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})=>F({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)`:xi.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})=>F({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>F({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>F({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>F({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Ql=$a("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>F({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)`})),ec=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:d=("hr"!==a?"separator":void 0),textAlign:u="center",variant:p="fullWidth"}=n,h=G(n,Zl),f=F({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:d,textAlign:u,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Uo({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"]},Kl,r)})(f);return yn.jsx(Jl,F({as:a,className:Vr(m.root,i),role:d,ref:t,ownerState:f},h,{children:o?yn.jsx(Ql,{className:m.wrapper,ownerState:f,children:o}):null}))});ec.muiSkipListHighlight=!0;const tc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function nc(e){return`scale(${e}, ${e**2})`}const rc={entering:{opacity:1,transform:nc(1)},entered:{opacity:1,transform:"none"}},oc="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ic=v.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:d,onExited:u,onExiting:p,style:h,timeout:f="auto",TransitionComponent:m=hs}=e,b=G(e,tc),g=Lo(),y=v.useRef(),x=Ca(),E=v.useRef(null),C=_o(E,Xo(o),t),S=e=>t=>{if(e){const n=E.current;void 0===t?e(n):e(n,t)}},w=S(c),R=S((e,t)=>{xs(e);const{duration:n,delay:r,easing:o}=Es({style:h,timeout:f,easing:i},{mode:"enter"});let a;"auto"===f?(a=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:oc?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),_=S(l),k=S(p),A=S(e=>{const{duration:t,delay:n,easing:r}=Es({style:h,timeout:f,easing:i},{mode:"exit"});let o;"auto"===f?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:oc?o:.666*o,delay:oc?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=nc(.75),d&&d(e)}),I=S(u);return yn.jsx(m,F({appear:r,in:a,nodeRef:E,onEnter:R,onEntered:_,onEntering:w,onExit:A,onExited:I,onExiting:k,addEndListener:e=>{"auto"===f&&g.start(y.current||0,e),n&&n(E.current,e)},timeout:"auto"===f?null:f},b,{children:(e,t)=>v.cloneElement(o,F({style:F({opacity:0,transform:nc(.75),visibility:"exited"!==e||a?void 0:"hidden"},rc[e],h,o.props.style),ref:C},t))}))});function ac(e){return Xr("MuiInputAdornment",e)}ic.muiSupportAuto=!0;const sc=Zr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var lc;const cc=["children","className","component","disablePointerEvents","disableTypography","position","variant"],dc=$a("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${zn(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>F({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${sc.positionStart}&:not(.${sc.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),uc=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c}=n,d=G(n,cc),u=rl()||{};let p=c;c&&u.variant,u&&!p&&(p=u.variant);const h=F({},n,{hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:l,variant:p}),f=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return Uo({root:["root",n&&"disablePointerEvents",o&&`position${zn(o)}`,a,r&&"hiddenLabel",i&&`size${zn(i)}`]},ac,t)})(h);return yn.jsx(nl.Provider,{value:null,children:yn.jsx(dc,F({as:i,ownerState:h,className:Vr(f.root,o),ref:t},d,{children:"string"!=typeof r||s?yn.jsxs(v.Fragment,{children:["start"===l?lc||(lc=yn.jsx("span",{className:"notranslate",children:"​"})):null,r]}):yn.jsx(Ks,{color:"text.secondary",children:r})}))})}),pc=v.createContext({});function hc(e){return Xr("MuiList",e)}Zr("MuiList",["root","padding","dense","subheader"]);const fc=["children","className","component","dense","disablePadding","subheader"],mc=$a("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})=>F({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),bc=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=G(n,fc),d=v.useMemo(()=>({dense:a}),[a]),u=F({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Uo({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},hc,t)})(u);return yn.jsx(pc.Provider,{value:d,children:yn.jsxs(mc,F({as:i,className:Vr(p.root,o),ref:t,ownerState:u},c,{children:[l,r]}))})});function gc(e){return Xr("MuiListItem",e)}const vc=Zr("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function yc(e){return Xr("MuiListItemButton",e)}const xc=Zr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Ec=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Cc=$a(Hs,{shouldForwardProp:e=>Na(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})=>F({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"}},[`&.${xc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xi.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})`:xi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${xc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xc.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})),Sc=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:d,selected:u=!1,className:p}=n,h=G(n,Ec),f=v.useContext(pc),m=v.useMemo(()=>({dense:s||f.dense||!1,alignItems:r,disableGutters:l}),[r,f.dense,s,l]),b=v.useRef(null);po(()=>{o&&b.current&&b.current.focus()},[o]);const g=F({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:u}),y=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return F({},n,Uo({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},yc,n))})(g),x=_o(b,t);return yn.jsx(pc.Provider,{value:m,children:yn.jsx(Cc,F({ref:x,href:h.href||h.to,component:(h.href||h.to)&&"div"===i?"button":i,focusVisibleClassName:Vr(y.focusVisible,d),ownerState:g,className:Vr(y.root,p)},h,{classes:y,children:a}))})});function wc(e){return Xr("MuiListItemSecondaryAction",e)}Zr("MuiListItemSecondaryAction",["root","disableGutters"]);const Rc=["className"],_c=$a("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>F({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),kc=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=G(n,Rc),i=F({},n,{disableGutters:v.useContext(pc).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return Uo({root:["root",t&&"disableGutters"]},wc,n)})(i);return yn.jsx(_c,F({className:Vr(a.root,r),ownerState:i,ref:t},o))});kc.muiName="ListItemSecondaryAction";const Ac=["className"],Ic=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Lc=$a("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})=>F({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&F({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${xc.root}`]:{paddingRight:48}},{[`&.${vc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${vc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${vc.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"}},[`&.${vc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xi.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})`:xi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Tc=$a("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Oc=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:c={},componentsProps:d={},ContainerComponent:u="li",ContainerProps:{className:p}={},dense:h=!1,disabled:f=!1,disableGutters:m=!1,disablePadding:b=!1,divider:g=!1,focusVisibleClassName:y,secondaryAction:x,selected:E=!1,slotProps:C={},slots:S={}}=n,w=G(n.ContainerProps,Ac),R=G(n,Ic),_=v.useContext(pc),k=v.useMemo(()=>({dense:h||_.dense||!1,alignItems:r,disableGutters:m}),[r,_.dense,h,m]),A=v.useRef(null);po(()=>{o&&A.current&&A.current.focus()},[o]);const I=v.Children.toArray(a),L=I.length&&(T=I[I.length-1],O=["ListItemSecondaryAction"],v.isValidElement(T)&&-1!==O.indexOf(null!=(P=T.type.muiName)?P:null==(M=T.type)||null==(M=M._payload)||null==(M=M.value)?void 0:M.muiName));var T,O,P,M;const j=F({},n,{alignItems:r,autoFocus:o,button:i,dense:k.dense,disabled:f,disableGutters:m,disablePadding:b,divider:g,hasSecondaryAction:L,selected:E}),N=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:d}=e;return Uo({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},gc,r)})(j),$=_o(A,t),z=S.root||c.Root||Lc,D=C.root||d.root||{},B=F({className:Vr(N.root,D.className,s),disabled:f},R);let H=l||"li";return i&&(B.component=l||"div",B.focusVisibleClassName=Vr(vc.focusVisible,y),H=Hs),L?(H=B.component||l?H:"div","li"===u&&("li"===H?H="div":"li"===B.component&&(B.component="div")),yn.jsx(pc.Provider,{value:k,children:yn.jsxs(Tc,F({as:u,className:Vr(N.container,p),ref:$,ownerState:j},w,{children:[yn.jsx(z,F({},D,!Wo(z)&&{as:H,ownerState:F({},j,D.ownerState)},B,{children:I})),I.pop()]}))})):yn.jsx(pc.Provider,{value:k,children:yn.jsxs(z,F({},D,{as:H,ref:$},!Wo(z)&&{ownerState:F({},j,D.ownerState)},B,{children:[I,x&&yn.jsx(kc,{children:x})]}))})});function Pc(e){return Xr("MuiListItemIcon",e)}const Mc=Zr("MuiListItemIcon",["root","alignItemsFlexStart"]),jc=["className"],Nc=$a("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})=>F({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),$c=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=G(n,jc),i=F({},n,{alignItems:v.useContext(pc).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Uo({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Pc,n)})(i);return yn.jsx(Nc,F({className:Vr(a.root,r),ownerState:i,ref:t},o))}),zc=Zr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Dc=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Bc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Fc(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Gc(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 Hc(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")&&Gc(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const Uc=v.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu"}=e,u=G(e,Dc),p=v.useRef(null),h=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});po(()=>{r&&p.current.focus()},[r]),v.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Bo(yo(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}}),[]);const f=_o(p,t);let m=-1;v.Children.forEach(i,(e,t)=>{v.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const b=v.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),v.cloneElement(e,t)}return e});return yn.jsx(bc,F({role:"menu",ref:f,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=yo(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Hc(t,r,l,s,Bc);else if("ArrowUp"===n)e.preventDefault(),Hc(t,r,l,s,Fc);else if("Home"===n)e.preventDefault(),Hc(t,null,l,s,Bc);else if("End"===n)e.preventDefault(),Hc(t,null,l,s,Fc);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&&Gc(r,o);o.previousKeyMatched&&(l||Hc(t,r,!1,s,Bc,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},u,{children:b}))});function Wc(e){return Xr("MuiPopover",e)}Zr("MuiPopover",["root","paper"]);const Yc=["onEntering"],Vc=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],qc=["slotProps"];function Kc(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Xc(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Zc(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Jc(e){return"function"==typeof e?e():e}const Qc=$a(ql,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ed=$a(Rs,{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}),td=v.forwardRef(function(e,t){var n,r,o;const i=Ja({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:u,className:p,container:h,elevation:f=8,marginThreshold:m=16,open:b,PaperProps:g={},slots:y,slotProps:x,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:C=ic,transitionDuration:S="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,_=G(i.TransitionProps,Yc),k=G(i,Vc),A=null!=(n=null==x?void 0:x.paper)?n:g,I=v.useRef(),L=_o(I,A.ref),T=F({},i,{anchorOrigin:l,anchorReference:d,elevation:f,marginThreshold:m,externalPaperSlotProps:A,transformOrigin:E,TransitionComponent:C,transitionDuration:S,TransitionProps:_}),O=(e=>{const{classes:t}=e;return Uo({root:["root"],paper:["paper"]},Wc,t)})(T),P=v.useCallback(()=>{if("anchorPosition"===d)return c;const e=Jc(s),t=(e&&1===e.nodeType?e:yo(I.current).body).getBoundingClientRect();return{top:t.top+Kc(t,l.vertical),left:t.left+Xc(t,l.horizontal)}},[s,l.horizontal,l.vertical,c,d]),M=v.useCallback(e=>({vertical:Kc(e,E.vertical),horizontal:Xc(e,E.horizontal)}),[E.horizontal,E.vertical]),j=v.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=M(t);if("none"===d)return{top:null,left:null,transformOrigin:Zc(n)};const r=P();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=xo(Jc(s)),u=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>u){const e=a-u;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Zc(n)}},[s,d,P,M,m]),[N,$]=v.useState(b),z=v.useCallback(()=>{const e=I.current;if(!e)return;const t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,$(!0)},[j]);v.useEffect(()=>(R&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z)),[s,R,z]);v.useEffect(()=>{b&&z()}),v.useImperativeHandle(a,()=>b?{updatePosition:()=>{z()}}:null,[b,z]),v.useEffect(()=>{if(!b)return;const e=vo(()=>{z()}),t=xo(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,b,z]);let D=S;"auto"!==S||C.muiSupportAuto||(D=void 0);const B=h||(s?yo(Jc(s)).body:void 0),H=null!=(r=null==y?void 0:y.root)?r:Qc,U=null!=(o=null==y?void 0:y.paper)?o:ed,W=Ko({elementType:U,externalSlotProps:F({},A,{style:N?A.style:F({},A.style,{opacity:0})}),additionalProps:{elevation:f,ref:L},ownerState:T,className:Vr(O.paper,null==A?void 0:A.className)}),Y=Ko({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:B,open:b},ownerState:T,className:Vr(O.root,p)}),{slotProps:V}=Y,q=G(Y,qc);return yn.jsx(H,F({},q,!Wo(H)&&{slotProps:V,disableScrollLock:R},{children:yn.jsx(C,F({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),z()},onExited:()=>{$(!1)},timeout:D},_,{children:yn.jsx(U,F({},W,{children:u}))}))}))});function nd(e){return Xr("MuiMenu",e)}Zr("MuiMenu",["root","paper","list"]);const rd=["onEntering"],od=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],id={vertical:"top",horizontal:"right"},ad={vertical:"top",horizontal:"left"},sd=$a(td,{shouldForwardProp:e=>Na(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ld=$a(ed,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),cd=$a(Uc,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),dd=v.forwardRef(function(e,t){var n,r;const o=Ja({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:d,open:u,PaperProps:p={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:m}={},variant:b="selectedMenu",slots:g={},slotProps:y={}}=o,x=G(o.TransitionProps,rd),E=G(o,od),C=oi(),S=F({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:f,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return Uo({root:["root"],paper:["paper"],list:["list"]},nd,t)})(S),R=i&&!l&&u,_=v.useRef(null);let k=-1;v.Children.map(a,(e,t)=>{v.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===k)&&(k=t))});const A=null!=(n=g.paper)?n:ld,I=null!=(r=y.paper)?r:p,L=Ko({elementType:g.root,externalSlotProps:y.root,ownerState:S,className:[w.root,s]}),T=Ko({elementType:A,externalSlotProps:I,ownerState:S,className:w.paper});return yn.jsx(sd,F({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?id:ad,slots:{paper:A,root:g.root},slotProps:{root:L,paper:T},open:u,ref:t,transitionDuration:f,TransitionProps:F({onEntering:(e,t)=>{_.current&&_.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:S},E,{classes:h,children:yn.jsx(cd,F({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:_,autoFocus:i&&(-1===k||l),autoFocusItem:R,variant:b},c,{className:Vr(w.list,c.className),children:a}))}))});function ud(e){return Xr("MuiMenuItem",e)}const pd=Zr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),hd=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],fd=$a(Hs,{shouldForwardProp:e=>Na(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})=>F({},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"}},[`&.${pd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${pd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${pd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xi.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})`:xi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${pd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Xl.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Xl.inset}`]:{marginLeft:52},[`& .${zc.root}`]:{marginTop:0,marginBottom:0},[`& .${zc.inset}`]:{paddingLeft:36},[`& .${Mc.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&F({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Mc.root} svg`]:{fontSize:"1.25rem"}}))),md=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:u}=n,p=G(n,hd),h=v.useContext(pc),f=v.useMemo(()=>({dense:i||h.dense||!1,disableGutters:s}),[h.dense,i,s]),m=v.useRef(null);po(()=>{r&&m.current&&m.current.focus()},[r]);const b=F({},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 F({},a,Uo({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},ud,a))})(n),y=_o(m,t);let x;return n.disabled||(x=void 0!==d?d:-1),yn.jsx(pc.Provider,{value:f,children:yn.jsx(fd,F({ref:y,role:c,tabIndex:x,component:o,focusVisibleClassName:Vr(g.focusVisible,l),className:Vr(g.root,u)},p,{ownerState:b,classes:g}))})});function bd(e){return Xr("MuiTab",e)}const gd=Zr("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),vd=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],yd=$a(Hs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${zn(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${gd.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>F({},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,[`& > .${gd.iconWrapper}`]:F({},"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,[`&.${gd.selected}`]:{opacity:1},[`&.${gd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${gd.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${gd.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${gd.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${gd.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)})),xd=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiTab"}),{className:r,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:a,icon:s,iconPosition:l="top",indicator:c,label:d,onChange:u,onClick:p,onFocus:h,selected:f,selectionFollowsFocus:m,textColor:b="inherit",value:g,wrapped:y=!1}=n,x=G(n,vd),E=F({},n,{disabled:o,disableFocusRipple:i,selected:f,icon:!!s,iconPosition:l,label:!!d,fullWidth:a,textColor:b,wrapped:y}),C=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e;return Uo({root:["root",i&&a&&"labelIcon",`textColor${zn(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]},bd,t)})(E),S=s&&d&&v.isValidElement(s)?v.cloneElement(s,{className:Vr(C.iconWrapper,s.props.className)}):s;return yn.jsxs(yd,F({focusRipple:!i,className:Vr(C.root,r),ref:t,role:"tab","aria-selected":f,disabled:o,onClick:e=>{!f&&u&&u(e,g),p&&p(e)},onFocus:e=>{m&&!f&&u&&u(e,g),h&&h(e)},ownerState:E,tabIndex:f?0:-1},x,{children:["top"===l||"start"===l?yn.jsxs(v.Fragment,{children:[S,d]}):yn.jsxs(v.Fragment,{children:[d,S]}),c]}))});var Ed=rs(yn.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Cd=rs(yn.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Sd(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const wd=["onChange"],Rd={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function _d(e){return Xr("MuiTabScrollButton",e)}const kd=Zr("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ad=["className","slots","slotProps","direction","orientation","disabled"],Id=$a(Hs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>F({width:40,flexShrink:0,opacity:.8,[`&.${kd.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Ld=v.forwardRef(function(e,t){var n,r;const o=Ja({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:s={},direction:l}=o,c=G(o,Ad),d=F({isRtl:oi()},o),u=(e=>{const{classes:t,orientation:n,disabled:r}=e;return Uo({root:["root",n,r&&"disabled"]},_d,t)})(d),p=null!=(n=a.StartScrollButtonIcon)?n:Ed,h=null!=(r=a.EndScrollButtonIcon)?r:Cd,f=Ko({elementType:p,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),m=Ko({elementType:h,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return yn.jsx(Id,F({component:"div",className:Vr(u.root,i),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===l?yn.jsx(p,F({},f)):yn.jsx(h,F({},m))}))});function Td(e){return Xr("MuiTabs",e)}const Od=Zr("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Pd=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Md=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,jd=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Nd=(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)}},$d=$a("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Od.scrollButtons}`]:t.scrollButtons},{[`& .${Od.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>F({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Od.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),zd=$a("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})=>F({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Dd=$a("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})=>F({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Bd=$a("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>F({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})),Fd=$a(function(e){const{onChange:t}=e,n=G(e,wd),r=v.useRef(),o=v.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return po(()=>{const e=vo(()=>{const e=r.current;i(),e!==r.current&&t(r.current)}),n=xo(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}},[t]),v.useEffect(()=>{i(),t(r.current)},[t]),yn.jsx("div",F({style:Rd},n,{ref:o}))})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Gd={},Hd=v.forwardRef(function(e,t){const n=Ja({props:e,name:"MuiTabs"}),r=Ca(),o=oi(),{"aria-label":i,"aria-labelledby":a,action:s,centered:l=!1,children:c,className:d,component:u="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:f,orientation:m="horizontal",ScrollButtonComponent:b=Ld,scrollButtons:g="auto",selectionFollowsFocus:y,slots:x={},slotProps:E={},TabIndicatorProps:C={},TabScrollButtonProps:S={},textColor:w="primary",value:R,variant:_="standard",visibleScrollbar:k=!1}=n,A=G(n,Pd),I="scrollable"===_,L="vertical"===m,T=L?"scrollTop":"scrollLeft",O=L?"top":"left",P=L?"bottom":"right",M=L?"clientHeight":"clientWidth",j=L?"height":"width",N=F({},n,{component:u,allowScrollButtonsMobile:p,indicatorColor:h,orientation:m,vertical:L,scrollButtons:g,textColor:w,variant:_,visibleScrollbar:k,fixed:!I,hideScrollbar:I&&!k,scrollableX:I&&!L,scrollableY:I&&L,centered:l&&!I,scrollButtonsHideMobile:!p}),$=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Uo({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"]},Td,l)})(N),z=Ko({elementType:x.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:N}),D=Ko({elementType:x.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:N}),[B,H]=v.useState(!1),[U,W]=v.useState(Gd),[Y,V]=v.useState(!1),[q,K]=v.useState(!1),[X,Z]=v.useState(!1),[J,Q]=v.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,te=v.useRef(null),ne=v.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:Ho(e,o?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==R){const e=ne.current.children;if(e.length>0){const t=e[ee.get(R)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},oe=Ro(()=>{const{tabsMeta:e,tabMeta:t}=re();let n,r=0;if(L)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=o?"right":"left",t&&e){const i=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(o?-1:1)*(t[n]-e[n]+i)}const i={[n]:r,[j]:t?t[j]:0};if(isNaN(U[n])||isNaN(U[j]))W(i);else{const e=Math.abs(U[n]-i[n]),t=Math.abs(U[j]-i[j]);(e>=1||t>=1)&&W(i)}}),ie=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=()=>{}){const{ease:i=Sd,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const d=()=>{c=!0},u=r=>{if(c)return void o(new Error("Animation cancelled"));null===s&&(s=r);const d=Math.min(1,(r-s)/a);t[e]=i(d)*(n-l)+l,d>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(u)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(u)}(T,te.current,e,{duration:r.transitions.duration.standard}):te.current[T]=e},ae=e=>{let t=te.current[T];L?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===Go()?-1:1),ie(t)},se=()=>{const e=te.current[M];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[M]>e){0===r&&(t=e);break}t+=o[M]}return t},le=()=>{ae(-1*se())},ce=()=>{ae(se())},de=v.useCallback(e=>{Q({overflow:null,scrollbarWidth:e})},[]),ue=Ro(e=>{const{tabsMeta:t,tabMeta:n}=re();if(n&&t)if(n[O]<t[O]){const r=t[T]+(n[O]-t[O]);ie(r,{animation:e})}else if(n[P]>t[P]){const r=t[T]+(n[P]-t[P]);ie(r,{animation:e})}}),pe=Ro(()=>{I&&!1!==g&&Z(!X)});v.useEffect(()=>{const e=vo(()=>{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=xo(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]),v.useEffect(()=>{const e=Array.from(ne.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&I&&!1!==g){const n=e[0],r=e[t-1],o={root:te.current,threshold:.99},i=new IntersectionObserver(e=>{V(!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()}}},[I,g,X,null==c?void 0:c.length]),v.useEffect(()=>{H(!0)},[]),v.useEffect(()=>{oe()}),v.useEffect(()=>{ue(Gd!==U)},[ue,U]),v.useImperativeHandle(s,()=>({updateIndicator:oe,updateScrollButtons:pe}),[oe,pe]);const he=yn.jsx(Bd,F({},C,{className:Vr($.indicator,C.className),ownerState:N,style:F({},U,C.style)}));let fe=0;const me=v.Children.map(c,e=>{if(!v.isValidElement(e))return null;const t=void 0===e.props.value?fe:e.props.value;ee.set(t,fe);const n=t===R;return fe+=1,v.cloneElement(e,F({fullWidth:"fullWidth"===_,indicator:n&&!B&&he,selected:n,selectionFollowsFocus:y,onChange:f,textColor:w,value:t},1!==fe||!1!==R||e.props.tabIndex?{}:{tabIndex:0}))}),be=(()=>{const e={};e.scrollbarSizeListener=I?yn.jsx(Fd,{onChange:de,className:Vr($.scrollableX,$.hideScrollbar)}):null;const t=I&&("auto"===g&&(Y||q)||!0===g);return e.scrollButtonStart=t?yn.jsx(b,F({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:z},orientation:m,direction:o?"right":"left",onClick:le,disabled:!Y},S,{className:Vr($.scrollButtons,S.className)})):null,e.scrollButtonEnd=t?yn.jsx(b,F({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:D},orientation:m,direction:o?"left":"right",onClick:ce,disabled:!q},S,{className:Vr($.scrollButtons,S.className)})):null,e})();return yn.jsxs($d,F({className:Vr($.root,d),ownerState:N,ref:t,as:u},A,{children:[be.scrollButtonStart,be.scrollbarSizeListener,yn.jsxs(zd,{className:$.scroller,ownerState:N,style:{overflow:J.overflow,[L?"margin"+(o?"Left":"Right"):"marginBottom"]:k?void 0:-J.scrollbarWidth},ref:te,children:[yn.jsx(Dd,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===m?"vertical":null,className:$.flexContainer,ownerState:N,onKeyDown:e=>{const t=ne.current,n=yo(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(),Nd(t,n,jd);break;case i:e.preventDefault(),Nd(t,n,Md);break;case"Home":e.preventDefault(),Nd(t,null,Md);break;case"End":e.preventDefault(),Nd(t,null,jd)}},ref:ne,role:"tablist",children:me}),B&&he]}),be.scrollButtonEnd]}))});function Ud(e){return yn.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:yn.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function Wd({fontSize:e="medium",children:t=null,className:n=""}={}){return yn.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 Yd(e={}){return yn.jsx(Wd,{...e,children:yn.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[yn.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),yn.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function Vd(e={}){return yn.jsx(Wd,{fontSize:"medium",...e,children:yn.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[yn.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),yn.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 qd(e){return yn.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:yn.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 Kd(e={}){return yn.jsx(Wd,{...e,children:yn.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:yn.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[yn.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),yn.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Xd(e={}){return yn.jsx(Wd,{fontSize:"medium",...e,children:yn.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:yn.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:yn.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Zd({className:e}){return yn.jsx(Wd,{fontSize:"small",className:e,children:yn.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:yn.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:yn.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:yn.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[yn.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"}),yn.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 Jd(e={}){return yn.jsx(Wd,{...e,children:yn.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:yn.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:yn.jsx("rect",{stroke:Fa.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var Qd=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Fa.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Fa.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:yn.jsx(Ud,{"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 ${Fa.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Fa.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Fa.MISC_FOCUS_BORDER}`,borderRadius:Ya,backgroundColor:Fa.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 ${Fa.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Fa.WHITE,color:Fa.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:Ya},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Fa.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Fa.GREYSCALE_0_15,backgroundColor:Fa.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Fa.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Fa.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Fa.GREEN_PALE},"&:active":{backgroundColor:Fa.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Fa.GREEN_PALE,boxShadow:`0 0 0 3px ${bo(Fa.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Fa.BLUE_PALE},"&:active":{backgroundColor:Fa.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Fa.BLUE_PALE,boxShadow:`0 0 0 3px ${bo(Fa.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:Ya,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Fa.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Fa.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Fa.GREYSCALE_0_42,backgroundColor:Fa.GREYSCALE_100_60,"&:active":{backgroundColor:Fa.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Fa.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Fa.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Fa.PURPLE,"&.Mui-focusVisible":{borderColor:Fa.PURPLE,boxShadow:`0 0 0 3px ${bo(Fa.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Fa.GREEN,"&.Mui-focusVisible":{borderColor:Fa.GREEN,boxShadow:`0 0 0 3px ${bo(Fa.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Fa.BLUE,"&.Mui-focusVisible":{borderColor:Fa.BLUE,boxShadow:`0 0 0 3px ${bo(Fa.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Fa.ORANGE,"&.Mui-focusVisible":{borderColor:Fa.ORANGE,boxShadow:`0 0 0 3px ${bo(Fa.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Fa.RED,"&.Mui-focusVisible":{borderColor:Fa.RED,boxShadow:`0 0 0 3px ${bo(Fa.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Fa.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Fa.PURPLE_PALE},"&:active":{backgroundColor:Fa.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Fa.PURPLE_PALE,boxShadow:`0 0 0 3px ${bo(Fa.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Fa.GREEN_PALE},"&:active":{backgroundColor:Fa.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Fa.GREEN_PALE,boxShadow:`0 0 0 3px ${bo(Fa.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Fa.BLUE_PALE},"&:active":{backgroundColor:Fa.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Fa.BLUE_PALE,boxShadow:`0 0 0 3px ${bo(Fa.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Fa.ORANGE_PALE},"&:active":{backgroundColor:Fa.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Fa.ORANGE_PALE,boxShadow:`0 0 0 3px ${bo(Fa.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Fa.RED_PALE},"&:active":{backgroundColor:Fa.RED_DARK},"&.Mui-focusVisible":{borderColor:Fa.RED_PALE,boxShadow:`0 0 0 3px ${bo(Fa.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:Fa.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Fa.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ya,boxShadow:`inset 0 0 0 2px ${Fa.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:yn.jsx(qd,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ga,borderRadius:Ya,color:Fa.TEXT_PRIMARY,backgroundColor:Fa.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Fa.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Fa.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Fa.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Fa.GREYSCALE_0_05,color:Fa.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Fa.GREEN,borderColor:Fa.GREEN},"&.MuiChip-outlinedInfo":{color:Fa.BLUE,borderColor:Fa.BLUE},"&.MuiChip-outlinedWarning":{color:Fa.ORANGE,borderColor:Fa.ORANGE},"&.MuiChip-outlinedError":{color:Fa.RED,borderColor:Fa.RED}},outlined:{border:`solid 1px ${Fa.GREYSCALE_0_15}`,backgroundColor:Fa.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ya,boxShadow:"none",backgroundColor:Fa.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Fa.GREEN,borderColor:Fa.GREEN},outlinedSecondary:{color:Fa.BLUE,borderColor:Fa.BLUE},label:{fontFamily:Za.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:yn.jsx(qd,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:yn.jsx(Ud,{"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:Ya},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Ya,fontSize:Ha,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Fa.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Fa.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Fa.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Fa.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Fa.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Ya,border:`solid 1px ${Fa.GREYSCALE_0_15}`,color:Fa.GREYSCALE_0_60,marginRight:0,width:Wa,height:Wa},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Fa.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ya,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Fa.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Ha}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ga,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Fa.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Fa.GREYSCALE_25,fontSize:Ga,fontFamily:Za.FONT_FAMILY,fontWeight:Ka,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Fa.TEXT_PRIMARY},"&.Mui-error":{color:Fa.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Fa.TEXT_SECONDARY,content:"'(optional)'",fontWeight:qa,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Fa.TEXT_SECONDARY,content:"'(required)'",fontWeight:qa,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Ha,lineHeight:"16px",backgroundColor:Fa.WHITE,borderRadius:Ya,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Fa.GREYSCALE_0_05}`,borderColor:Fa.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Fa.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Fa.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Fa.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Fa.RED}`,boxShadow:`0px 0px 0px 1px ${Fa.RED}, inset 0 2px 0 0 ${Fa.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Fa.GREYSCALE_0_10}`,borderColor:Fa.GREYSCALE_0_10,backgroundColor:Fa.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Fa.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Fa.GREYSCALE_0_15,borderRadius:Ya,boxShadow:`inset 0 2px 0 0 ${Fa.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>yn.jsx(Ud,{...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:Fa.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Fa.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Fa.GREYSCALE_0_03},"&:active":{backgroundColor:Fa.GREYSCALE_0_10},"&:focus":{backgroundColor:Fa.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Fa.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Fa.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Fa.GREYSCALE_0_30,"&:hover":{backgroundColor:Fa.GREYSCALE_0_0,borderColor:Fa.GREYSCALE_0_15},"& ~svg":{color:Fa.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Fa.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ya}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Fa.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Fa.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Fa.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Ha,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ga,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ga,fontWeight:Ka,color:Fa.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Ka}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Fa.GREYSCALE_0_15}, 0px 0px 0px 1px ${Fa.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:yn.jsx(Xd,{}),checkedIcon:yn.jsx(Vd,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Fa.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Fa.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Fa.GREEN_PALE,boxShadow:`0 0 0 3px ${bo(Fa.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Fa.BLUE_PALE,boxShadow:`0 0 0 3px ${bo(Fa.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Fa.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Fa.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:yn.jsx(Jd,{}),checkedIcon:yn.jsx(Yd,{}),indeterminateIcon:yn.jsx(Kd,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ya,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Fa.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Fa.GREYSCALE_0_55,color:Fa.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:Fa.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Fa.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Fa.GREYSCALE_0_55,"&:hover":{color:Fa.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:Fa.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Fa.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Ha,color:Fa.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Ka},secondary:{fontSize:Ga,color:Fa.GREYSCALE_45,fontWeight:qa,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Ha,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Ha,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Fa.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ga,borderBottom:`solid 1px ${Fa.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Ha,color:Fa.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Fa.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Fa.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Fa.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:Fa.RED}}},"&.Mui-focusVisible":{backgroundColor:Fa.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:Fa.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:Fa.GREEN,height:"24px","&.Mui-disabled":{color:Fa.GREYSCALE_0_15}},rail:{backgroundColor:Fa.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Fa.GREYSCALE_0_05}`,borderRadius:Ya,boxShadow:`inset 0px 0px 0px 1px ${Fa.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Fa.GREYSCALE_0_05}`,borderRadius:Ya},thumb:{height:"16px",width:"16px",borderRadius:Ya,backgroundColor:Fa.WHITE,boxShadow:`0px 1px 2px 0px ${Fa.GREYSCALE_0_15}, 0px 0px 0px 1px ${Fa.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ya,boxShadow:`0 2px 4px 0 ${Fa.GREYSCALE_0_30}, 0 0 0 1px ${Fa.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Fa.GREYSCALE_0_15}, 0 0 0 1px ${Fa.GREYSCALE_0_06}, 0 0 0 2px ${Fa.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Fa.GREYSCALE_0_15}, 0 0 0 1px ${Fa.GREYSCALE_0_06}, 0 0 0 2px ${Fa.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Fa.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Fa.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Fa.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Fa.GREYSCALE_0_15},markLabel:{color:Fa.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Fa.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Fa.WHITE,color:Fa.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:Fa.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:Fa.GREEN_PALE,boxShadow:`0 0 0 3px ${bo(Fa.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Fa.BLUE_PALE,boxShadow:`0 0 0 3px ${bo(Fa.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Fa.GREYSCALE_0_15,borderRadius:Ya},thumb:{height:"16px",width:"16px",borderRadius:Ya,backgroundColor:Fa.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:Ha,fontWeight:Ka,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Fa.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Fa.MISC_FOCUS_BORDER}`,backgroundColor:Fa.GREYSCALE_0_03,borderRadius:Ya},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Fa.GREYSCALE_25,"&.Mui-selected":{color:Fa.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Ha,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Ya,"&:hover":{backgroundColor:Fa.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 ${Fa.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Fa.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Ya,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Fa.GREYSCALE_0_05},"&:hover":{backgroundColor:Fa.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Fa.GREYSCALE_85}`,borderRight:`1px solid ${Fa.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Ka,backgroundColor:Fa.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:Fa.GREYSCALE_98,borderBottom:`1px solid ${Fa.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Fa.GREYSCALE_85}`,borderTop:`1px solid ${Fa.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Fa.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Fa.GREYSCALE_0_05,"&:hover":{backgroundColor:Fa.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Fa.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>yn.jsx(Zd,{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 ${Fa.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Ha,borderRadius:Ya,padding:"7px 16px",border:`1px solid ${Fa.GREYSCALE_0_15}`,backgroundColor:Fa.GREYSCALE_100_60,color:Fa.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Fa.GREYSCALE_0_10,border:`1px solid ${Fa.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Fa.GREYSCALE_0_03,border:`1px solid ${Fa.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Fa.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Fa.MISC_FOCUS_BORDER}`,border:`1px solid ${Fa.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Fa.GREYSCALE_25,backgroundColor:Fa.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Fa.GREYSCALE_0_10,border:`1px solid ${Fa.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ga,height:24,width:24,padding:7},sizeLarge:{fontSize:Ua,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Ha,borderRadius:Ya}}},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:Fa.GREYSCALE_20},tooltip:{backgroundColor:Fa.GREYSCALE_20,fontSize:Ga,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const eu=e=>({mode:"light",primary:{ultraLight:Fa.GREEN_ULTRA_LIGHT,light:Fa.GREEN_PALE,main:Fa.GREEN,dark:Fa.GREEN_DARK,extraDark:Fa.GREEN_EXTRA_DARK,contrastText:Fa.WHITE},secondary:{ultraLight:Fa.BLUE_ULTRA_LIGHT,light:Fa.BLUE_PALE,main:Fa.BLUE,dark:Fa.BLUE_DARK,extraDark:Fa.BLUE_EXTRA_DARK,contrastText:Fa.WHITE},error:{ultraLight:Fa.RED_ULTRA_LIGHT,light:Fa.RED_PALE,main:Fa.RED,dark:Fa.RED_DARK,extraDark:Fa.RED_EXTRA_DARK,contrastText:Fa.WHITE},warning:{ultraLight:Fa.ORANGE_ULTRA_LIGHT,light:Fa.ORANGE_PALE,main:Fa.ORANGE,dark:Fa.ORANGE_DARK,extraDark:Fa.ORANGE_EXTRA_DARK,contrastText:Fa.WHITE},success:{ultraLight:Fa.GREEN_ULTRA_LIGHT,light:Fa.GREEN_PALE,main:Fa.GREEN,dark:Fa.GREEN_DARK,extraDark:Fa.GREEN_EXTRA_DARK,contrastText:Fa.WHITE},info:{ultraLight:Fa.BLUE_ULTRA_LIGHT,light:Fa.BLUE_PALE,main:Fa.BLUE,dark:Fa.BLUE_DARK,extraDark:Fa.BLUE_EXTRA_DARK,contrastText:Fa.WHITE},text:{primary:Fa.TEXT_PRIMARY,secondary:Fa.TEXT_SECONDARY,disabled:Fa.GREYSCALE_0_30},action:{hover:Fa.GREYSCALE_0_03,hoverOpacity:.03,selected:Fa.GREYSCALE_0_05,selectedOpacity:.05,focus:Fa.MISC_FOCUS_BORDER},amethyst:{ultraLight:Fa.WHITE,main:Fa.PURPLE,light:Fa.PURPLE_PALE,dark:Fa.PURPLE_DARK,extraDark:Fa.GREYSCALE_0_0,contrastText:Fa.WHITE},background:{paper:Fa.WHITE,default:Fa.GREYSCALE_95},divider:Fa.GREYSCALE_0_15});function tu(e){return xa({components:Qd(),palette:eu(),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:Ha,fontWeightLight:Va,fontWeightRegular:qa,fontWeightMedium:Ka,fontWeightBold:Xa,htmlFontSize:Ha,fontFamily:Za.FONT_FAMILY,button:{fontWeight:Ka,fontSize:Ha,textTransform:"none"},body1:{fontSize:Ua,lineHeight:"24px"},body2:{fontSize:Ha,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Wa,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ua,fontWeight:Ka,lineHeight:"16px"},h6:{fontSize:Ha,fontWeight:Ka,lineHeight:"16px"},caption:{color:Fa.TEXT_SECONDARY},subtitle1:{fontSize:Ha,color:Fa.TEXT_SECONDARY},subtitle2:{fontSize:Ga,color:Fa.TEXT_SECONDARY}},shape:{borderRadius:Ya},direction:e})}class nu{translator;muiTheme;containers={};constructor({translator:e}){this.translator=e}sync=({element:e,sharedContainerUtilities:t,translator:n,containerId:r,dataHandler:o,renderHelper:i,chartList:a})=>{this.translator=n,this.containers[r]={element:e,sharedContainerUtilities:t,dataHandler:o,renderHelper:i,chartList:a}};setMuiTheme=e=>{this.muiTheme=tu(e)};destroy=e=>{delete this.containers[e]}}const ru=["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 ou{embed;translator;charts={};constructor(e,t){this.embed=e,this.translator=t}getCharts=()=>(this.charts=(this.embed?.getRegisteredTypes()??[]).reduce((e,t)=>{if(!ru.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 iu,au={};var su=function(){if(iu)return au;iu=1;var e=T;return au.createRoot=e.createRoot,au.hydrateRoot=e.hydrateRoot,au}();const lu=x((e,t)=>yn.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:yn.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"})})),cu="rgb(89, 89, 89)",du=fn(Cl)({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),uu=fn(Cl)({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),pu=fn(bc,{shouldForwardProp:e=>"width"!==e})(({width:e})=>({"&.MuiList-root":{paddingTop:0,paddingBottom:0,width:e||250,maxHeight:250,overflow:"auto"}})),hu=fn(Ks)({color:cu,fontSize:"12px",fontFamily:"inherit",lineHeight:"24px",margin:"0px"}),fu=fn($c)({"&.MuiListItemIcon-root":{minWidth:32,color:cu,marginRight:"0px"}}),mu=fn(ec)({"&.MuiDivider-root":{borderBottom:"3px solid #595959"}}),bu=fn(Ol)({"&.MuiButton-contained":{backgroundColor:cu,color:"rgb(255, 255, 255)"},"&.MuiButton-outlined":{backgroundColor:"rgb(255, 255, 255)",borderColor:cu,color:cu,border:"1px solid rgb(179, 179, 179)","&:hover":{backgroundColor:"rgb(255, 255, 255)",border:`1px solid ${cu}`}}}),gu=fn(ns)({width:"1em",height:"1em",paddingBottom:"8px"}),vu=fn(ns)({width:"16px",height:"16px"}),yu=({name:e,items:t,onSelect:n})=>yn.jsxs(yn.Fragment,{children:[yn.jsx(Oc,{dense:!0,children:yn.jsx(hu,{noWrap:!0,fontWeight:"bold",children:e})},e),yn.jsx(mu,{}),t.map(e=>yn.jsx(Oc,{divider:!0,disablePadding:!0,disableGutters:!0,children:yn.jsxs(Sc,{sx:{minHeight:"32px",height:"auto"},onClick:()=>{n(e)},disableRipple:!0,dense:!0,children:[e.iconPath?yn.jsx(fu,{children:e.IconDefinition?yn.jsx(e.IconDefinition,{}):yn.jsx(vu,{viewBox:"0 0 16 16",children:yn.jsx("path",{d:e.iconPath})})}):null,yn.jsx(hu,{noWrap:!0,title:e.translation||e.name,children:e.translation||e.name})]})},e.qExtendsId??e.name))]}),xu=({categories:e,anchorEl:t,onClose:n,onSelect:r,width:o})=>{const[i,a]=R(""),s=!!t;return yn.jsxs(td,{open:s,anchorEl:t,onClose:()=>{a(""),n()},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{marginTop:"5px"},children:[yn.jsx(pl,{fullWidth:!0,onChange:e=>{a(e.target.value)},startAdornment:yn.jsx(uc,{position:"start",children:yn.jsx(lu,{})})}),yn.jsx(mu,{}),yn.jsx(pu,{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&&yn.jsx(yu,{name:e.name,items:t,onSelect:r},e.name)})})]})},Eu=({anchorEl:e,onClose:t,dataHandler:n,translator:r,sharedContainerUtilities:o,width:i})=>{const[a,s]=R([]),[l,c]=R({});_(()=>{if(e&&n){(async()=>{const e=await n.getMasterVizList();s(e),c(n.getCharts())})().catch(()=>{})}},[e,n]);const d=[],u=[],p=new Map,h=Object.values(l);if(0===h.length&&0===a.length)return null;h.forEach(e=>{if(!e.libraryInfo||!e.libraryInfo.isThirdParty&&e.libraryInfo.visible)d.push(e);else if(e.libraryInfo.visible)if(e.libraryInfo.bundle?.name){const t=e.libraryInfo.bundle.name,n=p.get(t);n?n.push(e):p.set(t,[e])}else u.push(e)});const f=e=>e.map(e=>({iconPath:e.libraryInfo?.iconPath,IconDefinition:e.libraryInfo?.IconDefinition,name:e.id,translation:e.libraryInfo?.translation||e.libraryInfo?.name||e.id||"",type:e.id})).toSorted((e,t)=>(e.translation||e.name).localeCompare(t.translation||t.name)),m=[{name:r.get("LayoutContainer.Object.MasterItems"),items:a.map(e=>({qExtendsId:e.qExtendsId,iconPath:l[e.visualization]?.libraryInfo?.iconPath,IconDefinition:l[e.visualization]?.libraryInfo?.IconDefinition,name:e.name,type:e.visualization})).toSorted((e,t)=>e.name.localeCompare(t.name))},{name:r.get("LayoutContainer.Object.Charts"),items:d.map(e=>({iconPath:e.libraryInfo?.iconPath||"",IconDefinition:e.libraryInfo?.IconDefinition,name:e.libraryInfo?.name||e.id,type:e.libraryInfo?.template||e.id,translation:e.libraryInfo?.translation||e.id||""})).toSorted((e,t)=>e.translation.localeCompare(t.translation))},{name:r.get("LayoutContainer.Object.CustomObjects"),items:f(u)}];for(const[e,t]of p)m.push({name:e,items:f(t)});return yn.jsx(xu,{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})},Cu=e=>{const t=wu(e);return e.objects?.map(e=>{const{childRefId:n}=e;if(!n)return e;const r=t[n];return r?{...e,id:r}:e})??[]},Su=(e,t)=>e?.qChildList?.qItems?.find(e=>e?.qData?.childRefId===t),wu=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qData?.childRefId;return e[n]=t?.qInfo?.qId,e},{});var Ru=Su,_u=e=>{const t={...e};return t.objects=Cu(t),t},ku=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qInfo?.qId;return e[n]=t.qData?.childRefId,e},{}),Au=e=>e.objects.reduce((e,t)=>(e[t.childRefId]=t,e),{}),Iu=(e,t)=>{if(!e)return t;const n=Su(e,t);return n?.qInfo?.qId};class Lu{layout;app;activeId="";data;properties=void 0;constructor({app:e,data:t}){this.app=e,this.data=t}get activeContainer(){return this.data.containers[this.activeId]}setSelectedChild=e=>{this.activeContainer?.sharedContainerUtilities?.setSelected(e)};addChild=({initProps:e,objectInitProps:t,children:n})=>{if(!this.activeContainer)return;const{dataHandler:r}=this.activeContainer;if(e?.qExtendsId){const{qExtendsId:o,qInfo:i}=e;return r?.addMasterObjectAsChild({initProps:{qExtendsId:o,qInfo:i},objectInitProps:t,children:n})}return r?.addVizAsChild({type:e?.visualization,initProps:e,objectInitProps:t,children:n})};deleteChild=async e=>{if(!this.activeContainer)return;const{dataHandler:t}=this.activeContainer;await(t?.deleteChildren([e]))};duplicateChild=async e=>{const{childRefId:t,...n}=e,r=this.getEngineId(t);if(!r)return;const o=await(this.app?.getObject(r));if(o&&this.activeContainer){const{sharedContainerUtilities:e}=this.activeContainer,t=await o.getFullPropertyTree(),r=t.qProperty,i=t.qChildren,a=await this.addChild({initProps:r,children:i,objectInitProps:n});a&&e?.setSelected([a.id])}};openAddChildPopover=e=>{if(this.activeContainer&&this.activeContainer.dataHandler&&this.data.muiTheme){const t=((e,t)=>{const n=e.getElementsByClassName(t);let r;return 0===n.length?(r=document.createElement("div"),r.className=t,e.appendChild(r)):r=n[0],su.createRoot(r)})(this.activeContainer.element,"add-child-popover"),n=()=>{t.unmount()};t?.render(yn.jsx(Da,{theme:this.data.muiTheme,children:yn.jsx(Eu,{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=>Iu(this.layout,e);setProperties=e=>{this.properties=e};canAddDimension=()=>!1;canAddMeasure=()=>!1;canColorBy=()=>!1;getDimensions=()=>[];getMeasures=()=>[];minDimensions=()=>0;minMeasures=()=>0;maxDimensions=()=>0;maxMeasures=()=>0}const Tu="object",Ou=["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 Pu=e=>({value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}});function Mu({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=>Pu(e)),{value:"DefaultHeader",label:t.get("properties.allFonts"),metaText:t.get("properties.default"),groupHeader:!0},...Ou.map(e=>Pu(e))]}({theme:e,translator:t,defaultValue:o()})}}var ju=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"];const Nu=e=>({value:e,label:e,groupHeader:!1,disabled:!1});function $u({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=>Nu(e)),{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0},...ju.map(e=>Nu(e))]}({theme:e,translator:t,defaultValue:o()})}}function zu({theme:e,translator:t,id:n,path:r}){return{fontFamily:Mu({theme:e,translator:t,id:n,path:r}),fontSize:$u({theme:e,translator:t,id:n,path:r})}}const Du=["__proto__","constructor"],Bu=e=>{if(Du.some(t=>e.includes(t)))throw new Error("font-resolver: Forbidden property.")};var Fu,Gu,Hu,Uu=function(){if(Gu)return Fu;Gu=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 Fu=function e(){var t,n,r,l,c,d,u=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},p=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=s(u,n),u!==(l=s(t,n))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,d=r&&o(r)?r:[]):d=r&&i(r)?r:{},a(u,{name:n,newValue:e(f,d,l)})):void 0!==l&&a(u,{name:n,newValue:l}));return u},Fu}();function Wu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Yu(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Vu(){}(Hu=Uu)&&Hu.__esModule&&Object.prototype.hasOwnProperty.call(Hu,"default")&&Hu.default;var qu=.7,Ku=1/qu,Xu="\\s*([+-]?\\d+)\\s*",Zu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ju="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qu=/^#([0-9a-f]{3,8})$/,ep=new RegExp(`^rgb\\(${Xu},${Xu},${Xu}\\)$`),tp=new RegExp(`^rgb\\(${Ju},${Ju},${Ju}\\)$`),np=new RegExp(`^rgba\\(${Xu},${Xu},${Xu},${Zu}\\)$`),rp=new RegExp(`^rgba\\(${Ju},${Ju},${Ju},${Zu}\\)$`),op=new RegExp(`^hsl\\(${Zu},${Ju},${Ju}\\)$`),ip=new RegExp(`^hsla\\(${Zu},${Ju},${Ju},${Zu}\\)$`),ap={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 sp(){return this.rgb().formatHex()}function lp(){return this.rgb().formatRgb()}function cp(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Qu.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?dp(t):3===n?new fp(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?up(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?up(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=ep.exec(e))?new fp(t[1],t[2],t[3],1):(t=tp.exec(e))?new fp(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=np.exec(e))?up(t[1],t[2],t[3],t[4]):(t=rp.exec(e))?up(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=op.exec(e))?xp(t[1],t[2]/100,t[3]/100,1):(t=ip.exec(e))?xp(t[1],t[2]/100,t[3]/100,t[4]):ap.hasOwnProperty(e)?dp(ap[e]):"transparent"===e?new fp(NaN,NaN,NaN,0):null}function dp(e){return new fp(e>>16&255,e>>8&255,255&e,1)}function up(e,t,n,r){return r<=0&&(e=t=n=NaN),new fp(e,t,n,r)}function pp(e){return e instanceof Vu||(e=cp(e)),e?new fp((e=e.rgb()).r,e.g,e.b,e.opacity):new fp}function hp(e,t,n,r){return 1===arguments.length?pp(e):new fp(e,t,n,null==r?1:r)}function fp(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function mp(){return`#${yp(this.r)}${yp(this.g)}${yp(this.b)}`}function bp(){const e=gp(this.opacity);return`${1===e?"rgb(":"rgba("}${vp(this.r)}, ${vp(this.g)}, ${vp(this.b)}${1===e?")":`, ${e})`}`}function gp(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vp(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function yp(e){return((e=vp(e))<16?"0":"")+e.toString(16)}function xp(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Cp(e,t,n,r)}function Ep(e){if(e instanceof Cp)return new Cp(e.h,e.s,e.l,e.opacity);if(e instanceof Vu||(e=cp(e)),!e)return new Cp;if(e instanceof Cp)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 Cp(a,s,l,e.opacity)}function Cp(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Sp(e){return(e=(e||0)%360)<0?e+360:e}function wp(e){return Math.max(0,Math.min(1,e||0))}function Rp(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Wu(Vu,cp,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sp,formatHex:sp,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ep(this).formatHsl()},formatRgb:lp,toString:lp}),Wu(fp,hp,Yu(Vu,{brighter(e){return e=null==e?Ku:Math.pow(Ku,e),new fp(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?qu:Math.pow(qu,e),new fp(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fp(vp(this.r),vp(this.g),vp(this.b),gp(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:mp,formatHex:mp,formatHex8:function(){return`#${yp(this.r)}${yp(this.g)}${yp(this.b)}${yp(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:bp,toString:bp})),Wu(Cp,function(e,t,n,r){return 1===arguments.length?Ep(e):new Cp(e,t,n,null==r?1:r)},Yu(Vu,{brighter(e){return e=null==e?Ku:Math.pow(Ku,e),new Cp(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?qu:Math.pow(qu,e),new Cp(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 fp(Rp(e>=240?e-240:e+120,o,r),Rp(e,o,r),Rp(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Cp(Sp(this.h),wp(this.s),wp(this.l),gp(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=gp(this.opacity);return`${1===e?"hsl(":"hsla("}${Sp(this.h)}, ${100*wp(this.s)}%, ${100*wp(this.l)}%${1===e?")":`, ${e})`}`}}));const _p=Math.PI/180,kp=180/Math.PI,Ap=.96422,Ip=.82521,Lp=4/29,Tp=6/29,Op=3*Tp*Tp,Pp=Tp*Tp*Tp;function Mp(e){if(e instanceof jp)return new jp(e.l,e.a,e.b,e.opacity);if(e instanceof Bp)return Fp(e);e instanceof fp||(e=pp(e));var t,n,r=Dp(e.r),o=Dp(e.g),i=Dp(e.b),a=Np((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Np((.4360747*r+.3850649*o+.1430804*i)/Ap),n=Np((.0139322*r+.0971045*o+.7141733*i)/Ip)),new jp(116*a-16,500*(t-a),200*(a-n),e.opacity)}function jp(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Np(e){return e>Pp?Math.pow(e,1/3):e/Op+Lp}function $p(e){return e>Tp?e*e*e:Op*(e-Lp)}function zp(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Dp(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Bp(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Fp(e){if(isNaN(e.h))return new jp(e.l,0,0,e.opacity);var t=e.h*_p;return new jp(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Wu(jp,function(e,t,n,r){return 1===arguments.length?Mp(e):new jp(e,t,n,null==r?1:r)},Yu(Vu,{brighter(e){return new jp(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new jp(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 fp(zp(3.1338561*(t=Ap*$p(t))-1.6168667*(e=1*$p(e))-.4906146*(n=Ip*$p(n))),zp(-.9787684*t+1.9161415*e+.033454*n),zp(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Wu(Bp,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Bp)return new Bp(e.h,e.c,e.l,e.opacity);if(e instanceof jp||(e=Mp(e)),0===e.a&&0===e.b)return new Bp(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*kp;return new Bp(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Bp(e,t,n,null==r?1:r)},Yu(Vu,{brighter(e){return new Bp(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Bp(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Fp(this).rgb()}}));var Gp=e=>()=>e;function Hp(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Gp(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):Gp(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=hp(e)).r,(t=hp(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 Up="center",Wp="bottom";function Yp(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:Up,condition:({layoutService:e})=>{if(!e)return!1;const{x:t,y:n}=e.meta.size;return t*n===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Up,condition:({layoutService:e})=>!!e&&e.getHyperCubeValue("qMeasureInfo").every(e=>"NaN"===e.qMin&&"NaN"===e.qMax)},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Up,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:Up},{key:"DataRangeIncludingZero",alignment:Wp},{key:"LimitedData",alignment:Wp},{key:"NegativeOrZeroValues",alignment:Wp}].reduce((e,t)=>(e[t.key]=t,e),{});const Vp=["__proto__","constructor"];function qp(e,t,n){if(void 0===e||void 0===t)return;const r=t.split("."),o=r[r.length-1];if(Vp.some(e=>r.includes(e)))return;let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0===i[t]&&(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n?i[o]=n:delete i[o]}function Kp(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Xp(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Jp)):void 0===t&&(t=Zp);for(var n,r,o,i,a,s=new th(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 th(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(eh)}function Zp(e){return e.children}function Jp(e){return Array.isArray(e)?e[1]:null}function Qp(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function eh(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function th(e){this.data=e,this.depth=this.height=0,this.parent=null}var nh;th.prototype=Xp.prototype={constructor:th,count:function(){return this.eachAfter(Kp)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return Xp(this).eachBefore(Qp)},[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)}},nh=function(e){
88
88
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
89
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,c,d,u,p=e.length,h=e.search(/[0-9\-\+#]/),f=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),b=m.search(/[0-9\-\+#]/),g=p-b,v=e.substring(g,g+1),y=g+("."===v||","===v?1:0),x=b>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(h,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),d=e[0].split(i),e[0]=d.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0===+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=d[1]&&d[d.length-1].length){for(m="",g=(u=t[0]).length%l,p=u.length,y=0;y<p;y++)m+=u.charAt(y),!((y-g+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),f+(n?"-":"")+r+x}},nh({exports:{}});const rh="'Source Sans Pro', 'Arial', 'sans-serif'",oh="#333333",ih="#595959",ah="#737373",sh="#cccccc",lh="#e6e6e6";function ch(e){const t={};return[...e,["","","color"],["object","","fontFamily"],["object","axis.label.name","color",ih],["object","axis.label.name","fontFamily",rh],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",sh],["object","axis.line.minor","color",lh],["object","axis.title","color"],["object","axis.title","fontFamily",rh],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",lh],["object","grid.line.major","color",sh],["object","grid.line.minor","color",lh],["object","label.value","color",ih],["object","label.value","fontFamily",rh],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",ih],[!1,"label.value","lightColor",lh],["object","outOfRange","color","#999"],["object","legend.title","color",oh],["object","legend.title","fontFamily",rh],["object","legend.title","fontSize","15px"],["object","legend.label","color",ih],["object","legend.label","fontFamily",rh],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",oh],["object","referenceLine.label.name","fontFamily",rh],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",lh],["object","referenceLine.outOfBounds","fontFamily",rh],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",ah,e=>"transparent"===e?ah:e]].reduce((e,n)=>{const r=`${n[0]}-${n[1]}-${n[2]}}`;return t[r]||(t[r]=!0,e.push(n)),e},[]).sort((e,t)=>(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0))}const dh="object",uh=e=>e;function ph({theme:e,id:t,transform:n,extend:r,matrix:o}){const i={},a=n.reduce((e,t)=>{const[n,r]=t;return e[n]=r,e},{});return o.forEach(n=>{const[r,o,s,l,c=e=>e]=n,d=function({theme:e,base:t,path:n,attribute:r,defaultValue:o}){if(!e||!1===t)return o;const i=e.getStyle(t,n,r);return void 0===i?o:i}({theme:e,base:r===dh&&t?`${dh}.${t}`:r,path:o,attribute:s,defaultValue:l}),u=(a[`${o}.${s}`]||uh)(c(d));qp(i,[o,s].filter(Boolean).join("."),u)}),r.forEach(e=>{const[t,n]=e;qp(i,t,n)}),i}const hh={qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",containerChildId:"/containerChildId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition"}};function fh(e){if(!e.objects)return{};const t=ku(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,tab_isActive:n.qData.childRefId===e.cachedTabId}))}}const mh=({ref:e,theme:t,change:n})=>({component:"inline-wrapper",items:{bgColorDropdown:{ref:`${e}.useColorExpression`,width:9,component:"dropdown",change(t){(Yp(t,`${e}.color`)||Yp(t,`${e}.colorExpression`))&&(qp(t,`${e}.color`,void 0),qp(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=>!Yp(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=>Yp(t,`${e}.useColorExpression`)}}}),bh=({theme:e})=>({bgColorAllWrapper:mh({ref:"background.unselected"}),selectedTab:{translation:"properties.chartType.selected",component:"text"},bgColorSelectedWrapper:mh({ref:"background.selected"}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:mh({ref:"background.hover",theme:e,change:e=>{qp(e,"indicator.hover.color",Yp(e,"background.hover.color")),qp(e,"indicator.hover.useColorExpression",Yp(e,"background.hover.useColorExpression"))}})},show:(e,t)=>"left"===t.layout.orientation}}),gh=({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}}},vh=({theme:e})=>({colorWrapper:mh({ref:"indicator.selected",theme:e}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:mh({ref:"indicator.hover",theme:e,change:e=>{qp(e,"background.hover.color",Yp(e,"indicator.hover.color")),qp(e,"background.hover.useColorExpression",Yp(e,"indicator.hover.useColorExpression"))}})},show:(e,t)=>"left"!==t.layout.orientation}}),yh=({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}}},xh=({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:yh({paths:{ref:"label",theme:"label.value"},fontResolver:n,theme:r})}}}),Eh=({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]}}}}}),Ch=({theme:e,ref:t,key:n})=>({translation:"Object.TabbedContainer.Indicator",component:"panel-section",items:{indicator:{component:"items",ref:t,key:n,items:vh({theme:e})}}}),Sh=({ref:e,key:t,fontResolver:n,theme:r})=>({translation:"properties.icon",component:"panel-section",items:{icon:{component:"items",ref:e,key:t,items:gh({paths:{ref:"icon",theme:"icon.value"},fontResolver:n,theme:r})}},show:(e,{layout:t})=>t.showIcons}),wh=({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:mh({ref:"background"})}:bh({theme:e})}}}),Rh=({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:xh({ref:n,key:r,fontResolver:e,theme:t}),width:{...Eh({ref:n,key:r}),show:(e,{layout:t})=>"left"!==t.orientation},icon:Sh({ref:n,key:r,fontResolver:e,theme:t}),background:wh({ref:n,key:r,theme:t})}}},_h={ref:"label",type:"string",translation:"Object.Container.Props.Label",defaultValue:"",expression:"optional"},Ah={ref:"condition",translation:"Object.Container.Props.ShowCondition",component:"expression",defaultValue:{qValueExpression:{qExpr:""}},expressionType:"ValueExpression",expression:"always"},kh=(e,t)=>"object"==typeof e.label?t.objects.find(t=>t.childRefId===e.childRefId)?.label||e.label.qValueExpression.qExpr:e.label,Ih=e=>({component:"button",translation:"Object.Container.Props.EditProperties",disabled:(e,t)=>{const n=t.getLayout(),r=Ru(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:kh(t,n.getLayout())}),n.setSelectedChild([i]))}}),Lh=e=>{const{sense:t}=e.env.anything;return{label:_h,condition:Ah,styling:Rh({fontResolver:e.fontResolver,theme:t?.theme}),editProperties:Ih(e)}},Th={translation:"Object.Container.Props.Chart",component:"text",show:e=>e.objects?e.objects.length<=1:e.children.length<=1},Oh={translation:"Common.Charts",component:"text",show:e=>e.objects?e.objects.length>1:e.children.length>1},Ph=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:Lh(e)}),Mh=e=>({type:"items",translation:"Object.Container.Props.Content",items:{chartLabel:Th,chartsLabel:Oh,chartList:Ph(e)}}),jh={type:"boolean",translation:"Object.Container.Props.ShowTabs",ref:"showTabs",defaultValue:!0,component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},Nh={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},$h={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},zh={type:"boolean",translation:"Object.Container.Props.ShowIcons",ref:"showIcons",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},Dh={type:"string",translation:"Object.Container.Props.DefaultTab",ref:"defaultTabId",component:"dropdown",defaultValue:void 0,options(e,t){const n=t.getLayout();return n?n.objects.map(e=>({translation:e.label,value:e.childRefId})):[]},change(e,t){const n=Iu(t.getLayout(),e.defaultTabId);n&&t.setSelectedChild([n])},show:e=>e.objects.length>0},Bh={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},Fh=({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:xh({ref:n,key:r,fontResolver:e,theme:t}),width:Eh({ref:n,key:r}),indicator:Ch({ref:n,key:r,theme:t}),icon:Sh({ref:n,key:r,fontResolver:e,theme:t}),background:wh({ref:n,key:r,theme:t})}}},Gh={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:Fh({fontResolver:e.fontResolver,theme:t?.theme}),container:{type:"items",items:{showTabs:jh,useDropdown:Nh,useScrollButton:$h,showIcons:zh,orientation:Bh,defaultTabId:Dh}}}}},Uh=e=>({uses:"settings",items:{general:Gh,presentation:Hh(e)}}),Wh=e=>({type:"items",component:"accordion",items:{content:Mh(e),settings:Uh(e)}}),Yh=e=>{const{sense:t}=e.env.anything,n=function({theme:e,translator:t,config:n={}}){const{id:r,paths:o}=function({config:e={}}){const{id:t,paths:n}=e;return{id:void 0===t?Tu:`${Tu}.${t}`,paths:Array.isArray(n)?n:[]}}({config:n}),i={};o.forEach(n=>{const o=n.split(".");Bu(o);let a=i;for(let i=0;i<o.length;i++){const s=o[i];i===o.length-1?a[s]=zu({theme:e,translator:t,id:r,path:n}):void 0===a[s]&&(a[s]={}),a=a[s]}});const a=e=>{const t=e.split(".");Bu(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 Lu({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&&ru.includes(t.template))return!1;if("visualization"===t.type&&ru.includes(t.visualization))return!1}return"gridcell"!==e.type||!ru.includes(e.cell.model.layout.visualization)}}}(e);return{definition:Wh({...e,fontResolver:n}),support:{snapshot:!1,export:!0,sharing:!1,exportData:!1,viewData:!1},hidePatchPanel:()=>!0,getCreatePropertyHandler:t=>new Lu({app:t,data:e.propertyHandlerData}),...r,addChild:async function(e,t){const{childModel:n,handler:o}=await r.addChild.apply(this,[e,t]);n&&o.setSelectedChild([n.id])},migrate:{properties:(e,t)=>((async(e,t)=>{if(!e.objects){const{objects:n,defaultTabId:r,components:o,orientation:i,showDetails:a}=await t.getEffectiveProperties(),s=await t.getFullPropertyTree();if(!s.qProperty.objects&&n){const l=[];s.qChildren.forEach(e=>{const n=e.qProperty;if(n.qInfo.qId){const r=async r=>{const o=await t.getChild(r),i=await o.getEffectiveProperties();return{...e,qProperty:{...n,childRefId:i.childRefId}}};l.push(r(n.qInfo.qId))}});const c=await Promise.all(l),d={...e,objects:n,defaultTabId:r??"",components:o,qChildListDef:hh,orientation:i,showDetails:a};t.clearSoftPatches(),await t.setFullPropertyTree({...s,qProperty:d,qChildren:c})}}})(e,t),e)},exportProperties:null,importProperties:(e,t)=>{const n={...e.properties};return"masterobject"!==e.properties.qInfo.qType&&(n.qInfo.qType=t.qInfo.qType),n.visualization=t.visualization,{qProperty:n,qChildren:e.qChildren}},extendMetrics:fh}},Vh=e=>e.reduce((e,{id:t,data:n})=>(n&&(e[t]=n),e),{}),qh=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)}},Kh=async e=>{const t=[];for(const[n,r]of e){const e={id:n,data:void 0},o=r;t.push(o.getSnapshotLayout().then(e=>({id:n,data:e})).catch(()=>e))}const n=await Promise.all(t);return Vh(n)},Xh=(e,t)=>(n(async n=>{const r=n,{snapshotData:o}=r;if(o){const n=_u(r),i=t(e.objectMap,n),[a,s]=await Promise.all([Kh(i.objectMap),qh(i.objectMap)]);o.objectsData={layouts:a},r.objects=i.objects,o.viewState=s}return n}),{getViewState:()=>qh(e.objectMap)});let Zh=function(e){return e.COPY="ctrl+c",e.CUT="ctrl+x",e.OPEN_CONTEXT_MENU="shift+F10",e.ESCAPE="Escape",e.SPACE=" ",e.ENTER="Enter",e.BACKSPACE="Backspace",e.DELETE="Delete",e}({}),Jh=function(e){return e.KEY_DOWN="keydown",e.FOCUS_OUT="focusout",e}({}),Qh=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 ef=`& .${Qh.TAB}.${Qh.TAB_EXTRA_PRIO}, .${Qh.TAB}.${Qh.ACTIVE_TAB}`,tf=`& .${Qh.TAB}.${Qh.TAB_EXTRA_PRIO}:hover`,nf=`& .${Qh.TAB_LABEL}`,rf=`& .${Qh.TABS_ICON} svg`,of=`& .${Qh.TAB_WRAPPER}`,af=`& .${Qh.TAB_INDICATOR}`,sf=e=>e.getElementsByClassName(Qh.ACTIVE_TAB)?.[0],lf=e=>e.getElementsByClassName(Qh.ACTIVE_TAB_PANEL)?.[0],cf=({element:e,setAccessibility:n,accessibility:a,renderHelper:s,interactions:l,env:c,models:d})=>{const{modifiedLayout:{showTabs:u,objects:p,orientation:h},translator:f}=d;t(()=>{(()=>{const t="top"===h?f.get("TabContainer.Navigation.Horizontal"):f.get("TabContainer.Navigation.Vertical"),n=((e,t)=>e.map(e=>e.label||t.get("TabContainer.Object.Untitled")).join(", "))(p,f);e.setAttribute("aria-label",f.get("TabContainer.Object.Description",[n,u?t:""]))})()},[e,u,p,f,h]);const m=c.flags.isEnabled("VIZ-7_NEW_SHEET"),b=r(),g=o(()=>()=>{n(!1),b.enabled&&b.blur?.(!0)},[b,n]),v=o(()=>t=>{switch(t.shiftKey?`shift+${t.key}`:t.key){case Zh.ESCAPE:t.stopPropagation(),b.blur?.(!0);break;case Zh.ENTER:case Zh.SPACE:{t.stopPropagation();const n=t.target;n?.classList.contains(Qh.ACTIVE_TAB)&&lf(e)?.focus();break}}},[e,b]),y=o(()=>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 Zh.ESCAPE:{const n=sf(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 Zh.ENTER:case Zh.SPACE:{const n=lf(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 Zh.OPEN_CONTEXT_MENU:t.stopPropagation(),r?.viewDataToggled||e!==document.activeElement&&(g(),e.focus())}},[e,g,m,s]),x=o(()=>e=>{const t=e.target;t?.classList.contains(Qh.ACTIVE_TAB_PANEL)?y(e):v(e)},[v,y]);t(()=>(a&&e.addEventListener(Jh.KEY_DOWN,x),()=>{e.removeEventListener(Jh.KEY_DOWN,x)}),[e,a,x]);const[E,C]=i(!1);t(()=>{E&&(C(!1),window.setTimeout(()=>((e=>e.getElementsByClassName(Qh.TAB_MENU)?.[0])(e)??sf(e))?.focus(),0))},[e,E]),t(()=>{n(!1)},[l.edit,n]),t(()=>{const t=t=>{const n=t.relatedTarget;e?.contains(n)||n?.classList.contains(Qh.TAB_MENU_ITEM)||g?.()};return b.enabled&&b.active&&!l.edit&&(n(!0),C(!0),e.addEventListener(Jh.FOCUS_OUT,t)),()=>{e.removeEventListener(Jh.FOCUS_OUT,t)}},[b])},df=e=>{const[t]=i(e);return[t,function(e){Object.assign(t,e)}]},uf=({isContainerActive:e,activeTabId:n,modifiedLayout:r,renderHelper:i,activeCharts:a,sharedContainerUtilities:s})=>{const l={modifiedLayout:r,activeTabId:n,renderHelper:i,isContainerActive:e},[c,d]=df(l);d(l);const u=o(()=>()=>{const e=Au(c.modifiedLayout);for(const[t,n]of c.renderHelper.objectMap.entries()){const r=c.isContainerActive&&c.activeTabId===e[t];"setIsActive"in n&&n.setIsActive(r)}},[c]);t(()=>{c.isContainerActive&&u()},[i.objectMap,u,c]),t(()=>{u()},[e,u]),(({activeCharts:e,onSetActiveCharts:n,canSetActiveChart:r=!0})=>{const[o,i]=df({onSetActiveCharts:n});i({onSetActiveCharts:n}),t(()=>{if(!r)return;const t=e=>{o.onSetActiveCharts(e)};e.on("setActiveCharts",t);const n=e.getActiveCharts();return n.length>0&&t(n),()=>e.removeListener("setActiveCharts",t)},[e,o,r])})({activeCharts:a,onSetActiveCharts:e=>{if(0===e.length)return;const t=c.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t&&t!==c.activeTabId&&s.setSelected(e)}})},pf={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 hf={qInfo:{qId:"MasterObjectList",qType:"MasterObjectList"},qAppObjectListDef:{qType:"masterobject",qData:{name:"/qMetaDef/title",labelExpression:"/labelExpression",visualization:"/visualization",tags:"/qMetaDef/tags"}}};class ff{sessionObject;constructor(e){this.getOrCreateSessionObject(e).catch(()=>{})}getOrCreateSessionObject=async e=>{const t=hf.qInfo.qId;this.sessionObject=await e.getObject(t).catch(()=>e.createSessionObject(hf))};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=>!ru.includes(e.visualization))}catch{return[]}}}let mf=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 bf{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 ff(n)),e&&r&&(this.chartList=new ou(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&&!ru.includes(e.visualization))try{await this.mutex.lock();const{model:r}=this,o=async()=>{e.childRefId=pf.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 mf.TOP:{if(0===o)break;const e=r.splice(o,1)[0];r.unshift(e),i=!0;break}case mf.BOTTOM:{if(o===r.length-1)break;const e=r.splice(o,1)[0];r.push(e),i=!0;break}case mf.UP:{if(0===o)break;const e=r.splice(o,1)[0];r.splice(o-1,0,e),i=!0;break}case mf.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 gf{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 vf={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}},yf={index:-1,color:"none",alpha:1},xf=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}},Ef=(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})`},Cf=e=>{const{h:t,s:n,l:r}=xf(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 Ef(i,s,a,r-.5*i,o)},Sf={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 Cf(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 Cf(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}=xf(e),o=r*n,i=t/60,a=o*(1-Math.abs(i%2-1));return Ef(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&&vf[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||yf;let o;return o=e?.useColorExpression?Sf.resolveExpression(e):"string"==typeof r?r:n?.getColorPickerColor(r)||"",o&&"none"!==o?o:t}},wf=()=>yn.jsx(gu,{viewBox:"0 0 16 16",children:yn.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"})}),Rf=({libraryInfo:e,style:t,id:n})=>yn.jsx("div",{style:t,"data-testid":"tab-chart-icon",id:n,className:Qh.TABS_ICON,children:yn.jsx(e.IconDefinition,{})}),_f=({style:e,id:t})=>yn.jsx("div",{style:e,"data-testid":"tab-hidden-icon",id:t,children:yn.jsx(vu,{viewBox:"0 0 16 16",children:yn.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"})})}),Af=()=>yn.jsx(vu,{viewBox:"0 0 16 16",children:yn.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"})}),kf=$a(Ld)({width:28,overflow:"hidden"}),If=$a(Ld)({height:28,width:"100%",overflow:"hidden",alignItems:"center","&::before":{visibility:"hidden"}}),Lf=(e,t)=>e.find(e=>e.childRefId===t),Tf=(e,t)=>!t.edit&&0===e.condition,Of=e=>{const{objects:t,defaultTabId:n,cachedTabId:r}=e;return r||(n&&t.some(e=>e.childRefId===n)?n:t[0]?.childRefId||"")};class Pf{modifiedLayout;themeStyle;style;objectMap;activeTabId;theme;constructor({modifiedLayout:e,themeService:t}){this.modifiedLayout=e,this.activeTabId=Of(this.modifiedLayout),this.themeStyle=t.getStyles(),this.theme=t.getTheme(),this.objectMap=ku(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 Sf.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=Sf.getColor({style:e,theme:this.theme})}return n??Sf.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:Yp(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:Yp(r,"label.fontSize"),fontFamily:Yp(r,"label.fontFamily"),color:Sf.getColor({style:Yp(r,"label.color"),theme:this.theme})},e[`#tab-icon-${this.modifiedLayout.qInfo.qId}-${n} svg`]={height:Yp(r,"icon.size"),color:Sf.getColor({style:Yp(r,"icon.color"),theme:this.theme})},e},{});createTabsClasses=()=>({[nf]:{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"})},[rf]:{height:this.resolveComponentStyle({compPath:"icon.size",themePath:"icon.value.fontSize"}),color:this.getColorStyle("icon.color","icon.value.color")},[ef]:{textAlign:this.resolveComponentStyle({compPath:"label.alignment",themePath:"label.textAlignment"}),...this.getTabsWidth("top")},[tf]:{..."top"===this.modifiedLayout.orientation&&{borderBottomColor:this.getColorStyle("indicator.hover","indicator.hover.color")}},[of]:{...this.getTabsWidth("left"),backgroundColor:this.getColorStyle("background.unselected","")},[af]:{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 Yp(o,t)??Yp(this.themeStyle,n)??r};getTabStyle(e){return this.objectMap[e].components?.find(e=>"tab"===e.key)}}const Mf=()=>{const t=a(),n=s(),r=l(),m=c(),b=d(),g=u(),v=e(),y=p(),x=h(),E=function({theme:e,config:t={}}){const{id:n,resolve:r=[],transform:o=[],extend:i=[]}=t,a={theme:e,matrix:ch(r),styles:void 0};return a.styles=ph({theme:e,id:n,transform:o,extend:i,matrix:a.matrix}),{getStyles:()=>a.styles,getTheme:()=>a.theme,setTheme:e=>{a.theme=e,a.styles=ph({theme:e,id:n,transform:o,extend:i,matrix:a.matrix})}}}({theme:f(),config:{id:"tabbedContainer",resolve:[["object.tabbedContainer","indicator.selected","color"],["object.tabbedContainer","indicator.hover","color"],["object.tabbedContainer","background.hover","color"],["object.tabbedContainer","icon.value","color"],["object.tabbedContainer","icon.value","fontSize"]]}}),C=o(()=>new ou(m,g),[m,g]),[S]=i(()=>new gf(b.id)),[w,R]=i(!1),_=o(()=>m&&b&&n?new bf({embed:m,model:b,app:n,translator:g,mutex:S}):void 0,[m,b,n,g,S]),A=o(()=>_u(r),[r]),k=o(()=>new Pf({modifiedLayout:A,themeService:E}),[A,E]);return o(()=>({app:n,modifiedLayout:A,embed:m,model:b,emitter:y,interactions:x,dataHandler:_,chartList:C,styleModel:k,mutex:S,options:v,accessibility:w,setAccessibility:R,translator:g,element:t}),[A,m,b,n,y,x,_,C,k,S,v,w,g,t])},jf=({dataHandler:e,modifiedLayout:t,translator:n,sharedContainerUtilities:r,Icon:o})=>{const[i,a]=R(void 0);if(!e||!t)return null;const s=!t.qExtendsId;return yn.jsx(uu,{children:yn.jsxs(du,{children:[yn.jsx(o,{}),s?yn.jsxs(yn.Fragment,{children:[yn.jsx(bu,{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")}),yn.jsx(Eu,{translator:n,anchorEl:i,dataHandler:e,onClose:()=>{a(void 0)},sharedContainerUtilities:r})]}):yn.jsx(Ks,{variant:"inherit",children:n.get("LayoutContainer.EmptyList.EmptyHint")})]})})};class Nf{_rendered=new Set;_objectMap=new Map;_objectApis=new Map;_resolver;_dependencyData;_recreateMap=new Map;constructor(e){this._dependencyData=e}set dependencyData(e){this._dependencyData=e}get rendered(){return this._rendered}get objectMap(){return this._objectMap}get objectApis(){return this._objectApis}get resolver(){return this._resolver}get recreateMap(){return this._recreateMap}createTimerForRendering=()=>{if(!this.resolver){let e;const t=setTimeout(()=>{this._dependencyData.options.onRenderStatusUpdate?.("Layout container rendering timeout reached after 90 seconds. Resolving anyway."),this.doResolve()},9e4),n=new Promise(t=>{e=t});this._resolver={promise:n,resolve:e,timer:t}}return this._resolver};doResolve=()=>{this.resolver&&(clearTimeout(this.resolver?.timer),this.resolver.resolve?.(!0),this._resolver=void 0)};tryToResolve=()=>{const{visibleLayoutObjects:e}=this._dependencyData;if(this.resolver){e.every(e=>this.rendered.has(e.id))&&(this._dependencyData.options.onRenderStatusUpdate?.("All layout container children rendered"),this.doResolve())}};syncObjects(e){const t=new Set,n=new Set([...Array.from(this.objectMap.keys()),...Array.from(this.objectApis.keys()),...this.rendered]),r=new Set(n);let o=!1;return e.forEach(e=>{n.has(e.id)?(this.rendered.has(e.id)&&t.add(e.id),r.delete(e.id)):o=!0}),r.forEach(e=>{const t=this.objectMap.get(e);t&&(this.confirmPotentialSelections(t),t.destroy?.(),this.objectMap.delete(e)),this.objectApis.get(e)?.destroy(),this.objectApis.delete(e)}),this._rendered=t,this.tryToResolve(),o}destroy(){for(const e of this.objectApis.values())e.destroy();this._objectMap=new Map,this._objectApis=new Map}saveObject(e,t){this.objectMap.set(e,t)}saveObjectApi(e,t){this._objectApis.set(e,t)}onRendered(e){this._dependencyData.options.onRenderStatusUpdate?.(`Layout container child rendered: ${this.rendered.size+1}/${this._dependencyData.visibleLayoutObjects.length} ${e}`),this.rendered.add(e),this.tryToResolve()}getChildrenObjects(){const{visibleLayoutObjects:e}=this._dependencyData,t=[];return e.forEach(e=>{const n=this.objectMap.get(e.id);n&&t.push(n)}),t}getChildLayout(e){const{modifiedLayout:t}=this._dependencyData;return t.qChildList.qItems.find(t=>t.qInfo.qId===e)}getObjectOptions(e){const{viewState:t,modifiedLayout:n,options:r}=this._dependencyData,{chartAnimations:o,direction:i,progressiveRendering:a,freeResize:s,navigation:l}=r;return{isReadonly:!1,setController:t=>{this.saveObject(e,t)},onRendered:()=>{this.onRendered(e)},onInitialRender:()=>{this.onRendered(e)},isParentMaster:!!n?.qExtendsId,isSnapshot:!!n.snapshotData,...!!t?.viewStates?.[e]&&{viewState:t?.viewStates[e]},...!!t?.layouts?.[e]&&{layout:t.layouts[e]},direction:i,chartAnimations:o,progressiveRendering:a,freeResize:s,navigation:l,disableThemeBorder:!1,fallbackToClient:r.fallbackToClient}}confirmPotentialSelections(e){e&&"selectionsApi"in e&&e.selectionsApi.active&&e.selectionsApi.confirm()}}const $f=({chartObject:e,embed:t,renderHelper:n,direction:r,interactions:o,env:i})=>{const a=A(null),{id:s}=e;_(()=>{if(s&&a.current){const e=n.getObjectOptions(s)||{};e.disableThemeBorder=!0,t.render({id:s,element:a.current,options:e}).then(e=>{n.saveObjectApi(s,e)}).catch(e=>{const t=n.getChildLayout(s)?.qInfo?.qType;console.error("Could not render chart with id",s,t,e)})}},[s,t,n,r]);const l=k(()=>()=>{if(e?.id&&i.anything){const t=e?.label,{sense:r}=i.anything,o="current",a=n.objectMap.get(e.id);a&&r.propertyPanel.show({model:a.model,parent:o,headerLabel:t,keepCurrentActiveCell:!0})}},[i,e,n]);return _(()=>{const e=a?.current;return e&&o?.edit&&e.addEventListener("dblclick",l),()=>{e?.removeEventListener("dblclick",l)}},[a,l,o]),yn.jsx("div",{ref:a,style:{position:"relative",height:"100%",width:"100%"},"data-testid":`tab-panel-${e.childRefId}`})};let zf=function(e){return e.TABS_HEIGHT="36px",e}({});const Df=({charts:e,handleChangeTab:t,activeTabId:n,element:r,translator:o,accessibility:i,disabled:a})=>{const[s,l]=y.useState(null),c=Boolean(s),d=()=>{l(null)},u=I(e=>{e?.focus()},[]);return yn.jsxs(yn.Fragment,{children:[yn.jsx(Ol,{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:Qh.TAB_MENU,sx:{m:"2px"},children:yn.jsx(Af,{})}),yn.jsx(dd,{anchorEl:s,open:c,onClose:d,elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{py:0}},slotProps:{paper:{sx:{maxHeight:"500px",maxWidth:"500px"}}},children:e.map(e=>yn.jsx(md,{className:Qh.TAB_MENU_ITEM,ref:n===e.childRefId&&c?u:null,onClick:()=>{(e=>{t(e.childRefId),d(),window.setTimeout(()=>{r.getElementsByClassName(Qh.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:yn.jsx(Ks,{variant:"inherit",noWrap:!0,children:e.label})},`chartTabMenu-${e.childRefId}`))})]})},Bf=({label:e,id:t})=>yn.jsx(Cl,{className:Qh.TAB_LABEL,id:`tab-label-${t}`,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",overflow:"hidden",flexWrap:"wrap"},children:yn.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})}),Ff=({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?yn.jsx(_f,{id:`${Qh.TABS_ICON}-${r}`,style:o}):e?yn.jsx(Rf,{id:`${Qh.TABS_ICON}-${r}`,libraryInfo:e,style:o}):null},Gf=({models:e,activeTabId:t,handleChangeTab:n})=>{const{modifiedLayout:r,chartList:o,interactions:i,accessibility:a}=e,s=o?.getCharts(),l=r.objects.filter(e=>!Tf(e,i)),{orientation:c,tabContainerStyle:d,ScrollButtonComponent:u}=(({orientation:e})=>"left"===e?{orientation:"vertical",tabContainerStyle:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"25%",flexShrink:0},ScrollButtonComponent:If}:{orientation:"horizontal",tabContainerStyle:{display:"flex",flexDirection:"row",alignItems:"center"},ScrollButtonComponent:kf})(r),p=!1===i.active&&!i.edit,[h,f]=R(!1),m=I(e=>{if(e){const t=e.getElementsByClassName("MuiTabs-flexContainer")[0];if(t)return void f("vertical"===c?t.scrollHeight>t.offsetHeight:t.scrollWidth>t.offsetWidth)}f(!1)},[c]);return yn.jsxs(Cl,{className:Qh.TAB_WRAPPER,sx:d,ref:e=>{m(e)},children:[r.useDropdown&&h?yn.jsx(Df,{charts:l,handleChangeTab:n,activeTabId:t,accessibility:a,translator:e.translator,element:e.element,disabled:p}):null,yn.jsx(Hd,{value:t,onChange:(e,t)=>{n(t)},ScrollButtonComponent:u,variant:"scrollable",orientation:c,scrollButtons:!!r.useScrollButton&&"auto",TabScrollButtonProps:{...p&&{disabled:!0}},sx:{height:"100%",width:"100%",minHeight:zf.TABS_HEIGHT},children:l.map(n=>{const o=Ru(r,n.childRefId)?.qData?.visualization,i=o&&s?.[o]?.libraryInfo,l=e.styleModel.getTabStyle(n.childRefId),d=0===n.condition||r.showIcons&&i&&!1!==l?.icon?.show,u="vertical"===c?"top":"start",h=e.styleModel.resolveComponentStyle({compPath:"icon.position",defaultValue:u}),f=e.styleModel.resolveComponentStyle({compPath:"label.show"}),m=n.label&&(l?.label?.show??!1!==f),b=`${r.qInfo.qId}-${n.childRefId}`;return yn.jsx(xd,{className:`${Qh.TAB} ${t===n.childRefId?Qh.ACTIVE_TAB:""}`,disabled:p,id:`tab-${b}`,value:n.childRefId,title:n.label,label:m?yn.jsx(Bf,{label:n.label,id:b}):void 0,icon:d?yn.jsx(Ff,{libraryInfo:i,chart:n,iconPosition:h,id:b}):"",iconPosition:h,"data-testid":`container-tab-${n.childRefId}`,sx:{textAlign:"vertical"!==c||r.showIcons?"center":"start",minWidth:"vertical"===c?"100%":void 0,minHeight:zf.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)})})]})},Hf=({models:e,renderHelper:t,activeTabId:n,handleChangeTab:r,env:o})=>{const{modifiedLayout:i,embed:a,interactions:s,options:l,styleModel:c,accessibility:d}=e,u=i.objects,p=s.edit||!!u.find(e=>0!==e.condition),h=i.showTabs&&p,f="left"===i.orientation?"row":"column",m=c.getStyleClasses();return yn.jsxs(Cl,{sx:{display:"flex",flexDirection:f,height:"100%",width:"100%",direction:l.direction,...m},children:[h?yn.jsx(Gf,{models:e,activeTabId:n,handleChangeTab:r}):null,u.map(e=>{const r=`tab-panel-${i.qInfo.qId}-${e.childRefId}`,c=n===e.childRefId&&!Tf(e,s);return yn.jsx(Cl,{role:"tabpanel",id:r,"aria-label":e.label,sx:{flex:"1 1 auto",minHeight:0,width:"100%",padding:"2px",boxSizing:"border-box",direction:"ltr","&:focus-visible":{boxShadow:"inset 0 0 0 2px #0275D9",borderRadius:"3px",zIndex:1200}},...c?{className:Qh.ACTIVE_TAB_PANEL,tabIndex:d?0:-1}:{hidden:!0},children:c?yn.jsx($f,{chartObject:e,renderHelper:t,direction:l.direction,embed:a,interactions:s,env:o}):null},r)})]})};let Uf=function(e){return e.COPY="copy",e.PASTE="paste",e.RESET_COPY_BUFFER="resetCopyBuffer",e}({}),Wf=function(e){return e.COPY="copy",e.PASTE_AND_REPLACE="paste-and-replace",e.PASTE="paste",e.DUPLICATE="duplicate",e.DELETE="delete",e.CUT="cut",e.EDIT_PROPERTIES="edit",e.ZOOM_IN="zoom-in",e.VISUAL_EXPLORATION="visual-exploration",e.MONITOR_IN_HUB="addto",e.REORDER_LAYERS_GROUP="reorder-layers-group",e.BRING_TO_FRONT="bring-to-front",e.BRING_FORWARD="bring-forward",e.SEND_TO_BACK="send-to-back",e.SEND_BACKWARDS="send-backwards",e.CONTAINER_HEADER="container-header",e.CHART_HEADER="chart-header",e.ALERT_GROUP="alertGroup",e.ADD_TO_MASTER_ITEMS="add-to-master-items",e.UNLINK_VISUALIZATION="unlink",e.DEVELOPER="object-developer",e.SHOW_DETAILS="object-info",e.EXPLAIN_KEY_DRIVERS_OLD_ID="explainKeyDrivers",e.EXPLAIN_KEY_DRIVERS="key-driver",e.SUBSCRIBE="subscribe",e.NOTES_GROUP="notesGroup",e.DOWNLOAD="download",e.SHARE_IMAGE="share",e}({});const Yf=[Wf.PASTE_AND_REPLACE,Wf.ZOOM_IN,Wf.VISUAL_EXPLORATION],Vf=[Wf.VISUAL_EXPLORATION,Wf.ALERT_GROUP,Wf.SHOW_DETAILS,Wf.EXPLAIN_KEY_DRIVERS,Wf.EXPLAIN_KEY_DRIVERS_OLD_ID],qf=[Wf.DELETE,Wf.CUT,Wf.ADD_TO_MASTER_ITEMS,Wf.UNLINK_VISUALIZATION],Kf=[Wf.PASTE_AND_REPLACE],Xf=(e,t)=>{const{childRefId:n}=e.model.layout,r=t.objects.find(e=>e.childRefId===n);return{...e,additionalData:{label:r?.label}}},Zf=(e,t,n,r,o)=>{const i=t.getSupportFunction(Wf.COPY);if(!i)return void e.deleteItem(Wf.COPY);const a=()=>{i(Xf(n,r)).catch(()=>{})},s=e.items.find(e=>e.id===Wf.COPY);if(s)s.updateItem({select:a});else if(o){const t=e.items.findIndex(e=>e.id===Wf.CUT),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.copy",tid:Wf.COPY,id:Wf.COPY,icon:"copy",select:a,items:[]},n)}},Jf=e=>e.interactions.edit&&!e.modifiedLayout.qExtendsId,Qf=async(e,t,n,r,o)=>{if(o.flags.isEnabled("GVC_48_CHART_CONTEXT_MENU_ITEM_GENERATION"))return;const i=t.getBuilder("default");if(!i)return;const a=await i();a.addItem({translation:"contextMenu.containerOptionsHeader",tid:Wf.CONTAINER_HEADER,id:Wf.CONTAINER_HEADER,bold:!0,items:[]},0);const s=Jf(n);a.items.forEach(e=>{(Vf.includes(e.id)||!s&&Kf.includes(e.id))&&a.deleteItem(e.id)}),s&&await(async(e,t,n)=>{const r=t.getSupportFunction(Uf.PASTE),o=await(r?.()?.catch(()=>{}));if(!o||ru.includes(o.template))return void e.deleteItem(Wf.PASTE_AND_REPLACE);const i=()=>{n()},a=e.items.find(e=>e.id===Wf.PASTE_AND_REPLACE||e.id===Wf.PASTE);if(a)a.updateItem({translation:"contextMenu.paste",select:i});else{const t=e.items.findLastIndex(e=>e.id===Wf.COPY||e.id===Wf.DEVELOPER||e.id===Wf.CONTAINER_HEADER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.paste",tid:Wf.PASTE_AND_REPLACE,id:Wf.PASTE_AND_REPLACE,icon:"paste",select:i,items:[]},n)}})(a,t,r),e.updateItem({items:a.items}),1===e.items.length&&e.deleteItem(Wf.CONTAINER_HEADER)},em=e=>{const t={[Wf.MONITOR_IN_HUB]:!0,[Wf.SUBSCRIBE]:!0,[Wf.NOTES_GROUP]:!0,[Wf.DOWNLOAD]:!0,[Wf.SHARE_IMAGE]:!0};e.items.forEach(n=>{t[n.id]?e.deleteItem(n.id):n.items&&em(n)})},tm=(e,t,n,r,o,i)=>a=>{const{dataHandler:s,modifiedLayout:l}=r;if(Jf(r)){n.isInvalid||(((e,t,n,r)=>{const{model:o,modifiedLayout:i}=n,a=e.items.findLastIndex(e=>e.id===Wf.CHART_HEADER||e.id===Wf.REORDER_LAYERS_GROUP),s=a>=0?1+a:void 0;e.addItem({translation:"Object.Container.Props.EditProperties",tid:Wf.EDIT_PROPERTIES,id:Wf.EDIT_PROPERTIES,icon:Wf.EDIT_PROPERTIES,items:[],select:()=>{const{childRefId:e}=t.model.layout,n=i.objects.find(t=>t.childRefId===e),a=n?.label,{sense:s}=r.anything,l=o;s.propertyPanel.show({model:t.model,parent:l,headerLabel:a})}},s)})(a,n,r,o),((e,t,n,r,o,i)=>{const a=r.getSupportFunction(Wf.COPY);if(!a)return void e.deleteItem(Wf.CUT);const s=()=>{o&&a(Xf(n,i)).then(async()=>{await(o?.deleteChildren([t]))}).catch(()=>{})},l=e.items.find(e=>e.id===Wf.CUT);if(l)l.updateItem({select:s});else{const t=e.items.findLastIndex(e=>e.id===Wf.ADD_TO_MASTER_ITEMS||e.id===Wf.UNLINK_VISUALIZATION||e.id===Wf.EDIT_PROPERTIES||e.id===Wf.REORDER_LAYERS_GROUP||e.id===Wf.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.cut",tid:Wf.CUT,id:Wf.CUT,icon:"cut",select:s,items:[]},n)}})(a,t,n,e,s,l),Zf(a,e,n,l,!0),((e,t,n,r,o)=>{const i=t.getSupportFunction(Uf.COPY),a=t.getSupportFunction(Uf.PASTE);if(!i||!a)return void e.deleteItem(Wf.DUPLICATE);const s=()=>{i(Xf(n,r)).then(()=>{o()}).catch(()=>{})},l=e.items.find(e=>e.id===Wf.DUPLICATE);if(l)l.updateItem({select:s});else{const t=e.items.findIndex(e=>e.id===Wf.COPY),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Duplicate",tid:Wf.DUPLICATE,id:Wf.DUPLICATE,icon:Wf.DUPLICATE,items:[],select:s},n)}})(a,e,n,l,i)),((e,t,n)=>{const r=()=>{n&&n.deleteChildren([t]).catch(()=>{})},o=e.items.find(e=>e.id===Wf.DELETE);if(o)o.updateItem({select:r});else{const t=e.items.findLastIndex(e=>e.id===Wf.DUPLICATE||e.id===Wf.ADD_TO_MASTER_ITEMS||e.id===Wf.UNLINK_VISUALIZATION||e.id===Wf.REORDER_LAYERS_GROUP||e.id===Wf.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Delete",tid:Wf.DELETE,id:Wf.DELETE,icon:"bin",items:[],select:r},n)}})(a,t,s)}else Zf(a,e,n,l,!1)},nm=(e,t,n,r)=>{b(async(o,i,a)=>{if(!a)return!1;const s=((e,t)=>()=>{if(!e)return;const n=t.getSupportFunction(Uf.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(Uf.RESET_COPY_BUFFER)})})(n.dataHandler,a);if(await Qf(o,a,n,s,r),em(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,Qh.ACTIVE_TAB_PANEL)})(i))return!0;const l=n.modifiedLayout.objects.find(t=>t.childRefId===e)?.id;if(!l)return!0;const c=t.objectMap.get(l);if(!c)return!0;const d=tm(a,e,c,n,r,s),u=await(async(e,t,n,r)=>{const o=Jf(n),i=e.getBuilder("object");if(!i)return;const a=await i(t);return a.addItem({translation:"contextMenu.chartOptionsHeader",tid:Wf.CHART_HEADER,id:Wf.CHART_HEADER,bold:!0,items:[]},0),r(a),a.items.forEach(e=>{(Yf.includes(e.id)||!o&&qf.includes(e.id))&&a.deleteItem(e.id)}),1===a.items.length&&a.deleteItem(Wf.CHART_HEADER),a})(a,c,n,d);return!u||(o.items.length>0&&u.addItem({translation:"contextMenu.subMenuContainerOptions",tid:"tabbed-container-menu",id:"tabbed-container-menu",icon:"tabbed-container",items:[...o.items]},u.items.length),o.updateItem({items:u.items}),!0)})},rm=({element:n,models:r,env:a,activeCharts:s})=>{const l=((e,n)=>{const[r,o]=i(void 0);return t(()=>{if(0===e.getElementsByClassName(n).length){const t=document.createElement("div");t.className=n,e.appendChild(t);const r=su.createRoot(t);o(r)}return()=>{r?.unmount()}},[e,n,r]),r})(n,"init-component"),{options:c,modifiedLayout:d,interactions:u,model:p}=r,{qChildList:h}=d,f=tu(c.direction),b=(t=>{const{viewState:n}=e(),{snapshotData:r}=t;if(r){const{layouts:e}=r.objectsData,t=r.viewState?.viewStates;return{layouts:e,viewStates:t}}if(n){const{viewStates:e}=n;return{viewStates:e}}})(d),g=o(()=>Of(d),[d]),v={modifiedLayout:d,activeTabId:g,env:a},[y,x]=df(v);x(v);const E=o(()=>d.objects.filter(e=>g===e.childRefId),[g,d.objects]),{renderHelper:C}=(e=>{const{visibleLayoutObjects:n,options:r}=e,[o]=i(()=>new Nf(e)),[,a]=i(r);return o.dependencyData=e,m(async()=>(a(e=>(e!==r&&n.forEach(e=>o.recreateMap.set(e.id,!0)),r)),o.syncObjects(n)?o.createTimerForRendering()?.promise:o.resolver?.promise),[n,r]),t(()=>()=>{o.destroy()},[o]),{renderHelper:o}})({modifiedLayout:d,visibleLayoutObjects:E,viewState:b,options:c});nm(g,C,r,a);const[S]=i({current:void 0}),w=o(()=>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]),R=o(()=>({setSelected:e=>{const t=y.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t?w(t):S.current=e[0]}}),[w,y,S]);t(()=>{const e=(({chartObjects:e,activeTabId:t})=>!Lf(e,t)&&e.length>0?e[0]?.childRefId:t)({chartObjects:y.modifiedLayout.objects,activeTabId:y.activeTabId});if(e!==y.activeTabId)w(e);else if(S.current){const e=y.modifiedLayout.objects.find(e=>e.id===S.current)?.childRefId;e&&w(e)}S.current=void 0},[d?.objects.length,y,S,w]),t(()=>{const e=(({chartObjects:e,activeTabId:t,interactions:n})=>{const r=Lf(e,t);if(!r||Tf(r,n)){const n=e.find(e=>0!==e.condition);return n?.childRefId||t}return t})({chartObjects:y.modifiedLayout.objects,activeTabId:y.activeTabId,interactions:u});e!==y.activeTabId&&w(e)},[u,d?.objects,y,w]);const _=0===h.qItems.length&&u.edit;return t(()=>{l?.render(yn.jsxs(Da,{theme:f,children:[_?yn.jsx(jf,{Icon:wf,dataHandler:r.dataHandler,modifiedLayout:r.modifiedLayout,translator:r.translator,sharedContainerUtilities:R}):null,!_&&yn.jsx(Hf,{models:r,renderHelper:C,activeTabId:g,handleChangeTab:w,env:a})]}))},[l,r,f,_,C,g,R,w,a]),{renderHelper:C,sharedContainerUtilities:R,activeTabId:g}};var om={targets:[]};const im={showTitles:!0,title:"",subtitle:"",footnote:"",disableNavMenu:!0,showDetails:!1,objects:[],qChildListDef:{qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition"}},showTabs:!0,useScrollButton:!0,useDropdown:!1,showIcons:!1,components:[],defaultTabId:"",orientation:"top",fontsUsed:[]};!function(e,t){void 0===t&&(t={});var 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 am=(e,t)=>{let n=!0;const r=t.objects.reduce((t,r)=>{const o=r.id;if(0!==r.condition){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};function sm(n){const r=new nu({translator:n.translator});return{qae:{properties:im,data:om},ext:Yh({env:n,propertyHandlerData:r}),component(){const a=Mf(),s=u();o(()=>{!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])})}}(s)},[s]);const{dataHandler:l,model:c,accessibility:d,setAccessibility:p,interactions:h,element:f,modifiedLayout:m}=a,b=o(()=>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:v,sharedContainerUtilities:y,activeTabId:x}=rm({element:f,models:a,env:n,activeCharts:b});(({propertyHandlerData:n,element:r,sharedContainerUtilities:o,translator:i,containerId:a,dataHandler:s,renderHelper:l,chartList:c})=>{const d=e();a&&n.sync({containerId:a,element:r,sharedContainerUtilities:o,translator:i,dataHandler:s,renderHelper:l,chartList:c}),t(()=>{n.setMuiTheme(d.direction)},[d.direction,n]),t(()=>()=>{a&&n.destroy(a)},[a,n,d.direction])})({containerId:c?.id||"",element:f,sharedContainerUtilities:y,translator:s,dataHandler:l,propertyHandlerData:r,renderHelper:v});const[E,C]=i(!0);uf({isContainerActive:E,activeTabId:x,renderHelper:v,modifiedLayout:m,activeCharts:b,sharedContainerUtilities:y}),cf({element:f,accessibility:d,setAccessibility:p,renderHelper:v,interactions:h,env:n,models:a});const{getViewState:S}=Xh(v,am);g(()=>({getViewState:S,getChildrenObjects:()=>(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}))(v.getChildrenObjects()),updateActiveState(e){C(e)},activeCharts:b}),[])}}}export{sm as default};
89
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,c,d,u,p=e.length,h=e.search(/[0-9\-\+#]/),f=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),b=m.search(/[0-9\-\+#]/),g=p-b,v=e.substring(g,g+1),y=g+("."===v||","===v?1:0),x=b>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(h,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),d=e[0].split(i),e[0]=d.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0===+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=d[1]&&d[d.length-1].length){for(m="",g=(u=t[0]).length%l,p=u.length,y=0;y<p;y++)m+=u.charAt(y),!((y-g+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),f+(n?"-":"")+r+x}},nh({exports:{}});const rh="'Source Sans Pro', 'Arial', 'sans-serif'",oh="#333333",ih="#595959",ah="#737373",sh="#cccccc",lh="#e6e6e6";function ch(e){const t={};return[...e,["","","color"],["object","","fontFamily"],["object","axis.label.name","color",ih],["object","axis.label.name","fontFamily",rh],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",sh],["object","axis.line.minor","color",lh],["object","axis.title","color"],["object","axis.title","fontFamily",rh],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",lh],["object","grid.line.major","color",sh],["object","grid.line.minor","color",lh],["object","label.value","color",ih],["object","label.value","fontFamily",rh],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",ih],[!1,"label.value","lightColor",lh],["object","outOfRange","color","#999"],["object","legend.title","color",oh],["object","legend.title","fontFamily",rh],["object","legend.title","fontSize","15px"],["object","legend.label","color",ih],["object","legend.label","fontFamily",rh],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",oh],["object","referenceLine.label.name","fontFamily",rh],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",lh],["object","referenceLine.outOfBounds","fontFamily",rh],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",ah,e=>"transparent"===e?ah:e]].reduce((e,n)=>{const r=`${n[0]}-${n[1]}-${n[2]}}`;return t[r]||(t[r]=!0,e.push(n)),e},[]).sort((e,t)=>(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0))}const dh="object",uh=e=>e;function ph({theme:e,id:t,transform:n,extend:r,matrix:o}){const i={},a=n.reduce((e,t)=>{const[n,r]=t;return e[n]=r,e},{});return o.forEach(n=>{const[r,o,s,l,c=e=>e]=n,d=function({theme:e,base:t,path:n,attribute:r,defaultValue:o}){if(!e||!1===t)return o;const i=e.getStyle(t,n,r);return void 0===i?o:i}({theme:e,base:r===dh&&t?`${dh}.${t}`:r,path:o,attribute:s,defaultValue:l}),u=(a[`${o}.${s}`]||uh)(c(d));qp(i,[o,s].filter(Boolean).join("."),u)}),r.forEach(e=>{const[t,n]=e;qp(i,t,n)}),i}const hh={qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",containerChildId:"/containerChildId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition"}};function fh(e){if(!e.objects)return{};const t=Au(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,tab_isActive:n.qData.childRefId===e.cachedTabId}))}}const mh=({ref:e,theme:t,change:n})=>({component:"inline-wrapper",items:{bgColorDropdown:{ref:`${e}.useColorExpression`,width:9,component:"dropdown",change(t){(Yp(t,`${e}.color`)||Yp(t,`${e}.colorExpression`))&&(qp(t,`${e}.color`,void 0),qp(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=>!Yp(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=>Yp(t,`${e}.useColorExpression`)}}}),bh=({theme:e})=>({bgColorAllWrapper:mh({ref:"background.unselected"}),selectedTab:{translation:"properties.chartType.selected",component:"text"},bgColorSelectedWrapper:mh({ref:"background.selected"}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:mh({ref:"background.hover",theme:e,change:e=>{qp(e,"indicator.hover.color",Yp(e,"background.hover.color")),qp(e,"indicator.hover.useColorExpression",Yp(e,"background.hover.useColorExpression"))}})},show:(e,t)=>"left"===t.layout.orientation}}),gh=({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}}},vh=({theme:e})=>({colorWrapper:mh({ref:"indicator.selected",theme:e}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:mh({ref:"indicator.hover",theme:e,change:e=>{qp(e,"background.hover.color",Yp(e,"indicator.hover.color")),qp(e,"background.hover.useColorExpression",Yp(e,"indicator.hover.useColorExpression"))}})},show:(e,t)=>"left"!==t.layout.orientation}}),yh=({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}}},xh=({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:yh({paths:{ref:"label",theme:"label.value"},fontResolver:n,theme:r})}}}),Eh=({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]}}}}}),Ch=({theme:e,ref:t,key:n})=>({translation:"Object.TabbedContainer.Indicator",component:"panel-section",items:{indicator:{component:"items",ref:t,key:n,items:vh({theme:e})}}}),Sh=({ref:e,key:t,fontResolver:n,theme:r})=>({translation:"properties.icon",component:"panel-section",items:{icon:{component:"items",ref:e,key:t,items:gh({paths:{ref:"icon",theme:"icon.value"},fontResolver:n,theme:r})}},show:(e,{layout:t})=>t.showIcons}),wh=({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:mh({ref:"background"})}:bh({theme:e})}}}),Rh=({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:xh({ref:n,key:r,fontResolver:e,theme:t}),width:{...Eh({ref:n,key:r}),show:(e,{layout:t})=>"left"!==t.orientation},icon:Sh({ref:n,key:r,fontResolver:e,theme:t}),background:wh({ref:n,key:r,theme:t})}}},_h={ref:"label",type:"string",translation:"Object.Container.Props.Label",defaultValue:"",expression:"optional"},kh={ref:"condition",translation:"Object.Container.Props.ShowCondition",component:"expression",defaultValue:{qValueExpression:{qExpr:""}},expressionType:"ValueExpression",expression:"always"},Ah=(e,t)=>"object"==typeof e.label?t.objects.find(t=>t.childRefId===e.childRefId)?.label||e.label.qValueExpression.qExpr:e.label,Ih=e=>({component:"button",translation:"Object.Container.Props.EditProperties",disabled:(e,t)=>{const n=t.getLayout(),r=Ru(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:Ah(t,n.getLayout())}),n.setSelectedChild([i]))}}),Lh=e=>{const{sense:t}=e.env.anything;return{label:_h,condition:kh,styling:Rh({fontResolver:e.fontResolver,theme:t?.theme}),editProperties:Ih(e)}},Th={translation:"Object.Container.Props.Chart",component:"text",show:e=>e.objects?e.objects.length<=1:e.children.length<=1},Oh={translation:"Common.Charts",component:"text",show:e=>e.objects?e.objects.length>1:e.children.length>1},Ph=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:Lh(e)}),Mh=e=>({type:"items",translation:"Object.Container.Props.Content",items:{chartLabel:Th,chartsLabel:Oh,chartList:Ph(e)}}),jh={type:"boolean",translation:"Object.Container.Props.ShowTabs",ref:"showTabs",defaultValue:!0,component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},Nh={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},$h={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},zh={type:"boolean",translation:"Object.Container.Props.ShowIcons",ref:"showIcons",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},Dh={type:"string",translation:"Object.Container.Props.DefaultTab",ref:"defaultTabId",component:"dropdown",defaultValue:void 0,options(e,t){const n=t.getLayout();return n?n.objects.map(e=>({translation:e.label,value:e.childRefId})):[]},change(e,t){const n=Iu(t.getLayout(),e.defaultTabId);n&&t.setSelectedChild([n])},show:e=>e.objects.length>0},Bh={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},Fh=({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:xh({ref:n,key:r,fontResolver:e,theme:t}),width:Eh({ref:n,key:r}),indicator:Ch({ref:n,key:r,theme:t}),icon:Sh({ref:n,key:r,fontResolver:e,theme:t}),background:wh({ref:n,key:r,theme:t})}}},Gh={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:Fh({fontResolver:e.fontResolver,theme:t?.theme}),container:{type:"items",items:{showTabs:jh,useDropdown:Nh,useScrollButton:$h,showIcons:zh,orientation:Bh,defaultTabId:Dh}}}}},Uh=e=>({uses:"settings",items:{general:Gh,presentation:Hh(e)}}),Wh=e=>({type:"items",component:"accordion",items:{content:Mh(e),settings:Uh(e)}}),Yh=e=>{const{sense:t}=e.env.anything,n=function({theme:e,translator:t,config:n={}}){const{id:r,paths:o}=function({config:e={}}){const{id:t,paths:n}=e;return{id:void 0===t?Tu:`${Tu}.${t}`,paths:Array.isArray(n)?n:[]}}({config:n}),i={};o.forEach(n=>{const o=n.split(".");Bu(o);let a=i;for(let i=0;i<o.length;i++){const s=o[i];i===o.length-1?a[s]=zu({theme:e,translator:t,id:r,path:n}):void 0===a[s]&&(a[s]={}),a=a[s]}});const a=e=>{const t=e.split(".");Bu(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 Lu({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&&ru.includes(t.template))return!1;if("visualization"===t.type&&ru.includes(t.visualization))return!1}return"gridcell"!==e.type||!ru.includes(e.cell.model.layout.visualization)}}}(e);return{definition:Wh({...e,fontResolver:n}),support:{snapshot:!1,export:!0,sharing:!1,exportData:!1,viewData:!1},hidePatchPanel:()=>!0,getCreatePropertyHandler:t=>new Lu({app:t,data:e.propertyHandlerData}),...r,addChild:async function(e,t){const{childModel:n,handler:o}=await r.addChild.apply(this,[e,t]);n&&o.setSelectedChild([n.id])},migrate:{properties:(e,t)=>((async(e,t)=>{if(!e.objects){const{objects:n,defaultTabId:r,components:o,orientation:i,showDetails:a}=await t.getEffectiveProperties(),s=await t.getFullPropertyTree();if(!s.qProperty.objects&&n){const l=[];s.qChildren.forEach(e=>{const n=e.qProperty;if(n.qInfo.qId){const r=async r=>{const o=await t.getChild(r),i=await o.getEffectiveProperties();return{...e,qProperty:{...n,childRefId:i.childRefId}}};l.push(r(n.qInfo.qId))}});const c=await Promise.all(l),d={...e,objects:n,defaultTabId:r??"",components:o,qChildListDef:hh,orientation:i,showDetails:a};t.clearSoftPatches(),await t.setFullPropertyTree({...s,qProperty:d,qChildren:c})}}})(e,t),e)},exportProperties:null,importProperties:(e,t)=>{const n={...e.properties};return"masterobject"!==e.properties.qInfo.qType&&(n.qInfo.qType=t.qInfo.qType),n.visualization=t.visualization,{qProperty:n,qChildren:e.qChildren}},extendMetrics:fh}},Vh=e=>e.reduce((e,{id:t,data:n})=>(n&&(e[t]=n),e),{}),qh=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)}},Kh=async e=>{const t=[];for(const[n,r]of e){const e={id:n,data:void 0},o=r;t.push(o.getSnapshotLayout().then(e=>({id:n,data:e})).catch(()=>e))}const n=await Promise.all(t);return Vh(n)},Xh=(e,t)=>(n(async n=>{const r=n,{snapshotData:o}=r;if(o){const n=_u(r),i=t(e.objectMap,n),[a,s]=await Promise.all([Kh(i.objectMap),qh(i.objectMap)]);o.objectsData={layouts:a},r.objects=i.objects,o.viewState=s}return n}),{getViewState:()=>qh(e.objectMap)});let Zh=function(e){return e.COPY="ctrl+c",e.CUT="ctrl+x",e.OPEN_CONTEXT_MENU="shift+F10",e.ESCAPE="Escape",e.SPACE=" ",e.ENTER="Enter",e.BACKSPACE="Backspace",e.DELETE="Delete",e}({}),Jh=function(e){return e.KEY_DOWN="keydown",e.FOCUS_OUT="focusout",e}({}),Qh=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 ef=`& .${Qh.TAB}.${Qh.TAB_EXTRA_PRIO}, .${Qh.TAB}.${Qh.ACTIVE_TAB}`,tf=`& .${Qh.TAB}.${Qh.TAB_EXTRA_PRIO}:hover`,nf=`& .${Qh.TAB_LABEL}`,rf=`& .${Qh.TABS_ICON} svg`,of=`& .${Qh.TAB_WRAPPER}`,af=`& .${Qh.TAB_INDICATOR}`,sf=e=>e.getElementsByClassName(Qh.ACTIVE_TAB)?.[0],lf=e=>e.getElementsByClassName(Qh.ACTIVE_TAB_PANEL)?.[0],cf=({element:e,setAccessibility:n,accessibility:a,renderHelper:s,interactions:l,env:c,models:d})=>{const{modifiedLayout:{showTabs:u,objects:p,orientation:h},translator:f}=d;t(()=>{(()=>{const t="top"===h?f.get("TabContainer.Navigation.Horizontal"):f.get("TabContainer.Navigation.Vertical"),n=((e,t)=>e.map(e=>e.label||t.get("TabContainer.Object.Untitled")).join(", "))(p,f);e.setAttribute("aria-label",f.get("TabContainer.Object.Description",[n,u?t:""]))})()},[e,u,p,f,h]);const m=c.flags.isEnabled("VIZ-7_NEW_SHEET"),b=r(),g=o(()=>()=>{n(!1),b.enabled&&b.blur?.(!0)},[b,n]),v=o(()=>t=>{switch(t.shiftKey?`shift+${t.key}`:t.key){case Zh.ESCAPE:t.stopPropagation(),b.blur?.(!0);break;case Zh.ENTER:case Zh.SPACE:{t.stopPropagation();const n=t.target;n?.classList.contains(Qh.ACTIVE_TAB)&&lf(e)?.focus();break}}},[e,b]),y=o(()=>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 Zh.ESCAPE:{const n=sf(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 Zh.ENTER:case Zh.SPACE:{const n=lf(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 Zh.OPEN_CONTEXT_MENU:t.stopPropagation(),r?.viewDataToggled||e!==document.activeElement&&(g(),e.focus())}},[e,g,m,s]),x=o(()=>e=>{const t=e.target;t?.classList.contains(Qh.ACTIVE_TAB_PANEL)?y(e):v(e)},[v,y]);t(()=>(a&&e.addEventListener(Jh.KEY_DOWN,x),()=>{e.removeEventListener(Jh.KEY_DOWN,x)}),[e,a,x]);const[E,C]=i(!1);t(()=>{E&&(C(!1),window.setTimeout(()=>((e=>e.getElementsByClassName(Qh.TAB_MENU)?.[0])(e)??sf(e))?.focus(),0))},[e,E]),t(()=>{n(!1)},[l.edit,n]),t(()=>{const t=t=>{const n=t.relatedTarget;e?.contains(n)||n?.classList.contains(Qh.TAB_MENU_ITEM)||g?.()};return b.enabled&&b.active&&!l.edit&&(n(!0),C(!0),e.addEventListener(Jh.FOCUS_OUT,t)),()=>{e.removeEventListener(Jh.FOCUS_OUT,t)}},[b])},df=e=>{const[t]=i(e);return[t,function(e){Object.assign(t,e)}]},uf=({isContainerActive:e,activeTabId:n,modifiedLayout:r,renderHelper:i,activeCharts:a,sharedContainerUtilities:s})=>{const l={modifiedLayout:r,activeTabId:n,renderHelper:i,isContainerActive:e},[c,d]=df(l);d(l);const u=o(()=>()=>{const e=ku(c.modifiedLayout);for(const[t,n]of c.renderHelper.objectMap.entries()){const r=c.isContainerActive&&c.activeTabId===e[t];"setIsActive"in n&&n.setIsActive(r)}},[c]);t(()=>{c.isContainerActive&&u()},[i.objectMap,u,c]),t(()=>{u()},[e,u]),(({activeCharts:e,onSetActiveCharts:n,canSetActiveChart:r=!0})=>{const[o,i]=df({onSetActiveCharts:n});i({onSetActiveCharts:n}),t(()=>{if(!r)return;const t=e=>{o.onSetActiveCharts(e)};e.on("setActiveCharts",t);const n=e.getActiveCharts();return n.length>0&&t(n),()=>e.removeListener("setActiveCharts",t)},[e,o,r])})({activeCharts:a,onSetActiveCharts:e=>{if(0===e.length)return;const t=c.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t&&t!==c.activeTabId&&s.setSelected(e)}})},pf={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 hf={qInfo:{qId:"MasterObjectList",qType:"MasterObjectList"},qAppObjectListDef:{qType:"masterobject",qData:{name:"/qMetaDef/title",labelExpression:"/labelExpression",visualization:"/visualization",tags:"/qMetaDef/tags"}}};class ff{sessionObject;constructor(e){this.getOrCreateSessionObject(e).catch(()=>{})}getOrCreateSessionObject=async e=>{const t=hf.qInfo.qId;this.sessionObject=await e.getObject(t).catch(()=>e.createSessionObject(hf))};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=>!ru.includes(e.visualization))}catch{return[]}}}let mf=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 bf{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 ff(n)),e&&r&&(this.chartList=new ou(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&&!ru.includes(e.visualization))try{await this.mutex.lock();const{model:r}=this,o=async()=>{e.childRefId=pf.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 mf.TOP:{if(0===o)break;const e=r.splice(o,1)[0];r.unshift(e),i=!0;break}case mf.BOTTOM:{if(o===r.length-1)break;const e=r.splice(o,1)[0];r.push(e),i=!0;break}case mf.UP:{if(0===o)break;const e=r.splice(o,1)[0];r.splice(o-1,0,e),i=!0;break}case mf.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 gf{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 vf={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}},yf={index:-1,color:"none",alpha:1},xf=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}},Ef=(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})`},Cf=e=>{const{h:t,s:n,l:r}=xf(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 Ef(i,s,a,r-.5*i,o)},Sf={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 Cf(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 Cf(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}=xf(e),o=r*n,i=t/60,a=o*(1-Math.abs(i%2-1));return Ef(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&&vf[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||yf;let o;return o=e?.useColorExpression?Sf.resolveExpression(e):"string"==typeof r?r:n?.getColorPickerColor(r)||"",o&&"none"!==o?o:t}},wf=()=>yn.jsx(gu,{viewBox:"0 0 16 16",children:yn.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"})}),Rf=({libraryInfo:e,style:t,id:n})=>yn.jsx("div",{style:t,"data-testid":"tab-chart-icon",id:n,className:Qh.TABS_ICON,children:yn.jsx(e.IconDefinition,{})}),_f=({style:e,id:t})=>yn.jsx("div",{style:e,"data-testid":"tab-hidden-icon",id:t,children:yn.jsx(vu,{viewBox:"0 0 16 16",children:yn.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"})})}),kf=()=>yn.jsx(vu,{viewBox:"0 0 16 16",children:yn.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"})}),Af=$a(Ld)({width:28,overflow:"hidden"}),If=$a(Ld)({height:28,width:"100%",overflow:"hidden",alignItems:"center","&::before":{visibility:"hidden"}}),Lf=(e,t)=>e.find(e=>e.childRefId===t),Tf=(e,t)=>!t.edit&&0===e.condition,Of=e=>{const{objects:t,defaultTabId:n,cachedTabId:r}=e;return r||(n&&t.some(e=>e.childRefId===n)?n:t[0]?.childRefId||"")};class Pf{modifiedLayout;themeStyle;style;objectMap;activeTabId;theme;constructor({modifiedLayout:e,themeService:t}){this.modifiedLayout=e,this.activeTabId=Of(this.modifiedLayout),this.themeStyle=t.getStyles(),this.theme=t.getTheme(),this.objectMap=Au(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 Sf.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=Sf.getColor({style:e,theme:this.theme})}return n??Sf.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:Yp(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:Yp(r,"label.fontSize"),fontFamily:Yp(r,"label.fontFamily"),color:Sf.getColor({style:Yp(r,"label.color"),theme:this.theme})},e[`#tab-icon-${this.modifiedLayout.qInfo.qId}-${n} svg`]={height:Yp(r,"icon.size"),color:Sf.getColor({style:Yp(r,"icon.color"),theme:this.theme})},e},{});createTabsClasses=()=>({[nf]:{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"})},[rf]:{height:this.resolveComponentStyle({compPath:"icon.size",themePath:"icon.value.fontSize"}),color:this.getColorStyle("icon.color","icon.value.color")},[ef]:{textAlign:this.resolveComponentStyle({compPath:"label.alignment",themePath:"label.textAlignment"}),...this.getTabsWidth("top")},[tf]:{..."top"===this.modifiedLayout.orientation&&{borderBottomColor:this.getColorStyle("indicator.hover","indicator.hover.color")}},[of]:{...this.getTabsWidth("left"),backgroundColor:this.getColorStyle("background.unselected","")},[af]:{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 Yp(o,t)??Yp(this.themeStyle,n)??r};getTabStyle(e){return this.objectMap[e].components?.find(e=>"tab"===e.key)}}const Mf=()=>{const t=a(),n=s(),r=l(),m=c(),b=d(),g=u(),v=e(),y=p(),x=h(),E=function({theme:e,config:t={}}){const{id:n,resolve:r=[],transform:o=[],extend:i=[]}=t,a={theme:e,matrix:ch(r),styles:void 0};return a.styles=ph({theme:e,id:n,transform:o,extend:i,matrix:a.matrix}),{getStyles:()=>a.styles,getTheme:()=>a.theme,setTheme:e=>{a.theme=e,a.styles=ph({theme:e,id:n,transform:o,extend:i,matrix:a.matrix})}}}({theme:f(),config:{id:"tabbedContainer",resolve:[["object.tabbedContainer","indicator.selected","color"],["object.tabbedContainer","indicator.hover","color"],["object.tabbedContainer","background.hover","color"],["object.tabbedContainer","icon.value","color"],["object.tabbedContainer","icon.value","fontSize"]]}}),C=o(()=>new ou(m,g),[m,g]),[S]=i(()=>new gf(b.id)),[w,R]=i(!1),_=o(()=>m&&b&&n?new bf({embed:m,model:b,app:n,translator:g,mutex:S}):void 0,[m,b,n,g,S]),k=o(()=>_u(r),[r]),A=o(()=>new Pf({modifiedLayout:k,themeService:E}),[k,E]);return o(()=>({app:n,modifiedLayout:k,embed:m,model:b,emitter:y,interactions:x,dataHandler:_,chartList:C,styleModel:A,mutex:S,options:v,accessibility:w,setAccessibility:R,translator:g,element:t}),[k,m,b,n,y,x,_,C,A,S,v,w,g,t])},jf=({dataHandler:e,modifiedLayout:t,translator:n,sharedContainerUtilities:r,Icon:o})=>{const[i,a]=R(void 0);if(!e||!t)return null;const s=!t.qExtendsId;return yn.jsx(uu,{children:yn.jsxs(du,{children:[yn.jsx(o,{}),s?yn.jsxs(yn.Fragment,{children:[yn.jsx(bu,{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")}),yn.jsx(Eu,{translator:n,anchorEl:i,dataHandler:e,onClose:()=>{a(void 0)},sharedContainerUtilities:r})]}):yn.jsx(Ks,{variant:"inherit",children:n.get("LayoutContainer.EmptyList.EmptyHint")})]})})};class Nf{_rendered=new Set;_objectMap=new Map;_objectApis=new Map;_resolver;_dependencyData;_recreateMap=new Map;constructor(e){this._dependencyData=e}set dependencyData(e){this._dependencyData=e}get rendered(){return this._rendered}get objectMap(){return this._objectMap}get objectApis(){return this._objectApis}get resolver(){return this._resolver}get recreateMap(){return this._recreateMap}createTimerForRendering=()=>{if(!this.resolver){let e;const t=setTimeout(()=>{this._dependencyData.options.onRenderStatusUpdate?.("Layout container rendering timeout reached after 90 seconds. Resolving anyway."),this.doResolve()},9e4),n=new Promise(t=>{e=t});this._resolver={promise:n,resolve:e,timer:t}}return this._resolver};doResolve=()=>{this.resolver&&(clearTimeout(this.resolver?.timer),this.resolver.resolve?.(!0),this._resolver=void 0)};tryToResolve=()=>{const{visibleLayoutObjects:e}=this._dependencyData;if(this.resolver){e.every(e=>this.rendered.has(e.id))&&(this._dependencyData.options.onRenderStatusUpdate?.("All layout container children rendered"),this.doResolve())}};syncObjects(e){const t=new Set,n=new Set([...Array.from(this.objectMap.keys()),...Array.from(this.objectApis.keys()),...this.rendered]),r=new Set(n);let o=!1;return e.forEach(e=>{n.has(e.id)?(this.rendered.has(e.id)&&t.add(e.id),r.delete(e.id)):o=!0}),r.forEach(e=>{const t=this.objectMap.get(e);t&&(this.confirmPotentialSelections(t),t.destroy?.(),this.objectMap.delete(e)),this.objectApis.get(e)?.destroy(),this.objectApis.delete(e)}),this._rendered=t,this.tryToResolve(),o}destroy(){for(const e of this.objectApis.values())e.destroy();this._objectMap=new Map,this._objectApis=new Map}saveObject(e,t){this.objectMap.set(e,t)}saveObjectApi(e,t){this._objectApis.set(e,t)}onRendered(e){this._dependencyData.options.onRenderStatusUpdate?.(`Layout container child rendered: ${this.rendered.size+1}/${this._dependencyData.visibleLayoutObjects.length} ${e}`),this.rendered.add(e),this.tryToResolve()}getChildrenObjects(){const{visibleLayoutObjects:e}=this._dependencyData,t=[];return e.forEach(e=>{const n=this.objectMap.get(e.id);n&&t.push(n)}),t}getChildLayout(e){const{modifiedLayout:t}=this._dependencyData;return t.qChildList.qItems.find(t=>t.qInfo.qId===e)}getObjectOptions(e){const{viewState:t,modifiedLayout:n,options:r}=this._dependencyData,{chartAnimations:o,direction:i,progressiveRendering:a,freeResize:s,navigation:l,useQlikEmbedChildRendering:c,getContextMenuParent:d,onContextMenu:u}=r;return{isReadonly:!1,setController:t=>{this.saveObject(e,t)},onRendered:()=>{this.onRendered(e)},onInitialRender:()=>{this.onRendered(e)},isParentMaster:!!n?.qExtendsId,isSnapshot:!!n.snapshotData,...!!t?.viewStates?.[e]&&{viewState:t?.viewStates[e]},...!!t?.layouts?.[e]&&{layout:t.layouts[e]},direction:i,chartAnimations:o,progressiveRendering:a,freeResize:s,navigation:l,disableThemeBorder:!1,fallbackToClient:r.fallbackToClient,useQlikEmbedChildRendering:c,getContextMenuParent:d,onContextMenu:u}}confirmPotentialSelections(e){e&&"selectionsApi"in e&&e.selectionsApi.active&&e.selectionsApi.confirm()}}const $f=({chartObject:e,embed:t,renderHelper:n,direction:r,interactions:o,env:i})=>{const a=k(null),{id:s}=e;_(()=>{if(s&&a.current){const e=n.getObjectOptions(s)||{};e.disableThemeBorder=!0,t.render({id:s,element:a.current,options:e}).then(e=>{n.saveObjectApi(s,e)}).catch(e=>{const t=n.getChildLayout(s)?.qInfo?.qType;console.error("Could not render chart with id",s,t,e)})}},[s,t,n,r]);const l=A(()=>()=>{if(e?.id&&i.anything){const t=e?.label,{sense:r}=i.anything,o="current",a=n.objectMap.get(e.id);a&&r.propertyPanel.show({model:a.model,parent:o,headerLabel:t,keepCurrentActiveCell:!0})}},[i,e,n]);return _(()=>{const e=a?.current;return e&&o?.edit&&e.addEventListener("dblclick",l),()=>{e?.removeEventListener("dblclick",l)}},[a,l,o]),yn.jsx("div",{ref:a,style:{position:"relative",height:"100%",width:"100%"},"data-testid":`tab-panel-${e.childRefId}`})};let zf=function(e){return e.TABS_HEIGHT="36px",e}({});const Df=({charts:e,handleChangeTab:t,activeTabId:n,element:r,translator:o,accessibility:i,disabled:a})=>{const[s,l]=y.useState(null),c=Boolean(s),d=()=>{l(null)},u=I(e=>{e?.focus()},[]);return yn.jsxs(yn.Fragment,{children:[yn.jsx(Ol,{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:Qh.TAB_MENU,sx:{m:"2px"},children:yn.jsx(kf,{})}),yn.jsx(dd,{anchorEl:s,open:c,onClose:d,elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{py:0}},slotProps:{paper:{sx:{maxHeight:"500px",maxWidth:"500px"}}},children:e.map(e=>yn.jsx(md,{className:Qh.TAB_MENU_ITEM,ref:n===e.childRefId&&c?u:null,onClick:()=>{(e=>{t(e.childRefId),d(),window.setTimeout(()=>{r.getElementsByClassName(Qh.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:yn.jsx(Ks,{variant:"inherit",noWrap:!0,children:e.label})},`chartTabMenu-${e.childRefId}`))})]})},Bf=({label:e,id:t})=>yn.jsx(Cl,{className:Qh.TAB_LABEL,id:`tab-label-${t}`,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",overflow:"hidden",flexWrap:"wrap"},children:yn.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})}),Ff=({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?yn.jsx(_f,{id:`${Qh.TABS_ICON}-${r}`,style:o}):e?yn.jsx(Rf,{id:`${Qh.TABS_ICON}-${r}`,libraryInfo:e,style:o}):null},Gf=({models:e,activeTabId:t,handleChangeTab:n})=>{const{modifiedLayout:r,chartList:o,interactions:i,accessibility:a}=e,s=o?.getCharts(),l=r.objects.filter(e=>!Tf(e,i)),{orientation:c,tabContainerStyle:d,ScrollButtonComponent:u}=(({orientation:e})=>"left"===e?{orientation:"vertical",tabContainerStyle:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"25%",flexShrink:0},ScrollButtonComponent:If}:{orientation:"horizontal",tabContainerStyle:{display:"flex",flexDirection:"row",alignItems:"center"},ScrollButtonComponent:Af})(r),p=!1===i.active&&!i.edit,[h,f]=R(!1),m=I(e=>{if(e){const t=e.getElementsByClassName("MuiTabs-flexContainer")[0];if(t)return void f("vertical"===c?t.scrollHeight>t.offsetHeight:t.scrollWidth>t.offsetWidth)}f(!1)},[c]);return yn.jsxs(Cl,{className:Qh.TAB_WRAPPER,sx:d,ref:e=>{m(e)},children:[r.useDropdown&&h?yn.jsx(Df,{charts:l,handleChangeTab:n,activeTabId:t,accessibility:a,translator:e.translator,element:e.element,disabled:p}):null,yn.jsx(Hd,{value:t,onChange:(e,t)=>{n(t)},ScrollButtonComponent:u,variant:"scrollable",orientation:c,scrollButtons:!!r.useScrollButton&&"auto",TabScrollButtonProps:{...p&&{disabled:!0}},sx:{height:"100%",width:"100%",minHeight:zf.TABS_HEIGHT},children:l.map(n=>{const o=Ru(r,n.childRefId)?.qData?.visualization,i=o&&s?.[o]?.libraryInfo,l=e.styleModel.getTabStyle(n.childRefId),d=0===n.condition||r.showIcons&&i&&!1!==l?.icon?.show,u="vertical"===c?"top":"start",h=e.styleModel.resolveComponentStyle({compPath:"icon.position",defaultValue:u}),f=e.styleModel.resolveComponentStyle({compPath:"label.show"}),m=n.label&&(l?.label?.show??!1!==f),b=`${r.qInfo.qId}-${n.childRefId}`;return yn.jsx(xd,{className:`${Qh.TAB} ${t===n.childRefId?Qh.ACTIVE_TAB:""}`,disabled:p,id:`tab-${b}`,value:n.childRefId,title:n.label,label:m?yn.jsx(Bf,{label:n.label,id:b}):void 0,icon:d?yn.jsx(Ff,{libraryInfo:i,chart:n,iconPosition:h,id:b}):"",iconPosition:h,"data-testid":`container-tab-${n.childRefId}`,sx:{textAlign:"vertical"!==c||r.showIcons?"center":"start",minWidth:"vertical"===c?"100%":void 0,minHeight:zf.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)})})]})},Hf=({models:e,renderHelper:t,activeTabId:n,handleChangeTab:r,env:o})=>{const{modifiedLayout:i,embed:a,interactions:s,options:l,styleModel:c,accessibility:d}=e,u=i.objects,p=s.edit||!!u.find(e=>0!==e.condition),h=i.showTabs&&p,f="left"===i.orientation?"row":"column",m=c.getStyleClasses();return yn.jsxs(Cl,{sx:{display:"flex",flexDirection:f,height:"100%",width:"100%",direction:l.direction,...m},children:[h?yn.jsx(Gf,{models:e,activeTabId:n,handleChangeTab:r}):null,u.map(e=>{const r=`tab-panel-${i.qInfo.qId}-${e.childRefId}`,c=n===e.childRefId&&!Tf(e,s);return yn.jsx(Cl,{role:"tabpanel",id:r,"aria-label":e.label,sx:{flex:"1 1 auto",minHeight:0,width:"100%",padding:"2px",boxSizing:"border-box",direction:"ltr","&:focus-visible":{boxShadow:"inset 0 0 0 2px #0275D9",borderRadius:"3px",zIndex:1200}},...c?{className:Qh.ACTIVE_TAB_PANEL,tabIndex:d?0:-1}:{hidden:!0},children:c?yn.jsx($f,{chartObject:e,renderHelper:t,direction:l.direction,embed:a,interactions:s,env:o}):null},r)})]})};let Uf=function(e){return e.COPY="copy",e.PASTE="paste",e.RESET_COPY_BUFFER="resetCopyBuffer",e}({}),Wf=function(e){return e.COPY="copy",e.PASTE_AND_REPLACE="paste-and-replace",e.PASTE="paste",e.DUPLICATE="duplicate",e.DELETE="delete",e.CUT="cut",e.EDIT_PROPERTIES="edit",e.ZOOM_IN="zoom-in",e.VISUAL_EXPLORATION="visual-exploration",e.MONITOR_IN_HUB="addto",e.REORDER_LAYERS_GROUP="reorder-layers-group",e.BRING_TO_FRONT="bring-to-front",e.BRING_FORWARD="bring-forward",e.SEND_TO_BACK="send-to-back",e.SEND_BACKWARDS="send-backwards",e.CONTAINER_HEADER="container-header",e.CHART_HEADER="chart-header",e.ALERT_GROUP="alertGroup",e.ADD_TO_MASTER_ITEMS="add-to-master-items",e.UNLINK_VISUALIZATION="unlink",e.DEVELOPER="object-developer",e.SHOW_DETAILS="object-info",e.EXPLAIN_KEY_DRIVERS_OLD_ID="explainKeyDrivers",e.EXPLAIN_KEY_DRIVERS="key-driver",e.SUBSCRIBE="subscribe",e.NOTES_GROUP="notesGroup",e.DOWNLOAD="download",e.SHARE_IMAGE="share",e}({});const Yf=[Wf.PASTE_AND_REPLACE,Wf.ZOOM_IN,Wf.VISUAL_EXPLORATION],Vf=[Wf.VISUAL_EXPLORATION,Wf.ALERT_GROUP,Wf.SHOW_DETAILS,Wf.EXPLAIN_KEY_DRIVERS,Wf.EXPLAIN_KEY_DRIVERS_OLD_ID],qf=[Wf.DELETE,Wf.CUT,Wf.ADD_TO_MASTER_ITEMS,Wf.UNLINK_VISUALIZATION],Kf=[Wf.PASTE_AND_REPLACE],Xf=(e,t)=>{const{childRefId:n}=e.model.layout,r=t.objects.find(e=>e.childRefId===n);return{...e,additionalData:{label:r?.label}}},Zf=(e,t,n,r,o)=>{const i=t.getSupportFunction(Wf.COPY);if(!i)return void e.deleteItem(Wf.COPY);const a=()=>{i(Xf(n,r)).catch(()=>{})},s=e.items.find(e=>e.id===Wf.COPY);if(s)s.updateItem({select:a});else if(o){const t=e.items.findIndex(e=>e.id===Wf.CUT),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.copy",tid:Wf.COPY,id:Wf.COPY,icon:"copy",select:a,items:[]},n)}},Jf=e=>e.interactions.edit&&!e.modifiedLayout.qExtendsId,Qf=async(e,t,n,r,o)=>{if(o.flags.isEnabled("GVC_48_CHART_CONTEXT_MENU_ITEM_GENERATION"))return;const i=t.getBuilder("default");if(!i)return;const a=await i();a.addItem({translation:"contextMenu.containerOptionsHeader",tid:Wf.CONTAINER_HEADER,id:Wf.CONTAINER_HEADER,bold:!0,items:[]},0);const s=Jf(n);a.items.forEach(e=>{(Vf.includes(e.id)||!s&&Kf.includes(e.id))&&a.deleteItem(e.id)}),s&&await(async(e,t,n)=>{const r=t.getSupportFunction(Uf.PASTE),o=await(r?.()?.catch(()=>{}));if(!o||ru.includes(o.template))return void e.deleteItem(Wf.PASTE_AND_REPLACE);const i=()=>{n()},a=e.items.find(e=>e.id===Wf.PASTE_AND_REPLACE||e.id===Wf.PASTE);if(a)a.updateItem({translation:"contextMenu.paste",select:i});else{const t=e.items.findLastIndex(e=>e.id===Wf.COPY||e.id===Wf.DEVELOPER||e.id===Wf.CONTAINER_HEADER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.paste",tid:Wf.PASTE_AND_REPLACE,id:Wf.PASTE_AND_REPLACE,icon:"paste",select:i,items:[]},n)}})(a,t,r),e.updateItem({items:a.items}),1===e.items.length&&e.deleteItem(Wf.CONTAINER_HEADER)},em=e=>{const t={[Wf.MONITOR_IN_HUB]:!0,[Wf.SUBSCRIBE]:!0,[Wf.NOTES_GROUP]:!0,[Wf.DOWNLOAD]:!0,[Wf.SHARE_IMAGE]:!0};e.items.forEach(n=>{t[n.id]?e.deleteItem(n.id):n.items&&em(n)})},tm=(e,t,n,r,o,i)=>a=>{const{dataHandler:s,modifiedLayout:l}=r;if(Jf(r)){n.isInvalid||(((e,t,n,r)=>{const{model:o,modifiedLayout:i}=n,a=e.items.findLastIndex(e=>e.id===Wf.CHART_HEADER||e.id===Wf.REORDER_LAYERS_GROUP),s=a>=0?1+a:void 0;e.addItem({translation:"Object.Container.Props.EditProperties",tid:Wf.EDIT_PROPERTIES,id:Wf.EDIT_PROPERTIES,icon:Wf.EDIT_PROPERTIES,items:[],select:()=>{const{childRefId:e}=t.model.layout,n=i.objects.find(t=>t.childRefId===e),a=n?.label,{sense:s}=r.anything,l=o;s.propertyPanel.show({model:t.model,parent:l,headerLabel:a})}},s)})(a,n,r,o),((e,t,n,r,o,i)=>{const a=r.getSupportFunction(Wf.COPY);if(!a)return void e.deleteItem(Wf.CUT);const s=()=>{o&&a(Xf(n,i)).then(async()=>{await(o?.deleteChildren([t]))}).catch(()=>{})},l=e.items.find(e=>e.id===Wf.CUT);if(l)l.updateItem({select:s});else{const t=e.items.findLastIndex(e=>e.id===Wf.ADD_TO_MASTER_ITEMS||e.id===Wf.UNLINK_VISUALIZATION||e.id===Wf.EDIT_PROPERTIES||e.id===Wf.REORDER_LAYERS_GROUP||e.id===Wf.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.cut",tid:Wf.CUT,id:Wf.CUT,icon:"cut",select:s,items:[]},n)}})(a,t,n,e,s,l),Zf(a,e,n,l,!0),((e,t,n,r,o)=>{const i=t.getSupportFunction(Uf.COPY),a=t.getSupportFunction(Uf.PASTE);if(!i||!a)return void e.deleteItem(Wf.DUPLICATE);const s=()=>{i(Xf(n,r)).then(()=>{o()}).catch(()=>{})},l=e.items.find(e=>e.id===Wf.DUPLICATE);if(l)l.updateItem({select:s});else{const t=e.items.findIndex(e=>e.id===Wf.COPY),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Duplicate",tid:Wf.DUPLICATE,id:Wf.DUPLICATE,icon:Wf.DUPLICATE,items:[],select:s},n)}})(a,e,n,l,i)),((e,t,n)=>{const r=()=>{n&&n.deleteChildren([t]).catch(()=>{})},o=e.items.find(e=>e.id===Wf.DELETE);if(o)o.updateItem({select:r});else{const t=e.items.findLastIndex(e=>e.id===Wf.DUPLICATE||e.id===Wf.ADD_TO_MASTER_ITEMS||e.id===Wf.UNLINK_VISUALIZATION||e.id===Wf.REORDER_LAYERS_GROUP||e.id===Wf.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Delete",tid:Wf.DELETE,id:Wf.DELETE,icon:"bin",items:[],select:r},n)}})(a,t,s)}else Zf(a,e,n,l,!1)},nm=(e,t,n,r)=>{b(async(o,i,a)=>{if(!a)return!1;const s=((e,t)=>()=>{if(!e)return;const n=t.getSupportFunction(Uf.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(Uf.RESET_COPY_BUFFER)})})(n.dataHandler,a);if(await Qf(o,a,n,s,r),em(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,Qh.ACTIVE_TAB_PANEL)})(i))return!0;const l=n.modifiedLayout.objects.find(t=>t.childRefId===e)?.id;if(!l)return!0;const c=t.objectMap.get(l);if(!c)return!0;const d=tm(a,e,c,n,r,s),u=await(async(e,t,n,r)=>{const o=Jf(n),i=e.getBuilder("object");if(!i)return;const a=await i(t);return a.addItem({translation:"contextMenu.chartOptionsHeader",tid:Wf.CHART_HEADER,id:Wf.CHART_HEADER,bold:!0,items:[]},0),r(a),a.items.forEach(e=>{(Yf.includes(e.id)||!o&&qf.includes(e.id))&&a.deleteItem(e.id)}),1===a.items.length&&a.deleteItem(Wf.CHART_HEADER),a})(a,c,n,d);return!u||(o.items.length>0&&u.addItem({translation:"contextMenu.subMenuContainerOptions",tid:"tabbed-container-menu",id:"tabbed-container-menu",icon:"tabbed-container",items:[...o.items]},u.items.length),o.updateItem({items:u.items}),!0)})},rm=({element:n,models:r,env:a,activeCharts:s})=>{const l=((e,n)=>{const[r,o]=i(void 0);return t(()=>{if(0===e.getElementsByClassName(n).length){const t=document.createElement("div");t.className=n,e.appendChild(t);const r=su.createRoot(t);o(r)}return()=>{r?.unmount()}},[e,n,r]),r})(n,"init-component"),{options:c,modifiedLayout:d,interactions:u,model:p}=r,{qChildList:h}=d,f=tu(c.direction),b=(t=>{const{viewState:n}=e(),{snapshotData:r}=t;if(r){const{layouts:e}=r.objectsData,t=r.viewState?.viewStates;return{layouts:e,viewStates:t}}if(n){const{viewStates:e}=n;return{viewStates:e}}})(d),g=o(()=>Of(d),[d]),v={modifiedLayout:d,activeTabId:g,env:a},[y,x]=df(v);x(v);const E=o(()=>d.objects.filter(e=>g===e.childRefId),[g,d.objects]),{renderHelper:C}=(e=>{const{visibleLayoutObjects:n,options:r}=e,[o]=i(()=>new Nf(e)),[,a]=i(r);return o.dependencyData=e,m(async()=>(a(e=>(e!==r&&n.forEach(e=>o.recreateMap.set(e.id,!0)),r)),o.syncObjects(n)?o.createTimerForRendering()?.promise:o.resolver?.promise),[n,r]),t(()=>()=>{o.destroy()},[o]),{renderHelper:o}})({modifiedLayout:d,visibleLayoutObjects:E,viewState:b,options:c});nm(g,C,r,a);const[S]=i({current:void 0}),w=o(()=>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]),R=o(()=>({setSelected:e=>{const t=y.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t?w(t):S.current=e[0]}}),[w,y,S]);t(()=>{const e=(({chartObjects:e,activeTabId:t})=>!Lf(e,t)&&e.length>0?e[0]?.childRefId:t)({chartObjects:y.modifiedLayout.objects,activeTabId:y.activeTabId});if(e!==y.activeTabId)w(e);else if(S.current){const e=y.modifiedLayout.objects.find(e=>e.id===S.current)?.childRefId;e&&w(e)}S.current=void 0},[d?.objects.length,y,S,w]),t(()=>{const e=(({chartObjects:e,activeTabId:t,interactions:n})=>{const r=Lf(e,t);if(!r||Tf(r,n)){const n=e.find(e=>0!==e.condition);return n?.childRefId||t}return t})({chartObjects:y.modifiedLayout.objects,activeTabId:y.activeTabId,interactions:u});e!==y.activeTabId&&w(e)},[u,d?.objects,y,w]);const _=0===h.qItems.length&&u.edit;return t(()=>{l?.render(yn.jsxs(Da,{theme:f,children:[_?yn.jsx(jf,{Icon:wf,dataHandler:r.dataHandler,modifiedLayout:r.modifiedLayout,translator:r.translator,sharedContainerUtilities:R}):null,!_&&yn.jsx(Hf,{models:r,renderHelper:C,activeTabId:g,handleChangeTab:w,env:a})]}))},[l,r,f,_,C,g,R,w,a]),{renderHelper:C,sharedContainerUtilities:R,activeTabId:g}};var om={targets:[]};const im={showTitles:!0,title:"",subtitle:"",footnote:"",disableNavMenu:!0,showDetails:!1,objects:[],qChildListDef:{qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition"}},showTabs:!0,useScrollButton:!0,useDropdown:!1,showIcons:!1,components:[],defaultTabId:"",orientation:"top",fontsUsed:[]};!function(e,t){void 0===t&&(t={});var 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 am=(e,t)=>{let n=!0;const r=t.objects.reduce((t,r)=>{const o=r.id;if(0!==r.condition){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};function sm(n){const r=new nu({translator:n.translator});return{qae:{properties:im,data:om},ext:Yh({env:n,propertyHandlerData:r}),component(){const a=Mf(),s=u();o(()=>{!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])})}}(s)},[s]);const{dataHandler:l,model:c,accessibility:d,setAccessibility:p,interactions:h,element:f,modifiedLayout:m}=a,b=o(()=>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:v,sharedContainerUtilities:y,activeTabId:x}=rm({element:f,models:a,env:n,activeCharts:b});(({propertyHandlerData:n,element:r,sharedContainerUtilities:o,translator:i,containerId:a,dataHandler:s,renderHelper:l,chartList:c})=>{const d=e();a&&n.sync({containerId:a,element:r,sharedContainerUtilities:o,translator:i,dataHandler:s,renderHelper:l,chartList:c}),t(()=>{n.setMuiTheme(d.direction)},[d.direction,n]),t(()=>()=>{a&&n.destroy(a)},[a,n,d.direction])})({containerId:c?.id||"",element:f,sharedContainerUtilities:y,translator:s,dataHandler:l,propertyHandlerData:r,renderHelper:v});const[E,C]=i(!0);uf({isContainerActive:E,activeTabId:x,renderHelper:v,modifiedLayout:m,activeCharts:b,sharedContainerUtilities:y}),cf({element:f,accessibility:d,setAccessibility:p,renderHelper:v,interactions:h,env:n,models:a});const{getViewState:S}=Xh(v,am);g(()=>({getViewState:S,getChildrenObjects:()=>(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}))(v.getChildrenObjects()),updateActiveState(e){C(e)},activeCharts:b}),[])}}}export{sm as default};